From 7948470f65e179fe3f864a8547fa87f67b1e8111 Mon Sep 17 00:00:00 2001 From: Meghan Date: Fri, 23 Dec 2022 13:28:24 -0500 Subject: [PATCH 1/7] script to find sources missing checks --- scripts/validate_source_freshness_checks.py | 48 +++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 scripts/validate_source_freshness_checks.py diff --git a/scripts/validate_source_freshness_checks.py b/scripts/validate_source_freshness_checks.py new file mode 100644 index 00000000000..44f6cc2b8dd --- /dev/null +++ b/scripts/validate_source_freshness_checks.py @@ -0,0 +1,48 @@ +import argparse +import json +import logging +import sys + +logging.basicConfig(stream=sys.stdout, level=logging.WARN) + + +parser = argparse.ArgumentParser() +parser.add_argument('--model') +args = parser.parse_args() + + + +class Sources: + def __init__(self, model, manifest): + self.model = model + self.manifest = manifest + self.node_dependencies = self.manifest['nodes'][self.model]['depends_on'].get('nodes') + self.model_dependencies = [model for model in self.node_dependencies if 'model' in model] + self.source_node_dependencies = [model for model in self.node_dependencies if 'source' in model] + if self.model_dependencies != []: + self.subjects = [Sources(model=subject_model, manifest=manifest) for subject_model in + self.model_dependencies] + for subject in self.subjects: + self.source_node_dependencies.extend(subject.source_node_dependencies) + else: + return + +def missing_freshness_checks(sources, manifest, check_type='warn'): + sources = list(set(sources)) + source_defintions = { source: manifest['sources'][source] for source in sources} + empty_checks = [key for key, value in source_defintions.items() if value['freshness'][f'{check_type}_after']['count'] is None] + return empty_checks + + +class MissingSourceFreshnessChecks(Exception): + def __init__(self, sources_missing_checks): + self.sources_missing_checks = sources_missing_checks + self.message = "Sources Missing Freshness Checks: \n" + "\n".join(sources_missing_checks) + super().__init__(self.message) + +with open('../target/manifest.json') as json_file: + manifest = json.load(json_file) + +sources = Sources(model=f'model.spellbook.{args.model}', manifest=manifest).source_node_dependencies +sources_missing_checks = missing_freshness_checks(sources, manifest) +assert len(sources_missing_checks) == 0, MissingSourceFreshnessChecks(sources_missing_checks) From 1e3a571a706e470db1547fb7512571723f64234c Mon Sep 17 00:00:00 2001 From: Meghan Date: Fri, 23 Dec 2022 13:34:21 -0500 Subject: [PATCH 2/7] lint --- scripts/validate_source_freshness_checks.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/validate_source_freshness_checks.py b/scripts/validate_source_freshness_checks.py index 44f6cc2b8dd..0af7a2d2554 100644 --- a/scripts/validate_source_freshness_checks.py +++ b/scripts/validate_source_freshness_checks.py @@ -5,13 +5,11 @@ logging.basicConfig(stream=sys.stdout, level=logging.WARN) - parser = argparse.ArgumentParser() parser.add_argument('--model') args = parser.parse_args() - class Sources: def __init__(self, model, manifest): self.model = model @@ -27,10 +25,12 @@ def __init__(self, model, manifest): else: return + def missing_freshness_checks(sources, manifest, check_type='warn'): sources = list(set(sources)) - source_defintions = { source: manifest['sources'][source] for source in sources} - empty_checks = [key for key, value in source_defintions.items() if value['freshness'][f'{check_type}_after']['count'] is None] + source_defintions = {source: manifest['sources'][source] for source in sources} + empty_checks = [key for key, value in source_defintions.items() if + value['freshness'][f'{check_type}_after']['count'] is None] return empty_checks @@ -40,6 +40,7 @@ def __init__(self, sources_missing_checks): self.message = "Sources Missing Freshness Checks: \n" + "\n".join(sources_missing_checks) super().__init__(self.message) + with open('../target/manifest.json') as json_file: manifest = json.load(json_file) From 33fe73351ab66038053ec7eec8b339bbb44c4087 Mon Sep 17 00:00:00 2001 From: Meghan Date: Wed, 28 Dec 2022 15:36:19 -0500 Subject: [PATCH 3/7] freshness checks and selectors --- .../ethereum/airswap_ethereum_sources.yml | 3 + models/babyswap/bnb/babyswap_bnb_sources.yml | 3 + .../ethereum/bancor_ethereum_sources.yml | 3 + models/base_sources/ethereum_base_sources.yml | 6 + models/biswap/bnb/biswap_bnb_sources.yml | 3 + .../ethereum/clipper_ethereum_sources.yml | 6 + .../curvefi_avalanche_c_sources.yml | 3 + .../ethereum/curvefi_ethereum_sources.yml | 3 + .../ethereum/defiswap_ethereum_sources.yml | 6 + .../dodo/ethereum/dodo_ethereum_sources.yml | 3 + .../element_avalanche_c_sources.yml | 3 + models/element/bnb/element_bnb_sources.yml | 3 + .../ethereum/element_ethereum_sources.yml | 3 + .../fraxswap_avalanche_c_sources.yml | 5 + models/fraxswap/bnb/fraxswap_bnb_sources.yml | 5 + .../ethereum/fraxswap_ethereum_sources.yml | 5 + .../polygon/fraxswap_polygon_sources.yml | 5 + .../ethereum/hashflow_ethereum_sources.yml | 3 + .../kyberswap_avalanche_c_sources.yml | 9 + .../ethereum/mstable_ethereum_sources.yml | 3 + models/nomiswap/bnb/nomiswap_bnb_sources.yml | 3 + .../ethereum/opensea_ethereum_sources.yml | 3 + .../ethereum/shibaswap_ethereum_sources.yml | 5 + .../ethereum/sudoswap_ethereum_sources.yml | 3 + .../sushiswap_avalanche_c_sources.yml | 3 + .../swapr/ethereum/swapr_ethereum_sources.yml | 3 + .../ethereum/uniswap_ethereum_sources.yml | 5 + .../avalanche_c/woofi_avalanche_c_sources.yml | 3 + models/woofi/bnb/woofi_bnb_sources.yml | 3 + .../optimism/zeroex_api_optimism_sources.yml | 3 - .../zora/ethereum/zora_ethereum_sources.yml | 3 + scripts/dex_trades_selector.yml | 350 +++++++ scripts/nft_trades_selector.yml | 520 +++++++++++ scripts/selector_template.yml | 6 + scripts/validate_source_freshness_checks.py | 28 +- selectors.yml | 868 ++++++++++++++++++ 36 files changed, 1888 insertions(+), 4 deletions(-) create mode 100644 scripts/dex_trades_selector.yml create mode 100644 scripts/nft_trades_selector.yml create mode 100644 scripts/selector_template.yml create mode 100644 selectors.yml diff --git a/models/airswap/ethereum/airswap_ethereum_sources.yml b/models/airswap/ethereum/airswap_ethereum_sources.yml index c5226cbdd3a..6ac67507c51 100644 --- a/models/airswap/ethereum/airswap_ethereum_sources.yml +++ b/models/airswap/ethereum/airswap_ethereum_sources.yml @@ -4,6 +4,9 @@ sources: - name: airswap_ethereum description: > Decoded tables related to Airswap dex trades. + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: Light_evt_Swap description: > diff --git a/models/babyswap/bnb/babyswap_bnb_sources.yml b/models/babyswap/bnb/babyswap_bnb_sources.yml index fa255f41a95..21fe510b9d3 100644 --- a/models/babyswap/bnb/babyswap_bnb_sources.yml +++ b/models/babyswap/bnb/babyswap_bnb_sources.yml @@ -3,6 +3,9 @@ version: 2 sources: - name: babyswap_bnb description: "Binance Smart Chain (bnb) decoded tables related to BabySwap contract" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: BabyPair_evt_Swap loaded_at_field: evt_block_time diff --git a/models/bancor/ethereum/bancor_ethereum_sources.yml b/models/bancor/ethereum/bancor_ethereum_sources.yml index 13686085479..1a2958d06ef 100644 --- a/models/bancor/ethereum/bancor_ethereum_sources.yml +++ b/models/bancor/ethereum/bancor_ethereum_sources.yml @@ -3,6 +3,9 @@ version: 2 sources: - name: bancornetwork_ethereum description: "Ethereum decoded tables related to Bancor Network contract" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: BancorNetwork_v6_evt_Conversion freshness: diff --git a/models/base_sources/ethereum_base_sources.yml b/models/base_sources/ethereum_base_sources.yml index ad3f2b2a4d6..36f3e7b9079 100644 --- a/models/base_sources/ethereum_base_sources.yml +++ b/models/base_sources/ethereum_base_sources.yml @@ -223,6 +223,9 @@ sources: - name: erc1155_ethereum description: "Transfers events for ERC1155 tokens on Ethereum." + freshness: + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: evt_transfersingle loaded_at_field: evt_block_time @@ -264,6 +267,9 @@ sources: - name: erc721_ethereum description: "Transfers events for ERC721 tokens on Ethereum." + freshness: + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: evt_transfer loaded_at_field: evt_block_time diff --git a/models/biswap/bnb/biswap_bnb_sources.yml b/models/biswap/bnb/biswap_bnb_sources.yml index 07556b13bd5..a4a66a475ba 100644 --- a/models/biswap/bnb/biswap_bnb_sources.yml +++ b/models/biswap/bnb/biswap_bnb_sources.yml @@ -3,6 +3,9 @@ version: 2 sources: - name: biswap_bnb description: "Binance Smart Chain (bsc) decoded tables related to Biswap contract" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: BiswapPair_evt_Swap loaded_at_field: evt_block_time diff --git a/models/clipper/ethereum/clipper_ethereum_sources.yml b/models/clipper/ethereum/clipper_ethereum_sources.yml index 60772b8cce4..6fd1fd27b60 100644 --- a/models/clipper/ethereum/clipper_ethereum_sources.yml +++ b/models/clipper/ethereum/clipper_ethereum_sources.yml @@ -3,7 +3,13 @@ version: 2 sources: - name: clipper_ethereum description: "Ethereum decoded tables related to Clipper DEX" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: ClipperExchangeInterface_evt_Swapped + loaded_at_field: evt_block_time - name: ClipperCaravelExchange_evt_Swapped + loaded_at_field: evt_block_time - name: ClipperVerifiedCaravelExchange_evt_Swapped + loaded_at_field: evt_block_time diff --git a/models/curvefi/avalanche_c/curvefi_avalanche_c_sources.yml b/models/curvefi/avalanche_c/curvefi_avalanche_c_sources.yml index 4231d803294..3e96ed8d4b5 100644 --- a/models/curvefi/avalanche_c/curvefi_avalanche_c_sources.yml +++ b/models/curvefi/avalanche_c/curvefi_avalanche_c_sources.yml @@ -3,6 +3,9 @@ version: 2 sources: - name: curvefi_avalanche_c description: "decoded events for curve.fi on avalanche" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: 3pool_evt_TokenExchange loaded_at_field: evt_block_time diff --git a/models/curvefi/ethereum/curvefi_ethereum_sources.yml b/models/curvefi/ethereum/curvefi_ethereum_sources.yml index 828439e2df9..6eb66f94214 100644 --- a/models/curvefi/ethereum/curvefi_ethereum_sources.yml +++ b/models/curvefi/ethereum/curvefi_ethereum_sources.yml @@ -3,6 +3,9 @@ version: 2 sources: - name: curvefi_ethereum description: "decoded events and function calls for curve.fi on ethereum" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: CurveFactory_call_deploy_plain_pool loaded_at_field: call_block_time diff --git a/models/defiswap/ethereum/defiswap_ethereum_sources.yml b/models/defiswap/ethereum/defiswap_ethereum_sources.yml index bd0150a38b4..e6971c3babd 100644 --- a/models/defiswap/ethereum/defiswap_ethereum_sources.yml +++ b/models/defiswap/ethereum/defiswap_ethereum_sources.yml @@ -4,6 +4,9 @@ sources: - name: defiswap_ethereum description: > Decoded tables related to defiswap dex swap. + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: CroDefiSwapPair_evt_Swap description: > @@ -42,6 +45,9 @@ sources: - name: crodefi_ethereum description: > Decoded tables related to defiswap dex pair creation. + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: CroDefiSwapFactory_evt_PairCreated description: > diff --git a/models/dodo/ethereum/dodo_ethereum_sources.yml b/models/dodo/ethereum/dodo_ethereum_sources.yml index 6df1bbb5581..995dd0b73f1 100644 --- a/models/dodo/ethereum/dodo_ethereum_sources.yml +++ b/models/dodo/ethereum/dodo_ethereum_sources.yml @@ -4,6 +4,9 @@ sources: - name: dodo_ethereum description: > Decoded tables related to Dodo dex trades. + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: DODO_evt_SellBaseToken description: > diff --git a/models/element/avalanche_c/element_avalanche_c_sources.yml b/models/element/avalanche_c/element_avalanche_c_sources.yml index 2105ff269a5..10547b88582 100644 --- a/models/element/avalanche_c/element_avalanche_c_sources.yml +++ b/models/element/avalanche_c/element_avalanche_c_sources.yml @@ -2,6 +2,9 @@ version: 2 sources: - name: element_ex_avalanche_c + freshness: + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: OrdersFeature_evt_ERC721SellOrderFilled loaded_at_field: evt_block_time diff --git a/models/element/bnb/element_bnb_sources.yml b/models/element/bnb/element_bnb_sources.yml index deafca35b65..ee171203746 100644 --- a/models/element/bnb/element_bnb_sources.yml +++ b/models/element/bnb/element_bnb_sources.yml @@ -2,6 +2,9 @@ version: 2 sources: - name: element_ex_bnb + freshness: + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: OrdersFeature_evt_ERC721SellOrderFilled loaded_at_field: evt_block_time diff --git a/models/element/ethereum/element_ethereum_sources.yml b/models/element/ethereum/element_ethereum_sources.yml index 4ca50f74d53..d08c9dcfc92 100644 --- a/models/element/ethereum/element_ethereum_sources.yml +++ b/models/element/ethereum/element_ethereum_sources.yml @@ -2,6 +2,9 @@ version: 2 sources: - name: element_ex_ethereum + freshness: + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: OrdersFeature_evt_ERC721SellOrderFilled loaded_at_field: evt_block_time diff --git a/models/fraxswap/avalanche_c/fraxswap_avalanche_c_sources.yml b/models/fraxswap/avalanche_c/fraxswap_avalanche_c_sources.yml index 300c34abeb3..3419b2db908 100644 --- a/models/fraxswap/avalanche_c/fraxswap_avalanche_c_sources.yml +++ b/models/fraxswap/avalanche_c/fraxswap_avalanche_c_sources.yml @@ -3,6 +3,11 @@ version: 2 sources: - name: fraxswap_avalanche_c description: "Avalanche (C-Chain) decoded tables related to Fraxswap contract" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: FraxswapFactory_evt_PairCreated + loaded_at_field: evt_block_time - name: FraxswapPair_evt_Swap + loaded_at_field: evt_block_time diff --git a/models/fraxswap/bnb/fraxswap_bnb_sources.yml b/models/fraxswap/bnb/fraxswap_bnb_sources.yml index b6ce90746b4..ed606baf8d2 100644 --- a/models/fraxswap/bnb/fraxswap_bnb_sources.yml +++ b/models/fraxswap/bnb/fraxswap_bnb_sources.yml @@ -3,6 +3,11 @@ version: 2 sources: - name: fraxswap_bnb description: "BNB Chain decoded tables related to Fraxswap contract" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: FraxswapFactory_evt_PairCreated + loaded_at_field: evt_block_time - name: FraxswapPair_evt_Swap + loaded_at_field: evt_block_time diff --git a/models/fraxswap/ethereum/fraxswap_ethereum_sources.yml b/models/fraxswap/ethereum/fraxswap_ethereum_sources.yml index a03efb5639a..5ad0a9bd44d 100644 --- a/models/fraxswap/ethereum/fraxswap_ethereum_sources.yml +++ b/models/fraxswap/ethereum/fraxswap_ethereum_sources.yml @@ -3,6 +3,11 @@ version: 2 sources: - name: fraxswap_ethereum description: "Ethereum Chain decoded tables related to Fraxswap contract" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: FraxswapFactory_evt_PairCreated + loaded_at_field: evt_block_time - name: FraxswapPair_evt_Swap + loaded_at_field: evt_block_time diff --git a/models/fraxswap/polygon/fraxswap_polygon_sources.yml b/models/fraxswap/polygon/fraxswap_polygon_sources.yml index a8351f39eaf..f2543958a88 100644 --- a/models/fraxswap/polygon/fraxswap_polygon_sources.yml +++ b/models/fraxswap/polygon/fraxswap_polygon_sources.yml @@ -3,6 +3,11 @@ version: 2 sources: - name: fraxswap_polygon description: "Polygon Chain decoded tables related to Fraxswap contract" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: FraxswapFactory_evt_PairCreated + loaded_at_field: evt_block_time - name: FraxswapPair_evt_Swap + loaded_at_field: evt_block_time diff --git a/models/hashflow/ethereum/hashflow_ethereum_sources.yml b/models/hashflow/ethereum/hashflow_ethereum_sources.yml index 99e05eb8ed3..bb26e8d3e33 100644 --- a/models/hashflow/ethereum/hashflow_ethereum_sources.yml +++ b/models/hashflow/ethereum/hashflow_ethereum_sources.yml @@ -3,6 +3,9 @@ version: 2 sources: - name: hashflow_ethereum description: "Hashflow non-decoded tables related to hashflow contracts" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: pool_evt_trade freshness: diff --git a/models/kyberswap/avalanche_c/kyberswap_avalanche_c_sources.yml b/models/kyberswap/avalanche_c/kyberswap_avalanche_c_sources.yml index a903feacd3c..0356a511a54 100644 --- a/models/kyberswap/avalanche_c/kyberswap_avalanche_c_sources.yml +++ b/models/kyberswap/avalanche_c/kyberswap_avalanche_c_sources.yml @@ -3,10 +3,19 @@ version: 2 sources: - name: kyber_avalanche_c description: "Avalanche (C-Chain) decoded tables related to Kyberswap contract" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: DMMPool_evt_Swap + loaded_at_field: evt_block_time - name: DMMFactory_evt_PoolCreated + loaded_at_field: evt_block_time - name: Elastic_Pool_evt_swap + loaded_at_field: evt_block_time - name: Elastic_Factory_evt_PoolCreated + loaded_at_field: evt_block_time - name: AggregationRouter_evt_Swapped + loaded_at_field: evt_block_time - name: MetaAggregationRouter_evt_Swapped + loaded_at_field: evt_block_time diff --git a/models/mstable/ethereum/mstable_ethereum_sources.yml b/models/mstable/ethereum/mstable_ethereum_sources.yml index 8cb4ab61aa7..ec982e883d9 100644 --- a/models/mstable/ethereum/mstable_ethereum_sources.yml +++ b/models/mstable/ethereum/mstable_ethereum_sources.yml @@ -4,6 +4,9 @@ sources: - name: mstable_ethereum description: > Decoded tables related to mStable dex trades. + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: Masset_evt_Swapped description: > diff --git a/models/nomiswap/bnb/nomiswap_bnb_sources.yml b/models/nomiswap/bnb/nomiswap_bnb_sources.yml index b7eee475fc2..3073d6c8b1d 100644 --- a/models/nomiswap/bnb/nomiswap_bnb_sources.yml +++ b/models/nomiswap/bnb/nomiswap_bnb_sources.yml @@ -3,6 +3,9 @@ version: 2 sources: - name: nomiswap_bnb description: "BNB Chain decoded tables related to SushiSwap contract" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: NomiswapPair_evt_Swap loaded_at_field: evt_block_time diff --git a/models/opensea/ethereum/opensea_ethereum_sources.yml b/models/opensea/ethereum/opensea_ethereum_sources.yml index e09fd47d488..da55d60c900 100644 --- a/models/opensea/ethereum/opensea_ethereum_sources.yml +++ b/models/opensea/ethereum/opensea_ethereum_sources.yml @@ -2,6 +2,9 @@ version: 2 sources: - name: opensea_ethereum + freshness: + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: wyvernexchange_call_atomicmatch_ loaded_at_field: call_block_time diff --git a/models/shibaswap/ethereum/shibaswap_ethereum_sources.yml b/models/shibaswap/ethereum/shibaswap_ethereum_sources.yml index a1322baa23a..485fb24bb86 100644 --- a/models/shibaswap/ethereum/shibaswap_ethereum_sources.yml +++ b/models/shibaswap/ethereum/shibaswap_ethereum_sources.yml @@ -3,6 +3,11 @@ version: 2 sources: - name: shibaswap_ethereum description: "Ethereum decoded tables related to Shibaswap DEX trades" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: UniswapV2Pair_evt_Swap + loaded_at_field: evt_block_time - name: UniswapV2Factory_evt_PairCreated + loaded_at_field: evt_block_time diff --git a/models/sudoswap/ethereum/sudoswap_ethereum_sources.yml b/models/sudoswap/ethereum/sudoswap_ethereum_sources.yml index d2ee97204c3..819393e4e8d 100644 --- a/models/sudoswap/ethereum/sudoswap_ethereum_sources.yml +++ b/models/sudoswap/ethereum/sudoswap_ethereum_sources.yml @@ -2,6 +2,9 @@ version: 2 sources: - name: sudo_amm_ethereum + freshness: + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: LSSVMPairFactory_call_createPairETH freshness: diff --git a/models/sushiswap/avalanche_c/sushiswap_avalanche_c_sources.yml b/models/sushiswap/avalanche_c/sushiswap_avalanche_c_sources.yml index cc253fbe584..4a8258639a4 100644 --- a/models/sushiswap/avalanche_c/sushiswap_avalanche_c_sources.yml +++ b/models/sushiswap/avalanche_c/sushiswap_avalanche_c_sources.yml @@ -3,6 +3,9 @@ version: 2 sources: - name: sushiswap_v2_avalanche_c description: "Avalanche (C-Chain) decoded tables related to SushiSwap contract" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: Pair_evt_Swap loaded_at_field: evt_block_time diff --git a/models/swapr/ethereum/swapr_ethereum_sources.yml b/models/swapr/ethereum/swapr_ethereum_sources.yml index 3856d2a5fed..75cb3b46968 100644 --- a/models/swapr/ethereum/swapr_ethereum_sources.yml +++ b/models/swapr/ethereum/swapr_ethereum_sources.yml @@ -4,6 +4,9 @@ sources: - name: swapr_ethereum description: > Decoded tables related to Swapr dex. + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: DXswapPair_evt_Swap description: > diff --git a/models/uniswap/ethereum/uniswap_ethereum_sources.yml b/models/uniswap/ethereum/uniswap_ethereum_sources.yml index c99c5c8af7a..29b51041fbb 100644 --- a/models/uniswap/ethereum/uniswap_ethereum_sources.yml +++ b/models/uniswap/ethereum/uniswap_ethereum_sources.yml @@ -3,6 +3,9 @@ version: 2 sources: - name: uniswap_ethereum description: "Ethereum decoded tables related to Uniswap v1 contract" + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: Exchange_evt_TokenPurchase freshness: @@ -38,6 +41,8 @@ sources: description: "Raw amount of tokens bought during transaction with the contract" - name: Factory_evt_NewExchange loaded_at_field: evt_block_time + freshness: # default freshness + warn_after: { count: 84, period: hour } description: "" # to-do columns: - name: contract_address # appears to be used differently here than the exchange event tables in uniswap v1 diff --git a/models/woofi/avalanche_c/woofi_avalanche_c_sources.yml b/models/woofi/avalanche_c/woofi_avalanche_c_sources.yml index 78e0bdd65dc..0b37d300f6b 100644 --- a/models/woofi/avalanche_c/woofi_avalanche_c_sources.yml +++ b/models/woofi/avalanche_c/woofi_avalanche_c_sources.yml @@ -4,6 +4,9 @@ sources: - name: woofi_avalanche_c description: > Decoded tables related to woofi dex trades. + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: WooPP_evt_WooSwap description: > diff --git a/models/woofi/bnb/woofi_bnb_sources.yml b/models/woofi/bnb/woofi_bnb_sources.yml index 4135110af6d..5d5f4a86639 100644 --- a/models/woofi/bnb/woofi_bnb_sources.yml +++ b/models/woofi/bnb/woofi_bnb_sources.yml @@ -4,6 +4,9 @@ sources: - name: woofi_bnb description: > Decoded tables related to woofi dex trades. + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: WooPP_evt_WooSwap description: > diff --git a/models/zeroex/optimism/zeroex_api_optimism_sources.yml b/models/zeroex/optimism/zeroex_api_optimism_sources.yml index 3b29fb932b4..324293b0023 100644 --- a/models/zeroex/optimism/zeroex_api_optimism_sources.yml +++ b/models/zeroex/optimism/zeroex_api_optimism_sources.yml @@ -17,9 +17,6 @@ sources: # for native orders on v3 - name: zeroex_v3_optimism description: "Optimism decoded tables related to 0x v3 Exchange Contract" - freshness: - warn_after: { count: 12, period: hour } loaded_at_field: evt_block_time - tables: - name: Exchange_evt_Fill \ No newline at end of file diff --git a/models/zora/ethereum/zora_ethereum_sources.yml b/models/zora/ethereum/zora_ethereum_sources.yml index 3673cc074dd..116b5537b58 100644 --- a/models/zora/ethereum/zora_ethereum_sources.yml +++ b/models/zora/ethereum/zora_ethereum_sources.yml @@ -2,6 +2,9 @@ version: 2 sources: - name: zora_v3_ethereum + freshness: # default freshness + warn_after: { count: 12, period: hour } + error_after: { count: 24, period: hour } tables: - name: OffersV1_evt_ExchangeExecuted loaded_at_field: evt_block_time diff --git a/scripts/dex_trades_selector.yml b/scripts/dex_trades_selector.yml new file mode 100644 index 00000000000..19ece8611b6 --- /dev/null +++ b/scripts/dex_trades_selector.yml @@ -0,0 +1,350 @@ +selectors: # These selectors are generated programmatically (validate_source_freshness_checks.py) and pasted in manually + - name: dex_trades_sources + definition: + union: + - method: source + value: curvefi_avalanche_c.frax_evt_TokenExchange + - method: source + value: woofi_bnb.WooPP_evt_WooSwap + - method: source + value: curvefi_ethereum.compound_v2_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.NXUSDaV3CRV_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.AavePool_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.eEURjEUR_evt_TokenExchange + - method: source + value: fraxswap_bnb.FraxswapPair_evt_Swap + - method: source + value: wombat_bnb.DynamicPool_evt_Swap + - method: source + value: curvefi_avalanche_c.ATriCryptoPool_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.arUSD_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchangeUnderlying + - method: source + value: trader_joe_avalanche_c.JoeFactory_evt_PairCreated + - method: source + value: bancornetwork_ethereum.BancorNetwork_v9_evt_Conversion + - method: source + value: curvefi_ethereum.usdt_swap_evt_TokenExchangeUnderlying + - method: source + value: bancor3_ethereum.BancorNetwork_evt_TokensTraded + - method: source + value: kyber_avalanche_c.MetaAggregationRouter_evt_Swapped + - method: source + value: bancornetwork_ethereum.BancorNetwork_v7_evt_Conversion + - method: source + value: uniswap_v3_polygon.factory_polygon_evt_PoolCreated + - method: source + value: bnb.transactions + - method: source + value: uniswap_v3_arbitrum.Pair_evt_Swap + - method: source + value: sushiswap_gnosis.UniswapV2Pair_evt_Swap + - method: source + value: gmx_avalanche_c.Router_evt_Swap + - method: source + value: kyber_avalanche_c.DMMPool_evt_Swap + - method: source + value: crodefi_ethereum.CroDefiSwapFactory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.USDCe_UST_evt_TokenExchange + - method: source + value: fraxswap_avalanche_c.FraxswapPair_evt_Swap + - method: source + value: curvefi_avalanche_c.Topshelf_USDL_evt_TokenExchangeUnderlying + - method: source + value: fraxswap_ethereum.FraxswapFactory_evt_PairCreated + - method: source + value: curvefi_ethereum.ren_swap_evt_TokenExchange + - method: source + value: fraxswap_polygon.FraxswapPair_evt_Swap + - method: source + value: bancornetwork_ethereum.BancorNetwork_v8_evt_Conversion + - method: source + value: curvefi_avalanche_c.deBridge_USDC_evt_TokenExchangeUnderlying + - method: source + value: dodo_ethereum.DODO_evt_BuyBaseToken + - method: source + value: woofi_bnb.WooRouter_evt_WooRouterSwap + - method: source + value: defiswap_ethereum.CroDefiSwapPair_evt_Swap + - method: source + value: babyswap_bnb.BabyFactory_evt_PairCreated + - method: source + value: uniswap_v3_optimism.factory_evt_poolcreated + - method: source + value: clipper_ethereum.ClipperVerifiedCaravelExchange_evt_Swapped + - method: source + value: wombat_bnb.WMX_WOM_Pool_evt_Swap + - method: source + value: biswap_bnb.BiswapPair_evt_Swap + - method: source + value: curvefi_optimism.StableSwap_call_coins + - method: source + value: curvefi_ethereum.compound_v2_evt_TokenExchange + - method: source + value: curvefi_ethereum.busd_swap_evt_TokenExchangeUnderlying + - method: source + value: wombat_bnb.qWOM_WOMPool_evt_Swap + - method: source + value: sushiswap_v2_avalanche_c.SushiV2Factory_evt_PairCreated + - method: source + value: clipper_ethereum.ClipperExchangeInterface_evt_Swapped + - method: source + value: nomiswap_bnb.NomiswapPair_evt_Swap + - method: source + value: curvefi_ethereum.tricrypto2_swap_evt_TokenExchange + - method: source + value: mdex_bnb.MdexFactory_evt_PairCreated + - method: source + value: curvefi_ethereum.tricrypto_swap_evt_TokenExchange + - method: source + value: curvefi_ethereum.steth_swap_evt_TokenExchange + - method: source + value: curvefi_ethereum.y_swap_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.agEURjEUR_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.FUSDUSDC_evt_TokenExchange + - method: source + value: uniswap_v3_ethereum.Factory_evt_PoolCreated + - method: source + value: izumi_bnb.iZiSwapPool_evt_Swap + - method: source + value: curvefi_ethereum.susd_evt_TokenExchangeUnderlying + - method: source + value: dfx_finance_ethereum.Curve_evt_Trade + - method: source + value: mstable_ethereum.FeederPool_evt_Swapped + - method: source + value: curvefi_ethereum.compound_swap_evt_TokenExchangeUnderlying + - method: source + value: dodo_ethereum.DVM_evt_DODOSwap + - method: source + value: swapr_ethereum.DXswapFactory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.3pool_evt_TokenExchange + - method: source + value: wombat_bnb.Pool_evt_Swap + - method: source + value: biswap_bnb.BiswapFactory_evt_PairCreated + - method: source + value: ethereum.traces + - method: source + value: curvefi_ethereum.susd_swap_evt_TokenExchange + - method: source + value: hashflow_ethereum.pool_evt_trade + - method: source + value: uniswap_ethereum.Exchange_evt_TokenPurchase + - method: source + value: curvefi_ethereum.pax_swap_evt_TokenExchange + - method: source + value: nomiswap_bnb.NomiswapFactory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.MAI_evt_TokenExchangeUnderlying + - method: source + value: curvefi_ethereum.susd_swap_evt_TokenExchangeUnderlying + - method: source + value: hashflow_avalanche_c.Pool_evt_Trade + - method: source + value: hashflow_ethereum.router_call_tradesinglehop + - method: source + value: sushiswap_v2_avalanche_c.Pair_evt_Swap + - method: source + value: curvefi_avalanche_c.L2StableSwap_evt_TokenExchange + - method: source + value: sushiswap_gnosis.UniswapV2Factory_evt_PairCreated + - method: source + value: dodo_ethereum.DODOV1Proxy04_evt_OrderHistory + - method: source + value: fraxswap_bnb.FraxswapFactory_evt_PairCreated + - method: source + value: dodo_ethereum.DODOV2Proxy02_evt_OrderHistory + - method: source + value: curvefi_avalanche_c.YUSDPOOL_evt_TokenExchange + - method: source + value: uniswap_v3_polygon.UniswapV3Pool_evt_Swap + - method: source + value: curvefi_optimism.MetaPoolSwap_evt_TokenExchangeUnderlying + - method: source + value: kyber_avalanche_c.Elastic_Pool_evt_swap + - method: source + value: wombat_bnb.HighCovRatioFeePool_evt_Swap + - method: source + value: sushi_ethereum.Factory_evt_PairCreated + - method: source + value: dodo_ethereum.DPP_evt_DODOSwap + - method: source + value: bancornetwork_ethereum.BancorNetwork_v6_evt_Conversion + - method: source + value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchange + - method: source + value: hashflow_avalanche_c.Pool_evt_LzTrade + - method: source + value: dodo_ethereum.DODOV1Proxy01_evt_OrderHistory + - method: source + value: curvefi_ethereum.compound_evt_TokenExchange + - method: source + value: trader_joe_avalanche_c.JoePair_evt_Swap + - method: source + value: curvefi_avalanche_c.3poolV2_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchange + - method: source + value: dodo_ethereum.DSP_evt_DODOSwap + - method: source + value: curvefi_ethereum.pax_swap_evt_TokenExchangeUnderlying + - method: source + value: uniswap_ethereum.Exchange_evt_EthPurchase + - method: source + value: sushi_ethereum.Pair_evt_Swap + - method: source + value: velodrome_optimism.Pair_evt_Swap + - method: source + value: woofi_avalanche_c.WooPP_evt_WooSwap + - method: source + value: airswap_ethereum.Swap_v3_evt_Swap + - method: source + value: curvefi_ethereum.busd_swap_evt_TokenExchange + - method: source + value: mstable_ethereum.Masset_evt_Swapped + - method: source + value: woofi_avalanche_c.WooRouterV2_evt_WooRouterSwap + - method: source + value: woofi_bnb.WooRouterV2_evt_WooRouterSwap + - method: source + value: gmx_arbitrum.Router_evt_Swap + - method: source + value: curvefi_avalanche_c.ren_evt_TokenExchange + - method: source + value: pancakeswap_v2_bnb.PancakePair_evt_Swap + - method: source + value: gnosis.transactions + - method: source + value: optimism.logs + - method: source + value: curvefi_avalanche_c.MIM_evt_TokenExchange + - method: source + value: curvefi_ethereum.compound_swap_evt_TokenExchange + - method: source + value: fraxswap_avalanche_c.FraxswapFactory_evt_PairCreated + - method: source + value: curvefi_optimism.PoolFactory_call_deploy_plain_pool + - method: source + value: babyswap_bnb.BabyPair_evt_Swap + - method: source + value: curvefi_ethereum.usdt_swap_evt_TokenExchange + - method: source + value: polygon.transactions + - method: source + value: zigzag_test_v6_arbitrum.zigzag_settelment_call_matchOrders + - method: source + value: uniswap_v3_arbitrum.UniswapV3Factory_evt_PoolCreated + - method: source + value: velodrome_optimism.PairFactory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.Curve_DD2_Pool_evt_TokenExchange + - method: source + value: wombat_bnb.mWOM_Pool_evt_Swap + - method: source + value: fraxswap_polygon.FraxswapFactory_evt_PairCreated + - method: source + value: curvefi_ethereum.sbtc_swap_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.MAI_evt_TokenExchange + - method: source + value: uniswap_ethereum.Factory_evt_NewExchange + - method: source + value: curvefi_optimism.StableSwap_evt_TokenExchange + - method: source + value: curvefi_ethereum.susd_evt_TokenExchange + - method: source + value: shibaswap_ethereum.UniswapV2Pair_evt_Swap + - method: source + value: erc20_optimism.evt_transfer + - method: source + value: kyber_avalanche_c.Elastic_Factory_evt_PoolCreated + - method: source + value: optimism.transactions + - method: source + value: airswap_ethereum.Light_evt_Swap + - method: source + value: fraxswap_ethereum.FraxswapPair_evt_Swap + - method: source + value: mdex_bnb.MdexPair_evt_Swap + - method: source + value: platypus_finance_avalanche_c.Pool_evt_Swap + - method: source + value: uniswap_v2_ethereum.Pair_evt_Swap + - method: source + value: uniswap_v3_ethereum.Pair_evt_Swap + - method: source + value: uniswap_v3_optimism.Pair_evt_Swap + - method: source + value: prices.usd + - method: source + value: curvefi_avalanche_c.ren_evt_TokenExchangeUnderlying + - method: source + value: avalanche_c.transactions + - method: source + value: curvefi_avalanche_c.axlUSDCUSDC_evt_TokenExchange + - method: source + value: pancakeswap_v2_bnb.PancakeFactory_evt_PairCreated + - method: source + value: airswap_ethereum.swap_evt_Swap + - method: source + value: curvefi_avalanche_c.aave_v3_evt_TokenExchangeUnderlying + - method: source + value: swapr_ethereum.DXswapPair_evt_Swap + - method: source + value: curvefi_avalanche_c.AavePool_evt_TokenExchange + - method: source + value: shibaswap_ethereum.UniswapV2Factory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.FUSD_MIM_Factory_Pool_evt_TokenExchange + - method: source + value: kyber_avalanche_c.AggregationRouter_evt_Swapped + - method: source + value: ethereum.transactions + - method: source + value: curvefi_optimism.PoolFactory_evt_MetaPoolDeployed + - method: source + value: uniswap_v2_ethereum.Factory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.axlUSDC_USDC_e_evt_TokenExchange + - method: source + value: ethereum.logs + - method: source + value: bancornetwork_ethereum.BancorNetwork_v10_evt_Conversion + - method: source + value: curvefi_ethereum.y_swap_evt_TokenExchange + - method: source + value: curvefi_ethereum.hbtc_swap_evt_TokenExchange + - method: source + value: dodo_ethereum.DODO_evt_SellBaseToken + - method: source + value: kyber_avalanche_c.DMMFactory_evt_PoolCreated + - method: source + value: curvefi_avalanche_c.USDS_evt_TokenExchangeUnderlying + - method: source + value: arbitrum.transactions + - method: source + value: curvefi_ethereum.threepool_swap_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.avax3pool_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.frax_evt_TokenExchangeUnderlying + - method: source + value: clipper_ethereum.ClipperCaravelExchange_evt_Swapped + - method: source + value: curvefi_avalanche_c.Blizz_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.MIM_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.USD_coin_evt_TokenExchange diff --git a/scripts/nft_trades_selector.yml b/scripts/nft_trades_selector.yml new file mode 100644 index 00000000000..4fd5c20dc03 --- /dev/null +++ b/scripts/nft_trades_selector.yml @@ -0,0 +1,520 @@ +selectors: # These selectors are generated programmatically (validate_source_freshness_checks.py) and pasted in manually + - name: nft_trades_sources + definition: + union: + - method: source + value: delete_me + - method: source + value: swapr_ethereum.DXswapFactory_evt_PairCreated + - method: source + value: airswap_ethereum.Swap_v3_evt_Swap + - method: source + value: curvefi_avalanche_c.eEURjEUR_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.USDS_evt_TokenExchangeUnderlying + - method: source + value: dodo_ethereum.DODO_evt_BuyBaseToken + - method: source + value: woofi_avalanche_c.WooRouterV2_evt_WooRouterSwap + - method: source + value: wombat_bnb.qWOM_WOMPool_evt_Swap + - method: source + value: looksrare_ethereum.looksrareexchange_evt_takerbid + - method: source + value: sudo_amm_ethereum.LSSVMPairFactory_evt_ProtocolFeeMultiplierUpdate + - method: source + value: curvefi_ethereum.pax_swap_evt_TokenExchangeUnderlying + - method: source + value: zora_v3_ethereum.ReserveAuctionListingEth_evt_AuctionEnded + - method: source + value: zora_v3_ethereum.OffersV1_evt_ExchangeExecuted + - method: source + value: curvefi_avalanche_c.ren_evt_TokenExchange + - method: source + value: optimism_ethereum.L1ERC721Bridge_evt_ERC721BridgeInitiated + - method: source + value: erc1155_ethereum.evt_transferbatch + - method: source + value: superrare_ethereum.SuperRareBazaar_evt_AcceptOffer + - method: source + value: x2y2_ethereum.X2Y2_r1_evt_EvInventory + - method: source + value: uniswap_v3_polygon.factory_polygon_evt_PoolCreated + - method: source + value: curvefi_avalanche_c.USDCe_UST_evt_TokenExchange + - method: source + value: nomiswap_bnb.NomiswapPair_evt_Swap + - method: source + value: curvefi_avalanche_c.Topshelf_USDL_evt_TokenExchangeUnderlying + - method: source + value: fraxswap_polygon.FraxswapFactory_evt_PairCreated + - method: source + value: sushi_ethereum.Pair_evt_Swap + - method: source + value: curvefi_avalanche_c.ren_evt_TokenExchangeUnderlying + - method: source + value: gmx_avalanche_c.Router_evt_Swap + - method: source + value: foundation_ethereum.market_evt_ReserveAuctionCreated + - method: source + value: bancornetwork_ethereum.BancorNetwork_v7_evt_Conversion + - method: source + value: prices.usd + - method: source + value: foundation_ethereum.market_evt_BuyPriceAccepted + - method: source + value: opensea_ethereum.wyvernexchange_evt_ordersmatched + - method: source + value: zora_ethereum.Market_evt_BidFinalized + - method: source + value: element_ex_bnb.OrdersFeature_evt_ERC721BuyOrderFilled + - method: source + value: sudo_amm_ethereum.LSSVMPair_general_call_swapTokenForAnyNFTs + - method: source + value: sushiswap_gnosis.UniswapV2Factory_evt_PairCreated + - method: source + value: kyber_avalanche_c.DMMFactory_evt_PoolCreated + - method: source + value: curvefi_avalanche_c.frax_evt_TokenExchangeUnderlying + - method: source + value: zora_v3_ethereum.ReserveAuctionListingErc20_evt_RoyaltyPayout + - method: source + value: crodefi_ethereum.CroDefiSwapFactory_evt_PairCreated + - method: source + value: bancornetwork_ethereum.BancorNetwork_v10_evt_Conversion + - method: source + value: zora_v3_ethereum.ReserveAuctionFindersEth_evt_AuctionEnded + - method: source + value: zora_v3_ethereum.ReserveAuctionListingErc20_evt_AuctionEnded + - method: source + value: mstable_ethereum.Masset_evt_Swapped + - method: source + value: zora_ethereum.Media_evt_Transfer + - method: source + value: superrare_ethereum.SuperRareMarketAuction_evt_Sold + - method: source + value: zora_v3_ethereum.AsksV1_0_evt_RoyaltyPayout + - method: source + value: looksrare_ethereum.StrategyAnyItemFromCollectionForFixedPriceV1B_call_viewProtocolFee + - method: source + value: curvefi_ethereum.busd_swap_evt_TokenExchange + - method: source + value: ethereum.logs + - method: source + value: looksrare_ethereum.StrategyPrivateSale_call_viewProtocolFee + - method: source + value: bancornetwork_ethereum.BancorNetwork_v6_evt_Conversion + - method: source + value: hashflow_ethereum.pool_evt_trade + - method: source + value: seaport_ethereum.Seaport_evt_OrderFulfilled + - method: source + value: curvefi_ethereum.usdt_swap_evt_TokenExchangeUnderlying + - method: source + value: zora_v3_ethereum.OffersV1_evt_RoyaltyPayout + - method: source + value: curvefi_avalanche_c.MAI_evt_TokenExchange + - method: source + value: sushi_ethereum.Factory_evt_PairCreated + - method: source + value: archipelago_ethereum.ArchipelagoMarket_evt_Trade + - method: source + value: uniswap_v2_ethereum.Pair_evt_Swap + - method: source + value: element_ex_avalanche_c.OrdersFeature_evt_ERC721SellOrderFilled + - method: source + value: uniswap_v3_ethereum.Factory_evt_PoolCreated + - method: source + value: curvefi_optimism.MetaPoolSwap_evt_TokenExchangeUnderlying + - method: source + value: sushiswap_v2_avalanche_c.SushiV2Factory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.MAI_evt_TokenExchangeUnderlying + - method: source + value: looksrare_ethereum.looksrareexchange_evt_takerask + - method: source + value: curvefi_ethereum.ren_swap_evt_TokenExchange + - method: source + value: bancor3_ethereum.BancorNetwork_evt_TokensTraded + - method: source + value: babyswap_bnb.BabyFactory_evt_PairCreated + - method: source + value: wombat_bnb.HighCovRatioFeePool_evt_Swap + - method: source + value: wombat_bnb.WMX_WOM_Pool_evt_Swap + - method: source + value: mdex_bnb.MdexFactory_evt_PairCreated + - method: source + value: curvefi_ethereum.steth_swap_evt_TokenExchange + - method: source + value: curvefi_ethereum.compound_swap_evt_TokenExchange + - method: source + value: uniswap_v3_polygon.UniswapV3Pool_evt_Swap + - method: source + value: curvefi_avalanche_c.axlUSDC_USDC_e_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.Curve_DD2_Pool_evt_TokenExchange + - method: source + value: dodo_ethereum.DODO_evt_SellBaseToken + - method: source + value: polygon.transactions + - method: source + value: curvefi_avalanche_c.3pool_evt_TokenExchange + - method: source + value: curvefi_ethereum.usdt_swap_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.Blizz_evt_TokenExchange + - method: source + value: zora_v3_ethereum.AsksPrivateEth_evt_AskFilled + - method: source + value: curvefi_ethereum.threepool_swap_evt_TokenExchange + - method: source + value: zora_v3_ethereum.AsksPrivateEth_evt_RoyaltyPayout + - method: source + value: zora_v3_ethereum.ReserveAuctionCoreErc20_evt_RoyaltyPayout + - method: source + value: erc20_ethereum.evt_transfer + - method: source + value: curvefi_avalanche_c.ATriCryptoPool_evt_TokenExchange + - method: source + value: element_ex_ethereum.OrdersFeature_evt_ERC1155BuyOrderFilled + - method: source + value: uniswap_ethereum.Exchange_evt_TokenPurchase + - method: source + value: uniswap_v3_arbitrum.UniswapV3Factory_evt_PoolCreated + - method: source + value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchangeUnderlying + - method: source + value: pancakeswap_v2_bnb.PancakePair_evt_Swap + - method: source + value: woofi_bnb.WooRouterV2_evt_WooRouterSwap + - method: source + value: superrare_ethereum.SuperRare_evt_AcceptBid + - method: source + value: defiswap_ethereum.CroDefiSwapPair_evt_Swap + - method: source + value: wombat_bnb.DynamicPool_evt_Swap + - method: source + value: dodo_ethereum.DPP_evt_DODOSwap + - method: source + value: curvefi_avalanche_c.FUSDUSDC_evt_TokenExchange + - method: source + value: zora_v3_ethereum.ReserveAuctionFindersEth_evt_RoyaltyPayout + - method: source + value: zora_v3_ethereum.ReserveAuctionListingEth_evt_RoyaltyPayout + - method: source + value: curvefi_avalanche_c.YUSDPOOL_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.FUSD_MIM_Factory_Pool_evt_TokenExchange + - method: source + value: dfx_finance_ethereum.Curve_evt_Trade + - method: source + value: dodo_ethereum.DVM_evt_DODOSwap + - method: source + value: curvefi_avalanche_c.axlUSDCUSDC_evt_TokenExchange + - method: source + value: element_ex_bnb.OrdersFeature_evt_ERC1155BuyOrderFilled + - method: source + value: archipelago_ethereum.ArchipelagoMarket_evt_TokenTrade + - method: source + value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkTransfer + - method: source + value: element_ex_ethereum.OrdersFeature_evt_ERC1155SellOrderFilled + - method: source + value: sushiswap_v2_avalanche_c.Pair_evt_Swap + - method: source + value: sushiswap_gnosis.UniswapV2Pair_evt_Swap + - method: source + value: curvefi_avalanche_c.avax3pool_evt_TokenExchange + - method: source + value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkBought + - method: source + value: clipper_ethereum.ClipperVerifiedCaravelExchange_evt_Swapped + - method: source + value: shibaswap_ethereum.UniswapV2Pair_evt_Swap + - method: source + value: hashflow_ethereum.router_call_tradesinglehop + - method: source + value: izumi_bnb.iZiSwapPool_evt_Swap + - method: source + value: arbitrum.transactions + - method: source + value: fraxswap_ethereum.FraxswapFactory_evt_PairCreated + - method: source + value: woofi_bnb.WooRouter_evt_WooRouterSwap + - method: source + value: uniswap_v2_ethereum.Factory_evt_PairCreated + - method: source + value: clipper_ethereum.ClipperCaravelExchange_evt_Swapped + - method: source + value: dodo_ethereum.DODOV1Proxy04_evt_OrderHistory + - method: source + value: curvefi_avalanche_c.MIM_evt_TokenExchangeUnderlying + - method: source + value: fraxswap_polygon.FraxswapPair_evt_Swap + - method: source + value: sudo_amm_ethereum.LSSVMPair_general_evt_FeeUpdate + - method: source + value: curvefi_avalanche_c.arUSD_evt_TokenExchange + - method: source + value: avalanche_c.transactions + - method: source + value: looksrare_ethereum.StrategyAnyItemFromCollectionForFixedPrice_call_viewProtocolFee + - method: source + value: sudo_amm_ethereum.LSSVMPair_general_evt_AssetRecipientChange + - method: source + value: zora_v3_ethereum.ReserveAuctionFindersErc20_evt_RoyaltyPayout + - method: source + value: curvefi_ethereum.y_swap_evt_TokenExchangeUnderlying + - method: source + value: curvefi_optimism.PoolFactory_evt_MetaPoolDeployed + - method: source + value: archipelago_ethereum.ArchipelagoMarket_evt_RoyaltyPayment + - method: source + value: fraxswap_avalanche_c.FraxswapPair_evt_Swap + - method: source + value: sudo_amm_ethereum.LSSVMPairFactory_call_createPairETH + - method: source + value: uniswap_v3_optimism.Pair_evt_Swap + - method: source + value: uniswap_v3_arbitrum.Pair_evt_Swap + - method: source + value: curvefi_avalanche_c.deBridge_USDC_evt_TokenExchangeUnderlying + - method: source + value: shibaswap_ethereum.UniswapV2Factory_evt_PairCreated + - method: source + value: superrare_ethereum.SuperRareBazaar_evt_AuctionSettled + - method: source + value: element_ex_ethereum.OrdersFeature_evt_ERC721BuyOrderFilled + - method: source + value: bancornetwork_ethereum.BancorNetwork_v8_evt_Conversion + - method: source + value: babyswap_bnb.BabyPair_evt_Swap + - method: source + value: zora_v3_ethereum.ReserveAuctionFindersErc20_evt_AuctionEnded + - method: source + value: sudo_amm_ethereum.LSSVMPair_general_call_swapTokenForSpecificNFTs + - method: source + value: erc721_ethereum.evt_transfer + - method: source + value: ethereum.transactions + - method: source + value: superrare_ethereum.SuperRareMarketAuction_evt_AcceptBid + - method: source + value: curvefi_ethereum.susd_evt_TokenExchange + - method: source + value: curvefi_optimism.StableSwap_call_coins + - method: source + value: erc1155_ethereum.evt_transfersingle + - method: source + value: looksrare_ethereum.looksrareexchange_evt_royaltypayment + - method: source + value: gmx_arbitrum.Router_evt_Swap + - method: source + value: zigzag_test_v6_arbitrum.zigzag_settelment_call_matchOrders + - method: source + value: hashflow_avalanche_c.Pool_evt_Trade + - method: source + value: airswap_ethereum.swap_evt_Swap + - method: source + value: curvefi_ethereum.compound_v2_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.MIM_evt_TokenExchange + - method: source + value: hashflow_avalanche_c.Pool_evt_LzTrade + - method: source + value: blur_ethereum.BlurExchange_evt_OrdersMatched + - method: source + value: zora_v3_ethereum.AsksV1_1_evt_RoyaltyPayout + - method: source + value: zora_v3_ethereum.AsksCoreEth_evt_AskFilled + - method: source + value: curvefi_ethereum.susd_swap_evt_TokenExchangeUnderlying + - method: source + value: dodo_ethereum.DODOV2Proxy02_evt_OrderHistory + - method: source + value: woofi_bnb.WooPP_evt_WooSwap + - method: source + value: woofi_avalanche_c.WooPP_evt_WooSwap + - method: source + value: foundation_ethereum.market_evt_OfferAccepted + - method: source + value: velodrome_optimism.Pair_evt_Swap + - method: source + value: element_ex_bnb.OrdersFeature_evt_ERC1155SellOrderFilled + - method: source + value: fraxswap_avalanche_c.FraxswapFactory_evt_PairCreated + - method: source + value: pancakeswap_v2_bnb.PancakeFactory_evt_PairCreated + - method: source + value: trader_joe_avalanche_c.JoePair_evt_Swap + - method: source + value: trader_joe_avalanche_c.JoeFactory_evt_PairCreated + - method: source + value: looksrare_ethereum.StrategyStandardSaleForFixedPrice_call_viewProtocolFee + - method: source + value: curvefi_avalanche_c.NXUSDaV3CRV_evt_TokenExchangeUnderlying + - method: source + value: element_ex_bnb.OrdersFeature_evt_ERC721SellOrderFilled + - method: source + value: mstable_ethereum.FeederPool_evt_Swapped + - method: source + value: kyber_avalanche_c.AggregationRouter_evt_Swapped + - method: source + value: fraxswap_ethereum.FraxswapPair_evt_Swap + - method: source + value: curvefi_ethereum.compound_evt_TokenExchange + - method: source + value: nomiswap_bnb.NomiswapFactory_evt_PairCreated + - method: source + value: zora_v3_ethereum.ReserveAuctionCoreEth_evt_AuctionEnded + - method: source + value: optimism.transactions + - method: source + value: superrare_ethereum.SuperRare_evt_Sold + - method: source + value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkBidEntered + - method: source + value: zora_v3_ethereum.AsksV1_1_evt_ExchangeExecuted + - method: source + value: curvefi_avalanche_c.3poolV2_evt_TokenExchange + - method: source + value: swapr_ethereum.DXswapPair_evt_Swap + - method: source + value: clipper_ethereum.ClipperExchangeInterface_evt_Swapped + - method: source + value: curvefi_avalanche_c.aave_v3_evt_TokenExchangeUnderlying + - method: source + value: element_ex_avalanche_c.OrdersFeature_evt_ERC1155BuyOrderFilled + - method: source + value: curvefi_avalanche_c.AavePool_evt_TokenExchangeUnderlying + - method: source + value: x2y2_ethereum.X2Y2_r1_evt_EvProfit + - method: source + value: bancornetwork_ethereum.BancorNetwork_v9_evt_Conversion + - method: source + value: fraxswap_bnb.FraxswapPair_evt_Swap + - method: source + value: curvefi_ethereum.tricrypto2_swap_evt_TokenExchange + - method: source + value: kyber_avalanche_c.Elastic_Pool_evt_swap + - method: source + value: curvefi_ethereum.hbtc_swap_evt_TokenExchange + - method: source + value: optimism.logs + - method: source + value: airswap_ethereum.Light_evt_Swap + - method: source + value: curvefi_ethereum.compound_swap_evt_TokenExchangeUnderlying + - method: source + value: cryptopunks_ethereum.CryptoPunksMarket_evt_Transfer + - method: source + value: curvefi_ethereum.sbtc_swap_evt_TokenExchange + - method: source + value: uniswap_ethereum.Exchange_evt_EthPurchase + - method: source + value: foundation_ethereum.market_evt_PrivateSaleFinalized + - method: source + value: zora_v3_ethereum.ReserveAuctionCoreErc20_evt_AuctionEnded + - method: source + value: looksrare_ethereum.StrategyStandardSaleForFixedPriceV1B_call_viewProtocolFee + - method: source + value: curvefi_ethereum.pax_swap_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.USD_coin_evt_TokenExchange + - method: source + value: element_ex_avalanche_c.OrdersFeature_evt_ERC721BuyOrderFilled + - method: source + value: curvefi_ethereum.tricrypto_swap_evt_TokenExchange + - method: source + value: velodrome_optimism.PairFactory_evt_PairCreated + - method: source + value: zora_v3_ethereum.AsksCoreEth_evt_RoyaltyPayout + - method: source + value: zora_ethereum.AuctionHouse_evt_AuctionEnded + - method: source + value: kyber_avalanche_c.MetaAggregationRouter_evt_Swapped + - method: source + value: curvefi_avalanche_c.AavePool_evt_TokenExchange + - method: source + value: curvefi_optimism.StableSwap_evt_TokenExchange + - method: source + value: sudo_amm_ethereum.LSSVMPair_general_call_swapNFTsForToken + - method: source + value: bnb.transactions + - method: source + value: erc20_optimism.evt_transfer + - method: source + value: curvefi_avalanche_c.L2StableSwap_evt_TokenExchange + - method: source + value: platypus_finance_avalanche_c.Pool_evt_Swap + - method: source + value: kyber_avalanche_c.DMMPool_evt_Swap + - method: source + value: curvefi_avalanche_c.frax_evt_TokenExchange + - method: source + value: wombat_bnb.mWOM_Pool_evt_Swap + - method: source + value: biswap_bnb.BiswapPair_evt_Swap + - method: source + value: foundation_ethereum.market_evt_ReserveAuctionFinalized + - method: source + value: uniswap_v3_ethereum.Pair_evt_Swap + - method: source + value: zora_v3_ethereum.ReserveAuctionCoreEth_evt_RoyaltyPayout + - method: source + value: biswap_bnb.BiswapFactory_evt_PairCreated + - method: source + value: gnosis.transactions + - method: source + value: wombat_bnb.Pool_evt_Swap + - method: source + value: ethereum.traces + - method: source + value: opensea_ethereum.wyvernexchange_call_atomicmatch_ + - method: source + value: superrare_ethereum.SuperRareBazaar_evt_Sold + - method: source + value: curvefi_optimism.PoolFactory_call_deploy_plain_pool + - method: source + value: kyber_avalanche_c.Elastic_Factory_evt_PoolCreated + - method: source + value: curvefi_ethereum.busd_swap_evt_TokenExchangeUnderlying + - method: source + value: curvefi_ethereum.y_swap_evt_TokenExchange + - method: source + value: zora_v3_ethereum.AsksV1_0_evt_ExchangeExecuted + - method: source + value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchangeUnderlying + - method: source + value: curvefi_ethereum.susd_evt_TokenExchangeUnderlying + - method: source + value: dodo_ethereum.DODOV1Proxy01_evt_OrderHistory + - method: source + value: curvefi_avalanche_c.agEURjEUR_evt_TokenExchange + - method: source + value: curvefi_ethereum.susd_swap_evt_TokenExchange + - method: source + value: mdex_bnb.MdexPair_evt_Swap + - method: source + value: uniswap_ethereum.Factory_evt_NewExchange + - method: source + value: curvefi_ethereum.compound_v2_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchange + - method: source + value: element_ex_avalanche_c.OrdersFeature_evt_ERC1155SellOrderFilled + - method: source + value: element_ex_ethereum.OrdersFeature_evt_ERC721SellOrderFilled + - method: source + value: fraxswap_bnb.FraxswapFactory_evt_PairCreated + - method: source + value: dodo_ethereum.DSP_evt_DODOSwap + - method: source + value: solana.transactions + - method: source + value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkBidWithdrawn + - method: source + value: uniswap_v3_optimism.factory_evt_poolcreated + - method: source + value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchange diff --git a/scripts/selector_template.yml b/scripts/selector_template.yml new file mode 100644 index 00000000000..f4e4b844449 --- /dev/null +++ b/scripts/selector_template.yml @@ -0,0 +1,6 @@ +selectors: # These selectors are generated programmatically (validate_source_freshness_checks.py) and pasted in manually +- name: test + definition: + union: + - method: source + value: delete_me \ No newline at end of file diff --git a/scripts/validate_source_freshness_checks.py b/scripts/validate_source_freshness_checks.py index 0af7a2d2554..0fe0c15ec17 100644 --- a/scripts/validate_source_freshness_checks.py +++ b/scripts/validate_source_freshness_checks.py @@ -2,6 +2,9 @@ import json import logging import sys +from pathlib import Path + +from ruamel.yaml import YAML logging.basicConfig(stream=sys.stdout, level=logging.WARN) @@ -9,6 +12,11 @@ parser.add_argument('--model') args = parser.parse_args() +class SourceSelector(object): + def __init__(self, method, value): + self.method = method + self.value = value + class Sources: def __init__(self, model, manifest): @@ -25,6 +33,22 @@ def __init__(self, model, manifest): else: return + def generate_selector(self): + """ + Generates a file in the scripts folder. Double check the contents and copy the models new selector + to the bottom of selectors.yml in the project root dir. + :return: + """ + yaml = YAML() + self.selector = yaml.load(Path("selector_template.yml").read_text()) + model_slug = self.model.split('.')[-1] + self.selector['selectors'][0]['name'] = f"{model_slug}_sources" + for source in list(set(self.source_node_dependencies)): + source_slug = f"{source.split('.')[-2]}.{source.split('.')[-1]}" + yaml.indent(mapping=2, sequence=4, offset=2) + self.selector['selectors'][0]['definition']['union'].append({'method': 'source', 'value': source_slug}) + yaml.dump(self.selector, Path(f"{model_slug}_selector.yml")) + def missing_freshness_checks(sources, manifest, check_type='warn'): sources = list(set(sources)) @@ -44,6 +68,8 @@ def __init__(self, sources_missing_checks): with open('../target/manifest.json') as json_file: manifest = json.load(json_file) -sources = Sources(model=f'model.spellbook.{args.model}', manifest=manifest).source_node_dependencies +sources_cls = Sources(model=f'model.spellbook.{args.model}', manifest=manifest) +sources_cls.generate_selector() +sources = sources_cls.source_node_dependencies sources_missing_checks = missing_freshness_checks(sources, manifest) assert len(sources_missing_checks) == 0, MissingSourceFreshnessChecks(sources_missing_checks) diff --git a/selectors.yml b/selectors.yml new file mode 100644 index 00000000000..4c37652e65d --- /dev/null +++ b/selectors.yml @@ -0,0 +1,868 @@ +selectors: # These selectors are generated programmatically (validate_source_freshness_checks.py) and pasted in manually + - name: nft_trades_sources + definition: + union: + - method: source + value: prices.usd + - method: source + value: erc1155_ethereum.evt_transferbatch + - method: source + value: element_ex_ethereum.OrdersFeature_evt_ERC721BuyOrderFilled + - method: source + value: optimism.logs + - method: source + value: curvefi_avalanche_c.Blizz_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.USDS_evt_TokenExchangeUnderlying + - method: source + value: wombat_bnb.DynamicPool_evt_Swap + - method: source + value: dodo_ethereum.DSP_evt_DODOSwap + - method: source + value: mdex_bnb.MdexPair_evt_Swap + - method: source + value: curvefi_avalanche_c.NXUSDaV3CRV_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchange + - method: source + value: zora_v3_ethereum.ReserveAuctionListingEth_evt_AuctionEnded + - method: source + value: curvefi_ethereum.y_swap_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.frax_evt_TokenExchange + - method: source + value: zora_v3_ethereum.AsksV1_1_evt_ExchangeExecuted + - method: source + value: superrare_ethereum.SuperRare_evt_Sold + - method: source + value: woofi_bnb.WooPP_evt_WooSwap + - method: source + value: blur_ethereum.BlurExchange_evt_OrdersMatched + - method: source + value: seaport_ethereum.Seaport_evt_OrderFulfilled + - method: source + value: solana.transactions + - method: source + value: superrare_ethereum.SuperRareBazaar_evt_AcceptOffer + - method: source + value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.frax_evt_TokenExchangeUnderlying + - method: source + value: uniswap_v3_polygon.UniswapV3Pool_evt_Swap + - method: source + value: curvefi_optimism.StableSwap_call_coins + - method: source + value: fraxswap_ethereum.FraxswapFactory_evt_PairCreated + - method: source + value: zora_v3_ethereum.AsksCoreEth_evt_RoyaltyPayout + - method: source + value: curvefi_ethereum.compound_v2_evt_TokenExchangeUnderlying + - method: source + value: uniswap_v3_optimism.factory_evt_poolcreated + - method: source + value: woofi_bnb.WooRouterV2_evt_WooRouterSwap + - method: source + value: wombat_bnb.HighCovRatioFeePool_evt_Swap + - method: source + value: sudo_amm_ethereum.LSSVMPair_general_call_swapNFTsForToken + - method: source + value: zora_v3_ethereum.OffersV1_evt_ExchangeExecuted + - method: source + value: fraxswap_avalanche_c.FraxswapFactory_evt_PairCreated + - method: source + value: zora_v3_ethereum.AsksCoreEth_evt_AskFilled + - method: source + value: looksrare_ethereum.looksrareexchange_evt_takerask + - method: source + value: curvefi_ethereum.hbtc_swap_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.AavePool_evt_TokenExchange + - method: source + value: platypus_finance_avalanche_c.Pool_evt_Swap + - method: source + value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkBought + - method: source + value: element_ex_avalanche_c.OrdersFeature_evt_ERC1155BuyOrderFilled + - method: source + value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchangeUnderlying + - method: source + value: curvefi_ethereum.tricrypto2_swap_evt_TokenExchange + - method: source + value: airswap_ethereum.swap_evt_Swap + - method: source + value: zora_v3_ethereum.ReserveAuctionListingErc20_evt_RoyaltyPayout + - method: source + value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchangeUnderlying + - method: source + value: foundation_ethereum.market_evt_ReserveAuctionCreated + - method: source + value: curvefi_ethereum.susd_evt_TokenExchangeUnderlying + - method: source + value: element_ex_ethereum.OrdersFeature_evt_ERC721SellOrderFilled + - method: source + value: hashflow_avalanche_c.Pool_evt_LzTrade + - method: source + value: airswap_ethereum.Swap_v3_evt_Swap + - method: source + value: foundation_ethereum.market_evt_BuyPriceAccepted + - method: source + value: opensea_ethereum.wyvernexchange_evt_ordersmatched + - method: source + value: wombat_bnb.WMX_WOM_Pool_evt_Swap + - method: source + value: uniswap_v2_ethereum.Pair_evt_Swap + - method: source + value: mdex_bnb.MdexFactory_evt_PairCreated + - method: source + value: pancakeswap_v2_bnb.PancakePair_evt_Swap + - method: source + value: curvefi_avalanche_c.axlUSDC_USDC_e_evt_TokenExchange + - method: source + value: dodo_ethereum.DODOV1Proxy01_evt_OrderHistory + - method: source + value: curvefi_ethereum.susd_swap_evt_TokenExchangeUnderlying + - method: source + value: gmx_avalanche_c.Router_evt_Swap + - method: source + value: arbitrum.transactions + - method: source + value: kyber_avalanche_c.MetaAggregationRouter_evt_Swapped + - method: source + value: element_ex_bnb.OrdersFeature_evt_ERC1155BuyOrderFilled + - method: source + value: curvefi_ethereum.usdt_swap_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.ren_evt_TokenExchange + - method: source + value: fraxswap_avalanche_c.FraxswapPair_evt_Swap + - method: source + value: foundation_ethereum.market_evt_OfferAccepted + - method: source + value: zigzag_test_v6_arbitrum.zigzag_settelment_call_matchOrders + - method: source + value: biswap_bnb.BiswapFactory_evt_PairCreated + - method: source + value: bnb.transactions + - method: source + value: sudo_amm_ethereum.LSSVMPair_general_call_swapTokenForSpecificNFTs + - method: source + value: curvefi_ethereum.sbtc_swap_evt_TokenExchange + - method: source + value: uniswap_ethereum.Exchange_evt_TokenPurchase + - method: source + value: curvefi_ethereum.pax_swap_evt_TokenExchangeUnderlying + - method: source + value: polygon.transactions + - method: source + value: curvefi_avalanche_c.ren_evt_TokenExchangeUnderlying + - method: source + value: dodo_ethereum.DODO_evt_BuyBaseToken + - method: source + value: uniswap_v3_arbitrum.Pair_evt_Swap + - method: source + value: zora_ethereum.Media_evt_Transfer + - method: source + value: foundation_ethereum.market_evt_PrivateSaleFinalized + - method: source + value: nomiswap_bnb.NomiswapFactory_evt_PairCreated + - method: source + value: uniswap_v3_optimism.Pair_evt_Swap + - method: source + value: gmx_arbitrum.Router_evt_Swap + - method: source + value: curvefi_avalanche_c.Topshelf_USDL_evt_TokenExchangeUnderlying + - method: source + value: bancornetwork_ethereum.BancorNetwork_v8_evt_Conversion + - method: source + value: zora_v3_ethereum.ReserveAuctionListingEth_evt_RoyaltyPayout + - method: source + value: looksrare_ethereum.StrategyAnyItemFromCollectionForFixedPrice_call_viewProtocolFee + - method: source + value: kyber_avalanche_c.DMMFactory_evt_PoolCreated + - method: source + value: superrare_ethereum.SuperRare_evt_AcceptBid + - method: source + value: curvefi_ethereum.threepool_swap_evt_TokenExchange + - method: source + value: wombat_bnb.qWOM_WOMPool_evt_Swap + - method: source + value: curvefi_ethereum.susd_swap_evt_TokenExchange + - method: source + value: element_ex_avalanche_c.OrdersFeature_evt_ERC1155SellOrderFilled + - method: source + value: erc1155_ethereum.evt_transfersingle + - method: source + value: mstable_ethereum.Masset_evt_Swapped + - method: source + value: foundation_ethereum.market_evt_ReserveAuctionFinalized + - method: source + value: ethereum.transactions + - method: source + value: curvefi_ethereum.compound_swap_evt_TokenExchange + - method: source + value: bancornetwork_ethereum.BancorNetwork_v9_evt_Conversion + - method: source + value: x2y2_ethereum.X2Y2_r1_evt_EvProfit + - method: source + value: sudo_amm_ethereum.LSSVMPairFactory_evt_ProtocolFeeMultiplierUpdate + - method: source + value: curvefi_avalanche_c.3poolV2_evt_TokenExchange + - method: source + value: swapr_ethereum.DXswapPair_evt_Swap + - method: source + value: sudo_amm_ethereum.LSSVMPair_general_evt_FeeUpdate + - method: source + value: zora_v3_ethereum.AsksV1_1_evt_RoyaltyPayout + - method: source + value: element_ex_ethereum.OrdersFeature_evt_ERC1155SellOrderFilled + - method: source + value: dodo_ethereum.DODOV2Proxy02_evt_OrderHistory + - method: source + value: kyber_avalanche_c.DMMPool_evt_Swap + - method: source + value: dodo_ethereum.DPP_evt_DODOSwap + - method: source + value: looksrare_ethereum.looksrareexchange_evt_royaltypayment + - method: source + value: curvefi_avalanche_c.YUSDPOOL_evt_TokenExchange + - method: source + value: erc20_ethereum.evt_transfer + - method: source + value: curvefi_avalanche_c.AavePool_evt_TokenExchangeUnderlying + - method: source + value: avalanche_c.transactions + - method: source + value: curvefi_ethereum.pax_swap_evt_TokenExchange + - method: source + value: sushiswap_v2_avalanche_c.Pair_evt_Swap + - method: source + value: ethereum.traces + - method: source + value: looksrare_ethereum.StrategyStandardSaleForFixedPrice_call_viewProtocolFee + - method: source + value: element_ex_avalanche_c.OrdersFeature_evt_ERC721SellOrderFilled + - method: source + value: erc721_ethereum.evt_transfer + - method: source + value: sushiswap_gnosis.UniswapV2Pair_evt_Swap + - method: source + value: swapr_ethereum.DXswapFactory_evt_PairCreated + - method: source + value: superrare_ethereum.SuperRareBazaar_evt_AuctionSettled + - method: source + value: wombat_bnb.mWOM_Pool_evt_Swap + - method: source + value: curvefi_avalanche_c.ATriCryptoPool_evt_TokenExchange + - method: source + value: fraxswap_polygon.FraxswapPair_evt_Swap + - method: source + value: sushi_ethereum.Pair_evt_Swap + - method: source + value: superrare_ethereum.SuperRareMarketAuction_evt_AcceptBid + - method: source + value: wombat_bnb.Pool_evt_Swap + - method: source + value: uniswap_v3_polygon.factory_polygon_evt_PoolCreated + - method: source + value: kyber_avalanche_c.AggregationRouter_evt_Swapped + - method: source + value: uniswap_ethereum.Factory_evt_NewExchange + - method: source + value: element_ex_ethereum.OrdersFeature_evt_ERC1155BuyOrderFilled + - method: source + value: curvefi_avalanche_c.deBridge_USDC_evt_TokenExchangeUnderlying + - method: source + value: velodrome_optimism.PairFactory_evt_PairCreated + - method: source + value: curvefi_ethereum.ren_swap_evt_TokenExchange + - method: source + value: looksrare_ethereum.StrategyPrivateSale_call_viewProtocolFee + - method: source + value: woofi_bnb.WooRouter_evt_WooRouterSwap + - method: source + value: curvefi_ethereum.y_swap_evt_TokenExchange + - method: source + value: zora_v3_ethereum.OffersV1_evt_RoyaltyPayout + - method: source + value: element_ex_bnb.OrdersFeature_evt_ERC721SellOrderFilled + - method: source + value: looksrare_ethereum.StrategyAnyItemFromCollectionForFixedPriceV1B_call_viewProtocolFee + - method: source + value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkBidWithdrawn + - method: source + value: curvefi_ethereum.busd_swap_evt_TokenExchange + - method: source + value: hashflow_ethereum.router_call_tradesinglehop + - method: source + value: curvefi_avalanche_c.USDCe_UST_evt_TokenExchange + - method: source + value: superrare_ethereum.SuperRareBazaar_evt_Sold + - method: source + value: curvefi_avalanche_c.avax3pool_evt_TokenExchange + - method: source + value: fraxswap_bnb.FraxswapPair_evt_Swap + - method: source + value: element_ex_bnb.OrdersFeature_evt_ERC1155SellOrderFilled + - method: source + value: fraxswap_polygon.FraxswapFactory_evt_PairCreated + - method: source + value: curvefi_optimism.PoolFactory_call_deploy_plain_pool + - method: source + value: clipper_ethereum.ClipperCaravelExchange_evt_Swapped + - method: source + value: babyswap_bnb.BabyPair_evt_Swap + - method: source + value: zora_v3_ethereum.ReserveAuctionListingErc20_evt_AuctionEnded + - method: source + value: element_ex_bnb.OrdersFeature_evt_ERC721BuyOrderFilled + - method: source + value: curvefi_avalanche_c.axlUSDCUSDC_evt_TokenExchange + - method: source + value: bancornetwork_ethereum.BancorNetwork_v10_evt_Conversion + - method: source + value: nomiswap_bnb.NomiswapPair_evt_Swap + - method: source + value: sushiswap_gnosis.UniswapV2Factory_evt_PairCreated + - method: source + value: zora_v3_ethereum.AsksV1_0_evt_ExchangeExecuted + - method: source + value: babyswap_bnb.BabyFactory_evt_PairCreated + - method: source + value: dfx_finance_ethereum.Curve_evt_Trade + - method: source + value: shibaswap_ethereum.UniswapV2Pair_evt_Swap + - method: source + value: archipelago_ethereum.ArchipelagoMarket_evt_TokenTrade + - method: source + value: zora_v3_ethereum.AsksPrivateEth_evt_RoyaltyPayout + - method: source + value: uniswap_v3_arbitrum.UniswapV3Factory_evt_PoolCreated + - method: source + value: curvefi_avalanche_c.MAI_evt_TokenExchangeUnderlying + - method: source + value: curvefi_ethereum.compound_swap_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.aave_v3_evt_TokenExchangeUnderlying + - method: source + value: ethereum.logs + - method: source + value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkTransfer + - method: source + value: curvefi_avalanche_c.MIM_evt_TokenExchange + - method: source + value: kyber_avalanche_c.Elastic_Factory_evt_PoolCreated + - method: source + value: sushi_ethereum.Factory_evt_PairCreated + - method: source + value: bancornetwork_ethereum.BancorNetwork_v6_evt_Conversion + - method: source + value: curvefi_avalanche_c.USD_coin_evt_TokenExchange + - method: source + value: erc20_optimism.evt_transfer + - method: source + value: curvefi_ethereum.usdt_swap_evt_TokenExchange + - method: source + value: uniswap_ethereum.Exchange_evt_EthPurchase + - method: source + value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkBidEntered + - method: source + value: curvefi_avalanche_c.eEURjEUR_evt_TokenExchange + - method: source + value: pancakeswap_v2_bnb.PancakeFactory_evt_PairCreated + - method: source + value: uniswap_v3_ethereum.Pair_evt_Swap + - method: source + value: dodo_ethereum.DODO_evt_SellBaseToken + - method: source + value: zora_v3_ethereum.ReserveAuctionFindersErc20_evt_AuctionEnded + - method: source + value: curvefi_optimism.PoolFactory_evt_MetaPoolDeployed + - method: source + value: mstable_ethereum.FeederPool_evt_Swapped + - method: source + value: optimism_ethereum.L1ERC721Bridge_evt_ERC721BridgeInitiated + - method: source + value: bancornetwork_ethereum.BancorNetwork_v7_evt_Conversion + - method: source + value: sudo_amm_ethereum.LSSVMPair_general_evt_AssetRecipientChange + - method: source + value: uniswap_v2_ethereum.Factory_evt_PairCreated + - method: source + value: looksrare_ethereum.looksrareexchange_evt_takerbid + - method: source + value: curvefi_ethereum.susd_evt_TokenExchange + - method: source + value: velodrome_optimism.Pair_evt_Swap + - method: source + value: fraxswap_bnb.FraxswapFactory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.3pool_evt_TokenExchange + - method: source + value: sushiswap_v2_avalanche_c.SushiV2Factory_evt_PairCreated + - method: source + value: curvefi_ethereum.compound_evt_TokenExchange + - method: source + value: zora_ethereum.AuctionHouse_evt_AuctionEnded + - method: source + value: hashflow_ethereum.pool_evt_trade + - method: source + value: optimism.transactions + - method: source + value: crodefi_ethereum.CroDefiSwapFactory_evt_PairCreated + - method: source + value: kyber_avalanche_c.Elastic_Pool_evt_swap + - method: source + value: curvefi_avalanche_c.MIM_evt_TokenExchangeUnderlying + - method: source + value: dodo_ethereum.DODOV1Proxy04_evt_OrderHistory + - method: source + value: zora_v3_ethereum.ReserveAuctionCoreErc20_evt_RoyaltyPayout + - method: source + value: woofi_avalanche_c.WooRouterV2_evt_WooRouterSwap + - method: source + value: zora_v3_ethereum.ReserveAuctionFindersErc20_evt_RoyaltyPayout + - method: source + value: sudo_amm_ethereum.LSSVMPairFactory_call_createPairETH + - method: source + value: gnosis.transactions + - method: source + value: clipper_ethereum.ClipperExchangeInterface_evt_Swapped + - method: source + value: izumi_bnb.iZiSwapPool_evt_Swap + - method: source + value: curvefi_avalanche_c.FUSD_MIM_Factory_Pool_evt_TokenExchange + - method: source + value: curvefi_ethereum.compound_v2_evt_TokenExchange + - method: source + value: opensea_ethereum.wyvernexchange_call_atomicmatch_ + - method: source + value: shibaswap_ethereum.UniswapV2Factory_evt_PairCreated + - method: source + value: zora_v3_ethereum.ReserveAuctionCoreEth_evt_RoyaltyPayout + - method: source + value: zora_ethereum.Market_evt_BidFinalized + - method: source + value: curvefi_avalanche_c.FUSDUSDC_evt_TokenExchange + - method: source + value: biswap_bnb.BiswapPair_evt_Swap + - method: source + value: looksrare_ethereum.StrategyStandardSaleForFixedPriceV1B_call_viewProtocolFee + - method: source + value: curvefi_optimism.MetaPoolSwap_evt_TokenExchangeUnderlying + - method: source + value: sudo_amm_ethereum.LSSVMPair_general_call_swapTokenForAnyNFTs + - method: source + value: curvefi_ethereum.steth_swap_evt_TokenExchange + - method: source + value: defiswap_ethereum.CroDefiSwapPair_evt_Swap + - method: source + value: trader_joe_avalanche_c.JoePair_evt_Swap + - method: source + value: fraxswap_ethereum.FraxswapPair_evt_Swap + - method: source + value: archipelago_ethereum.ArchipelagoMarket_evt_RoyaltyPayment + - method: source + value: zora_v3_ethereum.ReserveAuctionCoreErc20_evt_AuctionEnded + - method: source + value: element_ex_avalanche_c.OrdersFeature_evt_ERC721BuyOrderFilled + - method: source + value: trader_joe_avalanche_c.JoeFactory_evt_PairCreated + - method: source + value: dodo_ethereum.DVM_evt_DODOSwap + - method: source + value: clipper_ethereum.ClipperVerifiedCaravelExchange_evt_Swapped + - method: source + value: curvefi_avalanche_c.L2StableSwap_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.MAI_evt_TokenExchange + - method: source + value: curvefi_optimism.StableSwap_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.arUSD_evt_TokenExchange + - method: source + value: archipelago_ethereum.ArchipelagoMarket_evt_Trade + - method: source + value: curvefi_avalanche_c.agEURjEUR_evt_TokenExchange + - method: source + value: airswap_ethereum.Light_evt_Swap + - method: source + value: cryptopunks_ethereum.CryptoPunksMarket_evt_Transfer + - method: source + value: zora_v3_ethereum.ReserveAuctionFindersEth_evt_RoyaltyPayout + - method: source + value: zora_v3_ethereum.AsksPrivateEth_evt_AskFilled + - method: source + value: bancor3_ethereum.BancorNetwork_evt_TokensTraded + - method: source + value: zora_v3_ethereum.AsksV1_0_evt_RoyaltyPayout + - method: source + value: x2y2_ethereum.X2Y2_r1_evt_EvInventory + - method: source + value: zora_v3_ethereum.ReserveAuctionFindersEth_evt_AuctionEnded + - method: source + value: curvefi_avalanche_c.Curve_DD2_Pool_evt_TokenExchange + - method: source + value: uniswap_v3_ethereum.Factory_evt_PoolCreated + - method: source + value: superrare_ethereum.SuperRareMarketAuction_evt_Sold + - method: source + value: curvefi_ethereum.busd_swap_evt_TokenExchangeUnderlying + - method: source + value: curvefi_ethereum.tricrypto_swap_evt_TokenExchange + - method: source + value: hashflow_avalanche_c.Pool_evt_Trade + - method: source + value: zora_v3_ethereum.ReserveAuctionCoreEth_evt_AuctionEnded + - method: source + value: woofi_avalanche_c.WooPP_evt_WooSwap + + - name: dex_trades_sources + definition: + union: + - method: source + value: curvefi_avalanche_c.frax_evt_TokenExchange + - method: source + value: woofi_bnb.WooPP_evt_WooSwap + - method: source + value: curvefi_ethereum.compound_v2_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.NXUSDaV3CRV_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.AavePool_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.eEURjEUR_evt_TokenExchange + - method: source + value: fraxswap_bnb.FraxswapPair_evt_Swap + - method: source + value: wombat_bnb.DynamicPool_evt_Swap + - method: source + value: curvefi_avalanche_c.ATriCryptoPool_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.arUSD_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchangeUnderlying + - method: source + value: trader_joe_avalanche_c.JoeFactory_evt_PairCreated + - method: source + value: bancornetwork_ethereum.BancorNetwork_v9_evt_Conversion + - method: source + value: curvefi_ethereum.usdt_swap_evt_TokenExchangeUnderlying + - method: source + value: bancor3_ethereum.BancorNetwork_evt_TokensTraded + - method: source + value: kyber_avalanche_c.MetaAggregationRouter_evt_Swapped + - method: source + value: bancornetwork_ethereum.BancorNetwork_v7_evt_Conversion + - method: source + value: uniswap_v3_polygon.factory_polygon_evt_PoolCreated + - method: source + value: bnb.transactions + - method: source + value: uniswap_v3_arbitrum.Pair_evt_Swap + - method: source + value: sushiswap_gnosis.UniswapV2Pair_evt_Swap + - method: source + value: gmx_avalanche_c.Router_evt_Swap + - method: source + value: kyber_avalanche_c.DMMPool_evt_Swap + - method: source + value: crodefi_ethereum.CroDefiSwapFactory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.USDCe_UST_evt_TokenExchange + - method: source + value: fraxswap_avalanche_c.FraxswapPair_evt_Swap + - method: source + value: curvefi_avalanche_c.Topshelf_USDL_evt_TokenExchangeUnderlying + - method: source + value: fraxswap_ethereum.FraxswapFactory_evt_PairCreated + - method: source + value: curvefi_ethereum.ren_swap_evt_TokenExchange + - method: source + value: fraxswap_polygon.FraxswapPair_evt_Swap + - method: source + value: bancornetwork_ethereum.BancorNetwork_v8_evt_Conversion + - method: source + value: curvefi_avalanche_c.deBridge_USDC_evt_TokenExchangeUnderlying + - method: source + value: dodo_ethereum.DODO_evt_BuyBaseToken + - method: source + value: woofi_bnb.WooRouter_evt_WooRouterSwap + - method: source + value: defiswap_ethereum.CroDefiSwapPair_evt_Swap + - method: source + value: babyswap_bnb.BabyFactory_evt_PairCreated + - method: source + value: uniswap_v3_optimism.factory_evt_poolcreated + - method: source + value: clipper_ethereum.ClipperVerifiedCaravelExchange_evt_Swapped + - method: source + value: wombat_bnb.WMX_WOM_Pool_evt_Swap + - method: source + value: biswap_bnb.BiswapPair_evt_Swap + - method: source + value: curvefi_optimism.StableSwap_call_coins + - method: source + value: curvefi_ethereum.compound_v2_evt_TokenExchange + - method: source + value: curvefi_ethereum.busd_swap_evt_TokenExchangeUnderlying + - method: source + value: wombat_bnb.qWOM_WOMPool_evt_Swap + - method: source + value: sushiswap_v2_avalanche_c.SushiV2Factory_evt_PairCreated + - method: source + value: clipper_ethereum.ClipperExchangeInterface_evt_Swapped + - method: source + value: nomiswap_bnb.NomiswapPair_evt_Swap + - method: source + value: curvefi_ethereum.tricrypto2_swap_evt_TokenExchange + - method: source + value: mdex_bnb.MdexFactory_evt_PairCreated + - method: source + value: curvefi_ethereum.tricrypto_swap_evt_TokenExchange + - method: source + value: curvefi_ethereum.steth_swap_evt_TokenExchange + - method: source + value: curvefi_ethereum.y_swap_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.agEURjEUR_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.FUSDUSDC_evt_TokenExchange + - method: source + value: uniswap_v3_ethereum.Factory_evt_PoolCreated + - method: source + value: izumi_bnb.iZiSwapPool_evt_Swap + - method: source + value: curvefi_ethereum.susd_evt_TokenExchangeUnderlying + - method: source + value: dfx_finance_ethereum.Curve_evt_Trade + - method: source + value: mstable_ethereum.FeederPool_evt_Swapped + - method: source + value: curvefi_ethereum.compound_swap_evt_TokenExchangeUnderlying + - method: source + value: dodo_ethereum.DVM_evt_DODOSwap + - method: source + value: swapr_ethereum.DXswapFactory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.3pool_evt_TokenExchange + - method: source + value: wombat_bnb.Pool_evt_Swap + - method: source + value: biswap_bnb.BiswapFactory_evt_PairCreated + - method: source + value: ethereum.traces + - method: source + value: curvefi_ethereum.susd_swap_evt_TokenExchange + - method: source + value: hashflow_ethereum.pool_evt_trade + - method: source + value: uniswap_ethereum.Exchange_evt_TokenPurchase + - method: source + value: curvefi_ethereum.pax_swap_evt_TokenExchange + - method: source + value: nomiswap_bnb.NomiswapFactory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.MAI_evt_TokenExchangeUnderlying + - method: source + value: curvefi_ethereum.susd_swap_evt_TokenExchangeUnderlying + - method: source + value: hashflow_avalanche_c.Pool_evt_Trade + - method: source + value: hashflow_ethereum.router_call_tradesinglehop + - method: source + value: sushiswap_v2_avalanche_c.Pair_evt_Swap + - method: source + value: curvefi_avalanche_c.L2StableSwap_evt_TokenExchange + - method: source + value: sushiswap_gnosis.UniswapV2Factory_evt_PairCreated + - method: source + value: dodo_ethereum.DODOV1Proxy04_evt_OrderHistory + - method: source + value: fraxswap_bnb.FraxswapFactory_evt_PairCreated + - method: source + value: dodo_ethereum.DODOV2Proxy02_evt_OrderHistory + - method: source + value: curvefi_avalanche_c.YUSDPOOL_evt_TokenExchange + - method: source + value: uniswap_v3_polygon.UniswapV3Pool_evt_Swap + - method: source + value: curvefi_optimism.MetaPoolSwap_evt_TokenExchangeUnderlying + - method: source + value: kyber_avalanche_c.Elastic_Pool_evt_swap + - method: source + value: wombat_bnb.HighCovRatioFeePool_evt_Swap + - method: source + value: sushi_ethereum.Factory_evt_PairCreated + - method: source + value: dodo_ethereum.DPP_evt_DODOSwap + - method: source + value: bancornetwork_ethereum.BancorNetwork_v6_evt_Conversion + - method: source + value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchange + - method: source + value: hashflow_avalanche_c.Pool_evt_LzTrade + - method: source + value: dodo_ethereum.DODOV1Proxy01_evt_OrderHistory + - method: source + value: curvefi_ethereum.compound_evt_TokenExchange + - method: source + value: trader_joe_avalanche_c.JoePair_evt_Swap + - method: source + value: curvefi_avalanche_c.3poolV2_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchange + - method: source + value: dodo_ethereum.DSP_evt_DODOSwap + - method: source + value: curvefi_ethereum.pax_swap_evt_TokenExchangeUnderlying + - method: source + value: uniswap_ethereum.Exchange_evt_EthPurchase + - method: source + value: sushi_ethereum.Pair_evt_Swap + - method: source + value: velodrome_optimism.Pair_evt_Swap + - method: source + value: woofi_avalanche_c.WooPP_evt_WooSwap + - method: source + value: airswap_ethereum.Swap_v3_evt_Swap + - method: source + value: curvefi_ethereum.busd_swap_evt_TokenExchange + - method: source + value: mstable_ethereum.Masset_evt_Swapped + - method: source + value: woofi_avalanche_c.WooRouterV2_evt_WooRouterSwap + - method: source + value: woofi_bnb.WooRouterV2_evt_WooRouterSwap + - method: source + value: gmx_arbitrum.Router_evt_Swap + - method: source + value: curvefi_avalanche_c.ren_evt_TokenExchange + - method: source + value: pancakeswap_v2_bnb.PancakePair_evt_Swap + - method: source + value: gnosis.transactions + - method: source + value: optimism.logs + - method: source + value: curvefi_avalanche_c.MIM_evt_TokenExchange + - method: source + value: curvefi_ethereum.compound_swap_evt_TokenExchange + - method: source + value: fraxswap_avalanche_c.FraxswapFactory_evt_PairCreated + - method: source + value: curvefi_optimism.PoolFactory_call_deploy_plain_pool + - method: source + value: babyswap_bnb.BabyPair_evt_Swap + - method: source + value: curvefi_ethereum.usdt_swap_evt_TokenExchange + - method: source + value: polygon.transactions + - method: source + value: zigzag_test_v6_arbitrum.zigzag_settelment_call_matchOrders + - method: source + value: uniswap_v3_arbitrum.UniswapV3Factory_evt_PoolCreated + - method: source + value: velodrome_optimism.PairFactory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.Curve_DD2_Pool_evt_TokenExchange + - method: source + value: wombat_bnb.mWOM_Pool_evt_Swap + - method: source + value: fraxswap_polygon.FraxswapFactory_evt_PairCreated + - method: source + value: curvefi_ethereum.sbtc_swap_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.MAI_evt_TokenExchange + - method: source + value: uniswap_ethereum.Factory_evt_NewExchange + - method: source + value: curvefi_optimism.StableSwap_evt_TokenExchange + - method: source + value: curvefi_ethereum.susd_evt_TokenExchange + - method: source + value: shibaswap_ethereum.UniswapV2Pair_evt_Swap + - method: source + value: erc20_optimism.evt_transfer + - method: source + value: kyber_avalanche_c.Elastic_Factory_evt_PoolCreated + - method: source + value: optimism.transactions + - method: source + value: airswap_ethereum.Light_evt_Swap + - method: source + value: fraxswap_ethereum.FraxswapPair_evt_Swap + - method: source + value: mdex_bnb.MdexPair_evt_Swap + - method: source + value: platypus_finance_avalanche_c.Pool_evt_Swap + - method: source + value: uniswap_v2_ethereum.Pair_evt_Swap + - method: source + value: uniswap_v3_ethereum.Pair_evt_Swap + - method: source + value: uniswap_v3_optimism.Pair_evt_Swap + - method: source + value: prices.usd + - method: source + value: curvefi_avalanche_c.ren_evt_TokenExchangeUnderlying + - method: source + value: avalanche_c.transactions + - method: source + value: curvefi_avalanche_c.axlUSDCUSDC_evt_TokenExchange + - method: source + value: pancakeswap_v2_bnb.PancakeFactory_evt_PairCreated + - method: source + value: airswap_ethereum.swap_evt_Swap + - method: source + value: curvefi_avalanche_c.aave_v3_evt_TokenExchangeUnderlying + - method: source + value: swapr_ethereum.DXswapPair_evt_Swap + - method: source + value: curvefi_avalanche_c.AavePool_evt_TokenExchange + - method: source + value: shibaswap_ethereum.UniswapV2Factory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.FUSD_MIM_Factory_Pool_evt_TokenExchange + - method: source + value: kyber_avalanche_c.AggregationRouter_evt_Swapped + - method: source + value: ethereum.transactions + - method: source + value: curvefi_optimism.PoolFactory_evt_MetaPoolDeployed + - method: source + value: uniswap_v2_ethereum.Factory_evt_PairCreated + - method: source + value: curvefi_avalanche_c.axlUSDC_USDC_e_evt_TokenExchange + - method: source + value: ethereum.logs + - method: source + value: bancornetwork_ethereum.BancorNetwork_v10_evt_Conversion + - method: source + value: curvefi_ethereum.y_swap_evt_TokenExchange + - method: source + value: curvefi_ethereum.hbtc_swap_evt_TokenExchange + - method: source + value: dodo_ethereum.DODO_evt_SellBaseToken + - method: source + value: kyber_avalanche_c.DMMFactory_evt_PoolCreated + - method: source + value: curvefi_avalanche_c.USDS_evt_TokenExchangeUnderlying + - method: source + value: arbitrum.transactions + - method: source + value: curvefi_ethereum.threepool_swap_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.avax3pool_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.frax_evt_TokenExchangeUnderlying + - method: source + value: clipper_ethereum.ClipperCaravelExchange_evt_Swapped + - method: source + value: curvefi_avalanche_c.Blizz_evt_TokenExchange + - method: source + value: curvefi_avalanche_c.MIM_evt_TokenExchangeUnderlying + - method: source + value: curvefi_avalanche_c.USD_coin_evt_TokenExchange \ No newline at end of file From 0b48502e1990a255a5448f0b97705163cc29e848 Mon Sep 17 00:00:00 2001 From: Meghan Date: Wed, 28 Dec 2022 15:50:35 -0500 Subject: [PATCH 4/7] remove selector --- scripts/dex_trades_selector.yml | 350 ------------- scripts/nft_trades_selector.yml | 520 -------------------- scripts/selector_template.yml | 6 - scripts/validate_source_freshness_checks.py | 18 - 4 files changed, 894 deletions(-) delete mode 100644 scripts/dex_trades_selector.yml delete mode 100644 scripts/nft_trades_selector.yml delete mode 100644 scripts/selector_template.yml diff --git a/scripts/dex_trades_selector.yml b/scripts/dex_trades_selector.yml deleted file mode 100644 index 19ece8611b6..00000000000 --- a/scripts/dex_trades_selector.yml +++ /dev/null @@ -1,350 +0,0 @@ -selectors: # These selectors are generated programmatically (validate_source_freshness_checks.py) and pasted in manually - - name: dex_trades_sources - definition: - union: - - method: source - value: curvefi_avalanche_c.frax_evt_TokenExchange - - method: source - value: woofi_bnb.WooPP_evt_WooSwap - - method: source - value: curvefi_ethereum.compound_v2_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.NXUSDaV3CRV_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.AavePool_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.eEURjEUR_evt_TokenExchange - - method: source - value: fraxswap_bnb.FraxswapPair_evt_Swap - - method: source - value: wombat_bnb.DynamicPool_evt_Swap - - method: source - value: curvefi_avalanche_c.ATriCryptoPool_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.arUSD_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchangeUnderlying - - method: source - value: trader_joe_avalanche_c.JoeFactory_evt_PairCreated - - method: source - value: bancornetwork_ethereum.BancorNetwork_v9_evt_Conversion - - method: source - value: curvefi_ethereum.usdt_swap_evt_TokenExchangeUnderlying - - method: source - value: bancor3_ethereum.BancorNetwork_evt_TokensTraded - - method: source - value: kyber_avalanche_c.MetaAggregationRouter_evt_Swapped - - method: source - value: bancornetwork_ethereum.BancorNetwork_v7_evt_Conversion - - method: source - value: uniswap_v3_polygon.factory_polygon_evt_PoolCreated - - method: source - value: bnb.transactions - - method: source - value: uniswap_v3_arbitrum.Pair_evt_Swap - - method: source - value: sushiswap_gnosis.UniswapV2Pair_evt_Swap - - method: source - value: gmx_avalanche_c.Router_evt_Swap - - method: source - value: kyber_avalanche_c.DMMPool_evt_Swap - - method: source - value: crodefi_ethereum.CroDefiSwapFactory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.USDCe_UST_evt_TokenExchange - - method: source - value: fraxswap_avalanche_c.FraxswapPair_evt_Swap - - method: source - value: curvefi_avalanche_c.Topshelf_USDL_evt_TokenExchangeUnderlying - - method: source - value: fraxswap_ethereum.FraxswapFactory_evt_PairCreated - - method: source - value: curvefi_ethereum.ren_swap_evt_TokenExchange - - method: source - value: fraxswap_polygon.FraxswapPair_evt_Swap - - method: source - value: bancornetwork_ethereum.BancorNetwork_v8_evt_Conversion - - method: source - value: curvefi_avalanche_c.deBridge_USDC_evt_TokenExchangeUnderlying - - method: source - value: dodo_ethereum.DODO_evt_BuyBaseToken - - method: source - value: woofi_bnb.WooRouter_evt_WooRouterSwap - - method: source - value: defiswap_ethereum.CroDefiSwapPair_evt_Swap - - method: source - value: babyswap_bnb.BabyFactory_evt_PairCreated - - method: source - value: uniswap_v3_optimism.factory_evt_poolcreated - - method: source - value: clipper_ethereum.ClipperVerifiedCaravelExchange_evt_Swapped - - method: source - value: wombat_bnb.WMX_WOM_Pool_evt_Swap - - method: source - value: biswap_bnb.BiswapPair_evt_Swap - - method: source - value: curvefi_optimism.StableSwap_call_coins - - method: source - value: curvefi_ethereum.compound_v2_evt_TokenExchange - - method: source - value: curvefi_ethereum.busd_swap_evt_TokenExchangeUnderlying - - method: source - value: wombat_bnb.qWOM_WOMPool_evt_Swap - - method: source - value: sushiswap_v2_avalanche_c.SushiV2Factory_evt_PairCreated - - method: source - value: clipper_ethereum.ClipperExchangeInterface_evt_Swapped - - method: source - value: nomiswap_bnb.NomiswapPair_evt_Swap - - method: source - value: curvefi_ethereum.tricrypto2_swap_evt_TokenExchange - - method: source - value: mdex_bnb.MdexFactory_evt_PairCreated - - method: source - value: curvefi_ethereum.tricrypto_swap_evt_TokenExchange - - method: source - value: curvefi_ethereum.steth_swap_evt_TokenExchange - - method: source - value: curvefi_ethereum.y_swap_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.agEURjEUR_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.FUSDUSDC_evt_TokenExchange - - method: source - value: uniswap_v3_ethereum.Factory_evt_PoolCreated - - method: source - value: izumi_bnb.iZiSwapPool_evt_Swap - - method: source - value: curvefi_ethereum.susd_evt_TokenExchangeUnderlying - - method: source - value: dfx_finance_ethereum.Curve_evt_Trade - - method: source - value: mstable_ethereum.FeederPool_evt_Swapped - - method: source - value: curvefi_ethereum.compound_swap_evt_TokenExchangeUnderlying - - method: source - value: dodo_ethereum.DVM_evt_DODOSwap - - method: source - value: swapr_ethereum.DXswapFactory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.3pool_evt_TokenExchange - - method: source - value: wombat_bnb.Pool_evt_Swap - - method: source - value: biswap_bnb.BiswapFactory_evt_PairCreated - - method: source - value: ethereum.traces - - method: source - value: curvefi_ethereum.susd_swap_evt_TokenExchange - - method: source - value: hashflow_ethereum.pool_evt_trade - - method: source - value: uniswap_ethereum.Exchange_evt_TokenPurchase - - method: source - value: curvefi_ethereum.pax_swap_evt_TokenExchange - - method: source - value: nomiswap_bnb.NomiswapFactory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.MAI_evt_TokenExchangeUnderlying - - method: source - value: curvefi_ethereum.susd_swap_evt_TokenExchangeUnderlying - - method: source - value: hashflow_avalanche_c.Pool_evt_Trade - - method: source - value: hashflow_ethereum.router_call_tradesinglehop - - method: source - value: sushiswap_v2_avalanche_c.Pair_evt_Swap - - method: source - value: curvefi_avalanche_c.L2StableSwap_evt_TokenExchange - - method: source - value: sushiswap_gnosis.UniswapV2Factory_evt_PairCreated - - method: source - value: dodo_ethereum.DODOV1Proxy04_evt_OrderHistory - - method: source - value: fraxswap_bnb.FraxswapFactory_evt_PairCreated - - method: source - value: dodo_ethereum.DODOV2Proxy02_evt_OrderHistory - - method: source - value: curvefi_avalanche_c.YUSDPOOL_evt_TokenExchange - - method: source - value: uniswap_v3_polygon.UniswapV3Pool_evt_Swap - - method: source - value: curvefi_optimism.MetaPoolSwap_evt_TokenExchangeUnderlying - - method: source - value: kyber_avalanche_c.Elastic_Pool_evt_swap - - method: source - value: wombat_bnb.HighCovRatioFeePool_evt_Swap - - method: source - value: sushi_ethereum.Factory_evt_PairCreated - - method: source - value: dodo_ethereum.DPP_evt_DODOSwap - - method: source - value: bancornetwork_ethereum.BancorNetwork_v6_evt_Conversion - - method: source - value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchange - - method: source - value: hashflow_avalanche_c.Pool_evt_LzTrade - - method: source - value: dodo_ethereum.DODOV1Proxy01_evt_OrderHistory - - method: source - value: curvefi_ethereum.compound_evt_TokenExchange - - method: source - value: trader_joe_avalanche_c.JoePair_evt_Swap - - method: source - value: curvefi_avalanche_c.3poolV2_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchange - - method: source - value: dodo_ethereum.DSP_evt_DODOSwap - - method: source - value: curvefi_ethereum.pax_swap_evt_TokenExchangeUnderlying - - method: source - value: uniswap_ethereum.Exchange_evt_EthPurchase - - method: source - value: sushi_ethereum.Pair_evt_Swap - - method: source - value: velodrome_optimism.Pair_evt_Swap - - method: source - value: woofi_avalanche_c.WooPP_evt_WooSwap - - method: source - value: airswap_ethereum.Swap_v3_evt_Swap - - method: source - value: curvefi_ethereum.busd_swap_evt_TokenExchange - - method: source - value: mstable_ethereum.Masset_evt_Swapped - - method: source - value: woofi_avalanche_c.WooRouterV2_evt_WooRouterSwap - - method: source - value: woofi_bnb.WooRouterV2_evt_WooRouterSwap - - method: source - value: gmx_arbitrum.Router_evt_Swap - - method: source - value: curvefi_avalanche_c.ren_evt_TokenExchange - - method: source - value: pancakeswap_v2_bnb.PancakePair_evt_Swap - - method: source - value: gnosis.transactions - - method: source - value: optimism.logs - - method: source - value: curvefi_avalanche_c.MIM_evt_TokenExchange - - method: source - value: curvefi_ethereum.compound_swap_evt_TokenExchange - - method: source - value: fraxswap_avalanche_c.FraxswapFactory_evt_PairCreated - - method: source - value: curvefi_optimism.PoolFactory_call_deploy_plain_pool - - method: source - value: babyswap_bnb.BabyPair_evt_Swap - - method: source - value: curvefi_ethereum.usdt_swap_evt_TokenExchange - - method: source - value: polygon.transactions - - method: source - value: zigzag_test_v6_arbitrum.zigzag_settelment_call_matchOrders - - method: source - value: uniswap_v3_arbitrum.UniswapV3Factory_evt_PoolCreated - - method: source - value: velodrome_optimism.PairFactory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.Curve_DD2_Pool_evt_TokenExchange - - method: source - value: wombat_bnb.mWOM_Pool_evt_Swap - - method: source - value: fraxswap_polygon.FraxswapFactory_evt_PairCreated - - method: source - value: curvefi_ethereum.sbtc_swap_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.MAI_evt_TokenExchange - - method: source - value: uniswap_ethereum.Factory_evt_NewExchange - - method: source - value: curvefi_optimism.StableSwap_evt_TokenExchange - - method: source - value: curvefi_ethereum.susd_evt_TokenExchange - - method: source - value: shibaswap_ethereum.UniswapV2Pair_evt_Swap - - method: source - value: erc20_optimism.evt_transfer - - method: source - value: kyber_avalanche_c.Elastic_Factory_evt_PoolCreated - - method: source - value: optimism.transactions - - method: source - value: airswap_ethereum.Light_evt_Swap - - method: source - value: fraxswap_ethereum.FraxswapPair_evt_Swap - - method: source - value: mdex_bnb.MdexPair_evt_Swap - - method: source - value: platypus_finance_avalanche_c.Pool_evt_Swap - - method: source - value: uniswap_v2_ethereum.Pair_evt_Swap - - method: source - value: uniswap_v3_ethereum.Pair_evt_Swap - - method: source - value: uniswap_v3_optimism.Pair_evt_Swap - - method: source - value: prices.usd - - method: source - value: curvefi_avalanche_c.ren_evt_TokenExchangeUnderlying - - method: source - value: avalanche_c.transactions - - method: source - value: curvefi_avalanche_c.axlUSDCUSDC_evt_TokenExchange - - method: source - value: pancakeswap_v2_bnb.PancakeFactory_evt_PairCreated - - method: source - value: airswap_ethereum.swap_evt_Swap - - method: source - value: curvefi_avalanche_c.aave_v3_evt_TokenExchangeUnderlying - - method: source - value: swapr_ethereum.DXswapPair_evt_Swap - - method: source - value: curvefi_avalanche_c.AavePool_evt_TokenExchange - - method: source - value: shibaswap_ethereum.UniswapV2Factory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.FUSD_MIM_Factory_Pool_evt_TokenExchange - - method: source - value: kyber_avalanche_c.AggregationRouter_evt_Swapped - - method: source - value: ethereum.transactions - - method: source - value: curvefi_optimism.PoolFactory_evt_MetaPoolDeployed - - method: source - value: uniswap_v2_ethereum.Factory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.axlUSDC_USDC_e_evt_TokenExchange - - method: source - value: ethereum.logs - - method: source - value: bancornetwork_ethereum.BancorNetwork_v10_evt_Conversion - - method: source - value: curvefi_ethereum.y_swap_evt_TokenExchange - - method: source - value: curvefi_ethereum.hbtc_swap_evt_TokenExchange - - method: source - value: dodo_ethereum.DODO_evt_SellBaseToken - - method: source - value: kyber_avalanche_c.DMMFactory_evt_PoolCreated - - method: source - value: curvefi_avalanche_c.USDS_evt_TokenExchangeUnderlying - - method: source - value: arbitrum.transactions - - method: source - value: curvefi_ethereum.threepool_swap_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.avax3pool_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.frax_evt_TokenExchangeUnderlying - - method: source - value: clipper_ethereum.ClipperCaravelExchange_evt_Swapped - - method: source - value: curvefi_avalanche_c.Blizz_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.MIM_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.USD_coin_evt_TokenExchange diff --git a/scripts/nft_trades_selector.yml b/scripts/nft_trades_selector.yml deleted file mode 100644 index 4fd5c20dc03..00000000000 --- a/scripts/nft_trades_selector.yml +++ /dev/null @@ -1,520 +0,0 @@ -selectors: # These selectors are generated programmatically (validate_source_freshness_checks.py) and pasted in manually - - name: nft_trades_sources - definition: - union: - - method: source - value: delete_me - - method: source - value: swapr_ethereum.DXswapFactory_evt_PairCreated - - method: source - value: airswap_ethereum.Swap_v3_evt_Swap - - method: source - value: curvefi_avalanche_c.eEURjEUR_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.USDS_evt_TokenExchangeUnderlying - - method: source - value: dodo_ethereum.DODO_evt_BuyBaseToken - - method: source - value: woofi_avalanche_c.WooRouterV2_evt_WooRouterSwap - - method: source - value: wombat_bnb.qWOM_WOMPool_evt_Swap - - method: source - value: looksrare_ethereum.looksrareexchange_evt_takerbid - - method: source - value: sudo_amm_ethereum.LSSVMPairFactory_evt_ProtocolFeeMultiplierUpdate - - method: source - value: curvefi_ethereum.pax_swap_evt_TokenExchangeUnderlying - - method: source - value: zora_v3_ethereum.ReserveAuctionListingEth_evt_AuctionEnded - - method: source - value: zora_v3_ethereum.OffersV1_evt_ExchangeExecuted - - method: source - value: curvefi_avalanche_c.ren_evt_TokenExchange - - method: source - value: optimism_ethereum.L1ERC721Bridge_evt_ERC721BridgeInitiated - - method: source - value: erc1155_ethereum.evt_transferbatch - - method: source - value: superrare_ethereum.SuperRareBazaar_evt_AcceptOffer - - method: source - value: x2y2_ethereum.X2Y2_r1_evt_EvInventory - - method: source - value: uniswap_v3_polygon.factory_polygon_evt_PoolCreated - - method: source - value: curvefi_avalanche_c.USDCe_UST_evt_TokenExchange - - method: source - value: nomiswap_bnb.NomiswapPair_evt_Swap - - method: source - value: curvefi_avalanche_c.Topshelf_USDL_evt_TokenExchangeUnderlying - - method: source - value: fraxswap_polygon.FraxswapFactory_evt_PairCreated - - method: source - value: sushi_ethereum.Pair_evt_Swap - - method: source - value: curvefi_avalanche_c.ren_evt_TokenExchangeUnderlying - - method: source - value: gmx_avalanche_c.Router_evt_Swap - - method: source - value: foundation_ethereum.market_evt_ReserveAuctionCreated - - method: source - value: bancornetwork_ethereum.BancorNetwork_v7_evt_Conversion - - method: source - value: prices.usd - - method: source - value: foundation_ethereum.market_evt_BuyPriceAccepted - - method: source - value: opensea_ethereum.wyvernexchange_evt_ordersmatched - - method: source - value: zora_ethereum.Market_evt_BidFinalized - - method: source - value: element_ex_bnb.OrdersFeature_evt_ERC721BuyOrderFilled - - method: source - value: sudo_amm_ethereum.LSSVMPair_general_call_swapTokenForAnyNFTs - - method: source - value: sushiswap_gnosis.UniswapV2Factory_evt_PairCreated - - method: source - value: kyber_avalanche_c.DMMFactory_evt_PoolCreated - - method: source - value: curvefi_avalanche_c.frax_evt_TokenExchangeUnderlying - - method: source - value: zora_v3_ethereum.ReserveAuctionListingErc20_evt_RoyaltyPayout - - method: source - value: crodefi_ethereum.CroDefiSwapFactory_evt_PairCreated - - method: source - value: bancornetwork_ethereum.BancorNetwork_v10_evt_Conversion - - method: source - value: zora_v3_ethereum.ReserveAuctionFindersEth_evt_AuctionEnded - - method: source - value: zora_v3_ethereum.ReserveAuctionListingErc20_evt_AuctionEnded - - method: source - value: mstable_ethereum.Masset_evt_Swapped - - method: source - value: zora_ethereum.Media_evt_Transfer - - method: source - value: superrare_ethereum.SuperRareMarketAuction_evt_Sold - - method: source - value: zora_v3_ethereum.AsksV1_0_evt_RoyaltyPayout - - method: source - value: looksrare_ethereum.StrategyAnyItemFromCollectionForFixedPriceV1B_call_viewProtocolFee - - method: source - value: curvefi_ethereum.busd_swap_evt_TokenExchange - - method: source - value: ethereum.logs - - method: source - value: looksrare_ethereum.StrategyPrivateSale_call_viewProtocolFee - - method: source - value: bancornetwork_ethereum.BancorNetwork_v6_evt_Conversion - - method: source - value: hashflow_ethereum.pool_evt_trade - - method: source - value: seaport_ethereum.Seaport_evt_OrderFulfilled - - method: source - value: curvefi_ethereum.usdt_swap_evt_TokenExchangeUnderlying - - method: source - value: zora_v3_ethereum.OffersV1_evt_RoyaltyPayout - - method: source - value: curvefi_avalanche_c.MAI_evt_TokenExchange - - method: source - value: sushi_ethereum.Factory_evt_PairCreated - - method: source - value: archipelago_ethereum.ArchipelagoMarket_evt_Trade - - method: source - value: uniswap_v2_ethereum.Pair_evt_Swap - - method: source - value: element_ex_avalanche_c.OrdersFeature_evt_ERC721SellOrderFilled - - method: source - value: uniswap_v3_ethereum.Factory_evt_PoolCreated - - method: source - value: curvefi_optimism.MetaPoolSwap_evt_TokenExchangeUnderlying - - method: source - value: sushiswap_v2_avalanche_c.SushiV2Factory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.MAI_evt_TokenExchangeUnderlying - - method: source - value: looksrare_ethereum.looksrareexchange_evt_takerask - - method: source - value: curvefi_ethereum.ren_swap_evt_TokenExchange - - method: source - value: bancor3_ethereum.BancorNetwork_evt_TokensTraded - - method: source - value: babyswap_bnb.BabyFactory_evt_PairCreated - - method: source - value: wombat_bnb.HighCovRatioFeePool_evt_Swap - - method: source - value: wombat_bnb.WMX_WOM_Pool_evt_Swap - - method: source - value: mdex_bnb.MdexFactory_evt_PairCreated - - method: source - value: curvefi_ethereum.steth_swap_evt_TokenExchange - - method: source - value: curvefi_ethereum.compound_swap_evt_TokenExchange - - method: source - value: uniswap_v3_polygon.UniswapV3Pool_evt_Swap - - method: source - value: curvefi_avalanche_c.axlUSDC_USDC_e_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.Curve_DD2_Pool_evt_TokenExchange - - method: source - value: dodo_ethereum.DODO_evt_SellBaseToken - - method: source - value: polygon.transactions - - method: source - value: curvefi_avalanche_c.3pool_evt_TokenExchange - - method: source - value: curvefi_ethereum.usdt_swap_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.Blizz_evt_TokenExchange - - method: source - value: zora_v3_ethereum.AsksPrivateEth_evt_AskFilled - - method: source - value: curvefi_ethereum.threepool_swap_evt_TokenExchange - - method: source - value: zora_v3_ethereum.AsksPrivateEth_evt_RoyaltyPayout - - method: source - value: zora_v3_ethereum.ReserveAuctionCoreErc20_evt_RoyaltyPayout - - method: source - value: erc20_ethereum.evt_transfer - - method: source - value: curvefi_avalanche_c.ATriCryptoPool_evt_TokenExchange - - method: source - value: element_ex_ethereum.OrdersFeature_evt_ERC1155BuyOrderFilled - - method: source - value: uniswap_ethereum.Exchange_evt_TokenPurchase - - method: source - value: uniswap_v3_arbitrum.UniswapV3Factory_evt_PoolCreated - - method: source - value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchangeUnderlying - - method: source - value: pancakeswap_v2_bnb.PancakePair_evt_Swap - - method: source - value: woofi_bnb.WooRouterV2_evt_WooRouterSwap - - method: source - value: superrare_ethereum.SuperRare_evt_AcceptBid - - method: source - value: defiswap_ethereum.CroDefiSwapPair_evt_Swap - - method: source - value: wombat_bnb.DynamicPool_evt_Swap - - method: source - value: dodo_ethereum.DPP_evt_DODOSwap - - method: source - value: curvefi_avalanche_c.FUSDUSDC_evt_TokenExchange - - method: source - value: zora_v3_ethereum.ReserveAuctionFindersEth_evt_RoyaltyPayout - - method: source - value: zora_v3_ethereum.ReserveAuctionListingEth_evt_RoyaltyPayout - - method: source - value: curvefi_avalanche_c.YUSDPOOL_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.FUSD_MIM_Factory_Pool_evt_TokenExchange - - method: source - value: dfx_finance_ethereum.Curve_evt_Trade - - method: source - value: dodo_ethereum.DVM_evt_DODOSwap - - method: source - value: curvefi_avalanche_c.axlUSDCUSDC_evt_TokenExchange - - method: source - value: element_ex_bnb.OrdersFeature_evt_ERC1155BuyOrderFilled - - method: source - value: archipelago_ethereum.ArchipelagoMarket_evt_TokenTrade - - method: source - value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkTransfer - - method: source - value: element_ex_ethereum.OrdersFeature_evt_ERC1155SellOrderFilled - - method: source - value: sushiswap_v2_avalanche_c.Pair_evt_Swap - - method: source - value: sushiswap_gnosis.UniswapV2Pair_evt_Swap - - method: source - value: curvefi_avalanche_c.avax3pool_evt_TokenExchange - - method: source - value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkBought - - method: source - value: clipper_ethereum.ClipperVerifiedCaravelExchange_evt_Swapped - - method: source - value: shibaswap_ethereum.UniswapV2Pair_evt_Swap - - method: source - value: hashflow_ethereum.router_call_tradesinglehop - - method: source - value: izumi_bnb.iZiSwapPool_evt_Swap - - method: source - value: arbitrum.transactions - - method: source - value: fraxswap_ethereum.FraxswapFactory_evt_PairCreated - - method: source - value: woofi_bnb.WooRouter_evt_WooRouterSwap - - method: source - value: uniswap_v2_ethereum.Factory_evt_PairCreated - - method: source - value: clipper_ethereum.ClipperCaravelExchange_evt_Swapped - - method: source - value: dodo_ethereum.DODOV1Proxy04_evt_OrderHistory - - method: source - value: curvefi_avalanche_c.MIM_evt_TokenExchangeUnderlying - - method: source - value: fraxswap_polygon.FraxswapPair_evt_Swap - - method: source - value: sudo_amm_ethereum.LSSVMPair_general_evt_FeeUpdate - - method: source - value: curvefi_avalanche_c.arUSD_evt_TokenExchange - - method: source - value: avalanche_c.transactions - - method: source - value: looksrare_ethereum.StrategyAnyItemFromCollectionForFixedPrice_call_viewProtocolFee - - method: source - value: sudo_amm_ethereum.LSSVMPair_general_evt_AssetRecipientChange - - method: source - value: zora_v3_ethereum.ReserveAuctionFindersErc20_evt_RoyaltyPayout - - method: source - value: curvefi_ethereum.y_swap_evt_TokenExchangeUnderlying - - method: source - value: curvefi_optimism.PoolFactory_evt_MetaPoolDeployed - - method: source - value: archipelago_ethereum.ArchipelagoMarket_evt_RoyaltyPayment - - method: source - value: fraxswap_avalanche_c.FraxswapPair_evt_Swap - - method: source - value: sudo_amm_ethereum.LSSVMPairFactory_call_createPairETH - - method: source - value: uniswap_v3_optimism.Pair_evt_Swap - - method: source - value: uniswap_v3_arbitrum.Pair_evt_Swap - - method: source - value: curvefi_avalanche_c.deBridge_USDC_evt_TokenExchangeUnderlying - - method: source - value: shibaswap_ethereum.UniswapV2Factory_evt_PairCreated - - method: source - value: superrare_ethereum.SuperRareBazaar_evt_AuctionSettled - - method: source - value: element_ex_ethereum.OrdersFeature_evt_ERC721BuyOrderFilled - - method: source - value: bancornetwork_ethereum.BancorNetwork_v8_evt_Conversion - - method: source - value: babyswap_bnb.BabyPair_evt_Swap - - method: source - value: zora_v3_ethereum.ReserveAuctionFindersErc20_evt_AuctionEnded - - method: source - value: sudo_amm_ethereum.LSSVMPair_general_call_swapTokenForSpecificNFTs - - method: source - value: erc721_ethereum.evt_transfer - - method: source - value: ethereum.transactions - - method: source - value: superrare_ethereum.SuperRareMarketAuction_evt_AcceptBid - - method: source - value: curvefi_ethereum.susd_evt_TokenExchange - - method: source - value: curvefi_optimism.StableSwap_call_coins - - method: source - value: erc1155_ethereum.evt_transfersingle - - method: source - value: looksrare_ethereum.looksrareexchange_evt_royaltypayment - - method: source - value: gmx_arbitrum.Router_evt_Swap - - method: source - value: zigzag_test_v6_arbitrum.zigzag_settelment_call_matchOrders - - method: source - value: hashflow_avalanche_c.Pool_evt_Trade - - method: source - value: airswap_ethereum.swap_evt_Swap - - method: source - value: curvefi_ethereum.compound_v2_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.MIM_evt_TokenExchange - - method: source - value: hashflow_avalanche_c.Pool_evt_LzTrade - - method: source - value: blur_ethereum.BlurExchange_evt_OrdersMatched - - method: source - value: zora_v3_ethereum.AsksV1_1_evt_RoyaltyPayout - - method: source - value: zora_v3_ethereum.AsksCoreEth_evt_AskFilled - - method: source - value: curvefi_ethereum.susd_swap_evt_TokenExchangeUnderlying - - method: source - value: dodo_ethereum.DODOV2Proxy02_evt_OrderHistory - - method: source - value: woofi_bnb.WooPP_evt_WooSwap - - method: source - value: woofi_avalanche_c.WooPP_evt_WooSwap - - method: source - value: foundation_ethereum.market_evt_OfferAccepted - - method: source - value: velodrome_optimism.Pair_evt_Swap - - method: source - value: element_ex_bnb.OrdersFeature_evt_ERC1155SellOrderFilled - - method: source - value: fraxswap_avalanche_c.FraxswapFactory_evt_PairCreated - - method: source - value: pancakeswap_v2_bnb.PancakeFactory_evt_PairCreated - - method: source - value: trader_joe_avalanche_c.JoePair_evt_Swap - - method: source - value: trader_joe_avalanche_c.JoeFactory_evt_PairCreated - - method: source - value: looksrare_ethereum.StrategyStandardSaleForFixedPrice_call_viewProtocolFee - - method: source - value: curvefi_avalanche_c.NXUSDaV3CRV_evt_TokenExchangeUnderlying - - method: source - value: element_ex_bnb.OrdersFeature_evt_ERC721SellOrderFilled - - method: source - value: mstable_ethereum.FeederPool_evt_Swapped - - method: source - value: kyber_avalanche_c.AggregationRouter_evt_Swapped - - method: source - value: fraxswap_ethereum.FraxswapPair_evt_Swap - - method: source - value: curvefi_ethereum.compound_evt_TokenExchange - - method: source - value: nomiswap_bnb.NomiswapFactory_evt_PairCreated - - method: source - value: zora_v3_ethereum.ReserveAuctionCoreEth_evt_AuctionEnded - - method: source - value: optimism.transactions - - method: source - value: superrare_ethereum.SuperRare_evt_Sold - - method: source - value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkBidEntered - - method: source - value: zora_v3_ethereum.AsksV1_1_evt_ExchangeExecuted - - method: source - value: curvefi_avalanche_c.3poolV2_evt_TokenExchange - - method: source - value: swapr_ethereum.DXswapPair_evt_Swap - - method: source - value: clipper_ethereum.ClipperExchangeInterface_evt_Swapped - - method: source - value: curvefi_avalanche_c.aave_v3_evt_TokenExchangeUnderlying - - method: source - value: element_ex_avalanche_c.OrdersFeature_evt_ERC1155BuyOrderFilled - - method: source - value: curvefi_avalanche_c.AavePool_evt_TokenExchangeUnderlying - - method: source - value: x2y2_ethereum.X2Y2_r1_evt_EvProfit - - method: source - value: bancornetwork_ethereum.BancorNetwork_v9_evt_Conversion - - method: source - value: fraxswap_bnb.FraxswapPair_evt_Swap - - method: source - value: curvefi_ethereum.tricrypto2_swap_evt_TokenExchange - - method: source - value: kyber_avalanche_c.Elastic_Pool_evt_swap - - method: source - value: curvefi_ethereum.hbtc_swap_evt_TokenExchange - - method: source - value: optimism.logs - - method: source - value: airswap_ethereum.Light_evt_Swap - - method: source - value: curvefi_ethereum.compound_swap_evt_TokenExchangeUnderlying - - method: source - value: cryptopunks_ethereum.CryptoPunksMarket_evt_Transfer - - method: source - value: curvefi_ethereum.sbtc_swap_evt_TokenExchange - - method: source - value: uniswap_ethereum.Exchange_evt_EthPurchase - - method: source - value: foundation_ethereum.market_evt_PrivateSaleFinalized - - method: source - value: zora_v3_ethereum.ReserveAuctionCoreErc20_evt_AuctionEnded - - method: source - value: looksrare_ethereum.StrategyStandardSaleForFixedPriceV1B_call_viewProtocolFee - - method: source - value: curvefi_ethereum.pax_swap_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.USD_coin_evt_TokenExchange - - method: source - value: element_ex_avalanche_c.OrdersFeature_evt_ERC721BuyOrderFilled - - method: source - value: curvefi_ethereum.tricrypto_swap_evt_TokenExchange - - method: source - value: velodrome_optimism.PairFactory_evt_PairCreated - - method: source - value: zora_v3_ethereum.AsksCoreEth_evt_RoyaltyPayout - - method: source - value: zora_ethereum.AuctionHouse_evt_AuctionEnded - - method: source - value: kyber_avalanche_c.MetaAggregationRouter_evt_Swapped - - method: source - value: curvefi_avalanche_c.AavePool_evt_TokenExchange - - method: source - value: curvefi_optimism.StableSwap_evt_TokenExchange - - method: source - value: sudo_amm_ethereum.LSSVMPair_general_call_swapNFTsForToken - - method: source - value: bnb.transactions - - method: source - value: erc20_optimism.evt_transfer - - method: source - value: curvefi_avalanche_c.L2StableSwap_evt_TokenExchange - - method: source - value: platypus_finance_avalanche_c.Pool_evt_Swap - - method: source - value: kyber_avalanche_c.DMMPool_evt_Swap - - method: source - value: curvefi_avalanche_c.frax_evt_TokenExchange - - method: source - value: wombat_bnb.mWOM_Pool_evt_Swap - - method: source - value: biswap_bnb.BiswapPair_evt_Swap - - method: source - value: foundation_ethereum.market_evt_ReserveAuctionFinalized - - method: source - value: uniswap_v3_ethereum.Pair_evt_Swap - - method: source - value: zora_v3_ethereum.ReserveAuctionCoreEth_evt_RoyaltyPayout - - method: source - value: biswap_bnb.BiswapFactory_evt_PairCreated - - method: source - value: gnosis.transactions - - method: source - value: wombat_bnb.Pool_evt_Swap - - method: source - value: ethereum.traces - - method: source - value: opensea_ethereum.wyvernexchange_call_atomicmatch_ - - method: source - value: superrare_ethereum.SuperRareBazaar_evt_Sold - - method: source - value: curvefi_optimism.PoolFactory_call_deploy_plain_pool - - method: source - value: kyber_avalanche_c.Elastic_Factory_evt_PoolCreated - - method: source - value: curvefi_ethereum.busd_swap_evt_TokenExchangeUnderlying - - method: source - value: curvefi_ethereum.y_swap_evt_TokenExchange - - method: source - value: zora_v3_ethereum.AsksV1_0_evt_ExchangeExecuted - - method: source - value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchangeUnderlying - - method: source - value: curvefi_ethereum.susd_evt_TokenExchangeUnderlying - - method: source - value: dodo_ethereum.DODOV1Proxy01_evt_OrderHistory - - method: source - value: curvefi_avalanche_c.agEURjEUR_evt_TokenExchange - - method: source - value: curvefi_ethereum.susd_swap_evt_TokenExchange - - method: source - value: mdex_bnb.MdexPair_evt_Swap - - method: source - value: uniswap_ethereum.Factory_evt_NewExchange - - method: source - value: curvefi_ethereum.compound_v2_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchange - - method: source - value: element_ex_avalanche_c.OrdersFeature_evt_ERC1155SellOrderFilled - - method: source - value: element_ex_ethereum.OrdersFeature_evt_ERC721SellOrderFilled - - method: source - value: fraxswap_bnb.FraxswapFactory_evt_PairCreated - - method: source - value: dodo_ethereum.DSP_evt_DODOSwap - - method: source - value: solana.transactions - - method: source - value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkBidWithdrawn - - method: source - value: uniswap_v3_optimism.factory_evt_poolcreated - - method: source - value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchange diff --git a/scripts/selector_template.yml b/scripts/selector_template.yml deleted file mode 100644 index f4e4b844449..00000000000 --- a/scripts/selector_template.yml +++ /dev/null @@ -1,6 +0,0 @@ -selectors: # These selectors are generated programmatically (validate_source_freshness_checks.py) and pasted in manually -- name: test - definition: - union: - - method: source - value: delete_me \ No newline at end of file diff --git a/scripts/validate_source_freshness_checks.py b/scripts/validate_source_freshness_checks.py index 0fe0c15ec17..8ddb17e1881 100644 --- a/scripts/validate_source_freshness_checks.py +++ b/scripts/validate_source_freshness_checks.py @@ -33,23 +33,6 @@ def __init__(self, model, manifest): else: return - def generate_selector(self): - """ - Generates a file in the scripts folder. Double check the contents and copy the models new selector - to the bottom of selectors.yml in the project root dir. - :return: - """ - yaml = YAML() - self.selector = yaml.load(Path("selector_template.yml").read_text()) - model_slug = self.model.split('.')[-1] - self.selector['selectors'][0]['name'] = f"{model_slug}_sources" - for source in list(set(self.source_node_dependencies)): - source_slug = f"{source.split('.')[-2]}.{source.split('.')[-1]}" - yaml.indent(mapping=2, sequence=4, offset=2) - self.selector['selectors'][0]['definition']['union'].append({'method': 'source', 'value': source_slug}) - yaml.dump(self.selector, Path(f"{model_slug}_selector.yml")) - - def missing_freshness_checks(sources, manifest, check_type='warn'): sources = list(set(sources)) source_defintions = {source: manifest['sources'][source] for source in sources} @@ -69,7 +52,6 @@ def __init__(self, sources_missing_checks): manifest = json.load(json_file) sources_cls = Sources(model=f'model.spellbook.{args.model}', manifest=manifest) -sources_cls.generate_selector() sources = sources_cls.source_node_dependencies sources_missing_checks = missing_freshness_checks(sources, manifest) assert len(sources_missing_checks) == 0, MissingSourceFreshnessChecks(sources_missing_checks) From ef1fe0f44b1c1d18c3e3dd58a85c5de3b177f7ba Mon Sep 17 00:00:00 2001 From: Meghan Date: Wed, 28 Dec 2022 15:50:56 -0500 Subject: [PATCH 5/7] remove selector --- selectors.yml | 868 -------------------------------------------------- 1 file changed, 868 deletions(-) delete mode 100644 selectors.yml diff --git a/selectors.yml b/selectors.yml deleted file mode 100644 index 4c37652e65d..00000000000 --- a/selectors.yml +++ /dev/null @@ -1,868 +0,0 @@ -selectors: # These selectors are generated programmatically (validate_source_freshness_checks.py) and pasted in manually - - name: nft_trades_sources - definition: - union: - - method: source - value: prices.usd - - method: source - value: erc1155_ethereum.evt_transferbatch - - method: source - value: element_ex_ethereum.OrdersFeature_evt_ERC721BuyOrderFilled - - method: source - value: optimism.logs - - method: source - value: curvefi_avalanche_c.Blizz_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.USDS_evt_TokenExchangeUnderlying - - method: source - value: wombat_bnb.DynamicPool_evt_Swap - - method: source - value: dodo_ethereum.DSP_evt_DODOSwap - - method: source - value: mdex_bnb.MdexPair_evt_Swap - - method: source - value: curvefi_avalanche_c.NXUSDaV3CRV_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchange - - method: source - value: zora_v3_ethereum.ReserveAuctionListingEth_evt_AuctionEnded - - method: source - value: curvefi_ethereum.y_swap_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.frax_evt_TokenExchange - - method: source - value: zora_v3_ethereum.AsksV1_1_evt_ExchangeExecuted - - method: source - value: superrare_ethereum.SuperRare_evt_Sold - - method: source - value: woofi_bnb.WooPP_evt_WooSwap - - method: source - value: blur_ethereum.BlurExchange_evt_OrdersMatched - - method: source - value: seaport_ethereum.Seaport_evt_OrderFulfilled - - method: source - value: solana.transactions - - method: source - value: superrare_ethereum.SuperRareBazaar_evt_AcceptOffer - - method: source - value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.frax_evt_TokenExchangeUnderlying - - method: source - value: uniswap_v3_polygon.UniswapV3Pool_evt_Swap - - method: source - value: curvefi_optimism.StableSwap_call_coins - - method: source - value: fraxswap_ethereum.FraxswapFactory_evt_PairCreated - - method: source - value: zora_v3_ethereum.AsksCoreEth_evt_RoyaltyPayout - - method: source - value: curvefi_ethereum.compound_v2_evt_TokenExchangeUnderlying - - method: source - value: uniswap_v3_optimism.factory_evt_poolcreated - - method: source - value: woofi_bnb.WooRouterV2_evt_WooRouterSwap - - method: source - value: wombat_bnb.HighCovRatioFeePool_evt_Swap - - method: source - value: sudo_amm_ethereum.LSSVMPair_general_call_swapNFTsForToken - - method: source - value: zora_v3_ethereum.OffersV1_evt_ExchangeExecuted - - method: source - value: fraxswap_avalanche_c.FraxswapFactory_evt_PairCreated - - method: source - value: zora_v3_ethereum.AsksCoreEth_evt_AskFilled - - method: source - value: looksrare_ethereum.looksrareexchange_evt_takerask - - method: source - value: curvefi_ethereum.hbtc_swap_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.AavePool_evt_TokenExchange - - method: source - value: platypus_finance_avalanche_c.Pool_evt_Swap - - method: source - value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkBought - - method: source - value: element_ex_avalanche_c.OrdersFeature_evt_ERC1155BuyOrderFilled - - method: source - value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchangeUnderlying - - method: source - value: curvefi_ethereum.tricrypto2_swap_evt_TokenExchange - - method: source - value: airswap_ethereum.swap_evt_Swap - - method: source - value: zora_v3_ethereum.ReserveAuctionListingErc20_evt_RoyaltyPayout - - method: source - value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchangeUnderlying - - method: source - value: foundation_ethereum.market_evt_ReserveAuctionCreated - - method: source - value: curvefi_ethereum.susd_evt_TokenExchangeUnderlying - - method: source - value: element_ex_ethereum.OrdersFeature_evt_ERC721SellOrderFilled - - method: source - value: hashflow_avalanche_c.Pool_evt_LzTrade - - method: source - value: airswap_ethereum.Swap_v3_evt_Swap - - method: source - value: foundation_ethereum.market_evt_BuyPriceAccepted - - method: source - value: opensea_ethereum.wyvernexchange_evt_ordersmatched - - method: source - value: wombat_bnb.WMX_WOM_Pool_evt_Swap - - method: source - value: uniswap_v2_ethereum.Pair_evt_Swap - - method: source - value: mdex_bnb.MdexFactory_evt_PairCreated - - method: source - value: pancakeswap_v2_bnb.PancakePair_evt_Swap - - method: source - value: curvefi_avalanche_c.axlUSDC_USDC_e_evt_TokenExchange - - method: source - value: dodo_ethereum.DODOV1Proxy01_evt_OrderHistory - - method: source - value: curvefi_ethereum.susd_swap_evt_TokenExchangeUnderlying - - method: source - value: gmx_avalanche_c.Router_evt_Swap - - method: source - value: arbitrum.transactions - - method: source - value: kyber_avalanche_c.MetaAggregationRouter_evt_Swapped - - method: source - value: element_ex_bnb.OrdersFeature_evt_ERC1155BuyOrderFilled - - method: source - value: curvefi_ethereum.usdt_swap_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.ren_evt_TokenExchange - - method: source - value: fraxswap_avalanche_c.FraxswapPair_evt_Swap - - method: source - value: foundation_ethereum.market_evt_OfferAccepted - - method: source - value: zigzag_test_v6_arbitrum.zigzag_settelment_call_matchOrders - - method: source - value: biswap_bnb.BiswapFactory_evt_PairCreated - - method: source - value: bnb.transactions - - method: source - value: sudo_amm_ethereum.LSSVMPair_general_call_swapTokenForSpecificNFTs - - method: source - value: curvefi_ethereum.sbtc_swap_evt_TokenExchange - - method: source - value: uniswap_ethereum.Exchange_evt_TokenPurchase - - method: source - value: curvefi_ethereum.pax_swap_evt_TokenExchangeUnderlying - - method: source - value: polygon.transactions - - method: source - value: curvefi_avalanche_c.ren_evt_TokenExchangeUnderlying - - method: source - value: dodo_ethereum.DODO_evt_BuyBaseToken - - method: source - value: uniswap_v3_arbitrum.Pair_evt_Swap - - method: source - value: zora_ethereum.Media_evt_Transfer - - method: source - value: foundation_ethereum.market_evt_PrivateSaleFinalized - - method: source - value: nomiswap_bnb.NomiswapFactory_evt_PairCreated - - method: source - value: uniswap_v3_optimism.Pair_evt_Swap - - method: source - value: gmx_arbitrum.Router_evt_Swap - - method: source - value: curvefi_avalanche_c.Topshelf_USDL_evt_TokenExchangeUnderlying - - method: source - value: bancornetwork_ethereum.BancorNetwork_v8_evt_Conversion - - method: source - value: zora_v3_ethereum.ReserveAuctionListingEth_evt_RoyaltyPayout - - method: source - value: looksrare_ethereum.StrategyAnyItemFromCollectionForFixedPrice_call_viewProtocolFee - - method: source - value: kyber_avalanche_c.DMMFactory_evt_PoolCreated - - method: source - value: superrare_ethereum.SuperRare_evt_AcceptBid - - method: source - value: curvefi_ethereum.threepool_swap_evt_TokenExchange - - method: source - value: wombat_bnb.qWOM_WOMPool_evt_Swap - - method: source - value: curvefi_ethereum.susd_swap_evt_TokenExchange - - method: source - value: element_ex_avalanche_c.OrdersFeature_evt_ERC1155SellOrderFilled - - method: source - value: erc1155_ethereum.evt_transfersingle - - method: source - value: mstable_ethereum.Masset_evt_Swapped - - method: source - value: foundation_ethereum.market_evt_ReserveAuctionFinalized - - method: source - value: ethereum.transactions - - method: source - value: curvefi_ethereum.compound_swap_evt_TokenExchange - - method: source - value: bancornetwork_ethereum.BancorNetwork_v9_evt_Conversion - - method: source - value: x2y2_ethereum.X2Y2_r1_evt_EvProfit - - method: source - value: sudo_amm_ethereum.LSSVMPairFactory_evt_ProtocolFeeMultiplierUpdate - - method: source - value: curvefi_avalanche_c.3poolV2_evt_TokenExchange - - method: source - value: swapr_ethereum.DXswapPair_evt_Swap - - method: source - value: sudo_amm_ethereum.LSSVMPair_general_evt_FeeUpdate - - method: source - value: zora_v3_ethereum.AsksV1_1_evt_RoyaltyPayout - - method: source - value: element_ex_ethereum.OrdersFeature_evt_ERC1155SellOrderFilled - - method: source - value: dodo_ethereum.DODOV2Proxy02_evt_OrderHistory - - method: source - value: kyber_avalanche_c.DMMPool_evt_Swap - - method: source - value: dodo_ethereum.DPP_evt_DODOSwap - - method: source - value: looksrare_ethereum.looksrareexchange_evt_royaltypayment - - method: source - value: curvefi_avalanche_c.YUSDPOOL_evt_TokenExchange - - method: source - value: erc20_ethereum.evt_transfer - - method: source - value: curvefi_avalanche_c.AavePool_evt_TokenExchangeUnderlying - - method: source - value: avalanche_c.transactions - - method: source - value: curvefi_ethereum.pax_swap_evt_TokenExchange - - method: source - value: sushiswap_v2_avalanche_c.Pair_evt_Swap - - method: source - value: ethereum.traces - - method: source - value: looksrare_ethereum.StrategyStandardSaleForFixedPrice_call_viewProtocolFee - - method: source - value: element_ex_avalanche_c.OrdersFeature_evt_ERC721SellOrderFilled - - method: source - value: erc721_ethereum.evt_transfer - - method: source - value: sushiswap_gnosis.UniswapV2Pair_evt_Swap - - method: source - value: swapr_ethereum.DXswapFactory_evt_PairCreated - - method: source - value: superrare_ethereum.SuperRareBazaar_evt_AuctionSettled - - method: source - value: wombat_bnb.mWOM_Pool_evt_Swap - - method: source - value: curvefi_avalanche_c.ATriCryptoPool_evt_TokenExchange - - method: source - value: fraxswap_polygon.FraxswapPair_evt_Swap - - method: source - value: sushi_ethereum.Pair_evt_Swap - - method: source - value: superrare_ethereum.SuperRareMarketAuction_evt_AcceptBid - - method: source - value: wombat_bnb.Pool_evt_Swap - - method: source - value: uniswap_v3_polygon.factory_polygon_evt_PoolCreated - - method: source - value: kyber_avalanche_c.AggregationRouter_evt_Swapped - - method: source - value: uniswap_ethereum.Factory_evt_NewExchange - - method: source - value: element_ex_ethereum.OrdersFeature_evt_ERC1155BuyOrderFilled - - method: source - value: curvefi_avalanche_c.deBridge_USDC_evt_TokenExchangeUnderlying - - method: source - value: velodrome_optimism.PairFactory_evt_PairCreated - - method: source - value: curvefi_ethereum.ren_swap_evt_TokenExchange - - method: source - value: looksrare_ethereum.StrategyPrivateSale_call_viewProtocolFee - - method: source - value: woofi_bnb.WooRouter_evt_WooRouterSwap - - method: source - value: curvefi_ethereum.y_swap_evt_TokenExchange - - method: source - value: zora_v3_ethereum.OffersV1_evt_RoyaltyPayout - - method: source - value: element_ex_bnb.OrdersFeature_evt_ERC721SellOrderFilled - - method: source - value: looksrare_ethereum.StrategyAnyItemFromCollectionForFixedPriceV1B_call_viewProtocolFee - - method: source - value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkBidWithdrawn - - method: source - value: curvefi_ethereum.busd_swap_evt_TokenExchange - - method: source - value: hashflow_ethereum.router_call_tradesinglehop - - method: source - value: curvefi_avalanche_c.USDCe_UST_evt_TokenExchange - - method: source - value: superrare_ethereum.SuperRareBazaar_evt_Sold - - method: source - value: curvefi_avalanche_c.avax3pool_evt_TokenExchange - - method: source - value: fraxswap_bnb.FraxswapPair_evt_Swap - - method: source - value: element_ex_bnb.OrdersFeature_evt_ERC1155SellOrderFilled - - method: source - value: fraxswap_polygon.FraxswapFactory_evt_PairCreated - - method: source - value: curvefi_optimism.PoolFactory_call_deploy_plain_pool - - method: source - value: clipper_ethereum.ClipperCaravelExchange_evt_Swapped - - method: source - value: babyswap_bnb.BabyPair_evt_Swap - - method: source - value: zora_v3_ethereum.ReserveAuctionListingErc20_evt_AuctionEnded - - method: source - value: element_ex_bnb.OrdersFeature_evt_ERC721BuyOrderFilled - - method: source - value: curvefi_avalanche_c.axlUSDCUSDC_evt_TokenExchange - - method: source - value: bancornetwork_ethereum.BancorNetwork_v10_evt_Conversion - - method: source - value: nomiswap_bnb.NomiswapPair_evt_Swap - - method: source - value: sushiswap_gnosis.UniswapV2Factory_evt_PairCreated - - method: source - value: zora_v3_ethereum.AsksV1_0_evt_ExchangeExecuted - - method: source - value: babyswap_bnb.BabyFactory_evt_PairCreated - - method: source - value: dfx_finance_ethereum.Curve_evt_Trade - - method: source - value: shibaswap_ethereum.UniswapV2Pair_evt_Swap - - method: source - value: archipelago_ethereum.ArchipelagoMarket_evt_TokenTrade - - method: source - value: zora_v3_ethereum.AsksPrivateEth_evt_RoyaltyPayout - - method: source - value: uniswap_v3_arbitrum.UniswapV3Factory_evt_PoolCreated - - method: source - value: curvefi_avalanche_c.MAI_evt_TokenExchangeUnderlying - - method: source - value: curvefi_ethereum.compound_swap_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.aave_v3_evt_TokenExchangeUnderlying - - method: source - value: ethereum.logs - - method: source - value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkTransfer - - method: source - value: curvefi_avalanche_c.MIM_evt_TokenExchange - - method: source - value: kyber_avalanche_c.Elastic_Factory_evt_PoolCreated - - method: source - value: sushi_ethereum.Factory_evt_PairCreated - - method: source - value: bancornetwork_ethereum.BancorNetwork_v6_evt_Conversion - - method: source - value: curvefi_avalanche_c.USD_coin_evt_TokenExchange - - method: source - value: erc20_optimism.evt_transfer - - method: source - value: curvefi_ethereum.usdt_swap_evt_TokenExchange - - method: source - value: uniswap_ethereum.Exchange_evt_EthPurchase - - method: source - value: cryptopunks_ethereum.CryptoPunksMarket_evt_PunkBidEntered - - method: source - value: curvefi_avalanche_c.eEURjEUR_evt_TokenExchange - - method: source - value: pancakeswap_v2_bnb.PancakeFactory_evt_PairCreated - - method: source - value: uniswap_v3_ethereum.Pair_evt_Swap - - method: source - value: dodo_ethereum.DODO_evt_SellBaseToken - - method: source - value: zora_v3_ethereum.ReserveAuctionFindersErc20_evt_AuctionEnded - - method: source - value: curvefi_optimism.PoolFactory_evt_MetaPoolDeployed - - method: source - value: mstable_ethereum.FeederPool_evt_Swapped - - method: source - value: optimism_ethereum.L1ERC721Bridge_evt_ERC721BridgeInitiated - - method: source - value: bancornetwork_ethereum.BancorNetwork_v7_evt_Conversion - - method: source - value: sudo_amm_ethereum.LSSVMPair_general_evt_AssetRecipientChange - - method: source - value: uniswap_v2_ethereum.Factory_evt_PairCreated - - method: source - value: looksrare_ethereum.looksrareexchange_evt_takerbid - - method: source - value: curvefi_ethereum.susd_evt_TokenExchange - - method: source - value: velodrome_optimism.Pair_evt_Swap - - method: source - value: fraxswap_bnb.FraxswapFactory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.3pool_evt_TokenExchange - - method: source - value: sushiswap_v2_avalanche_c.SushiV2Factory_evt_PairCreated - - method: source - value: curvefi_ethereum.compound_evt_TokenExchange - - method: source - value: zora_ethereum.AuctionHouse_evt_AuctionEnded - - method: source - value: hashflow_ethereum.pool_evt_trade - - method: source - value: optimism.transactions - - method: source - value: crodefi_ethereum.CroDefiSwapFactory_evt_PairCreated - - method: source - value: kyber_avalanche_c.Elastic_Pool_evt_swap - - method: source - value: curvefi_avalanche_c.MIM_evt_TokenExchangeUnderlying - - method: source - value: dodo_ethereum.DODOV1Proxy04_evt_OrderHistory - - method: source - value: zora_v3_ethereum.ReserveAuctionCoreErc20_evt_RoyaltyPayout - - method: source - value: woofi_avalanche_c.WooRouterV2_evt_WooRouterSwap - - method: source - value: zora_v3_ethereum.ReserveAuctionFindersErc20_evt_RoyaltyPayout - - method: source - value: sudo_amm_ethereum.LSSVMPairFactory_call_createPairETH - - method: source - value: gnosis.transactions - - method: source - value: clipper_ethereum.ClipperExchangeInterface_evt_Swapped - - method: source - value: izumi_bnb.iZiSwapPool_evt_Swap - - method: source - value: curvefi_avalanche_c.FUSD_MIM_Factory_Pool_evt_TokenExchange - - method: source - value: curvefi_ethereum.compound_v2_evt_TokenExchange - - method: source - value: opensea_ethereum.wyvernexchange_call_atomicmatch_ - - method: source - value: shibaswap_ethereum.UniswapV2Factory_evt_PairCreated - - method: source - value: zora_v3_ethereum.ReserveAuctionCoreEth_evt_RoyaltyPayout - - method: source - value: zora_ethereum.Market_evt_BidFinalized - - method: source - value: curvefi_avalanche_c.FUSDUSDC_evt_TokenExchange - - method: source - value: biswap_bnb.BiswapPair_evt_Swap - - method: source - value: looksrare_ethereum.StrategyStandardSaleForFixedPriceV1B_call_viewProtocolFee - - method: source - value: curvefi_optimism.MetaPoolSwap_evt_TokenExchangeUnderlying - - method: source - value: sudo_amm_ethereum.LSSVMPair_general_call_swapTokenForAnyNFTs - - method: source - value: curvefi_ethereum.steth_swap_evt_TokenExchange - - method: source - value: defiswap_ethereum.CroDefiSwapPair_evt_Swap - - method: source - value: trader_joe_avalanche_c.JoePair_evt_Swap - - method: source - value: fraxswap_ethereum.FraxswapPair_evt_Swap - - method: source - value: archipelago_ethereum.ArchipelagoMarket_evt_RoyaltyPayment - - method: source - value: zora_v3_ethereum.ReserveAuctionCoreErc20_evt_AuctionEnded - - method: source - value: element_ex_avalanche_c.OrdersFeature_evt_ERC721BuyOrderFilled - - method: source - value: trader_joe_avalanche_c.JoeFactory_evt_PairCreated - - method: source - value: dodo_ethereum.DVM_evt_DODOSwap - - method: source - value: clipper_ethereum.ClipperVerifiedCaravelExchange_evt_Swapped - - method: source - value: curvefi_avalanche_c.L2StableSwap_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.MAI_evt_TokenExchange - - method: source - value: curvefi_optimism.StableSwap_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.arUSD_evt_TokenExchange - - method: source - value: archipelago_ethereum.ArchipelagoMarket_evt_Trade - - method: source - value: curvefi_avalanche_c.agEURjEUR_evt_TokenExchange - - method: source - value: airswap_ethereum.Light_evt_Swap - - method: source - value: cryptopunks_ethereum.CryptoPunksMarket_evt_Transfer - - method: source - value: zora_v3_ethereum.ReserveAuctionFindersEth_evt_RoyaltyPayout - - method: source - value: zora_v3_ethereum.AsksPrivateEth_evt_AskFilled - - method: source - value: bancor3_ethereum.BancorNetwork_evt_TokensTraded - - method: source - value: zora_v3_ethereum.AsksV1_0_evt_RoyaltyPayout - - method: source - value: x2y2_ethereum.X2Y2_r1_evt_EvInventory - - method: source - value: zora_v3_ethereum.ReserveAuctionFindersEth_evt_AuctionEnded - - method: source - value: curvefi_avalanche_c.Curve_DD2_Pool_evt_TokenExchange - - method: source - value: uniswap_v3_ethereum.Factory_evt_PoolCreated - - method: source - value: superrare_ethereum.SuperRareMarketAuction_evt_Sold - - method: source - value: curvefi_ethereum.busd_swap_evt_TokenExchangeUnderlying - - method: source - value: curvefi_ethereum.tricrypto_swap_evt_TokenExchange - - method: source - value: hashflow_avalanche_c.Pool_evt_Trade - - method: source - value: zora_v3_ethereum.ReserveAuctionCoreEth_evt_AuctionEnded - - method: source - value: woofi_avalanche_c.WooPP_evt_WooSwap - - - name: dex_trades_sources - definition: - union: - - method: source - value: curvefi_avalanche_c.frax_evt_TokenExchange - - method: source - value: woofi_bnb.WooPP_evt_WooSwap - - method: source - value: curvefi_ethereum.compound_v2_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.NXUSDaV3CRV_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.AavePool_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.eEURjEUR_evt_TokenExchange - - method: source - value: fraxswap_bnb.FraxswapPair_evt_Swap - - method: source - value: wombat_bnb.DynamicPool_evt_Swap - - method: source - value: curvefi_avalanche_c.ATriCryptoPool_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.arUSD_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchangeUnderlying - - method: source - value: trader_joe_avalanche_c.JoeFactory_evt_PairCreated - - method: source - value: bancornetwork_ethereum.BancorNetwork_v9_evt_Conversion - - method: source - value: curvefi_ethereum.usdt_swap_evt_TokenExchangeUnderlying - - method: source - value: bancor3_ethereum.BancorNetwork_evt_TokensTraded - - method: source - value: kyber_avalanche_c.MetaAggregationRouter_evt_Swapped - - method: source - value: bancornetwork_ethereum.BancorNetwork_v7_evt_Conversion - - method: source - value: uniswap_v3_polygon.factory_polygon_evt_PoolCreated - - method: source - value: bnb.transactions - - method: source - value: uniswap_v3_arbitrum.Pair_evt_Swap - - method: source - value: sushiswap_gnosis.UniswapV2Pair_evt_Swap - - method: source - value: gmx_avalanche_c.Router_evt_Swap - - method: source - value: kyber_avalanche_c.DMMPool_evt_Swap - - method: source - value: crodefi_ethereum.CroDefiSwapFactory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.USDCe_UST_evt_TokenExchange - - method: source - value: fraxswap_avalanche_c.FraxswapPair_evt_Swap - - method: source - value: curvefi_avalanche_c.Topshelf_USDL_evt_TokenExchangeUnderlying - - method: source - value: fraxswap_ethereum.FraxswapFactory_evt_PairCreated - - method: source - value: curvefi_ethereum.ren_swap_evt_TokenExchange - - method: source - value: fraxswap_polygon.FraxswapPair_evt_Swap - - method: source - value: bancornetwork_ethereum.BancorNetwork_v8_evt_Conversion - - method: source - value: curvefi_avalanche_c.deBridge_USDC_evt_TokenExchangeUnderlying - - method: source - value: dodo_ethereum.DODO_evt_BuyBaseToken - - method: source - value: woofi_bnb.WooRouter_evt_WooRouterSwap - - method: source - value: defiswap_ethereum.CroDefiSwapPair_evt_Swap - - method: source - value: babyswap_bnb.BabyFactory_evt_PairCreated - - method: source - value: uniswap_v3_optimism.factory_evt_poolcreated - - method: source - value: clipper_ethereum.ClipperVerifiedCaravelExchange_evt_Swapped - - method: source - value: wombat_bnb.WMX_WOM_Pool_evt_Swap - - method: source - value: biswap_bnb.BiswapPair_evt_Swap - - method: source - value: curvefi_optimism.StableSwap_call_coins - - method: source - value: curvefi_ethereum.compound_v2_evt_TokenExchange - - method: source - value: curvefi_ethereum.busd_swap_evt_TokenExchangeUnderlying - - method: source - value: wombat_bnb.qWOM_WOMPool_evt_Swap - - method: source - value: sushiswap_v2_avalanche_c.SushiV2Factory_evt_PairCreated - - method: source - value: clipper_ethereum.ClipperExchangeInterface_evt_Swapped - - method: source - value: nomiswap_bnb.NomiswapPair_evt_Swap - - method: source - value: curvefi_ethereum.tricrypto2_swap_evt_TokenExchange - - method: source - value: mdex_bnb.MdexFactory_evt_PairCreated - - method: source - value: curvefi_ethereum.tricrypto_swap_evt_TokenExchange - - method: source - value: curvefi_ethereum.steth_swap_evt_TokenExchange - - method: source - value: curvefi_ethereum.y_swap_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.agEURjEUR_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.FUSDUSDC_evt_TokenExchange - - method: source - value: uniswap_v3_ethereum.Factory_evt_PoolCreated - - method: source - value: izumi_bnb.iZiSwapPool_evt_Swap - - method: source - value: curvefi_ethereum.susd_evt_TokenExchangeUnderlying - - method: source - value: dfx_finance_ethereum.Curve_evt_Trade - - method: source - value: mstable_ethereum.FeederPool_evt_Swapped - - method: source - value: curvefi_ethereum.compound_swap_evt_TokenExchangeUnderlying - - method: source - value: dodo_ethereum.DVM_evt_DODOSwap - - method: source - value: swapr_ethereum.DXswapFactory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.3pool_evt_TokenExchange - - method: source - value: wombat_bnb.Pool_evt_Swap - - method: source - value: biswap_bnb.BiswapFactory_evt_PairCreated - - method: source - value: ethereum.traces - - method: source - value: curvefi_ethereum.susd_swap_evt_TokenExchange - - method: source - value: hashflow_ethereum.pool_evt_trade - - method: source - value: uniswap_ethereum.Exchange_evt_TokenPurchase - - method: source - value: curvefi_ethereum.pax_swap_evt_TokenExchange - - method: source - value: nomiswap_bnb.NomiswapFactory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.MAI_evt_TokenExchangeUnderlying - - method: source - value: curvefi_ethereum.susd_swap_evt_TokenExchangeUnderlying - - method: source - value: hashflow_avalanche_c.Pool_evt_Trade - - method: source - value: hashflow_ethereum.router_call_tradesinglehop - - method: source - value: sushiswap_v2_avalanche_c.Pair_evt_Swap - - method: source - value: curvefi_avalanche_c.L2StableSwap_evt_TokenExchange - - method: source - value: sushiswap_gnosis.UniswapV2Factory_evt_PairCreated - - method: source - value: dodo_ethereum.DODOV1Proxy04_evt_OrderHistory - - method: source - value: fraxswap_bnb.FraxswapFactory_evt_PairCreated - - method: source - value: dodo_ethereum.DODOV2Proxy02_evt_OrderHistory - - method: source - value: curvefi_avalanche_c.YUSDPOOL_evt_TokenExchange - - method: source - value: uniswap_v3_polygon.UniswapV3Pool_evt_Swap - - method: source - value: curvefi_optimism.MetaPoolSwap_evt_TokenExchangeUnderlying - - method: source - value: kyber_avalanche_c.Elastic_Pool_evt_swap - - method: source - value: wombat_bnb.HighCovRatioFeePool_evt_Swap - - method: source - value: sushi_ethereum.Factory_evt_PairCreated - - method: source - value: dodo_ethereum.DPP_evt_DODOSwap - - method: source - value: bancornetwork_ethereum.BancorNetwork_v6_evt_Conversion - - method: source - value: curvefi_avalanche_c.DefrostH2O_evt_TokenExchange - - method: source - value: hashflow_avalanche_c.Pool_evt_LzTrade - - method: source - value: dodo_ethereum.DODOV1Proxy01_evt_OrderHistory - - method: source - value: curvefi_ethereum.compound_evt_TokenExchange - - method: source - value: trader_joe_avalanche_c.JoePair_evt_Swap - - method: source - value: curvefi_avalanche_c.3poolV2_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.MoreMoney_USD_evt_TokenExchange - - method: source - value: dodo_ethereum.DSP_evt_DODOSwap - - method: source - value: curvefi_ethereum.pax_swap_evt_TokenExchangeUnderlying - - method: source - value: uniswap_ethereum.Exchange_evt_EthPurchase - - method: source - value: sushi_ethereum.Pair_evt_Swap - - method: source - value: velodrome_optimism.Pair_evt_Swap - - method: source - value: woofi_avalanche_c.WooPP_evt_WooSwap - - method: source - value: airswap_ethereum.Swap_v3_evt_Swap - - method: source - value: curvefi_ethereum.busd_swap_evt_TokenExchange - - method: source - value: mstable_ethereum.Masset_evt_Swapped - - method: source - value: woofi_avalanche_c.WooRouterV2_evt_WooRouterSwap - - method: source - value: woofi_bnb.WooRouterV2_evt_WooRouterSwap - - method: source - value: gmx_arbitrum.Router_evt_Swap - - method: source - value: curvefi_avalanche_c.ren_evt_TokenExchange - - method: source - value: pancakeswap_v2_bnb.PancakePair_evt_Swap - - method: source - value: gnosis.transactions - - method: source - value: optimism.logs - - method: source - value: curvefi_avalanche_c.MIM_evt_TokenExchange - - method: source - value: curvefi_ethereum.compound_swap_evt_TokenExchange - - method: source - value: fraxswap_avalanche_c.FraxswapFactory_evt_PairCreated - - method: source - value: curvefi_optimism.PoolFactory_call_deploy_plain_pool - - method: source - value: babyswap_bnb.BabyPair_evt_Swap - - method: source - value: curvefi_ethereum.usdt_swap_evt_TokenExchange - - method: source - value: polygon.transactions - - method: source - value: zigzag_test_v6_arbitrum.zigzag_settelment_call_matchOrders - - method: source - value: uniswap_v3_arbitrum.UniswapV3Factory_evt_PoolCreated - - method: source - value: velodrome_optimism.PairFactory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.Curve_DD2_Pool_evt_TokenExchange - - method: source - value: wombat_bnb.mWOM_Pool_evt_Swap - - method: source - value: fraxswap_polygon.FraxswapFactory_evt_PairCreated - - method: source - value: curvefi_ethereum.sbtc_swap_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.MAI_evt_TokenExchange - - method: source - value: uniswap_ethereum.Factory_evt_NewExchange - - method: source - value: curvefi_optimism.StableSwap_evt_TokenExchange - - method: source - value: curvefi_ethereum.susd_evt_TokenExchange - - method: source - value: shibaswap_ethereum.UniswapV2Pair_evt_Swap - - method: source - value: erc20_optimism.evt_transfer - - method: source - value: kyber_avalanche_c.Elastic_Factory_evt_PoolCreated - - method: source - value: optimism.transactions - - method: source - value: airswap_ethereum.Light_evt_Swap - - method: source - value: fraxswap_ethereum.FraxswapPair_evt_Swap - - method: source - value: mdex_bnb.MdexPair_evt_Swap - - method: source - value: platypus_finance_avalanche_c.Pool_evt_Swap - - method: source - value: uniswap_v2_ethereum.Pair_evt_Swap - - method: source - value: uniswap_v3_ethereum.Pair_evt_Swap - - method: source - value: uniswap_v3_optimism.Pair_evt_Swap - - method: source - value: prices.usd - - method: source - value: curvefi_avalanche_c.ren_evt_TokenExchangeUnderlying - - method: source - value: avalanche_c.transactions - - method: source - value: curvefi_avalanche_c.axlUSDCUSDC_evt_TokenExchange - - method: source - value: pancakeswap_v2_bnb.PancakeFactory_evt_PairCreated - - method: source - value: airswap_ethereum.swap_evt_Swap - - method: source - value: curvefi_avalanche_c.aave_v3_evt_TokenExchangeUnderlying - - method: source - value: swapr_ethereum.DXswapPair_evt_Swap - - method: source - value: curvefi_avalanche_c.AavePool_evt_TokenExchange - - method: source - value: shibaswap_ethereum.UniswapV2Factory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.FUSD_MIM_Factory_Pool_evt_TokenExchange - - method: source - value: kyber_avalanche_c.AggregationRouter_evt_Swapped - - method: source - value: ethereum.transactions - - method: source - value: curvefi_optimism.PoolFactory_evt_MetaPoolDeployed - - method: source - value: uniswap_v2_ethereum.Factory_evt_PairCreated - - method: source - value: curvefi_avalanche_c.axlUSDC_USDC_e_evt_TokenExchange - - method: source - value: ethereum.logs - - method: source - value: bancornetwork_ethereum.BancorNetwork_v10_evt_Conversion - - method: source - value: curvefi_ethereum.y_swap_evt_TokenExchange - - method: source - value: curvefi_ethereum.hbtc_swap_evt_TokenExchange - - method: source - value: dodo_ethereum.DODO_evt_SellBaseToken - - method: source - value: kyber_avalanche_c.DMMFactory_evt_PoolCreated - - method: source - value: curvefi_avalanche_c.USDS_evt_TokenExchangeUnderlying - - method: source - value: arbitrum.transactions - - method: source - value: curvefi_ethereum.threepool_swap_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.avax3pool_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.frax_evt_TokenExchangeUnderlying - - method: source - value: clipper_ethereum.ClipperCaravelExchange_evt_Swapped - - method: source - value: curvefi_avalanche_c.Blizz_evt_TokenExchange - - method: source - value: curvefi_avalanche_c.MIM_evt_TokenExchangeUnderlying - - method: source - value: curvefi_avalanche_c.USD_coin_evt_TokenExchange \ No newline at end of file From c24ecd92034795e64b6987b2ffcd66f7fed24e97 Mon Sep 17 00:00:00 2001 From: Meghan Date: Thu, 29 Dec 2022 11:27:32 -0500 Subject: [PATCH 6/7] test token is now inactive --- scripts/test_token_checker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/test_token_checker.py b/scripts/test_token_checker.py index c51a3b8772f..9ac8566de3f 100644 --- a/scripts/test_token_checker.py +++ b/scripts/test_token_checker.py @@ -45,6 +45,7 @@ def test_valid_token5(): test_token_checker = TokenChecker(new_line='("dfl-defi-land", "solana", "DFL", "DFL1zNkaGPWm1BqAVqRjCZvHmwTFrEaJtbzJWgseoNJh", 9),') test_token_checker.validate_token() -def test_valid_token6(): +def test_deactivated_token(): test_token_checker = TokenChecker(new_line='("bets-betswirl", "polygon", "BETS", "0x9246a5f10a79a5a939b0c2a75a3ad196aafdb43b", 18),') - test_token_checker.validate_token() \ No newline at end of file + with pytest.raises(AssertionError): + test_token_checker.validate_token() \ No newline at end of file From 858b9aec72652f3a6835639e5de09e7be80070a4 Mon Sep 17 00:00:00 2001 From: Meghan Heintz Date: Wed, 4 Jan 2023 11:52:04 -0500 Subject: [PATCH 7/7] Update test_token_checker.py --- scripts/test_token_checker.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/test_token_checker.py b/scripts/test_token_checker.py index 9ac8566de3f..db4eb617da2 100644 --- a/scripts/test_token_checker.py +++ b/scripts/test_token_checker.py @@ -45,7 +45,6 @@ def test_valid_token5(): test_token_checker = TokenChecker(new_line='("dfl-defi-land", "solana", "DFL", "DFL1zNkaGPWm1BqAVqRjCZvHmwTFrEaJtbzJWgseoNJh", 9),') test_token_checker.validate_token() -def test_deactivated_token(): +def test_valid_token6(): test_token_checker = TokenChecker(new_line='("bets-betswirl", "polygon", "BETS", "0x9246a5f10a79a5a939b0c2a75a3ad196aafdb43b", 18),') - with pytest.raises(AssertionError): - test_token_checker.validate_token() \ No newline at end of file + test_token_checker.validate_token()