Skip to content

deprecate Immutablex #11444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 4, 2025
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
2 changes: 1 addition & 1 deletion components/landing/LandingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { openProfileCreateModal } from '@/components/profile/create/openProfileM
import { useProfileOnboardingStore } from '@/stores/profileOnboarding'

const hiddenCarrouselPrefixes: Prefix[] = ['dot']
const forbiddenPrefixesForTopCollections: Prefix[] = ['ksm', 'dot', 'imx']
const forbiddenPrefixesForTopCollections: Prefix[] = ['ksm', 'dot']

const { urlPrefix } = usePrefix()
const profileOnboardingStore = useProfileOnboardingStore()
Expand Down
1 change: 0 additions & 1 deletion components/landing/topCollections/TopCollections.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
position="bottom-auto"
:show-network-label="false"
:redirect="false"
:exclude="['imx']"
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/profile/ProfileDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ useAsyncData('tabs-empty-result', async () => {
const chains = (
{
SUB: ['ahp', 'ahk'],
EVM: ['base', 'imx'],
EVM: ['base'],
} as Record<ChainVM, Prefix[]>
)[vm.value]

Expand Down
4 changes: 0 additions & 4 deletions composables/useMultipleBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const networkToPrefix: Partial<Record<ChainType, Prefix>> = {
kusamaHub: 'ahk',
polkadotHub: 'ahp',
base: 'base',
immutablex: 'imx',
mantle: 'mnt',
// rococoHub: 'ahr',
}
Expand All @@ -30,7 +29,6 @@ export const prefixToNetwork: Partial<Record<Prefix, ChainType>> = {
ahk: 'kusamaHub',
ahp: 'polkadotHub',
base: 'base',
imx: 'immutablex',
mnt: 'mantle',
// ahr: 'rococoHub',
}
Expand Down Expand Up @@ -84,8 +82,6 @@ export default function (refetchPeriodically: boolean = false) {
// decouple Chain from teleport
[Chain.BASE]:
multiBalances.value.chains.base?.eth?.nativeBalance,
[Chain.IMMUTABLEX]:
multiBalances.value.chains.immutablex?.eth?.nativeBalance,
[Chain.MANTLE]:
multiBalances.value.chains.mantle?.mnt?.nativeBalance,
}))
Expand Down
1 change: 0 additions & 1 deletion composables/useRamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default function useRamp() {
const getAsset = (prefix: Prefix) => {
return ({
base: 'BASE_ETH',
imx: 'IMMUTABLEX_ETH',
ahp: 'DOT_DOT',
ahk: 'KUSAMA_KSM',
ksm: 'KUSAMA_KSM',
Expand Down
1 change: 0 additions & 1 deletion composables/useTransak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default function useTransak() {
const getChainConfig = (prefix: Prefix) => {
return ({
base: { currency: 'ETH', network: 'base' },
imx: { currency: 'ETH', network: 'immutablezkevm' },
ahp: { currency: 'DOT', network: 'mainnet' },
ahk: { currency: 'KSM', network: 'mainnet' },
ksm: { currency: 'KSM', network: 'mainnet' },
Expand Down
6 changes: 0 additions & 6 deletions libs/static/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export const CHAINS: Config<ChainProperties> = {
ahk: toChainProperty(2, 12, 'KSM', 'https://assethub-kusama.subscan.io/', 'SUB'),
dot: toChainProperty(0, 10, 'DOT', 'https://polkadot.subscan.io/', 'SUB'),
ahp: toChainProperty(0, 10, 'DOT', 'https://assethub-polkadot.subscan.io/', 'SUB'),
imx: toChainProperty(42, 18, 'IMX', 'https://explorer.immutable.com/', 'EVM'), // ss58Format is not available
base: toChainProperty(42, 18, 'ETH', 'https://basescan.org', 'EVM'),
mnt: toChainProperty(42, 18, 'MNT', 'https://mantlescan.xyz', 'EVM'), // ss58Format is not available
// ahr: toChainProperty(42, 12, 'ROC', 'https://rockmine.subscan.io/'),
Expand All @@ -50,7 +49,6 @@ export const chainPrefixes: Prefix[] = [
'ahk',
'ksm',
'dot',
'imx',
'base',
'mnt',
// 'ahr',
Expand All @@ -70,7 +68,6 @@ export const chainInfo: Record<Prefix, string> = {
ahk: 'statemine',
dot: 'polkadot',
ahp: 'statemint',
imx: 'immutable',
base: 'base',
mnt: 'mantle',
// ahr: 'rockmine',
Expand All @@ -83,7 +80,6 @@ export const chainNames: Record<Prefix, string> = {
ahk: 'Kusama AssetHub',
dot: 'Polkadot',
ahp: 'Polkadot AssetHub',
imx: 'Immutable zkEVM',
base: 'Base',
mnt: 'Mantle',
// ahr: 'Rococo AssetHub',
Expand All @@ -110,7 +106,6 @@ export const teleportExistentialDeposit: Record<Prefix, number> = {
ahk: 666666666,
dot: 15000000000,
ahp: 5000000000,
imx: 0,
base: 0,
mnt: 0,
}
Expand All @@ -120,7 +115,6 @@ export const existentialDeposit: Record<Prefix, number> = {
ahk: 333333333,
dot: 1e10,
ahp: 1e8,
imx: 1e15, // nothing like ED in EVM :)
base: 1e15,
mnt: 1e15,
}
2 changes: 0 additions & 2 deletions libs/static/src/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export const ALTERNATIVE_ENDPOINT_MAP: Config<ENDPOINT_URL[]> = {
],
dot: POLKADOT_ENDPOINTS,
ahp: AHP_ENDPOINTS,
imx: ['https://rpc.immutable.com'],
base: ['https://mainnet.base.org'],
mnt: ['https://rpc.mantle.xyz'],
// ahr: ['wss://rococo-asset-hub-rpc.polkadot.io'],
Expand All @@ -54,7 +53,6 @@ export const ENDPOINT_MAP: Config<ENDPOINT_URL> = {
ahk: 'wss://sys.ibp.network/statemine',
dot: POLKADOT_ENDPOINTS[0],
ahp: AHP_ENDPOINTS[0],
imx: 'https://rpc.immutable.com',
base: 'https://mainnet.base.org',
mnt: 'https://rpc.mantle.xyz',
// ahr: 'wss://rococo-asset-hub-rpc.polkadot.io',
Expand Down
1 change: 0 additions & 1 deletion libs/static/src/indexers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const INDEXERS: Config<SquidEndpoint> = {
ahk: 'https://ahk.gql.api.kodadot.xyz/',
ahp: 'https://ahp.gql.api.kodadot.xyz/',
dot: 'https://ahp.gql.api.kodadot.xyz/', // DEV: show PolkadotHub
imx: 'https://squid.subsquid.io/flick/graphql',
base: 'https://kodadot.squids.live/basick/graphql',
mnt: 'https://squid.subsquid.io/flock/graphql',
// ahr: 'https://squid.subsquid.io/snack/graphql',
Expand Down
1 change: 0 additions & 1 deletion libs/static/src/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export const NAMES: Record<Prefix, string> = {
ahk: 'KusamaHub',
dot: 'Polkadot',
ahp: 'PolkadotHub',
imx: 'Immutable zkEVM',
base: 'Base',
mnt: 'Mantle',
// ahr: 'RococoHub',
Expand Down
1 change: 0 additions & 1 deletion libs/static/src/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const EXPLORERS: Record<Prefix, string> = {
ahk: 'https://assethub-kusama.subscan.io/account/',
dot: 'https://polkadot.subscan.io/account/',
ahp: 'https://assethub-polkadot.subscan.io/account/',
imx: 'https://explorer.immutable.com/address/',
base: 'https://basescan.org/address/',
mnt: 'https://mantlescan.xyz/address/',
// ahr: 'https://assethub-rococo.subscan.io/account/',
Expand Down
2 changes: 1 addition & 1 deletion libs/static/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type Prefix = 'ksm' | 'ahk' | 'dot' | 'ahp' | 'imx' | 'base' | 'mnt'
export type Prefix = 'ksm' | 'ahk' | 'dot' | 'ahp' | 'base' | 'mnt'
// | 'ahr'
// | 'glmr'
// | 'movr'
Expand Down
4 changes: 2 additions & 2 deletions plugins/wagmi.client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { WagmiPlugin } from '@wagmi/vue'
import { defineNuxtPlugin } from 'nuxt/app'
import { base, immutableZkEvm, mantle } from '@wagmi/vue/chains'
import { base, mantle } from '@wagmi/vue/chains'
import { defaultWagmiConfig } from '@web3modal/wagmi/vue'

export default defineNuxtPlugin((nuxtApp) => {
Expand All @@ -13,7 +13,7 @@ export default defineNuxtPlugin((nuxtApp) => {
}

return defaultWagmiConfig({
chains: [base, immutableZkEvm, mantle],
chains: [base, mantle],
projectId,
metadata,
})
Expand Down
2 changes: 0 additions & 2 deletions stores/identity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export type ChainType =
| 'kusamaHub'
| 'polkadotHub'
| 'base'
| 'immutablex'
| 'mantle'
// | 'rococoHub'

Expand Down Expand Up @@ -103,7 +102,6 @@ export const useIdentityStore = defineStore('identity', {
{ chain: 'polkadot', token: 'DOT' },
{ chain: 'polkadotHub', token: 'DOT' },
{ chain: 'base', token: 'ETH' },
{ chain: 'immutablex', token: 'ETH' },
{ chain: 'mantle', token: 'MNT' },
],
multiBalanceAssetsTestnet: [
Expand Down
6 changes: 0 additions & 6 deletions utils/teleport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export enum Chain {
ASSETHUBPOLKADOT = 'AssetHubPolkadot',
POLKADOT = 'Polkadot',
BASE = 'Base',
IMMUTABLEX = 'Immutable',
MANTLE = 'Mantle',
}

Expand Down Expand Up @@ -48,7 +47,6 @@ export const chainToPrefixMap: Record<Chain, Prefix> = {
[Chain.ASSETHUBPOLKADOT]: 'ahp',
[Chain.POLKADOT]: 'dot',
[Chain.BASE]: 'base',
[Chain.IMMUTABLEX]: 'imx',
[Chain.MANTLE]: 'mnt',
}

Expand All @@ -57,7 +55,6 @@ export const prefixToChainMap: Partial<Record<Prefix, Chain>> = {
ahk: Chain.ASSETHUBKUSAMA,
ahp: Chain.ASSETHUBPOLKADOT,
dot: Chain.POLKADOT,
imx: Chain.IMMUTABLEX,
base: Chain.BASE,
mnt: Chain.MANTLE,
}
Expand Down Expand Up @@ -132,8 +129,6 @@ export const getChainCurrency = (chain: Chain): Currency => {
case Chain.ASSETHUBPOLKADOT:
return 'DOT'
case Chain.BASE:
case Chain.IMMUTABLEX:
return 'ETH'
case Chain.MANTLE:
return 'MNT'
}
Expand All @@ -145,6 +140,5 @@ export const chainToPrecisionMap: Record<Chain, number> = {
[Chain.ASSETHUBPOLKADOT]: 5,
[Chain.BASE]: 5,
[Chain.MANTLE]: 5,
[Chain.IMMUTABLEX]: 5,
[Chain.POLKADOT]: 4,
}
4 changes: 1 addition & 3 deletions utils/viem.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import type { Prefix } from '@kodadot1/static'
import { base, immutableZkEvm, mantle } from '@wagmi/vue/chains'
import { base, mantle } from '@wagmi/vue/chains'
import { type Chain } from 'viem'

export const CHAIN_ID_TO_PREFIX: Record<number, Prefix> = {
[base.id]: 'base',
[immutableZkEvm.id]: 'imx',
[mantle.id]: 'mnt',
}

export const PREFIX_TO_CHAIN: Partial<Record<Prefix, Chain>> = {
base: base,
imx: immutableZkEvm,
mnt: mantle,
}
Loading