Skip to content

Commit

Permalink
Modify sources.yml files to avoid source freshness errors (#1453)
Browse files Browse the repository at this point in the history
  • Loading branch information
soispoke authored Aug 30, 2022
1 parent e20bb97 commit bb5800d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
3 changes: 0 additions & 3 deletions models/nomad/ethereum/nomad_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ version: 2

sources:
- name: nomad_ethereum
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: BridgeRouter_evt_Send
loaded_at_field: evt_block_time
Expand Down
3 changes: 0 additions & 3 deletions models/opensea/ethereum/opensea_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ 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
18 changes: 15 additions & 3 deletions models/sudoswap/ethereum/sudoswap_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,32 @@ 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:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
description: "As of 8/9/22, only ETH pairs have been created. Will need ERC20 logic in the future."
loaded_at_field: call_block_time
- name: LSSVMPair_general_call_swapNFTsForToken
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: call_block_time
- name: LSSVMPair_general_call_swapTokenForAnyNFTs
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: call_block_time
- name: LSSVMPair_general_call_swapTokenForSpecificNFTs
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: call_block_time
- name: LSSVMPair_general_evt_FeeUpdate
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: evt_block_time
- name: LSSVMPairFactory_evt_ProtocolFeeMultiplierUpdate
loaded_at_field: evt_block_time
9 changes: 6 additions & 3 deletions models/uniswap/ethereum/uniswap_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ version: 2
sources:
- name: uniswap_ethereum
description: "Ethereum decoded tables related to Uniswap v1 contract"
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: Exchange_evt_TokenPurchase
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: evt_block_time
description: "" # to-do
columns:
Expand Down Expand Up @@ -54,6 +54,9 @@ sources:
name: token
description: "Token bought contract address"
- name: Exchange_evt_EthPurchase
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: evt_block_time
description: "" # to-do
columns:
Expand Down

0 comments on commit bb5800d

Please sign in to comment.