Skip to content

Commit

Permalink
feat(sdk-coin-zeta): zeta sdk init along with testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
DinshawKothari committed Jul 27, 2023
1 parent c3f7e9f commit 3dc66ca
Show file tree
Hide file tree
Showing 5 changed files with 2,014 additions and 1,375 deletions.
1 change: 1 addition & 0 deletions modules/account-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"@bitgo/sdk-coin-tia": "^1.1.2",
"@bitgo/sdk-coin-trx": "^1.8.4",
"@bitgo/sdk-coin-xtz": "^1.4.27",
"@bitgo/sdk-coin-zeta": "^1.0.0",
"@bitgo/sdk-core": "^8.10.0",
"@bitgo/sdk-lib-mpc": "^8.5.0",
"@bitgo/statics": "^17.0.1",
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 @@ -86,6 +86,9 @@ export { Sei };
import * as Injective from '@bitgo/sdk-coin-injective';
export { Injective };

import * as Zeta from '@bitgo/sdk-coin-zeta';
export { Zeta };

import * as Sol from '@bitgo/sdk-coin-sol';
export { Sol };

Expand Down Expand Up @@ -158,6 +161,8 @@ const coinBuilderMap = {
tsei: Sei.TransactionBuilderFactory,
injective: Injective.TransactionBuilderFactory,
tinjective: Injective.TransactionBuilderFactory,
zeta: Zeta.TransactionBuilderFactory,
tzeta: Zeta.TransactionBuilderFactory,
};

/**
Expand Down
3 changes: 3 additions & 0 deletions modules/account-lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
{
"path": "../sdk-coin-xtz"
},
{
"path": "../sdk-coin-zeta"
},
{
"path": "../sdk-core"
},
Expand Down
4 changes: 4 additions & 0 deletions modules/bitgo/src/v2/coinFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,12 @@ import {
Txrp,
Txtz,
Tzec,
Tzeta,
Xlm,
Xrp,
Xtz,
Zec,
Zeta,
} from './coins';

function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
Expand Down Expand Up @@ -190,10 +192,12 @@ function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
globalCoinFactory.register('txrp', Txrp.createInstance);
globalCoinFactory.register('txtz', Txtz.createInstance);
globalCoinFactory.register('tzec', Tzec.createInstance);
globalCoinFactory.register('tzeta', Tzeta.createInstance);
globalCoinFactory.register('xlm', Xlm.createInstance);
globalCoinFactory.register('xrp', Xrp.createInstance);
globalCoinFactory.register('xtz', Xtz.createInstance);
globalCoinFactory.register('zec', Zec.createInstance);
globalCoinFactory.register('zeta', Zeta.createInstance);

Erc20Token.createTokenConstructors().forEach(({ name, coinConstructor }) => {
globalCoinFactory.register(name, coinConstructor);
Expand Down
Loading

0 comments on commit 3dc66ca

Please sign in to comment.