Skip to content

Commit

Permalink
Merge pull request #3719 from BitGo/EA-709-remove-bnb-module
Browse files Browse the repository at this point in the history
Revert "chore(sdk-coin-bnb): create new bnb module"
  • Loading branch information
jimethn committed Jul 14, 2023
2 parents 4ad1971 + fd6ff0e commit 78eb3d9
Show file tree
Hide file tree
Showing 47 changed files with 11 additions and 830 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ COPY --from=builder /tmp/bitgo/modules/sdk-coin-avaxp /var/modules/sdk-coin-avax
COPY --from=builder /tmp/bitgo/modules/sdk-coin-eth /var/modules/sdk-coin-eth/
COPY --from=builder /tmp/bitgo/modules/sdk-coin-bld /var/modules/sdk-coin-bld/
COPY --from=builder /tmp/bitgo/modules/abstract-cosmos /var/modules/abstract-cosmos/
COPY --from=builder /tmp/bitgo/modules/sdk-coin-bnb /var/modules/sdk-coin-bnb/
COPY --from=builder /tmp/bitgo/modules/abstract-eth /var/modules/abstract-eth/
COPY --from=builder /tmp/bitgo/modules/sdk-coin-bsc /var/modules/sdk-coin-bsc/
COPY --from=builder /tmp/bitgo/modules/abstract-eth /var/modules/abstract-eth/
COPY --from=builder /tmp/bitgo/modules/sdk-coin-celo /var/modules/sdk-coin-celo/
COPY --from=builder /tmp/bitgo/modules/sdk-coin-cspr /var/modules/sdk-coin-cspr/
COPY --from=builder /tmp/bitgo/modules/sdk-coin-dot /var/modules/sdk-coin-dot/
Expand Down Expand Up @@ -118,9 +117,8 @@ cd /var/modules/sdk-coin-avaxp && yarn link && \
cd /var/modules/sdk-coin-eth && yarn link && \
cd /var/modules/sdk-coin-bld && yarn link && \
cd /var/modules/abstract-cosmos && yarn link && \
cd /var/modules/sdk-coin-bnb && yarn link && \
cd /var/modules/abstract-eth && yarn link && \
cd /var/modules/sdk-coin-bsc && yarn link && \
cd /var/modules/abstract-eth && yarn link && \
cd /var/modules/sdk-coin-celo && yarn link && \
cd /var/modules/sdk-coin-cspr && yarn link && \
cd /var/modules/sdk-coin-dot && yarn link && \
Expand Down Expand Up @@ -180,9 +178,8 @@ RUN cd /var/bitgo-express && \
yarn link @bitgo/sdk-coin-eth && \
yarn link @bitgo/sdk-coin-bld && \
yarn link @bitgo/abstract-cosmos && \
yarn link @bitgo/sdk-coin-bnb && \
yarn link @bitgo/abstract-eth && \
yarn link @bitgo/sdk-coin-bsc && \
yarn link @bitgo/abstract-eth && \
yarn link @bitgo/sdk-coin-celo && \
yarn link @bitgo/sdk-coin-cspr && \
yarn link @bitgo/sdk-coin-dot && \
Expand Down Expand Up @@ -220,9 +217,9 @@ RUN cd /var/bitgo-express && \
#LINK_END

#LABEL_START
LABEL created="Mon, 10 Jul 2023 17:14:30 GMT"
LABEL created="Thu, 13 Jul 2023 00:56:22 GMT"
LABEL version=9.29.0
LABEL git_hash=04775252dab1b84296f5daeaf8390486bfc92650
LABEL git_hash=8b129c3df223bcea9b3861b3c93e4342b0531803
#LABEL_END

USER node
Expand Down
1 change: 0 additions & 1 deletion modules/account-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"@bitgo/sdk-coin-avaxc": "^2.4.18",
"@bitgo/sdk-coin-avaxp": "^3.5.18",
"@bitgo/sdk-coin-bld": "^1.1.0",
"@bitgo/sdk-coin-bnb": "^1.0.0",
"@bitgo/sdk-coin-bsc": "^3.6.4",
"@bitgo/sdk-coin-celo": "^1.3.27",
"@bitgo/sdk-coin-cspr": "^1.2.27",
Expand Down
5 changes: 0 additions & 5 deletions modules/account-lib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ export { Near };
import * as Bsc from '@bitgo/sdk-coin-bsc';
export { Bsc };

import * as Bnb from '@bitgo/sdk-coin-bnb';
export { Bnb };

import * as Polygon from '@bitgo/sdk-coin-polygon';
export { Polygon };

Expand All @@ -125,8 +122,6 @@ const coinBuilderMap = {
tavaxc: AvaxC.TransactionBuilder,
bsc: Bsc.TransactionBuilder,
tbsc: Bsc.TransactionBuilder,
bnb: Bnb.TransactionBuilder,
tbnb: Bnb.TransactionBuilder,
avaxp: AvaxP.TransactionBuilderFactory,
tavaxp: AvaxP.TransactionBuilderFactory,
hbar: Hbar.TransactionBuilderFactory,
Expand Down
3 changes: 0 additions & 3 deletions modules/account-lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
{
"path": "../sdk-coin-bsc"
},
{
"path": "../sdk-coin-bnb"
},
{
"path": "../sdk-coin-celo"
},
Expand Down
1 change: 0 additions & 1 deletion modules/bitgo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"@bitgo/sdk-coin-bch": "^1.3.27",
"@bitgo/sdk-coin-bcha": "^1.5.22",
"@bitgo/sdk-coin-bld": "^1.1.0",
"@bitgo/sdk-coin-bnb": "^1.0.0",
"@bitgo/sdk-coin-bsc": "^3.6.4",
"@bitgo/sdk-coin-bsv": "^1.3.27",
"@bitgo/sdk-coin-btc": "^1.5.7",
Expand Down
9 changes: 0 additions & 9 deletions modules/bitgo/src/v2/coinFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import {
Bld,
Bsc,
BscToken,
Bnb,
BnbToken,
Bsv,
Btc,
Btg,
Expand Down Expand Up @@ -67,7 +65,6 @@ import {
Tbch,
Tbld,
Tbsc,
Tbnb,
Tbsv,
Tbtc,
Tcelo,
Expand Down Expand Up @@ -118,7 +115,6 @@ function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
globalCoinFactory.register('bcha', Bcha.createInstance);
globalCoinFactory.register('bld', Bld.createInstance);
globalCoinFactory.register('bsc', Bsc.createInstance);
globalCoinFactory.register('bnb', Bnb.createInstance);
globalCoinFactory.register('bsv', Bsv.createInstance);
globalCoinFactory.register('btc', Btc.createInstance);
globalCoinFactory.register('btg', Btg.createInstance);
Expand Down Expand Up @@ -160,7 +156,6 @@ function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
globalCoinFactory.register('tbcha', Tbcha.createInstance);
globalCoinFactory.register('tbld', Tbld.createInstance);
globalCoinFactory.register('tbsc', Tbsc.createInstance);
globalCoinFactory.register('tbnb', Tbnb.createInstance);
globalCoinFactory.register('tbsv', Tbsv.createInstance);
globalCoinFactory.register('tbtc', Tbtc.createInstance);
globalCoinFactory.register('tcelo', Tcelo.createInstance);
Expand Down Expand Up @@ -221,10 +216,6 @@ function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
globalCoinFactory.register(name, coinConstructor);
});

BnbToken.createTokenConstructors().forEach(({ name, coinConstructor }) => {
globalCoinFactory.register(name, coinConstructor);
});

EosToken.createTokenConstructors().forEach(({ name, coinConstructor }) => {
globalCoinFactory.register(name, coinConstructor);
});
Expand Down
2 changes: 0 additions & 2 deletions modules/bitgo/src/v2/coins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Bch, Tbch } from '@bitgo/sdk-coin-bch';
import { Bcha, Tbcha } from '@bitgo/sdk-coin-bcha';
import { Bld, Tbld } from '@bitgo/sdk-coin-bld';
import { Bsc, BscToken, Tbsc } from '@bitgo/sdk-coin-bsc';
import { Bnb, BnbToken, Tbnb } from '@bitgo/sdk-coin-bnb';
import { Bsv, Tbsv } from '@bitgo/sdk-coin-bsv';
import { Btc, Tbtc } from '@bitgo/sdk-coin-btc';
import { Btg } from '@bitgo/sdk-coin-btg';
Expand Down Expand Up @@ -47,7 +46,6 @@ export { AvaxC, AvaxCToken, TavaxC };
export { AvaxP, TavaxP };
export { Bch, Tbch };
export { Bsc, BscToken, Tbsc };
export { Bnb, BnbToken, Tbnb };
export { Bsv, Tbsv };
export { Btc, Tbtc };
export { Btg };
Expand Down
1 change: 0 additions & 1 deletion modules/bitgo/test/browser/browser.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ describe('Coins', () => {
AvaxCToken: 1,
PolygonToken: 1,
BscToken: 1,
BnbToken: 1,
};
Object.keys(BitGoJS.Coin)
.filter((coinName) => !excludedKeys[coinName])
Expand Down
2 changes: 1 addition & 1 deletion modules/bitgo/test/v2/unit/keychains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ describe('V2 Keychains', function () {
});
});

['tbsc', 'tbnb'].forEach((coin) => {
['tbsc'].forEach((coin) => {
it('should create ECDSA TSS Keychains', async function () {
sandbox.stub(ECDSAUtils.EcdsaUtils.prototype, 'createKeychains').resolves(stubbedKeychainsTriplet);
const keychains = await bitgo.coin(coin).keychains().createMpc({
Expand Down
3 changes: 0 additions & 3 deletions modules/bitgo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@
{
"path": "../sdk-coin-bsc"
},
{
"path": "../sdk-coin-bnb"
},
{
"path": "../sdk-coin-bsv"
},
Expand Down
5 changes: 0 additions & 5 deletions modules/sdk-coin-bnb/.eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions modules/sdk-coin-bnb/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions modules/sdk-coin-bnb/.mocharc.yml

This file was deleted.

14 changes: 0 additions & 14 deletions modules/sdk-coin-bnb/.npmignore

This file was deleted.

2 changes: 0 additions & 2 deletions modules/sdk-coin-bnb/.prettierignore

This file was deleted.

3 changes: 0 additions & 3 deletions modules/sdk-coin-bnb/.prettierrc.yml

This file was deleted.

30 changes: 0 additions & 30 deletions modules/sdk-coin-bnb/README.md

This file was deleted.

53 changes: 0 additions & 53 deletions modules/sdk-coin-bnb/package.json

This file was deleted.

29 changes: 0 additions & 29 deletions modules/sdk-coin-bnb/src/bnb.ts

This file was deleted.

39 changes: 0 additions & 39 deletions modules/sdk-coin-bnb/src/bnbToken.ts

This file was deleted.

5 changes: 0 additions & 5 deletions modules/sdk-coin-bnb/src/index.ts

This file was deleted.

6 changes: 0 additions & 6 deletions modules/sdk-coin-bnb/src/lib/index.ts

This file was deleted.

Loading

0 comments on commit 78eb3d9

Please sign in to comment.