Skip to content

Commit 8b3c70e

Browse files
authored
Merge pull request #5234 from BitGo/WIN-3948-optimized-onboarding-of-tokens
Win 3948 optimized onboarding of tokens
2 parents ddde72b + d808dab commit 8b3c70e

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

modules/statics/src/base.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,11 @@ export enum UnderlyingAsset {
17831783
'eth:rtbl' = 'eth:rtbl',
17841784
'eth:virtual' = 'eth:virtual',
17851785
'eth:vice' = 'eth:vice',
1786+
'eth:kava' = 'eth:kava',
1787+
'eth:iq' = 'eth:iq',
1788+
'eth:iris' = 'eth:iris',
1789+
'eth:hard' = 'eth:hard',
1790+
'eth:hegic' = 'eth:hegic',
17861791
'xlm:BST-GADDFE4R72YUP2AOEL67OHZN3GJQYPC3VE734N2XFMEGRR2L32CZ3XYZ' = 'xlm:BST-GADDFE4R72YUP2AOEL67OHZN3GJQYPC3VE734N2XFMEGRR2L32CZ3XYZ',
17871792
'xlm:VELO-GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M' = 'xlm:VELO-GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M',
17881793
'xlm:SLT-GCKA6K5PCQ6PNF5RQBF7PQDJWRHO6UOGFMRLK3DYHDOI244V47XKQ4GP' = 'xlm:SLT-GCKA6K5PCQ6PNF5RQBF7PQDJWRHO6UOGFMRLK3DYHDOI244V47XKQ4GP',

modules/statics/src/coins.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import {
4646
import { Ada, ada } from './ada';
4747
import { avaxp } from './avaxp';
4848
import { BaseUnit, CoinFeature, CoinKind, KeyCurve, UnderlyingAsset } from './base';
49+
import { erc20Coins } from './coins/erc20Coins';
4950
import { CoinMap } from './map';
5051
import { Networks } from './networks';
5152
import {
@@ -410,6 +411,7 @@ const WCT_FEATURES = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.STAKING];
410411
export const coins = CoinMap.fromCoins([
411412
...lightningCoins,
412413
...utxoCoins,
414+
...erc20Coins,
413415
avaxp(
414416
'5436386e-9e4d-4d82-92df-59d9720d1738',
415417
'avaxp',
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { UnderlyingAsset } from '../base';
2+
import { erc20 } from '../account';
3+
export const erc20Coins = [
4+
erc20(
5+
'3cdd1d41-b561-4c0c-aa82-72c52ebe69e5',
6+
'eth:kava',
7+
'Kava',
8+
6,
9+
'0x0c356b7fd36a5357e5a017ef11887ba100c9ab76',
10+
UnderlyingAsset['eth:kava']
11+
),
12+
erc20(
13+
'0b22028a-fa33-47e3-9b4d-b32173b53ab6',
14+
'eth:iq',
15+
'IQ',
16+
18,
17+
'0x579cea1889991f68acc35ff5c3dd0621ff29b0c9',
18+
UnderlyingAsset['eth:iq']
19+
),
20+
erc20(
21+
'04d29dd7-7167-4f5e-83ab-5a8690e2daaf',
22+
'eth:iris',
23+
'IRISnet',
24+
6,
25+
'0x76c4a2b59523eae19594c630aab43288dbb1463f',
26+
UnderlyingAsset['eth:iris']
27+
),
28+
erc20(
29+
'a214db0d-a25b-485f-a8fc-b7970cb4d500',
30+
'eth:hard',
31+
'Kava Lend',
32+
6,
33+
'0x1c700f95df53fc31e83d89ac89e5dd778d4cd310',
34+
UnderlyingAsset['eth:hard']
35+
),
36+
erc20(
37+
'a9fbae2c-d9c7-47b7-9602-ff6316a1ca00',
38+
'eth:hegic',
39+
'Hegic',
40+
18,
41+
'0x584bc13c7d411c00c01a62e8019472de68768430',
42+
UnderlyingAsset['eth:hegic']
43+
),
44+
];

0 commit comments

Comments
 (0)