Skip to content

Commit

Permalink
Merge pull request #88 from Synthetixio/feat/dbt-improve-testing
Browse files Browse the repository at this point in the history
Improve testing coverage
  • Loading branch information
Tburm authored Jul 30, 2024
2 parents 05a7cbf + a05aedd commit c11f447
Show file tree
Hide file tree
Showing 32 changed files with 7,109 additions and 143 deletions.
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

0 comments on commit c11f447

Please sign in to comment.