From 0f80cee0885926210f7d2a88450c5e5d09a0f40d Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Sun, 30 Jun 2024 17:39:58 +0200 Subject: [PATCH 01/22] feat: add banana gun evm trades spellbook skeletton --- .../_sector/dex/bot_trades/evm/_schema.yml | 431 ++++++++++++++++++ .../evm/banana_gun/avalance_c/.gitkeep | 0 .../banana_gun/banana_gun_evm_bot_trades.sql | 56 +++ .../bot_trades/evm/banana_gun/base/.gitkeep | 0 .../bot_trades/evm/banana_gun/blast/.gitkeep | 0 .../bot_trades/evm/banana_gun/bnb/.gitkeep | 0 .../banana_gun_ethereum_bot_trades.sql | 202 ++++++++ .../dex/bot_trades/evm/dex_evm_bot_trades.sql | 52 +++ 8 files changed, 741 insertions(+) create mode 100644 solana/models/_sector/dex/bot_trades/evm/_schema.yml create mode 100644 solana/models/_sector/dex/bot_trades/evm/banana_gun/avalance_c/.gitkeep create mode 100644 solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql create mode 100644 solana/models/_sector/dex/bot_trades/evm/banana_gun/base/.gitkeep create mode 100644 solana/models/_sector/dex/bot_trades/evm/banana_gun/blast/.gitkeep create mode 100644 solana/models/_sector/dex/bot_trades/evm/banana_gun/bnb/.gitkeep create mode 100644 solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql create mode 100644 solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql diff --git a/solana/models/_sector/dex/bot_trades/evm/_schema.yml b/solana/models/_sector/dex/bot_trades/evm/_schema.yml new file mode 100644 index 00000000000..ff0900eb2ec --- /dev/null +++ b/solana/models/_sector/dex/bot_trades/evm/_schema.yml @@ -0,0 +1,431 @@ +version: 2 + +models: + - name: dex_evm_bot_trades + meta: + blockchain: solana + sector: dex + contributors: ["whale_hunter"] + config: + tags: ["evm", "dex", "bot", "trades"] + description: > + Trades by trading bots on EVM chains + columns: + - &blockchain + name: blockchain + description: "Blockchain which the DEX is deployed" + - &block_time + name: block_time + description: "UTC event block time of each DEX trade" + - &block_date + name: block_date + description: "UTC event block date of each DEX trade" + - &block_month + name: block_month + description: "UTC event block month of each DEX trade" + - &amount_usd + name: amount_usd + description: "USD value of the trade at time of execution" + - &type + name: type + description: "Wether the trade is a buy or sell" + - &token_bought_amount + name: token_bought_amount + description: "Value of the token bought at time of execution in the original currency" + - &token_bought_symbol + name: token_bought_symbol + description: "Token symbol for token bought in the trade" + - &token_bought_address + name: token_bought_address + description: "Contract address of the token bought" + - &token_sold_amount + name: token_sold_amount + description: "Value of the token sold at time of execution in the original currency" + - &token_sold_symbol + name: token_sold_symbol + description: "Token symbol for token sold in the trade" + - &token_sold_address + name: token_sold_address + description: "Contract address of the token sold" + - &fee_usd + name: fee_usd + description: "USD value of the fee at time of execution" + - &fee_token_amount + name: fee_token_amount + description: "Value of the fee paid at time of execution in the original currency" + - &fee_token_symbol + name: fee_token_symbol + description: "Token symbol for fee token" + - &fee_token_address + name: fee_token_address + description: "Contract address of the fee token" + - &project + name: project + description: "Project name of the DEX" + - &version + name: version + description: "Version of the contract built and deployed by the DEX project" + - &token_pair + name: token_pair + description: "Token symbol pair for each token involved in the trade" + - &project_contract_address + name: project_contract_address + description: "Project contract address which executed the trade on the blockchain" + - &user + name: user + description: "Address which initiated the trade" + - &tx_id + name: tx_id + description: "Unique transaction hash value tied to each transaction on the DEX" + - &tx_index + name: tx_index + description: "Index of the corresponding trade event" + - &outer_instruction_index + name: outer_instruction_index + description: "Index of the outer instruction in the transaction" + - &inner_instruction_index + name: inner_instruction_index + description: "Index of the inner instruction in the transaction" + - &is_last_trade_in_transaction + name: is_last_trade_in_transaction + description: "Wether the trade is the last hop of the trade transaction, in case of a multi-hop trade" + + - name: bonkbot_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: bonkbot + contributors: whale_hunter + config: + tags: ["solana", "dex", "bonkbot", "trades"] + description: > + Bonkbot trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('bonkbot_solana_trades_seed') + blockchain: solana + + - name: trojan_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: trojan + contributors: whale_hunter + config: + tags: ["solana", "dex", "bot", "trojan", "trades"] + description: > + Trojan trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('trojan_solana_trades_seed') + blockchain: solana + + - name: banana_gun_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: banana_gun + contributors: whale_hunter + config: + tags: ["solana", "dex", "banana_gun", "trades"] + description: > + Banana Gun trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('banana_gun_solana_trades_seed') + blockchain: solana + + - name: sol_trading_bot_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: sol_trading_bot + contributors: whale_hunter + config: + tags: ["solana", "dex", "soltradingbot", "trades"] + description: > + Sol Trading Bot trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('sol_trading_bot_solana_trades_seed') + blockchain: solana + + - name: pepe_boost_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: pepe_boost + contributors: whale_hunter + config: + tags: ["solana", "dex", "pepeboost", "trades"] + description: > + Pepe Boost trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('pepe_boost_solana_trades_seed') + blockchain: solana + + - name: maestro_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: maestro + contributors: whale_hunter + config: + tags: ["solana", "dex", "maestro", "trades"] + description: > + Maestro trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('maestro_solana_trades_seed') + blockchain: solana + + - name: shuriken_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: shuriken + contributors: whale_hunter + config: + tags: ["solana", "dex", "shuriken", "trades"] + description: > + Shuriken trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('shuriken_solana_trades_seed') + blockchain: solana + + - name: magnum_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: magnum + contributors: whale_hunter + config: + tags: ["solana", "dex", "magnum", "trades"] + description: > + Magnum trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('magnum_solana_trades_seed') + blockchain: solana + + - name: readyswap_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: readyswap + contributors: whale_hunter + config: + tags: ["solana", "dex", "readyswap", "trades"] + description: > + Readyswap trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('readyswap_solana_trades_seed') + blockchain: solana + + - name: sol_gun_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: sol_gun + contributors: whale_hunter + config: + tags: ["solana", "dex", "solgun", "trades"] + description: > + SolGun trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('sol_gun_solana_trades_seed') + blockchain: solana + + - name: looter_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: looter + contributors: whale_hunter + config: + tags: ["solana", "dex", "looter", "trades"] + description: > + Looter trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('looter_solana_trades_seed') + blockchain: solana + + - name: consortium_key_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: consortium_key + contributors: clizzard + config: + tags: ["solana", "dex", "consortium_key", "trades"] + description: > + Consortium Key trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('consortium_key_solana_trades_seed') + blockchain: solana + + - name: wifbot_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: wifbot + contributors: whale_hunter + config: + tags: ["solana", "dex", "wifbot", "trades"] + description: > + Wifbot trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('wifbot_solana_trades_seed') + blockchain: solana + + - name: soul_sniper_solana_bot_trades + meta: + blockchain: solana + sector: dex + project: soul_sniper + contributors: whale_hunter + config: + tags: ["solana", "dex", "soul_sniper", "trades"] + description: > + Soul Sniper trades on Solana + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - tx_id + - tx_index + - outer_instruction_index + - inner_instruction_index + - check_bot_trades_seed: + seed_file: ref('soul_sniper_solana_trades_seed') + blockchain: solana + + - name: consortium_key_solana_bot_users + meta: + blockchain: solana + sector: dex + project: consortium_key + contributors: whale_hunter + description: > + consortium_key users on Solana + config: + tags: ["solana", "dex", "bot_trades"] + columns: + - name: user + tests: unique + + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - user + - name: soul_sniper_solana_bot_users + meta: + blockchain: solana + sector: dex + project: soul_sniper + contributors: whale_hunter + description: > + soul_sniper users on Solana + config: + tags: ["solana", "dex", "bot_trades"] + columns: + - name: user + tests: unique diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/avalance_c/.gitkeep b/solana/models/_sector/dex/bot_trades/evm/banana_gun/avalance_c/.gitkeep new file mode 100644 index 00000000000..e69de29bb2d diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql new file mode 100644 index 00000000000..572c443ca34 --- /dev/null +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql @@ -0,0 +1,56 @@ +{{ + config( + schema = 'bot_trades', + alias = 'banana_gun_evm', + materialized = 'view', + post_hook = '{{ expose_spells( + blockchains = \'["ethereum", "base", "avalanche_c", "blast", "bnb"]\', + spell_type = "sector", + spell_name = "banana_gun", + contributors = \'["whale_hunter"]\') }}' + ) +}} + + + +{% set evm_trading_bot = [ + ref('banana_gun_avalanche_c_bot_trades') + , ref('banana_gun_base_bot_trades') + , ref('banana_gun_blast_bot_trades') + , ref('banana_gun_bnb_bot_trades') + , ref('banana_gun_ethereum_bot_trades') +] %} + +{% for bot in solana_trading_bot %} +SELECT block_time, + block_date, + block_month, + blockchain, + amount_usd, + type, + token_bought_amount, + token_bought_symbol, + token_bought_address, + token_sold_amount, + token_sold_symbol, + token_sold_address, + fee_usd, + fee_token_amount, + fee_token_symbol, + fee_token_address, + project, + version, + token_pair, + project_contract_address, + user, + -- TODO + tx_id, + tx_index, + outer_instruction_index, + inner_instruction_index, + is_last_trade_in_transaction +FROM {{ bot }} +{% if not loop.last %} +UNION ALL +{% endif %} +{% endfor %} \ No newline at end of file diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/base/.gitkeep b/solana/models/_sector/dex/bot_trades/evm/banana_gun/base/.gitkeep new file mode 100644 index 00000000000..e69de29bb2d diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/blast/.gitkeep b/solana/models/_sector/dex/bot_trades/evm/banana_gun/blast/.gitkeep new file mode 100644 index 00000000000..e69de29bb2d diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/bnb/.gitkeep b/solana/models/_sector/dex/bot_trades/evm/banana_gun/bnb/.gitkeep new file mode 100644 index 00000000000..e69de29bb2d diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql new file mode 100644 index 00000000000..f1c2695a6e0 --- /dev/null +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql @@ -0,0 +1,202 @@ +{{ config( + alias = 'bot_trades', + schema = 'banana_gun_solana', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], + unique_key = ['blockchain', 'tx_id', 'tx_index', 'outer_instruction_index', 'inner_instruction_index'] + ) +}} + +{% set project_start_date = '2024-01-08' %} +{% set fee_receiver_1 = '8r2hZoDfk5hDWJ1sDujAi2Qr45ZyZw5EQxAXiMZWLKh2' %} +{% set fee_receiver_2 = 'Cj297UauzMX64FU9dKJZRUBWszJ7tEWpVheasq4CfATV' %} +{% set fee_receiver_3 = 'HKMh8nV3ysSofRi23LsfVGLGQKB415QAEfZT96kCcVj4' %} +{% set fee_receiver_4 = '7tQiiBdKoScWQkB1RmVuML7DBGnR31cuKPEtMM7Vy5SA' %} +{% set fee_receiver_5 = '4BBNEVRgrxVKv9f7pMNE788XM1tt379X9vNjpDH2KCL7' %} +{% set fee_receiver_6 = '47hEzz83VFR23rLTEeVm9A7eFzjJwjvdupPPmX3cePqF' %} +{% set fee_receiver_7 = 'EMbqD9Y9jLXEa3RbCR8AsEW1kVa3EiJgDLVgvKh4qNFP' %} +{% set wsol_token = 'So11111111111111111111111111111111111111112' %} + +WITH + botContracts AS ( + SELECT + address + FROM + ethereum.creation_traces + WHERE + ( + "from" = 0xf414d478934c29d9a80244a3626c681a71e53bb2 -- BotDeployer1Address + OR "from" = 0x37aAb97476bA8dC785476611006fD5dDA4eed66B -- BotDeployer2Address + ) + AND block_time >= TIMESTAMP '2023-05-26' -- BotDeployerFirstTransactionTimestamp + ), + botTrades AS ( + SELECT + dex.trades.block_time, + amount_usd, + IF( + token_sold_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, -- WETHAddress + 'Buy', + 'Sell' + ) AS type, + token_bought_amount, + token_bought_symbol, + token_bought_address, + token_sold_amount, + token_sold_symbol, + token_sold_address, + project, + version, + token_pair, + project_contract_address, + tx_from AS user, + tx_to AS bot, + dex.trades.tx_hash, + evt_index + FROM + dex.trades + JOIN botContracts ON dex.trades.tx_to = botContracts.address + WHERE + dex.trades.blockchain = 'ethereum' + AND dex.trades.block_time >= TIMESTAMP '2023-05-26' -- BotDeployerFirstTransactionTimestamp + ), + highestEventIndexForEachTrade AS ( + SELECT + tx_hash, + MAX(evt_index) AS highestEventIndex + FROM + botTrades + GROUP BY + tx_hash + ), + botETHDeposits AS ( + SELECT + tx_hash, + block_number, + CAST(value AS DECIMAL (38, 0)) AS deltaGwei, + CAST(value AS DECIMAL (38, 0)) AS depositGwei + FROM + ethereum.traces + JOIN botContracts ON to = botContracts.address + WHERE + block_time >= TIMESTAMP '2023-05-26' -- BotDeployerFirstTransactionTimestamp + AND value > CAST(0 AS UINT256) + ), + botETHWithdrawals AS ( + SELECT + tx_hash, + block_number, + CAST(value AS DECIMAL (38, 0)) * -1 AS deltaGwei, + 0 AS depositGwei, + block_hash, + to + FROM + ethereum.traces + JOIN botContracts ON "from" = botContracts.address + WHERE + block_time >= TIMESTAMP '2023-05-26' -- BotDeployerFirstTransactionTimestamp + AND value > CAST(0 AS UINT256) + ), + botEthTransfers AS ( + /* Deposits */ + ( + SELECT + tx_hash, + block_number, + deltaGwei, + depositGwei + FROM + botETHDeposits + ) + UNION ALL + /* Withdrawals */ + ( + SELECT + tx_hash, + block_number, + deltaGwei, + depositGwei + FROM + botETHWithdrawals + ) + ), + botEthDeltas AS ( + SELECT + tx_hash, + block_number, + SUM(deltaGwei) AS feeGwei, + SUM(depositGwei) AS depositGwei + FROM + botEthTransfers + GROUP BY + tx_hash, + block_number + ), + minerBribes AS ( + SELECT + tx_hash, + SUM(deltaGwei * -1) / 1e18 AS bribeETH + FROM + botETHWithdrawals + JOIN ethereum.blocks AS blocks ON ( + botETHWithdrawals.block_hash = blocks.hash + AND botETHWithdrawals.to = blocks.miner + ) + GROUP BY + tx_hash + ) +SELECT + block_time, + block_number, + 'Ethereum' AS blockchain, + -- Trade + amount_usd, + type, + token_bought_amount, + token_bought_symbol, + CAST(token_bought_address AS VARCHAR) AS token_bought_address, + token_sold_amount, + token_sold_symbol, + CAST(token_sold_address AS VARCHAR) AS token_sold_address, + -- Fees + ROUND( + CAST(feeGwei AS DOUBLE) / CAST(depositGwei AS DOUBLE), + /* Round feePercentage to 0.01% steps */ + 4 + ) AS feePercentageFraction, + (feeGwei / 1e18) * price AS fee_usd, + feeGwei / 1e18 fee_token_amount, + 'ETH' AS fee_token_symbol, + '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' AS fee_token_address, -- WETH + -- Bribes + bribeETH * price AS bribe_usd, + bribeETH AS bribe_token_amount, + 'ETH' AS bribe_token_symbol, + '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' AS bribe_token_address, -- WETH + -- Dex + project, + version, + token_pair, + CAST(project_contract_address AS VARCHAR) AS project_contract_address, + -- User + CAST(user AS VARCHAR) AS user, + CAST(botTrades.tx_hash AS VARCHAR) AS tx_hash, + evt_index, + IF(evt_index = highestEventIndex, true, false) AS isLastTradeInTransaction +FROM + botTrades + JOIN highestEventIndexForEachTrade ON botTrades.tx_hash = highestEventIndexForEachTrade.tx_hash + /* Left Outer Join to support 0 fee trades */ + LEFT JOIN botETHDeltas ON botTrades.tx_hash = botETHDeltas.tx_hash + LEFT JOIN minerBribes ON botTrades.tx_hash = minerBribes.tx_hash + LEFT JOIN prices.usd ON ( + blockchain = 'ethereum' + AND contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 + AND minute = DATE_TRUNC('minute', block_time) + ) +ORDER BY + block_time DESC, + evt_index DESC \ No newline at end of file diff --git a/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql new file mode 100644 index 00000000000..d9d2a2c2e9c --- /dev/null +++ b/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql @@ -0,0 +1,52 @@ +{{ + config( + schema = 'dex_evm', + alias = 'bot_trades', + materialized = 'view', + post_hook = '{{ expose_spells( + blockchains = \'["ethereum", "base", "blast", "arbitrum", "bnb", "avalanche_c"]\', + spell_type = "sector", + spell_name = "bot_trades", + contributors = \'["whale_hunter"]\') }}' + ) +}} + + + +{% set evm_trading_bot = [ + ref('banana_gun_evm_bot_trades') +] %} + +{% for bot in solana_trading_bot %} +SELECT block_time, + block_date, + block_month, + blockchain, + amount_usd, + type, + token_bought_amount, + token_bought_symbol, + token_bought_address, + token_sold_amount, + token_sold_symbol, + token_sold_address, + fee_usd, + fee_token_amount, + fee_token_symbol, + fee_token_address, + project, + version, + token_pair, + project_contract_address, + user, + -- TODO + tx_id, + tx_index, + outer_instruction_index, + inner_instruction_index, + is_last_trade_in_transaction +FROM {{ bot }} +{% if not loop.last %} +UNION ALL +{% endif %} +{% endfor %} \ No newline at end of file From f93c92d6f4ebc9018135927054d52f663746c8a8 Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Sun, 30 Jun 2024 18:24:35 +0200 Subject: [PATCH 02/22] chore: add and use variables in ethereum query --- .../banana_gun_ethereum_bot_trades.sql | 48 +++++++++---------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql index f1c2695a6e0..5a4181e190b 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql @@ -1,24 +1,21 @@ {{ config( alias = 'bot_trades', - schema = 'banana_gun_solana', + schema = 'banana_gun_ethereum', partition_by = ['block_month'], materialized = 'incremental', file_format = 'delta', incremental_strategy = 'merge', incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], - unique_key = ['blockchain', 'tx_id', 'tx_index', 'outer_instruction_index', 'inner_instruction_index'] + unique_key = ['blockchain', 'tx_id', 'evt_index'] ) }} -{% set project_start_date = '2024-01-08' %} -{% set fee_receiver_1 = '8r2hZoDfk5hDWJ1sDujAi2Qr45ZyZw5EQxAXiMZWLKh2' %} -{% set fee_receiver_2 = 'Cj297UauzMX64FU9dKJZRUBWszJ7tEWpVheasq4CfATV' %} -{% set fee_receiver_3 = 'HKMh8nV3ysSofRi23LsfVGLGQKB415QAEfZT96kCcVj4' %} -{% set fee_receiver_4 = '7tQiiBdKoScWQkB1RmVuML7DBGnR31cuKPEtMM7Vy5SA' %} -{% set fee_receiver_5 = '4BBNEVRgrxVKv9f7pMNE788XM1tt379X9vNjpDH2KCL7' %} -{% set fee_receiver_6 = '47hEzz83VFR23rLTEeVm9A7eFzjJwjvdupPPmX3cePqF' %} -{% set fee_receiver_7 = 'EMbqD9Y9jLXEa3RbCR8AsEW1kVa3EiJgDLVgvKh4qNFP' %} -{% set wsol_token = 'So11111111111111111111111111111111111111112' %} +{% set project_start_date = '2023-05-26' %} +{% set blockchain = 'ethereum' %} +{% set bot_deployer_1 = '0xf414d478934c29d9a80244a3626c681a71e53bb2' %} +{% set bot_deployer_2 = '0x37aAb97476bA8dC785476611006fD5dDA4eed66B' %} +{% set weth = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' %} +{% set fee_token_symbol = 'ETH' %} WITH botContracts AS ( @@ -28,17 +25,17 @@ WITH ethereum.creation_traces WHERE ( - "from" = 0xf414d478934c29d9a80244a3626c681a71e53bb2 -- BotDeployer1Address - OR "from" = 0x37aAb97476bA8dC785476611006fD5dDA4eed66B -- BotDeployer2Address + "from" = {{bot_deployer_1}} + OR "from" = {{bot_deployer_2}} ) - AND block_time >= TIMESTAMP '2023-05-26' -- BotDeployerFirstTransactionTimestamp + AND block_time >= TIMESTAMP '{{project_start_date}}' ), botTrades AS ( SELECT dex.trades.block_time, amount_usd, IF( - token_sold_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, -- WETHAddress + token_sold_address = {{weth}}, 'Buy', 'Sell' ) AS type, @@ -61,7 +58,7 @@ WITH JOIN botContracts ON dex.trades.tx_to = botContracts.address WHERE dex.trades.blockchain = 'ethereum' - AND dex.trades.block_time >= TIMESTAMP '2023-05-26' -- BotDeployerFirstTransactionTimestamp + AND dex.trades.block_time >= TIMESTAMP '{{project_start_date}}' ), highestEventIndexForEachTrade AS ( SELECT @@ -82,7 +79,7 @@ WITH ethereum.traces JOIN botContracts ON to = botContracts.address WHERE - block_time >= TIMESTAMP '2023-05-26' -- BotDeployerFirstTransactionTimestamp + block_time >= TIMESTAMP '{{project_start_date}}' AND value > CAST(0 AS UINT256) ), botETHWithdrawals AS ( @@ -97,7 +94,7 @@ WITH ethereum.traces JOIN botContracts ON "from" = botContracts.address WHERE - block_time >= TIMESTAMP '2023-05-26' -- BotDeployerFirstTransactionTimestamp + block_time >= TIMESTAMP '{{project_start_date}}' AND value > CAST(0 AS UINT256) ), botEthTransfers AS ( @@ -151,7 +148,7 @@ WITH SELECT block_time, block_number, - 'Ethereum' AS blockchain, + '{{blockchain}}' AS blockchain, -- Trade amount_usd, type, @@ -169,13 +166,13 @@ SELECT ) AS feePercentageFraction, (feeGwei / 1e18) * price AS fee_usd, feeGwei / 1e18 fee_token_amount, - 'ETH' AS fee_token_symbol, - '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' AS fee_token_address, -- WETH + '{{fee_token_symbol}}' AS fee_token_symbol, + '{{weth}}' AS fee_token_address, -- Bribes bribeETH * price AS bribe_usd, bribeETH AS bribe_token_amount, - 'ETH' AS bribe_token_symbol, - '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' AS bribe_token_address, -- WETH + '{{fee_token_symbol}}' AS bribe_token_symbol, + '{{weth}}' AS bribe_token_address, -- Dex project, version, @@ -189,12 +186,11 @@ SELECT FROM botTrades JOIN highestEventIndexForEachTrade ON botTrades.tx_hash = highestEventIndexForEachTrade.tx_hash - /* Left Outer Join to support 0 fee trades */ LEFT JOIN botETHDeltas ON botTrades.tx_hash = botETHDeltas.tx_hash LEFT JOIN minerBribes ON botTrades.tx_hash = minerBribes.tx_hash LEFT JOIN prices.usd ON ( - blockchain = 'ethereum' - AND contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 + blockchain = '{{blockchain}}' + AND contract_address = {{weth}} AND minute = DATE_TRUNC('minute', block_time) ) ORDER BY From aea502f91fd89ae172ef553671dae6c1d0a8aab8 Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Sun, 30 Jun 2024 18:34:11 +0200 Subject: [PATCH 03/22] chore: add correct schema --- .../_sector/dex/bot_trades/evm/_schema.yml | 368 ++---------------- .../banana_gun_ethereum_bot_trades.sql | 2 +- 2 files changed, 31 insertions(+), 339 deletions(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/_schema.yml b/solana/models/_sector/dex/bot_trades/evm/_schema.yml index ff0900eb2ec..c3f3d82bb58 100644 --- a/solana/models/_sector/dex/bot_trades/evm/_schema.yml +++ b/solana/models/_sector/dex/bot_trades/evm/_schema.yml @@ -3,7 +3,7 @@ version: 2 models: - name: dex_evm_bot_trades meta: - blockchain: solana + blockchain: ethereum # TODO: It's actually multichain? sector: dex contributors: ["whale_hunter"] config: @@ -14,6 +14,9 @@ models: - &blockchain name: blockchain description: "Blockchain which the DEX is deployed" + - &block_number + name: block_number + description: "Block number that includes the DEX trade" - &block_time name: block_time description: "UTC event block time of each DEX trade" @@ -47,6 +50,9 @@ models: - &token_sold_address name: token_sold_address description: "Contract address of the token sold" + - &fee_percentage_fraction + name: fee_percentage_fraction + description: "The trading fee in percent, as a fraction of 100" - &fee_usd name: fee_usd description: "USD value of the fee at time of execution" @@ -59,6 +65,18 @@ models: - &fee_token_address name: fee_token_address description: "Contract address of the fee token" + - &bribe_usd + name: bribe_usd + description: "USD value of the bribe at time of execution" + - &bribe_token_amount + name: bribe_token_amount + description: "Value of the bribe paid at time of execution in the original currency" + - &bribe_token_symbol + name: bribe_token_symbol + description: "Token symbol for bribe token" + - &bribe_token_address + name: bribe_token_address + description: "Contract address of the bribe token" - &project name: project description: "Project name of the DEX" @@ -74,358 +92,32 @@ models: - &user name: user description: "Address which initiated the trade" - - &tx_id - name: tx_id + - &tx_hash + name: tx_hash description: "Unique transaction hash value tied to each transaction on the DEX" - - &tx_index - name: tx_index + - &evt_index + name: evt_index description: "Index of the corresponding trade event" - - &outer_instruction_index - name: outer_instruction_index - description: "Index of the outer instruction in the transaction" - - &inner_instruction_index - name: inner_instruction_index - description: "Index of the inner instruction in the transaction" - &is_last_trade_in_transaction name: is_last_trade_in_transaction description: "Wether the trade is the last hop of the trade transaction, in case of a multi-hop trade" - - name: bonkbot_solana_bot_trades + - name: banana_gun_evm_bot_trades meta: - blockchain: solana - sector: dex - project: bonkbot - contributors: whale_hunter - config: - tags: ["solana", "dex", "bonkbot", "trades"] - description: > - Bonkbot trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('bonkbot_solana_trades_seed') - blockchain: solana - - - name: trojan_solana_bot_trades - meta: - blockchain: solana - sector: dex - project: trojan - contributors: whale_hunter - config: - tags: ["solana", "dex", "bot", "trojan", "trades"] - description: > - Trojan trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('trojan_solana_trades_seed') - blockchain: solana - - - name: banana_gun_solana_bot_trades - meta: - blockchain: solana + blockchain: ethereum # TODO sector: dex project: banana_gun contributors: whale_hunter config: - tags: ["solana", "dex", "banana_gun", "trades"] - description: > - Banana Gun trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('banana_gun_solana_trades_seed') - blockchain: solana - - - name: sol_trading_bot_solana_bot_trades - meta: - blockchain: solana - sector: dex - project: sol_trading_bot - contributors: whale_hunter - config: - tags: ["solana", "dex", "soltradingbot", "trades"] - description: > - Sol Trading Bot trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('sol_trading_bot_solana_trades_seed') - blockchain: solana - - - name: pepe_boost_solana_bot_trades - meta: - blockchain: solana - sector: dex - project: pepe_boost - contributors: whale_hunter - config: - tags: ["solana", "dex", "pepeboost", "trades"] - description: > - Pepe Boost trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('pepe_boost_solana_trades_seed') - blockchain: solana - - - name: maestro_solana_bot_trades - meta: - blockchain: solana - sector: dex - project: maestro - contributors: whale_hunter - config: - tags: ["solana", "dex", "maestro", "trades"] - description: > - Maestro trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('maestro_solana_trades_seed') - blockchain: solana - - - name: shuriken_solana_bot_trades - meta: - blockchain: solana - sector: dex - project: shuriken - contributors: whale_hunter - config: - tags: ["solana", "dex", "shuriken", "trades"] - description: > - Shuriken trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('shuriken_solana_trades_seed') - blockchain: solana - - - name: magnum_solana_bot_trades - meta: - blockchain: solana - sector: dex - project: magnum - contributors: whale_hunter - config: - tags: ["solana", "dex", "magnum", "trades"] - description: > - Magnum trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('magnum_solana_trades_seed') - blockchain: solana - - - name: readyswap_solana_bot_trades - meta: - blockchain: solana - sector: dex - project: readyswap - contributors: whale_hunter - config: - tags: ["solana", "dex", "readyswap", "trades"] - description: > - Readyswap trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('readyswap_solana_trades_seed') - blockchain: solana - - - name: sol_gun_solana_bot_trades - meta: - blockchain: solana - sector: dex - project: sol_gun - contributors: whale_hunter - config: - tags: ["solana", "dex", "solgun", "trades"] - description: > - SolGun trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('sol_gun_solana_trades_seed') - blockchain: solana - - - name: looter_solana_bot_trades - meta: - blockchain: solana - sector: dex - project: looter - contributors: whale_hunter - config: - tags: ["solana", "dex", "looter", "trades"] - description: > - Looter trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('looter_solana_trades_seed') - blockchain: solana - - - name: consortium_key_solana_bot_trades - meta: - blockchain: solana - sector: dex - project: consortium_key - contributors: clizzard - config: - tags: ["solana", "dex", "consortium_key", "trades"] - description: > - Consortium Key trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('consortium_key_solana_trades_seed') - blockchain: solana - - - name: wifbot_solana_bot_trades - meta: - blockchain: solana - sector: dex - project: wifbot - contributors: whale_hunter - config: - tags: ["solana", "dex", "wifbot", "trades"] + tags: ["evm", "dex", "banana_gun", "trades"] description: > - Wifbot trades on Solana + Banan Gun trades on EVM tests: - dbt_utils.unique_combination_of_columns: combination_of_columns: - blockchain - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index + - evt_index - check_bot_trades_seed: - seed_file: ref('wifbot_solana_trades_seed') - blockchain: solana - - - name: soul_sniper_solana_bot_trades - meta: - blockchain: solana - sector: dex - project: soul_sniper - contributors: whale_hunter - config: - tags: ["solana", "dex", "soul_sniper", "trades"] - description: > - Soul Sniper trades on Solana - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - blockchain - - tx_id - - tx_index - - outer_instruction_index - - inner_instruction_index - - check_bot_trades_seed: - seed_file: ref('soul_sniper_solana_trades_seed') - blockchain: solana - - - name: consortium_key_solana_bot_users - meta: - blockchain: solana - sector: dex - project: consortium_key - contributors: whale_hunter - description: > - consortium_key users on Solana - config: - tags: ["solana", "dex", "bot_trades"] - columns: - - name: user - tests: unique - - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - user - - name: soul_sniper_solana_bot_users - meta: - blockchain: solana - sector: dex - project: soul_sniper - contributors: whale_hunter - description: > - soul_sniper users on Solana - config: - tags: ["solana", "dex", "bot_trades"] - columns: - - name: user - tests: unique + seed_file: ref('banana_gun_evm_trades_seed') + blockchain: ethereum diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql index 5a4181e190b..2fd6aaaf67f 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql @@ -163,7 +163,7 @@ SELECT CAST(feeGwei AS DOUBLE) / CAST(depositGwei AS DOUBLE), /* Round feePercentage to 0.01% steps */ 4 - ) AS feePercentageFraction, + ) AS fee_percentage_fraction, (feeGwei / 1e18) * price AS fee_usd, feeGwei / 1e18 fee_token_amount, '{{fee_token_symbol}}' AS fee_token_symbol, From b5748874de900e944d559b33a6b7f42667f557be Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 19:41:57 +0200 Subject: [PATCH 04/22] fix: only include ethereum for now --- .../bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql index 572c443ca34..e12c9b9acae 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql @@ -14,11 +14,13 @@ {% set evm_trading_bot = [ - ref('banana_gun_avalanche_c_bot_trades') + {# ref('banana_gun_avalanche_c_bot_trades') , ref('banana_gun_base_bot_trades') , ref('banana_gun_blast_bot_trades') , ref('banana_gun_bnb_bot_trades') - , ref('banana_gun_ethereum_bot_trades') + , #} + + ref('banana_gun_ethereum_bot_trades') ] %} {% for bot in solana_trading_bot %} From af8961f1efe8c619cb43e089b3511d91b5b0e5a0 Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 19:43:38 +0200 Subject: [PATCH 05/22] fix: move comment --- .../evm/banana_gun/banana_gun_evm_bot_trades.sql | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql index e12c9b9acae..596d6d0bd57 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql @@ -13,13 +13,12 @@ -{% set evm_trading_bot = [ - {# ref('banana_gun_avalanche_c_bot_trades') + {# ref('banana_gun_avalanche_c_bot_trades') , ref('banana_gun_base_bot_trades') , ref('banana_gun_blast_bot_trades') , ref('banana_gun_bnb_bot_trades') - , #} - + , #} +{% set evm_trading_bot = [ ref('banana_gun_ethereum_bot_trades') ] %} From 7dc0670059f7852247953cf14f83c96f527438a1 Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 19:45:44 +0200 Subject: [PATCH 06/22] fix: use correct source tags for referenced tables --- .../banana_gun_ethereum_bot_trades.sql | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql index 2fd6aaaf67f..0da5bea623e 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql @@ -32,7 +32,7 @@ WITH ), botTrades AS ( SELECT - dex.trades.block_time, + trades.block_time, amount_usd, IF( token_sold_address = {{weth}}, @@ -51,14 +51,14 @@ WITH project_contract_address, tx_from AS user, tx_to AS bot, - dex.trades.tx_hash, + trades.tx_hash, evt_index FROM - dex.trades - JOIN botContracts ON dex.trades.tx_to = botContracts.address + {{ source('dex', 'trades') }} as trades + JOIN botContracts ON trades.tx_to = botContracts.address WHERE - dex.trades.blockchain = 'ethereum' - AND dex.trades.block_time >= TIMESTAMP '{{project_start_date}}' + trades.blockchain = 'ethereum' + AND trades.block_time >= TIMESTAMP '{{project_start_date}}' ), highestEventIndexForEachTrade AS ( SELECT @@ -76,7 +76,7 @@ WITH CAST(value AS DECIMAL (38, 0)) AS deltaGwei, CAST(value AS DECIMAL (38, 0)) AS depositGwei FROM - ethereum.traces + {{ source('ethereum','traces') }} JOIN botContracts ON to = botContracts.address WHERE block_time >= TIMESTAMP '{{project_start_date}}' @@ -91,7 +91,7 @@ WITH block_hash, to FROM - ethereum.traces + {{ source('ethereum','traces') }} JOIN botContracts ON "from" = botContracts.address WHERE block_time >= TIMESTAMP '{{project_start_date}}' @@ -138,7 +138,7 @@ WITH SUM(deltaGwei * -1) / 1e18 AS bribeETH FROM botETHWithdrawals - JOIN ethereum.blocks AS blocks ON ( + JOIN {{ source('ethereum','blocks') }} AS blocks ON ( botETHWithdrawals.block_hash = blocks.hash AND botETHWithdrawals.to = blocks.miner ) @@ -188,7 +188,7 @@ FROM JOIN highestEventIndexForEachTrade ON botTrades.tx_hash = highestEventIndexForEachTrade.tx_hash LEFT JOIN botETHDeltas ON botTrades.tx_hash = botETHDeltas.tx_hash LEFT JOIN minerBribes ON botTrades.tx_hash = minerBribes.tx_hash - LEFT JOIN prices.usd ON ( + LEFT JOIN {{ source('prices', 'usd') }} ON ( blockchain = '{{blockchain}}' AND contract_address = {{weth}} AND minute = DATE_TRUNC('minute', block_time) From a247d8a0cf908a63785d3a4fe03c88cc91c72330 Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 19:48:17 +0200 Subject: [PATCH 07/22] chore: add sample seed --- solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv diff --git a/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv b/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv new file mode 100644 index 00000000000..43a05515938 --- /dev/null +++ b/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv @@ -0,0 +1,2 @@ +block_time,block_date,block_month,blockchain,amount_usd,type,token_bought_amount,token_bought_symbol,token_bought_address,token_sold_amount,token_sold_symbol,token_sold_address,fee_usd,fee_token_amount,fee_token_symbol,fee_token_address,project,version,token_pair,project_contract_address,user,tx_id,tx_index,outer_instruction_index,inner_instruction_index,is_last_trade_in_transaction +2024-03-23 10:52:51.000 UTC,2024-03-23 00:00:00.000 UTC,2024-03-01 00:00:00.000 UTC,solana,,Buy,0.406506413,,4DKzWpYPPBhSa4yCEkX66qYJ6XtXHSmGdw4MzwXVU3T2,0.495,SOL,So11111111111111111111111111111111111111112,0.88075,0.005,SOL,So11111111111111111111111111111111111111112,raydium,4,,BAQssCmQu1Py9r9JNY6FieyViZfRmQk7VmbRBsbmmKTd,GpHnY1yzSeTpa5LRR8MKfydMRYvD69kGdzzKmKEH9yr8,3g3fFtnvJT3Xaz8RCWpJBRSM6mHmSLg328ieodGnTmYRAHYivbtBjEUDo8ehJR5Ns5z4DP9iqE9TWD4Nf5UzupgC,81,7,0,true From 842e36ed4cb9fa20f8f445e1d9eeccd7adbcd228 Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 19:51:24 +0200 Subject: [PATCH 08/22] fix: add missing source tag --- .../evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql index 0da5bea623e..3bc77302341 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql @@ -22,7 +22,7 @@ WITH SELECT address FROM - ethereum.creation_traces + {{ source('ethereum','creation_traces') }} WHERE ( "from" = {{bot_deployer_1}} From 949f20e2da4ca1f79c9610cc1e90f2b759a21aef Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 19:54:18 +0200 Subject: [PATCH 09/22] fix: use variable instead of hardcoded string --- .../evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql index 3bc77302341..8b79836008a 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql @@ -57,7 +57,7 @@ WITH {{ source('dex', 'trades') }} as trades JOIN botContracts ON trades.tx_to = botContracts.address WHERE - trades.blockchain = 'ethereum' + trades.blockchain = '{{blockchain}}' AND trades.block_time >= TIMESTAMP '{{project_start_date}}' ), highestEventIndexForEachTrade AS ( From 4f3d3e915d1dc0eefa98bb5ff4eb306069bcc6fd Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 19:55:42 +0200 Subject: [PATCH 10/22] fix: add block_date and block_month columns --- .../evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql index 8b79836008a..3378b61d644 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql @@ -33,6 +33,8 @@ WITH botTrades AS ( SELECT trades.block_time, + date_trunc('day', trades.block_time) as block_date, + date_trunc('month', trades.block_time) as block_month, amount_usd, IF( token_sold_address = {{weth}}, From 78ef06bf2bb0bbbd97c60c63617beea2fe06af68 Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:00:14 +0200 Subject: [PATCH 11/22] fix: add block_date and block_month columns --- .../banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql index 3378b61d644..5a454475624 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql @@ -33,8 +33,6 @@ WITH botTrades AS ( SELECT trades.block_time, - date_trunc('day', trades.block_time) as block_date, - date_trunc('month', trades.block_time) as block_month, amount_usd, IF( token_sold_address = {{weth}}, @@ -149,6 +147,8 @@ WITH ) SELECT block_time, + date_trunc('day', trades.block_time) as block_date, + date_trunc('month', trades.block_time) as block_month, block_number, '{{blockchain}}' AS blockchain, -- Trade From f4a9e44f690917f5a1118d5c150ca4d549a8ebac Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:02:41 +0200 Subject: [PATCH 12/22] fix: use correct table name --- .../banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql index 5a454475624..86c7f233b8f 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql @@ -147,8 +147,8 @@ WITH ) SELECT block_time, - date_trunc('day', trades.block_time) as block_date, - date_trunc('month', trades.block_time) as block_month, + date_trunc('day', botTrades.block_time) as block_date, + date_trunc('month', botTrades.block_time) as block_month, block_number, '{{blockchain}}' AS blockchain, -- Trade From 7ea95af3848a93ba4f2b2377afcdf70dd85d5454 Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:37:04 +0200 Subject: [PATCH 13/22] fix: select correct columns --- .../banana_gun/banana_gun_evm_bot_trades.sql | 18 ++++++++++++++---- .../banana_gun_ethereum_bot_trades.sql | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql index 596d6d0bd57..10f16e6cc0d 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql @@ -22,11 +22,13 @@ ref('banana_gun_ethereum_bot_trades') ] %} -{% for bot in solana_trading_bot %} +{% for bot in botTrades %} SELECT block_time, block_date, block_month, + block_number, blockchain, + -- Trade amount_usd, type, token_bought_amount, @@ -35,18 +37,26 @@ SELECT block_time, token_sold_amount, token_sold_symbol, token_sold_address, + -- Fees + fee_percentage_fraction, fee_usd, fee_token_amount, fee_token_symbol, fee_token_address, + -- Bribes + bribe_usd, + bribe_token_amount, + bribe_token_symbol, + bribe_token_address, + -- Dex project, version, token_pair, project_contract_address, + -- User user, - -- TODO - tx_id, - tx_index, + tx_hash, + evt_index, outer_instruction_index, inner_instruction_index, is_last_trade_in_transaction diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql index 86c7f233b8f..33d909fc710 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql @@ -184,7 +184,7 @@ SELECT CAST(user AS VARCHAR) AS user, CAST(botTrades.tx_hash AS VARCHAR) AS tx_hash, evt_index, - IF(evt_index = highestEventIndex, true, false) AS isLastTradeInTransaction + IF(evt_index = highestEventIndex, true, false) AS is_last_trade_in_transaction FROM botTrades JOIN highestEventIndexForEachTrade ON botTrades.tx_hash = highestEventIndexForEachTrade.tx_hash From c2d3cb978dd8e5115dcddfdb35ca6be222918c7e Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:38:22 +0200 Subject: [PATCH 14/22] fix: add block_date and block_month columns --- .../dex/bot_trades/evm/dex_evm_bot_trades.sql | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql index d9d2a2c2e9c..fe2ce6b84c9 100644 --- a/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql @@ -17,11 +17,13 @@ ref('banana_gun_evm_bot_trades') ] %} -{% for bot in solana_trading_bot %} +{% for bot in evm_trading_bot %} SELECT block_time, block_date, block_month, + block_number, blockchain, + -- Trade amount_usd, type, token_bought_amount, @@ -30,18 +32,26 @@ SELECT block_time, token_sold_amount, token_sold_symbol, token_sold_address, + -- Fees + fee_percentage_fraction, fee_usd, fee_token_amount, fee_token_symbol, fee_token_address, + -- Bribes + bribe_usd, + bribe_token_amount, + bribe_token_symbol, + bribe_token_address, + -- Dex project, version, token_pair, project_contract_address, + -- User user, - -- TODO - tx_id, - tx_index, + tx_hash, + evt_index, outer_instruction_index, inner_instruction_index, is_last_trade_in_transaction From 5923a321ebea0b06e28b59656f8b5b75d9097a4c Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:43:19 +0200 Subject: [PATCH 15/22] fix: fix naming --- .../bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql | 6 +++--- .../_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql index 10f16e6cc0d..f04337c1499 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql @@ -18,11 +18,11 @@ , ref('banana_gun_blast_bot_trades') , ref('banana_gun_bnb_bot_trades') , #} -{% set evm_trading_bot = [ +{% set banana_gun_blockchains = [ ref('banana_gun_ethereum_bot_trades') ] %} -{% for bot in botTrades %} +{% for blockchain in banana_gun_blockchains %} SELECT block_time, block_date, block_month, @@ -60,7 +60,7 @@ SELECT block_time, outer_instruction_index, inner_instruction_index, is_last_trade_in_transaction -FROM {{ bot }} +FROM {{ blockchain }} {% if not loop.last %} UNION ALL {% endif %} diff --git a/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql index fe2ce6b84c9..ce8e5920e70 100644 --- a/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql @@ -13,11 +13,11 @@ -{% set evm_trading_bot = [ +{% set evm_trading_bots = [ ref('banana_gun_evm_bot_trades') ] %} -{% for bot in evm_trading_bot %} +{% for bot in evm_trading_bots %} SELECT block_time, block_date, block_month, From 070ced7a238a5c8b06b2ebdb806428d542c2c011 Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:47:45 +0200 Subject: [PATCH 16/22] fix: remove nonexisting columns --- .../dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql | 2 -- solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql | 2 -- 2 files changed, 4 deletions(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql index f04337c1499..865742940d4 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql @@ -57,8 +57,6 @@ SELECT block_time, user, tx_hash, evt_index, - outer_instruction_index, - inner_instruction_index, is_last_trade_in_transaction FROM {{ blockchain }} {% if not loop.last %} diff --git a/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql index ce8e5920e70..d3b8060a6f7 100644 --- a/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/dex_evm_bot_trades.sql @@ -52,8 +52,6 @@ SELECT block_time, user, tx_hash, evt_index, - outer_instruction_index, - inner_instruction_index, is_last_trade_in_transaction FROM {{ bot }} {% if not loop.last %} From b8b717942e202c2fb440686af3fdf77a8e825e75 Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:52:44 +0200 Subject: [PATCH 17/22] fix: use correct seed file --- .../banana_gun/banana_gun_evm_trades_seed.csv | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv b/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv index 43a05515938..cab6e4901b5 100644 --- a/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv +++ b/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv @@ -1,2 +1,21 @@ -block_time,block_date,block_month,blockchain,amount_usd,type,token_bought_amount,token_bought_symbol,token_bought_address,token_sold_amount,token_sold_symbol,token_sold_address,fee_usd,fee_token_amount,fee_token_symbol,fee_token_address,project,version,token_pair,project_contract_address,user,tx_id,tx_index,outer_instruction_index,inner_instruction_index,is_last_trade_in_transaction -2024-03-23 10:52:51.000 UTC,2024-03-23 00:00:00.000 UTC,2024-03-01 00:00:00.000 UTC,solana,,Buy,0.406506413,,4DKzWpYPPBhSa4yCEkX66qYJ6XtXHSmGdw4MzwXVU3T2,0.495,SOL,So11111111111111111111111111111111111111112,0.88075,0.005,SOL,So11111111111111111111111111111111111111112,raydium,4,,BAQssCmQu1Py9r9JNY6FieyViZfRmQk7VmbRBsbmmKTd,GpHnY1yzSeTpa5LRR8MKfydMRYvD69kGdzzKmKEH9yr8,3g3fFtnvJT3Xaz8RCWpJBRSM6mHmSLg328ieodGnTmYRAHYivbtBjEUDo8ehJR5Ns5z4DP9iqE9TWD4Nf5UzupgC,81,7,0,true +block_time,block_date,block_month,block_number,blockchain,amount_usd,type,token_bought_amount,token_bought_symbol,token_bought_address,token_sold_amount,token_sold_symbol,token_sold_address,fee_percentage_fraction,fee_usd,fee_token_amount,fee_token_symbol,fee_token_address,bribe_usd,bribe_token_amount,bribe_token_symbol,bribe_token_address,project,version,token_pair,project_contract_address,user,tx_hash,evt_index,is_last_trade_in_transaction +2023-06-26 17:17:11.000 UTC,2023-06-26 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17565025,ethereum,368.09428,Buy,41569956.57418884,ChainLock,0x8ee29282d912e31eb90edc5ad71e9f991e30ae77,0.199,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.84972,0.001,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,ChainLock-WETH,0x0696c0b462ee687e1e18e554fd0af922262a9c61,0xdee6cfc3c51550e5bd46a4613a09424bc62b6be6,0xa8bfa7a06453b75a0cc9cfcdbaa17e5f4414fd423e2dd6eb93a45c99d5eacd55,66,true +2023-06-11 11:24:35.000 UTC,2023-06-11 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17456558,ethereum,37.098090426262196,Sell,0.021151047017185225,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,5976888.2912,4,0x12b0f909a10c919b0660465642330e15637671f2,0.005,0.1854904521313108,0.000105755235085926,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,4-WETH,0xcb1a70aeeed0bbbf30b34594870d6cbfa8f755aa,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0x6c782baf054cf258d6822015756434090d738921b9ec8a1741a97fbe2851546f,16,true +2023-06-18 19:02:35.000 UTC,2023-06-18 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17508615,ethereum,97.85887334696112,Sell,0.05622199114488338,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,16000000,RYAN,0x3d0932b29b36272447b708f4a9f0582ed73e7239,0.005,0.489294366734804,0.000281109955724416,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,RYAN-WETH,0x33725288fe62adb525e9fa858f141f78cf1b53fe,0x08ec71e8bcbbd41c4b2a95c1b6b3809683a749b8,0x92ede247c4079aeda1c6a3efc4714024c4ae4321d324ac88d269aafae503158b,35,true +2023-06-28 19:06:35.000 UTC,2023-06-28 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17579792,ethereum,183.92873500000002,Buy,824304512.6115716,REFUND,0xf5c2166e8236c4ee6eed2477f67d72faca0030f3,0.0995,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,0.924265,0.0005,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,REFUND-WETH,0x73384ceaa12beebaaf4475202e2e9e1da9c19da0,0xc458ca753a5ef4cf5da2aba8808e204c8adf48b6,0x2a1fe9d5b3508d9da6ca05730635963bcc9ebce46d17c172fbc6d2f929276d1a,17,true +2023-06-30 21:14:23.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17594689,ethereum,1559.1888940427511,Sell,0.8088799454462574,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,264716965.87467322,ZOOMER,0x0d505c03d30e65f6e9b4ef88855a47a89e4b7676,0.005,7.795944470213756,0.004044399727231287,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,WETH-ZOOMER,0xc2c701110de2b9503e98619d9c9e3017877b0f72,0x74cca59dd62a075484a0af5f9641dc85843ef0d9,0x4b3c4f9a1985cdf8f387c762ddac41ceff931b0c1383d57cf75b2e4ef25003af,31,true +2023-06-08 22:30:11.000 UTC,2023-06-08 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17438544,ethereum,42.89340075960389,Buy,4040000000,ERROR,0x702eb5835cd057f5bd3d6c5b6fd00a6ceb77098f,0.02312948614422504,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0,0,0,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,ERROR-WETH,0x26fd69b98fe93176c69af9bc4ca44dd47a13e57d,0x9c99d7af32c576eb71dbccc3718be211eb3e14ab,0x630da490f4b58e6c880810fc19f93495d8d474b59e72c385fd04cd4c834537b4,44,true +2023-06-29 21:38:59.000 UTC,2023-06-29 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17587686,ethereum,1192.5505342882316,Sell,0.643748500298639,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,3861000,PEPEC,0x3b803cd0515dcff3ac958f2f11af168b85147136,0.005,5.962752671441157,0.003218742501493194,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,PEPEC-WETH,0xa193fbd522b698ce8ce3afee6b1c51ac5f1f7f08,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0xebaddabc4a7e3fe543258c6f61786b83463d3c7e9b964cc8506ea14fbc5fd288,50,true +2023-06-20 15:59:59.000 UTC,2023-06-20 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17521955,ethereum,499.010833314197,Buy,14400000000,TOUCHGRASS,0x460a08123c6b196c5f1be35c6e2deace115a1311,0.28800440557192564,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0048,2.4950541665709847,0.001440022027859628,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,TOUCHGRASS-WETH,0x212b9bfaf77ccacc1a1d2b705217078f6e690b62,0x490a028a817a4eb52164c37fda25cff1f1b4b180,0xefd082ad20de585d9143f46f7451d66a37d6345531f7fde2fc1ce90ab0d0ab36,86,true +2023-06-27 20:31:59.000 UTC,2023-06-27 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17573079,ethereum,376.85227000000003,Buy,899960.8282192809,DOMI,0x682b7269e642c501c275c2eea89f5defd0e5da29,0.199,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.8937300000000001,0.001,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,DOMI-WETH,0xfc8e7283b40194e7a7984fe70d584958ccf15798,0x0bb454c2d4e642a5c18f1b3db4d020ba202907df,0xc830dd8580e6777e2bef69a5b03dd267e99113cb16837946472778024f8f8fcd,38,true +2023-06-20 08:12:59.000 UTC,2023-06-20 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17519648,ethereum,119.82518828580045,Buy,30000000,KOKO,0x5a22d54c73e1e0fcb21d68e80bf00bb55ecfad8d,0.06932442465637266,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0012,0.5991259414290018,0.000346622123281863,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,KOKO-WETH,0xe634b553e4738259b47ebe8007b6dfd1da49e9b2,0xe12352f93b86b7262099e8039580990c80e83ca5,0xbfc970a1d4f2d3c4406781a2c88fe6d9d7a8c66bbd33e2cfef45b1ef831d3147,254,true +2023-06-27 14:21:59.000 UTC,2023-06-27 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17571248,ethereum,247.39874351538117,Buy,1000000,xBBPP,0xe9fdb522f1b6623bb29cf1d70c4728a7e55c5634,0.13115278450087534,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0033,1.2369937175769046,0.000655763922504376,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,WETH-xBBPP,0xfcc8b9479380bdc125a22f26b7b5e8556260631e,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0x1c38a8e61a6284d76f3a7864db8982075362a5803a382ab2b4ab39ee513b50c3,40,true +2023-06-22 23:42:59.000 UTC,2023-06-22 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17538493,ethereum,280.08852,Buy,42.799570025,ADHD,0x5aa02fcbc3228f554bb25ad25d61b7e0d9171a90,0.14925,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.40748,0.00075,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,ADHD-WETH,0x40ac21338ffc2f9842e705ad6a6afd2e2ae5c0ec,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0xec24759a11c87c339b3bb3b94bc69af8e1f635aa84fec010b53db72d6fe8ef89,119,true +2023-06-14 18:10:11.000 UTC,2023-06-14 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17479865,ethereum,49.01570409693425,Sell,0.02818776473456452,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,1000000,SUMO,0x89de32e4faec49a49c6888c80177a64c44cfa279,0.005,0.27735408138124457,0.000159499730508508,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,SUMO-WETH,0x8974a4bda7f853350399efc8755f5a131526cc96,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x400b337136efd00a38e47129f90d7511cb1ecab92b915011ff3b14262982bfc8,62,false +2023-06-29 21:38:11.000 UTC,2023-06-29 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17587682,ethereum,300.38487893008005,Buy,2103450000000,PANDA2.0,0xc14717860700110ba3d4aa37e9e65c579d33972d,0.16215020643887484,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0041,1.5019243946503997,0.000810751032194374,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,PANDA2.0-WETH,0x67e79ac965b14d2545e982da4b7b39819b7f3a39,0xe8216d86406a259b06914381fabfeb21f0816d4f,0xd9ecd67631e501fc77a5b410edd908b8cb8aa86cc86bbdfb89fd9897d77ad30b,362,true +2023-06-28 22:50:47.000 UTC,2023-06-28 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17580908,ethereum,34.38071525584545,Sell,0.018778758954051143,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,1620000,NIGGA,0xcdb0a88b9262f80c18335721abe6f30d93838375,0.005,0.17190357627922595,0.000093893794770255,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,NIGGA-WETH,0x68abae52d15448b6dee54a77b4d5ffd638527ef0,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x6b0ca962f4f769b941b7a4d2c56695b15dcf03550bd491f4acd8ead330b83988,68,true +2023-06-30 02:01:47.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17588992,ethereum,52.09813260127674,Sell,0.028206282809942796,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,170112.502759297,AKITA2.0,0xe88c04843e6d0e23106d818ca0c733ac6b1ec4a1,0.005,0.2604906630063819,0.000141031414049713,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,AKITA2.0-WETH,0xc6c0f865332e493c4bd319aafa90e651a05efc45,0x1ce6aeb8627e63b9095f63fb6d5253ca00af9052,0xfdcc40a6e9df2c1a2faf40159f349b0facd7adb0c05a721985ebcbc9bfc82b84,4,true +2023-06-14 20:16:11.000 UTC,2023-06-14 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17480490,ethereum,11.583918363316796,Buy,100000000,PUPPET,0x3d758acddc716b6546eac6dff6b8999a48b403b6,0.006856621008799784,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0005,0.05791959181658242,0.000034283105043998,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,PUPPET-WETH,0x4ce950e3199ec50117305f4e856c8711da976a4b,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x7f08e1a6baaf3473397099ffa9f20bd20bdd57d7a9db19a8ea4ac8c0d0c2b5ac,39,true +2023-06-23 06:07:47.000 UTC,2023-06-23 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17540397,ethereum,168.49009107170215,Sell,0.0893808703459281,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,4330596.16229814,MIYAGI,0x77506f689ab69ac272c22461a9b4752da8ff8d19,0.005,0.8424504553585098,0.00044690435172964,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,MIYAGI-WETH,0x425d1e45c187789330858478f3524e70186360e9,0x0b2ee0131f16ff30770a26e3f0fd04ce815ce7aa,0xe4afc82443bd9eec4d9a8f7332175c2d892fb66cabf3d52eec8f6452fd9e4eb6,29,true +2023-06-16 20:54:35.000 UTC,2023-06-16 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17494903,ethereum,36.460887803062526,Sell,0.021144346259561422,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,11250000,ZACH,0x818127fecda533375a31cfdc320432dbc7711b48,0.005,0.18230443901531246,0.000105721731297807,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,WETH-ZACH,0xd550584fb4b64d4dc05bfff430f17ee926ad3abf,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0xe1c1bedb133ca58791db4528b8ac5779c83a7a388302b6d45e3a0c74ae28ac6f,48,true +2023-06-30 18:23:11.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17593848,ethereum,338.8265421627775,Buy,20000000,COLOSSEUM,0xc53d202865e5ad65ab138d13d28dfe6a17e8fdc0,0.17554778855235065,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0044,1.6941327108138868,0.000877738942761753,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,COLOSSEUM-WETH,0x8df8089f479447ad6f5950d8539ac50b709a4af4,0xe4b145c9b367cde08ee6057b3620815f0a08d6b4,0x519d52a2f2b37cf863f46ab9caae829789dd7bbe6baec284b15cb4325d5520a5,49,true From a24361f1657ded456bf5358f642c2959e5b6b976 Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:57:28 +0200 Subject: [PATCH 18/22] fix: fix column name in uniqueness test --- solana/models/_sector/dex/bot_trades/evm/_schema.yml | 2 +- .../evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/solana/models/_sector/dex/bot_trades/evm/_schema.yml b/solana/models/_sector/dex/bot_trades/evm/_schema.yml index c3f3d82bb58..d3619066f44 100644 --- a/solana/models/_sector/dex/bot_trades/evm/_schema.yml +++ b/solana/models/_sector/dex/bot_trades/evm/_schema.yml @@ -116,7 +116,7 @@ models: - dbt_utils.unique_combination_of_columns: combination_of_columns: - blockchain - - tx_id + - tx_hash - evt_index - check_bot_trades_seed: seed_file: ref('banana_gun_evm_trades_seed') diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql index 33d909fc710..d079d0a297a 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_ethereum_bot_trades.sql @@ -6,7 +6,7 @@ file_format = 'delta', incremental_strategy = 'merge', incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], - unique_key = ['blockchain', 'tx_id', 'evt_index'] + unique_key = ['blockchain', 'tx_hash', 'evt_index'] ) }} From 30780495a477f041a9f771ab7f2728451511986d Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 21:04:32 +0200 Subject: [PATCH 19/22] fix: force version column to string in seed --- .../banana_gun/banana_gun_evm_trades_seed.csv | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv b/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv index cab6e4901b5..0796ac9710d 100644 --- a/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv +++ b/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv @@ -1,21 +1,21 @@ block_time,block_date,block_month,block_number,blockchain,amount_usd,type,token_bought_amount,token_bought_symbol,token_bought_address,token_sold_amount,token_sold_symbol,token_sold_address,fee_percentage_fraction,fee_usd,fee_token_amount,fee_token_symbol,fee_token_address,bribe_usd,bribe_token_amount,bribe_token_symbol,bribe_token_address,project,version,token_pair,project_contract_address,user,tx_hash,evt_index,is_last_trade_in_transaction -2023-06-26 17:17:11.000 UTC,2023-06-26 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17565025,ethereum,368.09428,Buy,41569956.57418884,ChainLock,0x8ee29282d912e31eb90edc5ad71e9f991e30ae77,0.199,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.84972,0.001,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,ChainLock-WETH,0x0696c0b462ee687e1e18e554fd0af922262a9c61,0xdee6cfc3c51550e5bd46a4613a09424bc62b6be6,0xa8bfa7a06453b75a0cc9cfcdbaa17e5f4414fd423e2dd6eb93a45c99d5eacd55,66,true -2023-06-11 11:24:35.000 UTC,2023-06-11 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17456558,ethereum,37.098090426262196,Sell,0.021151047017185225,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,5976888.2912,4,0x12b0f909a10c919b0660465642330e15637671f2,0.005,0.1854904521313108,0.000105755235085926,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,4-WETH,0xcb1a70aeeed0bbbf30b34594870d6cbfa8f755aa,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0x6c782baf054cf258d6822015756434090d738921b9ec8a1741a97fbe2851546f,16,true -2023-06-18 19:02:35.000 UTC,2023-06-18 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17508615,ethereum,97.85887334696112,Sell,0.05622199114488338,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,16000000,RYAN,0x3d0932b29b36272447b708f4a9f0582ed73e7239,0.005,0.489294366734804,0.000281109955724416,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,RYAN-WETH,0x33725288fe62adb525e9fa858f141f78cf1b53fe,0x08ec71e8bcbbd41c4b2a95c1b6b3809683a749b8,0x92ede247c4079aeda1c6a3efc4714024c4ae4321d324ac88d269aafae503158b,35,true -2023-06-28 19:06:35.000 UTC,2023-06-28 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17579792,ethereum,183.92873500000002,Buy,824304512.6115716,REFUND,0xf5c2166e8236c4ee6eed2477f67d72faca0030f3,0.0995,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,0.924265,0.0005,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,REFUND-WETH,0x73384ceaa12beebaaf4475202e2e9e1da9c19da0,0xc458ca753a5ef4cf5da2aba8808e204c8adf48b6,0x2a1fe9d5b3508d9da6ca05730635963bcc9ebce46d17c172fbc6d2f929276d1a,17,true -2023-06-30 21:14:23.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17594689,ethereum,1559.1888940427511,Sell,0.8088799454462574,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,264716965.87467322,ZOOMER,0x0d505c03d30e65f6e9b4ef88855a47a89e4b7676,0.005,7.795944470213756,0.004044399727231287,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,WETH-ZOOMER,0xc2c701110de2b9503e98619d9c9e3017877b0f72,0x74cca59dd62a075484a0af5f9641dc85843ef0d9,0x4b3c4f9a1985cdf8f387c762ddac41ceff931b0c1383d57cf75b2e4ef25003af,31,true -2023-06-08 22:30:11.000 UTC,2023-06-08 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17438544,ethereum,42.89340075960389,Buy,4040000000,ERROR,0x702eb5835cd057f5bd3d6c5b6fd00a6ceb77098f,0.02312948614422504,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0,0,0,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,ERROR-WETH,0x26fd69b98fe93176c69af9bc4ca44dd47a13e57d,0x9c99d7af32c576eb71dbccc3718be211eb3e14ab,0x630da490f4b58e6c880810fc19f93495d8d474b59e72c385fd04cd4c834537b4,44,true -2023-06-29 21:38:59.000 UTC,2023-06-29 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17587686,ethereum,1192.5505342882316,Sell,0.643748500298639,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,3861000,PEPEC,0x3b803cd0515dcff3ac958f2f11af168b85147136,0.005,5.962752671441157,0.003218742501493194,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,PEPEC-WETH,0xa193fbd522b698ce8ce3afee6b1c51ac5f1f7f08,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0xebaddabc4a7e3fe543258c6f61786b83463d3c7e9b964cc8506ea14fbc5fd288,50,true -2023-06-20 15:59:59.000 UTC,2023-06-20 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17521955,ethereum,499.010833314197,Buy,14400000000,TOUCHGRASS,0x460a08123c6b196c5f1be35c6e2deace115a1311,0.28800440557192564,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0048,2.4950541665709847,0.001440022027859628,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,TOUCHGRASS-WETH,0x212b9bfaf77ccacc1a1d2b705217078f6e690b62,0x490a028a817a4eb52164c37fda25cff1f1b4b180,0xefd082ad20de585d9143f46f7451d66a37d6345531f7fde2fc1ce90ab0d0ab36,86,true -2023-06-27 20:31:59.000 UTC,2023-06-27 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17573079,ethereum,376.85227000000003,Buy,899960.8282192809,DOMI,0x682b7269e642c501c275c2eea89f5defd0e5da29,0.199,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.8937300000000001,0.001,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,DOMI-WETH,0xfc8e7283b40194e7a7984fe70d584958ccf15798,0x0bb454c2d4e642a5c18f1b3db4d020ba202907df,0xc830dd8580e6777e2bef69a5b03dd267e99113cb16837946472778024f8f8fcd,38,true -2023-06-20 08:12:59.000 UTC,2023-06-20 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17519648,ethereum,119.82518828580045,Buy,30000000,KOKO,0x5a22d54c73e1e0fcb21d68e80bf00bb55ecfad8d,0.06932442465637266,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0012,0.5991259414290018,0.000346622123281863,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,KOKO-WETH,0xe634b553e4738259b47ebe8007b6dfd1da49e9b2,0xe12352f93b86b7262099e8039580990c80e83ca5,0xbfc970a1d4f2d3c4406781a2c88fe6d9d7a8c66bbd33e2cfef45b1ef831d3147,254,true -2023-06-27 14:21:59.000 UTC,2023-06-27 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17571248,ethereum,247.39874351538117,Buy,1000000,xBBPP,0xe9fdb522f1b6623bb29cf1d70c4728a7e55c5634,0.13115278450087534,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0033,1.2369937175769046,0.000655763922504376,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,WETH-xBBPP,0xfcc8b9479380bdc125a22f26b7b5e8556260631e,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0x1c38a8e61a6284d76f3a7864db8982075362a5803a382ab2b4ab39ee513b50c3,40,true -2023-06-22 23:42:59.000 UTC,2023-06-22 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17538493,ethereum,280.08852,Buy,42.799570025,ADHD,0x5aa02fcbc3228f554bb25ad25d61b7e0d9171a90,0.14925,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.40748,0.00075,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,ADHD-WETH,0x40ac21338ffc2f9842e705ad6a6afd2e2ae5c0ec,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0xec24759a11c87c339b3bb3b94bc69af8e1f635aa84fec010b53db72d6fe8ef89,119,true -2023-06-14 18:10:11.000 UTC,2023-06-14 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17479865,ethereum,49.01570409693425,Sell,0.02818776473456452,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,1000000,SUMO,0x89de32e4faec49a49c6888c80177a64c44cfa279,0.005,0.27735408138124457,0.000159499730508508,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,SUMO-WETH,0x8974a4bda7f853350399efc8755f5a131526cc96,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x400b337136efd00a38e47129f90d7511cb1ecab92b915011ff3b14262982bfc8,62,false -2023-06-29 21:38:11.000 UTC,2023-06-29 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17587682,ethereum,300.38487893008005,Buy,2103450000000,PANDA2.0,0xc14717860700110ba3d4aa37e9e65c579d33972d,0.16215020643887484,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0041,1.5019243946503997,0.000810751032194374,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,PANDA2.0-WETH,0x67e79ac965b14d2545e982da4b7b39819b7f3a39,0xe8216d86406a259b06914381fabfeb21f0816d4f,0xd9ecd67631e501fc77a5b410edd908b8cb8aa86cc86bbdfb89fd9897d77ad30b,362,true -2023-06-28 22:50:47.000 UTC,2023-06-28 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17580908,ethereum,34.38071525584545,Sell,0.018778758954051143,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,1620000,NIGGA,0xcdb0a88b9262f80c18335721abe6f30d93838375,0.005,0.17190357627922595,0.000093893794770255,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,NIGGA-WETH,0x68abae52d15448b6dee54a77b4d5ffd638527ef0,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x6b0ca962f4f769b941b7a4d2c56695b15dcf03550bd491f4acd8ead330b83988,68,true -2023-06-30 02:01:47.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17588992,ethereum,52.09813260127674,Sell,0.028206282809942796,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,170112.502759297,AKITA2.0,0xe88c04843e6d0e23106d818ca0c733ac6b1ec4a1,0.005,0.2604906630063819,0.000141031414049713,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,AKITA2.0-WETH,0xc6c0f865332e493c4bd319aafa90e651a05efc45,0x1ce6aeb8627e63b9095f63fb6d5253ca00af9052,0xfdcc40a6e9df2c1a2faf40159f349b0facd7adb0c05a721985ebcbc9bfc82b84,4,true -2023-06-14 20:16:11.000 UTC,2023-06-14 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17480490,ethereum,11.583918363316796,Buy,100000000,PUPPET,0x3d758acddc716b6546eac6dff6b8999a48b403b6,0.006856621008799784,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0005,0.05791959181658242,0.000034283105043998,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,PUPPET-WETH,0x4ce950e3199ec50117305f4e856c8711da976a4b,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x7f08e1a6baaf3473397099ffa9f20bd20bdd57d7a9db19a8ea4ac8c0d0c2b5ac,39,true -2023-06-23 06:07:47.000 UTC,2023-06-23 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17540397,ethereum,168.49009107170215,Sell,0.0893808703459281,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,4330596.16229814,MIYAGI,0x77506f689ab69ac272c22461a9b4752da8ff8d19,0.005,0.8424504553585098,0.00044690435172964,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,MIYAGI-WETH,0x425d1e45c187789330858478f3524e70186360e9,0x0b2ee0131f16ff30770a26e3f0fd04ce815ce7aa,0xe4afc82443bd9eec4d9a8f7332175c2d892fb66cabf3d52eec8f6452fd9e4eb6,29,true -2023-06-16 20:54:35.000 UTC,2023-06-16 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17494903,ethereum,36.460887803062526,Sell,0.021144346259561422,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,11250000,ZACH,0x818127fecda533375a31cfdc320432dbc7711b48,0.005,0.18230443901531246,0.000105721731297807,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,WETH-ZACH,0xd550584fb4b64d4dc05bfff430f17ee926ad3abf,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0xe1c1bedb133ca58791db4528b8ac5779c83a7a388302b6d45e3a0c74ae28ac6f,48,true -2023-06-30 18:23:11.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17593848,ethereum,338.8265421627775,Buy,20000000,COLOSSEUM,0xc53d202865e5ad65ab138d13d28dfe6a17e8fdc0,0.17554778855235065,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0044,1.6941327108138868,0.000877738942761753,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,COLOSSEUM-WETH,0x8df8089f479447ad6f5950d8539ac50b709a4af4,0xe4b145c9b367cde08ee6057b3620815f0a08d6b4,0x519d52a2f2b37cf863f46ab9caae829789dd7bbe6baec284b15cb4325d5520a5,49,true +2023-06-26 17:17:11.000 UTC,2023-06-26 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17565025,ethereum,368.09428,Buy,41569956.57418884,ChainLock,0x8ee29282d912e31eb90edc5ad71e9f991e30ae77,0.199,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.84972,0.001,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",ChainLock-WETH,0x0696c0b462ee687e1e18e554fd0af922262a9c61,0xdee6cfc3c51550e5bd46a4613a09424bc62b6be6,0xa8bfa7a06453b75a0cc9cfcdbaa17e5f4414fd423e2dd6eb93a45c99d5eacd55,66,true +2023-06-11 11:24:35.000 UTC,2023-06-11 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17456558,ethereum,37.098090426262196,Sell,0.021151047017185225,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,5976888.2912,4,0x12b0f909a10c919b0660465642330e15637671f2,0.005,0.1854904521313108,0.000105755235085926,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",4-WETH,0xcb1a70aeeed0bbbf30b34594870d6cbfa8f755aa,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0x6c782baf054cf258d6822015756434090d738921b9ec8a1741a97fbe2851546f,16,true +2023-06-18 19:02:35.000 UTC,2023-06-18 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17508615,ethereum,97.85887334696112,Sell,0.05622199114488338,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,16000000,RYAN,0x3d0932b29b36272447b708f4a9f0582ed73e7239,0.005,0.489294366734804,0.000281109955724416,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",RYAN-WETH,0x33725288fe62adb525e9fa858f141f78cf1b53fe,0x08ec71e8bcbbd41c4b2a95c1b6b3809683a749b8,0x92ede247c4079aeda1c6a3efc4714024c4ae4321d324ac88d269aafae503158b,35,true +2023-06-28 19:06:35.000 UTC,2023-06-28 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17579792,ethereum,183.92873500000002,Buy,824304512.6115716,REFUND,0xf5c2166e8236c4ee6eed2477f67d72faca0030f3,0.0995,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,0.924265,0.0005,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",REFUND-WETH,0x73384ceaa12beebaaf4475202e2e9e1da9c19da0,0xc458ca753a5ef4cf5da2aba8808e204c8adf48b6,0x2a1fe9d5b3508d9da6ca05730635963bcc9ebce46d17c172fbc6d2f929276d1a,17,true +2023-06-30 21:14:23.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17594689,ethereum,1559.1888940427511,Sell,0.8088799454462574,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,264716965.87467322,ZOOMER,0x0d505c03d30e65f6e9b4ef88855a47a89e4b7676,0.005,7.795944470213756,0.004044399727231287,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",WETH-ZOOMER,0xc2c701110de2b9503e98619d9c9e3017877b0f72,0x74cca59dd62a075484a0af5f9641dc85843ef0d9,0x4b3c4f9a1985cdf8f387c762ddac41ceff931b0c1383d57cf75b2e4ef25003af,31,true +2023-06-08 22:30:11.000 UTC,2023-06-08 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17438544,ethereum,42.89340075960389,Buy,4040000000,ERROR,0x702eb5835cd057f5bd3d6c5b6fd00a6ceb77098f,0.02312948614422504,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0,0,0,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",ERROR-WETH,0x26fd69b98fe93176c69af9bc4ca44dd47a13e57d,0x9c99d7af32c576eb71dbccc3718be211eb3e14ab,0x630da490f4b58e6c880810fc19f93495d8d474b59e72c385fd04cd4c834537b4,44,true +2023-06-29 21:38:59.000 UTC,2023-06-29 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17587686,ethereum,1192.5505342882316,Sell,0.643748500298639,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,3861000,PEPEC,0x3b803cd0515dcff3ac958f2f11af168b85147136,0.005,5.962752671441157,0.003218742501493194,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",PEPEC-WETH,0xa193fbd522b698ce8ce3afee6b1c51ac5f1f7f08,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0xebaddabc4a7e3fe543258c6f61786b83463d3c7e9b964cc8506ea14fbc5fd288,50,true +2023-06-20 15:59:59.000 UTC,2023-06-20 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17521955,ethereum,499.010833314197,Buy,14400000000,TOUCHGRASS,0x460a08123c6b196c5f1be35c6e2deace115a1311,0.28800440557192564,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0048,2.4950541665709847,0.001440022027859628,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",TOUCHGRASS-WETH,0x212b9bfaf77ccacc1a1d2b705217078f6e690b62,0x490a028a817a4eb52164c37fda25cff1f1b4b180,0xefd082ad20de585d9143f46f7451d66a37d6345531f7fde2fc1ce90ab0d0ab36,86,true +2023-06-27 20:31:59.000 UTC,2023-06-27 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17573079,ethereum,376.85227000000003,Buy,899960.8282192809,DOMI,0x682b7269e642c501c275c2eea89f5defd0e5da29,0.199,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.8937300000000001,0.001,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",DOMI-WETH,0xfc8e7283b40194e7a7984fe70d584958ccf15798,0x0bb454c2d4e642a5c18f1b3db4d020ba202907df,0xc830dd8580e6777e2bef69a5b03dd267e99113cb16837946472778024f8f8fcd,38,true +2023-06-20 08:12:59.000 UTC,2023-06-20 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17519648,ethereum,119.82518828580045,Buy,30000000,KOKO,0x5a22d54c73e1e0fcb21d68e80bf00bb55ecfad8d,0.06932442465637266,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0012,0.5991259414290018,0.000346622123281863,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",KOKO-WETH,0xe634b553e4738259b47ebe8007b6dfd1da49e9b2,0xe12352f93b86b7262099e8039580990c80e83ca5,0xbfc970a1d4f2d3c4406781a2c88fe6d9d7a8c66bbd33e2cfef45b1ef831d3147,254,true +2023-06-27 14:21:59.000 UTC,2023-06-27 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17571248,ethereum,247.39874351538117,Buy,1000000,xBBPP,0xe9fdb522f1b6623bb29cf1d70c4728a7e55c5634,0.13115278450087534,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0033,1.2369937175769046,0.000655763922504376,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",WETH-xBBPP,0xfcc8b9479380bdc125a22f26b7b5e8556260631e,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0x1c38a8e61a6284d76f3a7864db8982075362a5803a382ab2b4ab39ee513b50c3,40,true +2023-06-22 23:42:59.000 UTC,2023-06-22 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17538493,ethereum,280.08852,Buy,42.799570025,ADHD,0x5aa02fcbc3228f554bb25ad25d61b7e0d9171a90,0.14925,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.40748,0.00075,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",ADHD-WETH,0x40ac21338ffc2f9842e705ad6a6afd2e2ae5c0ec,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0xec24759a11c87c339b3bb3b94bc69af8e1f635aa84fec010b53db72d6fe8ef89,119,true +2023-06-14 18:10:11.000 UTC,2023-06-14 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17479865,ethereum,49.01570409693425,Sell,0.02818776473456452,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,1000000,SUMO,0x89de32e4faec49a49c6888c80177a64c44cfa279,0.005,0.27735408138124457,0.000159499730508508,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",SUMO-WETH,0x8974a4bda7f853350399efc8755f5a131526cc96,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x400b337136efd00a38e47129f90d7511cb1ecab92b915011ff3b14262982bfc8,62,false +2023-06-29 21:38:11.000 UTC,2023-06-29 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17587682,ethereum,300.38487893008005,Buy,2103450000000,PANDA2.0,0xc14717860700110ba3d4aa37e9e65c579d33972d,0.16215020643887484,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0041,1.5019243946503997,0.000810751032194374,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",PANDA2.0-WETH,0x67e79ac965b14d2545e982da4b7b39819b7f3a39,0xe8216d86406a259b06914381fabfeb21f0816d4f,0xd9ecd67631e501fc77a5b410edd908b8cb8aa86cc86bbdfb89fd9897d77ad30b,362,true +2023-06-28 22:50:47.000 UTC,2023-06-28 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17580908,ethereum,34.38071525584545,Sell,0.018778758954051143,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,1620000,NIGGA,0xcdb0a88b9262f80c18335721abe6f30d93838375,0.005,0.17190357627922595,0.000093893794770255,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",NIGGA-WETH,0x68abae52d15448b6dee54a77b4d5ffd638527ef0,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x6b0ca962f4f769b941b7a4d2c56695b15dcf03550bd491f4acd8ead330b83988,68,true +2023-06-30 02:01:47.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17588992,ethereum,52.09813260127674,Sell,0.028206282809942796,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,170112.502759297,AKITA2.0,0xe88c04843e6d0e23106d818ca0c733ac6b1ec4a1,0.005,0.2604906630063819,0.000141031414049713,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",AKITA2.0-WETH,0xc6c0f865332e493c4bd319aafa90e651a05efc45,0x1ce6aeb8627e63b9095f63fb6d5253ca00af9052,0xfdcc40a6e9df2c1a2faf40159f349b0facd7adb0c05a721985ebcbc9bfc82b84,4,true +2023-06-14 20:16:11.000 UTC,2023-06-14 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17480490,ethereum,11.583918363316796,Buy,100000000,PUPPET,0x3d758acddc716b6546eac6dff6b8999a48b403b6,0.006856621008799784,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0005,0.05791959181658242,0.000034283105043998,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",PUPPET-WETH,0x4ce950e3199ec50117305f4e856c8711da976a4b,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x7f08e1a6baaf3473397099ffa9f20bd20bdd57d7a9db19a8ea4ac8c0d0c2b5ac,39,true +2023-06-23 06:07:47.000 UTC,2023-06-23 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17540397,ethereum,168.49009107170215,Sell,0.0893808703459281,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,4330596.16229814,MIYAGI,0x77506f689ab69ac272c22461a9b4752da8ff8d19,0.005,0.8424504553585098,0.00044690435172964,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",MIYAGI-WETH,0x425d1e45c187789330858478f3524e70186360e9,0x0b2ee0131f16ff30770a26e3f0fd04ce815ce7aa,0xe4afc82443bd9eec4d9a8f7332175c2d892fb66cabf3d52eec8f6452fd9e4eb6,29,true +2023-06-16 20:54:35.000 UTC,2023-06-16 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17494903,ethereum,36.460887803062526,Sell,0.021144346259561422,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,11250000,ZACH,0x818127fecda533375a31cfdc320432dbc7711b48,0.005,0.18230443901531246,0.000105721731297807,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",WETH-ZACH,0xd550584fb4b64d4dc05bfff430f17ee926ad3abf,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0xe1c1bedb133ca58791db4528b8ac5779c83a7a388302b6d45e3a0c74ae28ac6f,48,true +2023-06-30 18:23:11.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17593848,ethereum,338.8265421627775,Buy,20000000,COLOSSEUM,0xc53d202865e5ad65ab138d13d28dfe6a17e8fdc0,0.17554778855235065,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0044,1.6941327108138868,0.000877738942761753,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",COLOSSEUM-WETH,0x8df8089f479447ad6f5950d8539ac50b709a4af4,0xe4b145c9b367cde08ee6057b3620815f0a08d6b4,0x519d52a2f2b37cf863f46ab9caae829789dd7bbe6baec284b15cb4325d5520a5,49,true From be99df55c4ff201f421be1533e41183bbc83586f Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 21:17:19 +0200 Subject: [PATCH 20/22] feat: add other evm chains --- .../banana_gun/banana_gun_evm_bot_trades.sql | 11 +- .../banana_gun_avalanche_c_bot_trades.sql | 198 ++++++++++++++++++ .../ethereum/banana_gun_base_bot_trades.sql | 198 ++++++++++++++++++ .../ethereum/banana_gun_blast_bot_trades.sql | 198 ++++++++++++++++++ .../ethereum/banana_gun_bnb_bot_trades.sql | 198 ++++++++++++++++++ 5 files changed, 797 insertions(+), 6 deletions(-) create mode 100644 solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_avalanche_c_bot_trades.sql create mode 100644 solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_base_bot_trades.sql create mode 100644 solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_blast_bot_trades.sql create mode 100644 solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_bnb_bot_trades.sql diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql index 865742940d4..9bcb20c29bd 100644 --- a/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/banana_gun_evm_bot_trades.sql @@ -13,13 +13,12 @@ - {# ref('banana_gun_avalanche_c_bot_trades') - , ref('banana_gun_base_bot_trades') - , ref('banana_gun_blast_bot_trades') - , ref('banana_gun_bnb_bot_trades') - , #} {% set banana_gun_blockchains = [ - ref('banana_gun_ethereum_bot_trades') + ref('banana_gun_avalanche_c_bot_trades') + , ref('banana_gun_ethereum_bot_trades') + , ref('banana_gun_base_bot_trades') + , ref('banana_gun_blast_bot_trades') + , ref('banana_gun_bnb_bot_trades') ] %} {% for blockchain in banana_gun_blockchains %} diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_avalanche_c_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_avalanche_c_bot_trades.sql new file mode 100644 index 00000000000..fe56dd39d06 --- /dev/null +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_avalanche_c_bot_trades.sql @@ -0,0 +1,198 @@ +{{ config( + alias = 'bot_trades', + schema = 'banana_gun_avalanche_c', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], + unique_key = ['blockchain', 'tx_hash', 'evt_index'] + ) +}} + +{% set project_start_date = '2024-03-15' %} +{% set blockchain = 'avalanche_c' %} +{% set bot_deployer_1 = '0x37aAb97476bA8dC785476611006fD5dDA4eed66B' %} +{% set wavax = '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7' %} +{% set fee_token_symbol = 'AVAX' %} + +WITH + botContracts AS ( + SELECT + address + FROM + {{ source('avalanche_c','creation_traces') }} + WHERE + ( + "from" = {{bot_deployer_1}} + ) + AND block_time >= TIMESTAMP '{{project_start_date}}' + ), + botTrades AS ( + SELECT + trades.block_time, + amount_usd, + IF( + token_sold_address = {{wavax}}, + 'Buy', + 'Sell' + ) AS type, + token_bought_amount, + token_bought_symbol, + token_bought_address, + token_sold_amount, + token_sold_symbol, + token_sold_address, + project, + version, + token_pair, + project_contract_address, + tx_from AS user, + tx_to AS bot, + trades.tx_hash, + evt_index + FROM + {{ source('dex', 'trades') }} as trades + JOIN botContracts ON trades.tx_to = botContracts.address + WHERE + trades.blockchain = '{{blockchain}}' + AND trades.block_time >= TIMESTAMP '{{project_start_date}}' + ), + highestEventIndexForEachTrade AS ( + SELECT + tx_hash, + MAX(evt_index) AS highestEventIndex + FROM + botTrades + GROUP BY + tx_hash + ), + botETHDeposits AS ( + SELECT + tx_hash, + block_number, + CAST(value AS DECIMAL (38, 0)) AS deltaGwei, + CAST(value AS DECIMAL (38, 0)) AS depositGwei + FROM + {{ source('avalanche_c','traces') }} + JOIN botContracts ON to = botContracts.address + WHERE + block_time >= TIMESTAMP '{{project_start_date}}' + AND value > CAST(0 AS UINT256) + ), + botETHWithdrawals AS ( + SELECT + tx_hash, + block_number, + CAST(value AS DECIMAL (38, 0)) * -1 AS deltaGwei, + 0 AS depositGwei, + block_hash, + to + FROM + {{ source('avalanche_c','traces') }} + JOIN botContracts ON "from" = botContracts.address + WHERE + block_time >= TIMESTAMP '{{project_start_date}}' + AND value > CAST(0 AS UINT256) + ), + botEthTransfers AS ( + /* Deposits */ + ( + SELECT + tx_hash, + block_number, + deltaGwei, + depositGwei + FROM + botETHDeposits + ) + UNION ALL + /* Withdrawals */ + ( + SELECT + tx_hash, + block_number, + deltaGwei, + depositGwei + FROM + botETHWithdrawals + ) + ), + botEthDeltas AS ( + SELECT + tx_hash, + block_number, + SUM(deltaGwei) AS feeGwei, + SUM(depositGwei) AS depositGwei + FROM + botEthTransfers + GROUP BY + tx_hash, + block_number + ), + minerBribes AS ( + SELECT + tx_hash, + SUM(deltaGwei * -1) / 1e18 AS bribeETH + FROM + botETHWithdrawals + JOIN {{ source('avalanche_c','blocks') }} AS blocks ON ( + botETHWithdrawals.block_hash = blocks.hash + AND botETHWithdrawals.to = blocks.miner + ) + GROUP BY + tx_hash + ) +SELECT + block_time, + date_trunc('day', botTrades.block_time) as block_date, + date_trunc('month', botTrades.block_time) as block_month, + block_number, + '{{blockchain}}' AS blockchain, + -- Trade + amount_usd, + type, + token_bought_amount, + token_bought_symbol, + CAST(token_bought_address AS VARCHAR) AS token_bought_address, + token_sold_amount, + token_sold_symbol, + CAST(token_sold_address AS VARCHAR) AS token_sold_address, + -- Fees + ROUND( + CAST(feeGwei AS DOUBLE) / CAST(depositGwei AS DOUBLE), + /* Round feePercentage to 0.01% steps */ + 4 + ) AS fee_percentage_fraction, + (feeGwei / 1e18) * price AS fee_usd, + feeGwei / 1e18 fee_token_amount, + '{{fee_token_symbol}}' AS fee_token_symbol, + '{{wavax}}' AS fee_token_address, + -- Bribes + bribeETH * price AS bribe_usd, + bribeETH AS bribe_token_amount, + '{{fee_token_symbol}}' AS bribe_token_symbol, + '{{wavax}}' AS bribe_token_address, + -- Dex + project, + version, + token_pair, + CAST(project_contract_address AS VARCHAR) AS project_contract_address, + -- User + CAST(user AS VARCHAR) AS user, + CAST(botTrades.tx_hash AS VARCHAR) AS tx_hash, + evt_index, + IF(evt_index = highestEventIndex, true, false) AS is_last_trade_in_transaction +FROM + botTrades + JOIN highestEventIndexForEachTrade ON botTrades.tx_hash = highestEventIndexForEachTrade.tx_hash + LEFT JOIN botETHDeltas ON botTrades.tx_hash = botETHDeltas.tx_hash + LEFT JOIN minerBribes ON botTrades.tx_hash = minerBribes.tx_hash + LEFT JOIN {{ source('prices', 'usd') }} ON ( + blockchain = '{{blockchain}}' + AND contract_address = {{wavax}} + AND minute = DATE_TRUNC('minute', block_time) + ) +ORDER BY + block_time DESC, + evt_index DESC \ No newline at end of file diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_base_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_base_bot_trades.sql new file mode 100644 index 00000000000..97bbbbe547b --- /dev/null +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_base_bot_trades.sql @@ -0,0 +1,198 @@ +{{ config( + alias = 'bot_trades', + schema = 'banana_gun_base', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], + unique_key = ['blockchain', 'tx_hash', 'evt_index'] + ) +}} + +{% set project_start_date = '2024-03-05' %} +{% set blockchain = 'base' %} +{% set bot_deployer_1 = '0x37aAb97476bA8dC785476611006fD5dDA4eed66B' %} +{% set weth = '0x4200000000000000000000000000000000000006' %} +{% set fee_token_symbol = 'ETH' %} + +WITH + botContracts AS ( + SELECT + address + FROM + {{ source('base','creation_traces') }} + WHERE + ( + "from" = {{bot_deployer_1}} + ) + AND block_time >= TIMESTAMP '{{project_start_date}}' + ), + botTrades AS ( + SELECT + trades.block_time, + amount_usd, + IF( + token_sold_address = {{weth}}, + 'Buy', + 'Sell' + ) AS type, + token_bought_amount, + token_bought_symbol, + token_bought_address, + token_sold_amount, + token_sold_symbol, + token_sold_address, + project, + version, + token_pair, + project_contract_address, + tx_from AS user, + tx_to AS bot, + trades.tx_hash, + evt_index + FROM + {{ source('dex', 'trades') }} as trades + JOIN botContracts ON trades.tx_to = botContracts.address + WHERE + trades.blockchain = '{{blockchain}}' + AND trades.block_time >= TIMESTAMP '{{project_start_date}}' + ), + highestEventIndexForEachTrade AS ( + SELECT + tx_hash, + MAX(evt_index) AS highestEventIndex + FROM + botTrades + GROUP BY + tx_hash + ), + botETHDeposits AS ( + SELECT + tx_hash, + block_number, + CAST(value AS DECIMAL (38, 0)) AS deltaGwei, + CAST(value AS DECIMAL (38, 0)) AS depositGwei + FROM + {{ source('base','traces') }} + JOIN botContracts ON to = botContracts.address + WHERE + block_time >= TIMESTAMP '{{project_start_date}}' + AND value > CAST(0 AS UINT256) + ), + botETHWithdrawals AS ( + SELECT + tx_hash, + block_number, + CAST(value AS DECIMAL (38, 0)) * -1 AS deltaGwei, + 0 AS depositGwei, + block_hash, + to + FROM + {{ source('base','traces') }} + JOIN botContracts ON "from" = botContracts.address + WHERE + block_time >= TIMESTAMP '{{project_start_date}}' + AND value > CAST(0 AS UINT256) + ), + botEthTransfers AS ( + /* Deposits */ + ( + SELECT + tx_hash, + block_number, + deltaGwei, + depositGwei + FROM + botETHDeposits + ) + UNION ALL + /* Withdrawals */ + ( + SELECT + tx_hash, + block_number, + deltaGwei, + depositGwei + FROM + botETHWithdrawals + ) + ), + botEthDeltas AS ( + SELECT + tx_hash, + block_number, + SUM(deltaGwei) AS feeGwei, + SUM(depositGwei) AS depositGwei + FROM + botEthTransfers + GROUP BY + tx_hash, + block_number + ), + minerBribes AS ( + SELECT + tx_hash, + SUM(deltaGwei * -1) / 1e18 AS bribeETH + FROM + botETHWithdrawals + JOIN {{ source('base','blocks') }} AS blocks ON ( + botETHWithdrawals.block_hash = blocks.hash + AND botETHWithdrawals.to = blocks.miner + ) + GROUP BY + tx_hash + ) +SELECT + block_time, + date_trunc('day', botTrades.block_time) as block_date, + date_trunc('month', botTrades.block_time) as block_month, + block_number, + '{{blockchain}}' AS blockchain, + -- Trade + amount_usd, + type, + token_bought_amount, + token_bought_symbol, + CAST(token_bought_address AS VARCHAR) AS token_bought_address, + token_sold_amount, + token_sold_symbol, + CAST(token_sold_address AS VARCHAR) AS token_sold_address, + -- Fees + ROUND( + CAST(feeGwei AS DOUBLE) / CAST(depositGwei AS DOUBLE), + /* Round feePercentage to 0.01% steps */ + 4 + ) AS fee_percentage_fraction, + (feeGwei / 1e18) * price AS fee_usd, + feeGwei / 1e18 fee_token_amount, + '{{fee_token_symbol}}' AS fee_token_symbol, + '{{weth}}' AS fee_token_address, + -- Bribes + bribeETH * price AS bribe_usd, + bribeETH AS bribe_token_amount, + '{{fee_token_symbol}}' AS bribe_token_symbol, + '{{weth}}' AS bribe_token_address, + -- Dex + project, + version, + token_pair, + CAST(project_contract_address AS VARCHAR) AS project_contract_address, + -- User + CAST(user AS VARCHAR) AS user, + CAST(botTrades.tx_hash AS VARCHAR) AS tx_hash, + evt_index, + IF(evt_index = highestEventIndex, true, false) AS is_last_trade_in_transaction +FROM + botTrades + JOIN highestEventIndexForEachTrade ON botTrades.tx_hash = highestEventIndexForEachTrade.tx_hash + LEFT JOIN botETHDeltas ON botTrades.tx_hash = botETHDeltas.tx_hash + LEFT JOIN minerBribes ON botTrades.tx_hash = minerBribes.tx_hash + LEFT JOIN {{ source('prices', 'usd') }} ON ( + blockchain = '{{blockchain}}' + AND contract_address = {{weth}} + AND minute = DATE_TRUNC('minute', block_time) + ) +ORDER BY + block_time DESC, + evt_index DESC \ No newline at end of file diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_blast_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_blast_bot_trades.sql new file mode 100644 index 00000000000..5b981376466 --- /dev/null +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_blast_bot_trades.sql @@ -0,0 +1,198 @@ +{{ config( + alias = 'bot_trades', + schema = 'banana_gun_blast', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], + unique_key = ['blockchain', 'tx_hash', 'evt_index'] + ) +}} + +{% set project_start_date = '2024-03-01' %} +{% set blockchain = 'blast' %} +{% set bot_deployer_1 = '0x37aAb97476bA8dC785476611006fD5dDA4eed66B' %} +{% set weth = '0x4300000000000000000000000000000000000004' %} +{% set fee_token_symbol = 'ETH' %} + +WITH + botContracts AS ( + SELECT + address + FROM + {{ source('blast','creation_traces') }} + WHERE + ( + "from" = {{bot_deployer_1}} + ) + AND block_time >= TIMESTAMP '{{project_start_date}}' + ), + botTrades AS ( + SELECT + trades.block_time, + amount_usd, + IF( + token_sold_address = {{weth}}, + 'Buy', + 'Sell' + ) AS type, + token_bought_amount, + token_bought_symbol, + token_bought_address, + token_sold_amount, + token_sold_symbol, + token_sold_address, + project, + version, + token_pair, + project_contract_address, + tx_from AS user, + tx_to AS bot, + trades.tx_hash, + evt_index + FROM + {{ source('dex', 'trades') }} as trades + JOIN botContracts ON trades.tx_to = botContracts.address + WHERE + trades.blockchain = '{{blockchain}}' + AND trades.block_time >= TIMESTAMP '{{project_start_date}}' + ), + highestEventIndexForEachTrade AS ( + SELECT + tx_hash, + MAX(evt_index) AS highestEventIndex + FROM + botTrades + GROUP BY + tx_hash + ), + botETHDeposits AS ( + SELECT + tx_hash, + block_number, + CAST(value AS DECIMAL (38, 0)) AS deltaGwei, + CAST(value AS DECIMAL (38, 0)) AS depositGwei + FROM + {{ source('blast','traces') }} + JOIN botContracts ON to = botContracts.address + WHERE + block_time >= TIMESTAMP '{{project_start_date}}' + AND value > CAST(0 AS UINT256) + ), + botETHWithdrawals AS ( + SELECT + tx_hash, + block_number, + CAST(value AS DECIMAL (38, 0)) * -1 AS deltaGwei, + 0 AS depositGwei, + block_hash, + to + FROM + {{ source('blast','traces') }} + JOIN botContracts ON "from" = botContracts.address + WHERE + block_time >= TIMESTAMP '{{project_start_date}}' + AND value > CAST(0 AS UINT256) + ), + botEthTransfers AS ( + /* Deposits */ + ( + SELECT + tx_hash, + block_number, + deltaGwei, + depositGwei + FROM + botETHDeposits + ) + UNION ALL + /* Withdrawals */ + ( + SELECT + tx_hash, + block_number, + deltaGwei, + depositGwei + FROM + botETHWithdrawals + ) + ), + botEthDeltas AS ( + SELECT + tx_hash, + block_number, + SUM(deltaGwei) AS feeGwei, + SUM(depositGwei) AS depositGwei + FROM + botEthTransfers + GROUP BY + tx_hash, + block_number + ), + minerBribes AS ( + SELECT + tx_hash, + SUM(deltaGwei * -1) / 1e18 AS bribeETH + FROM + botETHWithdrawals + JOIN {{ source('blast','blocks') }} AS blocks ON ( + botETHWithdrawals.block_hash = blocks.hash + AND botETHWithdrawals.to = blocks.miner + ) + GROUP BY + tx_hash + ) +SELECT + block_time, + date_trunc('day', botTrades.block_time) as block_date, + date_trunc('month', botTrades.block_time) as block_month, + block_number, + '{{blockchain}}' AS blockchain, + -- Trade + amount_usd, + type, + token_bought_amount, + token_bought_symbol, + CAST(token_bought_address AS VARCHAR) AS token_bought_address, + token_sold_amount, + token_sold_symbol, + CAST(token_sold_address AS VARCHAR) AS token_sold_address, + -- Fees + ROUND( + CAST(feeGwei AS DOUBLE) / CAST(depositGwei AS DOUBLE), + /* Round feePercentage to 0.01% steps */ + 4 + ) AS fee_percentage_fraction, + (feeGwei / 1e18) * price AS fee_usd, + feeGwei / 1e18 fee_token_amount, + '{{fee_token_symbol}}' AS fee_token_symbol, + '{{weth}}' AS fee_token_address, + -- Bribes + bribeETH * price AS bribe_usd, + bribeETH AS bribe_token_amount, + '{{fee_token_symbol}}' AS bribe_token_symbol, + '{{weth}}' AS bribe_token_address, + -- Dex + project, + version, + token_pair, + CAST(project_contract_address AS VARCHAR) AS project_contract_address, + -- User + CAST(user AS VARCHAR) AS user, + CAST(botTrades.tx_hash AS VARCHAR) AS tx_hash, + evt_index, + IF(evt_index = highestEventIndex, true, false) AS is_last_trade_in_transaction +FROM + botTrades + JOIN highestEventIndexForEachTrade ON botTrades.tx_hash = highestEventIndexForEachTrade.tx_hash + LEFT JOIN botETHDeltas ON botTrades.tx_hash = botETHDeltas.tx_hash + LEFT JOIN minerBribes ON botTrades.tx_hash = minerBribes.tx_hash + LEFT JOIN {{ source('prices', 'usd') }} ON ( + blockchain = '{{blockchain}}' + AND contract_address = {{weth}} + AND minute = DATE_TRUNC('minute', block_time) + ) +ORDER BY + block_time DESC, + evt_index DESC \ No newline at end of file diff --git a/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_bnb_bot_trades.sql b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_bnb_bot_trades.sql new file mode 100644 index 00000000000..558fa92b2e4 --- /dev/null +++ b/solana/models/_sector/dex/bot_trades/evm/banana_gun/ethereum/banana_gun_bnb_bot_trades.sql @@ -0,0 +1,198 @@ +{{ config( + alias = 'bot_trades', + schema = 'banana_gun_bnb', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], + unique_key = ['blockchain', 'tx_hash', 'evt_index'] + ) +}} + +{% set project_start_date = '2024-03-15' %} +{% set blockchain = 'bnb' %} +{% set bot_deployer_1 = '0x37aAb97476bA8dC785476611006fD5dDA4eed66B' %} +{% set wbnb = '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c' %} +{% set fee_token_symbol = 'BNB' %} + +WITH + botContracts AS ( + SELECT + address + FROM + {{ source('bnb','creation_traces') }} + WHERE + ( + "from" = {{bot_deployer_1}} + ) + AND block_time >= TIMESTAMP '{{project_start_date}}' + ), + botTrades AS ( + SELECT + trades.block_time, + amount_usd, + IF( + token_sold_address = {{wbnb}}, + 'Buy', + 'Sell' + ) AS type, + token_bought_amount, + token_bought_symbol, + token_bought_address, + token_sold_amount, + token_sold_symbol, + token_sold_address, + project, + version, + token_pair, + project_contract_address, + tx_from AS user, + tx_to AS bot, + trades.tx_hash, + evt_index + FROM + {{ source('dex', 'trades') }} as trades + JOIN botContracts ON trades.tx_to = botContracts.address + WHERE + trades.blockchain = '{{blockchain}}' + AND trades.block_time >= TIMESTAMP '{{project_start_date}}' + ), + highestEventIndexForEachTrade AS ( + SELECT + tx_hash, + MAX(evt_index) AS highestEventIndex + FROM + botTrades + GROUP BY + tx_hash + ), + botETHDeposits AS ( + SELECT + tx_hash, + block_number, + CAST(value AS DECIMAL (38, 0)) AS deltaGwei, + CAST(value AS DECIMAL (38, 0)) AS depositGwei + FROM + {{ source('bnb','traces') }} + JOIN botContracts ON to = botContracts.address + WHERE + block_time >= TIMESTAMP '{{project_start_date}}' + AND value > CAST(0 AS UINT256) + ), + botETHWithdrawals AS ( + SELECT + tx_hash, + block_number, + CAST(value AS DECIMAL (38, 0)) * -1 AS deltaGwei, + 0 AS depositGwei, + block_hash, + to + FROM + {{ source('bnb','traces') }} + JOIN botContracts ON "from" = botContracts.address + WHERE + block_time >= TIMESTAMP '{{project_start_date}}' + AND value > CAST(0 AS UINT256) + ), + botEthTransfers AS ( + /* Deposits */ + ( + SELECT + tx_hash, + block_number, + deltaGwei, + depositGwei + FROM + botETHDeposits + ) + UNION ALL + /* Withdrawals */ + ( + SELECT + tx_hash, + block_number, + deltaGwei, + depositGwei + FROM + botETHWithdrawals + ) + ), + botEthDeltas AS ( + SELECT + tx_hash, + block_number, + SUM(deltaGwei) AS feeGwei, + SUM(depositGwei) AS depositGwei + FROM + botEthTransfers + GROUP BY + tx_hash, + block_number + ), + minerBribes AS ( + SELECT + tx_hash, + SUM(deltaGwei * -1) / 1e18 AS bribeETH + FROM + botETHWithdrawals + JOIN {{ source('bnb','blocks') }} AS blocks ON ( + botETHWithdrawals.block_hash = blocks.hash + AND botETHWithdrawals.to = blocks.miner + ) + GROUP BY + tx_hash + ) +SELECT + block_time, + date_trunc('day', botTrades.block_time) as block_date, + date_trunc('month', botTrades.block_time) as block_month, + block_number, + '{{blockchain}}' AS blockchain, + -- Trade + amount_usd, + type, + token_bought_amount, + token_bought_symbol, + CAST(token_bought_address AS VARCHAR) AS token_bought_address, + token_sold_amount, + token_sold_symbol, + CAST(token_sold_address AS VARCHAR) AS token_sold_address, + -- Fees + ROUND( + CAST(feeGwei AS DOUBLE) / CAST(depositGwei AS DOUBLE), + /* Round feePercentage to 0.01% steps */ + 4 + ) AS fee_percentage_fraction, + (feeGwei / 1e18) * price AS fee_usd, + feeGwei / 1e18 fee_token_amount, + '{{fee_token_symbol}}' AS fee_token_symbol, + '{{wbnb}}' AS fee_token_address, + -- Bribes + bribeETH * price AS bribe_usd, + bribeETH AS bribe_token_amount, + '{{fee_token_symbol}}' AS bribe_token_symbol, + '{{wbnb}}' AS bribe_token_address, + -- Dex + project, + version, + token_pair, + CAST(project_contract_address AS VARCHAR) AS project_contract_address, + -- User + CAST(user AS VARCHAR) AS user, + CAST(botTrades.tx_hash AS VARCHAR) AS tx_hash, + evt_index, + IF(evt_index = highestEventIndex, true, false) AS is_last_trade_in_transaction +FROM + botTrades + JOIN highestEventIndexForEachTrade ON botTrades.tx_hash = highestEventIndexForEachTrade.tx_hash + LEFT JOIN botETHDeltas ON botTrades.tx_hash = botETHDeltas.tx_hash + LEFT JOIN minerBribes ON botTrades.tx_hash = minerBribes.tx_hash + LEFT JOIN {{ source('prices', 'usd') }} ON ( + blockchain = '{{blockchain}}' + AND contract_address = {{wbnb}} + AND minute = DATE_TRUNC('minute', block_time) + ) +ORDER BY + block_time DESC, + evt_index DESC \ No newline at end of file From 97a276dbfb9665c0046cb19bcf437ed9875e8865 Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Wed, 3 Jul 2024 21:23:47 +0200 Subject: [PATCH 21/22] chore: add base seed file --- .../banana_gun/banana_gun_evm_trades_seed.csv | 60 ++++++++++++------- 1 file changed, 40 insertions(+), 20 deletions(-) diff --git a/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv b/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv index 0796ac9710d..b65f9064348 100644 --- a/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv +++ b/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv @@ -1,21 +1,41 @@ block_time,block_date,block_month,block_number,blockchain,amount_usd,type,token_bought_amount,token_bought_symbol,token_bought_address,token_sold_amount,token_sold_symbol,token_sold_address,fee_percentage_fraction,fee_usd,fee_token_amount,fee_token_symbol,fee_token_address,bribe_usd,bribe_token_amount,bribe_token_symbol,bribe_token_address,project,version,token_pair,project_contract_address,user,tx_hash,evt_index,is_last_trade_in_transaction -2023-06-26 17:17:11.000 UTC,2023-06-26 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17565025,ethereum,368.09428,Buy,41569956.57418884,ChainLock,0x8ee29282d912e31eb90edc5ad71e9f991e30ae77,0.199,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.84972,0.001,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",ChainLock-WETH,0x0696c0b462ee687e1e18e554fd0af922262a9c61,0xdee6cfc3c51550e5bd46a4613a09424bc62b6be6,0xa8bfa7a06453b75a0cc9cfcdbaa17e5f4414fd423e2dd6eb93a45c99d5eacd55,66,true -2023-06-11 11:24:35.000 UTC,2023-06-11 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17456558,ethereum,37.098090426262196,Sell,0.021151047017185225,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,5976888.2912,4,0x12b0f909a10c919b0660465642330e15637671f2,0.005,0.1854904521313108,0.000105755235085926,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",4-WETH,0xcb1a70aeeed0bbbf30b34594870d6cbfa8f755aa,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0x6c782baf054cf258d6822015756434090d738921b9ec8a1741a97fbe2851546f,16,true -2023-06-18 19:02:35.000 UTC,2023-06-18 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17508615,ethereum,97.85887334696112,Sell,0.05622199114488338,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,16000000,RYAN,0x3d0932b29b36272447b708f4a9f0582ed73e7239,0.005,0.489294366734804,0.000281109955724416,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",RYAN-WETH,0x33725288fe62adb525e9fa858f141f78cf1b53fe,0x08ec71e8bcbbd41c4b2a95c1b6b3809683a749b8,0x92ede247c4079aeda1c6a3efc4714024c4ae4321d324ac88d269aafae503158b,35,true -2023-06-28 19:06:35.000 UTC,2023-06-28 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17579792,ethereum,183.92873500000002,Buy,824304512.6115716,REFUND,0xf5c2166e8236c4ee6eed2477f67d72faca0030f3,0.0995,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,0.924265,0.0005,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",REFUND-WETH,0x73384ceaa12beebaaf4475202e2e9e1da9c19da0,0xc458ca753a5ef4cf5da2aba8808e204c8adf48b6,0x2a1fe9d5b3508d9da6ca05730635963bcc9ebce46d17c172fbc6d2f929276d1a,17,true -2023-06-30 21:14:23.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17594689,ethereum,1559.1888940427511,Sell,0.8088799454462574,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,264716965.87467322,ZOOMER,0x0d505c03d30e65f6e9b4ef88855a47a89e4b7676,0.005,7.795944470213756,0.004044399727231287,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",WETH-ZOOMER,0xc2c701110de2b9503e98619d9c9e3017877b0f72,0x74cca59dd62a075484a0af5f9641dc85843ef0d9,0x4b3c4f9a1985cdf8f387c762ddac41ceff931b0c1383d57cf75b2e4ef25003af,31,true -2023-06-08 22:30:11.000 UTC,2023-06-08 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17438544,ethereum,42.89340075960389,Buy,4040000000,ERROR,0x702eb5835cd057f5bd3d6c5b6fd00a6ceb77098f,0.02312948614422504,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0,0,0,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",ERROR-WETH,0x26fd69b98fe93176c69af9bc4ca44dd47a13e57d,0x9c99d7af32c576eb71dbccc3718be211eb3e14ab,0x630da490f4b58e6c880810fc19f93495d8d474b59e72c385fd04cd4c834537b4,44,true -2023-06-29 21:38:59.000 UTC,2023-06-29 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17587686,ethereum,1192.5505342882316,Sell,0.643748500298639,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,3861000,PEPEC,0x3b803cd0515dcff3ac958f2f11af168b85147136,0.005,5.962752671441157,0.003218742501493194,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",PEPEC-WETH,0xa193fbd522b698ce8ce3afee6b1c51ac5f1f7f08,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0xebaddabc4a7e3fe543258c6f61786b83463d3c7e9b964cc8506ea14fbc5fd288,50,true -2023-06-20 15:59:59.000 UTC,2023-06-20 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17521955,ethereum,499.010833314197,Buy,14400000000,TOUCHGRASS,0x460a08123c6b196c5f1be35c6e2deace115a1311,0.28800440557192564,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0048,2.4950541665709847,0.001440022027859628,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",TOUCHGRASS-WETH,0x212b9bfaf77ccacc1a1d2b705217078f6e690b62,0x490a028a817a4eb52164c37fda25cff1f1b4b180,0xefd082ad20de585d9143f46f7451d66a37d6345531f7fde2fc1ce90ab0d0ab36,86,true -2023-06-27 20:31:59.000 UTC,2023-06-27 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17573079,ethereum,376.85227000000003,Buy,899960.8282192809,DOMI,0x682b7269e642c501c275c2eea89f5defd0e5da29,0.199,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.8937300000000001,0.001,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",DOMI-WETH,0xfc8e7283b40194e7a7984fe70d584958ccf15798,0x0bb454c2d4e642a5c18f1b3db4d020ba202907df,0xc830dd8580e6777e2bef69a5b03dd267e99113cb16837946472778024f8f8fcd,38,true -2023-06-20 08:12:59.000 UTC,2023-06-20 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17519648,ethereum,119.82518828580045,Buy,30000000,KOKO,0x5a22d54c73e1e0fcb21d68e80bf00bb55ecfad8d,0.06932442465637266,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0012,0.5991259414290018,0.000346622123281863,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",KOKO-WETH,0xe634b553e4738259b47ebe8007b6dfd1da49e9b2,0xe12352f93b86b7262099e8039580990c80e83ca5,0xbfc970a1d4f2d3c4406781a2c88fe6d9d7a8c66bbd33e2cfef45b1ef831d3147,254,true -2023-06-27 14:21:59.000 UTC,2023-06-27 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17571248,ethereum,247.39874351538117,Buy,1000000,xBBPP,0xe9fdb522f1b6623bb29cf1d70c4728a7e55c5634,0.13115278450087534,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0033,1.2369937175769046,0.000655763922504376,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",WETH-xBBPP,0xfcc8b9479380bdc125a22f26b7b5e8556260631e,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0x1c38a8e61a6284d76f3a7864db8982075362a5803a382ab2b4ab39ee513b50c3,40,true -2023-06-22 23:42:59.000 UTC,2023-06-22 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17538493,ethereum,280.08852,Buy,42.799570025,ADHD,0x5aa02fcbc3228f554bb25ad25d61b7e0d9171a90,0.14925,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.40748,0.00075,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",ADHD-WETH,0x40ac21338ffc2f9842e705ad6a6afd2e2ae5c0ec,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0xec24759a11c87c339b3bb3b94bc69af8e1f635aa84fec010b53db72d6fe8ef89,119,true -2023-06-14 18:10:11.000 UTC,2023-06-14 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17479865,ethereum,49.01570409693425,Sell,0.02818776473456452,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,1000000,SUMO,0x89de32e4faec49a49c6888c80177a64c44cfa279,0.005,0.27735408138124457,0.000159499730508508,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",SUMO-WETH,0x8974a4bda7f853350399efc8755f5a131526cc96,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x400b337136efd00a38e47129f90d7511cb1ecab92b915011ff3b14262982bfc8,62,false -2023-06-29 21:38:11.000 UTC,2023-06-29 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17587682,ethereum,300.38487893008005,Buy,2103450000000,PANDA2.0,0xc14717860700110ba3d4aa37e9e65c579d33972d,0.16215020643887484,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0041,1.5019243946503997,0.000810751032194374,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",PANDA2.0-WETH,0x67e79ac965b14d2545e982da4b7b39819b7f3a39,0xe8216d86406a259b06914381fabfeb21f0816d4f,0xd9ecd67631e501fc77a5b410edd908b8cb8aa86cc86bbdfb89fd9897d77ad30b,362,true -2023-06-28 22:50:47.000 UTC,2023-06-28 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17580908,ethereum,34.38071525584545,Sell,0.018778758954051143,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,1620000,NIGGA,0xcdb0a88b9262f80c18335721abe6f30d93838375,0.005,0.17190357627922595,0.000093893794770255,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",NIGGA-WETH,0x68abae52d15448b6dee54a77b4d5ffd638527ef0,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x6b0ca962f4f769b941b7a4d2c56695b15dcf03550bd491f4acd8ead330b83988,68,true -2023-06-30 02:01:47.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17588992,ethereum,52.09813260127674,Sell,0.028206282809942796,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,170112.502759297,AKITA2.0,0xe88c04843e6d0e23106d818ca0c733ac6b1ec4a1,0.005,0.2604906630063819,0.000141031414049713,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",AKITA2.0-WETH,0xc6c0f865332e493c4bd319aafa90e651a05efc45,0x1ce6aeb8627e63b9095f63fb6d5253ca00af9052,0xfdcc40a6e9df2c1a2faf40159f349b0facd7adb0c05a721985ebcbc9bfc82b84,4,true -2023-06-14 20:16:11.000 UTC,2023-06-14 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17480490,ethereum,11.583918363316796,Buy,100000000,PUPPET,0x3d758acddc716b6546eac6dff6b8999a48b403b6,0.006856621008799784,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0005,0.05791959181658242,0.000034283105043998,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",PUPPET-WETH,0x4ce950e3199ec50117305f4e856c8711da976a4b,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x7f08e1a6baaf3473397099ffa9f20bd20bdd57d7a9db19a8ea4ac8c0d0c2b5ac,39,true -2023-06-23 06:07:47.000 UTC,2023-06-23 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17540397,ethereum,168.49009107170215,Sell,0.0893808703459281,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,4330596.16229814,MIYAGI,0x77506f689ab69ac272c22461a9b4752da8ff8d19,0.005,0.8424504553585098,0.00044690435172964,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",MIYAGI-WETH,0x425d1e45c187789330858478f3524e70186360e9,0x0b2ee0131f16ff30770a26e3f0fd04ce815ce7aa,0xe4afc82443bd9eec4d9a8f7332175c2d892fb66cabf3d52eec8f6452fd9e4eb6,29,true -2023-06-16 20:54:35.000 UTC,2023-06-16 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17494903,ethereum,36.460887803062526,Sell,0.021144346259561422,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,11250000,ZACH,0x818127fecda533375a31cfdc320432dbc7711b48,0.005,0.18230443901531246,0.000105721731297807,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",WETH-ZACH,0xd550584fb4b64d4dc05bfff430f17ee926ad3abf,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0xe1c1bedb133ca58791db4528b8ac5779c83a7a388302b6d45e3a0c74ae28ac6f,48,true -2023-06-30 18:23:11.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17593848,ethereum,338.8265421627775,Buy,20000000,COLOSSEUM,0xc53d202865e5ad65ab138d13d28dfe6a17e8fdc0,0.17554778855235065,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0044,1.6941327108138868,0.000877738942761753,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,"2",COLOSSEUM-WETH,0x8df8089f479447ad6f5950d8539ac50b709a4af4,0xe4b145c9b367cde08ee6057b3620815f0a08d6b4,0x519d52a2f2b37cf863f46ab9caae829789dd7bbe6baec284b15cb4325d5520a5,49,true +2023-06-26 17:17:11.000 UTC,2023-06-26 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17565025,ethereum,368.09428,Buy,41569956.57418884,ChainLock,0x8ee29282d912e31eb90edc5ad71e9f991e30ae77,0.199,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.84972,0.001,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,ChainLock-WETH,0x0696c0b462ee687e1e18e554fd0af922262a9c61,0xdee6cfc3c51550e5bd46a4613a09424bc62b6be6,0xa8bfa7a06453b75a0cc9cfcdbaa17e5f4414fd423e2dd6eb93a45c99d5eacd55,66,true +2023-06-11 11:24:35.000 UTC,2023-06-11 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17456558,ethereum,37.098090426262196,Sell,0.021151047017185225,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,5976888.2912,4,0x12b0f909a10c919b0660465642330e15637671f2,0.005,0.1854904521313108,0.000105755235085926,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,4-WETH,0xcb1a70aeeed0bbbf30b34594870d6cbfa8f755aa,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0x6c782baf054cf258d6822015756434090d738921b9ec8a1741a97fbe2851546f,16,true +2023-06-18 19:02:35.000 UTC,2023-06-18 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17508615,ethereum,97.85887334696112,Sell,0.05622199114488338,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,16000000,RYAN,0x3d0932b29b36272447b708f4a9f0582ed73e7239,0.005,0.489294366734804,0.000281109955724416,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,RYAN-WETH,0x33725288fe62adb525e9fa858f141f78cf1b53fe,0x08ec71e8bcbbd41c4b2a95c1b6b3809683a749b8,0x92ede247c4079aeda1c6a3efc4714024c4ae4321d324ac88d269aafae503158b,35,true +2023-06-28 19:06:35.000 UTC,2023-06-28 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17579792,ethereum,183.92873500000002,Buy,824304512.6115716,REFUND,0xf5c2166e8236c4ee6eed2477f67d72faca0030f3,0.0995,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,0.924265,0.0005,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,REFUND-WETH,0x73384ceaa12beebaaf4475202e2e9e1da9c19da0,0xc458ca753a5ef4cf5da2aba8808e204c8adf48b6,0x2a1fe9d5b3508d9da6ca05730635963bcc9ebce46d17c172fbc6d2f929276d1a,17,true +2023-06-30 21:14:23.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17594689,ethereum,1559.1888940427511,Sell,0.8088799454462574,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,264716965.87467322,ZOOMER,0x0d505c03d30e65f6e9b4ef88855a47a89e4b7676,0.005,7.795944470213756,0.004044399727231287,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,WETH-ZOOMER,0xc2c701110de2b9503e98619d9c9e3017877b0f72,0x74cca59dd62a075484a0af5f9641dc85843ef0d9,0x4b3c4f9a1985cdf8f387c762ddac41ceff931b0c1383d57cf75b2e4ef25003af,31,true +2023-06-08 22:30:11.000 UTC,2023-06-08 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17438544,ethereum,42.89340075960389,Buy,4040000000,ERROR,0x702eb5835cd057f5bd3d6c5b6fd00a6ceb77098f,0.02312948614422504,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0,0,0,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,ERROR-WETH,0x26fd69b98fe93176c69af9bc4ca44dd47a13e57d,0x9c99d7af32c576eb71dbccc3718be211eb3e14ab,0x630da490f4b58e6c880810fc19f93495d8d474b59e72c385fd04cd4c834537b4,44,true +2023-06-29 21:38:59.000 UTC,2023-06-29 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17587686,ethereum,1192.5505342882316,Sell,0.643748500298639,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,3861000,PEPEC,0x3b803cd0515dcff3ac958f2f11af168b85147136,0.005,5.962752671441157,0.003218742501493194,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,PEPEC-WETH,0xa193fbd522b698ce8ce3afee6b1c51ac5f1f7f08,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0xebaddabc4a7e3fe543258c6f61786b83463d3c7e9b964cc8506ea14fbc5fd288,50,true +2023-06-20 15:59:59.000 UTC,2023-06-20 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17521955,ethereum,499.010833314197,Buy,14400000000,TOUCHGRASS,0x460a08123c6b196c5f1be35c6e2deace115a1311,0.28800440557192564,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0048,2.4950541665709847,0.001440022027859628,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,TOUCHGRASS-WETH,0x212b9bfaf77ccacc1a1d2b705217078f6e690b62,0x490a028a817a4eb52164c37fda25cff1f1b4b180,0xefd082ad20de585d9143f46f7451d66a37d6345531f7fde2fc1ce90ab0d0ab36,86,true +2023-06-27 20:31:59.000 UTC,2023-06-27 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17573079,ethereum,376.85227000000003,Buy,899960.8282192809,DOMI,0x682b7269e642c501c275c2eea89f5defd0e5da29,0.199,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.8937300000000001,0.001,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,DOMI-WETH,0xfc8e7283b40194e7a7984fe70d584958ccf15798,0x0bb454c2d4e642a5c18f1b3db4d020ba202907df,0xc830dd8580e6777e2bef69a5b03dd267e99113cb16837946472778024f8f8fcd,38,true +2023-06-20 08:12:59.000 UTC,2023-06-20 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17519648,ethereum,119.82518828580045,Buy,30000000,KOKO,0x5a22d54c73e1e0fcb21d68e80bf00bb55ecfad8d,0.06932442465637266,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0012,0.5991259414290018,0.000346622123281863,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,KOKO-WETH,0xe634b553e4738259b47ebe8007b6dfd1da49e9b2,0xe12352f93b86b7262099e8039580990c80e83ca5,0xbfc970a1d4f2d3c4406781a2c88fe6d9d7a8c66bbd33e2cfef45b1ef831d3147,254,true +2023-06-27 14:21:59.000 UTC,2023-06-27 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17571248,ethereum,247.39874351538117,Buy,1000000,xBBPP,0xe9fdb522f1b6623bb29cf1d70c4728a7e55c5634,0.13115278450087534,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0033,1.2369937175769046,0.000655763922504376,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,WETH-xBBPP,0xfcc8b9479380bdc125a22f26b7b5e8556260631e,0xe77fd9756dac9ebfe8a7d9c623d988814987964e,0x1c38a8e61a6284d76f3a7864db8982075362a5803a382ab2b4ab39ee513b50c3,40,true +2023-06-22 23:42:59.000 UTC,2023-06-22 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17538493,ethereum,280.08852,Buy,42.799570025,ADHD,0x5aa02fcbc3228f554bb25ad25d61b7e0d9171a90,0.14925,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.005,1.40748,0.00075,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,ADHD-WETH,0x40ac21338ffc2f9842e705ad6a6afd2e2ae5c0ec,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0xec24759a11c87c339b3bb3b94bc69af8e1f635aa84fec010b53db72d6fe8ef89,119,true +2023-06-14 18:10:11.000 UTC,2023-06-14 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17479865,ethereum,49.01570409693425,Sell,0.02818776473456452,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,1000000,SUMO,0x89de32e4faec49a49c6888c80177a64c44cfa279,0.005,0.27735408138124457,0.000159499730508508,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,SUMO-WETH,0x8974a4bda7f853350399efc8755f5a131526cc96,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x400b337136efd00a38e47129f90d7511cb1ecab92b915011ff3b14262982bfc8,62,false +2023-06-29 21:38:11.000 UTC,2023-06-29 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17587682,ethereum,300.38487893008005,Buy,2103450000000,PANDA2.0,0xc14717860700110ba3d4aa37e9e65c579d33972d,0.16215020643887484,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0041,1.5019243946503997,0.000810751032194374,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,PANDA2.0-WETH,0x67e79ac965b14d2545e982da4b7b39819b7f3a39,0xe8216d86406a259b06914381fabfeb21f0816d4f,0xd9ecd67631e501fc77a5b410edd908b8cb8aa86cc86bbdfb89fd9897d77ad30b,362,true +2023-06-28 22:50:47.000 UTC,2023-06-28 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17580908,ethereum,34.38071525584545,Sell,0.018778758954051143,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,1620000,NIGGA,0xcdb0a88b9262f80c18335721abe6f30d93838375,0.005,0.17190357627922595,0.000093893794770255,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,NIGGA-WETH,0x68abae52d15448b6dee54a77b4d5ffd638527ef0,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x6b0ca962f4f769b941b7a4d2c56695b15dcf03550bd491f4acd8ead330b83988,68,true +2023-06-30 02:01:47.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17588992,ethereum,52.09813260127674,Sell,0.028206282809942796,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,170112.502759297,AKITA2.0,0xe88c04843e6d0e23106d818ca0c733ac6b1ec4a1,0.005,0.2604906630063819,0.000141031414049713,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,AKITA2.0-WETH,0xc6c0f865332e493c4bd319aafa90e651a05efc45,0x1ce6aeb8627e63b9095f63fb6d5253ca00af9052,0xfdcc40a6e9df2c1a2faf40159f349b0facd7adb0c05a721985ebcbc9bfc82b84,4,true +2023-06-14 20:16:11.000 UTC,2023-06-14 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17480490,ethereum,11.583918363316796,Buy,100000000,PUPPET,0x3d758acddc716b6546eac6dff6b8999a48b403b6,0.006856621008799784,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0005,0.05791959181658242,0.000034283105043998,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,PUPPET-WETH,0x4ce950e3199ec50117305f4e856c8711da976a4b,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0x7f08e1a6baaf3473397099ffa9f20bd20bdd57d7a9db19a8ea4ac8c0d0c2b5ac,39,true +2023-06-23 06:07:47.000 UTC,2023-06-23 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17540397,ethereum,168.49009107170215,Sell,0.0893808703459281,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,4330596.16229814,MIYAGI,0x77506f689ab69ac272c22461a9b4752da8ff8d19,0.005,0.8424504553585098,0.00044690435172964,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,MIYAGI-WETH,0x425d1e45c187789330858478f3524e70186360e9,0x0b2ee0131f16ff30770a26e3f0fd04ce815ce7aa,0xe4afc82443bd9eec4d9a8f7332175c2d892fb66cabf3d52eec8f6452fd9e4eb6,29,true +2023-06-16 20:54:35.000 UTC,2023-06-16 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17494903,ethereum,36.460887803062526,Sell,0.021144346259561422,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,11250000,ZACH,0x818127fecda533375a31cfdc320432dbc7711b48,0.005,0.18230443901531246,0.000105721731297807,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,WETH-ZACH,0xd550584fb4b64d4dc05bfff430f17ee926ad3abf,0xc4fb7ad11fbc1c5733e5f56043f44c690d6c5686,0xe1c1bedb133ca58791db4528b8ac5779c83a7a388302b6d45e3a0c74ae28ac6f,48,true +2023-06-30 18:23:11.000 UTC,2023-06-30 00:00:00.000 UTC,2023-06-01 00:00:00.000 UTC,17593848,ethereum,338.8265421627775,Buy,20000000,COLOSSEUM,0xc53d202865e5ad65ab138d13d28dfe6a17e8fdc0,0.17554778855235065,WETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0.0044,1.6941327108138868,0.000877738942761753,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,,,ETH,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,uniswap,2,COLOSSEUM-WETH,0x8df8089f479447ad6f5950d8539ac50b709a4af4,0xe4b145c9b367cde08ee6057b3620815f0a08d6b4,0x519d52a2f2b37cf863f46ab9caae829789dd7bbe6baec284b15cb4325d5520a5,49,true +2024-07-02 08:58:29.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16560681,base,18.381387866785996,Sell,0.005338336663526055,WETH,0x4200000000000000000000000000000000000006,343.8333359732561,BORPA,0x0002bcdaf53f4889bf2f43a3252d7c03fe1b80bc,0.005,0.18381387866782709,0.000053383366635251,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,aerodrome,1,BORPA-WETH,0x936be91f9706c456d329236a2f233c6fc1d07b1e,0xe9182727fe5494e46b13c0568fb353eec5d995b3,0xe2f074f7e9e43e70380c38a904c907632911cd0cdafb42dc4f405e658b9fd189,8,true +2024-07-03 15:29:09.000 UTC,2024-07-03 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16615601,base,61.072512132147786,Sell,0.01843698479461065,WETH,0x4200000000000000000000000000000000000006,110000000,BCAT,0x151712b1d6fcf1d4b47ac1f37ea6127616f39027,0.005,0.6107251213214762,0.000184369847946106,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,BCAT-WETH,0xb7dc09971b46b160a3ecd515b9e4e9bbd53deb5e,0x1fa5bb9aaefe45c0ec91890561a9c0f30cd842c9,0xadbea8968a48d0e353f8bddaca11e7360d4abf0994c9388ba13d3a5d787bbab2,5,true +2024-07-03 11:54:59.000 UTC,2024-07-03 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16609176,base,16.3739603960396,Buy,3020637.178521695,RABBIT,0xa74fca6d1a2bb3109fd43a528255d3ad5dd6f792,0.00495049504950495,WETH,0x4200000000000000000000000000000000000006,0.005,0.1637396039603977,0.00004950495049505,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,RABBIT-WETH,0x8c86196c6578672987b943d8b7e17dd70b2c3ff6,0x913686a8514952dc343ef0084e68dc4ce2492b20,0x428b6564f034f37f787ff9b45368e20d881a6d3e896d56f166c3e88262a859bb,4,true +2024-07-02 21:19:11.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16582902,base,833.6997158783012,Sell,0.2437611554692926,WETH,0x4200000000000000000000000000000000000006,4955853755.063859,HOPPY,0xeee5f3944694ef8f4e6fe97b58442f7f87cb5e3d,0.005,8.336997158783,0.002437611554692923,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,HOPPY-WETH,0x33ae5623361a7e0612b504e4a2e0d67168d86208,0x29b7211be90fe1e70d6ceeb9860c7b36b48365d9,0x1091e274f5ebc68d8ea4cca305bb9d0c146c6d5c70c08ccb9cc31bcb143c01f9,3,true +2024-07-02 17:23:49.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16575841,base,100.86112180462679,Sell,0.029525830219473127,WETH,0x4200000000000000000000000000000000000006,0.004018988257126081,8BTC,0xeac0aa89e1adcdff943a3b2aeebaa2158da69eb8,0.005,1.0086112180462636,0.00029525830219473,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,3,8BTC-WETH,0xfc929d4eb2cb4339e655d53707fe53d31b9f4e48,0x913686a8514952dc343ef0084e68dc4ce2492b20,0x44b11577ff1ebaea9da7cdd08b2ae34adf97935781f6d1a0af63a44eba205643,6,true +2024-07-03 16:05:09.000 UTC,2024-07-03 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16616681,base,81.80668316831682,Buy,33440.02611823292,KEYCAT,0x9a26f5433671751c3276a065f57e5a02d2817973,0.024752475247524754,WETH,0x4200000000000000000000000000000000000006,0.005,0.8180668316831698,0.000247524752475248,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,KEYCAT-WETH,0x377feeed4820b3b28d1ab429509e7a0789824fca,0x5b7cc90c3635fbcf0441be7f442666c8629d09b7,0x6141a106e080ba18ed6f2a80145148e801e6c79484406b58101e9403d5296ec1,4,true +2024-07-03 15:47:09.000 UTC,2024-07-03 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16616141,base,180.24666921785396,Sell,0.05453080532153469,WETH,0x4200000000000000000000000000000000000006,274478108.8933938,BCAT,0x151712b1d6fcf1d4b47ac1f37ea6127616f39027,0.005,1.8024666921785302,0.000545308053215344,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,BCAT-WETH,0xb7dc09971b46b160a3ecd515b9e4e9bbd53deb5e,0xbcffc509a725a8cbb033a537d68410d2c9ba4287,0x4090ebae2dfffb2614c3a0cbbe471300e988c92d001028b1c03b9b96985e6d8c,4,true +2024-07-02 16:25:25.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16574089,base,168.99603960396038,Buy,1939621.9096179411,DJTB,0x7d33b8ebae6de490729b83ed61e82878f4a4df81,0.04950495049504951,WETH,0x4200000000000000000000000000000000000006,0.005,1.6899603960396072,0.000495049504950496,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,DJTB-WETH,0x1a9497fcf42d0287dc3d80d2d969a37990a31b43,0xd0b7f8f2bd278283707a7583dd50d2a6f6434516,0x30ecc8c49790df4cce8453cdf747d4db18470f3b40263320cc28f9e52d96b6ad,11,true +2024-07-02 21:15:57.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16582805,base,1045.2764156912597,Sell,0.30562297434067504,WETH,0x4200000000000000000000000000000000000006,11194154.586579362,PMB,0x579b26c8e10a7fe712fd6a3b78de8aa718984dc2,0.005,10.452764156912593,0.003056229743406749,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,PMB-WETH,0xc32c9b273978b61a798175dceb1d3f22af7a912a,0x5991667159ded7b6f228670d54b9e9910cefe8e7,0x03575ea80f4ae043db35acab9f7e1c40ba57e94487467dd7f2befa7045817755,17,true +2024-07-03 14:26:53.000 UTC,2024-07-03 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16613733,base,163.4824900291536,Sell,0.04921414208580542,WETH,0x4200000000000000000000000000000000000006,4559382.505196178,BMOB,0x230309343162447bed5ad0ca59161323a7e41313,0.005,1.6348249002915354,0.000492141420858054,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,BMOB-WETH,0x34da02d9baff757340a2911c01641077fb8614bb,0x0fef077839ef73c9e089ebbe820843c020ae269b,0xb8c723c24499418d6aff8d42811d476dc83e9cca3bbb96bebad7c0ece06064c5,30,true +2024-07-02 20:04:29.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16580661,base,50.80232673267327,Buy,6901.918166548091,DEGEN,0x4ed4e862860bed51a9570b96d89af5e1b0efefed,0.014851485148514853,WETH,0x4200000000000000000000000000000000000006,0.005,0.5080232673267343,0.000148514851485149,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,3,DEGEN-WETH,0xc9034c3e7f58003e6ae0c8438e7c8f4598d5acaa,0x42f5198b2ba5cfbe162b9a6b4354ae9e86f6a88a,0x72f679b3ceae179502154d06735b7fb3cb108a6be6df6109e82212e7f8dbd6ea,5,true +2024-07-02 09:41:13.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16561963,base,0.7653212117716965,Sell,0.000222134853792615,WETH,0x4200000000000000000000000000000000000006,114775026.81268242,HTTPS,0x8a0a44c2eb42e144ad915c7bcc162dd9298141ab,0.005,0.007653212117709557,0.000002221348537924,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,HTTPS-WETH,0xa41d867d04dd8e1175bc3fe219909d1b7695a129,0x238fc2818540c5776f2659f6d50a569504186191,0xaa1b9ca685d9e5a5a607caac34595e5d710a253d2bb2b9a2b66526b5a515c4b6,5,true +2024-07-02 16:38:11.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16574472,base,254.03349328195944,Sell,0.07440215013837545,WETH,0x4200000000000000000000000000000000000006,,,0x1335ba286930a2ba516f8911bf178852a284285c,0.005,2.5403349328195826,0.000744021501383751,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,,0x6afc98acbe4244b1030380dc3c3fc1c5d4aba86d,0xc4dd8211988263c932c0afb59677dd92ab898046,0x9b9d8c647d9ffcd7400cb6725bc69a550b9e09a396f2328414ffbc64a406aec1,138,true +2024-07-02 03:39:01.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16551097,base,131.81108224425287,Sell,0.03816087080656638,WETH,0x4200000000000000000000000000000000000006,4421.798101107599,Crash,0x4dd9077269dd08899f2a9e73507125962b5bc87f,0.005,1.3181108224425226,0.000381608708065662,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,Crash-WETH,0xf012e803c8e73d185ac96d6c3f830893a1116e03,0xd9e9335dc1f30579dce77758640d527581f27fc4,0x15b7322984a0dc244dcb834811393419d6cc965ea1d0005e13fb6ce10fdba2ad,184,true +2024-07-02 01:06:21.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16546517,base,80.3891556755496,Buy,11357915.017306687,PEIPEI,0xb8943737170dc4802a68b328f7044cc53836bf0e,0.023342680088258152,WETH,0x4200000000000000000000000000000000000006,0.005,0.8038915567554976,0.000233426800882582,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,PEIPEI-WETH,0xd90ace39d8923396b891c3a5a6bf3c95e3212aa8,0x03cbc67917551d2c11380e7c5dd5c363792a3a6e,0xf2007b9867bf6985e7a21180bb11b1148187eb173158356e39a47f5e91d79ab2,33,true +2024-07-02 21:00:57.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16582355,base,152.2670792079208,Buy,7376119.198542235,BCOLA,0x2a5ff3ce04e9cc9862daac875e80ccc04613dd3c,0.04455445544554455,WETH,0x4200000000000000000000000000000000000006,0.005,1.5226707920792095,0.000445544554455446,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,BCOLA-WETH,0x9aa5ef9dc108c81a9c7053f649c62e803d9cc1a3,0x913686a8514952dc343ef0084e68dc4ce2492b20,0xf40d659fab8ca9e87581fb4c09bc361fa860dc34cbd76f7bcc88744c7e80abfe,4,true +2024-07-02 05:51:25.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16555069,base,17.1029702970297,Buy,63590.24514564104,WORKIE,0x7480527815ccae421400da01e052b120cc4255e9,0.00495049504950495,WETH,0x4200000000000000000000000000000000000006,0.005,0.17102970297029876,0.00004950495049505,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,WETH-WORKIE,0x228d69c0bcde48eeb61e3ea734570ca9b4df687d,0x7c23bf8ad16f65311e38e09ec3f9eed997014813,0xa7383d9d4976c7a401c5aa55e411c88925432cfc044873ef389ffcc9fbd21314,4,true +2024-07-02 00:36:17.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16545615,base,40.897188118811876,Buy,967076.5390742943,BRUMP,0x1c28f1084250302b919d631deac73472db60f3ac,0.01188118811881188,WETH,0x4200000000000000000000000000000000000006,0.005,0.40897188118811945,0.000118811881188119,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,BRUMP-WETH,0x00171d8975ba7bf7b1c7c6cd6eb71f0f254c79b6,0x913686a8514952dc343ef0084e68dc4ce2492b20,0xd36f96180ac888248b014d4399b4fca27b8c3737de3fbc23c882e48b6e892c94,9,true +2024-07-02 14:08:13.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16569973,base,66.79913670869018,Buy,250000000,BG,0x671be423db7b785f9426a636af311adee4939e3f,0.01942168473915299,WETH,0x4200000000000000000000000000000000000006,0.001,0.6679913670868988,0.000194216847391529,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,BG-WETH,0xe1f9684d77701dc8659881bc9166900685572526,0xa43efef891fc88fea55ecda8be88d17d316199db,0x9dc5777b6764e13c6c9b3315b79635582548c4748d81348b0930a2c7b1ba1ff5,49,true +2024-07-02 06:28:15.000 UTC,2024-07-02 00:00:00.000 UTC,2024-07-01 00:00:00.000 UTC,16556174,base,34.20504950495049,Buy,4168941.673987605,BREW,0x691e6775a671aa18ae78d9eeff9a2214e79b7a54,0.0099009900990099,WETH,0x4200000000000000000000000000000000000006,0.005,0.3420504950495084,0.0000990099009901,ETH,0x4200000000000000000000000000000000000006,,,ETH,0x4200000000000000000000000000000000000006,uniswap,2,BREW-WETH,0x47151ccb1cf315ca5e81a1ff2f6b121c69d10b64,0x913686a8514952dc343ef0084e68dc4ce2492b20,0xf3e07ac008b82cb034da64672c2e3e4f6d0e26fe2d7f6d81dc75475e6d6a014e,28,true From 56cb4ed6b8af818792c1f4bd865c024637dd23ce Mon Sep 17 00:00:00 2001 From: whale_hunter <143016036+whalehunting@users.noreply.github.com> Date: Thu, 4 Jul 2024 06:51:25 +0200 Subject: [PATCH 22/22] fix: force version column in seed to get parsed as a varchar --- .../banana_gun/{ => evm}/banana_gun_evm_trades_seed.csv | 0 solana/seeds/banana_gun/evm/schema.yml | 7 +++++++ 2 files changed, 7 insertions(+) rename solana/seeds/banana_gun/{ => evm}/banana_gun_evm_trades_seed.csv (100%) create mode 100644 solana/seeds/banana_gun/evm/schema.yml diff --git a/solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv b/solana/seeds/banana_gun/evm/banana_gun_evm_trades_seed.csv similarity index 100% rename from solana/seeds/banana_gun/banana_gun_evm_trades_seed.csv rename to solana/seeds/banana_gun/evm/banana_gun_evm_trades_seed.csv diff --git a/solana/seeds/banana_gun/evm/schema.yml b/solana/seeds/banana_gun/evm/schema.yml new file mode 100644 index 00000000000..7ae27219423 --- /dev/null +++ b/solana/seeds/banana_gun/evm/schema.yml @@ -0,0 +1,7 @@ +version: 2 + +seeds: + - name: banana_gun_evm_trades_seed + config: + column_types: + version: varchar