Skip to content

Commit 9f4a9da

Browse files
refactor: remove Morph Ethereum and related tokens from the codebase for testing
CECHO-634
1 parent 1ea10fd commit 9f4a9da

9 files changed

Lines changed: 1 addition & 245 deletions

File tree

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
import { CoinFamily } from '@bitgo/statics';
22

33
/** L2 coin families that incur L1 data fees during recovery transactions */
4-
export const coinFamiliesWithL1Fees: ReadonlyArray<CoinFamily> = [
5-
CoinFamily.OPETH,
6-
CoinFamily.DOGEOS,
7-
CoinFamily.MORPHETH,
8-
];
4+
export const coinFamiliesWithL1Fees: ReadonlyArray<CoinFamily> = [CoinFamily.OPETH, CoinFamily.DOGEOS];

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ describe('V2 Keychains', function () {
109109
n.asset !== UnderlyingAsset.OKBXLAYER &&
110110
n.asset !== UnderlyingAsset.UNIETH &&
111111
n.asset !== UnderlyingAsset.MORPH &&
112-
n.asset !== UnderlyingAsset.MORPHETH &&
113112
n.asset !== UnderlyingAsset.DOGEOS &&
114113
n.asset !== UnderlyingAsset.MEGAETH &&
115114
n.asset !== UnderlyingAsset.ARCUSDC &&

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,6 @@ const mainnetBase: EnvironmentTemplate = {
340340
morph: {
341341
baseUrl: 'https://explorer-api-hoodi.morphl2.io', // TODO: WIN-8134 add mainnet url when available
342342
},
343-
morpheth: {
344-
baseUrl: 'https://explorer.morph.network/',
345-
},
346343
dogeos: {
347344
baseUrl: 'https://blockscout.testnet.dogeos.com', //TODO: WIN-8082 => add mainnet url when available
348345
},
@@ -576,9 +573,6 @@ const testnetBase: EnvironmentTemplate = {
576573
morph: {
577574
baseUrl: 'https://explorer-api-hoodi.morphl2.io',
578575
},
579-
morpheth: {
580-
baseUrl: 'https://explorer-hoodi.morph.network/',
581-
},
582576
dogeos: {
583577
baseUrl: 'https://blockscout.testnet.dogeos.com',
584578
},

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 0 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -3411,48 +3411,6 @@ export const allCoinsAndTokens = [
34113411
CoinFeature.SUPPORTS_ERC20,
34123412
]
34133413
),
3414-
3415-
account(
3416-
'51de29b1-dd97-4b05-9239-a177522b469f',
3417-
'morpheth',
3418-
'Morph Ethereum Mainnet',
3419-
Networks.main.morpheth,
3420-
18,
3421-
UnderlyingAsset.MORPHETH,
3422-
BaseUnit.ETH,
3423-
[
3424-
...EVM_FEATURES,
3425-
CoinFeature.SHARED_EVM_SIGNING,
3426-
CoinFeature.SHARED_EVM_SDK,
3427-
CoinFeature.EVM_COMPATIBLE_IMS,
3428-
CoinFeature.EVM_COMPATIBLE_UI,
3429-
CoinFeature.EVM_COMPATIBLE_WP,
3430-
CoinFeature.EVM_NON_BITGO_RECOVERY,
3431-
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
3432-
CoinFeature.SUPPORTS_ERC20,
3433-
CoinFeature.ERC20_BULK_TRANSACTION,
3434-
]
3435-
),
3436-
account(
3437-
'f99419da-0ee8-46c3-af81-3bd43af29642',
3438-
'tmorpheth',
3439-
'Morph Ethereum Testnet',
3440-
Networks.test.morpheth,
3441-
18,
3442-
UnderlyingAsset.MORPHETH,
3443-
BaseUnit.ETH,
3444-
[
3445-
...EVM_FEATURES,
3446-
CoinFeature.SHARED_EVM_SIGNING,
3447-
CoinFeature.SHARED_EVM_SDK,
3448-
CoinFeature.EVM_COMPATIBLE_IMS,
3449-
CoinFeature.EVM_COMPATIBLE_UI,
3450-
CoinFeature.EVM_COMPATIBLE_WP,
3451-
CoinFeature.EVM_NON_BITGO_RECOVERY,
3452-
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
3453-
CoinFeature.SUPPORTS_ERC20,
3454-
]
3455-
),
34563414
account(
34573415
'887eebff-5d50-47f7-aea5-905e25c2e846',
34583416
'tdogeos',
@@ -5091,65 +5049,6 @@ export const allCoinsAndTokens = [
50915049
Networks.test.morph
50925050
),
50935051

5094-
// MorphEth mainnet tokens
5095-
erc20Token(
5096-
'088dcce6-6259-4012-a1e2-857534ea88fc',
5097-
'morpheth:usdc',
5098-
'USD Coin',
5099-
6,
5100-
'0xe34c91815d7fc18a9e2148bcd4241d0a5848b693',
5101-
UnderlyingAsset['morpheth:usdc'],
5102-
Networks.main.morpheth
5103-
),
5104-
erc20Token(
5105-
'03257b8a-67cc-4a84-9226-b757852fff63',
5106-
'morpheth:usdt',
5107-
'Tether USD',
5108-
6,
5109-
'0xc7d67a9cbb121b3b0b9c053dd9f469523243379a',
5110-
UnderlyingAsset['morpheth:usdt'],
5111-
Networks.main.morpheth
5112-
),
5113-
erc20Token(
5114-
'f0dad043-371d-48a4-a3cb-d798b4fc0fee',
5115-
'morpheth:usd1',
5116-
'USD1',
5117-
18,
5118-
'0x111111d2bf19e43c34263401e0cad979ed1cdb61',
5119-
UnderlyingAsset['morpheth:usd1'],
5120-
Networks.main.morpheth,
5121-
[...ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_EUROPE, CoinFeature.EIP1559]
5122-
),
5123-
5124-
// MorphEth testnet tokens
5125-
erc20Token(
5126-
'3383765b-37f9-4609-baf3-37c42f0ffee7',
5127-
'tmorpheth:tmt',
5128-
'Test Mintable Token',
5129-
6,
5130-
'0x5257950b5277dac30536eae4742ffef4e5af5256',
5131-
UnderlyingAsset['tmorpheth:tmt'],
5132-
Networks.test.morpheth
5133-
),
5134-
erc20Token(
5135-
'15286c32-210b-402d-84a2-5e406e584981',
5136-
'tmorpheth:usd1',
5137-
'Test USD1 Token',
5138-
18,
5139-
'0x8bdaad0ebc24fb63af6c5f29e2a2898500c87886',
5140-
UnderlyingAsset['tmorpheth:usd1'],
5141-
Networks.test.morpheth
5142-
),
5143-
erc20Token(
5144-
'e6a1553d-0dd0-4f77-b6a8-5f265243c7d0',
5145-
'tmorpheth:stgusd1',
5146-
'Test USD1 Token',
5147-
18,
5148-
'0x055fd4bbad96a076c15187b60fe7ea07ea789b94',
5149-
UnderlyingAsset['tmorpheth:stgusd1'],
5150-
Networks.test.morpheth
5151-
),
5152-
51535052
// Plume testnet tokens
51545053
erc20Token(
51555054
'67a140e3-c73e-4984-af13-7b1555ee3ff3',

modules/statics/src/base.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ export enum CoinFamily {
145145
SOMI = 'somi', // Somnia Chain
146146
FLUENTETH = 'fluenteth',
147147
MORPH = 'morph',
148-
MORPHETH = 'morpheth',
149148
ARCUSDC = 'arcusdc', // ARC network
150149
TEMPO = 'tempo', // Tempo Network
151150
UNIETH = 'unieth', // Unichain
@@ -691,7 +690,6 @@ export enum UnderlyingAsset {
691690
MEGAETH = 'megaeth',
692691
MON = 'mon',
693692
MORPH = 'morph',
694-
MORPHETH = 'morpheth',
695693
NEAR = 'near',
696694
OAS = 'oas',
697695
OG = 'og',
@@ -2674,15 +2672,9 @@ export enum UnderlyingAsset {
26742672
'eth:t-ibiton' = 'eth:t-ibiton',
26752673
'eth:t-ivvon' = 'eth:t-ivvon',
26762674
'morph:usdc' = 'morph:usdc',
2677-
'morpheth:usdc' = 'morpheth:usdc',
26782675
'morph:usdt' = 'morph:usdt',
2679-
'morpheth:usdt' = 'morpheth:usdt',
26802676
'morph:usd1' = 'morph:usd1',
2681-
'morpheth:usd1' = 'morpheth:usd1',
26822677
'tmorph:tmt' = 'tmorph:tmt',
2683-
'tmorpheth:tmt' = 'tmorpheth:tmt',
2684-
'tmorpheth:usd1' = 'tmorpheth:usd1',
2685-
'tmorpheth:stgusd1' = 'tmorpheth:stgusd1',
26862678

26872679
'xlm:BST-GADDFE4R72YUP2AOEL67OHZN3GJQYPC3VE734N2XFMEGRR2L32CZ3XYZ' = 'xlm:BST-GADDFE4R72YUP2AOEL67OHZN3GJQYPC3VE734N2XFMEGRR2L32CZ3XYZ',
26882680
'xlm:VELO-GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M' = 'xlm:VELO-GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M',

modules/statics/src/coins/ofcCoins.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -476,22 +476,6 @@ export const ofcCoins = [
476476
UnderlyingAsset.MORPH,
477477
CoinKind.CRYPTO
478478
),
479-
ofc(
480-
'cdf3487e-a365-4319-83ff-ff06f02810a6',
481-
'ofcmorpheth',
482-
'Morph Ethereum',
483-
18,
484-
UnderlyingAsset.MORPHETH,
485-
CoinKind.CRYPTO
486-
),
487-
tofc(
488-
'4113e0ae-41c5-4293-8b7a-5829cbc3ee92',
489-
'ofctmorpheth',
490-
'Morph Ethereum Testnet',
491-
18,
492-
UnderlyingAsset.MORPHETH,
493-
CoinKind.CRYPTO
494-
),
495479
ofc(
496480
'dc733b2f-92bf-49d3-9f5d-9774e1637f0f',
497481
'ofcokbxlayer',

modules/statics/src/coins/ofcErc20Coins.ts

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -6642,99 +6642,13 @@ export const tOfcErc20Coins = [
66426642
true,
66436643
'tmorph'
66446644
),
6645-
6646-
// MorphETH tokens
6647-
ofcerc20(
6648-
'9c28b89b-1069-4bad-bf7b-8ecea440cee2',
6649-
'ofcmorpheth:usdc',
6650-
'USD Coin',
6651-
6,
6652-
UnderlyingAsset['morpheth:usdc'],
6653-
undefined,
6654-
undefined,
6655-
'',
6656-
undefined,
6657-
undefined,
6658-
true,
6659-
'morpheth'
6660-
),
6661-
ofcerc20(
6662-
'07010f84-5bc7-4715-9d19-09d694f558fb',
6663-
'ofcmorpheth:usdt',
6664-
'Tether USD',
6665-
6,
6666-
UnderlyingAsset['morpheth:usdt'],
6667-
undefined,
6668-
undefined,
6669-
'',
6670-
undefined,
6671-
undefined,
6672-
true,
6673-
'morpheth'
6674-
),
6675-
ofcerc20(
6676-
'883727b5-49e3-4fb3-99f7-fefb803710e5',
6677-
'ofcmorpheth:usd1',
6678-
'USD1',
6679-
18,
6680-
UnderlyingAsset['morpheth:usd1'],
6681-
undefined,
6682-
undefined,
6683-
'',
6684-
undefined,
6685-
undefined,
6686-
true,
6687-
'morpheth'
6688-
),
6689-
tofcerc20(
6690-
'34e77cee-2885-4a77-911c-b5f2bdd28cd7',
6691-
'ofctmorpheth:tmt',
6692-
'Test Mintable Token',
6693-
6,
6694-
underlyingAssetForSymbol('tmorpheth:tmt'),
6695-
undefined,
6696-
undefined,
6697-
'',
6698-
undefined,
6699-
undefined,
6700-
true,
6701-
'tmorpheth'
6702-
),
67036645
ofcerc20(
67046646
'3ea8b443-c2a7-4a3c-8b58-1a8a36aa4da8',
67056647
'ofcseievm:wsei',
67066648
'Wrapped SEI',
67076649
18,
67086650
underlyingAssetForSymbol('seievm:wsei')
67096651
),
6710-
tofcerc20(
6711-
'8c64311b-e288-4dd4-8f9f-25dad3418837',
6712-
'ofctmorpheth:usd1',
6713-
'Test USD1 Token',
6714-
18,
6715-
underlyingAssetForSymbol('tmorpheth:usd1'),
6716-
undefined,
6717-
undefined,
6718-
'',
6719-
undefined,
6720-
undefined,
6721-
true,
6722-
'tmorpheth'
6723-
),
6724-
tofcerc20(
6725-
'15ca2074-d5bc-450c-886e-1338ffb114f8',
6726-
'ofctmorpheth:stgusd1',
6727-
'Test USD1 Token',
6728-
18,
6729-
underlyingAssetForSymbol('tmorpheth:stgusd1'),
6730-
undefined,
6731-
undefined,
6732-
'',
6733-
undefined,
6734-
undefined,
6735-
true,
6736-
'tmorpheth'
6737-
),
67386652
ofcerc20(
67396653
'f82110b2-22a1-4a27-b640-9a5c05f60957',
67406654
'ofceth:audx',

modules/statics/src/networks.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,24 +1977,6 @@ class MorphTestnet extends Testnet implements EthereumNetwork {
19771977
nativeCoinOperationHashPrefix = '2910';
19781978
}
19791979

1980-
class MorphETH extends Mainnet implements EthereumNetwork {
1981-
name = 'Morph Ethereum Mainnet';
1982-
family = CoinFamily.MORPHETH;
1983-
explorerUrl = 'https://explorer.morph.network/tx/';
1984-
accountExplorerUrl = 'https://explorer.morph.network/address/';
1985-
chainId = 2818;
1986-
nativeCoinOperationHashPrefix = '2818';
1987-
}
1988-
1989-
class MorphETHTestnet extends Testnet implements EthereumNetwork {
1990-
name = 'Morph Ethereum Testnet';
1991-
family = CoinFamily.MORPHETH;
1992-
explorerUrl = 'https://explorer-hoodi.morph.network/tx/';
1993-
accountExplorerUrl = 'https://explorer-hoodi.morph.network/address/';
1994-
chainId = 2910;
1995-
nativeCoinOperationHashPrefix = '2910';
1996-
}
1997-
19981980
class CreditcoinTestnet extends Testnet implements EthereumNetwork {
19991981
name = 'CreditcoinTestnet';
20001982
family = CoinFamily.CTC;
@@ -2945,7 +2927,6 @@ export const Networks = {
29452927
opbnb: Object.freeze(new OpBNB()),
29462928
fantom: Object.freeze(new Fantom()),
29472929
morph: Object.freeze(new Morph()),
2948-
morpheth: Object.freeze(new MorphETH()),
29492930
optimism: Object.freeze(new Optimism()),
29502931
osmo: Object.freeze(new Osmo()),
29512932
rbtc: Object.freeze(new Rbtc()),
@@ -3078,7 +3059,6 @@ export const Networks = {
30783059
opbnb: Object.freeze(new OpBNBTestnet()),
30793060
fantom: Object.freeze(new FantomTestnet()),
30803061
morph: Object.freeze(new MorphTestnet()),
3081-
morpheth: Object.freeze(new MorphETHTestnet()),
30823062
optimism: Object.freeze(new OptimismTestnet()),
30833063
osmo: Object.freeze(new OsmoTestnet()),
30843064
rbtc: Object.freeze(new RbtcTestnet()),

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ export const expectedColdFeatures = {
121121
'mantra',
122122
'mon',
123123
'morph',
124-
'morpheth',
125124
'near',
126125
'oas',
127126
'og',
@@ -193,7 +192,6 @@ export const expectedColdFeatures = {
193192
'tog',
194193
'tokbxlayer',
195194
'tmorph',
196-
'tmorpheth',
197195
'tmegaeth',
198196
'tmon',
199197
'tworld',

0 commit comments

Comments
 (0)