Skip to content

[TEMP] Simulate offline behavior by using dummy config values (offline state) #17720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions src/constants.nim
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,31 @@ let
FLEET_SELECTION_ENABLED* = desktopConfig.enableFleetSelection

# build variables
POKT_TOKEN_RESOLVED* = desktopConfig.poktToken
INFURA_TOKEN_RESOLVED* = desktopConfig.infuraToken
INFURA_TOKEN_SECRET_RESOLVED* = desktopConfig.infuraTokenSecret
ALCHEMY_ETHEREUM_MAINNET_TOKEN_RESOLVED* = desktopConfig.alchemyEthereumMainnetToken
ALCHEMY_ETHEREUM_SEPOLIA_TOKEN_RESOLVED* = desktopConfig.alchemyEthereumSepoliaToken
ALCHEMY_ARBITRUM_MAINNET_TOKEN_RESOLVED* = desktopConfig.alchemyArbitrumMainnetToken
ALCHEMY_ARBITRUM_SEPOLIA_TOKEN_RESOLVED* = desktopConfig.alchemyArbitrumSepoliaToken
ALCHEMY_OPTIMISM_MAINNET_TOKEN_RESOLVED* = desktopConfig.alchemyOptimismMainnetToken
ALCHEMY_OPTIMISM_SEPOLIA_TOKEN_RESOLVED* = desktopConfig.alchemyOptimismSepoliaToken
ALCHEMY_BASE_MAINNET_TOKEN_RESOLVED* = desktopConfig.alchemyBaseMainnetToken
ALCHEMY_BASE_SEPOLIA_TOKEN_RESOLVED* = desktopConfig.alchemyBaseSepoliaToken
OPENSEA_API_KEY_RESOLVED* = desktopConfig.openseaApiKey
RARIBLE_MAINNET_API_KEY_RESOLVED* = desktopConfig.raribleMainnetApiKey
RARIBLE_TESTNET_API_KEY_RESOLVED* = desktopConfig.raribleTestnetApiKey
TENOR_API_KEY_RESOLVED* = desktopConfig.tenorApiKey
STATUS_PROXY_STAGE_NAME_RESOLVED* = desktopConfig.statusProxyStageName
STATUS_PROXY_USER_RESOLVED* = desktopConfig.statusProxyUser
STATUS_PROXY_PASSWORD_RESOLVED* = desktopConfig.statusProxyPassword
ETH_RPC_PROXY_USER_RESOLVED* = desktopConfig.ethRpcProxyUser
ETH_RPC_PROXY_PASSWORD_RESOLVED* = desktopConfig.ethRpcProxyPassword
ETH_RPC_PROXY_URL_RESOLVED* = desktopConfig.ethRpcProxyUrl
POKT_TOKEN_RESOLVED* = "foo"
INFURA_TOKEN_RESOLVED* = "foo"
INFURA_TOKEN_SECRET_RESOLVED* = "foo"
ALCHEMY_ETHEREUM_MAINNET_TOKEN_RESOLVED* = "foo"
ALCHEMY_ETHEREUM_SEPOLIA_TOKEN_RESOLVED* = "foo"
ALCHEMY_ARBITRUM_MAINNET_TOKEN_RESOLVED* = "foo"
ALCHEMY_ARBITRUM_SEPOLIA_TOKEN_RESOLVED* = "foo"
ALCHEMY_OPTIMISM_MAINNET_TOKEN_RESOLVED* = "foo"
ALCHEMY_OPTIMISM_SEPOLIA_TOKEN_RESOLVED* = "foo"
ALCHEMY_BASE_MAINNET_TOKEN_RESOLVED* = "foo"
ALCHEMY_BASE_SEPOLIA_TOKEN_RESOLVED* = "foo"
OPENSEA_API_KEY_RESOLVED* = "foo"
RARIBLE_MAINNET_API_KEY_RESOLVED* = "foo"
RARIBLE_TESTNET_API_KEY_RESOLVED* = "foo"
TENOR_API_KEY_RESOLVED* = "foo"
STATUS_PROXY_STAGE_NAME_RESOLVED* = "foo"
STATUS_PROXY_USER_RESOLVED* = "foo"
STATUS_PROXY_PASSWORD_RESOLVED* = "foo"
ETH_RPC_PROXY_USER_RESOLVED* = "foo"
ETH_RPC_PROXY_PASSWORD_RESOLVED* = "foo"
ETH_RPC_PROXY_URL_RESOLVED* = "foo"

WALLET_CONNECT_PROJECT_ID* = BUILD_WALLET_CONNECT_PROJECT_ID
MIXPANEL_APP_ID* = desktopConfig.mixpanelAppId
MIXPANEL_TOKEN* = desktopConfig.mixpanelToken
MIXPANEL_APP_ID* = "foo"
MIXPANEL_TOKEN* = "foo"
BUILD_MODE* = if defined(production): "prod" else: "test"
HTTP_API_ENABLED* = desktopConfig.httpApiEnabled
WS_API_ENABLED* = desktopConfig.wsApiEnabled
Expand Down
2 changes: 1 addition & 1 deletion vendor/status-go
Submodule status-go updated 67 files
+1 −0 .gitignore
+9 −94 api/default_networks.go
+5 −0 api/defaults.go
+1 −1 centralizedmetrics/providers/appsflyer.go
+1 −1 centralizedmetrics/providers/mixpanel.go
+10 −2 mobile/status.go
+37 −0 params/cluster.go
+72 −0 params/cluster_test.go
+1 −1 params/config.go
+3 −3 params/defaults.go
+1 −0 protocol/linkpreview_unfurler_opengraph.go
+1 −1 protocol/messenger_linkpreview.go
+0 −23 protocol/messenger_storenode_request_test.go
+1 −1 protocol/pushnotificationserver/server.go
+5 −0 protocol/requests/initialize_application.go
+3 −3 services/connector/commands/send_transaction_test.go
+1 −1 services/connector/connector_flows_test.go
+1 −1 services/gif/gif.go
+2 −2 services/wallet/onramp/provider_mercuryo.go
+1 −1 services/wallet/onramp/provider_moonpay.go
+1 −1 services/wallet/onramp/provider_ramp.go
+35 −95 services/wallet/requests/router_input_params.go
+1 −1 services/wallet/routeexecution/manager.go
+2 −83 services/wallet/router/filter.go
+12 −859 services/wallet/router/filter_test.go
+2 −2 services/wallet/router/pathprocessor/processor_bridge_celar.go
+1 −1 services/wallet/router/pathprocessor/processor_bridge_hop.go
+57 −213 services/wallet/router/router.go
+5 −1 services/wallet/router/router_helper.go
+0 −62 services/wallet/router/router_test.go
+93 −1,107 services/wallet/router/router_test_data.go
+0 −2 services/wallet/router/routes/router_path.go
+7 −8 services/wallet/router/routes/router_path_test.go
+1 −8 services/wallet/service.go
+0 −19 services/wallet/thirdparty/collectibles/alchemy/client.go
+0 −7 services/wallet/thirdparty/collectibles/opensea/client_v2.go
+0 −7 services/wallet/thirdparty/collectibles/rarible/client.go
+2 −7 services/wallet/thirdparty/decoder/fourbyte/client.go
+2 −7 services/wallet/thirdparty/decoder/fourbytegithub/client.go
+1 −1 services/wallet/thirdparty/market/coingecko/client.go
+1 −1 services/wallet/thirdparty/market/cryptocompare/client.go
+1 −1 services/wallet/thirdparty/mercuryo/request_currencies.go
+1 −1 services/wallet/thirdparty/paraswap/request_build_transaction.go
+1 −1 services/wallet/thirdparty/paraswap/request_price_route.go
+1 −1 services/wallet/thirdparty/paraswap/request_token_list.go
+639 −639 services/wallet/token/token-lists/default-lists/aave.go
+1 −1 services/wallet/token/token-lists/default-lists/status.go
+3 −3 services/wallet/token/token-lists/default-lists/tokens_sources.go
+1,202 −1,202 services/wallet/token/token-lists/default-lists/uniswap.go
+15 −0 tests-functional/README.MD
+25 −0 tests-functional/clients/services/wakuext.py
+3 −0 tests-functional/clients/status_backend.py
+19 −0 tests-functional/conftest.py
+5 −0 tests-functional/resources/enums.py
+130 −123 tests-functional/schemas/wakuext_chats
+156 −0 tests-functional/schemas/wakuext_chatsPreview
+139 −0 tests-functional/schemas/wakuext_clearHistory
+135 −0 tests-functional/schemas/wakuext_createOneToOneChat
+277 −0 tests-functional/schemas/wakuext_deactivateChat
+0 −1 tests-functional/steps/eth_rpc.py
+0 −3 tests-functional/tests/test_router.py
+97 −8 tests-functional/tests/test_wakuext_chats.py
+0 −1 tests-functional/tests/test_wallet_activity_session.py
+41 −0 waku/types/mailserver.go
+28 −0 waku/types/mailserver_test.go
+60 −34 wakuv2/gowaku.go
+160 −0 wakuv2/gowaku_test.go