Skip to content

Commit c85b58c

Browse files
feat: gate assets for Singapore custody
TICKET : https://bitgoinc.atlassian.net/browse/COIN-5477
1 parent 604af69 commit c85b58c

File tree

9 files changed

+182
-106
lines changed

9 files changed

+182
-106
lines changed

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,12 @@ export const allCoinsAndTokens = [
677677
6,
678678
UnderlyingAsset.OSMO,
679679
BaseUnit.OSMO,
680-
COSMOS_SIDECHAIN_FEATURES_WITH_STAKING
680+
COSMOS_SIDECHAIN_FEATURES_WITH_STAKING.filter(
681+
(feature) =>
682+
![
683+
CoinFeature.CUSTODY_BITGO_SINGAPORE,
684+
].includes(feature)
685+
)
681686
),
682687
account(
683688
'd813e9c9-f9b9-4d10-a4e2-57d9e3b65e2c',
@@ -1446,7 +1451,7 @@ export const allCoinsAndTokens = [
14461451
18,
14471452
UnderlyingAsset.WEMIX,
14481453
BaseUnit.ETH,
1449-
WEMIX_FEATURES
1454+
WEMIX_FEATURES.filter( (feature) => feature !== CoinFeature.CUSTODY_BITGO_SINGAPORE)
14501455
),
14511456
account(
14521457
'b18517e3-2fba-44df-be39-7ba062d14895',
@@ -2620,7 +2625,7 @@ export const allCoinsAndTokens = [
26202625
7,
26212626
UnderlyingAsset['xlm:SLT-GCKA6K5PCQ6PNF5RQBF7PQDJWRHO6UOGFMRLK3DYHDOI244V47XKQ4GP'],
26222627
'smartlands.io',
2623-
AccountCoin.DEFAULT_FEATURES,
2628+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE,
26242629
'',
26252630
'SLT'
26262631
),
@@ -4629,7 +4634,7 @@ export const allCoinsAndTokens = [
46294634
'VSUI',
46304635
'0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::vsui::VSUI',
46314636
UnderlyingAsset['sui:vsui'],
4632-
SUI_TOKEN_FEATURES
4637+
SUI_TOKEN_FEATURES_EXCLUDE_SINGAPORE
46334638
),
46344639
suiToken(
46354640
'705d1458-d5e6-4eaa-8a34-51e65cc68dec',

modules/statics/src/coinFeatures.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ export const STX_TOKEN_FEATURES = [
304304
CoinFeature.MULTISIG_COLD,
305305
CoinFeature.ALPHANUMERIC_MEMO_ID,
306306
];
307+
export const STX_TOKEN_FEATURES_EXCLUDE_SINGAPORE = STX_TOKEN_FEATURES.filter(
308+
(feature) => feature !== CoinFeature.CUSTODY_BITGO_SINGAPORE
309+
);
307310
export const NEAR_FEATURES = [
308311
...ACCOUNT_COIN_DEFAULT_FEATURES,
309312
CoinFeature.TSS,

modules/statics/src/coins/avaxTokens.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,10 @@ export const avaxTokens = [
568568
'Betswap.gg',
569569
18,
570570
'0x49f519002eeced6902f24c0be72b6d898e4d27fc',
571-
UnderlyingAsset['avaxc:bsgg']
571+
UnderlyingAsset['avaxc:bsgg'],
572+
AccountCoin.getFeaturesByTypeExcluding([
573+
CoinFeature.CUSTODY_BITGO_SINGAPORE
574+
])
572575
),
573576
avaxErc20(
574577
'e6bd6935-daac-4edc-8cfb-f8305ebbdb11',

modules/statics/src/coins/bscTokens.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,12 @@ export const bscTokens = [
150150
'0xcebef3df1f3c5bfd90fde603e71f31a53b11944d',
151151
UnderlyingAsset['bsc:litt'],
152152
AccountCoin.getFeaturesByTypeExcluding(
153-
[CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_EUROPE_APS, CoinFeature.CUSTODY_BITGO_FRANKFURT],
153+
[
154+
CoinFeature.CUSTODY_BITGO_GERMANY,
155+
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
156+
CoinFeature.CUSTODY_BITGO_FRANKFURT,
157+
CoinFeature.CUSTODY_BITGO_SINGAPORE,
158+
],
154159
BSC_TOKEN_FEATURES
155160
)
156161
),
@@ -197,7 +202,7 @@ export const bscTokens = [
197202
6,
198203
'0x71b3a0566f4bf80331d115d8026a7022bf670cce',
199204
UnderlyingAsset['bsc:dd'],
200-
BSC_TOKEN_FEATURES
205+
BSC_TOKEN_FEATURES_EXCLUDE_SINGAPORE
201206
),
202207
bscToken(
203208
'ebfcdf18-bdad-41da-bbda-2b3a71338c1c',
@@ -1019,7 +1024,7 @@ export const bscTokens = [
10191024
18,
10201025
'0x2003f7ba57ea956b05b85c60b4b2ceea9b111256',
10211026
UnderlyingAsset['bsc:kmd'],
1022-
BSC_TOKEN_FEATURES
1027+
BSC_TOKEN_FEATURES_EXCLUDE_SINGAPORE
10231028
),
10241029
bscToken(
10251030
'a4cda030-4c22-4ece-93b4-840da127781c',
@@ -1286,7 +1291,7 @@ export const bscTokens = [
12861291
18,
12871292
'0x64748ea3e31d0b7916f0ff91b017b9f404ded8ef',
12881293
UnderlyingAsset['bsc:cusdo'],
1289-
BSC_TOKEN_FEATURES
1294+
BSC_TOKEN_FEATURES_EXCLUDE_SINGAPORE
12901295
),
12911296
bscToken(
12921297
'94c40a09-1d9e-4623-8e74-58b604a041ab',

0 commit comments

Comments
 (0)