Skip to content

Commit d234409

Browse files
authored
Merge pull request #11512 from Jarsen136/issue-11511
fix: remove Mantle
2 parents b3f76fc + 80ce8d8 commit d234409

File tree

16 files changed

+9
-50
lines changed

16 files changed

+9
-50
lines changed

composables/useIcon.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ export const useIcon = () => {
3030
return isDarkMode.value ? '/chain/ahk_dark.svg' : '/chain/ahk.svg'
3131
case 'base':
3232
return isDarkMode.value ? '/chain/base_dark.svg' : '/chain/base.svg'
33-
case 'mnt':
34-
return isDarkMode.value ? '/chain/mnt_dark.svg' : '/chain/mnt.svg'
3533
default:
3634
return null
3735
}

composables/useMultipleBalance.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export const networkToPrefix: Partial<Record<ChainType, Prefix>> = {
1919
kusamaHub: 'ahk',
2020
polkadotHub: 'ahp',
2121
base: 'base',
22-
mantle: 'mnt',
2322
// rococoHub: 'ahr',
2423
}
2524

@@ -29,7 +28,6 @@ export const prefixToNetwork: Partial<Record<Prefix, ChainType>> = {
2928
ahk: 'kusamaHub',
3029
ahp: 'polkadotHub',
3130
base: 'base',
32-
mnt: 'mantle',
3331
// ahr: 'rococoHub',
3432
}
3533

@@ -82,8 +80,6 @@ export default function (refetchPeriodically: boolean = false) {
8280
// decouple Chain from teleport
8381
[Chain.BASE]:
8482
multiBalances.value.chains.base?.eth?.nativeBalance,
85-
[Chain.MANTLE]:
86-
multiBalances.value.chains.mantle?.mnt?.nativeBalance,
8783
}))
8884

8985
const currentChain = computed(() => prefixToChainMap[urlPrefix.value])

libs/static/src/chains.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export const CHAINS: Config<ChainProperties> = {
3131
dot: toChainProperty(0, 10, 'DOT', 'https://polkadot.subscan.io/', 'SUB'),
3232
ahp: toChainProperty(0, 10, 'DOT', 'https://assethub-polkadot.subscan.io/', 'SUB'),
3333
base: toChainProperty(42, 18, 'ETH', 'https://basescan.org', 'EVM'),
34-
mnt: toChainProperty(42, 18, 'MNT', 'https://mantlescan.xyz', 'EVM'), // ss58Format is not available
3534
// ahr: toChainProperty(42, 12, 'ROC', 'https://rockmine.subscan.io/'),
3635
// movr: toChainProperty(1285, 18, 'MOVR', 'https://moonriver.subscan.io/'),
3736
// glmr: toChainProperty(1284, 18, 'GLMR', 'https://moonbeam.subscan.io/'),
@@ -50,7 +49,6 @@ export const chainPrefixes: Prefix[] = [
5049
'ksm',
5150
'dot',
5251
'base',
53-
'mnt',
5452
// 'ahr',
5553
// 'movr',
5654
// 'glmr',
@@ -69,7 +67,6 @@ export const chainInfo: Record<Prefix, string> = {
6967
dot: 'polkadot',
7068
ahp: 'statemint',
7169
base: 'base',
72-
mnt: 'mantle',
7370
// ahr: 'rockmine',
7471
// movr: 'moonriver',
7572
// glmr: 'moonbeam',
@@ -81,7 +78,6 @@ export const chainNames: Record<Prefix, string> = {
8178
dot: 'Polkadot',
8279
ahp: 'Polkadot AssetHub',
8380
base: 'Base',
84-
mnt: 'Mantle',
8581
// ahr: 'Rococo AssetHub',
8682
// movr: 'Moonriver',
8783
// glmr: 'Moonbeam',
@@ -107,7 +103,6 @@ export const teleportExistentialDeposit: Record<Prefix, number> = {
107103
dot: 15000000000,
108104
ahp: 5000000000,
109105
base: 0,
110-
mnt: 0,
111106
}
112107

113108
export const existentialDeposit: Record<Prefix, number> = {
@@ -116,5 +111,4 @@ export const existentialDeposit: Record<Prefix, number> = {
116111
dot: 1e10,
117112
ahp: 1e8,
118113
base: 1e15,
119-
mnt: 1e15,
120114
}

libs/static/src/endpoints.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export const ALTERNATIVE_ENDPOINT_MAP: Config<ENDPOINT_URL[]> = {
4242
dot: POLKADOT_ENDPOINTS,
4343
ahp: AHP_ENDPOINTS,
4444
base: ['https://mainnet.base.org'],
45-
mnt: ['https://rpc.mantle.xyz'],
4645
// ahr: ['wss://rococo-asset-hub-rpc.polkadot.io'],
4746
// glmr: ['wss://public-rpc.pinknode.io/moonbeam'],
4847
// movr: ['wss://wss.api.moonriver.moonbeam.network'],
@@ -54,7 +53,6 @@ export const ENDPOINT_MAP: Config<ENDPOINT_URL> = {
5453
dot: POLKADOT_ENDPOINTS[0],
5554
ahp: AHP_ENDPOINTS[0],
5655
base: 'https://mainnet.base.org',
57-
mnt: 'https://rpc.mantle.xyz',
5856
// ahr: 'wss://rococo-asset-hub-rpc.polkadot.io',
5957
// glmr: 'wss://public-rpc.pinknode.io/moonbeam',
6058
// movr: 'wss://wss.api.moonriver.moonbeam.network',

libs/static/src/indexers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export const INDEXERS: Config<SquidEndpoint> = {
1313
ahp: 'https://ahp.gql.api.kodadot.xyz/',
1414
dot: 'https://ahp.gql.api.kodadot.xyz/', // DEV: show PolkadotHub
1515
base: 'https://kodadot.squids.live/basick/graphql',
16-
mnt: 'https://squid.subsquid.io/flock/graphql',
1716
// ahr: 'https://squid.subsquid.io/snack/graphql',
1817
// movr: 'https://squid.subsquid.io/antick/v/001-rc0/graphql',
1918
// glmr: 'https://squid.subsquid.io/click/v/002/graphql',

libs/static/src/names.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export const NAMES: Record<Prefix, string> = {
66
dot: 'Polkadot',
77
ahp: 'PolkadotHub',
88
base: 'Base',
9-
mnt: 'Mantle',
109
// ahr: 'RococoHub',
1110
// glmr: 'Moonbeam [Beta]',
1211
// movr: 'Moonriver [Beta]',

libs/static/src/services.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const EXPLORERS: Record<Prefix, string> = {
1515
dot: 'https://polkadot.subscan.io/account/',
1616
ahp: 'https://assethub-polkadot.subscan.io/account/',
1717
base: 'https://basescan.org/address/',
18-
mnt: 'https://mantlescan.xyz/address/',
1918
// ahr: 'https://assethub-rococo.subscan.io/account/',
2019
// movr: 'https://moonriver.subscan.io/account/',
2120
// glmr: 'https://moonbeam.subscan.io/account/',

libs/static/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type Prefix = 'ksm' | 'ahk' | 'dot' | 'ahp' | 'base' | 'mnt'
1+
export type Prefix = 'ksm' | 'ahk' | 'dot' | 'ahp' | 'base'
22
// | 'ahr'
33
// | 'glmr'
44
// | 'movr'

plugins/wagmi.client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { WagmiPlugin } from '@wagmi/vue'
22
import { defineNuxtPlugin } from 'nuxt/app'
3-
import { base, mantle } from '@wagmi/vue/chains'
3+
import { base } from '@wagmi/vue/chains'
44
import { defaultWagmiConfig } from '@web3modal/wagmi/vue'
55

66
export default defineNuxtPlugin((nuxtApp) => {
@@ -13,7 +13,7 @@ export default defineNuxtPlugin((nuxtApp) => {
1313
}
1414

1515
return defaultWagmiConfig({
16-
chains: [base, mantle],
16+
chains: [base],
1717
projectId,
1818
metadata,
1919
})

public/chain/mnt.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)