-
Notifications
You must be signed in to change notification settings - Fork 302
Expand file tree
/
Copy pathconstants.ts
More file actions
13 lines (11 loc) · 885 Bytes
/
constants.ts
File metadata and controls
13 lines (11 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
import { CosmosUtils } from '@bitgo/abstract-cosmos';
const cosmosUtils = new CosmosUtils();
export const validDenoms = ['nhash', 'uhash', 'mhash', 'hash', ...cosmosUtils.getTokenDenomsUsingCoinFamily('hash')];
export const mainnetAccountAddressRegex = /^(pb)1(['qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38,58})$/;
export const mainnetValidatorAddressRegex = /^(pbvaloper)1(['qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38})$/;
export const mainnetContractAddressRegex = /^(pb)1(['qpzry9x8gf2tvdw0s3jn54khce6mua7l]+)$/;
export const MAINNET_ADDRESS_PREFIX = 'pb';
export const testnetAccountAddressRegex = /^(tp)1(['qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38,58})$/;
export const testnetValidatorAddressRegex = /^(tpvaloper)1(['qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38})$/;
export const testnetContractAddressRegex = /^(tp)1(['qpzry9x8gf2tvdw0s3jn54khce6mua7l]+)$/;
export const TESTNET_ADDRESS_PREFIX = 'tp';