From 27c9cb4c9b8581018e4f4c0c269a6fcb90b92b72 Mon Sep 17 00:00:00 2001 From: PatelPrinci Date: Thu, 26 Dec 2024 14:32:15 +0530 Subject: [PATCH 1/9] curve code added --- .../platforms/curvefi_base_base_trades.sql | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 dbt_subprojects/dex/models/trades/base/platforms/curvefi_base_base_trades.sql diff --git a/dbt_subprojects/dex/models/trades/base/platforms/curvefi_base_base_trades.sql b/dbt_subprojects/dex/models/trades/base/platforms/curvefi_base_base_trades.sql new file mode 100644 index 00000000000..c3100b3f983 --- /dev/null +++ b/dbt_subprojects/dex/models/trades/base/platforms/curvefi_base_base_trades.sql @@ -0,0 +1,50 @@ +{{ config( + schema = 'curvefi_base', + alias = 'base_trades', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + unique_key = ['block_date', 'blockchain', 'project', 'version', 'tx_hash', 'evt_index'] +) }} + +WITH token_swaps AS ( + SELECT + evt_block_number AS block_number, + CAST(evt_block_time AS timestamp(3) with time zone) AS block_time, + evt_tx_from AS maker, + evt_tx_to AS taker, + tokens_sold AS token_sold_amount_raw, + tokens_bought AS token_bought_amount_raw, + CAST(sold_id AS varbinary) AS token_sold_address, + CAST(bought_id AS varbinary) AS token_bought_address, + contract_address AS project_contract_address, + evt_tx_hash AS tx_hash, + evt_index AS evt_index + FROM + {{ source('curvefi_base', 'StableSwap_evt_TokenExchange') }} + {% if is_incremental() %} + WHERE + {{ incremental_predicate('evt_block_time') }} + {% endif %} +) + +SELECT + 'base' AS blockchain, + 'stablebase' AS project, + '1' AS version, + CAST(date_trunc('month', token_swaps.block_time) AS date) AS block_month, + CAST(date_trunc('day', token_swaps.block_time) AS date) AS block_date, + token_swaps.block_time, + token_swaps.block_number, + token_swaps.token_sold_amount_raw, + token_swaps.token_bought_amount_raw, + token_swaps.token_sold_address, + token_swaps.token_bought_address, + token_swaps.maker, + token_swaps.taker, + token_swaps.project_contract_address, + token_swaps.tx_hash, + token_swaps.evt_index +FROM + token_swaps From 28b8b873618818e4591b85053aaef3edf5b89a7b Mon Sep 17 00:00:00 2001 From: PatelPrinci Date: Thu, 26 Dec 2024 14:50:47 +0530 Subject: [PATCH 2/9] schema data and other info added --- .../dex/models/trades/base/_schema.yml | 17 +++++++++++++++++ .../models/trades/base/dex_base_base_trades.sql | 1 + .../base/platforms/curvefi_base_base_trades.sql | 2 +- dbt_subprojects/dex/seeds/trades/_schema.yml | 15 +++++++++++++++ .../trades/curvefi_base_base_trades_seed.csv | 2 ++ sources/_sector/dex/trades/base/_sources.yml | 3 +++ 6 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv diff --git a/dbt_subprojects/dex/models/trades/base/_schema.yml b/dbt_subprojects/dex/models/trades/base/_schema.yml index fde1b6d7532..0bf11fc608d 100644 --- a/dbt_subprojects/dex/models/trades/base/_schema.yml +++ b/dbt_subprojects/dex/models/trades/base/_schema.yml @@ -58,6 +58,23 @@ models: - check_dex_base_trades_seed: seed_file: ref('stablebase_base_base_trades_seed') + - name: curvefi_base_base_trades + meta: + blockchain: base + sector: dex + project: curvefi + contributors: principatel + config: + tags: ["base", "dex", "trades", "curvefi"] + description: curvefi base trades + data_tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - tx_hash + - evt_index + - check_dex_base_trades_seed: + seed_file: ref('curvefi_base_base_trades_seed') + - name: sushiswap_v1_base_base_trades meta: blockchain: base diff --git a/dbt_subprojects/dex/models/trades/base/dex_base_base_trades.sql b/dbt_subprojects/dex/models/trades/base/dex_base_base_trades.sql index fb04c901264..04120fe29ab 100644 --- a/dbt_subprojects/dex/models/trades/base/dex_base_base_trades.sql +++ b/dbt_subprojects/dex/models/trades/base/dex_base_base_trades.sql @@ -10,6 +10,7 @@ , ref('sushiswap_v1_base_base_trades') , ref('sushiswap_v2_base_base_trades') , ref('stablebase_base_base_trades') + , ref('curvefi_base_base_trades') , ref('aerodrome_base_base_trades') , ref('pancakeswap_v2_base_base_trades') , ref('pancakeswap_v3_base_base_trades') diff --git a/dbt_subprojects/dex/models/trades/base/platforms/curvefi_base_base_trades.sql b/dbt_subprojects/dex/models/trades/base/platforms/curvefi_base_base_trades.sql index c3100b3f983..78327402d2e 100644 --- a/dbt_subprojects/dex/models/trades/base/platforms/curvefi_base_base_trades.sql +++ b/dbt_subprojects/dex/models/trades/base/platforms/curvefi_base_base_trades.sql @@ -31,7 +31,7 @@ WITH token_swaps AS ( SELECT 'base' AS blockchain, - 'stablebase' AS project, + 'curvefi' AS project, '1' AS version, CAST(date_trunc('month', token_swaps.block_time) AS date) AS block_month, CAST(date_trunc('day', token_swaps.block_time) AS date) AS block_date, diff --git a/dbt_subprojects/dex/seeds/trades/_schema.yml b/dbt_subprojects/dex/seeds/trades/_schema.yml index da4c398563d..a2e2592fb6b 100644 --- a/dbt_subprojects/dex/seeds/trades/_schema.yml +++ b/dbt_subprojects/dex/seeds/trades/_schema.yml @@ -4500,6 +4500,21 @@ seeds: token_sold_amount_raw: uint256 block_date: timestamp + - name: curvefi_base_base_trades_seed + config: + column_types: + blockchain: varchar + project: varchar + version: varchar + tx_hash: varbinary + evt_index: uint256 + block_number: uint256 + token_bought_address: varbinary + token_sold_address: varbinary + token_bought_amount_raw: uint256 + token_sold_amount_raw: uint256 + block_date: timestamp + - name: saddle_finance_optimism_base_trades_seed config: column_types: diff --git a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv new file mode 100644 index 00000000000..eb0abaf34e3 --- /dev/null +++ b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv @@ -0,0 +1,2 @@ +blockchain,project,version,block_month,block_date,block_time,block_number,token_sold_amount_raw,token_bought_amount_raw,token_sold_address,token_bought_address,maker,taker,project_contract_address,tx_hash,evt_index +base,curvefi,1,2024-12-01 00:00,2024-12-26 00:00,2024-12-26 07:49,24205005,9999605,9999199,0x0000000000000000000000000000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000000000000000000000000002,0x4f0591ad9662ccd4281f038f1e426d4b56de9004,0x3335733c454805df6a77f825f266e136fb4a3333,0xf6c5f01c7f3148891ad0e19df78743d31e390d1f,0x981ce33560405a8032b17461973cfae2f5a6738ef2c0e6bb10acf570e9e3532b,210 \ No newline at end of file diff --git a/sources/_sector/dex/trades/base/_sources.yml b/sources/_sector/dex/trades/base/_sources.yml index 0bb8805bdcc..a6a909abc55 100644 --- a/sources/_sector/dex/trades/base/_sources.yml +++ b/sources/_sector/dex/trades/base/_sources.yml @@ -175,6 +175,9 @@ sources: - name: stablebase_base tables: - name: SwapFlashLoan_evt_TokenSwap + - name: curvefi_base + tables: + - name: StableSwap_evt_TokenExchange - name: basex_base tables: - name: UniswapV3Pool_evt_Swap From 168ff4a514582ef9e76e9175fe03c12027ac1d64 Mon Sep 17 00:00:00 2001 From: PatelPrinci Date: Thu, 26 Dec 2024 15:07:48 +0530 Subject: [PATCH 3/9] included more data in csv --- .../dex/seeds/trades/curvefi_base_base_trades_seed.csv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv index eb0abaf34e3..5f6d40cb631 100644 --- a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv +++ b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv @@ -1,2 +1,3 @@ blockchain,project,version,block_month,block_date,block_time,block_number,token_sold_amount_raw,token_bought_amount_raw,token_sold_address,token_bought_address,maker,taker,project_contract_address,tx_hash,evt_index -base,curvefi,1,2024-12-01 00:00,2024-12-26 00:00,2024-12-26 07:49,24205005,9999605,9999199,0x0000000000000000000000000000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000000000000000000000000002,0x4f0591ad9662ccd4281f038f1e426d4b56de9004,0x3335733c454805df6a77f825f266e136fb4a3333,0xf6c5f01c7f3148891ad0e19df78743d31e390d1f,0x981ce33560405a8032b17461973cfae2f5a6738ef2c0e6bb10acf570e9e3532b,210 \ No newline at end of file +base,curvefi,1,2024-12-01 00:00,2024-12-26 00:00,2024-12-26 07:49,24205005,9999605,9999199,0x0000000000000000000000000000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000000000000000000000000002,0x4f0591ad9662ccd4281f038f1e426d4b56de9004,0x3335733c454805df6a77f825f266e136fb4a3333,0xf6c5f01c7f3148891ad0e19df78743d31e390d1f,0x981ce33560405a8032b17461973cfae2f5a6738ef2c0e6bb10acf570e9e3532b,210 +base,curvefi,1,2024-12-01 00:00,2024-12-26 00:00,2024-12-26 07:06,24203715,30000000,29999044,0x0000000000000000000000000000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000000000000000000000000001,0x0757c63fa4377f4443e0f3c698dd6db3a0c77fa1,0x0000000000001ff3684f28c67538d4d072c22734,0xf6c5f01c7f3148891ad0e19df78743d31e390d1f,0x66bd7c73c7fddfe059ee16dd2357736f218896cd370727ee68d9b9eeeb5bf260,488 \ No newline at end of file From e366c320a9c4f22a9a6eb35a73dc02546a1e99a9 Mon Sep 17 00:00:00 2001 From: PatelPrinci Date: Thu, 26 Dec 2024 16:01:22 +0530 Subject: [PATCH 4/9] added dex info --- dbt_subprojects/dex/models/dex_info.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/dbt_subprojects/dex/models/dex_info.sql b/dbt_subprojects/dex/models/dex_info.sql index ef08d06f0b5..48f9f6ffef5 100644 --- a/dbt_subprojects/dex/models/dex_info.sql +++ b/dbt_subprojects/dex/models/dex_info.sql @@ -13,6 +13,7 @@ FROM (VALUES ('uniswap', 'Uniswap', 'Direct', 'Uniswap') , ('pancakeswap', 'PancakeSwap', 'Direct', 'PancakeSwap') , ('curve', 'Curve', 'Direct', 'CurveFinance') + , ('curvefi', 'Curve', 'Direct', 'CurveFinance') , ('sushiswap', 'SushiSwap', 'Direct', 'SushiSwap') , ('mdex', 'Mdex', 'Direct', 'Mdextech') , ('dodo', 'DODO', 'Direct & Aggregator', 'BreederDodo') -- To Fix, should be just dodo From b8df5e6f321a61df071cf5e8bc392ed6d4706039 Mon Sep 17 00:00:00 2001 From: PatelPrinci Date: Sat, 4 Jan 2025 12:25:05 +0530 Subject: [PATCH 5/9] token address issue resolved --- .../platforms/curvefi_base_base_trades.sql | 87 +++++++++---------- .../trades/curvefi_base_base_trades_seed.csv | 4 +- 2 files changed, 43 insertions(+), 48 deletions(-) diff --git a/dbt_subprojects/dex/models/trades/base/platforms/curvefi_base_base_trades.sql b/dbt_subprojects/dex/models/trades/base/platforms/curvefi_base_base_trades.sql index 78327402d2e..8f7fc0945eb 100644 --- a/dbt_subprojects/dex/models/trades/base/platforms/curvefi_base_base_trades.sql +++ b/dbt_subprojects/dex/models/trades/base/platforms/curvefi_base_base_trades.sql @@ -1,50 +1,45 @@ -{{ config( - schema = 'curvefi_base', - alias = 'base_trades', - partition_by = ['block_month'], - materialized = 'incremental', - file_format = 'delta', - incremental_strategy = 'merge', - unique_key = ['block_date', 'blockchain', 'project', 'version', 'tx_hash', 'evt_index'] -) }} +{{ + config( + schema = 'curvefi_base', + alias = 'base_trades', + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + unique_key = ['tx_hash', 'evt_index'], + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')] + ) +}} WITH token_swaps AS ( - SELECT - evt_block_number AS block_number, - CAST(evt_block_time AS timestamp(3) with time zone) AS block_time, - evt_tx_from AS maker, - evt_tx_to AS taker, - tokens_sold AS token_sold_amount_raw, - tokens_bought AS token_bought_amount_raw, - CAST(sold_id AS varbinary) AS token_sold_address, - CAST(bought_id AS varbinary) AS token_bought_address, - contract_address AS project_contract_address, - evt_tx_hash AS tx_hash, - evt_index AS evt_index - FROM - {{ source('curvefi_base', 'StableSwap_evt_TokenExchange') }} - {% if is_incremental() %} - WHERE - {{ incremental_predicate('evt_block_time') }} - {% endif %} + SELECT + evt_block_number AS block_number, + TRY_CAST(evt_block_time AS TIMESTAMP(3) WITH TIME ZONE) AS block_time, + evt_tx_from AS maker, + evt_tx_to AS taker, + in_amount AS token_sold_amount_raw, + out_amount AS token_bought_amount_raw, + TRY_CAST(route[1] AS VARBINARY) AS token_sold_address, + TRY_CAST(route[CARDINALITY(route)] AS VARBINARY) AS token_bought_address, + contract_address AS project_contract_address, + evt_tx_hash AS tx_hash, + evt_index AS evt_index + FROM delta_prod.curvefi_base.CurveRouter_evt_Exchange ) - SELECT - 'base' AS blockchain, - 'curvefi' AS project, - '1' AS version, - CAST(date_trunc('month', token_swaps.block_time) AS date) AS block_month, - CAST(date_trunc('day', token_swaps.block_time) AS date) AS block_date, - token_swaps.block_time, - token_swaps.block_number, - token_swaps.token_sold_amount_raw, - token_swaps.token_bought_amount_raw, - token_swaps.token_sold_address, - token_swaps.token_bought_address, - token_swaps.maker, - token_swaps.taker, - token_swaps.project_contract_address, - token_swaps.tx_hash, - token_swaps.evt_index -FROM - token_swaps + 'base' AS blockchain, + 'curve' AS project, + '1' AS version, + TRY_CAST(DATE_TRUNC('month', token_swaps.block_time) AS DATE) AS block_month, + TRY_CAST(DATE_TRUNC('day', token_swaps.block_time) AS DATE) AS block_date, + token_swaps.block_time, + token_swaps.block_number, + token_swaps.token_sold_amount_raw, + token_swaps.token_bought_amount_raw, + token_swaps.token_sold_address, + token_swaps.token_bought_address, + token_swaps.maker, + token_swaps.taker, + token_swaps.project_contract_address, + token_swaps.tx_hash, + token_swaps.evt_index +FROM token_swaps \ No newline at end of file diff --git a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv index 5f6d40cb631..cf8c219a4b9 100644 --- a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv +++ b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv @@ -1,3 +1,3 @@ blockchain,project,version,block_month,block_date,block_time,block_number,token_sold_amount_raw,token_bought_amount_raw,token_sold_address,token_bought_address,maker,taker,project_contract_address,tx_hash,evt_index -base,curvefi,1,2024-12-01 00:00,2024-12-26 00:00,2024-12-26 07:49,24205005,9999605,9999199,0x0000000000000000000000000000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000000000000000000000000002,0x4f0591ad9662ccd4281f038f1e426d4b56de9004,0x3335733c454805df6a77f825f266e136fb4a3333,0xf6c5f01c7f3148891ad0e19df78743d31e390d1f,0x981ce33560405a8032b17461973cfae2f5a6738ef2c0e6bb10acf570e9e3532b,210 -base,curvefi,1,2024-12-01 00:00,2024-12-26 00:00,2024-12-26 07:06,24203715,30000000,29999044,0x0000000000000000000000000000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000000000000000000000000001,0x0757c63fa4377f4443e0f3c698dd6db3a0c77fa1,0x0000000000001ff3684f28c67538d4d072c22734,0xf6c5f01c7f3148891ad0e19df78743d31e390d1f,0x66bd7c73c7fddfe059ee16dd2357736f218896cd370727ee68d9b9eeeb5bf260,488 \ No newline at end of file +base,curve,1,2025-01-01 00:00,2025-01-04 00:00,2025-01-04 03:40,24586349,59108712362989960,97919901691993224,0x4200000000000000000000000000000000000006,0x0000000000000000000000000000000000000000,0x03d9964f4d93a24b58c0fc3a8df3474b59ba8557,0xecd5b452e399e78f852809cd8a03c472947a1a97,0xd6681e74eea20d196c15038c580f721ef2ab6320,0x0a59e47dacd9cc31b4be2b3248649f6249e0972c432e12d546aab85118452503,338 +base,curve,1,2025-01-01 00:00,2025-01-04 00:00,2025-01-04 03:40,24586349,220325936773947988634,65313494323745809,0x8ee73c484a26e0a5df2ee2a4960b789967dd0415,0x0000000000000000000000000000000000000000,0x03d9964f4d93a24b58c0fc3a8df3474b59ba8557,0xecd5b452e399e78f852809cd8a03c472947a1a97,0xd6681e74eea20d196c15038c580f721ef2ab6320,0x0a59e47dacd9cc31b4be2b3248649f6249e0972c432e12d546aab85118452503,325 \ No newline at end of file From 6b49c2c58bc637f13412922a87e9f0965293d471 Mon Sep 17 00:00:00 2001 From: PatelPrinci Date: Sat, 4 Jan 2025 13:40:58 +0530 Subject: [PATCH 6/9] removed seed file data row --- .../dex/seeds/trades/curvefi_base_base_trades_seed.csv | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv index cf8c219a4b9..dce240a48c2 100644 --- a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv +++ b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv @@ -1,3 +1,2 @@ blockchain,project,version,block_month,block_date,block_time,block_number,token_sold_amount_raw,token_bought_amount_raw,token_sold_address,token_bought_address,maker,taker,project_contract_address,tx_hash,evt_index -base,curve,1,2025-01-01 00:00,2025-01-04 00:00,2025-01-04 03:40,24586349,59108712362989960,97919901691993224,0x4200000000000000000000000000000000000006,0x0000000000000000000000000000000000000000,0x03d9964f4d93a24b58c0fc3a8df3474b59ba8557,0xecd5b452e399e78f852809cd8a03c472947a1a97,0xd6681e74eea20d196c15038c580f721ef2ab6320,0x0a59e47dacd9cc31b4be2b3248649f6249e0972c432e12d546aab85118452503,338 -base,curve,1,2025-01-01 00:00,2025-01-04 00:00,2025-01-04 03:40,24586349,220325936773947988634,65313494323745809,0x8ee73c484a26e0a5df2ee2a4960b789967dd0415,0x0000000000000000000000000000000000000000,0x03d9964f4d93a24b58c0fc3a8df3474b59ba8557,0xecd5b452e399e78f852809cd8a03c472947a1a97,0xd6681e74eea20d196c15038c580f721ef2ab6320,0x0a59e47dacd9cc31b4be2b3248649f6249e0972c432e12d546aab85118452503,325 \ No newline at end of file +base,curve,1,2025-01-01 00:00,2025-01-04 00:00,2025-01-04 03:40,24586349,59108712362989960,97919901691993224,0x4200000000000000000000000000000000000006,0x0000000000000000000000000000000000000000,0x03d9964f4d93a24b58c0fc3a8df3474b59ba8557,0xecd5b452e399e78f852809cd8a03c472947a1a97,0xd6681e74eea20d196c15038c580f721ef2ab6320,0x0a59e47dacd9cc31b4be2b3248649f6249e0972c432e12d546aab85118452503,338 \ No newline at end of file From 299abe97bbb9149f3ba9ae59946e626342cae608 Mon Sep 17 00:00:00 2001 From: PatelPrinci Date: Sat, 4 Jan 2025 15:04:57 +0530 Subject: [PATCH 7/9] changed seed file --- .../dex/seeds/trades/curvefi_base_base_trades_seed.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv index dce240a48c2..a29bd682c6f 100644 --- a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv +++ b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv @@ -1,2 +1,2 @@ blockchain,project,version,block_month,block_date,block_time,block_number,token_sold_amount_raw,token_bought_amount_raw,token_sold_address,token_bought_address,maker,taker,project_contract_address,tx_hash,evt_index -base,curve,1,2025-01-01 00:00,2025-01-04 00:00,2025-01-04 03:40,24586349,59108712362989960,97919901691993224,0x4200000000000000000000000000000000000006,0x0000000000000000000000000000000000000000,0x03d9964f4d93a24b58c0fc3a8df3474b59ba8557,0xecd5b452e399e78f852809cd8a03c472947a1a97,0xd6681e74eea20d196c15038c580f721ef2ab6320,0x0a59e47dacd9cc31b4be2b3248649f6249e0972c432e12d546aab85118452503,338 \ No newline at end of file +base,curve,1,2023-11-01 00:00,2023-11-10 00:00,2023-11-10 19:44,6428058,122882329699309325,33427872679240,0x8ee73c484a26e0a5df2ee2a4960b789967dd0415,0x0000000000000000000000000000000000000000,0x0f9dfc33253e6c66ba9ab22f68b5c85cb3487d53,0x5464ff2073bf61a510005e1fa7190a86bb58d797,0xd6681e74eea20d196c15038c580f721ef2ab6320,0xbd8d5469f4c49d5cc4d6c84aa5687b3576c27534d6a632630c90d2331c04099b,18 \ No newline at end of file From c9311407b8add2f922e663ef8e904943e4b57881 Mon Sep 17 00:00:00 2001 From: PatelPrinci Date: Sat, 4 Jan 2025 15:30:59 +0530 Subject: [PATCH 8/9] added unique evt index of tx hash --- .../dex/seeds/trades/curvefi_base_base_trades_seed.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv index a29bd682c6f..197b2bac8b2 100644 --- a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv +++ b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv @@ -1,2 +1,2 @@ blockchain,project,version,block_month,block_date,block_time,block_number,token_sold_amount_raw,token_bought_amount_raw,token_sold_address,token_bought_address,maker,taker,project_contract_address,tx_hash,evt_index -base,curve,1,2023-11-01 00:00,2023-11-10 00:00,2023-11-10 19:44,6428058,122882329699309325,33427872679240,0x8ee73c484a26e0a5df2ee2a4960b789967dd0415,0x0000000000000000000000000000000000000000,0x0f9dfc33253e6c66ba9ab22f68b5c85cb3487d53,0x5464ff2073bf61a510005e1fa7190a86bb58d797,0xd6681e74eea20d196c15038c580f721ef2ab6320,0xbd8d5469f4c49d5cc4d6c84aa5687b3576c27534d6a632630c90d2331c04099b,18 \ No newline at end of file +base,curve,1,2023-10-01 00:00,2023-10-27 00:00,2023-10-27 11:26,5808307,1000000000000000,1779410,0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee,0x0000000000000000000000000000000000000000,0xf4da79f6a6f635b9ebb0e4dcbf0efa781a0c5458,0xd6681e74eea20d196c15038c580f721ef2ab6320,0xd6681e74eea20d196c15038c580f721ef2ab6320,0xae6698965a9a0f0ee7c5491a98c584e9e3fe4f1da554b8248cce4386804b7e8c,49 \ No newline at end of file From 9a57b24cbccc9ea728b1b0250a83685e3385a334 Mon Sep 17 00:00:00 2001 From: PatelPrinci Date: Sat, 4 Jan 2025 15:44:41 +0530 Subject: [PATCH 9/9] added one more row of data --- .../dex/seeds/trades/curvefi_base_base_trades_seed.csv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv index 197b2bac8b2..f88ce7aee64 100644 --- a/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv +++ b/dbt_subprojects/dex/seeds/trades/curvefi_base_base_trades_seed.csv @@ -1,2 +1,3 @@ blockchain,project,version,block_month,block_date,block_time,block_number,token_sold_amount_raw,token_bought_amount_raw,token_sold_address,token_bought_address,maker,taker,project_contract_address,tx_hash,evt_index -base,curve,1,2023-10-01 00:00,2023-10-27 00:00,2023-10-27 11:26,5808307,1000000000000000,1779410,0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee,0x0000000000000000000000000000000000000000,0xf4da79f6a6f635b9ebb0e4dcbf0efa781a0c5458,0xd6681e74eea20d196c15038c580f721ef2ab6320,0xd6681e74eea20d196c15038c580f721ef2ab6320,0xae6698965a9a0f0ee7c5491a98c584e9e3fe4f1da554b8248cce4386804b7e8c,49 \ No newline at end of file +base,curve,1,2023-10-01 00:00,2023-10-27 00:00,2023-10-27 11:26,5808307,1000000000000000,1779410,0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee,0x0000000000000000000000000000000000000000,0xf4da79f6a6f635b9ebb0e4dcbf0efa781a0c5458,0xd6681e74eea20d196c15038c580f721ef2ab6320,0xd6681e74eea20d196c15038c580f721ef2ab6320,0xae6698965a9a0f0ee7c5491a98c584e9e3fe4f1da554b8248cce4386804b7e8c,49 +base,curve,1,2024-05-01 00:00,2024-05-15 00:00,2024-05-15 17:56,14503217,6400000000000000,6399999999999999,0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee,0x0000000000000000000000000000000000000000,0x183fd1e6cbcd1d23850712844eff23aec9f07021,0xd6681e74eea20d196c15038c580f721ef2ab6320,0xd6681e74eea20d196c15038c580f721ef2ab6320,0xc6e98b0bb918f079b901361ed0fe758e6ae2c2e4f02b26f9e8941f16b46dead7,105