From 8e28a5db8be8d72e8fbc9bd68f563c90fd370de3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20Alvarez?= Date: Thu, 9 May 2024 10:44:52 +0200 Subject: [PATCH 1/5] chore: bump version to 2.1.16-beta-1 --- packages/desktop/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/desktop/package.json b/packages/desktop/package.json index f967e37f957..aa6c4101d7f 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -1,7 +1,7 @@ { "name": "desktop", "productName": "Firefly Shimmer", - "version": "2.1.15-beta-1", + "version": "2.1.16-beta-1", "description": "Official wallet application of Shimmer", "main": "public/build/main.js", "repository": "git@github.com:iotaledger/firefly.git", From aff7776aa9701ebbf3a4b2a514f23291944eacb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20=C3=81lvarez=20de=20la=20Cruz?= Date: Tue, 25 Jun 2024 07:35:09 -0600 Subject: [PATCH 2/5] feat: remove tanglebay shimmer node from official nodes list (#8562) * feat: remove tanglebay shimmer node from official nodes list * feat: migrate primaryNode too * fix: tests --- .../constants/official-node-urls.constant.ts | 2 +- .../lib/core/network/tests/network.test.ts | 2 +- .../profiles/checkAndMigrateProfiles.ts | 22 +++++++++++++++++++ .../constants/profile-version.constant.ts | 2 +- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/packages/shared/lib/core/network/constants/official-node-urls.constant.ts b/packages/shared/lib/core/network/constants/official-node-urls.constant.ts index 83e242cd659..c8a46703c92 100644 --- a/packages/shared/lib/core/network/constants/official-node-urls.constant.ts +++ b/packages/shared/lib/core/network/constants/official-node-urls.constant.ts @@ -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'], } diff --git a/packages/shared/lib/core/network/tests/network.test.ts b/packages/shared/lib/core/network/tests/network.test.ts index 972075b9895..5522e05cdd7 100644 --- a/packages/shared/lib/core/network/tests/network.test.ts +++ b/packages/shared/lib/core/network/tests/network.test.ts @@ -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'], } diff --git a/packages/shared/lib/core/profile/actions/profiles/checkAndMigrateProfiles.ts b/packages/shared/lib/core/profile/actions/profiles/checkAndMigrateProfiles.ts index e34742543ac..0d61dc3f341 100644 --- a/packages/shared/lib/core/profile/actions/profiles/checkAndMigrateProfiles.ts +++ b/packages/shared/lib/core/profile/actions/profiles/checkAndMigrateProfiles.ts @@ -4,6 +4,7 @@ import { DEFAULT_CHAIN_CONFIGURATIONS, DEFAULT_MAX_PARALLEL_API_REQUESTS, getDefaultPersistedNetwork, + getOfficialNodes, IIscpChainMetadata, NetworkId, } from '@core/network' @@ -75,6 +76,7 @@ const persistedProfileMigrationsMap: Record 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) +} diff --git a/packages/shared/lib/core/profile/constants/profile-version.constant.ts b/packages/shared/lib/core/profile/constants/profile-version.constant.ts index b306ad05f47..ac9222764f1 100644 --- a/packages/shared/lib/core/profile/constants/profile-version.constant.ts +++ b/packages/shared/lib/core/profile/constants/profile-version.constant.ts @@ -1 +1 @@ -export const PROFILE_VERSION = 19 +export const PROFILE_VERSION = 20 From 0b94c6500aa2e413196057ba1b6253f008efa58e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20Alvarez?= Date: Wed, 26 Jun 2024 10:17:14 +0200 Subject: [PATCH 3/5] chore: bump version to 2.1.16-beta-2 --- packages/desktop/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/desktop/package.json b/packages/desktop/package.json index b05193bdb98..621658557b1 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -1,7 +1,7 @@ { "name": "desktop", "productName": "Firefly Shimmer", - "version": "2.1.16-beta-1", + "version": "2.1.16-beta-2", "description": "Official wallet application of Shimmer", "main": "public/build/main.js", "repository": "git@github.com:iotaledger/firefly.git", From 0c4afb4d21e0098a531720df7ab6f9a3b3c618de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20=C3=81lvarez=20de=20la=20Cruz?= Date: Wed, 26 Jun 2024 17:12:35 +0200 Subject: [PATCH 4/5] chore(ci): replace macos-11 with macos-12 (#8565) --- .github/workflows/build-and-release-desktop.yml | 10 +++++----- .github/workflows/build-desktop-test.v1.yml | 10 +++++----- .github/workflows/build-desktop-test.v2.yml | 6 +++--- .github/workflows/build-desktop.yml | 8 ++++---- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build-and-release-desktop.yml b/.github/workflows/build-and-release-desktop.yml index feb727c3365..a7891e57e60 100644 --- a/.github/workflows/build-and-release-desktop.yml +++ b/.github/workflows/build-and-release-desktop.yml @@ -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 }} @@ -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: | @@ -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 @@ -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') } @@ -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 diff --git a/.github/workflows/build-desktop-test.v1.yml b/.github/workflows/build-desktop-test.v1.yml index 7376868642d..46dfd772a54 100644 --- a/.github/workflows/build-desktop-test.v1.yml +++ b/.github/workflows/build-desktop-test.v1.yml @@ -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' @@ -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: | @@ -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: | @@ -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 @@ -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') } diff --git a/.github/workflows/build-desktop-test.v2.yml b/.github/workflows/build-desktop-test.v2.yml index 77f91e98f97..93a3b7749ae 100644 --- a/.github/workflows/build-desktop-test.v2.yml +++ b/.github/workflows/build-desktop-test.v2.yml @@ -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' @@ -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: | @@ -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 diff --git a/.github/workflows/build-desktop.yml b/.github/workflows/build-desktop.yml index e60bbc772f4..37bfa805f56 100644 --- a/.github/workflows/build-desktop.yml +++ b/.github/workflows/build-desktop.yml @@ -11,7 +11,7 @@ on: required: true type: choice options: - - macos-11 + - macos-12 - ubuntu-20.04 - windows-2019 stage: @@ -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: | @@ -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 @@ -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') } From 871c12699f13e1da22b0617a40078820249740ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20Alvarez?= Date: Tue, 6 Aug 2024 10:08:54 +0200 Subject: [PATCH 5/5] chore: bump version to 2.1.16 --- packages/desktop/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/desktop/package.json b/packages/desktop/package.json index 621658557b1..03c523b604b 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -1,7 +1,7 @@ { "name": "desktop", "productName": "Firefly Shimmer", - "version": "2.1.16-beta-2", + "version": "2.1.16", "description": "Official wallet application of Shimmer", "main": "public/build/main.js", "repository": "git@github.com:iotaledger/firefly.git",