Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve testing coverage #88

Merged
merged 15 commits into from
Jul 30, 2024
386 changes: 369 additions & 17 deletions transformers/synthetix/models/marts/arbitrum/mainnet/core/schema.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,45 @@ models:
- name: fct_prices_arbitrum_mainnet
columns:
- name: ts
description: "Block timestamp"
data_type: timestamp with time zone
tests:
- not_null
- name: market_address
description: "Market address"
data_type: text
tests:
- not_null
- name: market_symbol
description: "Market symbol"
data_type: text
tests:
- not_null
- name: price
description: "Price"
data_type: numeric
tests:
- not_null
- dbt_utils.accepted_range:
min_value: 0
inclusive: true
- name: fct_prices_hourly_arbitrum_mainnet
columns:
- name: ts
description: "Block timestamp"
data_type: timestamp with time zone
tests:
- not_null
- name: market_symbol
description: "Market symbol"
data_type: text
tests:
- not_null
- name: price
description: "Price"
data_type: numeric
tests:
- not_null
- dbt_utils.accepted_range:
min_value: 0
inclusive: true
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,131 @@ models:
- name: fct_synth_supply_arbitrum_mainnet
columns:
- name: ts
description: "Block timestamp"
data_type: timestamp with time zone
tests:
- not_null
- name: block_number
description: "Block number"
data_type: integer
tests:
- not_null
- name: synth_market_id
description: "Synth market ID"
data_type: numeric
tests:
- not_null
- dbt_utils.accepted_range:
min_value: 0
inclusive: true
- name: supply
description: "Supply"
data_type: numeric
tests:
- not_null
- name: fct_spot_atomics_arbitrum_mainnet
columns:
- name: id
description: "ID of the event record"
data_type: character varying
tests:
- not_null
- unique
- name: ts
description: "Block timestamp"
data_type: timestamp with time zone
tests:
- not_null
- name: block_number
description: "Block number"
data_type: integer
tests:
- not_null
- name: tx_hash
description: "Transaction hash"
data_type: text
tests:
- not_null
- name: synth_market_id
description: "Synth market ID"
data_type: numeric
tests:
- not_null
- dbt_utils.accepted_range:
min_value: 0
inclusive: true
- name: price
description: "Price"
data_type: numeric
tests:
- not_null
- name: amount
description: "Amount"
data_type: numeric
tests:
- not_null
- name: referrer
description: "Address of the referrer"
data_type: text
tests:
- not_null
- name: fct_spot_markets_arbitrum_mainnet
columns:
- name: id
description: "Synth market ID"
data_type: numeric
tests:
- not_null
- dbt_utils.accepted_range:
min_value: 0
inclusive: true
- name: created_ts
data_type: timestamp with time zone
tests:
- not_null
- name: block_number
description: "Block number"
data_type: integer
tests:
- not_null
- name: token_address
description: "Token address"
data_type: text
tests:
- not_null
- name: fct_spot_wrapper_arbitrum_mainnet
columns:
- name: id
description: "ID of the event record"
data_type: character varying
tests:
- not_null
- unique
- name: ts
description: "Block timestamp"
data_type: timestamp with time zone
tests:
- not_null
- name: block_number
description: "Block number"
data_type: integer
tests:
- not_null
- name: tx_hash
description: "Transaction hash"
data_type: text
tests:
- not_null
- name: synth_market_id
description: "Synth market ID"
data_type: numeric
tests:
- not_null
- dbt_utils.accepted_range:
min_value: 0
inclusive: true
- name: amount_wrapped
description: "Amount wrapped"
data_type: numeric
tests:
- not_null
Loading
Loading