Skip to content

Commit ca7acd9

Browse files
Merge pull request #8017 from BitGo/COIN-7474
feat: asset control for Korea Trust
2 parents cdf3e3c + 6152d71 commit ca7acd9

5 files changed

Lines changed: 31 additions & 26 deletions

File tree

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ export const allCoinsAndTokens = [
310310
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
311311
CoinFeature.CUSTODY_BITGO_FRANKFURT,
312312
CoinFeature.CUSTODY_BITGO_SINGAPORE,
313+
CoinFeature.CUSTODY_BITGO_KOREA,
313314
CoinFeature.BULK_TRANSACTION,
314315
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_ONCHAIN,
315316
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_TSS,
@@ -371,6 +372,7 @@ export const allCoinsAndTokens = [
371372
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
372373
CoinFeature.CUSTODY_BITGO_FRANKFURT,
373374
CoinFeature.CUSTODY_BITGO_SINGAPORE,
375+
CoinFeature.CUSTODY_BITGO_KOREA,
374376
CoinFeature.BULK_TRANSACTION,
375377
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_ONCHAIN,
376378
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_TSS,
@@ -2025,7 +2027,7 @@ export const allCoinsAndTokens = [
20252027
8,
20262028
UnderlyingAsset.APT,
20272029
BaseUnit.APT,
2028-
[...APT_FEATURES, CoinFeature.STAKING],
2030+
[...APT_FEATURES, CoinFeature.STAKING, CoinFeature.CUSTODY_BITGO_KOREA],
20292031
KeyCurve.Ed25519,
20302032
80,
20312033
200
@@ -2038,7 +2040,7 @@ export const allCoinsAndTokens = [
20382040
8,
20392041
UnderlyingAsset.APT,
20402042
BaseUnit.APT,
2041-
[...APT_FEATURES, CoinFeature.STAKING],
2043+
[...APT_FEATURES, CoinFeature.STAKING, CoinFeature.CUSTODY_BITGO_KOREA],
20422044
KeyCurve.Ed25519,
20432045
80,
20442046
200
@@ -4027,7 +4029,7 @@ export const allCoinsAndTokens = [
40274029
6,
40284030
'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8',
40294031
UnderlyingAsset.USDC,
4030-
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
4032+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
40314033
),
40324034
tronToken(
40334035
'f96fda99-cf5a-4ac4-885e-fa95292a7135',
@@ -4036,7 +4038,7 @@ export const allCoinsAndTokens = [
40364038
6,
40374039
'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
40384040
UnderlyingAsset['trx:usdt'],
4039-
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
4041+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
40404042
),
40414043
tronToken(
40424044
'77fe25dc-7871-4d9d-9cc0-2e5cba6250ff',
@@ -4313,7 +4315,7 @@ export const allCoinsAndTokens = [
43134315
6,
43144316
'TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id',
43154317
UnderlyingAsset.USDC,
4316-
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
4318+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
43174319
),
43184320
ttronToken(
43194321
'85a60a5a-88e3-45df-9e2c-dc6161b4c6b1',

modules/statics/src/coinFeatures.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export const ACCOUNT_COIN_DEFAULT_FEATURES = [
2727
CoinFeature.CUSTODY_BITGO_MENA_FZE,
2828
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
2929
CoinFeature.CUSTODY_BITGO_SINGAPORE,
30-
CoinFeature.CUSTODY_BITGO_KOREA,
3130
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
3231
CoinFeature.CUSTODY_BITGO_FRANKFURT,
3332
CoinFeature.CUSTODY_BITGO_INDIA,
@@ -61,6 +60,7 @@ export const ETC_FEATURES = [
6160
CoinFeature.CUSTODY_BITGO_GERMANY,
6261
CoinFeature.CUSTODY_BITGO_FRANKFURT,
6362
CoinFeature.CUSTODY_BITGO_NEW_YORK,
63+
CoinFeature.CUSTODY_BITGO_KOREA,
6464
CoinFeature.MULTISIG_COLD,
6565
CoinFeature.MULTISIG,
6666
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_TSS,
@@ -81,6 +81,7 @@ export const AVAXC_FEATURES = [
8181
CoinFeature.CUSTODY_BITGO_FRANKFURT,
8282
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
8383
CoinFeature.CUSTODY_BITGO_SINGAPORE,
84+
CoinFeature.CUSTODY_BITGO_KOREA,
8485
CoinFeature.MULTISIG_COLD,
8586
CoinFeature.MULTISIG,
8687
CoinFeature.EIP1559,
@@ -156,6 +157,7 @@ export const XRP_FEATURES = [
156157
CoinFeature.CUSTODY_BITGO_NEW_YORK,
157158
CoinFeature.CUSTODY_BITGO_FRANKFURT,
158159
CoinFeature.CUSTODY_BITGO_SINGAPORE,
160+
CoinFeature.CUSTODY_BITGO_KOREA,
159161
CoinFeature.MULTISIG_COLD,
160162
CoinFeature.MULTISIG,
161163
];
@@ -198,6 +200,7 @@ export const ADA_FEATURES = [
198200
CoinFeature.SUPPORTS_TOKENS,
199201
CoinFeature.CUSTODY_BITGO_FRANKFURT,
200202
CoinFeature.CUSTODY_BITGO_SINGAPORE,
203+
CoinFeature.CUSTODY_BITGO_KOREA,
201204
];
202205
export const ADA_TOKEN_FEATURES = [
203206
...ACCOUNT_COIN_DEFAULT_FEATURES,
@@ -279,6 +282,7 @@ export const SOL_FEATURES = [
279282
CoinFeature.STAKING,
280283
CoinFeature.CUSTODY_BITGO_GERMANY,
281284
CoinFeature.CUSTODY_BITGO_FRANKFURT,
285+
CoinFeature.CUSTODY_BITGO_KOREA,
282286
CoinFeature.BULK_TRANSACTION,
283287
CoinFeature.WALLET_CONNECT_DEFI,
284288
];
@@ -304,6 +308,7 @@ export const BSC_FEATURES = [
304308
CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA,
305309
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_TSS,
306310
CoinFeature.CUSTODY_BITGO_FRANKFURT,
311+
CoinFeature.CUSTODY_BITGO_KOREA,
307312
CoinFeature.BULK_TRANSACTION,
308313
CoinFeature.SHARED_EVM_MESSAGE_SIGNING,
309314
CoinFeature.ERC20_BULK_TRANSACTION,
@@ -398,6 +403,7 @@ export const SUI_FEATURES = [
398403
CoinFeature.SUPPORTS_TOKENS,
399404
CoinFeature.CUSTODY_BITGO_FRANKFURT,
400405
CoinFeature.CUSTODY_BITGO_GERMANY,
406+
CoinFeature.CUSTODY_BITGO_KOREA,
401407
CoinFeature.CUSTODY_BULK_TRANSACTION,
402408
CoinFeature.ALLOWS_NEGATIVE_FEE,
403409
];
@@ -421,6 +427,7 @@ export const TRX_FEATURES = [
421427
CoinFeature.CUSTODY_BITGO_GERMANY,
422428
CoinFeature.CUSTODY_BITGO_FRANKFURT,
423429
CoinFeature.CUSTODY_BITGO_SINGAPORE,
430+
CoinFeature.CUSTODY_BITGO_KOREA,
424431
CoinFeature.MULTISIG_COLD,
425432
CoinFeature.MULTISIG,
426433
CoinFeature.STAKING,
@@ -478,6 +485,7 @@ export const TON_FEATURES = [
478485
CoinFeature.REBUILD_ON_CUSTODY_SIGNING,
479486
CoinFeature.CUSTODY_BITGO_FRANKFURT,
480487
CoinFeature.CUSTODY_BITGO_GERMANY,
488+
CoinFeature.CUSTODY_BITGO_KOREA,
481489
CoinFeature.ALPHANUMERIC_MEMO_ID,
482490
CoinFeature.SUPPORTS_TOKENS,
483491
];
@@ -746,7 +754,6 @@ export const CANTON_FEATURES = [
746754
CoinFeature.CUSTODY_BITGO_MENA_FZE,
747755
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
748756
CoinFeature.CUSTODY_BITGO_SINGAPORE,
749-
CoinFeature.CUSTODY_BITGO_KOREA,
750757
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
751758
CoinFeature.CUSTODY_BITGO_FRANKFURT,
752759
CoinFeature.SUPPORTS_ONE_STEP_DEPOSIT,

modules/statics/src/coins/erc20Coins.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6466,6 +6466,7 @@ export const erc20Coins = [
64666466
...TOKEN_FEATURES_WITH_SWISS,
64676467
CoinFeature.CUSTODY_BITGO_NEW_YORK,
64686468
CoinFeature.CUSTODY_BITGO_FRANKFURT,
6469+
CoinFeature.CUSTODY_BITGO_KOREA,
64696470
CoinFeature.STABLECOIN,
64706471
]
64716472
),
@@ -6494,7 +6495,12 @@ export const erc20Coins = [
64946495
6,
64956496
'0xdac17f958d2ee523a2206206994597c13d831ec7',
64966497
UnderlyingAsset.USDT,
6497-
[...TOKEN_FEATURES_WITH_SWISS, CoinFeature.CUSTODY_BITGO_FRANKFURT, CoinFeature.STABLECOIN]
6498+
[
6499+
...TOKEN_FEATURES_WITH_SWISS,
6500+
CoinFeature.CUSTODY_BITGO_FRANKFURT,
6501+
CoinFeature.CUSTODY_BITGO_KOREA,
6502+
CoinFeature.STABLECOIN,
6503+
]
64986504
),
64996505
erc20(
65006506
'7eab6610-5fa7-4a92-8317-c4d143cd58c0',
@@ -13111,7 +13117,7 @@ export const erc20Coins = [
1311113117
6,
1311213118
'0x07865c6e87b9f70255377e024ace6630c1eaa37f',
1311313119
UnderlyingAsset.TUSDC,
13114-
[...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.STABLECOIN]
13120+
[...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
1311513121
),
1311613122
terc20(
1311713123
'891e4428-82b1-4970-8bad-a2cece698066',
@@ -13120,7 +13126,7 @@ export const erc20Coins = [
1312013126
6,
1312113127
'0xc2c527c0cacf457746bd31b2a698fe89de2b6d49',
1312213128
UnderlyingAsset.TUSDT,
13123-
[...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.STABLECOIN]
13129+
[...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
1312413130
),
1312513131
terc20(
1312613132
'6b43e702-d0ba-44c8-af93-c10cd9c2e730',

modules/statics/src/coins/solTokens.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export const solTokens = [
192192
'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // https://explorer.solana.com/address/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
193193
'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
194194
UnderlyingAsset['sol:usdc'],
195-
[...SOL_TOKEN_FEATURES_WITH_FRANKFURT, CoinFeature.STABLECOIN]
195+
[...SOL_TOKEN_FEATURES_WITH_FRANKFURT, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
196196
),
197197
solToken(
198198
'2a41c38d-c79a-4734-ae3a-c60e4d1f2d99',
@@ -232,7 +232,7 @@ export const solTokens = [
232232
'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB', // https://explorer.solana.com/address/Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
233233
'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB',
234234
UnderlyingAsset['sol:usdt'],
235-
[...SOL_TOKEN_FEATURES_WITH_FRANKFURT, CoinFeature.STABLECOIN]
235+
[...SOL_TOKEN_FEATURES_WITH_FRANKFURT, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
236236
),
237237
solToken(
238238
'4d631f91-02e2-4b89-af01-7b42cb61b1bb',
@@ -3420,7 +3420,7 @@ export const solTokens = [
34203420
'F4uLeXJoFz3hw13MposuwaQbMcZbCjqvEGPPeRRB1Byf',
34213421
'F4uLeXJoFz3hw13MposuwaQbMcZbCjqvEGPPeRRB1Byf',
34223422
UnderlyingAsset['tsol:usdc'],
3423-
[...SOL_TOKEN_FEATURES, CoinFeature.STABLECOIN]
3423+
[...SOL_TOKEN_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
34243424
),
34253425
tsolToken(
34263426
'6dcb8ff8-be59-471f-9e57-c3b68735d71e',
@@ -3470,7 +3470,7 @@ export const solTokens = [
34703470
'9cgpBeNZ2HnLda7NWaaU1i3NyTstk2c4zCMUcoAGsi9C',
34713471
'9cgpBeNZ2HnLda7NWaaU1i3NyTstk2c4zCMUcoAGsi9C',
34723472
UnderlyingAsset['tsol:usdt'],
3473-
[...SOL_TOKEN_FEATURES, CoinFeature.STABLECOIN]
3473+
[...SOL_TOKEN_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
34743474
),
34753475
tsolToken(
34763476
'7ad7512f-90ca-44e3-9238-ae78c1a3e57d',

modules/statics/test/unit/coins.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
113113
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
114114
CoinFeature.CUSTODY_BITGO_FRANKFURT,
115115
CoinFeature.CUSTODY_BITGO_SINGAPORE,
116+
CoinFeature.CUSTODY_BITGO_KOREA,
116117
],
117118
},
118119
etc: {
@@ -508,6 +509,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
508509
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
509510
CoinFeature.CUSTODY_BITGO_FRANKFURT,
510511
CoinFeature.CUSTODY_BITGO_SINGAPORE,
512+
CoinFeature.CUSTODY_BITGO_KOREA,
511513
CoinFeature.BULK_TRANSACTION,
512514
],
513515
},
@@ -579,7 +581,6 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
579581
CoinFeature.CUSTODY_BITGO_FRANKFURT,
580582
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
581583
CoinFeature.CUSTODY_BITGO_SINGAPORE,
582-
CoinFeature.CUSTODY_BITGO_KOREA,
583584
CoinFeature.CUSTODY_BITGO_MENA_FZE,
584585
],
585586
},
@@ -590,7 +591,6 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
590591
CoinFeature.CUSTODY_BITGO_FRANKFURT,
591592
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
592593
CoinFeature.CUSTODY_BITGO_SINGAPORE,
593-
CoinFeature.CUSTODY_BITGO_KOREA,
594594
CoinFeature.CUSTODY_BITGO_MENA_FZE,
595595
],
596596
},
@@ -606,7 +606,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
606606
CoinFeature.CUSTODY,
607607
CoinFeature.CUSTODY_BITGO_TRUST,
608608
CoinFeature.CUSTODY_BITGO_INDIA,
609-
CoinFeature.CUSTODY_BITGO_KOREA,
610609
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
611610
CoinFeature.CUSTODY_BITGO_FRANKFURT,
612611
],
@@ -619,7 +618,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
619618
CoinFeature.TRANSACTION_DATA,
620619
CoinFeature.CUSTODY_BITGO_TRUST,
621620
CoinFeature.CUSTODY_BITGO_INDIA,
622-
CoinFeature.CUSTODY_BITGO_KOREA,
623621
CoinFeature.CUSTODY,
624622
],
625623
},
@@ -631,7 +629,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
631629
CoinFeature.TRANSACTION_DATA,
632630
CoinFeature.CUSTODY_BITGO_TRUST,
633631
CoinFeature.CUSTODY_BITGO_INDIA,
634-
CoinFeature.CUSTODY_BITGO_KOREA,
635632
CoinFeature.CUSTODY,
636633
],
637634
},
@@ -644,7 +641,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
644641
CoinFeature.CUSTODY,
645642
CoinFeature.CUSTODY_BITGO_TRUST,
646643
CoinFeature.CUSTODY_BITGO_INDIA,
647-
CoinFeature.CUSTODY_BITGO_KOREA,
648644
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
649645
CoinFeature.CUSTODY_BITGO_FRANKFURT,
650646
],
@@ -659,7 +655,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
659655
CoinFeature.CUSTODY_BITGO_TRUST,
660656
CoinFeature.CUSTODY_BITGO_INDIA,
661657
CoinFeature.CUSTODY_BITGO_SINGAPORE,
662-
CoinFeature.CUSTODY_BITGO_KOREA,
663658
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
664659
CoinFeature.CUSTODY_BITGO_FRANKFURT,
665660
],
@@ -673,7 +668,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
673668
CoinFeature.CUSTODY,
674669
CoinFeature.CUSTODY_BITGO_TRUST,
675670
CoinFeature.CUSTODY_BITGO_INDIA,
676-
CoinFeature.CUSTODY_BITGO_KOREA,
677671
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
678672
CoinFeature.CUSTODY_BITGO_FRANKFURT,
679673
],
@@ -688,7 +682,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
688682
CoinFeature.CUSTODY_BITGO_TRUST,
689683
CoinFeature.CUSTODY_BITGO_INDIA,
690684
CoinFeature.CUSTODY_BITGO_SINGAPORE,
691-
CoinFeature.CUSTODY_BITGO_KOREA,
692685
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
693686
CoinFeature.CUSTODY_BITGO_FRANKFURT,
694687
],
@@ -702,7 +695,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
702695
CoinFeature.CUSTODY,
703696
CoinFeature.CUSTODY_BITGO_TRUST,
704697
CoinFeature.CUSTODY_BITGO_INDIA,
705-
CoinFeature.CUSTODY_BITGO_KOREA,
706698
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
707699
CoinFeature.CUSTODY_BITGO_FRANKFURT,
708700
],
@@ -716,7 +708,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
716708
CoinFeature.CUSTODY_BITGO_TRUST,
717709
CoinFeature.CUSTODY_BITGO_INDIA,
718710
CoinFeature.CUSTODY,
719-
CoinFeature.CUSTODY_BITGO_KOREA,
720711
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
721712
CoinFeature.CUSTODY_BITGO_FRANKFURT,
722713
],
@@ -730,7 +721,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
730721
CoinFeature.CUSTODY,
731722
CoinFeature.CUSTODY_BITGO_TRUST,
732723
CoinFeature.CUSTODY_BITGO_INDIA,
733-
CoinFeature.CUSTODY_BITGO_KOREA,
734724
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
735725
CoinFeature.CUSTODY_BITGO_FRANKFURT,
736726
],

0 commit comments

Comments
 (0)