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.12 #8592

Merged
merged 38 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
a63250c
New Crowdin translations by Github Action (#8399)
github-actions[bot] May 7, 2024
0ded303
chore(deps-dev): bump webpack and @types/webpack (#7634)
dependabot[bot] May 7, 2024
11d04b2
chore: Bump @types/big.js from 6.1.6 to 6.2.2 (#7706)
dependabot[bot] May 7, 2024
6167ca9
chore(deps-dev): bump postcss-cli from 10.1.0 to 11.0.0 in /packages/…
dependabot[bot] May 7, 2024
8af6d25
chore(deps-dev): bump copy-webpack-plugin from 11.0.0 to 12.0.2 in /p…
dependabot[bot] May 7, 2024
901bd69
chore(deps-dev): bump prettier from 3.0.3 to 3.2.5 in /packages/share…
dependabot[bot] May 7, 2024
b6c7e1e
chore(deps): bump es5-ext from 0.10.62 to 0.10.64 (#8103)
dependabot[bot] May 7, 2024
455147b
chore(deps): bump follow-redirects from 1.15.5 to 1.15.6 (#8212)
dependabot[bot] May 7, 2024
c32432f
chore(deps): bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#8255)
dependabot[bot] May 7, 2024
5cec65e
chore(deps-dev): bump webpack-dev-server from 4.15.2 to 5.0.4 in /pac…
dependabot[bot] May 7, 2024
0ca04e3
chore(deps): bump express from 4.18.2 to 4.19.2 (#8287)
dependabot[bot] May 7, 2024
8a080f2
chore(deps): bump tar from 6.1.15 to 6.2.1 (#8367)
dependabot[bot] May 7, 2024
475b467
chore(deps-dev): bump css-loader from 6.11.0 to 7.1.1 in /packages/de…
dependabot[bot] May 7, 2024
4f82a5f
chore(deps-dev): bump @swc/core from 1.3.68 to 1.4.17 (#8475)
dependabot[bot] May 7, 2024
abf4141
chore(deps): bump ejs from 3.1.9 to 3.1.10 (#8480)
dependabot[bot] May 7, 2024
b0f7249
chore(deps-dev): bump sass from 1.63.6 to 1.76.0 (#8488)
dependabot[bot] May 7, 2024
2f3f38c
fix available balance toggle on custom network (#8503)
evavirseda May 7, 2024
b736434
chore: bump version to 2.1.15
begonaalvarezd May 9, 2024
8e28a5d
chore: bump version to 2.1.16-beta-1
begonaalvarezd May 9, 2024
c0e1776
Merge pull request #8507 from iotaledger/release/desktop-shimmer-2.1.15
begonaalvarezd May 9, 2024
03867bc
feat: add support for the IOTA EVM (#8293)
begonaalvarezd Jun 4, 2024
541f7e1
chore(deps-dev): bump ts-node from 10.9.1 to 10.9.2 (#8512)
dependabot[bot] Jun 24, 2024
0902bc0
New Crowdin translations by Github Action (#8537)
github-actions[bot] Jun 24, 2024
b0e3e56
chore(deps-dev): bump @typescript-eslint/parser from 5.61.0 to 5.62.0…
dependabot[bot] Jun 24, 2024
43b010e
chore(deps-dev): bump tailwindcss from 3.3.2 to 3.4.4 (#8551)
dependabot[bot] Jun 24, 2024
36d3a04
chore(deps-dev): bump @babel/eslint-parser from 7.22.15 to 7.24.7 (#8…
dependabot[bot] Jun 24, 2024
7d77209
chore(deps): bump braces from 3.0.2 to 3.0.3 (#8554)
dependabot[bot] Jun 24, 2024
484301a
chore(deps-dev): bump prettier from 3.2.5 to 3.3.2 in /packages/share…
dependabot[bot] Jun 24, 2024
48fac31
chore(deps): bump ws from 8.13.0 to 8.17.1 (#8558)
dependabot[bot] Jun 24, 2024
4aa921d
chore(deps-dev): bump svelte-check from 3.4.6 to 3.8.1 (#8560)
dependabot[bot] Jun 24, 2024
ed6e157
Merge remote-tracking branch 'origin/develop' into release/desktop-sh…
begonaalvarezd Jun 24, 2024
aff7776
feat: remove tanglebay shimmer node from official nodes list (#8562)
begonaalvarezd Jun 25, 2024
0b94c65
chore: bump version to 2.1.16-beta-2
begonaalvarezd Jun 26, 2024
0c4afb4
chore(ci): replace macos-11 with macos-12 (#8565)
begonaalvarezd Jun 26, 2024
871c126
chore: bump version to 2.1.16
begonaalvarezd Aug 6, 2024
2f93e2c
Merge pull request #8564 from iotaledger/release/desktop-shimmer-2.1.16
begonaalvarezd Aug 6, 2024
bfbb718
Merge remote-tracking branch 'origin/develop' into release/desktop-io…
begonaalvarezd Aug 6, 2024
d7a1c4f
chore: bump version to 2.0.12
begonaalvarezd Aug 6, 2024
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
10 changes: 5 additions & 5 deletions .github/workflows/build-and-release-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
needs: [setup]
strategy:
matrix:
os: [ubuntu-20.04, macos-11, windows-2019]
os: [ubuntu-20.04, macos-12, windows-2019]
fail-fast: true
env:
VERSION: ${{ needs.setup.outputs.version }}
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:

- name: Set deployment target (macOS)
run: echo "MACOSX_DEPLOYMENT_TARGET=10.14" >> $GITHUB_ENV # TODO: set this to 10.12 once rocksDB issue is fixed
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12'

- name: Install required packages (Linux)
run: |
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
working-directory: packages/desktop
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12'

- name: Build Electron app (Windows)
run: yarn compile:${env:STAGE}:win
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
- name: Compute checksums (macOS)
run: for i in `ls | grep 'firefly-*'` ; do shasum -a 256 $i | awk {'print $1'} > $i.sha256 ; done
working-directory: packages/desktop/out
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12'

- name: Compute checksums (Windows)
run: Get-ChildItem "." -Filter firefly-* | Foreach-Object { $(Get-FileHash -Path $_.FullName -Algorithm SHA256).Hash | Set-Content ($_.FullName + '.sha256') }
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
- name: Downloading artifacts
uses: actions/download-artifact@v2
with:
name: firefly-desktop-macos-11
name: firefly-desktop-macos-12
path: assets

- name: Downloading artifacts
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-desktop-test.v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
if: ${{ always() }}
strategy:
matrix:
os: [ubuntu-18.04, macos-11, windows-2019]
os: [ubuntu-18.04, macos-12, windows-2019]
fail-fast: true
env:
VERSION: '1.7.2-test'
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:

- name: Set deployment target (macOS)
run: echo "MACOSX_DEPLOYMENT_TARGET=10.12" >> $GITHUB_ENV
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12'

- name: Install required packages (Linux)
run: |
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
- name: Install Sentry CLI
# Yarn has issues putting binaries in the PATH on Windows
run: npm i -g @sentry/cli
if: ${{ startsWith(github.ref, 'refs/tags/desktop') && matrix.os != 'macos-11' }}
if: ${{ startsWith(github.ref, 'refs/tags/desktop') && matrix.os != 'macos-12' }}

# - name: Strip backend debug info and upload to Sentry (Linux)
# run: |
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
working-directory: packages/desktop
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12'

- name: Build Electron app (Windows)
run: yarn compile:${env:STAGE}:win
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
- name: Compute checksums (macOS)
run: for i in `ls | grep 'firefly-desktop*'` ; do shasum -a 256 $i | awk {'print $1'} > $i.sha256 ; done
working-directory: packages/desktop/out
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12'

- name: Compute checksums (Windows)
run: Get-ChildItem "." -Filter firefly-desktop* | Foreach-Object { $(Get-FileHash -Path $_.FullName -Algorithm SHA256).Hash | Set-Content ($_.FullName + '.sha256') }
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-desktop-test.v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
if: ${{ always() }}
strategy:
matrix:
os: [ ubuntu-20.04, macos-11, windows-2019 ]
os: [ ubuntu-20.04, macos-12, windows-2019 ]
fail-fast: true
env:
VERSION: '2.1.3-test'
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Set deployment target (macOS)
run: echo "MACOSX_DEPLOYMENT_TARGET=10.14" >> $GITHUB_ENV # TODO: set this to 10.12 once rocksDB issue is fixed
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12'

- name: Install required packages (Linux)
run: |
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
working-directory: packages/desktop
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12'

- name: Build Electron app (Windows)
run: yarn compile:${env:STAGE}:win
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
required: true
type: choice
options:
- macos-11
- macos-12
- ubuntu-20.04
- windows-2019
stage:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:

- name: Set deployment target (macOS)
run: echo "MACOSX_DEPLOYMENT_TARGET=10.14" >> $GITHUB_ENV # TODO: set this to 10.12 once rocksDB issue is fixed
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12'

- name: Install required packages (Linux)
run: |
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
working-directory: packages/desktop
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12'

- name: Build Electron app (Windows)
run: yarn compile:${env:STAGE}:win
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
- name: Compute checksums (macOS)
run: for i in `ls | grep 'firefly-*'` ; do shasum -a 256 $i | awk {'print $1'} > $i.sha256 ; done
working-directory: packages/desktop/out
if: matrix.os == 'macos-11'
if: matrix.os == 'macos-12'

- name: Compute checksums (Windows)
run: Get-ChildItem "." -Filter firefly-* | Foreach-Object { $(Get-FileHash -Path $_.FullName -Algorithm SHA256).Hash | Set-Content ($_.FullName + '.sha256') }
Expand Down
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
14 changes: 7 additions & 7 deletions 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.11",
"version": "2.0.12",
"description": "Official wallet application of Shimmer",
"main": "public/build/main.js",
"repository": "[email protected]:iotaledger/firefly.git",
Expand Down Expand Up @@ -44,10 +44,10 @@
"devDependencies": {
"@sentry/webpack-plugin": "^2.8.0",
"@tsconfig/svelte": "^4.0.1",
"@types/webpack": "^5.28.1",
"copy-webpack-plugin": "^11.0.0",
"@types/webpack": "^5.28.5",
"copy-webpack-plugin": "^12.0.2",
"cross-env": "^7.0.2",
"css-loader": "^6.7.3",
"css-loader": "^7.1.1",
"electron": "27.0.2",
"electron-builder": "^24.6.4",
"esbuild-loader": "^4.0.2",
Expand All @@ -56,10 +56,10 @@
"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.82.0",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.0.0"
"webpack-dev-server": "^5.0.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
import { formatTokenAmountBestMatch, IAsset } from '@core/wallet'
import { formatCurrency, localize } from '@core/i18n'
import { getMarketAmountFromAssetValue } from '@core/market/utils'
import { NetworkId } from '@core/network'
import { activeProfile } from '@core/profile'

export let asset: IAsset

$: availableMarketValue = getMarketAmountFromAssetValue(asset?.balance?.available, asset)
$: totalMarketValue = getMarketAmountFromAssetValue(asset?.balance?.total, asset)
$: disabled = Number.isNaN(totalMarketValue) || Number.isNaN(availableMarketValue)
$: isCustomNetwork = $activeProfile?.network?.id === NetworkId.Custom

let isToggled = false
function toggle(): void {
Expand All @@ -20,16 +23,17 @@
<button on:click={toggle} type="button" {disabled}>
<div class="flex flex-col flex-wrap items-start space-y-1">
<Text type={TextType.h1} fontWeight={FontWeight.semibold}>
{isToggled
{isToggled && !isCustomNetwork
? formatCurrency(totalMarketValue)
: formatTokenAmountBestMatch(asset?.balance?.total, asset?.metadata)}
</Text>
<Text type={TextType.p} fontWeight={FontWeight.medium} color="gray-600" darkColor="gray-500">
{localize('general.availableBalanceWithValue', {
values: {
balance: isToggled
? formatCurrency(availableMarketValue)
: formatTokenAmountBestMatch(asset?.balance?.available, asset?.metadata),
balance:
isToggled && !isCustomNetwork
? formatCurrency(availableMarketValue)
: formatTokenAmountBestMatch(asset?.balance?.available, asset?.metadata),
},
})}
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export const OFFICIAL_NODE_URLS: Readonly<{ [key in NetworkId]?: string[] }> = {
[NetworkId.Iota]: ['https://api.stardust-mainnet.iotaledger.net', 'https://iota-node.tanglebay.com'],
[NetworkId.IotaTestnet]: ['https://api.testnet.iotaledger.net'],
[NetworkId.IotaAlphanet]: ['https://api.iota-alphanet.iotaledger.net'],
[NetworkId.Shimmer]: ['https://api.shimmer.network', 'https://shimmer-node.tanglebay.com'],
[NetworkId.Shimmer]: ['https://api.shimmer.network'],
[NetworkId.ShimmerTestnet]: ['https://api.testnet.shimmer.network'],
}
2 changes: 1 addition & 1 deletion packages/shared/lib/core/network/tests/network.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('File: network.ts', () => {
[NetworkId.Iota]: ['https://api.stardust-mainnet.iotaledger.net', 'https://iota-node.tanglebay.com'],
[NetworkId.IotaTestnet]: ['https://api.testnet.iotaledger.net'],
[NetworkId.IotaAlphanet]: ['https://api.iota-alphanet.iotaledger.net'],
[NetworkId.Shimmer]: ['https://api.shimmer.network', 'https://shimmer-node.tanglebay.com'],
[NetworkId.Shimmer]: ['https://api.shimmer.network'],
[NetworkId.ShimmerTestnet]: ['https://api.testnet.shimmer.network'],
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
DEFAULT_CHAIN_CONFIGURATIONS,
DEFAULT_MAX_PARALLEL_API_REQUESTS,
getDefaultPersistedNetwork,
getOfficialNodes,
IIscpChainMetadata,
NetworkId,
} from '@core/network'
Expand Down Expand Up @@ -81,6 +82,7 @@ const persistedProfileMigrationsMap: Record<number, (existingProfile: unknown) =
16: persistedProfileMigrationToV17,
17: persistedProfileMigrationToV18,
18: persistedProfileMigrationToV19,
19: persistedProfileMigrationToV20,
}

function persistedProfileMigrationToV4(existingProfile: unknown): void {
Expand Down Expand Up @@ -371,3 +373,23 @@ function persistedProfileMigrationToV19(existingProfile: IPersistedProfile): voi
existingProfile.network.chains = newChains
saveProfile(existingProfile)
}

/*
* Migration 20
* Remove Tanglebay SMR node from the list of nodes.
*/
function persistedProfileMigrationToV20(existingProfile: IPersistedProfile): void {
const DEPRECATED_NODE_URL = 'https://shimmer-node.tanglebay.com'
const OFFICIAL_NODES = getOfficialNodes(existingProfile.network.id)

const nodes = existingProfile.clientOptions.nodes ?? []
existingProfile.clientOptions.nodes = nodes.filter((node) => node.url !== DEPRECATED_NODE_URL)
if (!existingProfile.clientOptions.nodes?.length) {
existingProfile.clientOptions.nodes = OFFICIAL_NODES
}
const primaryNode = existingProfile.clientOptions.primaryNode
if (primaryNode?.url === DEPRECATED_NODE_URL) {
existingProfile.clientOptions.primaryNode = undefined
}
saveProfile(existingProfile)
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const PROFILE_VERSION = 19
export const PROFILE_VERSION = 20
18 changes: 12 additions & 6 deletions packages/shared/locales/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@
"title": "Shimmer",
"body": "Staging network for IOTA"
},
"testnet": {
"title": "Testnet",
"body": "Public beta network for Shimmer"
"shimmerTestnet": {
"title": "Shimmer Testnet",
"body": "Public testnet network for Shimmer"
},
"iota": {
"title": "IOTA",
"body": "IOTA Mainnet"
},
"iotaTestnet": {
"title": "IOTA Testnet",
"body": "Public testnet network for Mainnet"
},
"iotaAlphanet": {
"title": "IOTA Alphanet",
"body": "IOTA Alphanet"
Expand Down Expand Up @@ -1245,22 +1249,24 @@
"iota": "Restore IOTA profile",
"iotaAlphanet": "Restore IOTA Alphanet profile",
"shimmer": "Restore Shimmer profile",
"testnet": "Restore Testnet profile",
"iotaTestnet": "Restore IOTA Testnet profile",
"shimmerTestnet": "Restore Shimmer Testnet profile",
"custom": "Restore Custom Network profile"
},
"restoreWalletDescription": {
"iota": "Restore an existing IOTA profile",
"iotaAlphanet": "Restore an existing IOTA Alphanet profile",
"shimmer": "Restore an existing Shimmer profile",
"testnet": "Restore an existing Testnet profile",
"iotaTestnet": "Restore an existing IOTA Testnet profile",
"shimmerTestnet": "Restore an existing Shimmer Testnet profile",
"custom": "Restore an existing Custom Network profile"
},
"refreshNftMedia": {
"title": "Refresh NFT media",
"description": "Do you want to delete and re-download all NFT media for this account?"
},
"createWallet": "Create a new {network} profile",
"createWalletDescription": "Create a fresh profile running on {network, select, iota {Chrysalis} shimmer {Shimmer} testnet {Testnet} custom {Custom Network} other {Unknown}}",
"createWalletDescription": "Create a fresh profile running on {network, select, iota {Chrysalis} shimmer {Shimmer} shimmerTestnet {Shimmer Testnet} iotaTestnet {IOTA Testnet} custom {Custom Network} other {Unknown}}",
"claimShimmer": "Claim Shimmer staking rewards",
"claimShimmerDescription": "Import IOTA profile and claim staking rewards",
"migrateFromLegacy": "Migrate from Legacy",
Expand Down
Loading
Loading