Fix BASE, OPTIMISM, ARBITRIUM (#624)
* Fix BASE, OPTIMISM, ARBITRIUM Co-authored-by: ftocal <fert1335@gmail.com> * Add base url in secrets. --------- Co-authored-by: Fernando Torres <fert1335@gmail.com>
This commit is contained in:
parent
160f80018f
commit
7426612aff
|
@ -244,15 +244,18 @@ func newWatchersForMainnet(cfg *config.ServiceConfiguration) *watchersConfig {
|
||||||
config.BSC_MAINNET,
|
config.BSC_MAINNET,
|
||||||
config.FANTOM_MAINNET,
|
config.FANTOM_MAINNET,
|
||||||
},
|
},
|
||||||
avalanche: &config.AVALANCHE_MAINNET,
|
|
||||||
aptos: &config.APTOS_MAINNET,
|
aptos: &config.APTOS_MAINNET,
|
||||||
|
arbitrum: &config.ARBITRUM_MAINNET,
|
||||||
|
avalanche: &config.AVALANCHE_MAINNET,
|
||||||
base: &config.BASE_MAINNET,
|
base: &config.BASE_MAINNET,
|
||||||
celo: &config.CELO_MAINNET,
|
celo: &config.CELO_MAINNET,
|
||||||
ethereum: &config.ETHEREUM_MAINNET,
|
ethereum: &config.ETHEREUM_MAINNET,
|
||||||
moonbeam: &config.MOONBEAM_MAINNET,
|
moonbeam: &config.MOONBEAM_MAINNET,
|
||||||
oasis: &config.OASIS_MAINNET,
|
oasis: &config.OASIS_MAINNET,
|
||||||
|
optimism: &config.OPTIMISM_MAINNET,
|
||||||
solana: &config.SOLANA_MAINNET,
|
solana: &config.SOLANA_MAINNET,
|
||||||
terra: &config.TERRA_MAINNET,
|
terra: &config.TERRA_MAINNET,
|
||||||
|
|
||||||
rateLimit: rateLimitConfig{
|
rateLimit: rateLimitConfig{
|
||||||
ankr: cfg.AnkrRequestsPerSecond,
|
ankr: cfg.AnkrRequestsPerSecond,
|
||||||
avalanche: cfg.AvalancheRequestsPerSecond,
|
avalanche: cfg.AvalancheRequestsPerSecond,
|
||||||
|
@ -277,13 +280,15 @@ func newWatchersForTestnet(cfg *config.ServiceConfiguration) *watchersConfig {
|
||||||
config.BSC_TESTNET,
|
config.BSC_TESTNET,
|
||||||
config.FANTOM_TESTNET,
|
config.FANTOM_TESTNET,
|
||||||
},
|
},
|
||||||
avalanche: &config.AVALANCHE_TESTNET,
|
|
||||||
aptos: &config.APTOS_TESTNET,
|
aptos: &config.APTOS_TESTNET,
|
||||||
|
arbitrum: &config.ARBITRUM_TESTNET,
|
||||||
|
avalanche: &config.AVALANCHE_TESTNET,
|
||||||
celo: &config.CELO_TESTNET,
|
celo: &config.CELO_TESTNET,
|
||||||
base: &config.BASE_TESTNET,
|
base: &config.BASE_TESTNET,
|
||||||
ethereum: &config.ETHEREUM_TESTNET,
|
ethereum: &config.ETHEREUM_TESTNET,
|
||||||
moonbeam: &config.MOONBEAM_TESTNET,
|
moonbeam: &config.MOONBEAM_TESTNET,
|
||||||
oasis: &config.OASIS_TESTNET,
|
oasis: &config.OASIS_TESTNET,
|
||||||
|
optimism: &config.OPTIMISM_TESTNET,
|
||||||
solana: &config.SOLANA_TESTNET,
|
solana: &config.SOLANA_TESTNET,
|
||||||
rateLimit: rateLimitConfig{
|
rateLimit: rateLimitConfig{
|
||||||
ankr: cfg.AnkrRequestsPerSecond,
|
ankr: cfg.AnkrRequestsPerSecond,
|
||||||
|
|
|
@ -27,8 +27,8 @@ type ServiceConfiguration struct {
|
||||||
ArbitrumRequestsPerSecond int `env:"ARBITRUM_REQUESTS_PER_SECOND,required"`
|
ArbitrumRequestsPerSecond int `env:"ARBITRUM_REQUESTS_PER_SECOND,required"`
|
||||||
AvalancheUrl string `env:"AVALANCHE_URL,required"`
|
AvalancheUrl string `env:"AVALANCHE_URL,required"`
|
||||||
AvalancheRequestsPerSecond int `env:"AVALANCHE_REQUESTS_PER_SECOND,required"`
|
AvalancheRequestsPerSecond int `env:"AVALANCHE_REQUESTS_PER_SECOND,required"`
|
||||||
BaseUrl string `env:"ARBITRUM_URL,required"`
|
BaseUrl string `env:"BASE_URL,required"`
|
||||||
BaseRequestsPerSecond int `env:"ARBITRUM_REQUESTS_PER_SECOND,required"`
|
BaseRequestsPerSecond int `env:"BASE_REQUESTS_PER_SECOND,required"`
|
||||||
CeloUrl string `env:"CELO_URL,required"`
|
CeloUrl string `env:"CELO_URL,required"`
|
||||||
CeloRequestsPerSecond int `env:"CELO_REQUESTS_PER_SECOND,required"`
|
CeloRequestsPerSecond int `env:"CELO_REQUESTS_PER_SECOND,required"`
|
||||||
EthereumUrl string `env:"ETHEREUM_URL,required"`
|
EthereumUrl string `env:"ETHEREUM_URL,required"`
|
||||||
|
|
|
@ -16,4 +16,5 @@ data:
|
||||||
optimism-url: {{ .OPTIMISM_URL | b64enc }}
|
optimism-url: {{ .OPTIMISM_URL | b64enc }}
|
||||||
ethereum-url: {{ .ETHEREUM_URL | b64enc }}
|
ethereum-url: {{ .ETHEREUM_URL | b64enc }}
|
||||||
avalanche-url: {{ .AVALANCHE_URL | b64enc }}
|
avalanche-url: {{ .AVALANCHE_URL | b64enc }}
|
||||||
|
base-url: {{ .BASE_URL | b64enc }}
|
||||||
type: Opaque
|
type: Opaque
|
||||||
|
|
Loading…
Reference in New Issue