Skip to content

Commit

Permalink
feat(bitgo): rename mena fze to custody mena fze
Browse files Browse the repository at this point in the history
TICKET: COPS-3277
  • Loading branch information
Mustafiz04 committed Jan 31, 2025
1 parent 9b065eb commit 0056d2b
Show file tree
Hide file tree
Showing 9 changed files with 4,332 additions and 2,405 deletions.
2 changes: 1 addition & 1 deletion modules/statics/src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class AccountCoin extends BaseCoin {
CoinFeature.TRANSACTION_DATA,
CoinFeature.CUSTODY,
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_MENA_FZE,
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
Expand Down
2 changes: 1 addition & 1 deletion modules/statics/src/ada.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class Ada extends BaseCoin {
CoinFeature.TRANSACTION_DATA,
CoinFeature.REQUIRES_BIG_NUMBER,
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_MENA_FZE,
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
CoinFeature.STAKING,
CoinFeature.BULK_TRANSACTION,
];
Expand Down
2 changes: 1 addition & 1 deletion modules/statics/src/avaxp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class AVAXPCoin extends BaseCoin {
public static readonly DEFAULT_FEATURES = [
CoinFeature.UNSPENT_MODEL,
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_MENA_FZE,
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
CoinFeature.CUSTODY_BITGO_GERMANY,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.MULTISIG_COLD,
Expand Down
2 changes: 1 addition & 1 deletion modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export enum CoinFeature {
/**
* This coin supports custody in BitGo MENA FZE entities
*/
CUSTODY_BITGO_MENA_FZE = 'custody-bitgo-mena-fze',
CUSTODY_BITGO_CUSTODY_MENA_FZE = 'custody-bitgo-custody-mena-fze',
/*
* This coin has transactions that expire after a certain amount of time.
*/
Expand Down
2 changes: 1 addition & 1 deletion modules/statics/src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const XTZ_FEATURES = [
(feature) =>
feature !== CoinFeature.CUSTODY &&
feature !== CoinFeature.CUSTODY_BITGO_TRUST &&
feature !== CoinFeature.CUSTODY_BITGO_MENA_FZE
feature !== CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE
);

const XRP_FEATURES = [
Expand Down
2 changes: 1 addition & 1 deletion modules/statics/src/ofc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class OfcCoin extends BaseCoin {
CoinFeature.REQUIRES_BIG_NUMBER,
CoinFeature.CUSTODY,
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_MENA_FZE,
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
];

// If set, this coin is the native address format for this token.
Expand Down
2 changes: 1 addition & 1 deletion modules/statics/src/utxo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class UtxoCoin extends BaseCoin {
CoinFeature.CHILD_PAYS_FOR_PARENT,
CoinFeature.CUSTODY,
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_MENA_FZE,
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
CoinFeature.MULTISIG_COLD,
CoinFeature.PAYGO,
];
Expand Down
6 changes: 3 additions & 3 deletions modules/statics/test/unit/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -622,13 +622,13 @@ coins.forEach((coin, coinName) => {
});

it(`should return true for CUSTODY_BITGO_MENA_FZE ${coin.family} coin feature`, () => {
coin.features.includes(CoinFeature.CUSTODY_BITGO_MENA_FZE).should.eql(true);
coin.features.includes(CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE).should.eql(true);
});
} else if (coin.family === CoinFamily.XTZ || coin.features.includes(CoinFeature.GENERIC_TOKEN)) {
it(`should return false for all custody ${coin.family} coin feature`, () => {
coin.features.includes(CoinFeature.CUSTODY).should.eql(false);
coin.features.includes(CoinFeature.CUSTODY_BITGO_TRUST).should.eql(false);
coin.features.includes(CoinFeature.CUSTODY_BITGO_MENA_FZE).should.eql(false);
coin.features.includes(CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE).should.eql(false);
coin.features.includes(CoinFeature.CUSTODY_BITGO_NEW_YORK).should.eql(false);
coin.features.includes(CoinFeature.CUSTODY_BITGO_GERMANY).should.eql(false);
coin.features.includes(CoinFeature.CUSTODY_BITGO_SWITZERLAND).should.eql(false);
Expand All @@ -639,7 +639,7 @@ coins.forEach((coin, coinName) => {
const coinSupportsCustody = coin.family !== CoinFamily.LNBTC;
coin.features.includes(CoinFeature.CUSTODY).should.eql(coinSupportsCustody);
coin.features.includes(CoinFeature.CUSTODY_BITGO_TRUST).should.eql(coinSupportsCustody);
coin.features.includes(CoinFeature.CUSTODY_BITGO_MENA_FZE).should.eql(coinSupportsCustody);
coin.features.includes(CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE).should.eql(coinSupportsCustody);
});

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

0 comments on commit 0056d2b

Please sign in to comment.