From 11a07f4d063048de73bf2db9d984fbb02ca55501 Mon Sep 17 00:00:00 2001 From: 0xRob <83790096+0xRobin@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:35:51 +0100 Subject: [PATCH 1/7] Fix for kyberswap aggregator: ignore 1 specific token (#7352) * ignore 1 specific token * syntax --- .../kyberswap_aggregator_avalanche_c_trades.sql | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dbt_subprojects/dex/models/_projects/kyberswap/avalanche_c/kyberswap_aggregator_avalanche_c_trades.sql b/dbt_subprojects/dex/models/_projects/kyberswap/avalanche_c/kyberswap_aggregator_avalanche_c_trades.sql index 635d3fb2724..2061a3ddc8b 100644 --- a/dbt_subprojects/dex/models/_projects/kyberswap/avalanche_c/kyberswap_aggregator_avalanche_c_trades.sql +++ b/dbt_subprojects/dex/models/_projects/kyberswap/avalanche_c/kyberswap_aggregator_avalanche_c_trades.sql @@ -1,6 +1,6 @@ {{ config ( - + schema = 'kyberswap_aggregator_avalanche_c', alias = 'trades', partition_by = ['block_month'], @@ -36,8 +36,11 @@ WITH meta_router AS ,ARRAY[-1] AS trace_address FROM {{ source('kyber_avalanche_c', 'MetaAggregationRouterV2_evt_Swapped') }} + WHERE 0x250f8f7750735e3ab5dc9db3a542f6b71999ed38 not in (dstToken, srcToken) + -- There are 2 weird transactions with this token where the return and spent amounts in the event are not correct + -- these result in inflated volume, so we'll ignore this token in any trades. {% if is_incremental() %} - WHERE evt_block_time >= date_trunc('day', now() - INTERVAL '7' DAY) + AND evt_block_time >= date_trunc('day', now() - INTERVAL '7' DAY) {% endif %} ) SELECT From dbf8c8675eda2be5b1f7518892a159ef3939c103 Mon Sep 17 00:00:00 2001 From: Peter <49856481+peterrliem@users.noreply.github.com> Date: Fri, 20 Dec 2024 00:07:44 +0800 Subject: [PATCH 2/7] Add Sovrun to ethereum tokens (#7345) * Update prices_ethereum_tokens.sql Add SOVRUN token * Update prices_ethereum_tokens.sql --- .../tokens/models/prices/ethereum/prices_ethereum_tokens.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbt_subprojects/tokens/models/prices/ethereum/prices_ethereum_tokens.sql b/dbt_subprojects/tokens/models/prices/ethereum/prices_ethereum_tokens.sql index 78c535ee76b..61dafea3763 100644 --- a/dbt_subprojects/tokens/models/prices/ethereum/prices_ethereum_tokens.sql +++ b/dbt_subprojects/tokens/models/prices/ethereum/prices_ethereum_tokens.sql @@ -1870,7 +1870,8 @@ FROM ('sigma2-sigma', 'ethereum', 'SIGMA', 0x18a8D75F70eAEad79B5A55903D036ce337F623A5, 18), ('mstr-mstr2100', 'ethereum', 'MSTR', 0x42069026EAC8Eee0Fd9b5f7aDFa4f6E6D69a2B39, 9), ('usdl-lift-dollar', 'ethereum', 'USDL', 0xbdC7c08592Ee4aa51D06C27Ee23D5087D65aDbcD, 18), - ('usr-resolv-usr', 'ethereum', 'USR', 0x66a1e37c9b0eaddca17d3662d6c05f4decf3e110, 18) + ('usr-resolv-usr', 'ethereum', 'USR', 0x66a1e37c9b0eaddca17d3662d6c05f4decf3e110, 18), + ('sovrn-sovrun','ethereum', 'SOVRN', 0x031B8d752d73d7Fe9678ACEf26e818280D0646b4, 18) ) as temp (token_id, blockchain, symbol, contract_address, decimals) where contract_address not in ( -- bad price feeds From 8b0b3ae9a21305ce0b42e4c9572eed244486b932 Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Thu, 19 Dec 2024 16:08:00 +0000 Subject: [PATCH 3/7] Add COW Token on Base (#7347) --- .../tokens/models/tokens/base/tokens_base_erc20.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbt_subprojects/tokens/models/tokens/base/tokens_base_erc20.sql b/dbt_subprojects/tokens/models/tokens/base/tokens_base_erc20.sql index a7feaeee8e3..ca5c1937e5b 100644 --- a/dbt_subprojects/tokens/models/tokens/base/tokens_base_erc20.sql +++ b/dbt_subprojects/tokens/models/tokens/base/tokens_base_erc20.sql @@ -409,5 +409,6 @@ FROM (VALUES , (0x5f7373Fa845692b1dD7bfaE576D6c743482bf26a, 'CLARK', 18) , (0xBAa5CC21fd487B8Fcc2F632f3F4E8D37262a0842, 'MORPHO', 18) , (0xCA5d8F8a8d49439357d3CF46Ca2e720702F132b8, 'GYD', 18) - , (0xC0D3700000987C99b3C9009069E4f8413fD22330, 'cdxUSD', 18) + , (0xC0D3700000987C99b3C9009069E4f8413fD22330, 'cdxUSD', 18) + , (0xc694a91e6b071bf030a18bd3053a7fe09b6dae69, 'COW', 18) ) AS temp_table (contract_address, symbol, decimals) From 8e5a985496bbb473df0430df071f0bdf3493ce90 Mon Sep 17 00:00:00 2001 From: Jacob Sharples <45126111+JacobSharples@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:08:11 -0500 Subject: [PATCH 4/7] Update prices_base_tokens.sql (#7349) * Update prices_base_tokens.sql * Update prices_base_tokens.sql * Update prices_base_tokens.sql --- .../tokens/models/prices/base/prices_base_tokens.sql | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dbt_subprojects/tokens/models/prices/base/prices_base_tokens.sql b/dbt_subprojects/tokens/models/prices/base/prices_base_tokens.sql index 2cc0457de62..00c4e28e4b5 100644 --- a/dbt_subprojects/tokens/models/prices/base/prices_base_tokens.sql +++ b/dbt_subprojects/tokens/models/prices/base/prices_base_tokens.sql @@ -193,5 +193,15 @@ FROM ('alb-alienbase', 'base', 'ALB',0x1dd2d631c92b1acdfcdd51a0f7145a50130050c4, 18), ('clark-coinbase-mascot','base','CLARK',0x5f7373Fa845692b1dD7bfaE576D6c743482bf26a, 18), ('gyd-gyro-dollar','base','GYD',0xca5d8f8a8d49439357d3cf46ca2e720702f132b8, 18), - ('virtual-virtual-protocol', 'base', 'VIRTUAL', 0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1b, 18) + ('virtual-virtual-protocol', 'base', 'VIRTUAL', 0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1b, 18), + ('bomb-fbomb', 'base', 'BOMB', 0x74ccbe53f77b08632ce0cb91d3a545bf6b8e0979, 18), + ('play9-play', 'base', 'PLAY', 0x7404ac09adf614603d9c16a7ce85a1101f3514ba, 18), + ('champ-super-champs', 'base', 'CHAMP', 0xeb6d78148f001f3aa2f588997c5e102e489ad341, 18), + ('euroc-euro-coin', 'base', 'EURC', 0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42, 6), + ('fai-freysa', 'base', 'FAI', 0xb33ff54b9f7242ef1593d2c9bcd8f9df46c77935, 18), + ('ogn-origin-protocol', 'base', 'OGN', 0x7002458b1df59eccb57387bc79ffc7c29e22e6f7, 18), + ('usdt-tether', 'base', 'USDT', 0xfde4c96c8593536e31f229ea8f37b2ada2699bb2, 6), + ('klima-klimadao', 'base', 'KLIMA', 0xdcefd8c8fcc492630b943abcab3429f12ea9fea2, 9), + ('yfi-yearnfinance', 'base', 'YFI', 0x9eaf8c1e34f05a589eda6bafdf391cf6ad3cb239, 18) + --('well-moonwell' ,'base', 'WELL', 0xa88594d404727625a9437c3f886c7643872296ae, 18) ) as temp (token_id, blockchain, symbol, contract_address, decimals) From 937765c00a24b8e9cf3b7196281e64c7eb2c87c4 Mon Sep 17 00:00:00 2001 From: Lydia Puspita <113081740+lydiapuspita@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:08:21 +0700 Subject: [PATCH 5/7] Add HYPE, TANK, MEMESAI, GRIFT, GRIFFAIN, and FXN token price (#7353) * Update prices_native_tokens.sql Add HYPE token price * Update prices_solana_tokens.sql Add TANK, MEMESAI, GRIFT, GRIFFAIN, and FXN token price --------- Co-authored-by: Huang Geyang --- .../tokens/models/prices/prices_native_tokens.sql | 3 ++- .../tokens/models/prices/solana/prices_solana_tokens.sql | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dbt_subprojects/tokens/models/prices/prices_native_tokens.sql b/dbt_subprojects/tokens/models/prices/prices_native_tokens.sql index 978c1669a8c..e7bc5483e81 100644 --- a/dbt_subprojects/tokens/models/prices/prices_native_tokens.sql +++ b/dbt_subprojects/tokens/models/prices/prices_native_tokens.sql @@ -88,5 +88,6 @@ FROM ('ton-toncoin', null, 'TON', null,null), ('strk-starknet', null, 'STRK', null,null), ('kda-kadena', null, 'KDA', null, null), - ('ron-ronin-token', null, 'RON', null, null) + ('ron-ronin-token', null, 'RON', null, null), + ('hype-hyperliquid', null, 'HYPE', null, null) ) as temp (token_id, blockchain, symbol, contract_address, decimals) diff --git a/dbt_subprojects/tokens/models/prices/solana/prices_solana_tokens.sql b/dbt_subprojects/tokens/models/prices/solana/prices_solana_tokens.sql index 6feb9cdbd4d..9ba81a4fa10 100644 --- a/dbt_subprojects/tokens/models/prices/solana/prices_solana_tokens.sql +++ b/dbt_subprojects/tokens/models/prices/solana/prices_solana_tokens.sql @@ -710,5 +710,10 @@ FROM ('goat-goatseus-maximus', 'solana', 'GOAT', 'CzLSujWBLFsSjncfkh59rUFqvafWcY5tzedWJSuypump', 6), ('fwog-fwog', 'solana', 'FWOG', 'A8C3xuqscfmyLrte3VmTqrAq8kgMASius9AFNANwpump', 6), ('lester-litecoin-mascot', 'solana', 'LESTER', '5z3iCe53hUANTiG8Js8RjHNE2Arjik7L2CXLyr2rpump', 6), - ('happy-happycat', 'solana', 'HAPPY', 'HAPPYwgFcjEJDzRtfWE6tiHE9zGdzpNky2FvjPHsvvGZ', 9) + ('happy-happycat', 'solana', 'HAPPY', 'HAPPYwgFcjEJDzRtfWE6tiHE9zGdzpNky2FvjPHsvvGZ', 9), + ('memesai-memes-ai', 'solana', 'MEMESAI', '39qibQxVzemuZTEvjSB7NePhw9WyyHdQCqP8xmBMpump', 6), + ('grift1-orbit', 'solana', 'GRIFT', 'GekTNfm84QfyP2GdAHZ5AgACBRd69aNmgA5FDhZupump', 6), + ('fxn-fxn', 'solana', 'FXN', '92cRC6kV5D7TiHX1j56AbkPbffo9jwcXxSDQZ8Mopump',6), + ('griffain-test-griffaincom', 'solana', 'GRIFFAIN', 'KENJSUYLASHUMfHyy5o4Hp2FdNqZg1AsUPhfH2kYvEP', 6), + ('tank-agenttank', 'solana', 'TANK', 'GAMwtMB6onAvBNBQJCJFuxoaqfPH8uCQ2dewNMVVpump', 6) ) as temp (token_id, blockchain, symbol, contract_address, decimals) From 97074e0ab42cc7fa67af2c077fbbc5d69f01a432 Mon Sep 17 00:00:00 2001 From: viniabussafi <131974393+viniabussafi@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:08:29 +0000 Subject: [PATCH 6/7] Update tokens_ethereum_erc20.sql (#7356) --- .../tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/dbt_subprojects/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql b/dbt_subprojects/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql index 96bf183c18c..c83ece387c6 100644 --- a/dbt_subprojects/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql +++ b/dbt_subprojects/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql @@ -4740,4 +4740,5 @@ FROM (VALUES , ( 0xa4f6b2cdcb67bf8f48baa459a333d2667aa4b100, 'shezETH', 8) , ( 0x7F4B66FF703336CfC35b901144614496Ae0b0D27, 'shezUSD', 18) , ( 0xa7b66dda0d7c7c1e43d3130491216172993d163d, 'EVS', 6) + , ( 0x2371e134e3455e0593363cbf89d3b6cf53740618, 'gtWETH', 18) ) AS temp_table (contract_address, symbol, decimals) From 52365499faac1ed8c57044b2dc7fa15a35a50673 Mon Sep 17 00:00:00 2001 From: Huang Geyang Date: Fri, 20 Dec 2024 00:08:49 +0800 Subject: [PATCH 7/7] Init ton source (#7342) --- .../_base_sources/other/ton_base_sources.yml | 920 ++++++++++++++++++ 1 file changed, 920 insertions(+) create mode 100644 sources/_base_sources/other/ton_base_sources.yml diff --git a/sources/_base_sources/other/ton_base_sources.yml b/sources/_base_sources/other/ton_base_sources.yml new file mode 100644 index 00000000000..55770d278b7 --- /dev/null +++ b/sources/_base_sources/other/ton_base_sources.yml @@ -0,0 +1,920 @@ +version: 2 + +sources: + - name: ton + description: "TON blockchain raw data tables" + freshness: + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } + tables: + - name: blocks + loaded_at_field: ingested_at + description: "TON blockchain blocks" + columns: + - name: block_time + description: "Block timestamp" + tests: + - not_null + data_type: timestamp + + - name: block_date + description: "Block date" + tests: + - not_null + data_type: date + + - name: workchain + description: "Workchain identifier" + data_type: integer + + - name: shard + description: "Shard identifier" + data_type: bigint + + - name: seqno + description: "Block sequence number" + data_type: integer + + - name: root_hash + description: "Root hash of the block" + data_type: varchar + + - name: file_hash + description: "File hash of the block" + data_type: varchar + + - name: mc_block_workchain + description: "Masterchain block workchain" + data_type: integer + + - name: mc_block_shard + description: "Masterchain block shard" + data_type: bigint + + - name: mc_block_seqno + description: "Masterchain block sequence number" + data_type: integer + + - name: global_id + description: "Global identifier" + data_type: integer + + - name: version + description: "Block version" + data_type: integer + + - name: after_merge + description: "Flag indicating if block is after merge" + data_type: boolean + + - name: before_split + description: "Flag indicating if block is before split" + data_type: boolean + + - name: after_split + description: "Flag indicating if block is after split" + data_type: boolean + + - name: want_merge + description: "Flag indicating if block wants to merge" + data_type: boolean + + - name: want_split + description: "Flag indicating if block wants to split" + data_type: boolean + + - name: key_block + description: "Flag indicating if block is a key block" + data_type: boolean + + - name: vert_seqno_incr + description: "Vertical sequence number increment flag" + data_type: boolean + + - name: flags + description: "Block flags" + data_type: integer + + - name: gen_utime + description: "Generation unix time" + data_type: bigint + + - name: start_lt + description: "Start logical time" + data_type: bigint + + - name: end_lt + description: "End logical time" + data_type: bigint + + - name: validator_list_hash_short + description: "Short hash of validator list" + data_type: integer + + - name: gen_catchain_seqno + description: "Generation catchain sequence number" + data_type: integer + + - name: min_ref_mc_seqno + description: "Minimum reference masterchain sequence number" + data_type: integer + + - name: prev_key_block_seqno + description: "Previous key block sequence number" + data_type: integer + + - name: vert_seqno + description: "Vertical sequence number" + data_type: integer + + - name: master_ref_seqno + description: "Master reference sequence number" + data_type: integer + + - name: rand_seed + description: "Random seed" + data_type: varchar + + - name: created_by + description: "Block creator address" + data_type: varchar + + - name: tx_count + description: "Number of transactions in block" + data_type: integer + + - name: updated_at + description: "Last update timestamp" + data_type: timestamp + + - name: ingested_at + description: "Time at which the block was ingested" + data_type: timestamp + + - name: messages + loaded_at_field: ingested_at + description: "TON blockchain messages" + columns: + - name: block_time + description: "Block timestamp" + data_type: timestamp + + - name: block_date + description: "Block date" + data_type: date + + - name: tx_hash + description: "Transaction hash" + data_type: varchar + + - name: tx_lt + description: "Transaction logical time" + data_type: bigint + + - name: tx_now + description: "Transaction timestamp" + data_type: integer + + - name: msg_hash + description: "Message hash" + data_type: varchar + + - name: direction + description: "Message direction" + data_type: varchar + + - name: trace_id + description: "Trace identifier" + data_type: varchar + + - name: source + description: "Source address" + data_type: varchar + + - name: destination + description: "Destination address" + data_type: varchar + + - name: value + description: "Message value" + data_type: bigint + + - name: fwd_fee + description: "Forward fee" + data_type: bigint + + - name: ihr_fee + description: "IHR fee" + data_type: bigint + + - name: created_lt + description: "Creation logical time" + data_type: bigint + + - name: created_at + description: "Creation timestamp" + data_type: bigint + + - name: opcode + description: "Operation code" + data_type: integer + + - name: ihr_disabled + description: "IHR disabled flag" + data_type: boolean + + - name: bounce + description: "Bounce flag" + data_type: boolean + + - name: bounced + description: "Bounced flag" + data_type: boolean + + - name: import_fee + description: "Import fee" + data_type: bigint + + - name: body_hash + description: "Message body hash" + data_type: varchar + + - name: body_boc + description: "Message body BOC" + data_type: varbinary + + - name: comment + description: "Message comment" + data_type: varchar + + - name: init_state_hash + description: "Initial state hash" + data_type: varchar + + - name: init_state_boc + description: "Initial state BOC" + data_type: varbinary + + - name: updated_at + description: "Last update timestamp" + data_type: timestamp + + - name: ingested_at + description: "Time at which the message was ingested" + data_type: timestamp + + - name: transactions + loaded_at_field: ingested_at + description: "TON blockchain transactions" + columns: + - name: block_time + description: "Block timestamp" + data_type: timestamp + + - name: block_date + description: "Block date" + data_type: date + + - name: account + description: "Account address" + data_type: varchar + + - name: hash + description: "Transaction hash" + data_type: varchar + + - name: lt + description: "Logical time" + data_type: bigint + + - name: block_workchain + description: "Block workchain identifier" + data_type: integer + + - name: block_shard + description: "Block shard identifier" + data_type: bigint + + - name: block_seqno + description: "Block sequence number" + data_type: integer + + - name: mc_block_seqno + description: "Masterchain block sequence number" + data_type: integer + + - name: trace_id + description: "Trace identifier" + data_type: varchar + + - name: prev_trans_hash + description: "Previous transaction hash" + data_type: varchar + + - name: prev_trans_lt + description: "Previous transaction logical time" + data_type: bigint + + - name: now + description: "Transaction timestamp" + data_type: integer + + - name: orig_status + description: "Original status" + data_type: varchar + + - name: end_status + description: "End status" + data_type: varchar + + - name: total_fees + description: "Total transaction fees" + data_type: bigint + + - name: account_state_hash_before + description: "Account state hash before transaction" + data_type: varchar + + - name: account_state_hash_after + description: "Account state hash after transaction" + data_type: varchar + + - name: account_state_code_hash_before + description: "Account state code hash before transaction" + data_type: varchar + + - name: account_state_code_hash_after + description: "Account state code hash after transaction" + data_type: varchar + + - name: account_state_balance_before + description: "Account balance before transaction" + data_type: bigint + + - name: account_state_balance_after + description: "Account balance after transaction" + data_type: bigint + + - name: descr + description: "Transaction description" + data_type: varchar + + - name: aborted + description: "Transaction aborted flag" + data_type: boolean + + - name: destroyed + description: "Account destroyed flag" + data_type: boolean + + - name: credit_first + description: "Credit first flag" + data_type: boolean + + - name: is_tock + description: "Is tock transaction flag" + data_type: boolean + + - name: installed + description: "Code installed flag" + data_type: boolean + + - name: storage_fees_collected + description: "Storage fees collected" + data_type: bigint + + - name: storage_fees_due + description: "Storage fees due" + data_type: bigint + + - name: storage_status_change + description: "Storage status change" + data_type: varchar + + - name: credit_due_fees_collected + description: "Credit due fees collected" + data_type: bigint + + - name: credit + description: "Credit amount" + data_type: bigint + + - name: compute_skipped + description: "Compute phase skipped flag" + data_type: boolean + + - name: skipped_reason + description: "Reason for skipping compute phase" + data_type: varchar + + - name: compute_success + description: "Compute phase success flag" + data_type: boolean + + - name: compute_msg_state_used + description: "Message state used in compute phase" + data_type: boolean + + - name: compute_account_activated + description: "Account activated in compute phase" + data_type: boolean + + - name: compute_gas_fees + description: "Gas fees in compute phase" + data_type: bigint + + - name: compute_gas_used + description: "Gas used in compute phase" + data_type: bigint + + - name: compute_gas_limit + description: "Gas limit in compute phase" + data_type: bigint + + - name: compute_gas_credit + description: "Gas credit in compute phase" + data_type: bigint + + - name: compute_mode + description: "Compute phase mode" + data_type: integer + + - name: compute_exit_code + description: "Compute phase exit code" + data_type: integer + + - name: compute_exit_arg + description: "Compute phase exit argument" + data_type: integer + + - name: compute_vm_steps + description: "VM steps in compute phase" + data_type: bigint + + - name: compute_vm_init_state_hash + description: "VM initial state hash" + data_type: varchar + + - name: compute_vm_final_state_hash + description: "VM final state hash" + data_type: varchar + + - name: action_success + description: "Action phase success flag" + data_type: boolean + + - name: action_valid + description: "Action phase validity flag" + data_type: boolean + + - name: action_no_funds + description: "No funds for action phase flag" + data_type: boolean + + - name: action_status_change + description: "Action phase status change" + data_type: varchar + + - name: action_total_fwd_fees + description: "Total forward fees in action phase" + data_type: bigint + + - name: action_total_action_fees + description: "Total action fees" + data_type: bigint + + - name: action_result_code + description: "Action phase result code" + data_type: integer + + - name: action_result_arg + description: "Action phase result argument" + data_type: integer + + - name: action_tot_actions + description: "Total number of actions" + data_type: integer + + - name: action_spec_actions + description: "Number of special actions" + data_type: integer + + - name: action_skipped_actions + description: "Number of skipped actions" + data_type: integer + + - name: action_msgs_created + description: "Number of messages created" + data_type: integer + + - name: action_action_list_hash + description: "Action list hash" + data_type: varchar + + - name: action_tot_msg_size_cells + description: "Total message size in cells" + data_type: bigint + + - name: action_tot_msg_size_bits + description: "Total message size in bits" + data_type: bigint + + - name: bounce + description: "Bounce status" + data_type: varchar + + - name: bounce_msg_size_cells + description: "Bounce message size in cells" + data_type: bigint + + - name: bounce_msg_size_bits + description: "Bounce message size in bits" + data_type: bigint + + - name: bounce_req_fwd_fees + description: "Required forward fees for bounce" + data_type: bigint + + - name: bounce_msg_fees + description: "Bounce message fees" + data_type: bigint + + - name: bounce_fwd_fees + description: "Bounce forward fees" + data_type: bigint + + - name: split_info_cur_shard_pfx_len + description: "Current shard prefix length" + data_type: integer + + - name: split_info_acc_split_depth + description: "Account split depth" + data_type: integer + + - name: split_info_this_addr + description: "This address in split info" + data_type: varchar + + - name: split_info_sibling_addr + description: "Sibling address in split info" + data_type: varchar + + - name: updated_at + description: "Last update timestamp" + data_type: timestamp + + - name: ingested_at + description: "Time at which the transaction was ingested" + data_type: timestamp + + - name: dex_pools + loaded_at_field: ingested_at + description: "TON DEX pools information" + columns: + - name: block_time + description: "Block timestamp" + data_type: timestamp + + - name: block_date + description: "Block date" + data_type: date + + - name: pool + description: "Pool address" + data_type: varchar + + - name: project + description: "DEX project name" + data_type: varchar + + - name: version + description: "DEX version" + data_type: integer + + - name: discovered_at + description: "Pool discovery timestamp" + data_type: integer + + - name: jetton_left + description: "Left token address" + data_type: varchar + + - name: jetton_right + description: "Right token address" + data_type: varchar + + - name: reserves_left + description: "Left token reserves" + data_type: decimal(38,0) + + - name: reserves_right + description: "Right token reserves" + data_type: decimal(38,0) + + - name: total_supply + description: "Total supply of LP tokens" + data_type: decimal(38,0) + + - name: tvl_usd + description: "Total value locked in USD" + data_type: decimal(20,6) + + - name: tvl_ton + description: "Total value locked in TON" + data_type: decimal(20,9) + + - name: last_updated + description: "Last update timestamp" + data_type: integer + + - name: is_liquid + description: "Liquidity status flag" + data_type: boolean + + - name: lp_fee + description: "LP fee percentage" + data_type: decimal(12,10) + + - name: protocol_fee + description: "Protocol fee percentage" + data_type: decimal(12,10) + + - name: referral_fee + description: "Referral fee percentage" + data_type: decimal(12,10) + + - name: updated_at + description: "Last update timestamp" + data_type: timestamp + + - name: ingested_at + description: "Time at which the pool data was ingested" + data_type: timestamp + + - name: dex_trades + loaded_at_field: ingested_at + description: "TON DEX trades information" + columns: + - name: block_time + description: "Block timestamp" + data_type: timestamp + + - name: block_date + description: "Block date" + data_type: date + + - name: tx_hash + description: "Transaction hash" + data_type: varchar + + - name: trace_id + description: "Trace identifier" + data_type: varchar + + - name: project_type + description: "Project type" + data_type: varchar + + - name: project + description: "DEX project name" + data_type: varchar + + - name: version + description: "DEX version" + data_type: integer + + - name: event_time + description: "Event timestamp" + data_type: integer + + - name: event_type + description: "Event type" + data_type: varchar + + - name: trader_address + description: "Trader address" + data_type: varchar + + - name: pool_address + description: "Pool address" + data_type: varchar + + - name: router_address + description: "Router address" + data_type: varchar + + - name: token_sold_address + description: "Sold token address" + data_type: varchar + + - name: token_bought_address + description: "Bought token address" + data_type: varchar + + - name: amount_sold_raw + description: "Raw amount of tokens sold" + data_type: decimal(38,0) + + - name: amount_bought_raw + description: "Raw amount of tokens bought" + data_type: decimal(38,0) + + - name: referral_address + description: "Referral address" + data_type: varchar + + - name: platform_tag + description: "Platform tag" + data_type: varchar + + - name: query_id + description: "Query identifier" + data_type: decimal(20,0) + + - name: volume_usd + description: "Trade volume in USD" + data_type: decimal(20,6) + + - name: volume_ton + description: "Trade volume in TON" + data_type: decimal(20,9) + + - name: updated_at + description: "Last update timestamp" + data_type: timestamp + + - name: ingested_at + description: "Time at which the trade was ingested" + data_type: timestamp + + - name: jetton_events + loaded_at_field: ingested_at + description: "TON jetton events" + columns: + - name: block_time + description: "Block timestamp" + data_type: timestamp + + - name: block_date + description: "Block date" + data_type: date + + - name: type + description: "Event type" + data_type: varchar + + - name: tx_hash + description: "Transaction hash" + data_type: varchar + + - name: tx_lt + description: "Transaction logical time" + data_type: bigint + + - name: utime + description: "Unix timestamp" + data_type: integer + + - name: trace_id + description: "Trace identifier" + data_type: varchar + + - name: tx_aborted + description: "Transaction aborted flag" + data_type: boolean + + - name: query_id + description: "Query identifier" + data_type: decimal(20,0) + + - name: amount + description: "Token amount" + data_type: decimal(38,0) + + - name: source + description: "Source address" + data_type: varchar + + - name: destination + description: "Destination address" + data_type: varchar + + - name: jetton_wallet + description: "Jetton wallet address" + data_type: varchar + + - name: jetton_master + description: "Jetton master contract address" + data_type: varchar + + - name: response_destination + description: "Response destination address" + data_type: varchar + + - name: custom_payload + description: "Custom payload data" + data_type: varbinary + + - name: forward_ton_amount + description: "Forward TON amount" + data_type: decimal(38,0) + + - name: forward_payload + description: "Forward payload data" + data_type: varbinary + + - name: comment + description: "Event comment" + data_type: varchar + + - name: updated_at + description: "Last update timestamp" + data_type: timestamp + + - name: ingested_at + description: "Time at which the event was ingested" + data_type: timestamp + + - name: jetton_metadata + loaded_at_field: ingested_at + description: "TON jetton metadata" + columns: + - name: address + description: "Jetton address" + data_type: varchar + + - name: update_time_onchain + description: "On-chain update timestamp" + data_type: integer + + - name: update_time_metadata + description: "Metadata update timestamp" + data_type: integer + + - name: mintable + description: "Mintable flag" + data_type: boolean + + - name: admin_address + description: "Admin address" + data_type: varchar + + - name: jetton_content_onchain + description: "On-chain jetton content" + data_type: varchar + + - name: jetton_wallet_code_hash + description: "Jetton wallet code hash" + data_type: varchar + + - name: code_hash + description: "Contract code hash" + data_type: varchar + + - name: metadata_status + description: "Metadata status" + data_type: integer + + - name: symbol + description: "Token symbol" + data_type: varchar + + - name: name + description: "Token name" + data_type: varchar + + - name: description + description: "Token description" + data_type: varchar + + - name: image + description: "Token image URL" + data_type: varchar + + - name: image_data + description: "Token image data" + data_type: varchar + + - name: decimals + description: "Token decimals" + data_type: integer + + - name: sources + description: "Original metadata sources" + data_type: row(symbol varchar, name varchar, description varchar, image varchar, image_data varchar, decimals varchar) + + - name: tonapi_image_url + description: "TON API image URL" + data_type: varchar + + - name: adding_date + description: "Token adding timestamp" + data_type: integer + + - name: updated_at + description: "Last update timestamp" + data_type: timestamp + + - name: ingested_at + description: "Time at which the metadata was ingested" + data_type: timestamp