From bb5800dc332a16f483a54de917490b430a1d2663 Mon Sep 17 00:00:00 2001 From: soispoke <66172107+soispoke@users.noreply.github.com> Date: Tue, 30 Aug 2022 07:31:56 +0700 Subject: [PATCH] Modify sources.yml files to avoid source freshness errors (#1453) --- .../nomad/ethereum/nomad_ethereum_sources.yml | 3 --- .../ethereum/opensea_ethereum_sources.yml | 3 --- .../ethereum/sudoswap_ethereum_sources.yml | 18 +++++++++++++++--- .../ethereum/uniswap_ethereum_sources.yml | 9 ++++++--- 4 files changed, 21 insertions(+), 12 deletions(-) diff --git a/models/nomad/ethereum/nomad_ethereum_sources.yml b/models/nomad/ethereum/nomad_ethereum_sources.yml index aaae4c280f1..72a445a2315 100644 --- a/models/nomad/ethereum/nomad_ethereum_sources.yml +++ b/models/nomad/ethereum/nomad_ethereum_sources.yml @@ -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 diff --git a/models/opensea/ethereum/opensea_ethereum_sources.yml b/models/opensea/ethereum/opensea_ethereum_sources.yml index da55d60c900..e09fd47d488 100644 --- a/models/opensea/ethereum/opensea_ethereum_sources.yml +++ b/models/opensea/ethereum/opensea_ethereum_sources.yml @@ -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 diff --git a/models/sudoswap/ethereum/sudoswap_ethereum_sources.yml b/models/sudoswap/ethereum/sudoswap_ethereum_sources.yml index 9d734269c81..106a1332b2c 100644 --- a/models/sudoswap/ethereum/sudoswap_ethereum_sources.yml +++ b/models/sudoswap/ethereum/sudoswap_ethereum_sources.yml @@ -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 \ No newline at end of file diff --git a/models/uniswap/ethereum/uniswap_ethereum_sources.yml b/models/uniswap/ethereum/uniswap_ethereum_sources.yml index 372592bbb56..00e0d5e64e7 100644 --- a/models/uniswap/ethereum/uniswap_ethereum_sources.yml +++ b/models/uniswap/ethereum/uniswap_ethereum_sources.yml @@ -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: @@ -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: