diff --git a/models/flashbots/bronze/bronze__flashbots_protect_txs.sql b/models/flashbots/bronze/bronze__flashbots_protect_txs.sql index 86fbc5a..65e1408 100644 --- a/models/flashbots/bronze/bronze__flashbots_protect_txs.sql +++ b/models/flashbots/bronze/bronze__flashbots_protect_txs.sql @@ -28,9 +28,7 @@ WITH meta AS ( tx_hash, from_address, to_address, - public_mempool, created_at_block_number, - included_block_number, tx_id, hints_selected, num_of_builders_shared, diff --git a/models/flashbots/bronze/bronze__flashbots_protect_txs_fr.sql b/models/flashbots/bronze/bronze__flashbots_protect_txs_fr.sql index e6a974e..a195a93 100644 --- a/models/flashbots/bronze/bronze__flashbots_protect_txs_fr.sql +++ b/models/flashbots/bronze/bronze__flashbots_protect_txs_fr.sql @@ -27,9 +27,7 @@ WITH meta AS ( tx_hash, from_address, to_address, - public_mempool, created_at_block_number, - included_block_number, tx_id, hints_selected, num_of_builders_shared, diff --git a/models/flashbots/gold/flashbots__fact_protect_transactions.sql b/models/flashbots/gold/flashbots__fact_protect_transactions.sql index 76007d4..b2e9eb4 100644 --- a/models/flashbots/gold/flashbots__fact_protect_transactions.sql +++ b/models/flashbots/gold/flashbots__fact_protect_transactions.sql @@ -14,9 +14,7 @@ SELECT tx_hash, from_address, to_address, - public_mempool, created_at_block_number, - included_block_number, tx_id, hints_selected, num_of_builders_shared, diff --git a/models/flashbots/silver/silver__flashbots_protect_txs.sql b/models/flashbots/silver/silver__flashbots_protect_txs.sql index 5de97ba..9d51bc3 100644 --- a/models/flashbots/silver/silver__flashbots_protect_txs.sql +++ b/models/flashbots/silver/silver__flashbots_protect_txs.sql @@ -2,7 +2,7 @@ {{ config( materialized = "incremental", unique_key = "_id", - cluster_by = "round(included_block_number,-3)", + cluster_by = "round(created_at_block_number,-3)", tags = ['flashbots'] ) }} @@ -10,16 +10,14 @@ SELECT tx_hash, LOWER(from_address) AS from_address, LOWER(to_address) AS to_address, - public_mempool, created_at_block_number, - included_block_number, tx_id, hints_selected, num_of_builders_shared, refund_percent, _inserted_timestamp, {{ dbt_utils.generate_surrogate_key( - ['tx_hash', 'created_at_block_number', 'included_block_number', 'tx_id'] + ['tx_hash', 'created_at_block_number', 'tx_id'] ) }} AS _id FROM