Skip to content

Commit 042dd21

Browse files
authored
Merge pull request #6866 from BitGo/TMS-1415-add-stablecoin-coinfeature
feat: added stablecoin coinfeature flag
2 parents 25e6939 + 6ef7d15 commit 042dd21

File tree

11 files changed

+719
-320
lines changed

11 files changed

+719
-320
lines changed

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 60 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,7 +2008,7 @@ export const allCoinsAndTokens = [
20082008
6,
20092009
UnderlyingAsset.USDC,
20102010
'0.0.456858',
2011-
AccountCoin.DEFAULT_FEATURES
2011+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
20122012
),
20132013

20142014
hederaToken(
@@ -2139,7 +2139,7 @@ export const allCoinsAndTokens = [
21392139
6,
21402140
UnderlyingAsset.USDC,
21412141
'0.0.429274',
2142-
AccountCoin.DEFAULT_FEATURES
2142+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
21432143
),
21442144
hederaToken(
21452145
'77bc438b-7206-4cb1-bee8-dc900e5915be',
@@ -2230,7 +2230,7 @@ export const allCoinsAndTokens = [
22302230
7,
22312231
UnderlyingAsset['xlm:USD-GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX'],
22322232
'anchorusd.com',
2233-
AccountCoin.DEFAULT_FEATURES,
2233+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN],
22342234
'',
22352235
'USD'
22362236
),
@@ -2263,7 +2263,7 @@ export const allCoinsAndTokens = [
22632263
7,
22642264
UnderlyingAsset['xlm:USDC-GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN'],
22652265
'centre.io',
2266-
XLM_TOKEN_FEATURES_WITH_FRANKFURT,
2266+
[...XLM_TOKEN_FEATURES_WITH_FRANKFURT, CoinFeature.STABLECOIN],
22672267
'',
22682268
'USDC'
22692269
),
@@ -2340,7 +2340,7 @@ export const allCoinsAndTokens = [
23402340
7,
23412341
UnderlyingAsset['xlm:ZUSD-GDF6VOEGRWLOZ64PQQGKD2IYWA22RLT37GJKS2EJXZHT2VLAGWLC5TOB'],
23422342
'stablecoin.z.com',
2343-
XLM_TOKEN_FEATURES_WITH_FRANKFURT,
2343+
[...XLM_TOKEN_FEATURES_WITH_FRANKFURT, CoinFeature.STABLECOIN],
23442344
'',
23452345
'ZUSD'
23462346
),
@@ -2448,15 +2448,17 @@ export const allCoinsAndTokens = [
24482448
'USD Coin',
24492449
6,
24502450
'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8',
2451-
UnderlyingAsset.USDC
2451+
UnderlyingAsset.USDC,
2452+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
24522453
),
24532454
tronToken(
24542455
'f96fda99-cf5a-4ac4-885e-fa95292a7135',
24552456
'trx:usdt',
24562457
'Tether USD',
24572458
6,
24582459
'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
2459-
UnderlyingAsset['trx:usdt']
2460+
UnderlyingAsset['trx:usdt'],
2461+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
24602462
),
24612463
tronToken(
24622464
'77fe25dc-7871-4d9d-9cc0-2e5cba6250ff',
@@ -2488,7 +2490,8 @@ export const allCoinsAndTokens = [
24882490
'TrueUSD',
24892491
18,
24902492
'TUpMhErZL2fhh4sVNULAbNKLokS4GjC1F4',
2491-
UnderlyingAsset['trx:tusd']
2493+
UnderlyingAsset['trx:tusd'],
2494+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
24922495
),
24932496
tronToken(
24942497
'71084f91-30f3-4907-bbb0-ce26ea8584d5',
@@ -2512,15 +2515,17 @@ export const allCoinsAndTokens = [
25122515
'USDD',
25132516
18,
25142517
'TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn',
2515-
UnderlyingAsset['trx:usdd']
2518+
UnderlyingAsset['trx:usdd'],
2519+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
25162520
),
25172521
tronToken(
25182522
'6d37a333-c09b-44b8-bd2b-f07f12b838cd',
25192523
'trx:usd1',
25202524
'USD1',
25212525
18,
25222526
'TPFqcBAaaUMCSVRCqPaQ9QnzKhmuoLR6Rc',
2523-
UnderlyingAsset['trx:usd1']
2527+
UnderlyingAsset['trx:usd1'],
2528+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
25242529
),
25252530
tronToken(
25262531
'35b44b0f-272c-4e13-8056-3bbab3fd609e',
@@ -2537,7 +2542,7 @@ export const allCoinsAndTokens = [
25372542
'USDC',
25382543
6,
25392544
UnderlyingAsset['algo:USDC-31566704'],
2540-
AccountCoin.DEFAULT_FEATURES,
2545+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN],
25412546
'',
25422547
'USDC'
25432548
),
@@ -2548,7 +2553,7 @@ export const allCoinsAndTokens = [
25482553
'Algorand USDT',
25492554
6,
25502555
UnderlyingAsset['algo:USDt-312769'],
2551-
AccountCoin.DEFAULT_FEATURES,
2556+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN],
25522557
'',
25532558
'USDt'
25542559
),
@@ -2737,31 +2742,35 @@ export const allCoinsAndTokens = [
27372742
'USD Coin',
27382743
6,
27392744
'TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id',
2740-
UnderlyingAsset.USDC
2745+
UnderlyingAsset.USDC,
2746+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
27412747
),
27422748
ttronToken(
27432749
'85a60a5a-88e3-45df-9e2c-dc6161b4c6b1',
27442750
'ttrx:usdt',
27452751
'Tether USD',
27462752
6,
27472753
'TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs',
2748-
UnderlyingAsset['ttrx:usdt']
2754+
UnderlyingAsset['ttrx:usdt'],
2755+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
27492756
),
27502757
ttronToken(
27512758
'78551a7f-17d1-4e81-b6a9-3c6e960337f4',
27522759
'ttrx:usd1',
27532760
'Test USD1 Token',
27542761
18,
27552762
'TMsuh7QxbJkYaLsGMGCgNJYtYjTZLJG3Np',
2756-
UnderlyingAsset['ttrx:usd1']
2763+
UnderlyingAsset['ttrx:usd1'],
2764+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
27572765
),
27582766
ttronToken(
27592767
'4853b203-e475-4538-bcba-f69da0e45d4b',
27602768
'ttrx:stgusd1',
27612769
'Test USD1 Token',
27622770
18,
27632771
'TPEwuCefwvzBcr9BHvg2xhJCaf499uGMZx',
2764-
UnderlyingAsset['ttrx:stgusd1']
2772+
UnderlyingAsset['ttrx:stgusd1'],
2773+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
27652774
),
27662775
talgoToken(
27672776
'0e20b757-3e62-4400-887d-caff117481c8',
@@ -2770,7 +2779,7 @@ export const allCoinsAndTokens = [
27702779
'USDC',
27712780
6,
27722781
UnderlyingAsset['talgo:USDC-10458941'],
2773-
AccountCoin.DEFAULT_FEATURES,
2782+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN],
27742783
'',
27752784
'USDC'
27762785
),
@@ -2781,7 +2790,7 @@ export const allCoinsAndTokens = [
27812790
'Testnet Algorand USDT',
27822791
6,
27832792
UnderlyingAsset['talgo:USDt-180447'],
2784-
AccountCoin.DEFAULT_FEATURES,
2793+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN],
27852794
'',
27862795
'USDt'
27872796
),
@@ -2873,7 +2882,7 @@ export const allCoinsAndTokens = [
28732882
'tethertether',
28742883
'tethertether',
28752884
UnderlyingAsset.USDT,
2876-
AccountCoin.DEFAULT_FEATURES,
2885+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN],
28772886
'',
28782887
'USDT'
28792888
),
@@ -2934,7 +2943,7 @@ export const allCoinsAndTokens = [
29342943
'lionteste212',
29352944
'lionteste212',
29362945
UnderlyingAsset.USDT,
2937-
AccountCoin.DEFAULT_FEATURES,
2946+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN],
29382947
'',
29392948
'USDT'
29402949
),
@@ -3110,7 +3119,8 @@ export const allCoinsAndTokens = [
31103119
'USD Coin',
31113120
6,
31123121
'0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
3113-
UnderlyingAsset['arbeth:usdc']
3122+
UnderlyingAsset['arbeth:usdc'],
3123+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
31143124
),
31153125
arbethErc20(
31163126
'8deaaaf0-f81f-4697-bba6-77f4cfcd4efc',
@@ -3119,15 +3129,16 @@ export const allCoinsAndTokens = [
31193129
6,
31203130
'0xaf88d065e77c8cc2239327c5edb3a432268e5831',
31213131
UnderlyingAsset['arbeth:usdcv2'],
3122-
TOKEN_FEATURES_WITH_FRANKFURT
3132+
[...TOKEN_FEATURES_WITH_FRANKFURT, CoinFeature.STABLECOIN]
31233133
),
31243134
arbethErc20(
31253135
'a49b04e6-5a1b-4d55-9187-4d41c41f8f1e',
31263136
'arbeth:usdt',
31273137
'Tether USD',
31283138
6,
31293139
'0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
3130-
UnderlyingAsset['arbeth:usdt']
3140+
UnderlyingAsset['arbeth:usdt'],
3141+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
31313142
),
31323143
arbethErc20(
31333144
'7dfbdd2b-efd6-45ab-90bd-9c3bc16d1397',
@@ -3232,7 +3243,8 @@ export const allCoinsAndTokens = [
32323243
'TrueUSD',
32333244
18,
32343245
'0x4d15a3a2286d883af0aa1b3f21367843fac63e07',
3235-
UnderlyingAsset['arbeth:tusd']
3246+
UnderlyingAsset['arbeth:tusd'],
3247+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
32363248
),
32373249
arbethErc20(
32383250
'eb721759-6da6-46c3-b0d2-a7e9d939c527',
@@ -3516,23 +3528,26 @@ export const allCoinsAndTokens = [
35163528
'USD Coin',
35173529
6,
35183530
'0x7f5c764cbc14f9669b88837ca1490cca17c31607',
3519-
UnderlyingAsset['opeth:usdc']
3531+
UnderlyingAsset['opeth:usdc'],
3532+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
35203533
),
35213534
opethErc20(
35223535
'00abc58e-c1fb-4b9b-8b9a-d609071bb7be',
35233536
'opeth:usdcv2',
35243537
'USD Coin (native)',
35253538
6,
35263539
'0x0b2c639c533813f4aa9d7837caf62653d097ff85',
3527-
UnderlyingAsset['opeth:usdcv2']
3540+
UnderlyingAsset['opeth:usdcv2'],
3541+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
35283542
),
35293543
opethErc20(
35303544
'634d052e-8c1c-47ed-aded-d0a2399439b0',
35313545
'opeth:usdt',
35323546
'Tether USD',
35333547
6,
35343548
'0x94b008aa00579c1307b0ef2c499ad98a8ce58e58',
3535-
UnderlyingAsset['opeth:usdt']
3549+
UnderlyingAsset['opeth:usdt'],
3550+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
35363551
),
35373552
opethErc20(
35383553
'949c4e1f-83b8-4ca0-a6dc-72817a8a86e7',
@@ -3749,7 +3764,8 @@ export const allCoinsAndTokens = [
37493764
18,
37503765
// TODO: the mainnet contract address is still not available, adding placeholder here, WIN-3597
37513766
'0xbda130737bdd9618301681329bf2e46a016ff9a0',
3752-
UnderlyingAsset['bera:usdc']
3767+
UnderlyingAsset['bera:usdc'],
3768+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
37533769
),
37543770
beraErc20(
37553771
'd7b6efe9-4ce2-4f23-9a31-adba41900716',
@@ -3790,7 +3806,8 @@ export const allCoinsAndTokens = [
37903806
'Bera Testnet USDC',
37913807
18,
37923808
'0xd6d83af58a19cd14ef3cf6fe848c9a4d21e5727c',
3793-
UnderlyingAsset['tbera:usdc']
3809+
UnderlyingAsset['tbera:usdc'],
3810+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
37943811
),
37953812
tberaErc20(
37963813
'f46242ce-dd4a-44c9-8b52-ef6dfaae1d79',
@@ -3838,7 +3855,8 @@ export const allCoinsAndTokens = [
38383855
'USDC',
38393856
6,
38403857
'0x79a02482a880bce3f13e09da970dc34db4cd24d1',
3841-
UnderlyingAsset['world:usdc']
3858+
UnderlyingAsset['world:usdc'],
3859+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
38423860
),
38433861
tworldErc20(
38443862
'c5acdc9b-d0d4-4e0c-88fe-2cc68504cf86',
@@ -3854,7 +3872,8 @@ export const allCoinsAndTokens = [
38543872
'USDC',
38553873
6,
38563874
'0x66145f38cbac35ca6f1dfb4914df98f1614aea88',
3857-
UnderlyingAsset['tworld:usdc']
3875+
UnderlyingAsset['tworld:usdc'],
3876+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
38583877
),
38593878
txrpToken(
38603879
'8ef16158-1015-4a67-b6fe-db669c18ab2b',
@@ -3876,7 +3895,8 @@ export const allCoinsAndTokens = [
38763895
'524C555344000000000000000000000000000000',
38773896
'rQhWct2fv4Vc4KRjRgMrxa8xPN9Zx9iLKV::524C555344000000000000000000000000000000',
38783897
'ripple.com',
3879-
UnderlyingAsset['txrp:rlusd']
3898+
UnderlyingAsset['txrp:rlusd'],
3899+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
38803900
),
38813901
xrpToken(
38823902
'a5e3e409-4cde-443d-9000-22bfc99ad456',
@@ -3887,7 +3907,8 @@ export const allCoinsAndTokens = [
38873907
'524C555344000000000000000000000000000000',
38883908
'rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De::524C555344000000000000000000000000000000',
38893909
'ripple.com',
3890-
UnderlyingAsset['xrp:rlusd']
3910+
UnderlyingAsset['xrp:rlusd'],
3911+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
38913912
),
38923913
xrpToken(
38933914
'd6d5ff31-c539-4ea7-ae62-a6d986190234',
@@ -4034,7 +4055,7 @@ export const allCoinsAndTokens = [
40344055
'FDUSD',
40354056
'0xf16e6b723f242ec745dfd7634ad072c42d5c1d9ac9d62a39c381303eaa57693a::fdusd::FDUSD',
40364057
UnderlyingAsset['sui:fdusd'],
4037-
SUI_TOKEN_FEATURES
4058+
[...SUI_TOKEN_FEATURES, CoinFeature.STABLECOIN]
40384059
),
40394060
suiToken(
40404061
'e78941b5-9c34-4198-9c2c-cb9e27d4dde7',
@@ -4046,7 +4067,7 @@ export const allCoinsAndTokens = [
40464067
'USDC',
40474068
'0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC',
40484069
UnderlyingAsset['sui:usdc'],
4049-
SUI_TOKEN_FEATURES
4070+
[...SUI_TOKEN_FEATURES, CoinFeature.STABLECOIN]
40504071
),
40514072
suiToken(
40524073
'b3729af5-033b-495f-bab6-b5225c8f27e7',
@@ -4058,7 +4079,7 @@ export const allCoinsAndTokens = [
40584079
'COIN',
40594080
'0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN',
40604081
UnderlyingAsset['sui:wusdc'],
4061-
SUI_TOKEN_FEATURES
4082+
[...SUI_TOKEN_FEATURES, CoinFeature.STABLECOIN]
40624083
),
40634084
suiToken(
40644085
'97617c48-004c-4222-9eff-d77d10ce8443',
@@ -4281,7 +4302,7 @@ export const allCoinsAndTokens = [
42814302
6,
42824303
'0x357b0b74bc833e95a115ad22604854d6b0fca151cecd94111770e5d6ffc9dc2b',
42834304
UnderlyingAsset['apt:usdt'],
4284-
APT_FEATURES
4305+
[...APT_FEATURES, CoinFeature.STABLECOIN]
42854306
),
42864307
aptToken(
42874308
'bf82aa75-88a8-4010-91cf-b8811cf4b763',
@@ -4290,7 +4311,7 @@ export const allCoinsAndTokens = [
42904311
6,
42914312
'0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b',
42924313
UnderlyingAsset['apt:usdc'],
4293-
APT_FEATURES
4314+
[...APT_FEATURES, CoinFeature.STABLECOIN]
42944315
),
42954316
aptToken(
42964317
'3d29adfb-7df5-4295-a3c2-acdf3f23adc2',
@@ -4326,7 +4347,7 @@ export const allCoinsAndTokens = [
43264347
6,
43274348
'0xd5d0d561493ea2b9410f67da804653ae44e793c2423707d4f11edb2e38192050',
43284349
UnderlyingAsset['tapt:usdt'],
4329-
APT_FEATURES
4350+
[...APT_FEATURES, CoinFeature.STABLECOIN]
43304351
),
43314352
aptNFTCollection(
43324353
'3672e359-d96d-46fc-9a37-9c87c1d52a86',

modules/statics/src/base.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,11 @@ export enum CoinFeature {
468468
* This coin is an EVM compatible coin and should use common EVM message signing functionality
469469
*/
470470
SHARED_EVM_MESSAGE_SIGNING = 'shared-evm-message-signing',
471+
472+
/**
473+
* This token is a stablecoin
474+
*/
475+
STABLECOIN = 'stablecoin',
471476
}
472477

473478
/**

0 commit comments

Comments
 (0)