Skip to content

Commit 29a0c84

Browse files
authored
Merge pull request #5367 from BitGo/WIN-4245
feat(sdk-coin-icp): added ICP skeleton code
2 parents ef5586d + 5215ce9 commit 29a0c84

29 files changed

+611
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
/modules/sdk-coin-eos/ @BitGo/ethalt-team
6262
/modules/sdk-coin-ethlike/ @BitGo/ethalt-team
6363
/modules/sdk-coin-hbar/ @BitGo/ethalt-team
64+
/modules/sdk-coin-icp/ @BitGo/ethalt-team
6465
/modules/sdk-coin-near/ @BitGo/ethalt-team
6566
/modules/sdk-coin-oas/ @BitGo/ethalt-team
6667
/modules/sdk-coin-opeth/ @BitGo/ethalt-team

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ COPY --from=builder /tmp/bitgo/modules/sdk-coin-etc /var/modules/sdk-coin-etc/
7676
COPY --from=builder /tmp/bitgo/modules/sdk-coin-eth2 /var/modules/sdk-coin-eth2/
7777
COPY --from=builder /tmp/bitgo/modules/sdk-coin-hash /var/modules/sdk-coin-hash/
7878
COPY --from=builder /tmp/bitgo/modules/sdk-coin-hbar /var/modules/sdk-coin-hbar/
79+
COPY --from=builder /tmp/bitgo/modules/sdk-coin-icp /var/modules/sdk-coin-icp/
7980
COPY --from=builder /tmp/bitgo/modules/sdk-coin-injective /var/modules/sdk-coin-injective/
8081
COPY --from=builder /tmp/bitgo/modules/sdk-coin-islm /var/modules/sdk-coin-islm/
8182
COPY --from=builder /tmp/bitgo/modules/sdk-coin-near /var/modules/sdk-coin-near/

modules/account-lib/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@bitgo/sdk-coin-eth2": "^3.0.58",
4747
"@bitgo/sdk-coin-hash": "^3.0.28",
4848
"@bitgo/sdk-coin-hbar": "^2.0.59",
49+
"@bitgo/sdk-coin-icp": "^1.0.0",
4950
"@bitgo/sdk-coin-injective": "^3.0.28",
5051
"@bitgo/sdk-coin-islm": "^2.1.9",
5152
"@bitgo/sdk-coin-near": "^2.0.59",

modules/account-lib/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ export { Coredao };
143143
import * as Apt from '@bitgo/sdk-coin-apt';
144144
export { Apt };
145145

146+
import * as Icp from '@bitgo/sdk-coin-icp';
147+
export { Icp };
148+
146149
const coinBuilderMap = {
147150
trx: Trx.WrappedBuilder,
148151
ttrx: Trx.WrappedBuilder,
@@ -219,6 +222,8 @@ const coinBuilderMap = {
219222
tcoredao: Coredao.TransactionBuilder,
220223
apt: Apt.TransactionBuilder,
221224
tapt: Apt.TransactionBuilder,
225+
icp: Icp.TransactionBuilder,
226+
ticp: Icp.TransactionBuilder,
222227
};
223228

224229
/**

modules/account-lib/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
{
6262
"path": "../sdk-coin-hbar"
6363
},
64+
{
65+
"path": "../sdk-coin-icp"
66+
},
6467
{
6568
"path": "../sdk-coin-injective"
6669
},

modules/bitgo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"@bitgo/sdk-coin-ethw": "^20.0.59",
8080
"@bitgo/sdk-coin-hash": "^3.0.28",
8181
"@bitgo/sdk-coin-hbar": "^2.0.59",
82+
"@bitgo/sdk-coin-icp": "^1.0.0",
8283
"@bitgo/sdk-coin-injective": "^3.0.28",
8384
"@bitgo/sdk-coin-islm": "^2.1.9",
8485
"@bitgo/sdk-coin-lnbtc": "^1.1.37",

modules/bitgo/src/v2/coinFactory.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ import {
5353
Hash,
5454
Hbar,
5555
Hteth,
56+
Icp,
5657
Injective,
5758
Islm,
5859
Lnbtc,
@@ -109,6 +110,7 @@ import {
109110
Thash,
110111
Thbar,
111112
Tia,
113+
Ticp,
112114
Tinjective,
113115
Tislm,
114116
Tlnbtc,
@@ -184,6 +186,7 @@ function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
184186
globalCoinFactory.register('hteth', Hteth.createInstance);
185187
globalCoinFactory.register('lnbtc', Lnbtc.createInstance);
186188
globalCoinFactory.register('ltc', Ltc.createInstance);
189+
globalCoinFactory.register('icp', Icp.createInstance);
187190
globalCoinFactory.register('injective', Injective.createInstance);
188191
globalCoinFactory.register('islm', Islm.createInstance);
189192
globalCoinFactory.register('near', Near.createInstance);
@@ -235,6 +238,7 @@ function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
235238
globalCoinFactory.register('tfiatusd', TfiatUsd.createInstance);
236239
globalCoinFactory.register('thash', Thash.createInstance);
237240
globalCoinFactory.register('thbar', Thbar.createInstance);
241+
globalCoinFactory.register('ticp', Ticp.createInstance);
238242
globalCoinFactory.register('tinjective', Tinjective.createInstance);
239243
globalCoinFactory.register('tislm', Tislm.createInstance);
240244
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
@@ -30,6 +30,7 @@ import { Ethw } from '@bitgo/sdk-coin-ethw';
3030
import { EthLikeCoin, TethLikeCoin } from '@bitgo/sdk-coin-ethlike';
3131
import { Hash, Thash } from '@bitgo/sdk-coin-hash';
3232
import { Hbar, Thbar } from '@bitgo/sdk-coin-hbar';
33+
import { Icp, Ticp } from '@bitgo/sdk-coin-icp';
3334
import { Injective, Tinjective } from '@bitgo/sdk-coin-injective';
3435
import { Islm, Tislm } from '@bitgo/sdk-coin-islm';
3536
import { Lnbtc, Tlnbtc } from '@bitgo/sdk-coin-lnbtc';
@@ -86,6 +87,7 @@ export { EthLikeCoin, TethLikeCoin };
8687
export { Etc, Tetc };
8788
export { Hash, Thash };
8889
export { Hbar, Thbar };
90+
export { Icp, Ticp };
8991
export { Lnbtc, Tlnbtc };
9092
export { Ltc, Tltc };
9193
export { Oas, Toas };

modules/bitgo/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@
153153
{
154154
"path": "../sdk-coin-hbar"
155155
},
156+
{
157+
"path": "../sdk-coin-icp"
158+
},
156159
{
157160
"path": "../sdk-coin-injective"
158161
},

modules/sdk-coin-icp/.eslintignore

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

0 commit comments

Comments
 (0)