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 @@ -100,6 +100,7 @@ describe('V2 Keychains', function () {
n.asset !== UnderlyingAsset.SOMI &&
n.asset !== UnderlyingAsset.FLRP &&
n.asset !== UnderlyingAsset.FLUENTETH &&
n.asset !== UnderlyingAsset.MANTLE &&
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 @@ -275,6 +275,9 @@ const mainnetBase: EnvironmentTemplate = {
fluenteth: {
baseUrl: 'https://testnet.fluentscan.xyz/api/', //TODO: COIN-6478: add mainnet url when available
},
mantle: {
baseUrl: 'https://api.mantlescan.xyz/api',
},
},
icpNodeUrl: 'https://ic0.app',
worldExplorerBaseUrl: 'https://worldscan.org/',
Expand Down Expand Up @@ -418,6 +421,9 @@ const testnetBase: EnvironmentTemplate = {
fluenteth: {
baseUrl: 'https://testnet.fluentscan.xyz/api/',
},
mantle: {
baseUrl: 'https://api-sepolia.mantlescan.xyz/api',
},
},
stxNodeUrl: 'https://api.testnet.hiro.so',
vetNodeUrl: 'https://sync-testnet.vechain.org',
Expand Down
32 changes: 32 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2201,6 +2201,38 @@ export const allCoinsAndTokens = [
'',
'FluentETH'
),
account(
'bc7e8d57-696a-4ead-a0a3-1aa479ed0665',
'mantle',
'Mantle Native',
Networks.main.mantle,
18,
UnderlyingAsset.MANTLE,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
]
),
account(
'53cd61e4-1fdd-4c95-a8da-cb39bf383c2e',
'tmantle',
'Testnet Mantle Native',
Networks.test.mantle,
18,
UnderlyingAsset.MANTLE,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
]
),
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 @@ -72,6 +72,7 @@ export enum CoinFamily {
KAVAEVM = 'kavaevm',
LNBTC = 'lnbtc',
LTC = 'ltc',
MANTLE = 'mantle',
MANTRA = 'mantra',
MEGAETH = 'megaeth',
MON = 'mon',
Expand Down Expand Up @@ -563,6 +564,7 @@ export enum UnderlyingAsset {
LNBTC = 'lnbtc',
LTC = 'ltc',
LINEAETH = 'lineaeth',
MANTLE = 'mantle',
MANTRA = 'mantra',
MEGAETH = 'megaeth',
MON = 'mon',
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 @@ -1509,6 +1509,24 @@ class FluentETHTestnet extends Testnet implements EthereumNetwork {
nativeCoinOperationHashPrefix = '20994';
}

class Mantle extends Mainnet implements EthereumNetwork {
name = 'Mantle Native';
family = CoinFamily.MANTLE;
explorerUrl = 'https://mantlescan.xyz/tx/';
accountExplorerUrl = 'https://mantlescan.xyz/address/';
chainId = 5000;
nativeCoinOperationHashPrefix = '5000';
}

class MantleTestnet extends Testnet implements EthereumNetwork {
name = 'Testnet Mantle Native';
family = CoinFamily.MANTLE;
explorerUrl = 'https://sepolia.mantlescan.xyz/tx/';
accountExplorerUrl = 'https://sepolia.mantlescan.xyz/address/';
chainId = 5003;
nativeCoinOperationHashPrefix = '5003';
}

class CreditcoinTestnet extends Testnet implements EthereumNetwork {
name = 'CreditcoinTestnet';
family = CoinFamily.CTC;
Expand Down Expand Up @@ -2111,6 +2129,7 @@ export const Networks = {
litecoin: Object.freeze(new Litecoin()),
megaeth: Object.freeze(new MegaETH()),
mon: Object.freeze(new Monad()),
mantle: Object.freeze(new Mantle()),
mantra: Object.freeze(new Mantra()),
plume: Object.freeze(new Plume()),
polygon: Object.freeze(new Polygon()),
Expand Down Expand Up @@ -2214,6 +2233,7 @@ export const Networks = {
hoodi: Object.freeze(new Hoodi()),
lnbtc: Object.freeze(new LightningBitcoinTestnet()),
litecoin: Object.freeze(new LitecoinTestnet()),
mantle: Object.freeze(new MantleTestnet()),
mantra: Object.freeze(new MantraTestnet()),
polygon: Object.freeze(new PolygonTestnet()),
polyx: Object.freeze(new PolymeshTestnet()),
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 @@ -99,6 +99,7 @@ export const expectedColdFeatures = {
'kaia',
'kava',
'megaeth',
'mantle',
'mantra',
'mon',
'near',
Expand Down Expand Up @@ -166,6 +167,7 @@ export const expectedColdFeatures = {
'tiota',
'tkaia',
'tkava',
'tmantle',
'tmantra',
'tnear',
'tosmo',
Expand Down