Skip to content

Commit

Permalink
paraswap all entities query: exclude stage txs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshchur committed Dec 19, 2024
1 parent 6d85cf5 commit b4ca1ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ set date_to = "timestamp '{{date_to}}'"
{%
set date_from = "timestamp '{{date_from}}'"
%}

{# 0xace5ae3de4baffc4a45028659c5ee330764e4f53 is testing agent address on staging #}
{%
set delta_configs = [
['ethereum', 'delta-v1-single', 'paraswapdelta_ethereum.ParaswapDeltav1_call_settleSwap', 'contract_address', 'call_block_time', 'call_tx_hash', null],
['ethereum', 'delta-v1-batch', 'paraswapdelta_ethereum.ParaswapDeltav1_call_safeSettleBatchSwap', 'contract_address', 'call_block_time', 'call_tx_hash', null],

['ethereum', 'delta-v2', 'paraswapdelta_ethereum.ParaswapDeltav2_evt_OrderSettled', 'contract_address', 'evt_block_time', 'evt_tx_hash', null],
['base', 'delta-v2', 'paraswapdelta_base.ParaswapDeltav2_evt_OrderSettled', 'contract_address', 'evt_block_time', 'evt_tx_hash', null],
['base', 'delta-v2', 'paraswapdelta_base.ParaswapDeltav2_evt_OrderSettled', 'contract_address', 'evt_block_time', 'evt_tx_hash', 'evt_tx_from <> 0xace5ae3de4baffc4a45028659c5ee330764e4f53'],

['ethereum', 'augustus', 'dex_aggregator.trades', 'project_contract_address', 'block_time', 'tx_hash', "project='paraswap' and blockchain='ethereum'"],

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ with entities as (
where
(evt_block_time BETWEEN timestamp '{{date_from}}' AND timestamp '{{date_to}}')

AND evt_tx_from <> 0xace5ae3de4baffc4a45028659c5ee330764e4f53

union all

select 'augustus' as entity, 'ethereum' as blockchain, project_contract_address as contract_address, block_time as block_time, tx_hash as tx_hash from dex_aggregator.trades
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ with entities as (
where
(evt_block_time BETWEEN timestamp '{{date_from}}' AND timestamp '{{date_to}}')

AND evt_tx_from <> 0xace5ae3de4baffc4a45028659c5ee330764e4f53

union all

select 'augustus' as entity, 'ethereum' as blockchain, project_contract_address as contract_address, block_time as block_time, tx_hash as tx_hash from dex_aggregator.trades
Expand Down

0 comments on commit b4ca1ca

Please sign in to comment.