Skip to content
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

release: desktop iota 2.0.11 #8547

Merged
merged 3 commits into from
Jun 4, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
onClick={onViewAddressHistoryClick}
/>
{/if}
{#if $activeProfile?.network?.id === NetworkId.Shimmer || $activeProfile?.network?.id === NetworkId.ShimmerTestnet || $activeProfile?.network?.id === NetworkId.IotaTestnet}
{#if $activeProfile?.network?.id === NetworkId.Shimmer || $activeProfile?.network?.id === NetworkId.ShimmerTestnet || $activeProfile?.network?.id === NetworkId.IotaTestnet || $activeProfile?.network?.id === NetworkId.Iota}
<MenuItem icon={Icon.Transfer} title={localize('actions.withdrawFromL2')} onClick={onWithdrawFromL2Click} />
{/if}
<MenuItem icon={Icon.Customize} title={localize('actions.customizeAcount')} onClick={onCustomiseAccountClick} />
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "desktop",
"productName": "Firefly IOTA",
"version": "2.0.10",
"version": "2.0.11",
"description": "Official wallet application of Shimmer",
"main": "public/build/main.js",
"repository": "[email protected]:iotaledger/firefly.git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export enum DestinationNetwork {
Shimmer = 'Shimmer',
ShimmerEvm = 'ShimmerEVM',
ShimmerEvmTestnet = 'ShimmerEVM Testnet',
IOTAEVM = 'IOTA EVM',
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ export const DEFAULT_CHAIN_CONFIGURATIONS: Readonly<{ [id in NetworkId]?: ChainM
'https://api.evm.testnet.shimmer.network/v1/chains/rms1ppp00k5mmd2m8my8ukkp58nd3rskw6rx8l09aj35984k74uuc5u2cywn3ex',
archiveEndpoint: 'https://archive.evm.testnet.shimmer.network',
},
[NetworkId.Iota]: {
type: ChainType.Iscp,
name: DestinationNetwork.IOTAEVM,
chainId: ChainId.IOTAEVM,
aliasAddress: 'iota1pzt3mstq6khgc3tl0mwuzk3eqddkryqnpdxmk4nr25re2466uxwm28qqxu5',
iscpEndpoint:
'https://api.evm.iotaledger.net/v1/chains/iota1pzt3mstq6khgc3tl0mwuzk3eqddkryqnpdxmk4nr25re2466uxwm28qqxu5',
archiveEndpoint: 'https://archive.evm.iotaledger.net',
},
[NetworkId.IotaTestnet]: {
type: ChainType.Iscp,
name: DestinationNetwork.IotaEvmTestnet,
Expand Down
1 change: 1 addition & 0 deletions packages/shared/lib/core/network/enums/chain-id.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ export enum ChainId {
Layer1 = 0,
ShimmerEVM = 148,
ShimmerEVMTestnet = 1073,
IOTAEVM = 8822,
IotaEVMTestnet = 1075,
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const persistedProfileMigrationsMap: Record<number, (existingProfile: unknown) =
15: persistedProfileMigrationToV16,
16: persistedProfileMigrationToV17,
17: persistedProfileMigrationToV18,
18: persistedProfileMigrationToV19,
}

function persistedProfileMigrationToV4(existingProfile: unknown): void {
Expand Down Expand Up @@ -351,7 +352,6 @@ function persistedProfileMigrationToV17(existingProfile: IPersistedProfile): voi
existingProfile.network.chains = newChains
saveProfile(existingProfile)
}

/*
* Migration 18
* Change from 1 testnet to 2: Shimmer Testnet (what we knew as Testnet) & IOTA Testnet.
Expand All @@ -364,3 +364,10 @@ function persistedProfileMigrationToV18(existingProfile: IPersistedProfile): voi
}
saveProfile(existingProfile)
}

function persistedProfileMigrationToV19(existingProfile: IPersistedProfile): void {
const defaultChainConfig = DEFAULT_CHAIN_CONFIGURATIONS[existingProfile.network.id]
const newChains: IIscpChainMetadata[] = defaultChainConfig ? [defaultChainConfig] : []
existingProfile.network.chains = newChains
saveProfile(existingProfile)
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const PROFILE_VERSION = 18
export const PROFILE_VERSION = 19
Loading