Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into release/desktop-sh…
Browse files Browse the repository at this point in the history
…immer-2.1.16
  • Loading branch information
begonaalvarezd committed Jun 24, 2024
2 parents 8e28a5d + 4aa921d commit ed6e157
Show file tree
Hide file tree
Showing 11 changed files with 1,142 additions and 1,124 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"packages/shared"
],
"devDependencies": {
"@babel/eslint-parser": "^7.22.15",
"@babel/eslint-parser": "^7.24.7",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.57.1",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.42.0",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-svelte3": "^4.0.0",
Expand Down
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
Expand Up @@ -56,7 +56,7 @@
"node-loader": "^2.0.0",
"npm-run-all": "^4.1.5",
"postcss-url": "^10.1.2",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"typescript": "^5.0.3",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
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 @@ -74,6 +74,7 @@ const persistedProfileMigrationsMap: Record<number, (existingProfile: unknown) =
15: persistedProfileMigrationToV16,
16: persistedProfileMigrationToV17,
17: persistedProfileMigrationToV18,
18: persistedProfileMigrationToV19,
}

function persistedProfileMigrationToV4(existingProfile: unknown): void {
Expand Down Expand Up @@ -332,7 +333,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 @@ -345,3 +345,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
1,960 changes: 980 additions & 980 deletions packages/shared/locales/tr.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
"jest-environment-jsdom": "^29.5.0",
"postcss": "^8.4.31",
"postcss-cli": "^11.0.0",
"prettier": "3.2.5",
"prettier": "3.3.2",
"prettier-plugin-svelte": "^3.0.3",
"sass": "^1.76.0",
"svelte-check": "^3.4.5",
"svelte-check": "^3.8.1",
"svelte-loader": "^3.1.9",
"svelte-preprocess": "^5.0.4",
"tailwindcss": "^3.3.2",
"tailwindcss": "^3.4.4",
"tslib": "^2.0.1",
"typescript": "^5.0.3",
"valid-url": "^1.0.9",
Expand Down
Loading

0 comments on commit ed6e157

Please sign in to comment.