2022-08-10 18:01:21 +00:00
version : 2
models :
2023-01-13 17:53:49 +00:00
- name : silver__dex_swaps_s3
2022-08-10 18:01:21 +00:00
description : |-
2024-01-23 19:40:25 +00:00
This table records all the swap transactions occurring in NEAR. This model is being deprecated as of January 2024. It will remain live through February for users to migrate to the new model.
This logic is outdated / inaccurate.
2022-08-10 18:01:21 +00:00
columns :
- name : BLOCK_ID
description : "{{ doc('block_id')}}"
- name : BLOCK_TIMESTAMP
description : "{{ doc('block_timestamp')}}"
2023-08-01 18:12:59 +00:00
tests :
- not_null :
where : _inserted_timestamp <= CURRENT_TIMESTAMP - interval '1 hour'
- dbt_expectations.expect_column_values_to_be_in_type_list :
column_type_list :
- TIMESTAMP_NTZ
2022-08-10 18:01:21 +00:00
- name : TX_HASH
description : "{{ doc('tx_hash')}}"
2023-08-01 18:12:59 +00:00
tests :
- not_null :
where : _inserted_timestamp <= CURRENT_TIMESTAMP - interval '1 hour'
- dbt_expectations.expect_column_values_to_be_in_type_list :
column_type_list :
- STRING
- VARCHAR
2022-08-10 18:01:21 +00:00
2022-08-12 18:15:09 +00:00
- name : SWAP_ID
description : "{{ doc('swap_id')}}"
2022-08-10 18:01:21 +00:00
2022-08-12 18:15:09 +00:00
- name : PLATFORM
description : "{{ doc('platform')}}"
2022-08-10 18:01:21 +00:00
2022-08-12 18:15:09 +00:00
- name : TRADER
description : "{{ doc('trader')}}"
2022-08-10 18:01:21 +00:00
- name : POOL_ID
description : "{{ doc('pool_id')}}"
- name : TOKEN_IN
description : "{{ doc('token_in')}}"
- name : AMOUNT_IN
description : "{{ doc('amount_in')}}"
- name : TOKEN_OUT
description : "{{ doc('token_out')}}"
- name : AMOUNT_OUT
description : "{{ doc('amount_out')}}"
- name : SWAP_INDEX
description : "{{ doc('swap_index')}}"
2023-07-31 18:26:10 +00:00
- name : _INSERTED_TIMESTAMP
description : "{{ doc('_inserted_timestamp')}}"
2023-12-11 17:34:32 +00:00
- name : DEX_SWAPS_ID
description : "{{doc('id')}}"
- name : INSERTED_TIMESTAMP
description : "{{doc('inserted_timestamp')}}"
- name : MODIFIED_TIMESTAMP
description : "{{doc('modified_timestamp')}}"
- name : _INVOCATION_ID
2023-12-11 18:43:07 +00:00
description : "{{doc('invocation_id')}}"