feat(wallet): cleanup proxy env vars, add proxy stage name
This commit is contained in:
parent
9a17498149
commit
8dade32a39
|
@ -17,6 +17,7 @@ type
|
|||
alchemyOptimismMainnetToken*: string
|
||||
alchemyOptimismGoerliToken*: string
|
||||
alchemyOptimismSepoliaToken*: string
|
||||
statusProxyStageName*: string
|
||||
statusProxyMarketUser*: string
|
||||
statusProxyMarketPassword*: string
|
||||
statusProxyBlockchainUser*: string
|
||||
|
@ -39,6 +40,7 @@ proc toJson*(self: WalletSecretsConfig): JsonNode =
|
|||
"alchemyOptimismMainnetToken": self.alchemyOptimismMainnetToken,
|
||||
"alchemyOptimismGoerliToken": self.alchemyOptimismGoerliToken,
|
||||
"alchemyOptimismSepoliaToken": self.alchemyOptimismSepoliaToken,
|
||||
"statusProxyStageName": self.statusProxyStageName,
|
||||
"statusProxyMarketUser": self.statusProxyMarketUser,
|
||||
"statusProxyMarketPassword": self.statusProxyMarketPassword,
|
||||
"statusProxyBlockchainUser": self.statusProxyBlockchainUser,
|
||||
|
|
|
@ -173,10 +173,11 @@ QtObject:
|
|||
alchemyOptimismMainnetToken: ALCHEMY_OPTIMISM_MAINNET_TOKEN_RESOLVED,
|
||||
alchemyOptimismGoerliToken: ALCHEMY_OPTIMISM_GOERLI_TOKEN_RESOLVED,
|
||||
alchemyOptimismSepoliaToken: ALCHEMY_OPTIMISM_SEPOLIA_TOKEN_RESOLVED,
|
||||
statusProxyMarketUser: STATUS_PROXY_MARKET_USER_RESOLVED,
|
||||
statusProxyMarketPassword: STATUS_PROXY_MARKET_PASSWORD_RESOLVED,
|
||||
statusProxyBlockchainUser: STATUS_PROXY_BLOCKCHAIN_USER_RESOLVED,
|
||||
statusProxyBlockchainPassword: STATUS_PROXY_BLOCKCHAIN_PASSWORD_RESOLVED,
|
||||
statusProxyStageName: STATUS_PROXY_STAGE_NAME_RESOLVED,
|
||||
statusProxyMarketUser: STATUS_PROXY_USER_RESOLVED,
|
||||
statusProxyMarketPassword: STATUS_PROXY_PASSWORD_RESOLVED,
|
||||
statusProxyBlockchainUser: STATUS_PROXY_USER_RESOLVED,
|
||||
statusProxyBlockchainPassword: STATUS_PROXY_PASSWORD_RESOLVED,
|
||||
)
|
||||
|
||||
proc defaultCreateAccountRequest*(): CreateAccountRequest =
|
||||
|
|
|
@ -58,10 +58,9 @@ let
|
|||
RARIBLE_MAINNET_API_KEY_RESOLVED* = desktopConfig.raribleMainnetApiKey
|
||||
RARIBLE_TESTNET_API_KEY_RESOLVED* = desktopConfig.raribleTestnetApiKey
|
||||
TENOR_API_KEY_RESOLVED* = desktopConfig.tenorApiKey
|
||||
STATUS_PROXY_MARKET_USER_RESOLVED* = desktopConfig.statusProxyMarketUser
|
||||
STATUS_PROXY_MARKET_PASSWORD_RESOLVED* = desktopConfig.statusProxyMarketPassword
|
||||
STATUS_PROXY_BLOCKCHAIN_USER_RESOLVED* = desktopConfig.statusProxyBlockchainUser
|
||||
STATUS_PROXY_BLOCKCHAIN_PASSWORD_RESOLVED* = desktopConfig.statusProxyBlockchainPassword
|
||||
STATUS_PROXY_STAGE_NAME_RESOLVED* = desktopConfig.statusProxyStageName
|
||||
STATUS_PROXY_USER_RESOLVED* = desktopConfig.statusProxyUser
|
||||
STATUS_PROXY_PASSWORD_RESOLVED* = desktopConfig.statusProxyPassword
|
||||
WALLET_CONNECT_PROJECT_ID* = BUILD_WALLET_CONNECT_PROJECT_ID
|
||||
MIXPANEL_APP_ID* = desktopConfig.mixpanelAppId
|
||||
MIXPANEL_TOKEN* = desktopConfig.mixpanelToken
|
||||
|
|
|
@ -28,12 +28,9 @@ 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_TENOR_API_KEY = "TENOR_API_KEY"
|
||||
const BASE_NAME_STATUS_PROXY_STAGE_NAME = "PROXY_STAGE_NAME"
|
||||
const BASE_NAME_STATUS_PROXY_USER = "PROXY_USER"
|
||||
const BASE_NAME_STATUS_PROXY_PASSWORD = "PROXY_PASSWORD"
|
||||
const BASE_NAME_STATUS_PROXY_MARKET_USER = "PROXY_MARKET_USER"
|
||||
const BASE_NAME_STATUS_PROXY_MARKET_PASSWORD = "PROXY_MARKET_PASSWORD"
|
||||
const BASE_NAME_STATUS_PROXY_BLOCKCHAIN_USER = "PROXY_BLOCKCHAIN_USER"
|
||||
const BASE_NAME_STATUS_PROXY_BLOCKCHAIN_PASSWORD = "PROXY_BLOCKCHAIN_PASSWORD"
|
||||
const BASE_NAME_WALLET_CONNECT_PROJECT_ID = "WALLET_CONNECT_PROJECT_ID"
|
||||
const BASE_NAME_MIXPANEL_APP_ID = "MIXPANEL_APP_ID"
|
||||
const BASE_NAME_MIXPANEL_TOKEN = "MIXPANEL_TOKEN"
|
||||
|
@ -67,10 +64,12 @@ const BUILD_ALCHEMY_ARBITRUM_SEPOLIA_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAM
|
|||
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 BUILD_STATUS_PROXY_MARKET_USER = getEnv(BUILD_TIME_PREFIX & BASE_NAME_STATUS_PROXY_USER)
|
||||
const BUILD_STATUS_PROXY_MARKET_PASSWORD = getEnv(BUILD_TIME_PREFIX & BASE_NAME_STATUS_PROXY_PASSWORD)
|
||||
const BUILD_STATUS_PROXY_BLOCKCHAIN_USER = BUILD_STATUS_PROXY_MARKET_USER
|
||||
const BUILD_STATUS_PROXY_BLOCKCHAIN_PASSWORD = BUILD_STATUS_PROXY_MARKET_PASSWORD
|
||||
|
||||
const
|
||||
DEFAULT_STATUS_PROXY_STAGE_NAME = "test"
|
||||
BUILD_STATUS_PROXY_STAGE_NAME = getEnv(BUILD_TIME_PREFIX & BASE_NAME_STATUS_PROXY_STAGE_NAME, DEFAULT_STATUS_PROXY_STAGE_NAME)
|
||||
const BUILD_STATUS_PROXY_USER = getEnv(BUILD_TIME_PREFIX & BASE_NAME_STATUS_PROXY_USER)
|
||||
const BUILD_STATUS_PROXY_PASSWORD = getEnv(BUILD_TIME_PREFIX & BASE_NAME_STATUS_PROXY_PASSWORD)
|
||||
|
||||
const
|
||||
DEFAULT_TENOR_API_KEY = "DU7DWZ27STB2"
|
||||
|
@ -201,26 +200,21 @@ type StatusDesktopConfig = object
|
|||
desc: "Sets tenor api key"
|
||||
name: $BASE_NAME_TENOR_API_KEY
|
||||
abbr: "tenor-api-key" .}: string
|
||||
statusProxyMarketUser* {.
|
||||
defaultValue: BUILD_STATUS_PROXY_MARKET_USER
|
||||
desc: "Sets status market proxy username"
|
||||
name: $BASE_NAME_STATUS_PROXY_MARKET_USER
|
||||
abbr: "status-proxy-market-user" .}: string
|
||||
statusProxyMarketPassword* {.
|
||||
defaultValue: BUILD_STATUS_PROXY_MARKET_PASSWORD
|
||||
desc: "Sets status market proxy password"
|
||||
name: $BASE_NAME_STATUS_PROXY_MARKET_PASSWORD
|
||||
abbr: "status-proxy-market-password" .}: string
|
||||
statusProxyBlockchainUser* {.
|
||||
defaultValue: BUILD_STATUS_PROXY_BLOCKCHAIN_USER
|
||||
desc: "Sets status blockhain proxy username"
|
||||
name: $BASE_NAME_STATUS_PROXY_BLOCKCHAIN_USER
|
||||
abbr: "status-proxy-blockchain-user" .}: string
|
||||
statusProxyBlockchainPassword* {.
|
||||
defaultValue: BUILD_STATUS_PROXY_BLOCKCHAIN_PASSWORD
|
||||
desc: "Sets status blockchain proxy password"
|
||||
name: $BASE_NAME_STATUS_PROXY_BLOCKCHAIN_PASSWORD
|
||||
abbr: "status-proxy-blockchain-password" .}: string
|
||||
statusProxyStageName* {.
|
||||
defaultValue: BUILD_STATUS_PROXY_STAGE_NAME
|
||||
desc: "Sets status proxy stage name"
|
||||
name: $BASE_NAME_STATUS_PROXY_STAGE_NAME
|
||||
abbr: "status-proxy-stage-name" .}: string
|
||||
statusProxyUser* {.
|
||||
defaultValue: BUILD_STATUS_PROXY_USER
|
||||
desc: "Sets status proxy username"
|
||||
name: $BASE_NAME_STATUS_PROXY_USER
|
||||
abbr: "status-proxy-user" .}: string
|
||||
statusProxyPassword* {.
|
||||
defaultValue: BUILD_STATUS_PROXY_PASSWORD
|
||||
desc: "Sets status proxy password"
|
||||
name: $BASE_NAME_STATUS_PROXY_PASSWORD
|
||||
abbr: "status-proxy-password" .}: string
|
||||
|
||||
# runtime vars
|
||||
dataDir* {.
|
||||
|
|
Loading…
Reference in New Issue