From cf3c56e3a8490642239872ec052618818b7dc033 Mon Sep 17 00:00:00 2001 From: sandeshsk12 Date: Sat, 27 Sep 2025 00:32:21 +0530 Subject: [PATCH 1/5] compiled files checked. Generating seed next --- .../_sector/lending/borrow/plasma/_schema.yml | 126 ++++++++++++++++++ .../plasma/lending_plasma_base_borrow.sql | 39 ++++++ .../platforms/aave_v3_plasma_base_borrow.sql | 20 +++ .../lending/flashloans/plasma/_schema.yml | 107 +++++++++++++++ .../plasma/lending_plasma_base_flashloans.sql | 35 +++++ .../aave_v3_plasma_base_flashloans.sql | 20 +++ .../_sector/lending/supply/plasma/_schema.yml | 126 ++++++++++++++++++ .../plasma/lending_plasma_base_supply.sql | 38 ++++++ .../platforms/aave_v3_plasma_base_supply.sql | 22 +++ .../seeds/_sector/lending/_schema.yml | 41 ++++++ .../lending/borrow/plasma/_sources.yml | 11 ++ .../lending/flashloans/plasma/_sources.yml | 7 + .../lending/supply/plasma/_sources.yml | 10 ++ 13 files changed, 602 insertions(+) create mode 100644 dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/_schema.yml create mode 100644 dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/lending_plasma_base_borrow.sql create mode 100644 dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/platforms/aave_v3_plasma_base_borrow.sql create mode 100644 dbt_subprojects/hourly_spellbook/models/_sector/lending/flashloans/plasma/_schema.yml create mode 100644 dbt_subprojects/hourly_spellbook/models/_sector/lending/flashloans/plasma/lending_plasma_base_flashloans.sql create mode 100644 dbt_subprojects/hourly_spellbook/models/_sector/lending/flashloans/plasma/platforms/aave_v3_plasma_base_flashloans.sql create mode 100644 dbt_subprojects/hourly_spellbook/models/_sector/lending/supply/plasma/_schema.yml create mode 100644 dbt_subprojects/hourly_spellbook/models/_sector/lending/supply/plasma/lending_plasma_base_supply.sql create mode 100644 dbt_subprojects/hourly_spellbook/models/_sector/lending/supply/plasma/platforms/aave_v3_plasma_base_supply.sql create mode 100644 sources/_sector/lending/borrow/plasma/_sources.yml create mode 100644 sources/_sector/lending/flashloans/plasma/_sources.yml create mode 100644 sources/_sector/lending/supply/plasma/_sources.yml diff --git a/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/_schema.yml b/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/_schema.yml new file mode 100644 index 00000000000..e98d8490e5c --- /dev/null +++ b/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/_schema.yml @@ -0,0 +1,126 @@ +version: 2 + +models: + - name: lending_plasma_base_borrow + meta: + blockchain: plasma + sector: lending + project: aave, compound + contributors: 0xsandeshk + config: + tags: ['lending', 'borrow', 'aave', 'compound', 'plasma'] + description: "Aave v1 borrow transactions on Ethereum" + data_tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - transaction_type + - token_address + - tx_hash + - evt_index + columns: + - &blockchain + name: blockchain + description: "Blockchain name" + data_tests: + - not_null + - &project + name: project + description: "Project name" + data_tests: + - not_null + - &version + name: version + description: "Version of the contract built and deployed by the lending project" + data_tests: + - not_null + - &transaction_type + name: transaction_type + description: "Transaction type" + data_tests: + - not_null + - &token_address + name: token_address + description: "Token contract address" + data_tests: + - not_null + - &borrower + name: borrower + description: "Borrower wallet address" + - &on_behalf_of + name: on_behalf_of + description: "Wallet address tx was executed on behalf of" + - &repayer + name: repayer + description: "Repayer wallet address" + - &liquidator + name: liquidator + description: "Liquidator wallet address" + - &amount + name: amount + description: "Token amount present in the transaction" + - &block_month + name: block_month + description: "Block month column used to partition data in this table" + - &block_time + name: block_time + description: "Timestamp for block event time in UTC" + data_tests: + - not_null + - &block_number + name: block_number + description: "Event block number" + data_tests: + - not_null + - &project_contract_address + name: project_contract_address + description: "Project contract address" + data_tests: + - not_null + - &tx_hash + name: tx_hash + description: "Transaction hash of the event" + data_tests: + - not_null + - &evt_index + name: evt_index + description: "Event index" + data_tests: + - not_null + + - name: aave_v3_plasma_base_borrow + meta: + blockchain: plasma + sector: lending + project: aave + contributors: 0xsandeshk + config: + tags: ['lending', 'borrow', 'aave', 'v3', 'plasma'] + description: "Aave v3 borrow transactions on Plasma" + data_tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - transaction_type + - token_address + - tx_hash + - evt_index + - check_lending_base_borrow_seed: + seed_file: ref('aave_plasma_base_borrow_seed') + filter: + version: 3 + columns: + - *blockchain + - *project + - *version + - *transaction_type + - *token_address + - *borrower + - *on_behalf_of + - *repayer + - *liquidator + - *amount + - *block_month + - *block_time + - *block_number + - *project_contract_address + - *tx_hash + - *evt_index diff --git a/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/lending_plasma_base_borrow.sql b/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/lending_plasma_base_borrow.sql new file mode 100644 index 00000000000..8547a7e16ab --- /dev/null +++ b/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/lending_plasma_base_borrow.sql @@ -0,0 +1,39 @@ +{{ + config( + schema = 'lending_plasma', + alias = 'base_borrow', + materialized = 'view' + ) +}} + +{% + set models = [ + + ref('aave_v3_plasma_base_borrow') + ] +%} + +{% for model in models %} +select + blockchain, + project, + version, + transaction_type, + loan_type, + token_address, + borrower, + on_behalf_of, + repayer, + liquidator, + amount, + block_month, + block_time, + block_number, + project_contract_address, + tx_hash, + evt_index +from {{ model }} +{% if not loop.last %} +union all +{% endif %} +{% endfor %} diff --git a/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/platforms/aave_v3_plasma_base_borrow.sql b/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/platforms/aave_v3_plasma_base_borrow.sql new file mode 100644 index 00000000000..e66bde2cb7d --- /dev/null +++ b/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/platforms/aave_v3_plasma_base_borrow.sql @@ -0,0 +1,20 @@ +{{ + config( + schema = 'aave_v3_plasma', + alias = 'base_borrow', + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + unique_key = ['transaction_type', 'token_address', 'tx_hash', 'evt_index'], + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')] + ) +}} + +{{ + lending_aave_v3_compatible_borrow( + blockchain = 'plasma', + project = 'aave', + version = '3', + decoded_contract_name='poolinstance' + ) +}} diff --git a/dbt_subprojects/hourly_spellbook/models/_sector/lending/flashloans/plasma/_schema.yml b/dbt_subprojects/hourly_spellbook/models/_sector/lending/flashloans/plasma/_schema.yml new file mode 100644 index 00000000000..fbd3ee6eaa7 --- /dev/null +++ b/dbt_subprojects/hourly_spellbook/models/_sector/lending/flashloans/plasma/_schema.yml @@ -0,0 +1,107 @@ +version: 2 + +models: + - name: lending_plasma_base_flashloans + meta: + blockchain: plasma + sector: lending + project: aave + contributors: 0xsandeshk + config: + tags: ['lending', 'flashloans', 'aave', 'plasma'] + description: "All lending flashloans transactions on Plasma" + data_tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - tx_hash + - evt_index + columns: + - &blockchain + name: blockchain + description: "Blockchain name" + data_tests: + - not_null + - &project + name: project + description: "Project name" + data_tests: + - not_null + - &version + name: version + description: "Version of the contract built and deployed by the lending project" + data_tests: + - not_null + - &recipient + name: recipient + description: "recipient wallet address" + data_tests: + - not_null + - &amount + name: amount + description: "Token amount present in the transaction" + data_tests: + - not_null + - &fee + name: fee + - &block_month + name: block_month + description: "Block month column used to partition data in this table" + - &token_address + name: token_address + - &project_contract_address + name: project_contract_address + data_tests: + - not_null + - &block_time + name: block_time + description: "Timestamp for block event time in UTC" + data_tests: + - not_null + - &block_number + name: block_number + description: "Event block number" + data_tests: + - not_null + - &tx_hash + name: tx_hash + description: "Transaction hash of the event" + data_tests: + - not_null + - &evt_index + name: evt_index + description: "Event index" + data_tests: + - not_null + + - name: aave_v3_plasma_base_flashloans + meta: + blockchain: plasma + sector: lending + project: aave + contributors: 0xsandeshk + config: + tags: ['lending', 'flashloans', 'aave', 'plasma'] + description: "Aave v3 flashloans transactions on Plasma" + data_tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - tx_hash + - evt_index + - check_lending_base_flashloans_seed: + seed_file: ref('aave_plasma_base_flashloans_seed') + filter: + version: 3 + columns: + - *blockchain + - *project + - *version + - *recipient + - *amount + - *fee + - *token_address + - *project_contract_address + - *block_month + - *block_time + - *block_number + - *tx_hash + - *evt_index diff --git a/dbt_subprojects/hourly_spellbook/models/_sector/lending/flashloans/plasma/lending_plasma_base_flashloans.sql b/dbt_subprojects/hourly_spellbook/models/_sector/lending/flashloans/plasma/lending_plasma_base_flashloans.sql new file mode 100644 index 00000000000..0cfa87647e3 --- /dev/null +++ b/dbt_subprojects/hourly_spellbook/models/_sector/lending/flashloans/plasma/lending_plasma_base_flashloans.sql @@ -0,0 +1,35 @@ +{{ + config( + schema = 'lending_plasma', + alias = 'base_flashloans', + materialized = 'view' + ) +}} + +{% + set models = [ + + ref('aave_v3_plasma_base_flashloans') + ] +%} + +{% for model in models %} +select + blockchain, + project, + version, + recipient, + amount, + fee, + token_address, + project_contract_address, + block_month, + block_time, + block_number, + tx_hash, + evt_index +from {{ model }} +{% if not loop.last %} +union all +{% endif %} +{% endfor %} diff --git a/dbt_subprojects/hourly_spellbook/models/_sector/lending/flashloans/plasma/platforms/aave_v3_plasma_base_flashloans.sql b/dbt_subprojects/hourly_spellbook/models/_sector/lending/flashloans/plasma/platforms/aave_v3_plasma_base_flashloans.sql new file mode 100644 index 00000000000..7bdaa5a8214 --- /dev/null +++ b/dbt_subprojects/hourly_spellbook/models/_sector/lending/flashloans/plasma/platforms/aave_v3_plasma_base_flashloans.sql @@ -0,0 +1,20 @@ +{{ + config( + schema = 'aave_v3_plasma', + alias = 'base_flashloans', + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + unique_key = ['tx_hash', 'evt_index'], + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')] + ) +}} + +{{ + lending_aave_v3_compatible_flashloans( + blockchain = 'plasma', + project = 'aave', + version = '3', + decoded_contract_name = 'poolinstance' + ) +}} diff --git a/dbt_subprojects/hourly_spellbook/models/_sector/lending/supply/plasma/_schema.yml b/dbt_subprojects/hourly_spellbook/models/_sector/lending/supply/plasma/_schema.yml new file mode 100644 index 00000000000..8ffd610d857 --- /dev/null +++ b/dbt_subprojects/hourly_spellbook/models/_sector/lending/supply/plasma/_schema.yml @@ -0,0 +1,126 @@ +version: 2 + +models: + - name: lending_plasma_base_supply + meta: + blockchain: plasma + sector: lending + project: aave, compound + contributors: 0xsandeshk + config: + tags: ['lending', 'supply', 'aave', 'compound', 'plasma'] + description: "All lending supply transactions on Plasma" + data_tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - transaction_type + - token_address + - tx_hash + - evt_index + columns: + - &blockchain + name: blockchain + description: "Blockchain name" + data_tests: + - not_null + - &project + name: project + description: "Project name" + data_tests: + - not_null + - &version + name: version + description: "Version of the contract built and deployed by the lending project" + data_tests: + - not_null + - &transaction_type + name: transaction_type + description: "Transaction type" + data_tests: + - not_null + - &token_address + name: token_address + description: "Token contract address" + data_tests: + - not_null + - &depositor + name: depositor + description: "Depositor wallet address" + - &on_behalf_of + name: on_behalf_of + description: "Wallet address tx was executed on behalf of" + - &withdrawn_to + name: withdrawn_to + description: "Withdrawn to wallet address" + - &liquidator + name: liquidator + description: "Liquidator wallet address" + - &amount + name: amount + description: "Token amount present in the transaction" + - &block_month + name: block_month + description: "Block month column used to partition data in this table" + - &block_time + name: block_time + description: "Timestamp for block event time in UTC" + data_tests: + - not_null + - &block_number + name: block_number + description: "Event block number" + data_tests: + - not_null + - &project_contract_address + name: project_contract_address + description: "Project contract address" + data_tests: + - not_null + - &tx_hash + name: tx_hash + description: "Transaction hash of the event" + data_tests: + - not_null + - &evt_index + name: evt_index + description: "Event index" + data_tests: + - not_null + + - name: aave_v3_plasma_base_supply + meta: + blockchain: plasma + sector: lending + project: aave + contributors: 0xsandeshk + config: + tags: ['lending', 'supply', 'aave', 'plasma'] + description: "Aave v3 supply transactions on Plasma" + data_tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - transaction_type + - token_address + - tx_hash + - evt_index + - check_lending_base_supply_seed: + seed_file: ref('aave_plasma_base_supply_seed') + filter: + version: 3 + columns: + - *blockchain + - *project + - *version + - *transaction_type + - *token_address + - *depositor + - *on_behalf_of + - *withdrawn_to + - *liquidator + - *amount + - *block_month + - *block_time + - *block_number + - *project_contract_address + - *tx_hash + - *evt_index diff --git a/dbt_subprojects/hourly_spellbook/models/_sector/lending/supply/plasma/lending_plasma_base_supply.sql b/dbt_subprojects/hourly_spellbook/models/_sector/lending/supply/plasma/lending_plasma_base_supply.sql new file mode 100644 index 00000000000..735d9e0fde2 --- /dev/null +++ b/dbt_subprojects/hourly_spellbook/models/_sector/lending/supply/plasma/lending_plasma_base_supply.sql @@ -0,0 +1,38 @@ +{{ + config( + schema = 'lending_plasma', + alias = 'base_supply', + materialized = 'view' + ) +}} + +{% + set models = [ + + ref('aave_v3_plasma_base_supply') + ] +%} + +{% for model in models %} +select + blockchain, + project, + version, + transaction_type, + token_address, + depositor, + on_behalf_of, + withdrawn_to, + liquidator, + amount, + block_month, + block_time, + block_number, + project_contract_address, + tx_hash, + evt_index +from {{ model }} +{% if not loop.last %} +union all +{% endif %} +{% endfor %} diff --git a/dbt_subprojects/hourly_spellbook/models/_sector/lending/supply/plasma/platforms/aave_v3_plasma_base_supply.sql b/dbt_subprojects/hourly_spellbook/models/_sector/lending/supply/plasma/platforms/aave_v3_plasma_base_supply.sql new file mode 100644 index 00000000000..6c4aaf77689 --- /dev/null +++ b/dbt_subprojects/hourly_spellbook/models/_sector/lending/supply/plasma/platforms/aave_v3_plasma_base_supply.sql @@ -0,0 +1,22 @@ +{{ + config( + schema = 'aave_v3_plasma', + alias = 'base_supply', + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + unique_key = ['transaction_type', 'token_address', 'tx_hash', 'evt_index'], + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')] + ) +}} + +{{ + lending_aave_v3_compatible_supply( + blockchain = 'plasma', + project = 'aave', + version = '3', + decoded_contract_name='poolinstance', + wrapped_token_gateway_available=false + ) +}} + diff --git a/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/_schema.yml b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/_schema.yml index 3bee74c2b95..4a660f1c90c 100644 --- a/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/_schema.yml +++ b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/_schema.yml @@ -1806,3 +1806,44 @@ seeds: token_address: varbinary borrower: varbinary amount: double + - name: aave_plasma_base_borrow_seed + config: + column_types: + blockchain: varchar + project: varchar + version: varchar + block_number: bigint + block_time: timestamp + tx_hash: varbinary + evt_index: bigint + transaction_type: varchar + token_address: varbinary + borrower: varbinary + amount: double + - name: aave_plasma_base_supply_seed + config: + column_types: + blockchain: varchar + project: varchar + version: varchar + block_number: bigint + block_time: timestamp + tx_hash: varbinary + evt_index: bigint + transaction_type: varchar + token_address: varbinary + depositor: varbinary + amount: double + - name: aave_plasma_base_flashloans_seed + config: + column_types: + blockchain: varchar + project: varchar + version: varchar + block_number: bigint + block_time: timestamp + tx_hash: varbinary + evt_index: bigint + token_address: varbinary + recipient: varbinary + amount: double diff --git a/sources/_sector/lending/borrow/plasma/_sources.yml b/sources/_sector/lending/borrow/plasma/_sources.yml new file mode 100644 index 00000000000..4de7f831b08 --- /dev/null +++ b/sources/_sector/lending/borrow/plasma/_sources.yml @@ -0,0 +1,11 @@ +version: 2 + +sources: + + + - name: aave_v3_plasma + tables: + - name: poolinstance_evt_Borrow + - name: poolinstance_evt_Repay + - name: poolinstance_evt_LiquidationCall + diff --git a/sources/_sector/lending/flashloans/plasma/_sources.yml b/sources/_sector/lending/flashloans/plasma/_sources.yml new file mode 100644 index 00000000000..95f6761cba0 --- /dev/null +++ b/sources/_sector/lending/flashloans/plasma/_sources.yml @@ -0,0 +1,7 @@ +version: 2 + +sources: + - name: aave_v3_plasma + tables: + - name: poolinstance_evt_FlashLoan + diff --git a/sources/_sector/lending/supply/plasma/_sources.yml b/sources/_sector/lending/supply/plasma/_sources.yml new file mode 100644 index 00000000000..959f16082f3 --- /dev/null +++ b/sources/_sector/lending/supply/plasma/_sources.yml @@ -0,0 +1,10 @@ +version: 2 + +sources: + + + - name: aave_v3_plasma + tables: + - name: poolinstance_evt_Supply + - name: poolinstance_evt_Withdraw + - name: WrappedTokenGatewayV3_call_withdrawETH From a4d6c199f51dc11b10adda3975c779672170b4d8 Mon Sep 17 00:00:00 2001 From: sandeshsk12 Date: Sat, 27 Sep 2025 00:50:49 +0530 Subject: [PATCH 2/5] Added seeds --- .../seeds/_sector/lending/aave_plasma_base_borrow_seed.csv | 6 ++++++ .../_sector/lending/aave_plasma_base_flashloan_seed.csv | 6 ++++++ .../seeds/_sector/lending/aave_plasma_base_supply_seed.csv | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_borrow_seed.csv create mode 100644 dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_flashloan_seed.csv create mode 100644 dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_supply_seed.csv diff --git a/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_borrow_seed.csv b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_borrow_seed.csv new file mode 100644 index 00000000000..bafae9d97e3 --- /dev/null +++ b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_borrow_seed.csv @@ -0,0 +1,6 @@ +blockchain,project,version,block_number,block_time,tx_hash,evt_index,transaction_type,token_address,borrower,amount +plasma,aave,3,1984016,2025-09-26 18:58:13.000 UTC,0x499c0e3796fe2157ebc533c3d48b57ac9c1f8fc9ce9ef6d0f4f1fd284abd3c03,12,borrow,0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb,0x6025ad293fcfda90c2d152a3c120a472441a3693,2920000000000.0 +plasma,aave,3,1984304,2025-09-26 19:03:01.000 UTC,0x84ce35280f6f5584b6f4a57d7eaef8957f9a241933411bc1e1b3fbaeff9a3c22,34,borrow,0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34,0x3bb5c8a00190da68059f0f66c24794584eb10d07,1.5e+23 +plasma,aave,3,1983847,2025-09-26 18:55:24.000 UTC,0x34f729a664bb9e14b1de4c7cebfbd1a1bcc158d55bdc34f4d41a584189e98773,7,repay,0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb,0x7a714e25935019b5bd102ebe5abbbc45e6c93573,-800000000.0 +plasma,aave,3,1983918,2025-09-26 18:56:35.000 UTC,0x7c65cd217dfdd2f155ac38dfc605eaba247fd0b93f216e78d2318a910dcc23e3,4,borrow,0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34,0x65cfbe9fc553026ff4d1af52b9d12c30168a0428,1.8e+23 +plasma,aave,3,1984498,2025-09-26 19:06:15.000 UTC,0xf193a0f3d1e3b62424fc6dca2fc61c55c87a62ef4b23d04e9b9e719c90e1107b,4,borrow,0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb,0x1c1e747a6be850549e9655addf59fd9e7cc2d4dc,336217450240.0 diff --git a/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_flashloan_seed.csv b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_flashloan_seed.csv new file mode 100644 index 00000000000..96f6cfd590c --- /dev/null +++ b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_flashloan_seed.csv @@ -0,0 +1,6 @@ +blockchain,project,version,block_number,block_time,tx_hash,token_address,recipient,amount +plasma,aave,3,1963052,2025-09-26 13:08:49.000 UTC,0xb0e25a030da2faf811094264e0399c7c3e920fa240e26f6faab744638ee253cf,31,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,573037345 +plasma,aave,3,1973282,2025-09-26 15:59:19.000 UTC,0x53ee716d15128b8599d89760879f3ac373bdb625e45881a12996cf7457739afb,26,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,5974925253 +plasma,aave,3,1972077,2025-09-26 15:39:14.000 UTC,0xcc6f092d19ae89ba5ad178e1a6363f14d9e75be7d4e4184d27c2d36bc161457f,42,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,24136545979 +plasma,aave,3,1980707,2025-09-26 18:03:04.000 UTC,0xdd9d51d7631b8536272afe9976364cf022ea9eea98ffe61b4634989043526b8e,45,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,1697169718 +plasma,aave,3,1964691,2025-09-26 13:36:08.000 UTC,0xa308b59bf37b9f0642a100e049ccb631c910c4e3aeb89a4c9762c7f0e6d4fece,26,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,650403746 diff --git a/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_supply_seed.csv b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_supply_seed.csv new file mode 100644 index 00000000000..79eaed8f01c --- /dev/null +++ b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_supply_seed.csv @@ -0,0 +1,6 @@ +blockchain,project,version,block_number,block_time,tx_hash,evt_index,transaction_type,token_address,depositor,amount +plasma,aave,3,1983688,2025-09-26 18:52:45.000 UTC,0x72551d1e2a6bdd093bc2aed68024a6e2f4c5c709b7942606c066ef0512667b3b,25,deposit,0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb,0xe0126f0c4451b2b917064a93040fd4770d6774b5,403303055371 +plasma,aave,3,1983950,2025-09-26 18:57:07.000 UTC,0x3b18eb15523762344632643e90a4c62a4103d5a84b0bc87ee5af3413dbf31416,17,deposit,0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb,0x452dce5d9d84296b9fd40c095b258872805ab1a6,22250000000 +plasma,aave,3,1983686,2025-09-26 18:52:43.000 UTC,0xf6c63e7f9e6f68903976e1e9ae368e52362d02068bba8d8aabd8b8aaf441cdb3,9,withdraw,0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34,0x7a714e25935019b5bd102ebe5abbbc45e6c93573,-200000000817697500000 +plasma,aave,3,1983684,2025-09-26 18:52:41.000 UTC,0xbe65d0a21e69436bbb068ac922016e5b44bc5a271afa11c5e11a8e6d9886d0cd,36,withdraw,0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb,0xe0126f0c4451b2b917064a93040fd4770d6774b5,-30016639123 +plasma,aave,3,1984440,2025-09-26 19:05:17.000 UTC,0x4d7c7c2023a0d6e200c7c85630e85609c81f0c688b40f857f4fc1ab87ebd9ab8,5,withdraw,0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb,0x1c1e747a6be850549e9655addf59fd9e7cc2d4dc,-100004788078 From 2263f40bfbb4fc735863a4b1397b95f07b7a8175 Mon Sep 17 00:00:00 2001 From: sandeshsk12 Date: Sat, 27 Sep 2025 01:05:18 +0530 Subject: [PATCH 3/5] Fixed typo of seed file --- .../hourly_spellbook/seeds/_sector/lending/_schema.yml | 2 +- ..._flashloan_seed.csv => aave_plasma_base_flashloans_seed.csv} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename dbt_subprojects/hourly_spellbook/seeds/_sector/lending/{aave_plasma_base_flashloan_seed.csv => aave_plasma_base_flashloans_seed.csv} (100%) diff --git a/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/_schema.yml b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/_schema.yml index 4a660f1c90c..cad2c9bd4ee 100644 --- a/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/_schema.yml +++ b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/_schema.yml @@ -1846,4 +1846,4 @@ seeds: evt_index: bigint token_address: varbinary recipient: varbinary - amount: double + amount: double \ No newline at end of file diff --git a/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_flashloan_seed.csv b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_flashloans_seed.csv similarity index 100% rename from dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_flashloan_seed.csv rename to dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_flashloans_seed.csv From de364f5be5b466a18ab6848c57f1df92b60127c9 Mon Sep 17 00:00:00 2001 From: sandeshsk12 Date: Sat, 27 Sep 2025 01:15:15 +0530 Subject: [PATCH 4/5] Added new seed file for flashloans --- .../lending/aave_plasma_base_flashloans_seed.csv | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_flashloans_seed.csv b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_flashloans_seed.csv index 96f6cfd590c..57e9419e887 100644 --- a/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_flashloans_seed.csv +++ b/dbt_subprojects/hourly_spellbook/seeds/_sector/lending/aave_plasma_base_flashloans_seed.csv @@ -1,6 +1,6 @@ -blockchain,project,version,block_number,block_time,tx_hash,token_address,recipient,amount -plasma,aave,3,1963052,2025-09-26 13:08:49.000 UTC,0xb0e25a030da2faf811094264e0399c7c3e920fa240e26f6faab744638ee253cf,31,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,573037345 -plasma,aave,3,1973282,2025-09-26 15:59:19.000 UTC,0x53ee716d15128b8599d89760879f3ac373bdb625e45881a12996cf7457739afb,26,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,5974925253 -plasma,aave,3,1972077,2025-09-26 15:39:14.000 UTC,0xcc6f092d19ae89ba5ad178e1a6363f14d9e75be7d4e4184d27c2d36bc161457f,42,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,24136545979 -plasma,aave,3,1980707,2025-09-26 18:03:04.000 UTC,0xdd9d51d7631b8536272afe9976364cf022ea9eea98ffe61b4634989043526b8e,45,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,1697169718 -plasma,aave,3,1964691,2025-09-26 13:36:08.000 UTC,0xa308b59bf37b9f0642a100e049ccb631c910c4e3aeb89a4c9762c7f0e6d4fece,26,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,650403746 +blockchain,project,version,block_number,block_time,tx_hash,evt_index,token_address,recipient,amount +plasma,aave,3,1963052,2025-09-26 13:08:49.000 UTC,0xb0e25a030da2faf811094264e0399c7c3e920fa240e26f6faab744638ee253cf,31,0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,573037345 +plasma,aave,3,1973282,2025-09-26 15:59:19.000 UTC,0x53ee716d15128b8599d89760879f3ac373bdb625e45881a12996cf7457739afb,26,0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,5974925253 +plasma,aave,3,1972077,2025-09-26 15:39:14.000 UTC,0xcc6f092d19ae89ba5ad178e1a6363f14d9e75be7d4e4184d27c2d36bc161457f,42,0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,24136545979 +plasma,aave,3,1980707,2025-09-26 18:03:04.000 UTC,0xdd9d51d7631b8536272afe9976364cf022ea9eea98ffe61b4634989043526b8e,45,0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,1697169718 +plasma,aave,3,1964691,2025-09-26 13:36:08.000 UTC,0xa308b59bf37b9f0642a100e049ccb631c910c4e3aeb89a4c9762c7f0e6d4fece,26,0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb,0x352423e2fa5d5c99343d371c9e3bc56c87723cc7,650403746 From 1f6868c652bb737efe2494fe0008de73c672e221 Mon Sep 17 00:00:00 2001 From: sandeshsk12 Date: Mon, 29 Sep 2025 23:59:10 +0530 Subject: [PATCH 5/5] fixed typo --- .../models/_sector/lending/borrow/plasma/_schema.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/_schema.yml b/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/_schema.yml index e98d8490e5c..dc7809ae2d9 100644 --- a/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/_schema.yml +++ b/dbt_subprojects/hourly_spellbook/models/_sector/lending/borrow/plasma/_schema.yml @@ -9,7 +9,7 @@ models: contributors: 0xsandeshk config: tags: ['lending', 'borrow', 'aave', 'compound', 'plasma'] - description: "Aave v1 borrow transactions on Ethereum" + description: "Aave v1 borrow transactions on Plasma" data_tests: - dbt_utils.unique_combination_of_columns: combination_of_columns: