Skip to content

Commit d93936f

Browse files
committed
feat(sdk-coin-init): add SDK Skeleton for Initia
TICKET: COIN-3996
1 parent 8a46f83 commit d93936f

29 files changed

+434
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
/modules/sdk-coin-ethlike/ @BitGo/ethalt-team
6767
/modules/sdk-coin-hbar/ @BitGo/ethalt-team
6868
/modules/sdk-coin-icp/ @BitGo/ethalt-team
69+
/modules/sdk-coin-init/ @BitGo/ethalt-team
6970
/modules/sdk-coin-mon/ @BitGo/ethalt-team
7071
/modules/sdk-coin-mantra/ @BitGo/ethalt-team
7172
/modules/sdk-coin-near/ @BitGo/ethalt-team

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ COPY --from=builder /tmp/bitgo/modules/sdk-coin-flr /var/modules/sdk-coin-flr/
8181
COPY --from=builder /tmp/bitgo/modules/sdk-coin-hash /var/modules/sdk-coin-hash/
8282
COPY --from=builder /tmp/bitgo/modules/sdk-coin-hbar /var/modules/sdk-coin-hbar/
8383
COPY --from=builder /tmp/bitgo/modules/sdk-coin-icp /var/modules/sdk-coin-icp/
84+
COPY --from=builder /tmp/bitgo/modules/sdk-coin-init /var/modules/sdk-coin-init/
8485
COPY --from=builder /tmp/bitgo/modules/sdk-coin-injective /var/modules/sdk-coin-injective/
8586
COPY --from=builder /tmp/bitgo/modules/sdk-coin-islm /var/modules/sdk-coin-islm/
8687
COPY --from=builder /tmp/bitgo/modules/sdk-coin-mantra /var/modules/sdk-coin-mantra/
@@ -172,6 +173,7 @@ cd /var/modules/sdk-coin-flr && yarn link && \
172173
cd /var/modules/sdk-coin-hash && yarn link && \
173174
cd /var/modules/sdk-coin-hbar && yarn link && \
174175
cd /var/modules/sdk-coin-icp && yarn link && \
176+
cd /var/modules/sdk-coin-init && yarn link && \
175177
cd /var/modules/sdk-coin-injective && yarn link && \
176178
cd /var/modules/sdk-coin-islm && yarn link && \
177179
cd /var/modules/sdk-coin-mantra && yarn link && \
@@ -266,6 +268,7 @@ RUN cd /var/bitgo-express && \
266268
yarn link @bitgo/sdk-coin-hash && \
267269
yarn link @bitgo/sdk-coin-hbar && \
268270
yarn link @bitgo/sdk-coin-icp && \
271+
yarn link @bitgo/sdk-coin-init && \
269272
yarn link @bitgo/sdk-coin-injective && \
270273
yarn link @bitgo/sdk-coin-islm && \
271274
yarn link @bitgo/sdk-coin-mantra && \

modules/account-lib/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"@bitgo/sdk-coin-hash": "^3.0.47",
5151
"@bitgo/sdk-coin-hbar": "^2.0.78",
5252
"@bitgo/sdk-coin-icp": "^1.13.1",
53+
"@bitgo/sdk-coin-init": "^1.0.0",
5354
"@bitgo/sdk-coin-injective": "^3.0.47",
5455
"@bitgo/sdk-coin-islm": "^2.1.28",
5556
"@bitgo/sdk-coin-mantra": "^1.0.5",

modules/account-lib/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ export { Cronos };
116116
import * as Fetch from '@bitgo/sdk-coin-fetch';
117117
export { Fetch };
118118

119+
import * as Init from '@bitgo/sdk-coin-init';
120+
export { Init };
121+
119122
import * as Sol from '@bitgo/sdk-coin-sol';
120123
export { Sol };
121124

@@ -268,6 +271,8 @@ const coinBuilderMap = {
268271
tcronos: Cronos.TransactionBuilder,
269272
fetch: Fetch.TransactionBuilder,
270273
tfetch: Fetch.TransactionBuilder,
274+
init: Init.TransactionBuilder,
275+
tinit: Init.TransactionBuilder,
271276
flr: Flr.TransactionBuilder,
272277
tflr: Flr.TransactionBuilder,
273278
sgb: Sgb.TransactionBuilder,

modules/bitgo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
"@bitgo/sdk-coin-hash": "^3.0.47",
8484
"@bitgo/sdk-coin-hbar": "^2.0.78",
8585
"@bitgo/sdk-coin-icp": "^1.13.1",
86+
"@bitgo/sdk-coin-init": "^1.0.0",
8687
"@bitgo/sdk-coin-injective": "^3.0.47",
8788
"@bitgo/sdk-coin-islm": "^2.1.28",
8889
"@bitgo/sdk-coin-lnbtc": "^1.2.9",

modules/bitgo/src/v2/coinFactory.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import {
6060
Hbar,
6161
Hteth,
6262
Icp,
63+
Init,
6364
Injective,
6465
Islm,
6566
Lnbtc,
@@ -130,6 +131,7 @@ import {
130131
Thbar,
131132
Tia,
132133
Ticp,
134+
Tinit,
133135
Tinjective,
134136
Tislm,
135137
Tlnbtc,
@@ -224,6 +226,7 @@ function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
224226
globalCoinFactory.register('mon', Mon.createInstance);
225227
globalCoinFactory.register('mantra', Mantra.createInstance);
226228
globalCoinFactory.register('icp', Icp.createInstance);
229+
globalCoinFactory.register('init', Init.createInstance);
227230
globalCoinFactory.register('injective', Injective.createInstance);
228231
globalCoinFactory.register('islm', Islm.createInstance);
229232
globalCoinFactory.register('near', Near.createInstance);
@@ -286,6 +289,7 @@ function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
286289
globalCoinFactory.register('thash', Thash.createInstance);
287290
globalCoinFactory.register('thbar', Thbar.createInstance);
288291
globalCoinFactory.register('ticp', Ticp.createInstance);
292+
globalCoinFactory.register('tinit', Tinit.createInstance);
289293
globalCoinFactory.register('tinjective', Tinjective.createInstance);
290294
globalCoinFactory.register('tislm', Tislm.createInstance);
291295
globalCoinFactory.register('tlnbtc', Tlnbtc.createInstance);

modules/bitgo/src/v2/coins/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import { EthLikeCoin, TethLikeCoin } from '@bitgo/sdk-coin-ethlike';
3434
import { Hash, Thash } from '@bitgo/sdk-coin-hash';
3535
import { Hbar, Thbar } from '@bitgo/sdk-coin-hbar';
3636
import { Icp, Ticp } from '@bitgo/sdk-coin-icp';
37+
import { Init, Tinit } from '@bitgo/sdk-coin-init';
3738
import { Injective, Tinjective } from '@bitgo/sdk-coin-injective';
3839
import { Islm, Tislm } from '@bitgo/sdk-coin-islm';
3940
import { Lnbtc, Tlnbtc } from '@bitgo/sdk-coin-lnbtc';
@@ -103,6 +104,7 @@ export { Flr, Tflr };
103104
export { Hash, Thash };
104105
export { Hbar, Thbar };
105106
export { Icp, Ticp };
107+
export { Init, Tinit };
106108
export { Lnbtc, Tlnbtc };
107109
export { Ltc, Tltc };
108110
export { Mantra, Tmantra };

modules/bitgo/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@
161161
{
162162
"path": "../sdk-coin-icp"
163163
},
164+
{
165+
"path": "../sdk-coin-init"
166+
},
164167
{
165168
"path": "../sdk-coin-injective"
166169
},
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.idea
3+
public
4+
dist

modules/sdk-coin-init/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
.idea/
3+
dist/

0 commit comments

Comments
 (0)