2023-09-07 04:13:38 +00:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
|
|
|
class DerivationPath(Enum):
|
|
|
|
CUSTOM = 'Custom'
|
|
|
|
ETHEREUM = 'Ethereum'
|
|
|
|
ETHEREUM_ROPSTEN = 'Ethereum Testnet (Ropsten)'
|
|
|
|
ETHEREUM_LEDGER = 'Ethereum (Ledger)'
|
|
|
|
ETHEREUM_LEDGER_LIVE = 'Ethereum (Ledger Live/KeepKey)'
|
2023-10-25 12:33:18 +00:00
|
|
|
STATUS_ACCOUNT_DERIVATION_PATH = "m / 44' / 60' / 0' / 0 / 0"
|
2023-09-20 14:18:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
class WalletNetworkSettings(Enum):
|
2023-10-13 13:41:09 +00:00
|
|
|
EDIT_NETWORK_LIVE_TAB = 'Live Network'
|
|
|
|
EDIT_NETWORK_TEST_TAB = 'Test Network'
|
2023-09-20 14:18:00 +00:00
|
|
|
TESTNET_SUBTITLE = 'Switch entire Status app to testnet only mode'
|
2023-09-27 12:26:10 +00:00
|
|
|
TESTNET_ENABLED_TOAST_MESSAGE = 'Testnet mode turned on'
|
|
|
|
TESTNET_DISABLED_TOAST_MESSAGE = 'Testnet mode turned off'
|
2023-10-12 16:28:04 +00:00
|
|
|
ACKNOWLEDGMENT_CHECKBOX_TEXT = ('I understand that changing network settings can cause unforeseen issues, errors, '
|
|
|
|
'security risks and potentially even loss of funds.')
|
|
|
|
REVERT_TO_DEFAULT_LIVE_MAINNET_TOAST_MESSAGE = 'Live network settings for Mainnet reverted to default'
|
2023-10-13 13:41:09 +00:00
|
|
|
REVERT_TO_DEFAULT_TEST_MAINNET_TOAST_MESSAGE = 'Test network settings for Mainnet reverted to default'
|
2023-10-19 13:56:33 +00:00
|
|
|
STATUS_ACCOUNT_DEFAULT_NAME = 'Status account'
|
|
|
|
STATUS_ACCOUNT_DEFAULT_COLOR = '#2a4af5'
|
2023-10-04 10:46:17 +00:00
|
|
|
|
2023-10-17 15:57:59 +00:00
|
|
|
|
2023-10-25 12:33:18 +00:00
|
|
|
class WalletAccountSettings(Enum):
|
|
|
|
STATUS_ACCOUNT_ORIGIN = 'Derived from your default Status keypair'
|
|
|
|
STORED_ON_DEVICE = 'On device'
|
|
|
|
|
|
|
|
|
2023-10-04 10:46:17 +00:00
|
|
|
class WalletNetworkNaming(Enum):
|
|
|
|
LAYER1_ETHEREUM = 'Mainnet'
|
|
|
|
LAYER2_OPTIMISIM = 'Optimism'
|
|
|
|
LAYER2_ARBITRUM = 'Arbitrum'
|
|
|
|
ETHEREUM_MAINNET_NETWORK_ID = 1
|
|
|
|
ETHEREUM_GOERLI_NETWORK_ID = 5
|
|
|
|
OPTIMISM_MAINNET_NETWORK_ID = 10
|
|
|
|
OPTIMISM_GOERLI_NETWORK_ID = 420
|
|
|
|
ARBITRUM_MAINNET_NETWORK_ID = 42161
|
|
|
|
ARBITRUM_GOERLI_NETWORK_ID = 421613
|
|
|
|
|
|
|
|
|
|
|
|
class WalletNetworkDefaultValues(Enum):
|
2023-10-13 14:49:44 +00:00
|
|
|
ETHEREUM_LIVE_MAIN = 'https://eth-archival.gateway.pokt.network'
|
|
|
|
ETHEREUM_TEST_MAIN = 'https://goerli-archival.gateway.pokt.network'
|
|
|
|
ETHEREUM_LIVE_FAILOVER = 'https://mainnet.infura.io'
|
|
|
|
ETHEREUM_TEST_FAILOVER = 'https://goerli.infura.io'
|
2023-10-06 06:05:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
class WalletEditNetworkErrorMessages(Enum):
|
|
|
|
PINGUNSUCCESSFUL = 'RPC appears to be either offline or this is not a valid JSON RPC endpoint URL'
|
|
|
|
PINGVERIFIED = 'RPC successfully reached'
|