Skip to content

Commit 863dca8

Browse files
committed
feat(statics): add morpheth config
Ticket: WIN-8769 TICKET: WIN-8769
1 parent e711153 commit 863dca8

8 files changed

Lines changed: 152 additions & 2 deletions

File tree

modules/bitgo/test/v2/unit/keychains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ describe('V2 Keychains', function () {
105105
n.asset !== UnderlyingAsset.JOVAYETH &&
106106
n.asset !== UnderlyingAsset.OKBXLAYER &&
107107
n.asset !== UnderlyingAsset.MORPH &&
108+
n.asset !== UnderlyingAsset.MORPHETH &&
108109
n.asset !== UnderlyingAsset.DOGEOS &&
109110
n.asset !== UnderlyingAsset.MEGAETH &&
110111
n.asset !== UnderlyingAsset.ARCUSDC &&

modules/sdk-core/src/bitgo/environments.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ const mainnetBase: EnvironmentTemplate = {
297297
morph: {
298298
baseUrl: 'https://explorer-api-hoodi.morphl2.io', // TODO: WIN-8134 add mainnet url when available
299299
},
300+
morpheth: {
301+
baseUrl: 'https://explorer.morph.network/',
302+
},
300303
dogeos: {
301304
baseUrl: 'https://blockscout.testnet.dogeos.com', //TODO: WIN-8082 => add mainnet url when available
302305
},
@@ -469,6 +472,9 @@ const testnetBase: EnvironmentTemplate = {
469472
morph: {
470473
baseUrl: 'https://explorer-api-hoodi.morphl2.io',
471474
},
475+
morpheth: {
476+
baseUrl: 'https://explorer-hoodi.morph.network/',
477+
},
472478
dogeos: {
473479
baseUrl: 'https://blockscout.testnet.dogeos.com',
474480
},

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2593,6 +2593,47 @@ export const allCoinsAndTokens = [
25932593
CoinFeature.SUPPORTS_ERC20,
25942594
]
25952595
),
2596+
2597+
account(
2598+
'51de29b1-dd97-4b05-9239-a177522b469f',
2599+
'morpheth',
2600+
'Morph Ethereum Mainnet',
2601+
Networks.main.morpheth,
2602+
18,
2603+
UnderlyingAsset.MORPHETH,
2604+
BaseUnit.ETH,
2605+
[
2606+
...EVM_FEATURES,
2607+
CoinFeature.SHARED_EVM_SIGNING,
2608+
CoinFeature.SHARED_EVM_SDK,
2609+
CoinFeature.EVM_COMPATIBLE_IMS,
2610+
CoinFeature.EVM_COMPATIBLE_UI,
2611+
CoinFeature.EVM_COMPATIBLE_WP,
2612+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2613+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2614+
CoinFeature.SUPPORTS_ERC20,
2615+
]
2616+
),
2617+
account(
2618+
'f99419da-0ee8-46c3-af81-3bd43af29642',
2619+
'tmorpheth',
2620+
'Morph Ethereum Testnet',
2621+
Networks.test.morpheth,
2622+
18,
2623+
UnderlyingAsset.MORPHETH,
2624+
BaseUnit.ETH,
2625+
[
2626+
...EVM_FEATURES,
2627+
CoinFeature.SHARED_EVM_SIGNING,
2628+
CoinFeature.SHARED_EVM_SDK,
2629+
CoinFeature.EVM_COMPATIBLE_IMS,
2630+
CoinFeature.EVM_COMPATIBLE_UI,
2631+
CoinFeature.EVM_COMPATIBLE_WP,
2632+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2633+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2634+
CoinFeature.SUPPORTS_ERC20,
2635+
]
2636+
),
25962637
account(
25972638
'887eebff-5d50-47f7-aea5-905e25c2e846',
25982639
'tdogeos',

modules/statics/src/base.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export enum CoinFamily {
126126
SOMI = 'somi', // Somnia Chain
127127
FLUENTETH = 'fluenteth',
128128
MORPH = 'morph',
129+
MORPHETH = 'morpheth',
129130
ARCUSDC = 'arcusdc', // ARC network
130131
TEMPO = 'tempo', // Tempo Network
131132
}
@@ -609,6 +610,7 @@ export enum UnderlyingAsset {
609610
MEGAETH = 'megaeth',
610611
MON = 'mon',
611612
MORPH = 'morph',
613+
MORPHETH = 'morpheth',
612614
NEAR = 'near',
613615
OAS = 'oas',
614616
OG = 'og',
@@ -2388,9 +2390,13 @@ export enum UnderlyingAsset {
23882390
'eth:prompt' = 'eth:prompt',
23892391
'eth:yb' = 'eth:yb',
23902392
'morph:usdc' = 'morph:usdc',
2393+
'morpheth:usdc' = 'morpheth:usdc',
23912394
'morph:usdt' = 'morph:usdt',
2395+
'morpheth:usdt' = 'morpheth:usdt',
23922396
'morph:usd1' = 'morph:usd1',
2397+
'morpheth:usd1' = 'morpheth:usd1',
23932398
'tmorph:tmt' = 'tmorph:tmt',
2399+
'tmorpheth:tmt' = 'tmorpheth:tmt',
23942400

23952401
'xlm:BST-GADDFE4R72YUP2AOEL67OHZN3GJQYPC3VE734N2XFMEGRR2L32CZ3XYZ' = 'xlm:BST-GADDFE4R72YUP2AOEL67OHZN3GJQYPC3VE734N2XFMEGRR2L32CZ3XYZ',
23962402
'xlm:VELO-GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M' = 'xlm:VELO-GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M',

modules/statics/src/coins/ofcCoins.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,22 @@ export const ofcCoins = [
297297
UnderlyingAsset.MORPH,
298298
CoinKind.CRYPTO
299299
),
300+
ofc(
301+
'cdf3487e-a365-4319-83ff-ff06f02810a6',
302+
'ofcmorpheth',
303+
'Morph Ethereum',
304+
18,
305+
UnderlyingAsset.MORPHETH,
306+
CoinKind.CRYPTO
307+
),
308+
tofc(
309+
'4113e0ae-41c5-4293-8b7a-5829cbc3ee92',
310+
'ofctmorpheth',
311+
'Morph Ethereum Testnet',
312+
18,
313+
UnderlyingAsset.MORPHETH,
314+
CoinKind.CRYPTO
315+
),
300316
ofc(
301317
'dc733b2f-92bf-49d3-9f5d-9774e1637f0f',
302318
'ofcokbxlayer',

modules/statics/src/coins/ofcErc20Coins.ts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5359,6 +5359,64 @@ export const tOfcErc20Coins = [
53595359
true,
53605360
'tmorph'
53615361
),
5362+
5363+
// MorphETH tokens
5364+
ofcerc20(
5365+
'9c28b89b-1069-4bad-bf7b-8ecea440cee2',
5366+
'ofcmorpheth:usdc',
5367+
'USD Coin',
5368+
6,
5369+
UnderlyingAsset['morpheth:usdc'],
5370+
undefined,
5371+
undefined,
5372+
'',
5373+
undefined,
5374+
undefined,
5375+
true,
5376+
'morpheth'
5377+
),
5378+
ofcerc20(
5379+
'07010f84-5bc7-4715-9d19-09d694f558fb',
5380+
'ofcmorpheth:usdt',
5381+
'Tether USD',
5382+
6,
5383+
UnderlyingAsset['morpheth:usdt'],
5384+
undefined,
5385+
undefined,
5386+
'',
5387+
undefined,
5388+
undefined,
5389+
true,
5390+
'morpheth'
5391+
),
5392+
ofcerc20(
5393+
'883727b5-49e3-4fb3-99f7-fefb803710e5',
5394+
'ofcmorpheth:usd1',
5395+
'USD1',
5396+
18,
5397+
UnderlyingAsset['morpheth:usd1'],
5398+
undefined,
5399+
undefined,
5400+
'',
5401+
undefined,
5402+
undefined,
5403+
true,
5404+
'morpheth'
5405+
),
5406+
tofcerc20(
5407+
'34e77cee-2885-4a77-911c-b5f2bdd28cd7',
5408+
'ofctmorpheth:tmt',
5409+
'Test Mintable Token',
5410+
6,
5411+
underlyingAssetForSymbol('tmorpheth:tmt'),
5412+
undefined,
5413+
undefined,
5414+
'',
5415+
undefined,
5416+
undefined,
5417+
true,
5418+
'tmorpheth'
5419+
),
53625420
];
53635421

53645422
function underlyingAssetForSymbol(underlyingAssetValue: string): UnderlyingAsset {

modules/statics/src/networks.ts

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,8 +1700,26 @@ class Morph extends Mainnet implements EthereumNetwork {
17001700
class MorphTestnet extends Testnet implements EthereumNetwork {
17011701
name = 'Morph Testnet';
17021702
family = CoinFamily.MORPH;
1703-
explorerUrl = 'https://explorer-api-hoodi.morphl2.io/tx/';
1704-
accountExplorerUrl = 'https://explorer-api-hoodi.morphl2.io/address/';
1703+
explorerUrl = 'https://explorer-hoodi.morph.network/tx/';
1704+
accountExplorerUrl = 'https://explorer-hoodi.morph.network/address/';
1705+
chainId = 2910;
1706+
nativeCoinOperationHashPrefix = '2910';
1707+
}
1708+
1709+
class MorphETH extends Mainnet implements EthereumNetwork {
1710+
name = 'Morph Ethereum Mainnet';
1711+
family = CoinFamily.MORPHETH;
1712+
explorerUrl = 'https://explorer-api-hoodi.morphl2.io/tx/'; // TODO: WIN-8134 add mainnet url when available
1713+
accountExplorerUrl = 'https://explorer-api-hoodi.morphl2.io/address/'; // TODO: WIN-8134 add mainnet account explorer url when available
1714+
chainId = 2818;
1715+
nativeCoinOperationHashPrefix = '2818';
1716+
}
1717+
1718+
class MorphETHTestnet extends Testnet implements EthereumNetwork {
1719+
name = 'Morph Ethereum Testnet';
1720+
family = CoinFamily.MORPHETH;
1721+
explorerUrl = 'https://explorer-hoodi.morph.network/tx/';
1722+
accountExplorerUrl = 'https://explorer-hoodi.morph.network/address/';
17051723
chainId = 2910;
17061724
nativeCoinOperationHashPrefix = '2910';
17071725
}
@@ -2404,6 +2422,7 @@ export const Networks = {
24042422
opbnb: Object.freeze(new OpBNB()),
24052423
fantom: Object.freeze(new Fantom()),
24062424
morph: Object.freeze(new Morph()),
2425+
morpheth: Object.freeze(new MorphETH()),
24072426
optimism: Object.freeze(new Optimism()),
24082427
osmo: Object.freeze(new Osmo()),
24092428
rbtc: Object.freeze(new Rbtc()),
@@ -2516,6 +2535,7 @@ export const Networks = {
25162535
opbnb: Object.freeze(new OpBNBTestnet()),
25172536
fantom: Object.freeze(new FantomTestnet()),
25182537
morph: Object.freeze(new MorphTestnet()),
2538+
morpheth: Object.freeze(new MorphETHTestnet()),
25192539
optimism: Object.freeze(new OptimismTestnet()),
25202540
osmo: Object.freeze(new OsmoTestnet()),
25212541
rbtc: Object.freeze(new RbtcTestnet()),

modules/statics/test/unit/fixtures/expectedColdFeatures.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export const expectedColdFeatures = {
108108
'mantra',
109109
'mon',
110110
'morph',
111+
'morpheth',
111112
'near',
112113
'oas',
113114
'og',
@@ -160,6 +161,7 @@ export const expectedColdFeatures = {
160161
'tog',
161162
'tokbxlayer',
162163
'tmorph',
164+
'tmorpheth',
163165
'tmegaeth',
164166
'tmon',
165167
'tworld',

0 commit comments

Comments
 (0)