feat(@desktop/wallet): support alchemy sepolia api keys

Closes #12771
This commit is contained in:
Dario Gabriel Lipicar 2023-11-16 17:49:29 -03:00 committed by dlipicar
parent fdc36b72e6
commit 7384c004cc
6 changed files with 45 additions and 3 deletions

View File

@ -534,6 +534,10 @@ ifdef ALCHEMY_ETHEREUM_GOERLI_TOKEN
NIM_PARAMS += -d:ALCHEMY_ETHEREUM_GOERLI_TOKEN:"$(ALCHEMY_ETHEREUM_GOERLI_TOKEN)"
endif
ifdef ALCHEMY_ETHEREUM_SEPOLIA_TOKEN
NIM_PARAMS += -d:ALCHEMY_ETHEREUM_SEPOLIA_TOKEN:"$(ALCHEMY_ETHEREUM_SEPOLIA_TOKEN)"
endif
ifdef ALCHEMY_ARBITRUM_MAINNET_TOKEN
NIM_PARAMS += -d:ALCHEMY_ARBITRUM_MAINNET_TOKEN:"$(ALCHEMY_ARBITRUM_MAINNET_TOKEN)"
endif
@ -542,6 +546,10 @@ ifdef ALCHEMY_ARBITRUM_GOERLI_TOKEN
NIM_PARAMS += -d:ALCHEMY_ARBITRUM_GOERLI_TOKEN:"$(ALCHEMY_ARBITRUM_GOERLI_TOKEN)"
endif
ifdef ALCHEMY_ARBITRUM_SEPOLIA_TOKEN
NIM_PARAMS += -d:ALCHEMY_ARBITRUM_SEPOLIA_TOKEN:"$(ALCHEMY_ARBITRUM_SEPOLIA_TOKEN)"
endif
ifdef ALCHEMY_OPTIMISM_MAINNET_TOKEN
NIM_PARAMS += -d:ALCHEMY_OPTIMISM_MAINNET_TOKEN:"$(ALCHEMY_OPTIMISM_MAINNET_TOKEN)"
endif
@ -550,6 +558,10 @@ ifdef ALCHEMY_OPTIMISM_GOERLI_TOKEN
NIM_PARAMS += -d:ALCHEMY_OPTIMISM_GOERLI_TOKEN:"$(ALCHEMY_OPTIMISM_GOERLI_TOKEN)"
endif
ifdef ALCHEMY_OPTIMISM_SEPOLIA_TOKEN
NIM_PARAMS += -d:ALCHEMY_OPTIMISM_SEPOLIA_TOKEN:"$(ALCHEMY_OPTIMISM_SEPOLIA_TOKEN)"
endif
DEFAULT_OPENSEA_API_KEY := ""
OPENSEA_API_KEY ?= $(DEFAULT_OPENSEA_API_KEY)
NIM_PARAMS += -d:OPENSEA_API_KEY:"$(OPENSEA_API_KEY)"

View File

@ -228,10 +228,13 @@ var NODE_CONFIG* = %* {
"AlchemyAPIKeys": %* {
"1": ALCHEMY_ETHEREUM_MAINNET_TOKEN_RESOLVED,
"5": ALCHEMY_ETHEREUM_GOERLI_TOKEN_RESOLVED,
"11155111": ALCHEMY_ETHEREUM_SEPOLIA_TOKEN_RESOLVED,
"42161": ALCHEMY_ARBITRUM_MAINNET_TOKEN_RESOLVED,
"421613": ALCHEMY_ARBITRUM_GOERLI_TOKEN_RESOLVED,
"421614": ALCHEMY_ARBITRUM_SEPOLIA_TOKEN_RESOLVED,
"10": ALCHEMY_OPTIMISM_MAINNET_TOKEN_RESOLVED,
"420": ALCHEMY_OPTIMISM_GOERLI_TOKEN_RESOLVED
"420": ALCHEMY_OPTIMISM_GOERLI_TOKEN_RESOLVED,
"11155420": ALCHEMY_OPTIMISM_SEPOLIA_TOKEN_RESOLVED
},
"InfuraAPIKey": INFURA_TOKEN_RESOLVED,
"InfuraAPIKeySecret": INFURA_TOKEN_SECRET_RESOLVED,

View File

@ -389,10 +389,13 @@ QtObject:
"AlchemyAPIKeys": %* {
"1": ALCHEMY_ETHEREUM_MAINNET_TOKEN_RESOLVED,
"5": ALCHEMY_ETHEREUM_GOERLI_TOKEN_RESOLVED,
"11155111": ALCHEMY_ETHEREUM_SEPOLIA_TOKEN_RESOLVED,
"42161": ALCHEMY_ARBITRUM_MAINNET_TOKEN_RESOLVED,
"421613": ALCHEMY_ARBITRUM_GOERLI_TOKEN_RESOLVED,
"421614": ALCHEMY_ARBITRUM_SEPOLIA_TOKEN_RESOLVED,
"10": ALCHEMY_OPTIMISM_MAINNET_TOKEN_RESOLVED,
"420": ALCHEMY_OPTIMISM_GOERLI_TOKEN_RESOLVED
"420": ALCHEMY_OPTIMISM_GOERLI_TOKEN_RESOLVED,
"11155420": ALCHEMY_OPTIMISM_SEPOLIA_TOKEN_RESOLVED
}
}

View File

@ -48,9 +48,12 @@ let
INFURA_TOKEN_SECRET_RESOLVED* = desktopConfig.infuraTokenSecret
ALCHEMY_ETHEREUM_MAINNET_TOKEN_RESOLVED* = desktopConfig.alchemyEthereumMainnetToken
ALCHEMY_ETHEREUM_GOERLI_TOKEN_RESOLVED* = desktopConfig.alchemyEthereumGoerliToken
ALCHEMY_ETHEREUM_SEPOLIA_TOKEN_RESOLVED* = desktopConfig.alchemyEthereumSepoliaToken
ALCHEMY_ARBITRUM_MAINNET_TOKEN_RESOLVED* = desktopConfig.alchemyArbitrumMainnetToken
ALCHEMY_ARBITRUM_GOERLI_TOKEN_RESOLVED* = desktopConfig.alchemyArbitrumGoerliToken
ALCHEMY_ARBITRUM_SEPOLIA_TOKEN_RESOLVED* = desktopConfig.alchemyArbitrumSepoliaToken
ALCHEMY_OPTIMISM_MAINNET_TOKEN_RESOLVED* = desktopConfig.alchemyOptimismMainnetToken
ALCHEMY_OPTIMISM_GOERLI_TOKEN_RESOLVED* = desktopConfig.alchemyOptimismGoerliToken
ALCHEMY_OPTIMISM_SEPOLIA_TOKEN_RESOLVED* = desktopConfig.alchemyOptimismSepoliaToken
OPENSEA_API_KEY_RESOLVED* = desktopConfig.openseaApiKey
WALLET_CONNECT_PROJECT_ID* = BUILD_WALLET_CONNECT_PROJECT_ID

View File

@ -16,10 +16,13 @@ const BASE_NAME_POKT_TOKEN = "POKT_TOKEN"
const BASE_NAME_OPENSEA_API_KEY = "OPENSEA_API_KEY"
const BASE_NAME_ALCHEMY_ETHEREUM_MAINNET_TOKEN = "ALCHEMY_ETHEREUM_MAINNET_TOKEN"
const BASE_NAME_ALCHEMY_ETHEREUM_GOERLI_TOKEN = "ALCHEMY_ETHEREUM_GOERLI_TOKEN"
const BASE_NAME_ALCHEMY_ETHEREUM_SEPOLIA_TOKEN = "ALCHEMY_ETHEREUM_SEPOLIA_TOKEN"
const BASE_NAME_ALCHEMY_ARBITRUM_MAINNET_TOKEN = "ALCHEMY_ARBITRUM_MAINNET_TOKEN"
const BASE_NAME_ALCHEMY_ARBITRUM_GOERLI_TOKEN = "ALCHEMY_ARBITRUM_GOERLI_TOKEN"
const BASE_NAME_ALCHEMY_ARBITRUM_SEPOLIA_TOKEN = "ALCHEMY_ARBITRUM_SEPOLIA_TOKEN"
const BASE_NAME_ALCHEMY_OPTIMISM_MAINNET_TOKEN = "ALCHEMY_OPTIMISM_MAINNET_TOKEN"
const BASE_NAME_ALCHEMY_OPTIMISM_GOERLI_TOKEN = "ALCHEMY_OPTIMISM_GOERLI_TOKEN"
const BASE_NAME_ALCHEMY_OPTIMISM_SEPOLIA_TOKEN = "ALCHEMY_OPTIMISM_SEPOLIA_TOKEN"
const BASE_NAME_WALLET_CONNECT_PROJECT_ID = "WALLET_CONNECT_PROJECT_ID"
@ -33,10 +36,13 @@ const BUILD_POKT_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_POKT_TOKEN)
const BUILD_OPENSEA_API_KEY = getEnv(BUILD_TIME_PREFIX & BASE_NAME_OPENSEA_API_KEY)
const BUILD_ALCHEMY_ETHEREUM_MAINNET_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_ALCHEMY_ETHEREUM_MAINNET_TOKEN)
const BUILD_ALCHEMY_ETHEREUM_GOERLI_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_ALCHEMY_ETHEREUM_GOERLI_TOKEN)
const BUILD_ALCHEMY_ETHEREUM_SEPOLIA_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_ALCHEMY_ETHEREUM_SEPOLIA_TOKEN)
const BUILD_ALCHEMY_ARBITRUM_MAINNET_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_ALCHEMY_ARBITRUM_MAINNET_TOKEN)
const BUILD_ALCHEMY_ARBITRUM_GOERLI_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_ALCHEMY_ARBITRUM_GOERLI_TOKEN)
const BUILD_ALCHEMY_ARBITRUM_SEPOLIA_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_ALCHEMY_ARBITRUM_SEPOLIA_TOKEN)
const BUILD_ALCHEMY_OPTIMISM_MAINNET_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_ALCHEMY_OPTIMISM_MAINNET_TOKEN)
const BUILD_ALCHEMY_OPTIMISM_GOERLI_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_ALCHEMY_OPTIMISM_GOERLI_TOKEN)
const BUILD_ALCHEMY_OPTIMISM_SEPOLIA_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_ALCHEMY_OPTIMISM_SEPOLIA_TOKEN)
const
WALLET_CONNECT_STATUS_PROJECT_ID = "87815d72a81d739d2a7ce15c2cfdefb3"
BUILD_WALLET_CONNECT_PROJECT_ID = getEnv(BUILD_TIME_PREFIX & BASE_NAME_WALLET_CONNECT_PROJECT_ID, WALLET_CONNECT_STATUS_PROJECT_ID)
@ -103,6 +109,11 @@ type StatusDesktopConfig = object
desc: "Sets alchemy ethereum goerli token"
name: $BASE_NAME_ALCHEMY_ETHEREUM_GOERLI_TOKEN
abbr: "alchemy-ethereum-goerli-token" .}: string
alchemyEthereumSepoliaToken* {.
defaultValue: BUILD_ALCHEMY_ETHEREUM_SEPOLIA_TOKEN
desc: "Sets alchemy ethereum sepolia token"
name: $BASE_NAME_ALCHEMY_ETHEREUM_SEPOLIA_TOKEN
abbr: "alchemy-ethereum-sepolia-token" .}: string
alchemyArbitrumMainnetToken* {.
defaultValue: BUILD_ALCHEMY_ARBITRUM_MAINNET_TOKEN
desc: "Sets alchemy arbitrum mainnet token"
@ -113,6 +124,11 @@ type StatusDesktopConfig = object
desc: "Sets alchemy arbitrum goerli token"
name: $BASE_NAME_ALCHEMY_ARBITRUM_GOERLI_TOKEN
abbr: "alchemy-arbitrum-goerli-token" .}: string
alchemyArbitrumSepoliaToken* {.
defaultValue: BUILD_ALCHEMY_ARBITRUM_SEPOLIA_TOKEN
desc: "Sets alchemy arbitrum sepolia token"
name: $BASE_NAME_ALCHEMY_ARBITRUM_SEPOLIA_TOKEN
abbr: "alchemy-arbitrum-sepolia-token" .}: string
alchemyOptimismMainnetToken* {.
defaultValue: BUILD_ALCHEMY_OPTIMISM_MAINNET_TOKEN
desc: "Sets alchemy optimism mainnet token"
@ -123,6 +139,11 @@ type StatusDesktopConfig = object
desc: "Sets alchemy optimism goerli token"
name: $BASE_NAME_ALCHEMY_OPTIMISM_GOERLI_TOKEN
abbr: "alchemy-optimism-goerli-token" .}: string
alchemyOptimismSepoliaToken* {.
defaultValue: BUILD_ALCHEMY_OPTIMISM_SEPOLIA_TOKEN
desc: "Sets alchemy optimism sepolia token"
name: $BASE_NAME_ALCHEMY_OPTIMISM_SEPOLIA_TOKEN
abbr: "alchemy-optimism-sepolia-token" .}: string
# runtime vars
dataDir* {.

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit 40c9ba82a5d63b8b8762237e4edfe3f1fa6f1c21
Subproject commit d198ac63fc6b88c9ee8a109b15547e13238d0ad1