-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitgo.ts
40 lines (30 loc) · 906 Bytes
/
bitgo.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// run with 'npx ts-node <filename>.ts'
const { BitGo } = require('@bitgo-beta/bitgo');
import {accessToken} from './secrets';
export enum Environment {
TEST = 'test',
CUSTOM = 'custom',
}
const rootURI = {
test: 'https://app.bitgo-test.com',
custom: 'https://testnet-10-app.bitgo-dev.com',
}
export enum WalletVersion {
TSS = 3,
}
export const environment = Environment.CUSTOM;
export const bitgo = new BitGo({
accessToken: accessToken[environment],
env: environment,
customRootURI: rootURI.custom,
});
// TODO set enterprise ID here
export const enterprise = {
[Environment.TEST]: '6351ac65400e890007ad91703096a880',
[Environment.CUSTOM]: '6358027f54ad210007cb6003cd80439b',
}
export const walletId = '';
export const walletVersion = WalletVersion.TSS;
export const multisigType = 'tss';
export const enterpriseId = enterprise[environment];
export const COIN = 'tpolygon';