Skip to content

Commit

Permalink
feat(account-lib): expose Ton from sdk
Browse files Browse the repository at this point in the history
TICKET: EA-1618
  • Loading branch information
noel-bitgo committed Oct 17, 2023
1 parent 1aad4b7 commit 14c8b18
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/account-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@bitgo/sdk-coin-stx": "^2.3.11",
"@bitgo/sdk-coin-sui": "^4.3.0",
"@bitgo/sdk-coin-tia": "^1.4.11",
"@bitgo/sdk-coin-ton": "^1.0.0",
"@bitgo/sdk-coin-trx": "^1.16.0",
"@bitgo/sdk-coin-xtz": "^1.6.11",
"@bitgo/sdk-coin-zeta": "^1.9.0",
Expand Down
5 changes: 5 additions & 0 deletions modules/account-lib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ export { Opeth };
import * as Sui from '@bitgo/sdk-coin-sui';
export { Sui };

import * as Ton from '@bitgo/sdk-coin-ton';
export { Ton };

const coinBuilderMap = {
trx: Trx.WrappedBuilder,
ttrx: Trx.WrappedBuilder,
Expand Down Expand Up @@ -185,6 +188,8 @@ const coinBuilderMap = {
tarbeth: Arbeth.TransactionBuilder,
opeth: Opeth.TransactionBuilder,
topeth: Opeth.TransactionBuilder,
ton: Ton.TransactionBuilder,
tton: Ton.TransactionBuilder,
};

/**
Expand Down
1 change: 1 addition & 0 deletions modules/sdk-coin-ton/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './lib';
export * from './register';
export * from './ton';
export * from './tton';
8 changes: 8 additions & 0 deletions modules/sdk-coin-ton/src/register.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { BitGoBase } from '@bitgo/sdk-core';
import { Ton } from './ton';
import { Tton } from './tton';

export const register = (sdk: BitGoBase): void => {
sdk.register('ton', Ton.createInstance);
sdk.register('tton', Tton.createInstance);
};

0 comments on commit 14c8b18

Please sign in to comment.