diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-15 06:54:41 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-15 06:54:41 +0800 |
commit | fe23bf9e51dab87ee8c8995a9d53438daff19ea0 (patch) | |
tree | ffaeb68d17894f9efdb03fd7819ff91ca35b28b0 /packages/instant/src/constants.ts | |
parent | 1aae112d0e2c2b6c7ac16b491aa8345fe2aff486 (diff) | |
download | dexon-0x-contracts-fe23bf9e51dab87ee8c8995a9d53438daff19ea0.tar.gz dexon-0x-contracts-fe23bf9e51dab87ee8c8995a9d53438daff19ea0.tar.zst dexon-0x-contracts-fe23bf9e51dab87ee8c8995a9d53438daff19ea0.zip |
feat: use capital values for enums
Diffstat (limited to 'packages/instant/src/constants.ts')
-rw-r--r-- | packages/instant/src/constants.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/instant/src/constants.ts b/packages/instant/src/constants.ts index 8170ae354..5bd2349b3 100644 --- a/packages/instant/src/constants.ts +++ b/packages/instant/src/constants.ts @@ -1,6 +1,6 @@ import { BigNumber } from '@0x/utils'; -import { AccountNotReady, AccountState, Network } from './types'; +import { AccountNotReady, AccountState, Network, ProviderType } from './types'; export const BIG_NUMBER_ZERO = new BigNumber(0); export const ETH_DECIMALS = 18; @@ -41,3 +41,10 @@ export const LOADING_ACCOUNT: AccountNotReady = { export const LOCKED_ACCOUNT: AccountNotReady = { state: AccountState.Locked, }; +export const PROVIDER_TYPE_TO_NAME: { [key in ProviderType]: string } = { + [ProviderType.Cipher]: 'Cipher', + [ProviderType.MetaMask]: 'MetaMask', + [ProviderType.Mist]: 'Mist', + [ProviderType.CoinbaseWallet]: 'Coinbase Wallet', + [ProviderType.Parity]: 'Parity', +}; |