Skip to content

Commit 2f9452c

Browse files
committed
feat(bitgo): add bitgo custody mena fze entity
Ticket: COPS-3277
1 parent 5bc43e7 commit 2f9452c

File tree

8 files changed

+16
-1
lines changed

8 files changed

+16
-1
lines changed

modules/statics/src/account.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export class AccountCoin extends BaseCoin {
3535
CoinFeature.CUSTODY,
3636
CoinFeature.CUSTODY_BITGO_TRUST,
3737
CoinFeature.CUSTODY_BITGO_MENA_FZE,
38+
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
3839
CoinFeature.CUSTODY_BITGO_SINGAPORE,
3940
CoinFeature.CUSTODY_BITGO_KOREA,
4041
CoinFeature.CUSTODY_BITGO_EUROPE_APS,

modules/statics/src/ada.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export class Ada extends BaseCoin {
2323
CoinFeature.REQUIRES_BIG_NUMBER,
2424
CoinFeature.CUSTODY_BITGO_TRUST,
2525
CoinFeature.CUSTODY_BITGO_MENA_FZE,
26+
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
2627
CoinFeature.STAKING,
2728
CoinFeature.BULK_TRANSACTION,
2829
];

modules/statics/src/avaxp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export class AVAXPCoin extends BaseCoin {
1818
CoinFeature.UNSPENT_MODEL,
1919
CoinFeature.CUSTODY_BITGO_TRUST,
2020
CoinFeature.CUSTODY_BITGO_MENA_FZE,
21+
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
2122
CoinFeature.CUSTODY_BITGO_GERMANY,
2223
CoinFeature.CUSTODY_BITGO_FRANKFURT,
2324
CoinFeature.MULTISIG_COLD,

modules/statics/src/base.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ export enum CoinFeature {
243243
* This coin supports custody in BitGo MENA FZE entities
244244
*/
245245
CUSTODY_BITGO_MENA_FZE = 'custody-bitgo-mena-fze',
246+
/**
247+
* This coin supports custody in BitGo Custody MENA FZE entities
248+
*/
249+
CUSTODY_BITGO_CUSTODY_MENA_FZE = 'custody-bitgo-custody-mena-fze',
246250
/*
247251
* This coin has transactions that expire after a certain amount of time.
248252
*/

modules/statics/src/coins.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ const XTZ_FEATURES = [
143143
(feature) =>
144144
feature !== CoinFeature.CUSTODY &&
145145
feature !== CoinFeature.CUSTODY_BITGO_TRUST &&
146-
feature !== CoinFeature.CUSTODY_BITGO_MENA_FZE
146+
feature !== CoinFeature.CUSTODY_BITGO_MENA_FZE &&
147+
feature !== CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE
147148
);
148149

149150
const XRP_FEATURES = [

modules/statics/src/ofc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export class OfcCoin extends BaseCoin {
2828
CoinFeature.CUSTODY,
2929
CoinFeature.CUSTODY_BITGO_TRUST,
3030
CoinFeature.CUSTODY_BITGO_MENA_FZE,
31+
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
3132
];
3233

3334
// If set, this coin is the native address format for this token.

modules/statics/src/utxo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class UtxoCoin extends BaseCoin {
2121
CoinFeature.CUSTODY,
2222
CoinFeature.CUSTODY_BITGO_TRUST,
2323
CoinFeature.CUSTODY_BITGO_MENA_FZE,
24+
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
2425
CoinFeature.MULTISIG_COLD,
2526
CoinFeature.PAYGO,
2627
];

modules/statics/test/unit/coins.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,11 +624,15 @@ coins.forEach((coin, coinName) => {
624624
it(`should return true for CUSTODY_BITGO_MENA_FZE ${coin.family} coin feature`, () => {
625625
coin.features.includes(CoinFeature.CUSTODY_BITGO_MENA_FZE).should.eql(true);
626626
});
627+
it(`should return true for CUSTODY_BITGO_CUSTODY_MENA_FZE ${coin.family} coin feature`, () => {
628+
coin.features.includes(CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE).should.eql(true);
629+
});
627630
} else if (coin.family === CoinFamily.XTZ || coin.features.includes(CoinFeature.GENERIC_TOKEN)) {
628631
it(`should return false for all custody ${coin.family} coin feature`, () => {
629632
coin.features.includes(CoinFeature.CUSTODY).should.eql(false);
630633
coin.features.includes(CoinFeature.CUSTODY_BITGO_TRUST).should.eql(false);
631634
coin.features.includes(CoinFeature.CUSTODY_BITGO_MENA_FZE).should.eql(false);
635+
coin.features.includes(CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE).should.eql(false);
632636
coin.features.includes(CoinFeature.CUSTODY_BITGO_NEW_YORK).should.eql(false);
633637
coin.features.includes(CoinFeature.CUSTODY_BITGO_GERMANY).should.eql(false);
634638
coin.features.includes(CoinFeature.CUSTODY_BITGO_SWITZERLAND).should.eql(false);
@@ -640,6 +644,7 @@ coins.forEach((coin, coinName) => {
640644
coin.features.includes(CoinFeature.CUSTODY).should.eql(coinSupportsCustody);
641645
coin.features.includes(CoinFeature.CUSTODY_BITGO_TRUST).should.eql(coinSupportsCustody);
642646
coin.features.includes(CoinFeature.CUSTODY_BITGO_MENA_FZE).should.eql(coinSupportsCustody);
647+
coin.features.includes(CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE).should.eql(coinSupportsCustody);
643648
});
644649

645650
it('should return false for all non-SD coin feature', () => {

0 commit comments

Comments
 (0)