This commit is contained in:
stanz 2025-12-05 01:18:01 +07:00
parent 20e566f134
commit 5bbb3de850
3 changed files with 64 additions and 29 deletions

View File

@ -4,14 +4,26 @@ models:
columns:
- name: BLOCK_DATE
tests:
- not_null:
where: block_date > current_date - 3
- name: ADDRESS
description: '{{ doc("address") }}'
tests:
- not_null:
where: block_date > current_date - 3
- name: TOKEN_ADDRESS
description: '{{ doc("token_address") }}'
tests:
- not_null:
where: block_date > current_date - 3
- name: BALANCE_UNADJ
tests:
- not_null:
where: block_date > current_date - 3
- name: BALANCE
@ -27,14 +39,22 @@ models:
description: '{{ doc("decimals") }}'
- name: TOKEN_IS_VERIFIED
tests:
- not_null:
where: block_date > current_date - 3
- name: FROZEN
tests:
- not_null:
where: block_date > current_date - 3
- name: EZ_BALANCES_ID
description: '{{ doc("pk") }}'
tests:
- unique:
where: block_date > current_date - 3
- not_null:
where: block_date > current_date - 3
- name: INSERTED_TIMESTAMP
description: '{{ doc("inserted_timestamp") }}'

View File

@ -4,14 +4,26 @@ models:
columns:
- name: BLOCK_DATE
tests:
- not_null:
where: block_date > current_date - 3
- name: ADDRESS
description: '{{ doc("address") }}'
tests:
- not_null:
where: block_date > current_date - 3
- name: TOKEN_ADDRESS
description: '{{ doc("token_address") }}'
tests:
- not_null:
where: block_date > current_date - 3
- name: BALANCE_UNADJ
tests:
- not_null:
where: block_date > current_date - 3
- name: BALANCE
@ -24,13 +36,23 @@ models:
- name: DECIMALS
description: '{{ doc("decimals") }}'
- name: TOKEN_IS_VERIFIED
tests:
- not_null:
where: block_date > current_date - 3
- name: FROZEN
tests:
- not_null:
where: block_date > current_date - 3
- name: FACT_BALANCES_ID
description: '{{ doc("pk") }}'
tests:
- unique:
where: block_date > current_date - 3
- not_null:
where: block_date > current_date - 3
- name: INSERTED_TIMESTAMP
description: '{{ doc("inserted_timestamp") }}'

View File

@ -11,47 +11,40 @@ models:
columns:
- name: BLOCK_DATE
tests:
- not_null
- name: ADDRESS
tests:
- not_null
description: '{{ doc("address") }}'
- name: TOKEN_ADDRESS
tests:
- not_null
- name: SYMBOL
tests:
- not_null
- name: DECIMALS
tests:
- not_null
- name: NAME
description: '{{ doc("token_address") }}'
- name: POST_BALANCE
tests:
- not_null
- name: BALANCE
tests:
- not_null
- name: FROZEN
description: |
Account freeze status (FungibleAsset-specific field).
- TRUE: Account/store is frozen (cannot transfer)
- FALSE: Account is active
- For Coin standard balances: Always FALSE (Coin doesn't support freezing)
- name: IS_VERIFIED
description: |
Whether the token has verified price data.
- TRUE: Token exists in price__ez_prices_hourly with is_verified = TRUE
- FALSE: Token has no verified price data
- name: BALANCES_ID
description: '{{ doc("pk") }}'
tests:
- not_null
- unique:
where: block_date > current_date - 3
- name: INSERTED_TIMESTAMP
tests:
- not_null
description: '{{ doc("inserted_timestamp") }}'
- name: MODIFIED_TIMESTAMP
tests:
- not_null
description: '{{ doc("modified_timestamp") }}'
- name: _INSERTED_TIMESTAMP
tests:
- name: not_null_silver__balances_INSERTED_TIMESTAMP_
test_name: not_null
- name: _INVOCATION_ID
tests:
- name: not_null_silver__balances_INVOCATION_ID
test_name: not_null