Skip to content

Commit 3405799

Browse files
committed
feat(sdk-coin-apt): new coin generation, apt skeleton
TICKET: COIN-2220
1 parent 1c8e7b2 commit 3405799

32 files changed

+521
-1
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
/modules/abstract-cosmos/ @BitGo/ethalt-team
4848
/modules/sdk-coin-ada/ @BitGo/ethalt-team
4949
/modules/sdk-coin-algo/ @BitGo/ethalt-team
50+
/modules/sdk-coin-apt/ @Bitgo/ethalt-team
5051
/modules/sdk-coin-arbeth/ @BitGo/ethalt-team
5152
/modules/sdk-coin-atom/ @BitGo/ethalt-team
5253
/modules/sdk-coin-avaxc/ @BitGo/ethalt-team

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ COPY --from=builder /tmp/bitgo/modules/sdk-api /var/modules/sdk-api/
5555
COPY --from=builder /tmp/bitgo/modules/unspents /var/modules/unspents/
5656
COPY --from=builder /tmp/bitgo/modules/account-lib /var/modules/account-lib/
5757
COPY --from=builder /tmp/bitgo/modules/sdk-coin-algo /var/modules/sdk-coin-algo/
58+
COPY --from=builder /tmp/bitgo/modules/sdk-coin-apt /var/modules/sdk-coin-apt/
5859
COPY --from=builder /tmp/bitgo/modules/sdk-coin-arbeth /var/modules/sdk-coin-arbeth/
5960
COPY --from=builder /tmp/bitgo/modules/abstract-eth /var/modules/abstract-eth/
6061
COPY --from=builder /tmp/bitgo/modules/sdk-coin-atom /var/modules/sdk-coin-atom/
@@ -126,6 +127,7 @@ cd /var/modules/sdk-api && yarn link && \
126127
cd /var/modules/unspents && yarn link && \
127128
cd /var/modules/account-lib && yarn link && \
128129
cd /var/modules/sdk-coin-algo && yarn link && \
130+
cd /var/modules/sdk-coin-apt && yarn link && \
129131
cd /var/modules/sdk-coin-arbeth && yarn link && \
130132
cd /var/modules/abstract-eth && yarn link && \
131133
cd /var/modules/sdk-coin-atom && yarn link && \
@@ -200,6 +202,7 @@ RUN cd /var/bitgo-express && \
200202
yarn link @bitgo/unspents && \
201203
yarn link @bitgo/account-lib && \
202204
yarn link @bitgo/sdk-coin-algo && \
205+
yarn link @bitgo/sdk-coin-apt && \
203206
yarn link @bitgo/sdk-coin-arbeth && \
204207
yarn link @bitgo/abstract-eth && \
205208
yarn link @bitgo/sdk-coin-atom && \

modules/bitgo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"@bitgo/sdk-api": "^1.56.3",
5252
"@bitgo/sdk-coin-ada": "^4.3.4",
5353
"@bitgo/sdk-coin-algo": "^2.1.43",
54+
"@bitgo/sdk-coin-apt": "^1.0.0",
5455
"@bitgo/sdk-coin-arbeth": "^21.0.37",
5556
"@bitgo/sdk-coin-atom": "^13.1.1",
5657
"@bitgo/sdk-coin-avaxc": "^5.1.6",

modules/bitgo/src/v2/coinFactory.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { tokens } from '../config';
1313
import {
1414
Ada,
1515
Algo,
16+
Apt,
1617
Arbeth,
1718
ArbethToken,
1819
Atom,
@@ -74,6 +75,7 @@ import {
7475
Ton,
7576
Tada,
7677
Talgo,
78+
Tapt,
7779
Tarbeth,
7880
Tatom,
7981
TavaxC,
@@ -140,6 +142,7 @@ import {
140142
function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
141143
globalCoinFactory.register('ada', Ada.createInstance);
142144
globalCoinFactory.register('algo', Algo.createInstance);
145+
globalCoinFactory.register('apt', Apt.createInstance);
143146
globalCoinFactory.register('arbeth', Arbeth.createInstance);
144147
globalCoinFactory.register('atom', Atom.createInstance);
145148
globalCoinFactory.register('avaxc', AvaxC.createInstance);
@@ -191,6 +194,7 @@ function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
191194
globalCoinFactory.register('tia', Tia.createInstance);
192195
globalCoinFactory.register('ton', Ton.createInstance);
193196
globalCoinFactory.register('talgo', Talgo.createInstance);
197+
globalCoinFactory.register('tapt', Tapt.createInstance);
194198
globalCoinFactory.register('tarbeth', Tarbeth.createInstance);
195199
globalCoinFactory.register('tada', Tada.createInstance);
196200
globalCoinFactory.register('tatom', Tatom.createInstance);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { AbstractUtxoCoin } from '@bitgo/abstract-utxo';
22
import { AbstractLightningCoin } from '@bitgo/abstract-lightning';
33
import { Ada, Tada } from '@bitgo/sdk-coin-ada';
44
import { Algo, AlgoToken, Talgo } from '@bitgo/sdk-coin-algo';
5+
import { Apt, Tapt } from '@bitgo/sdk-coin-apt';
56
import { Arbeth, Tarbeth, ArbethToken } from '@bitgo/sdk-coin-arbeth';
67
import { Atom, Tatom } from '@bitgo/sdk-coin-atom';
78
import { AvaxC, AvaxCToken, TavaxC } from '@bitgo/sdk-coin-avaxc';
@@ -54,6 +55,7 @@ import { Zketh, Tzketh, ZkethToken } from '@bitgo/sdk-coin-zketh';
5455
export { AbstractUtxoCoin };
5556
export { AbstractLightningCoin };
5657
export { Algo, AlgoToken, Talgo };
58+
export { Apt, Tapt };
5759
export { Arbeth, Tarbeth, ArbethToken };
5860
export { Ada, Tada };
5961
export { Atom, Tatom };

modules/bitgo/test/browser/browser.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ describe('Coins', () => {
3333
XrpToken: 1,
3434
Rune: 1,
3535
Trune: 1,
36+
Apt: 1,
37+
Tapt: 1,
3638
};
3739
Object.keys(BitGoJS.Coin)
3840
.filter((coinName) => !excludedKeys[coinName])

modules/bitgo/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
{
4545
"path": "../sdk-coin-algo"
4646
},
47+
{
48+
"path": "../sdk-coin-apt"
49+
},
4750
{
4851
"path": "../sdk-coin-arbeth"
4952
},

modules/sdk-coin-apt/.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

modules/sdk-coin-apt/.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/

modules/sdk-coin-apt/.mocharc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require: 'ts-node/register'
2+
timeout: '60000'
3+
reporter: 'min'
4+
reporter-option:
5+
- 'cdn=true'
6+
- 'json=false'
7+
exit: true
8+
spec: ['test/unit/**/*.ts']

0 commit comments

Comments
 (0)