Skip to content

Commit

Permalink
Add block_number
Browse files Browse the repository at this point in the history
  • Loading branch information
Hosuke committed Nov 13, 2023
1 parent f7b795d commit bca546f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ WITH dexs as
, toToken AS token_sold_address
, contract_address AS project_contract_address
, evt_tx_hash AS tx_hash
, evt_block_number as block_number
, evt_index
FROM
{{ source('woofi_optimism', 'WooPPV2_evt_WooSwap')}}
Expand All @@ -47,6 +48,7 @@ WITH dexs as
, toToken AS token_sold_address
, contract_address AS project_contract_address
, evt_tx_hash AS tx_hash
, evt_block_number as block_number
, evt_index
FROM
{{ source('woofi_optimism', 'WooRouterV2_evt_WooRouterSwap')}}
Expand All @@ -63,6 +65,7 @@ SELECT
, CAST(date_trunc('month', dexs.block_time) AS date) AS block_month
, CAST(date_trunc('day', dexs.block_time) AS date) AS block_date
, dexs.block_time
, dexs.block_number
, dexs.token_bought_amount_raw
, dexs.token_sold_amount_raw
, dexs.token_bought_address
Expand Down

0 comments on commit bca546f

Please sign in to comment.