Skip to content

Commit 8b55445

Browse files
feat(statics): onboard tokens on morph chain
TICKET: WIN-7900
1 parent 99d219e commit 8b55445

6 files changed

Lines changed: 44 additions & 24 deletions

File tree

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2564,6 +2564,9 @@ export const allCoinsAndTokens = [
25642564
CoinFeature.EVM_COMPATIBLE_IMS,
25652565
CoinFeature.EVM_COMPATIBLE_UI,
25662566
CoinFeature.EVM_COMPATIBLE_WP,
2567+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2568+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2569+
CoinFeature.SUPPORTS_ERC20,
25672570
]
25682571
),
25692572
account(
@@ -2581,6 +2584,9 @@ export const allCoinsAndTokens = [
25812584
CoinFeature.EVM_COMPATIBLE_IMS,
25822585
CoinFeature.EVM_COMPATIBLE_UI,
25832586
CoinFeature.EVM_COMPATIBLE_WP,
2587+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2588+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2589+
CoinFeature.SUPPORTS_ERC20,
25842590
]
25852591
),
25862592
account(
@@ -2601,10 +2607,7 @@ export const allCoinsAndTokens = [
26012607
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
26022608
CoinFeature.SUPPORTS_ERC20,
26032609
CoinFeature.EVM_COMPATIBLE_WP,
2604-
],
2605-
KeyCurve.Secp256k1,
2606-
'',
2607-
'TDogeOS'
2610+
]
26082611
),
26092612
account(
26102613
'7d69a368-ea4b-422d-bb21-38812fb5a418',
@@ -2624,10 +2627,7 @@ export const allCoinsAndTokens = [
26242627
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
26252628
CoinFeature.SUPPORTS_ERC20,
26262629
CoinFeature.EVM_COMPATIBLE_WP,
2627-
],
2628-
KeyCurve.Secp256k1,
2629-
'',
2630-
'DogeOS'
2630+
]
26312631
),
26322632
account(
26332633
'cf06d1ea-f7c4-4a26-95fd-f71983eba58f',

modules/statics/src/base.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,6 +2377,9 @@ export enum UnderlyingAsset {
23772377
'eth:spec' = 'eth:spec',
23782378
'eth:prompt' = 'eth:prompt',
23792379
'eth:yb' = 'eth:yb',
2380+
'morph:usdc' = 'morph:usdc',
2381+
'morph:usdt' = 'morph:usdt',
2382+
'morph:usd1' = 'morph:usd1',
23802383

23812384
'xlm:BST-GADDFE4R72YUP2AOEL67OHZN3GJQYPC3VE734N2XFMEGRR2L32CZ3XYZ' = 'xlm:BST-GADDFE4R72YUP2AOEL67OHZN3GJQYPC3VE734N2XFMEGRR2L32CZ3XYZ',
23822385
'xlm:VELO-GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M' = 'xlm:VELO-GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M',

modules/statics/src/coins/erc20Coins.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14251,4 +14251,28 @@ export const erc20Coins = [
1425114251
'0x01791f726b4103694969820be083196cc7c045ff',
1425214252
UnderlyingAsset['eth:yb']
1425314253
),
14254+
erc20(
14255+
'd95a9238-a1e6-42df-862f-a921adf8151d',
14256+
'morph:usdc',
14257+
'USD Coin',
14258+
6,
14259+
'0xe34c91815d7fc18A9e2148bcD4241d0a5848b693',
14260+
UnderlyingAsset['morph:usdc']
14261+
),
14262+
erc20(
14263+
'7c3fb96a-edaf-4c5d-85b3-4a445ce92fc8',
14264+
'morph:usdt',
14265+
'Tether USD',
14266+
6,
14267+
'0xc7D67A9cBB121b3b0b9c053DD9f469523243379A',
14268+
UnderlyingAsset['morph:usdt']
14269+
),
14270+
erc20(
14271+
'03ccbfa5-c912-45f7-8b77-9e21950a5369',
14272+
'morph:usd1',
14273+
'USD1',
14274+
18,
14275+
'0x111111d2bf19e43C34263401e0CAd979eD1cdb61',
14276+
UnderlyingAsset['morph:usd1']
14277+
),
1425414278
];

modules/statics/src/coins/ofcErc20Coins.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5212,6 +5212,9 @@ export const tOfcErc20Coins = [
52125212
18,
52135213
underlyingAssetForSymbol('megaeth:weth')
52145214
),
5215+
ofcerc20('4d5f4fb7-b2e2-4e63-bbda-7f315332da5b', 'ofcmorph:usdc', 'USD Coin', 6, UnderlyingAsset['morph:usdc']),
5216+
ofcerc20('37f51c58-9be5-4c56-adcb-2c7f3c2cfc1a', 'ofcmorph:usdt', 'Tether USD', 6, UnderlyingAsset['morph:usdt']),
5217+
ofcerc20('e499e7cc-22ae-4374-ae4b-27651565af15', 'ofcmorph:usd1', 'USD1', 18, UnderlyingAsset['morph:usd1']),
52155218
];
52165219

52175220
function underlyingAssetForSymbol(underlyingAssetValue: string): UnderlyingAsset {

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@
105105
"**/ethers/**/ws": "7.5.10",
106106
"**/swarm-js/**/ws": "5.2.4",
107107
"**/swarm-js/**/tar": "6.2.1",
108+
"**/lerna/**/tar": "7.5.3",
109+
"**/yeoman-generator/**/tar": "7.5.3",
108110
"serialize-javascript": "^6.0.2",
109111
"@grpc/grpc-js": "^1.12.6",
110112
"bigint-buffer": "npm:@trufflesuite/bigint-buffer@1.1.10",

yarn.lock

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20003,22 +20003,10 @@ tar-stream@~2.2.0:
2000320003
inherits "^2.0.3"
2000420004
readable-stream "^3.1.1"
2000520005

20006-
tar@6.2.1, tar@^6.1.11, tar@^6.1.2:
20007-
version "6.2.1"
20008-
resolved "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz"
20009-
integrity sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==
20010-
dependencies:
20011-
chownr "^2.0.0"
20012-
fs-minipass "^2.0.0"
20013-
minipass "^5.0.0"
20014-
minizlib "^2.1.1"
20015-
mkdirp "^1.0.3"
20016-
yallist "^4.0.0"
20017-
20018-
tar@^7.4.3:
20019-
version "7.5.1"
20020-
resolved "https://registry.npmjs.org/tar/-/tar-7.5.1.tgz"
20021-
integrity sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g==
20006+
tar@6.2.1, tar@7.5.3, tar@^6.1.11, tar@^6.1.2, tar@^7.4.3:
20007+
version "7.5.3"
20008+
resolved "https://registry.npmjs.org/tar/-/tar-7.5.3.tgz#e1a41236e32446f75e63b720222112c4ffe5b3a1"
20009+
integrity sha512-ENg5JUHUm2rDD7IvKNFGzyElLXNjachNLp6RaGf4+JOgxXHkqA+gq81ZAMCUmtMtqBsoU62lcp6S27g1LCYGGQ==
2002220010
dependencies:
2002320011
"@isaacs/fs-minipass" "^4.0.0"
2002420012
chownr "^3.0.0"

0 commit comments

Comments
 (0)