mirror of
https://github.com/FlipsideCrypto/aptos-models.git
synced 2026-02-06 15:06:53 +00:00
descriptions, test names - PR feedback
This commit is contained in:
parent
a562a04afe
commit
40f2f080c6
5
models/descriptions/amount_adj.md
Normal file
5
models/descriptions/amount_adj.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs amount_adj %}
|
||||
|
||||
The decimal adjusted amount of a token.
|
||||
|
||||
{% enddocs %}
|
||||
5
models/descriptions/amount_unadj.md
Normal file
5
models/descriptions/amount_unadj.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs amount_unadj %}
|
||||
|
||||
The non-decimal adjusted amount of a token. For example, if a token has 18 decimals, then the amount of 1 token is 10^18.
|
||||
|
||||
{% enddocs %}
|
||||
5
models/descriptions/amount_usd.md
Normal file
5
models/descriptions/amount_usd.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs amount_usd %}
|
||||
|
||||
The US dollar equivalent of the amount of a token.
|
||||
|
||||
{% enddocs %}
|
||||
5
models/descriptions/symbol.md
Normal file
5
models/descriptions/symbol.md
Normal file
@ -0,0 +1,5 @@
|
||||
{% docs symbol %}
|
||||
|
||||
The symbol of asset.
|
||||
|
||||
{% enddocs %}
|
||||
@ -1,5 +1,5 @@
|
||||
{% docs core__fact_transfers %}
|
||||
|
||||
This table contains Deposit and Withdraw events on the aptos blockchain.
|
||||
This table contains Deposit and Withdraw events on the aptos blockchain. Note: transfers with a 0 amount are excluded.
|
||||
|
||||
{% enddocs %}
|
||||
|
||||
@ -14,32 +14,32 @@ models:
|
||||
description: '{{ doc("block_number") }}'
|
||||
tests:
|
||||
- not_null:
|
||||
Where: block_timestamp::Date > current_Date-3
|
||||
name: block_number_not_null
|
||||
where: block_timestamp::Date > current_Date-3
|
||||
name: test_defi__block_number_not_null
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: '{{ doc("block_timestamp") }}'
|
||||
tests:
|
||||
- not_null:
|
||||
Where: block_timestamp::Date > current_Date-3
|
||||
name: block_timestamp_not_null
|
||||
where: block_timestamp::Date > current_Date-3
|
||||
name: test_defi__block_timestamp_not_null
|
||||
- name: TX_HASH
|
||||
description: '{{ doc("tx_hash") }}'
|
||||
tests:
|
||||
- not_null:
|
||||
Where: block_timestamp::Date > current_Date-3
|
||||
name: tx_hash_not_null
|
||||
where: block_timestamp::Date > current_Date-3
|
||||
name: test_defi__tx_hash_not_null
|
||||
- name: VERSION
|
||||
description: '{{ doc("version") }}'
|
||||
tests:
|
||||
- not_null:
|
||||
Where: block_timestamp::Date > current_Date-3
|
||||
name: version_not_null
|
||||
where: block_timestamp::Date > current_Date-3
|
||||
name: test_defi__version_not_null
|
||||
- name: BRIDGE_ADDRESS
|
||||
description: '{{ doc("bridge_address") }}'
|
||||
tests:
|
||||
- not_null:
|
||||
Where: block_timestamp::Date > current_Date-3
|
||||
name: bridge_address_not_null
|
||||
where: block_timestamp::Date > current_Date-3
|
||||
name: test_defi__bridge_address_not_null
|
||||
- name: PLATFORM
|
||||
description: '{{ doc("bridge_platform") }}'
|
||||
- name: EVENT_NAME
|
||||
@ -50,22 +50,26 @@ models:
|
||||
description: '{{ doc("bridge_sender") }}'
|
||||
- name: RECEIVER
|
||||
description: '{{ doc("bridge_receiver") }}'
|
||||
- name: SOURCE_CHAIN_NAME
|
||||
- name: SOURCE_CHAIN
|
||||
description: '{{ doc("source_chain") }}'
|
||||
- name: SOURCE_CHAIN_ID
|
||||
description: '{{ doc("source_chain_id") }}'
|
||||
- name: DESTINATION_CHAIN_NAME
|
||||
- name: DESTINATION_CHAIN
|
||||
description: '{{ doc("destination_chain") }}'
|
||||
tests:
|
||||
- not_null:
|
||||
where: not (block_timestamp::date = '2024-10-21' and tx_hash in ('0x49238b4dd1781d0a9afd48faddeba919a0a72775e2b490b4996c50dc78ba525e', '0x206842922be81e92617e5119bf4be6ed660caa246c6bd5f18f87d3b6e0d25fcc', '0x8fd8ef755ba07ac320fce358d707d3433066e5f82df509ad76bd9b6d466bc5a6', '0x509d8cb84f175ecafef0ce8951dc77cc11ae997068d444285b97e3d31eb73338'))
|
||||
name: destination_chain_name_not_null
|
||||
- name: DESTINATION_CHAIN_ID
|
||||
description: '{{ doc("destination_chain_id") }}'
|
||||
name: test_defi__destination_chain_name_not_null
|
||||
- name: TOKEN_ADDRESS
|
||||
description: '{{ doc("bridge_token_address") }}'
|
||||
- name: SYMBOL
|
||||
description: '{{ doc("symbol") }}'
|
||||
- name: AMOUNT_UNADJ
|
||||
description: '{{ doc("amount") }}'
|
||||
description: '{{ doc("amount_unadj") }}'
|
||||
- name: AMOUNT
|
||||
description: '{{ doc("amount_adj") }}'
|
||||
- name: AMOUNT_USD
|
||||
description: '{{ doc("amount_usd") }}'
|
||||
- name: EVENT_INDEX
|
||||
description: '{{ doc("event_index") }}'
|
||||
- name: FACT_BRIDGE_ACTIVITY_ID
|
||||
description: '{{ doc("pk") }}'
|
||||
- name: INSERTED_TIMESTAMP
|
||||
|
||||
@ -17,25 +17,25 @@ models:
|
||||
tests:
|
||||
- not_null:
|
||||
where: block_timestamp::Date > current_Date-3
|
||||
name: block_timestamp_not_null_test
|
||||
name: test_defi__block_timestamp_not_null_test
|
||||
- name: TX_HASH
|
||||
description: '{{ doc("tx_hash") }}'
|
||||
tests:
|
||||
- not_null:
|
||||
where: block_timestamp::Date > current_Date-3
|
||||
name: tx_hash_not_null_test
|
||||
name: test_defi__tx_hash_not_null_test
|
||||
- name: VERSION
|
||||
description: '{{ doc("version") }}'
|
||||
tests:
|
||||
- not_null:
|
||||
where: block_timestamp::Date > current_Date-3
|
||||
name: version_not_null_test
|
||||
name: test_defi__version_not_null_test
|
||||
- name: BRIDGE_ADDRESS
|
||||
description: '{{ doc("bridge_address") }}'
|
||||
tests:
|
||||
- not_null:
|
||||
where: block_timestamp::Date > current_Date-3
|
||||
name: bridge_address_not_null_test
|
||||
name: test_defi__bridge_address_not_null_test
|
||||
- name: PLATFORM
|
||||
description: '{{ doc("bridge_platform") }}'
|
||||
- name: EVENT_NAME
|
||||
@ -55,7 +55,7 @@ models:
|
||||
tests:
|
||||
- not_null:
|
||||
where: not (block_timestamp::date ='2024-10-21' and tx_hash in ('0x49238b4dd1781d0a9afd48faddeba919a0a72775e2b490b4996c50dc78ba525e','0x206842922be81e92617e5119bf4be6ed660caa246c6bd5f18f87d3b6e0d25fcc','0x8fd8ef755ba07ac320fce358d707d3433066e5f82df509ad76bd9b6d466bc5a6','0x509d8cb84f175ecafef0ce8951dc77cc11ae997068d444285b97e3d31eb73338'))
|
||||
name: destination_chain_name_not_null_test
|
||||
name: test_defi__destination_chain_name_not_null_test
|
||||
- name: DESTINATION_CHAIN_ID
|
||||
description: '{{ doc("destination_chain_id") }}'
|
||||
- name: TOKEN_ADDRESS
|
||||
|
||||
@ -54,5 +54,8 @@ models:
|
||||
tests:
|
||||
- not_null
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
tests:
|
||||
- not_null
|
||||
@ -43,8 +43,6 @@ FROM
|
||||
|
||||
{% if not loop.last %}
|
||||
|
||||
{% if is_incremental() %}
|
||||
{% endif %}
|
||||
UNION ALL
|
||||
{% endif %}
|
||||
{% endfor %})
|
||||
@ -20,4 +20,6 @@ models:
|
||||
- name: DESTINATION_CHAIN_ID
|
||||
- name: DESTINATION_CHAIN_NAME
|
||||
- name: TOKEN_ADDRESS
|
||||
- name: AMOUNT_UNADJ
|
||||
- name: AMOUNT_UNADJ
|
||||
- name: EVENT_INDEX
|
||||
|
||||
@ -55,4 +55,6 @@ models:
|
||||
- not_null
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
- not_null
|
||||
@ -49,4 +49,6 @@ models:
|
||||
- not_null
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
- not_null
|
||||
@ -52,4 +52,6 @@ models:
|
||||
- not_null
|
||||
- name: AMOUNT_UNADJ
|
||||
tests:
|
||||
- not_null
|
||||
- name: EVENT_INDEX
|
||||
- not_null
|
||||
Loading…
Reference in New Issue
Block a user