Skip to content

Commit 8d5eb43

Browse files
Merge pull request #6535 from BitGo/WIN-6385
feat(statics): adding new coin feature to identify evm coins in UI
2 parents f8d38d6 + ef1c1bb commit 8d5eb43

File tree

2 files changed

+47
-6
lines changed

2 files changed

+47
-6
lines changed

modules/statics/src/base.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,11 @@ export enum CoinFeature {
403403
*/
404404
EVM_COMPATIBLE_IMS = 'evm-compatible-ims',
405405

406+
/**
407+
* This coin is an EVM compatible coin and should use common EVM logic in UI
408+
*/
409+
EVM_COMPATIBLE_UI = 'evm-compatible-ui',
410+
406411
/**
407412
* This coin is an EVM compatible coin which supports unsigned sweep recovery
408413
*/

modules/statics/src/coins.ts

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,13 @@ export const coins = CoinMap.fromCoins([
729729
18,
730730
UnderlyingAsset.SEIEVM,
731731
BaseUnit.ETH,
732-
[...EVM_FEATURES, CoinFeature.SHARED_EVM_SIGNING, CoinFeature.SHARED_EVM_SDK, CoinFeature.EVM_COMPATIBLE_IMS]
732+
[
733+
...EVM_FEATURES,
734+
CoinFeature.SHARED_EVM_SIGNING,
735+
CoinFeature.SHARED_EVM_SDK,
736+
CoinFeature.EVM_COMPATIBLE_IMS,
737+
CoinFeature.EVM_COMPATIBLE_UI,
738+
]
733739
),
734740
account(
735741
'42cd26d1-706d-40f6-bcce-7cb125e6f617',
@@ -739,7 +745,13 @@ export const coins = CoinMap.fromCoins([
739745
18,
740746
UnderlyingAsset.SEIEVM,
741747
BaseUnit.ETH,
742-
[...EVM_FEATURES, CoinFeature.SHARED_EVM_SIGNING, CoinFeature.SHARED_EVM_SDK, CoinFeature.EVM_COMPATIBLE_IMS]
748+
[
749+
...EVM_FEATURES,
750+
CoinFeature.SHARED_EVM_SIGNING,
751+
CoinFeature.SHARED_EVM_SDK,
752+
CoinFeature.EVM_COMPATIBLE_IMS,
753+
CoinFeature.EVM_COMPATIBLE_UI,
754+
]
743755
),
744756
account(
745757
'9fbfb875-fb80-4a37-b844-48b9e48dfcdd',
@@ -1406,7 +1418,13 @@ export const coins = CoinMap.fromCoins([
14061418
18,
14071419
UnderlyingAsset.KAIA,
14081420
BaseUnit.ETH,
1409-
[...EVM_FEATURES, CoinFeature.SHARED_EVM_SIGNING, CoinFeature.SHARED_EVM_SDK, CoinFeature.EVM_COMPATIBLE_IMS]
1421+
[
1422+
...EVM_FEATURES,
1423+
CoinFeature.SHARED_EVM_SIGNING,
1424+
CoinFeature.SHARED_EVM_SDK,
1425+
CoinFeature.EVM_COMPATIBLE_IMS,
1426+
CoinFeature.EVM_COMPATIBLE_UI,
1427+
]
14101428
),
14111429
account(
14121430
'f6be6f3d-ebac-49fc-8c73-e5b1fc115778',
@@ -1416,7 +1434,13 @@ export const coins = CoinMap.fromCoins([
14161434
18,
14171435
UnderlyingAsset.KAIA,
14181436
BaseUnit.ETH,
1419-
[...EVM_FEATURES, CoinFeature.SHARED_EVM_SIGNING, CoinFeature.SHARED_EVM_SDK, CoinFeature.EVM_COMPATIBLE_IMS]
1437+
[
1438+
...EVM_FEATURES,
1439+
CoinFeature.SHARED_EVM_SIGNING,
1440+
CoinFeature.SHARED_EVM_SDK,
1441+
CoinFeature.EVM_COMPATIBLE_IMS,
1442+
CoinFeature.EVM_COMPATIBLE_UI,
1443+
]
14201444
),
14211445
account(
14221446
'bc8541c1-b552-48a6-9a43-1c9b11c43227',
@@ -1426,7 +1450,13 @@ export const coins = CoinMap.fromCoins([
14261450
18,
14271451
UnderlyingAsset.IRYS,
14281452
BaseUnit.ETH,
1429-
[...EVM_FEATURES, CoinFeature.SHARED_EVM_SIGNING, CoinFeature.SHARED_EVM_SDK, CoinFeature.EVM_COMPATIBLE_IMS]
1453+
[
1454+
...EVM_FEATURES,
1455+
CoinFeature.SHARED_EVM_SIGNING,
1456+
CoinFeature.SHARED_EVM_SDK,
1457+
CoinFeature.EVM_COMPATIBLE_IMS,
1458+
CoinFeature.EVM_COMPATIBLE_UI,
1459+
]
14301460
),
14311461
account(
14321462
'8861d96c-f1a1-436a-8eb7-950f73f53c3a',
@@ -1436,7 +1466,13 @@ export const coins = CoinMap.fromCoins([
14361466
18,
14371467
UnderlyingAsset.IRYS,
14381468
BaseUnit.ETH,
1439-
[...EVM_FEATURES, CoinFeature.SHARED_EVM_SIGNING, CoinFeature.SHARED_EVM_SDK, CoinFeature.EVM_COMPATIBLE_IMS]
1469+
[
1470+
...EVM_FEATURES,
1471+
CoinFeature.SHARED_EVM_SIGNING,
1472+
CoinFeature.SHARED_EVM_SDK,
1473+
CoinFeature.EVM_COMPATIBLE_IMS,
1474+
CoinFeature.EVM_COMPATIBLE_UI,
1475+
]
14401476
),
14411477
account(
14421478
'251b78df-90c5-4ff5-b07a-8cc23f27c5ff',

0 commit comments

Comments
 (0)