Skip to content

Commit

Permalink
Merge pull request #5174 from BitGo/COIN-2348-germany-ungate
Browse files Browse the repository at this point in the history
feat(statics): ungate assets for germany trust
  • Loading branch information
mukeshsp authored Nov 26, 2024
2 parents 575a6b7 + 128fdc4 commit 261d92a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions modules/statics/src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ const COREUM_FEATURES = [...COSMOS_SIDECHAIN_FEATURES, CoinFeature.CUSTODY_BITGO
const SEI_FEATURES = [...COSMOS_SIDECHAIN_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
const TOKEN_FEATURES_WITH_SWISS = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_SWITZERLAND];
const TOKEN_FEATURES_WITH_NY = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_NEW_YORK];
const TOKEN_FEATURES_WITH_NY_GERMANY = [...TOKEN_FEATURES_WITH_NY, CoinFeature.CUSTODY_BITGO_GERMANY];
const TOKEN_FEATURES_WITH_FRANKFURT = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
const GENERIC_TOKEN_FEATURES = [
CoinFeature.ACCOUNT_MODEL,
Expand Down Expand Up @@ -376,7 +377,12 @@ const APT_FEATURES = [
CoinFeature.SUPPORTS_TOKENS,
];
const ETH_FEATURES_WITH_FRANKFURT = [...ETH_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
const ETH_FEATURES_WITH_FRANKFURT_GERMANY = [...ETH_FEATURES_WITH_FRANKFURT, CoinFeature.CUSTODY_BITGO_GERMANY];
const SOL_TOKEN_FEATURES_WITH_FRANKFURT = [...SOL_TOKEN_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
const SOL_TOKEN_FEATURES_WITH_FRANKFURT_GERMANY = [
...SOL_TOKEN_FEATURES_WITH_FRANKFURT,
CoinFeature.CUSTODY_BITGO_GERMANY,
];
const XLM_TOKEN_FEATURES_WITH_FRANKFURT = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
const ZETA_FEATURES = [...COSMOS_SIDECHAIN_FEATURES, CoinFeature.CUSTODY_BITGO_SINGAPORE];
const ZETA_EVM_FEATURES = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_SINGAPORE];
Expand Down Expand Up @@ -5999,7 +6005,7 @@ export const coins = CoinMap.fromCoins([
18,
'0x6982508145454ce325ddbe47a25d4ec3d2311933',
UnderlyingAsset.PEPE,
ETH_FEATURES_WITH_FRANKFURT
ETH_FEATURES_WITH_FRANKFURT_GERMANY
),
erc20(
'90edae14-9c2c-4245-bb90-a9062d08ef95',
Expand Down Expand Up @@ -6785,7 +6791,7 @@ export const coins = CoinMap.fromCoins([
18,
'0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce',
UnderlyingAsset.SHIB,
TOKEN_FEATURES_WITH_NY
TOKEN_FEATURES_WITH_NY_GERMANY
),
erc20(
'e25ca1cf-b0f4-42a0-9d7f-42b94a1e9738',
Expand Down Expand Up @@ -17497,7 +17503,7 @@ export const coins = CoinMap.fromCoins([
8,
'rndrizKT3MK1iimdxRdWabcF7Zg7AR5T4nud4EkHBof',
UnderlyingAsset['sol:render'],
SOL_TOKEN_FEATURES_WITH_FRANKFURT
SOL_TOKEN_FEATURES_WITH_FRANKFURT_GERMANY
),
solToken(
'76d493a6-d674-4987-85ae-5a9dca0711b1',
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 @@ -153,7 +153,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY_BITGO_FRANKFURT,
],
},
shib: { features: [CoinFeature.CUSTODY_BITGO_NEW_YORK] },
shib: { features: [CoinFeature.CUSTODY_BITGO_NEW_YORK, CoinFeature.CUSTODY_BITGO_GERMANY] },
injv2: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
moca: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
wbtc: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
Expand All @@ -170,7 +170,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
lmwr: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
mpl: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
ondo: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
pepe: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
pepe: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT, CoinFeature.CUSTODY_BITGO_GERMANY] },
trac: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
truf: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
vega: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
Expand All @@ -193,7 +193,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
'sol:bonk': { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
'sol:jup': { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
'sol:wif': { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
'sol:render': { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
'sol:render': { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT, CoinFeature.CUSTODY_BITGO_GERMANY] },
'sol:wen': { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
'xlm:ZUSD-GDF6VOEGRWLOZ64PQQGKD2IYWA22RLT37GJKS2EJXZHT2VLAGWLC5TOB': {
features: [CoinFeature.CUSTODY_BITGO_FRANKFURT],
Expand Down

0 comments on commit 261d92a

Please sign in to comment.