aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/constants.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-15 06:54:41 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-15 06:54:41 +0800
commitfe23bf9e51dab87ee8c8995a9d53438daff19ea0 (patch)
treeffaeb68d17894f9efdb03fd7819ff91ca35b28b0 /packages/instant/src/constants.ts
parent1aae112d0e2c2b6c7ac16b491aa8345fe2aff486 (diff)
downloaddexon-sol-tools-fe23bf9e51dab87ee8c8995a9d53438daff19ea0.tar
dexon-sol-tools-fe23bf9e51dab87ee8c8995a9d53438daff19ea0.tar.gz
dexon-sol-tools-fe23bf9e51dab87ee8c8995a9d53438daff19ea0.tar.bz2
dexon-sol-tools-fe23bf9e51dab87ee8c8995a9d53438daff19ea0.tar.lz
dexon-sol-tools-fe23bf9e51dab87ee8c8995a9d53438daff19ea0.tar.xz
dexon-sol-tools-fe23bf9e51dab87ee8c8995a9d53438daff19ea0.tar.zst
dexon-sol-tools-fe23bf9e51dab87ee8c8995a9d53438daff19ea0.zip
feat: use capital values for enums
Diffstat (limited to 'packages/instant/src/constants.ts')
-rw-r--r--packages/instant/src/constants.ts9
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',
+};