Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script to find sources missing checks #2401

Merged
merged 8 commits into from
Jan 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions models/airswap/ethereum/airswap_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down
3 changes: 3 additions & 0 deletions models/babyswap/bnb/babyswap_bnb_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions models/bancor/ethereum/bancor_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions models/base_sources/ethereum_base_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions models/biswap/bnb/biswap_bnb_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions models/clipper/ethereum/clipper_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions models/curvefi/avalanche_c/curvefi_avalanche_c_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions models/curvefi/ethereum/curvefi_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions models/defiswap/ethereum/defiswap_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down Expand Up @@ -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: >
Expand Down
3 changes: 3 additions & 0 deletions models/dodo/ethereum/dodo_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down
3 changes: 3 additions & 0 deletions models/element/avalanche_c/element_avalanche_c_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions models/element/bnb/element_bnb_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions models/element/ethereum/element_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions models/fraxswap/avalanche_c/fraxswap_avalanche_c_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions models/fraxswap/bnb/fraxswap_bnb_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions models/fraxswap/ethereum/fraxswap_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions models/fraxswap/polygon/fraxswap_polygon_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions models/hashflow/ethereum/hashflow_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions models/mstable/ethereum/mstable_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down
3 changes: 3 additions & 0 deletions models/nomiswap/bnb/nomiswap_bnb_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions models/opensea/ethereum/opensea_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions models/shibaswap/ethereum/shibaswap_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions models/sudoswap/ethereum/sudoswap_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions models/swapr/ethereum/swapr_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down
5 changes: 5 additions & 0 deletions models/uniswap/ethereum/uniswap_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions models/woofi/avalanche_c/woofi_avalanche_c_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down
3 changes: 3 additions & 0 deletions models/woofi/bnb/woofi_bnb_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down
3 changes: 0 additions & 3 deletions models/zeroex/optimism/zeroex_api_optimism_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this model is missing and I've raised a height task wth decode

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spooky. sounds like this table never existed from our records.

warn_after: { count: 12, period: hour }
loaded_at_field: evt_block_time

tables:
- name: Exchange_evt_Fill
3 changes: 3 additions & 0 deletions models/zora/ethereum/zora_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_token_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ def test_valid_token5():

def test_valid_token6():
test_token_checker = TokenChecker(new_line='("bets-betswirl", "polygon", "BETS", "0x9246a5f10a79a5a939b0c2a75a3ad196aafdb43b", 18),')
test_token_checker.validate_token()
test_token_checker.validate_token()
Loading