config library
This module stores various constants and predefined wallet configurations.
Classes
- ALEOChain
-
Provide default config for aleo, address type is AddressType.REGULAR, bip44 path is BTC_PATH.
Testnet and mainnet share the same setting. - ALPHChain
-
Provide default config for alph, address type is AddressType.BASE58, bip44 path is ALPH_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate AlphCoin. - APTOSChain
-
Provide default config for aptos, address type is AddressType.REGULAR, bip44 path is APTOS_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate AptosCoin. - ATOMChain
-
Provide default config for cosmos, address type is AddressType.BECH32, bip44 path is ATOM_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate Cosmos. - BCHChain
-
Provide default config for bch, address type is AddressType.BTC, bip44 path is BCH_PATH.
Testnet and mainnet share the same setting. UseHDWallet
to to instantiate wallet. - BELChain
-
Provide default config for bel, address type is AddressType.BTC.
Testnet and mainnet share the same setting. Use
HDWallet
to to instantiate wallet. - BTCChain
-
Provide default config for btc, address type is AddressType.BTC, bip44 path is BTC_PATH.
Testnet and mainnet share the same setting. UseHDWallet
to to instantiate wallet. - CKBChain
-
Provide default config for ckb, address type is AddressType.BECH32, bip44 path is CKB_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate CkbCoin. - ConfChain
- To save config of chain, including mainnet wallet setting and testnet one. The name is a unique identification.
- DefaultChain
-
Provide default chain setting, address type is AddressType.NONE, bip44 path is BTC_PATH.
Testnet and mainnet share the same setting. - DOGEChain
-
Provide default config for doge, address type is AddressType.BTC, bip44 path is DOGE_PATH.
Testnet and mainnet share the same setting. UseHDWallet
to to instantiate wallet. - DOTChain
-
Provide default config for dot, address type is AddressType.REGULAR, bip44 path is DOT_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate DotCoin. - ETHChain
-
Provide default config for eth, address type is AddressType.ETH, bip44 path is ETH_PATH.
Testnet and mainnet share the same setting. Use HDWallet to to instantiate wallet. - FILChain
-
Provide default config for filecoin, address type is AddressType.FIL, bip44 path is FILECOIN_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate AlphCoin. - HNSChain
-
Provide default config for hns, address type is AddressType.BECH32, bip44 path is HNS_PATH.
Testnet and mainnet share the different setting. Use mainnet to instantiate HnsCoin. - ICPChain
-
Provide default config for icp, address type is AddressType.REGULAR, bip44 path is ICP_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate IcpCoin. - KASChain
-
Provide default config for kaspa, address type is AddressType.KAS, bip44 path is KAS_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate KasCoin. - KAVAChain
-
Provide default config for kava, address type is AddressType.BECH32, bip44 path is KAVA_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate Cosmos. - KLSChain
-
Provide default config for karlsen, address type is AddressType.KAS, bip44 path is KLS_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate KasCoin. - LTCChain
-
Provide default config for ltc, address type is AddressType.BTC, bip44 path is LTC_PATH.
Testnet and mainnet share the same setting. UseHDWallet
to to instantiate wallet. - NEARChain
-
Provide default config for near, address type is AddressType.REGULAR, bip44 path is NEAR_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate NearCoin. - SCChain
-
Provide default config for sc, address type is AddressType.REGULAR, bip44 path is BTC_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate SiaCoin. - SEIChain
-
Provide default config for sei, address type is AddressType.BECH32, bip44 path is ATOM_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate Cosmos. - SOLChain
-
Provide default config for sol, address type is AddressType.REGULAR, bip44 path is SOL_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate SolCoin. - SUIChain
-
Provide default config for sui, address type is AddressType.REGULAR, bip44 path is SUI_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate SuiCoin. - TONChain
-
Provide default config for ton, address type is AddressType.REGULAR, bip44 path is SOL_PATH.
Testnet and mainnet share the same setting. - TRXChain
-
Provide default config for trx, address type is AddressType.REGULAR, bip44 path is TRX_PATH.
Testnet and mainnet share the same setting. - XRPChain
-
Provide default config for xrp, address type is AddressType.REGULAR, bip44 path is XRP_PATH.
Testnet and mainnet share the same setting. Use mainnet to instantiate XrpCoin.
Constants
- ALPH_ADDRESS_REG → const String
-
ALPH_ADDRESS_REG:
^[1-9A-HJ-NP-Za-km-z]+$
- ALPH_PATH → const String
- ALPH_PATH: m/44'/1234'/0'/0/0
- APTOS_ADDRESS_REG → const String
-
APTOS_ADDRESS_REG:
^0x[a-fA-F0-9]{64}$
- APTOS_PATH → const String
- APTOS_PATH: "m/44'/637'/0'/0'/0'";
- ATOM_PATH → const String
- ATOM_PATH: "m/44'/118'/0'/0/0";
- ATOM_PREFIX → const String
- ATOM_PREFIX: cosmos;
- BCH_PATH → const String
- BCH_PATH: "m/44'/145'/0'/0/0";
- BITCOINCASH_PREFIX → const String
- BITCOINCASH_PREFIX: bitcoincash;
- BTC_ADDRESS_REG → const String
-
BTC_ADDRESS_REG:
^([a-km-zA-HJ-NP-Z1-9]{27,34})|(bitcoincash:[a-z0-9]{42})|(bc[a-zA-Z0-9]{25,87})$
- BTC_PATH → const String
- BTC_PATH: "m/44'/0'/0'/0/0";
- CKB_PATH → const String
- CKB_PATH: "m/44'/309'/0'/0/0";
- CKB_PREFIX → const String
- CKB_PREFIX: ckb;
- COMMON_REG → const String
-
COMMON_REG:
^[?()=#~+%@.:\-_a-zA-Z0-9]+$
- DOGE_PATH → const String
- DOGE_PATH: "m/44'/3'/0'/0/0";
- DOT_ADDRESS_REG → const String
-
DOT_ADDRESS_REG:
^[1|5][a-zA-Z0-9]{46,47}$
- DOT_PATH → const String
- DOT_PATH: "m/44'/354'/0'/0'/0'";
- ETH_ADDRESS_REG → const String
-
ETH_ADDRESS_REG:
^0x[a-fA-F0-9]{40}$
- ETH_PATH → const String
- ETH_PATH: "m/44'/60'/0'/0/0";
- FILECOIN_MAINNET_REG → const String
-
COMMON_REG:
^[?()=#~+%@.:\-_a-zA-Z0-9]+$
- FILECOIN_PATH → const String
- FILECOIN_PATH: "m/44'/461'/0'/0/0";
- FILECOIN_PREFIX_EVM → const String
- FILECOIN_PREFIX_EVM: f1;
- FILECOIN_PREFIX_MAINNET → const String
- FILECOIN_PREFIX_MAINNET: f1;
- FILECOIN_PREFIX_TESTNET → const String
- FILECOIN_PREFIX_TESTNET: f1;
- FILECOIN_TESTNET_REG → const String
- HNS_PATH → const String
- HNS_PATH: "m/44'/5353'/0'/0/0";
- HNS_PREFIX → const String
- HNS_PREFIX: hs;
- ICP_ADDRESS_REG → const String
-
ICP_ADDRESS_REG:
^[0-9a-fA-F]{64}$
- ICP_PATH → const String
- ICP_PATH : "m/44'/223'/0'/0/0";
- KAS_PATH → const String
- KAS_PATH: "m/44'/111111'/0'/0/0";
- KAS_PREFIX → const String
- KAS_PREFIX: kaspa;
- KAVA_PATH → const String
- KAVA_PATH: "m/44'/459'/0'/0/0";
- KAVA_PREFIX → const String
- KAVA_PREFIX: kava;
- KLS_PATH → const String
- KLS_PATH: "m/44'/121337'/0'";
- KLS_PREFIX → const String
- KLS_PREFIX: karlsen;
- LTC_PATH → const String
- LTC_PATH: "m/44'/2'/0'/0/0";
- NEAR_ADDRESS_REG → const String
-
NEAR_ADDRESS_REG:
^[0-9a-fA-F]{64}$
- NEAR_PATH → const String
- NEAR_PATH: "m/44'/397'/0'";
- SC_ADDRESS_REG → const String
-
SC_ADDRESS_REG:
^[a-z0-9]{76}$
- SEI_PREFIX → const String
- SEI_PREFIX: sei;
- SOL_ADDRESS_REG → const String
-
SOL_ADDRESS_REG:
^([1-9A-HJ-NP-Za-km-z]{44})$
- SOL_PATH → const String
- SOL_PATH: "m/44'/501'/0'/0'";
- SUI_ADDRESS_REG → const String
-
SUI_ADDRESS_REG:
^0x[0-9a-f]{64}$
- SUI_PATH → const String
- SUI_PATH: "m/44'/784'/0'/0'/0'";
- TRX_ADDRESS_REG → const String
-
TRX_ADDRESS_REG:
^T[a-zA-Z0-9]{33}
- TRX_PATH → const String
- TRX_PATH: "m/44'/195'/0'/0/0";
- XRP_ADDRESS_REG → const String
-
XRP_ADDRESS_REG:
^r(?![IOl])[0-9a-km-zA-HJ-NP-Z]{25,35}$
- XRP_PATH → const String
- XRP_PATH: "m/44'/144'/0'/0/0";
Properties
-
chainConfigs
→ List<
ConfChain> -
Chain config list supported in this repository.
final
Functions
-
getChainConfig(
String name) → ConfChain -
Obtain chain configuration through unique index
name
.