Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/bitgo/test/v2/unit/keychains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ describe('V2 Keychains', function () {
n.asset !== UnderlyingAsset.MANTLE &&
n.asset !== UnderlyingAsset.JOVAYETH &&
n.asset !== UnderlyingAsset.OKB &&
n.asset !== UnderlyingAsset.MORPH &&
coinFamilyValues.includes(n.name)
);

Expand Down
6 changes: 6 additions & 0 deletions modules/sdk-core/src/bitgo/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ const mainnetBase: EnvironmentTemplate = {
okb: {
baseUrl: 'https://www.oklink.com/api/v5/explorer/block/block-list?chainShortName=xlayer',
},
morph: {
baseUrl: 'https://explorer-api-hoodi.morphl2.io', // TODO: WIN-8134 add mainnet url when available
},
},
icpNodeUrl: 'https://ic0.app',
worldExplorerBaseUrl: 'https://worldscan.org/',
Expand Down Expand Up @@ -439,6 +442,9 @@ const testnetBase: EnvironmentTemplate = {
okb: {
baseUrl: 'https://www.oklink.com/api/v5/explorer/block/block-list?chainShortName=xlayer_testnet',
},
morph: {
baseUrl: 'https://explorer-api-hoodi.morphl2.io',
},
},
stxNodeUrl: 'https://api.testnet.hiro.so',
vetNodeUrl: 'https://sync-testnet.vechain.org',
Expand Down
34 changes: 34 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2314,6 +2314,40 @@ export const allCoinsAndTokens = [
CoinFeature.EVM_COMPATIBLE_WP,
]
),
account(
'60203912-6332-4f44-8f83-a88a06ae170b',
'morph',
'Morph Mainnet',
Networks.main.morph,
18,
UnderlyingAsset.MORPH,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_COMPATIBLE_WP,
]
),
account(
'9352fddb-3b01-40a3-b09a-a047bc1595bd',
'tmorph',
'Morph Testnet',
Networks.test.morph,
18,
UnderlyingAsset.MORPH,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_COMPATIBLE_WP,
]
),
canton(
'07385320-5a4f-48e9-97a5-86d4be9f24b0',
'canton',
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export enum CoinFamily {
IP = 'ip', // Story Chain
SOMI = 'somi', // Somnia Chain
FLUENTETH = 'fluenteth',
MORPH = 'morph',
}

/**
Expand Down Expand Up @@ -586,6 +587,7 @@ export enum UnderlyingAsset {
MANTRA = 'mantra',
MEGAETH = 'megaeth',
MON = 'mon',
MORPH = 'morph',
NEAR = 'near',
OAS = 'oas',
OG = 'og',
Expand Down
20 changes: 20 additions & 0 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1598,6 +1598,24 @@ class XlayerTestnet extends Testnet implements EthereumNetwork {
nativeCoinOperationHashPrefix = '195';
}

class Morph extends Mainnet implements EthereumNetwork {
name = 'Morph Mainnet';
family = CoinFamily.MORPH;
explorerUrl = 'https://explorer-api-hoodi.morphl2.io/tx/'; // TODO: WIN-8134 add mainnet url when available
accountExplorerUrl = 'https://explorer-api-hoodi.morphl2.io/address/'; // TODO: WIN-8134 add mainnet account explorer url when available
chainId = 2818;
nativeCoinOperationHashPrefix = '2818';
}

class MorphTestnet extends Testnet implements EthereumNetwork {
name = 'Morph Testnet';
family = CoinFamily.MORPH;
explorerUrl = 'https://explorer-api-hoodi.morphl2.io/tx/';
accountExplorerUrl = 'https://explorer-api-hoodi.morphl2.io/address/';
chainId = 2710;
nativeCoinOperationHashPrefix = '2710';
}

class CreditcoinTestnet extends Testnet implements EthereumNetwork {
name = 'CreditcoinTestnet';
family = CoinFamily.CTC;
Expand Down Expand Up @@ -2216,6 +2234,7 @@ export const Networks = {
og: Object.freeze(new Og()),
ofc: Object.freeze(new Ofc()),
okb: Object.freeze(new Xlayer()),
morph: Object.freeze(new Morph()),
optimism: Object.freeze(new Optimism()),
osmo: Object.freeze(new Osmo()),
rbtc: Object.freeze(new Rbtc()),
Expand Down Expand Up @@ -2321,6 +2340,7 @@ export const Networks = {
og: Object.freeze(new OgTestnet()),
ofc: Object.freeze(new OfcTestnet()),
okb: Object.freeze(new XlayerTestnet()),
morph: Object.freeze(new MorphTestnet()),
optimism: Object.freeze(new OptimismTestnet()),
osmo: Object.freeze(new OsmoTestnet()),
rbtc: Object.freeze(new RbtcTestnet()),
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/test/unit/fixtures/expectedColdFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const expectedColdFeatures = {
'mantle',
'mantra',
'mon',
'morph',
'near',
'oas',
'og',
Expand Down Expand Up @@ -151,6 +152,7 @@ export const expectedColdFeatures = {
'tjovayeth',
'tog',
'tokb',
'tmorph',
'tmegaeth',
'tmon',
'tworld',
Expand Down