Skip to content

Commit c83754b

Browse files
authored
Merge pull request #7400 from BitGo/WIN-7747-flrp-coinFactory
feat: add Flrp coin support in coin factory and exports
2 parents 5527e1f + 4a6df07 commit c83754b

File tree

5 files changed

+244
-29
lines changed

5 files changed

+244
-29
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ COPY --from=builder /tmp/bitgo/modules/sdk-coin-doge /var/modules/sdk-coin-doge/
129129
COPY --from=builder /tmp/bitgo/modules/sdk-coin-eos /var/modules/sdk-coin-eos/
130130
COPY --from=builder /tmp/bitgo/modules/sdk-coin-ethlike /var/modules/sdk-coin-ethlike/
131131
COPY --from=builder /tmp/bitgo/modules/sdk-coin-ethw /var/modules/sdk-coin-ethw/
132+
COPY --from=builder /tmp/bitgo/modules/sdk-coin-flrp /var/modules/sdk-coin-flrp/
132133
COPY --from=builder /tmp/bitgo/modules/sdk-coin-iota /var/modules/sdk-coin-iota/
133134
COPY --from=builder /tmp/bitgo/modules/sdk-coin-lnbtc /var/modules/sdk-coin-lnbtc/
134135
COPY --from=builder /tmp/bitgo/modules/sdk-coin-ltc /var/modules/sdk-coin-ltc/
@@ -226,6 +227,7 @@ cd /var/modules/sdk-coin-doge && yarn link && \
226227
cd /var/modules/sdk-coin-eos && yarn link && \
227228
cd /var/modules/sdk-coin-ethlike && yarn link && \
228229
cd /var/modules/sdk-coin-ethw && yarn link && \
230+
cd /var/modules/sdk-coin-flrp && yarn link && \
229231
cd /var/modules/sdk-coin-iota && yarn link && \
230232
cd /var/modules/sdk-coin-lnbtc && yarn link && \
231233
cd /var/modules/sdk-coin-ltc && yarn link && \
@@ -326,6 +328,7 @@ RUN cd /var/bitgo-express && \
326328
yarn link @bitgo/sdk-coin-eos && \
327329
yarn link @bitgo/sdk-coin-ethlike && \
328330
yarn link @bitgo/sdk-coin-ethw && \
331+
yarn link @bitgo/sdk-coin-flrp && \
329332
yarn link @bitgo/sdk-coin-iota && \
330333
yarn link @bitgo/sdk-coin-lnbtc && \
331334
yarn link @bitgo/sdk-coin-ltc && \

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-ethw": "^20.3.10",
8484
"@bitgo/sdk-coin-evm": "^1.8.1",
8585
"@bitgo/sdk-coin-flr": "^1.6.10",
86+
"@bitgo/sdk-coin-flrp": "^1.2.2",
8687
"@bitgo/sdk-coin-hash": "^3.6.10",
8788
"@bitgo/sdk-coin-hbar": "^2.5.4",
8889
"@bitgo/sdk-coin-icp": "^1.19.10",

modules/bitgo/src/v2/coinFactory.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ import {
8484
EthLikeCoin,
8585
EvmCoin,
8686
Flr,
87+
Flrp,
8788
FlrToken,
8889
HashToken,
8990
TethLikeCoin,
@@ -266,6 +267,7 @@ export function registerCoinConstructors(coinFactory: CoinFactory, coinMap: Coin
266267
coinFactory.register('fiatsgd', FiatSGD.createInstance);
267268
coinFactory.register('fiatusd', FiatUsd.createInstance);
268269
coinFactory.register('flr', Flr.createInstance);
270+
coinFactory.register('flrp', Flrp.createInstance);
269271
coinFactory.register('gteth', Gteth.createInstance);
270272
coinFactory.register('hash', Hash.createInstance);
271273
coinFactory.register('hbar', Hbar.createInstance);
@@ -335,6 +337,7 @@ export function registerCoinConstructors(coinFactory: CoinFactory, coinMap: Coin
335337
coinFactory.register('tfiatsgd', TfiatSGD.createInstance);
336338
coinFactory.register('tfiatusd', TfiatUsd.createInstance);
337339
coinFactory.register('tflr', Tflr.createInstance);
340+
coinFactory.register('tflrp', Flrp.createInstance);
338341
coinFactory.register('tmon', Tmon.createInstance);
339342
coinFactory.register('thash', Thash.createInstance);
340343
coinFactory.register('thbar', Thbar.createInstance);
@@ -651,6 +654,8 @@ export function getCoinConstructor(coinName: string): CoinConstructor | undefine
651654
return FiatUsd.createInstance;
652655
case 'flr':
653656
return Flr.createInstance;
657+
case 'flrp':
658+
return Flrp.createInstance;
654659
case 'gteth':
655660
return Gteth.createInstance;
656661
case 'hash':
@@ -789,6 +794,8 @@ export function getCoinConstructor(coinName: string): CoinConstructor | undefine
789794
return TfiatUsd.createInstance;
790795
case 'tflr':
791796
return Tflr.createInstance;
797+
case 'tflrp':
798+
return Flrp.createInstance;
792799
case 'tmon':
793800
return Tmon.createInstance;
794801
case 'thash':

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { Etc, Tetc } from '@bitgo/sdk-coin-etc';
3333
import { Erc20Token, Erc721Token, Eth, Gteth, Hteth, Teth } from '@bitgo/sdk-coin-eth';
3434
import { EvmCoin, EthLikeErc20Token } from '@bitgo/sdk-coin-evm';
3535
import { Flr, Tflr, FlrToken } from '@bitgo/sdk-coin-flr';
36+
import { Flrp } from '@bitgo/sdk-coin-flrp';
3637
import { Ethw } from '@bitgo/sdk-coin-ethw';
3738
import { EthLikeCoin, TethLikeCoin } from '@bitgo/sdk-coin-ethlike';
3839
import { Hash, Thash, HashToken } from '@bitgo/sdk-coin-hash';
@@ -110,6 +111,7 @@ export { EthLikeCoin, TethLikeCoin };
110111
export { Etc, Tetc };
111112
export { EvmCoin, EthLikeErc20Token };
112113
export { Flr, Tflr, FlrToken };
114+
export { Flrp };
113115
export { Hash, Thash, HashToken };
114116
export { Hbar, Thbar };
115117
export { Icp, Ticp };

0 commit comments

Comments
 (0)