Skip to content

Commit 0d8ad0a

Browse files
author
Tyler Levine
authored
BG-14814 remove v1 examples and update ts/js examples
2 parents 5a2efc1 + 68e4c94 commit 0d8ad0a

54 files changed

Lines changed: 27 additions & 1656 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/core/example/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,3 @@ In this directory, you can find examples on how to use the BitGoJS SDK with Type
77
## `js` directory
88

99
In this directory, you can find examples on how to use the BitGoJS SDK with Javascript. These examples use coroutine syntax with `yield`.
10-
11-
## `v1` directory
12-
13-
In this directory, you can find example on how to use the Version 1 BitGoJS SDK API with Javascript. These examples are for our deprecated v1 platform, and should not be followed for new code. They are included here for historical reasons and will be removed in the future. These examples use the older node callback syntax to handle asynchronous behavior.
14-

modules/core/example/js/create-policy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright 2019, BitGo, Inc. All Rights Reserved.
88
*/
99

10-
const BitGoJS = require('../../dist/src');
10+
const BitGoJS = require('bitgo');
1111
const bitgo = new BitGoJS.BitGo({ env: 'test' });
1212
const Promise = require('bluebird');
1313

modules/core/example/js/create-wallet-addresses.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2019, BitGo, Inc. All Rights Reserved.
55
*/
6-
const BitGoJS = require('../../dist/src');
6+
const BitGoJS = require('bitgo');
77
const bitgo = new BitGoJS.BitGo({ env: 'test' });
88
const Promise = require('bluebird');
99

modules/core/example/js/create-wallet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright 2019, BitGo, Inc. All Rights Reserved.
1212
*/
1313

14-
const BitGoJS = require('../../dist/src');
14+
const BitGoJS = require('bitgo');
1515
const bitgo = new BitGoJS.BitGo({ env: 'test' });
1616
const Promise = require('bluebird');
1717

modules/core/example/js/get-maximum-spendable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright 2019, BitGo, Inc. All Rights Reserved.
1212
*/
1313

14-
const BitGoJS = require('../../dist/src');
14+
const BitGoJS = require('bitgo');
1515
const bitgo = new BitGoJS.BitGo({ env: 'test' });
1616
const Promise = require('bluebird');
1717

modules/core/example/js/get-wallet-balance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright 2019, BitGo, Inc. All Rights Reserved.
99
*/
10-
const BitGoJS = require('../../dist/src');
10+
const BitGoJS = require('bitgo');
1111
const bitgo = new BitGoJS.BitGo({ env: 'test' });
1212
const Promise = require('bluebird');
1313

modules/core/example/js/get-wallet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Copyright 2019, BitGo, Inc. All Rights Reserved.
99
*/
1010

11-
const BitGoJS = require('../../dist/src');
11+
const BitGoJS = require('bitgo');
1212
const bitgo = new BitGoJS.BitGo({ env: 'test' });
1313
const Promise = require('bluebird');
1414

modules/core/example/js/list-wallet-shares.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Copyright 2019, BitGo, Inc. All Rights Reserved.
99
*/
1010

11-
const BitGoJS = require('../../dist/src');
11+
const BitGoJS = require('bitgo');
1212
const bitgo = new BitGoJS.BitGo({ env: 'test' });
1313
const Promise = require('bluebird');
1414

modules/core/example/js/list-wallet-transfers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright 2019, BitGo, Inc. All Rights Reserved.
88
*/
9-
const BitGoJS = require('../../dist/src');
9+
const BitGoJS = require('bitgo');
1010
const bitgo = new BitGoJS.BitGo({ env: 'test' });
1111
const Promise = require('bluebird');
1212

modules/core/example/js/list-wallets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Copyright 2019, BitGo, Inc. All Rights Reserved.
99
*/
1010

11-
const BitGoJS = require('../../dist/src');
11+
const BitGoJS = require('bitgo');
1212
const bitgo = new BitGoJS.BitGo({ env: 'test' });
1313
const Promise = require('bluebird');
1414

0 commit comments

Comments
 (0)