From 7426612aff4ec7b83a6f13d0a7a72fbbaf7277fb Mon Sep 17 00:00:00 2001 From: walker-16 Date: Thu, 10 Aug 2023 17:11:31 -0300 Subject: [PATCH] Fix BASE, OPTIMISM, ARBITRIUM (#624) * Fix BASE, OPTIMISM, ARBITRIUM Co-authored-by: ftocal * Add base url in secrets. --------- Co-authored-by: Fernando Torres --- contract-watcher/cmd/service/run.go | 9 +++++++-- contract-watcher/config/config.go | 4 ++-- deploy/contract-watcher/secrets.yaml | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/contract-watcher/cmd/service/run.go b/contract-watcher/cmd/service/run.go index ceaba2ec..ed9dfe6f 100644 --- a/contract-watcher/cmd/service/run.go +++ b/contract-watcher/cmd/service/run.go @@ -244,15 +244,18 @@ func newWatchersForMainnet(cfg *config.ServiceConfiguration) *watchersConfig { config.BSC_MAINNET, config.FANTOM_MAINNET, }, - avalanche: &config.AVALANCHE_MAINNET, aptos: &config.APTOS_MAINNET, + arbitrum: &config.ARBITRUM_MAINNET, + avalanche: &config.AVALANCHE_MAINNET, base: &config.BASE_MAINNET, celo: &config.CELO_MAINNET, ethereum: &config.ETHEREUM_MAINNET, moonbeam: &config.MOONBEAM_MAINNET, oasis: &config.OASIS_MAINNET, + optimism: &config.OPTIMISM_MAINNET, solana: &config.SOLANA_MAINNET, terra: &config.TERRA_MAINNET, + rateLimit: rateLimitConfig{ ankr: cfg.AnkrRequestsPerSecond, avalanche: cfg.AvalancheRequestsPerSecond, @@ -277,13 +280,15 @@ func newWatchersForTestnet(cfg *config.ServiceConfiguration) *watchersConfig { config.BSC_TESTNET, config.FANTOM_TESTNET, }, - avalanche: &config.AVALANCHE_TESTNET, aptos: &config.APTOS_TESTNET, + arbitrum: &config.ARBITRUM_TESTNET, + avalanche: &config.AVALANCHE_TESTNET, celo: &config.CELO_TESTNET, base: &config.BASE_TESTNET, ethereum: &config.ETHEREUM_TESTNET, moonbeam: &config.MOONBEAM_TESTNET, oasis: &config.OASIS_TESTNET, + optimism: &config.OPTIMISM_TESTNET, solana: &config.SOLANA_TESTNET, rateLimit: rateLimitConfig{ ankr: cfg.AnkrRequestsPerSecond, diff --git a/contract-watcher/config/config.go b/contract-watcher/config/config.go index d48f253c..6d184d5b 100644 --- a/contract-watcher/config/config.go +++ b/contract-watcher/config/config.go @@ -27,8 +27,8 @@ type ServiceConfiguration struct { ArbitrumRequestsPerSecond int `env:"ARBITRUM_REQUESTS_PER_SECOND,required"` AvalancheUrl string `env:"AVALANCHE_URL,required"` AvalancheRequestsPerSecond int `env:"AVALANCHE_REQUESTS_PER_SECOND,required"` - BaseUrl string `env:"ARBITRUM_URL,required"` - BaseRequestsPerSecond int `env:"ARBITRUM_REQUESTS_PER_SECOND,required"` + BaseUrl string `env:"BASE_URL,required"` + BaseRequestsPerSecond int `env:"BASE_REQUESTS_PER_SECOND,required"` CeloUrl string `env:"CELO_URL,required"` CeloRequestsPerSecond int `env:"CELO_REQUESTS_PER_SECOND,required"` EthereumUrl string `env:"ETHEREUM_URL,required"` diff --git a/deploy/contract-watcher/secrets.yaml b/deploy/contract-watcher/secrets.yaml index 4ec9072d..e262eabd 100644 --- a/deploy/contract-watcher/secrets.yaml +++ b/deploy/contract-watcher/secrets.yaml @@ -16,4 +16,5 @@ data: optimism-url: {{ .OPTIMISM_URL | b64enc }} ethereum-url: {{ .ETHEREUM_URL | b64enc }} avalanche-url: {{ .AVALANCHE_URL | b64enc }} + base-url: {{ .BASE_URL | b64enc }} type: Opaque