mirror of
https://github.com/FlipsideCrypto/external-models.git
synced 2026-02-06 13:17:03 +00:00
update (#62)
This commit is contained in:
parent
b378f5580a
commit
bdfd16ffc5
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user