mars-v2-frontend/types/index.ts
Gustavo Mauricio 28c53b1e59
Wallets integration (#3)
* keplr/metamask integration initial commit

* chains settings and type definitions. notifications prototype

* fix: dom nested buttons

* address copied toast

* react-toastify colors

* wallet store and initial queries setup. zustand and react query dependencies added

* _app code cleanup

* remove obsolete WalletContext

* unused import

* walletStore initial commit

* leftover component reference removed

* fix: react hydration mismatch wallet component

* metamask conditional click handler

* connect modal minor tweaks and wallet installation urls added
2022-09-14 12:28:18 +01:00

54 lines
1.0 KiB
TypeScript

// ENUMS
export enum EthereumChainId {
Mainnet = 1,
Ropsten = 3,
Rinkeby = 4,
Goerli = 5,
Kovan = 42,
Injective = 888,
Ganache = 1337,
HardHat = 31337,
}
export enum ChainId {
Mainnet = "injective-1",
Testnet = "injective-888",
Devnet = "injective-777",
}
export enum Wallet {
Metamask = "metamask",
Ledger = "ledger",
LedgerLegacy = "ledger-legacy",
Trezor = "trezor",
Keplr = "keplr",
Torus = "torus",
WalletConnect = "wallet-connect",
}
// COSMOS
export enum CosmosChainId {
Injective = "injective-1",
Cosmoshub = "cosmoshub-4",
Juno = "juno-1",
Osmosis = "osmosis-1",
Terra = "columbus-5",
TerraUST = "columbus-5",
Chihuahua = "chihuahua-1",
Axelar = "axelar-dojo-1",
Evmos = "evmos_9001-2",
Persistence = "core-1",
Secret = "secret-4",
Stride = "stride-1",
}
export enum TestnetCosmosChainId {
Injective = "injective-888",
Cosmoshub = "cosmoshub-testnet",
}
export enum DevnetCosmosChainId {
Injective = "injective-777",
Injective1 = "injective-777",
}