Skip to content

Commit 850d035

Browse files
Merge pull request #5095 from BitGo/COIN-2166
feat(statics): ungate tokens and coins for Frankfurt Trust
2 parents cc74214 + acbbc66 commit 850d035

File tree

2 files changed

+56
-16
lines changed

2 files changed

+56
-16
lines changed

modules/statics/src/coins.ts

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ const SUI_FEATURES = [
265265
CoinFeature.BULK_TRANSACTION,
266266
CoinFeature.BULK_STAKING_TRANSACTION,
267267
CoinFeature.SUPPORTS_TOKENS,
268+
CoinFeature.CUSTODY_BITGO_FRANKFURT,
268269
];
269270
const SUI_TOKEN_FEATURES = [
270271
...AccountCoin.DEFAULT_FEATURES,
@@ -299,8 +300,11 @@ const INJECTIVE_FEATURES = [
299300
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
300301
CoinFeature.CUSTODY_BITGO_FRANKFURT,
301302
];
303+
const COREUM_FEATURES = [...COSMOS_SIDECHAIN_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
304+
const SEI_FEATURES = [...COSMOS_SIDECHAIN_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
302305
const TOKEN_FEATURES_WITH_SWISS = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_SWITZERLAND];
303306
const TOKEN_FEATURES_WITH_NY = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_NEW_YORK];
307+
const TOKEN_FEATURES_WITH_FRANKFURT = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
304308
const GENERIC_TOKEN_FEATURES = [
305309
CoinFeature.ACCOUNT_MODEL,
306310
CoinFeature.REQUIRES_BIG_NUMBER,
@@ -322,13 +326,15 @@ const ARBETH_FEATURES = [
322326
CoinFeature.EVM_WALLET,
323327
CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA,
324328
CoinFeature.ETH_ROLLUP_CHAIN,
329+
CoinFeature.CUSTODY_BITGO_FRANKFURT,
325330
];
326331
const OPETH_FEATURES = [
327332
...ETH_FEATURES,
328333
CoinFeature.MULTISIG_COLD,
329334
CoinFeature.EVM_WALLET,
330335
CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA,
331336
CoinFeature.ETH_ROLLUP_CHAIN,
337+
CoinFeature.CUSTODY_BITGO_FRANKFURT,
332338
];
333339
const ZKETH_FEATURES = [
334340
...ETH_FEATURES,
@@ -923,7 +929,7 @@ export const coins = CoinMap.fromCoins([
923929
6,
924930
UnderlyingAsset.SEI,
925931
BaseUnit.SEI,
926-
COSMOS_SIDECHAIN_FEATURES
932+
SEI_FEATURES
927933
),
928934
account(
929935
'5be8a3f3-5c71-41ff-8d87-1ade63ce2543',
@@ -933,7 +939,7 @@ export const coins = CoinMap.fromCoins([
933939
6,
934940
UnderlyingAsset.SEI,
935941
BaseUnit.SEI,
936-
COSMOS_SIDECHAIN_FEATURES
942+
SEI_FEATURES
937943
),
938944
account(
939945
'9fbfb875-fb80-4a37-b844-48b9e48dfcdd',
@@ -1003,7 +1009,7 @@ export const coins = CoinMap.fromCoins([
10031009
6,
10041010
UnderlyingAsset.COREUM,
10051011
BaseUnit.COREUM,
1006-
COSMOS_SIDECHAIN_FEATURES
1012+
COREUM_FEATURES
10071013
),
10081014
account(
10091015
'df2f040b-89f3-4bb3-8da7-2445c7fdefca',
@@ -1013,7 +1019,7 @@ export const coins = CoinMap.fromCoins([
10131019
6,
10141020
UnderlyingAsset.COREUM,
10151021
BaseUnit.TCOREUM,
1016-
COSMOS_SIDECHAIN_FEATURES
1022+
COREUM_FEATURES
10171023
),
10181024
account(
10191025
'9fa0f191-4eed-4030-864a-d14bbd98c8af',
@@ -3345,7 +3351,8 @@ export const coins = CoinMap.fromCoins([
33453351
'Digital Gold',
33463352
18,
33473353
'0xa9299c296d7830a99414d1e5546f5171fa01e9c8',
3348-
UnderlyingAsset.DGLD
3354+
UnderlyingAsset.DGLD,
3355+
ETH_FEATURES_WITH_FRANKFURT
33493356
),
33503357
erc20(
33513358
'5847740c-8ff2-414a-ba65-e9fa48b847f6',
@@ -3827,15 +3834,17 @@ export const coins = CoinMap.fromCoins([
38273834
'EUR CoinVertible',
38283835
18,
38293836
'0x5f7827fdeb7c20b443265fc2f40845b715385ff2',
3830-
UnderlyingAsset.EURCV
3837+
UnderlyingAsset.EURCV,
3838+
ETH_FEATURES_WITH_FRANKFURT
38313839
),
38323840
erc20(
38333841
'fd8e59ae-d6f1-4ab6-917e-954d052cf60c',
38343842
'euroc',
38353843
'Euro Coin',
38363844
6,
38373845
'0x1abaea1f7c830bd89acc67ec4af516284b1bc33c',
3838-
UnderlyingAsset.EUROC
3846+
UnderlyingAsset.EUROC,
3847+
ETH_FEATURES_WITH_FRANKFURT
38393848
),
38403849
erc20(
38413850
'2ec7511c-7794-4f79-9745-d7186ee226b9',
@@ -5314,7 +5323,8 @@ export const coins = CoinMap.fromCoins([
53145323
'Mantle',
53155324
18,
53165325
'0x3c3a81e81dc49a522a592e7622a7e711c06bf354',
5317-
UnderlyingAsset.MNT
5326+
UnderlyingAsset.MNT,
5327+
ETH_FEATURES_WITH_FRANKFURT
53185328
),
53195329
erc20(
53205330
'1301f2e6-3f4c-46ab-9f21-e6e8eadb0f3c',
@@ -6136,7 +6146,8 @@ export const coins = CoinMap.fromCoins([
61366146
'PayPal USD',
61376147
6,
61386148
'0x6c3ea9036406852006290770bedfcaba0e23a0e8',
6139-
UnderlyingAsset.PYUSD
6149+
UnderlyingAsset.PYUSD,
6150+
ETH_FEATURES_WITH_FRANKFURT
61406151
),
61416152
erc20(
61426153
'62a385af-296f-44e7-b4f0-7a25a1e990dc',
@@ -7443,7 +7454,7 @@ export const coins = CoinMap.fromCoins([
74437454
6,
74447455
'0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
74457456
UnderlyingAsset.USDC,
7446-
[...TOKEN_FEATURES_WITH_SWISS, CoinFeature.CUSTODY_BITGO_NEW_YORK]
7457+
[...TOKEN_FEATURES_WITH_SWISS, CoinFeature.CUSTODY_BITGO_NEW_YORK, CoinFeature.CUSTODY_BITGO_FRANKFURT]
74477458
),
74487459
erc20(
74497460
'd2b0daf7-c664-4e97-a9b3-48c2fe4e6b30',
@@ -7468,7 +7479,7 @@ export const coins = CoinMap.fromCoins([
74687479
6,
74697480
'0xdac17f958d2ee523a2206206994597c13d831ec7',
74707481
UnderlyingAsset.USDT,
7471-
TOKEN_FEATURES_WITH_SWISS
7482+
[...TOKEN_FEATURES_WITH_SWISS, CoinFeature.CUSTODY_BITGO_FRANKFURT]
74727483
),
74737484
erc20(
74747485
'7eab6610-5fa7-4a92-8317-c4d143cd58c0',
@@ -13349,7 +13360,7 @@ export const coins = CoinMap.fromCoins([
1334913360
7,
1335013361
UnderlyingAsset['xlm:GYEN-GDF6VOEGRWLOZ64PQQGKD2IYWA22RLT37GJKS2EJXZHT2VLAGWLC5TOB'],
1335113362
'stablecoin.z.com',
13352-
AccountCoin.DEFAULT_FEATURES,
13363+
XLM_TOKEN_FEATURES_WITH_FRANKFURT,
1335313364
'',
1335413365
'GYEN'
1335513366
),
@@ -13404,7 +13415,7 @@ export const coins = CoinMap.fromCoins([
1340413415
7,
1340513416
UnderlyingAsset['xlm:AUDD-GDC7X2MXTYSAKUUGAIQ7J7RPEIM7GXSAIWFYWWH4GLNFECQVJJLB2EEU'],
1340613417
'audd.digital',
13407-
AccountCoin.DEFAULT_FEATURES,
13418+
XLM_TOKEN_FEATURES_WITH_FRANKFURT,
1340813419
'',
1340913420
'AUDD'
1341013421
),
@@ -18512,7 +18523,8 @@ export const coins = CoinMap.fromCoins([
1851218523
'Arbitrum',
1851318524
18,
1851418525
'0x912ce59144191c1204e64559fe8253a0e49e6548',
18515-
UnderlyingAsset['arbeth:arb']
18526+
UnderlyingAsset['arbeth:arb'],
18527+
TOKEN_FEATURES_WITH_FRANKFURT
1851618528
),
1851718529
arbethErc20(
1851818530
'65668b2e-6560-4749-a965-4d03eaeffaec',

modules/statics/test/unit/coins.ts

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
2929
CoinFeature.CUSTODY_BITGO_FRANKFURT,
3030
],
3131
},
32+
arbeth: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
3233
avaxc: {
3334
features: [
3435
CoinFeature.CUSTODY_BITGO_GERMANY,
@@ -68,6 +69,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
6869
],
6970
},
7071
celo: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
72+
coreum: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
7173
doge: {
7274
features: [
7375
CoinFeature.CUSTODY_BITGO_GERMANY,
@@ -107,6 +109,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
107109
eigen: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
108110
'reth-rocket': { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
109111
injective: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
112+
opeth: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
110113
polygon: {
111114
features: [
112115
CoinFeature.CUSTODY_BITGO_GERMANY,
@@ -130,8 +133,10 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
130133
],
131134
},
132135
rbtc: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
136+
sei: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
133137
sol: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
134138
stx: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
139+
sui: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
135140
ton: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
136141
xlm: {
137142
features: [
@@ -141,8 +146,14 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
141146
],
142147
},
143148
trx: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
144-
usdt: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
145-
usdc: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND, CoinFeature.CUSTODY_BITGO_NEW_YORK] },
149+
usdt: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
150+
usdc: {
151+
features: [
152+
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
153+
CoinFeature.CUSTODY_BITGO_NEW_YORK,
154+
CoinFeature.CUSTODY_BITGO_FRANKFURT,
155+
],
156+
},
146157
shib: { features: [CoinFeature.CUSTODY_BITGO_NEW_YORK] },
147158
injv2: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
148159
moca: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
@@ -174,6 +185,11 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
174185
smt: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
175186
strk: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
176187
rad: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
188+
dgld: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
189+
eurcv: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
190+
euroc: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
191+
mnt: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
192+
pyusd: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
177193
'sol:pyth': { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
178194
'sol:bonk': { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
179195
'sol:jup': { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
@@ -189,6 +205,13 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
189205
'xlm:VCHF-GDXLSLCOPPHTWOQXLLKSVN4VN3G67WD2ENU7UMVAROEYVJLSPSEWXIZN': {
190206
features: [CoinFeature.CUSTODY_BITGO_FRANKFURT],
191207
},
208+
'xlm:GYEN-GDF6VOEGRWLOZ64PQQGKD2IYWA22RLT37GJKS2EJXZHT2VLAGWLC5TOB': {
209+
features: [CoinFeature.CUSTODY_BITGO_FRANKFURT],
210+
},
211+
'xlm:AUDD-GDC7X2MXTYSAKUUGAIQ7J7RPEIM7GXSAIWFYWWH4GLNFECQVJJLB2EEU': {
212+
features: [CoinFeature.CUSTODY_BITGO_FRANKFURT],
213+
},
214+
'arbeth:arb': { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
192215

193216
// Test Coins
194217
talgo: {
@@ -198,6 +221,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
198221
CoinFeature.CUSTODY_BITGO_FRANKFURT,
199222
],
200223
},
224+
tarbeth: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
201225
tavaxc: {
202226
features: [
203227
CoinFeature.CUSTODY_BITGO_GERMANY,
@@ -269,6 +293,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
269293
],
270294
},
271295
tcelo: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
296+
tcoreum: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
272297
tdoge: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
273298
teos: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
274299
gteth: {
@@ -308,6 +333,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
308333
tmatic: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
309334
tweth: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
310335
tinjective: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
336+
topeth: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
311337
tpolygon: {
312338
features: [
313339
CoinFeature.CUSTODY_BITGO_GERMANY,
@@ -324,6 +350,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
324350
],
325351
},
326352
trbtc: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
353+
tsei: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
327354
tsol: {
328355
features: [
329356
CoinFeature.CUSTODY_BITGO_GERMANY,
@@ -332,6 +359,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
332359
],
333360
},
334361
tstx: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
362+
tsui: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
335363
txlm: {
336364
features: [
337365
CoinFeature.CUSTODY_BITGO_GERMANY,

0 commit comments

Comments
 (0)