Skip to content

Commit

Permalink
Merge branch 'develop' into feat/LIVE-10693
Browse files Browse the repository at this point in the history
  • Loading branch information
kallen-ledger committed Jan 22, 2025
2 parents 5873e3f + f039217 commit 6a915ed
Show file tree
Hide file tree
Showing 175 changed files with 2,937 additions and 955 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-hounds-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/coin-evm": patch
---

Fix bot device actions for polygon
5 changes: 5 additions & 0 deletions .changeset/bright-turkeys-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": minor
---

Fix windows scroll on change device language
5 changes: 5 additions & 0 deletions .changeset/chatty-cobras-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": minor
---

Add token deeplink parameters for Swap
5 changes: 5 additions & 0 deletions .changeset/eleven-dolphins-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": minor
---

llm accounts list ui order accounts by fiat value
6 changes: 6 additions & 0 deletions .changeset/good-fans-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"live-mobile": minor
"@ledgerhq/native-ui": minor
---

fix tab selector to use a key instead of a string
5 changes: 5 additions & 0 deletions .changeset/hip-avocados-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/wallet-api-exchange-module": minor
---

fixed incorrect fee strategy types
5 changes: 5 additions & 0 deletions .changeset/hungry-bobcats-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": minor
---

Add account v2 close process management
7 changes: 7 additions & 0 deletions .changeset/kind-buttons-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"ledger-live-desktop": minor
"live-mobile": minor
"@ledgerhq/live-common": minor
---

fix(wallet-api): only bypass derivation check on LL for ACRE flows
6 changes: 6 additions & 0 deletions .changeset/polite-boxes-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"ledger-live-desktop": minor
"@ledgerhq/esbuild-utils": minor
---

Enable ASAR integrity check on MacOS and Windows
7 changes: 7 additions & 0 deletions .changeset/polite-donkeys-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@ledgerhq/types-live": minor
"live-mobile": minor
"@ledgerhq/live-common": minor
---

LLM Swap: fix to load the manifest from feature flag
6 changes: 6 additions & 0 deletions .changeset/red-actors-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"ledger-live-desktop": patch
"live-mobile": patch
---

feat: make sure all transaction broadcast use the broadcastconfig parameter
5 changes: 5 additions & 0 deletions .changeset/sharp-cheetahs-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

track all stake programs in analytics
6 changes: 6 additions & 0 deletions .changeset/sharp-items-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"live-mobile": minor
"@ledgerhq/live-wallet": minor
---

feat: Add final steps (succes,warning, quickActions, emptyState UI) for add account v2 workflow
5 changes: 5 additions & 0 deletions .changeset/silent-poets-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/live-common": minor
---

fix(wallet-api): add missing cosmos walletApiAdapter
5 changes: 5 additions & 0 deletions .changeset/tame-dryers-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": minor
---

Bump sentry to 6.5 and add metrics
5 changes: 5 additions & 0 deletions .changeset/tough-frogs-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/coin-bitcoin": patch
---

Fix bot device actions for Bitcoin Gold, bitcoin Cash and Litecoin
6 changes: 6 additions & 0 deletions .changeset/unlucky-garlics-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"ledger-live-desktop": minor
"@ledgerhq/coin-framework": minor
---

feat: create banner to warn users about potential issues
27 changes: 27 additions & 0 deletions .changeset/wet-swans-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
"@ledgerhq/live-common": minor
"@ledgerhq/coin-framework": minor
"@ledgerhq/actions-root": minor
"@ledgerhq/coin-internet_computer": patch
"@ledgerhq/coin-algorand": patch
"@ledgerhq/coin-filecoin": patch
"@ledgerhq/coin-polkadot": patch
"@ledgerhq/coin-bitcoin": patch
"@ledgerhq/coin-cardano": patch
"@ledgerhq/coin-stellar": patch
"@ledgerhq/coin-vechain": patch
"@ledgerhq/coin-cosmos": patch
"@ledgerhq/coin-elrond": patch
"@ledgerhq/coin-hedera": patch
"@ledgerhq/coin-solana": patch
"@ledgerhq/coin-stacks": patch
"@ledgerhq/coin-tezos": patch
"@ledgerhq/coin-icon": patch
"@ledgerhq/coin-near": patch
"@ledgerhq/coin-tron": patch
"@ledgerhq/coin-evm": patch
"@ledgerhq/coin-ton": patch
"@ledgerhq/coin-xrp": patch
---

Bot feature : Add filter for features
1 change: 1 addition & 0 deletions .github/workflows/bot-nonreg-nitrogen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ jobs:
BOT_ENVIRONMENT: production
# We don't run these currencies daily because fees are expensive
BOT_DISABLED_CURRENCIES: bitcoin,ethereum,qtum,decred,cardano,axelar,cosmos,secret_network,avalanche_c_chain,bsc,filecoin,tron,cronos,fantom,boba,telos_evm,polygon_zk_evm,polkadot
BOT_FILTER_FEATURES: send
1 change: 1 addition & 0 deletions .github/workflows/bot-nonreg-oxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ jobs:
BOT_ENVIRONMENT: production
# We only run these currencies on a weekly basis because fees are expensive
BOT_FILTER_CURRENCIES: qtum,decred,cardano,axelar,cosmos,secret_network,avalanche_c_chain,bsc,filecoin,tron,cronos,fantom,boba,telos_evm,polygon_zk_evm,polkadot
BOT_FILTER_FEATURES: send
4 changes: 4 additions & 0 deletions .github/workflows/bot-testing-nitrogen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
currencies:
description: currency ids to test, separated with commas (,)
required: false
features:
description: features to test(send,sendMax,tokens,staking)
required: false
speculos_websocket:
description: check to use speculos with Websocket
type: boolean
Expand Down Expand Up @@ -48,4 +51,5 @@ jobs:
BOT_ENVIRONMENT: testing
BOT_FILTER_FAMILIES: ${{github.event.inputs.families}}
BOT_FILTER_CURRENCIES: ${{github.event.inputs.currencies}}
BOT_FILTER_FEATURES: ${{github.event.inputs.features}}
SPECULOS_USE_WEBSOCKET: ${{inputs.speculos_websocket}}
4 changes: 3 additions & 1 deletion .github/workflows/release-final-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ jobs:
- name: commit
run: |
git add .
git commit -m "chore(nightly): :rocket: nightly release"
if [ "$(git status --porcelain --untracked-files=no)" ]; then
git commit -m "chore(nightly): :rocket: nightly release"
fi
- name: authenticate with npm
uses: actions/setup-node@v4
with:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/test-mobile-e2e-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
- name: Create iOS simulator
id: simulator
run: |
ID=$(xcrun simctl create "iPhone 14" "iPhone 14")
ID=$(xcrun simctl create "iPhone 15" "iPhone 15")
echo "id=$ID" >> $GITHUB_OUTPUT
- name: Build iOS app for Detox test run
if: steps.detox-build.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -201,11 +201,11 @@ jobs:
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
LC_ALL: en_US.UTF-8
AVD_API: 32
AVD_API: 35
AVD_ARCH: x86_64
AVD_PROFILE: pixel_6_pro
AVD_PROFILE: pixel_7_pro
AVD_TARGET: google_apis
AVD_NAME: "Pixel_6_Pro_API_32"
AVD_NAME: "Pixel_7_Pro_API_35"
AVD_CORES: 4
AVD_RAM_SIZE: 4096M
AVD_OPTIONS: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
Expand Down Expand Up @@ -320,7 +320,6 @@ jobs:
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-e2e-broadcast@develop
with:
enable_broadcast: ${{ inputs.enable_broadcast }}
schedule_cron: ${{ github.event.schedule.cron }}
- name: Run Android Tests
id: detox
run: pnpm mobile e2e:ci -p android -t $([[ "$INPUT_SPECULOS" == "true" ]] && printf %s '--speculos') $([[ "$PRODUCTION" == "true" ]] && printf %s '--production') --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-ui-e2e-only-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ jobs:
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-e2e-broadcast@develop
with:
enable_broadcast: ${{ inputs.enable_broadcast }}
schedule_cron: ${{ github.event.schedule.cron }}

- name: Run playwright tests [Linux => xvfb-run]
id: tests
Expand Down
2 changes: 2 additions & 0 deletions apps/ledger-live-desktop/electron-builder-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ protocols:

beforePack: scripts/beforePack.js
afterSign: scripts/notarize.js
afterPack: scripts/afterPack.js

directories:
buildResources: "build-nightly"
Expand All @@ -18,6 +19,7 @@ mac:
entitlements: build-nightly/mac/entitlements.plist
entitlementsInherit: build-nightly/mac/entitlements.plist
icon: build-nightly/icon.icns
mergeASARs: false
target:
- target: dmg
arch:
Expand Down
1 change: 1 addition & 0 deletions apps/ledger-live-desktop/electron-builder-nosign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mac:
artifactName: ${name}-${version}-${os}.${ext}
category: public.app-category.wallet
# singleArchFiles: "**/*"
mergeASARs: false
target:
- target: dmg
arch:
Expand Down
2 changes: 2 additions & 0 deletions apps/ledger-live-desktop/electron-builder-pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ protocols:

beforePack: scripts/beforePack.js
afterSign: scripts/notarize.js
afterPack: scripts/afterPack.js

mac:
artifactName: ${name}-${version}-${os}.${ext}
category: public.app-category.wallet
hardenedRuntime: true
entitlements: build/mac/entitlements.plist
entitlementsInherit: build/mac/entitlements.plist
mergeASARs: false
target:
- target: dmg
arch:
Expand Down
2 changes: 2 additions & 0 deletions apps/ledger-live-desktop/electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ protocols:

beforePack: scripts/beforePack.js
afterSign: scripts/notarize.js
afterPack: scripts/afterPack.js

mac:
artifactName: ${name}-${version}-${os}.${ext}
category: public.app-category.wallet
hardenedRuntime: true
entitlements: build/mac/entitlements.plist
entitlementsInherit: build/mac/entitlements.plist
mergeASARs: false
target:
- target: dmg
arch:
Expand Down
9 changes: 5 additions & 4 deletions apps/ledger-live-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"@ledgerhq/coin-evm": "workspace:^",
"@ledgerhq/coin-filecoin": "workspace:^",
"@ledgerhq/coin-framework": "workspace:^",
"@ledgerhq/cryptoassets": "workspace:^",
"@ledgerhq/devices": "workspace:*",
"@ledgerhq/domain-service": "workspace:^",
"@ledgerhq/errors": "workspace:^",
Expand All @@ -82,7 +83,6 @@
"@ledgerhq/logs": "workspace:^",
"@ledgerhq/react-ui": "workspace:^",
"@ledgerhq/types-cryptoassets": "workspace:^",
"@ledgerhq/cryptoassets": "workspace:^",
"@ledgerhq/types-devices": "workspace:^",
"@ledgerhq/types-live": "workspace:^",
"@sentry/electron": "5.2.0",
Expand All @@ -100,7 +100,7 @@
"chart.js": "2.9.4",
"color": "4.2.3",
"dotenv": "16.4.5",
"electron-app-universal-protocol-client": "1.3.0",
"electron-app-universal-protocol-client": "2.1.1",
"electron-context-menu": "3.6.1",
"electron-store": "8.2.0",
"electron-updater": "6.1.8",
Expand Down Expand Up @@ -160,6 +160,7 @@
"xstate": "4.38.3"
},
"devDependencies": {
"@electron/fuses": "1.8.0",
"@electron/notarize": "2.3.2",
"@jest/globals": "29.7.0",
"@ledgerhq/esbuild-utils": "workspace:*",
Expand Down Expand Up @@ -210,8 +211,8 @@
"chalk": "4.1.2",
"cross-env": "7.0.3",
"debug": "4.3.4",
"electron": "32.0.2",
"electron-builder": "24.13.3",
"electron": "32.2.8",
"electron-builder": "25.1.8",
"electron-devtools-installer": "3.2.1",
"eslint-plugin-jest": "27.9.0",
"eslint-plugin-react": "7.34.1",
Expand Down
23 changes: 23 additions & 0 deletions apps/ledger-live-desktop/scripts/afterPack.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path");
const { flipFuses, FuseVersion, FuseV1Options } = require("@electron/fuses");

exports.default = function (context) {
const { appOutDir, electronPlatformName, packager } = context;
const ext = { darwin: ".app", win32: ".exe" }[electronPlatformName];
if (!ext) return; // ASAR integrity check is only supported on mac and windows

const electronBinaryPath = path.join(appOutDir, packager.appInfo.productFilename + ext);

return flipFuses(electronBinaryPath, {
version: FuseVersion.V1,
[FuseV1Options.RunAsNode]: true,
[FuseV1Options.EnableCookieEncryption]: false,
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: true,
[FuseV1Options.EnableNodeCliInspectArguments]: true,
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
[FuseV1Options.OnlyLoadAppFromAsar]: true,
[FuseV1Options.LoadBrowserProcessSpecificV8Snapshot]: false,
[FuseV1Options.GrantFileProtocolExtraPrivileges]: true,
});
};
12 changes: 12 additions & 0 deletions apps/ledger-live-desktop/src/renderer/analytics/segment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const getPtxAttributes = () => {
if (!analyticsFeatureFlagMethod) return {};
const fetchAdditionalCoins = analyticsFeatureFlagMethod("fetchAdditionalCoins");
const stakingProviders = analyticsFeatureFlagMethod("ethStakingProviders");
const stakePrograms = analyticsFeatureFlagMethod("stakePrograms");
const ptxCard = analyticsFeatureFlagMethod("ptxCard");

const isBatch1Enabled: boolean =
Expand All @@ -114,12 +115,23 @@ const getPtxAttributes = () => {
? stakingProviders?.params?.listProvider.length
: "flag not loaded";

const stakingCurrenciesEnabled =
stakePrograms?.enabled && stakePrograms?.params?.list?.length
? Object.fromEntries(
stakePrograms.params.list.map((currencyId: string) => [
`feature_earn_${currencyId}_enabled`,
true,
]),
)
: {};

return {
isBatch1Enabled,
isBatch2Enabled,
isBatch3Enabled,
stakingProvidersEnabled,
ptxCard,
...stakingCurrenciesEnabled,
};
};

Expand Down
Loading

0 comments on commit 6a915ed

Please sign in to comment.