Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into nightly
Browse files Browse the repository at this point in the history
* origin/develop: (91 commits)
  Bugfix: [Stax ESC][LLD] Infinite spinner if user locks Stax at the beginning of ESC (#4705)
  test(lld): update screenshots (windows-latest)  lld, test, screenshot
  test(lld): update screenshots (ubuntu-latest)  lld, test, screenshot
  test(lld): update screenshots (macos-latest)  lld, test, screenshot
  test: fix delegate cosmos teston LLD
  [BUGFIX] Issues on swap (#4741)
  feat: injective integration (#4583)
  [LLM & LLD] Update staking button (#4717)
  Feat/live 9239 update zcash explorer to zcashblockexplorer.com (#4714)
  chore(web-tools): make sure to name it 'web-tools' in package.json
  fix: regen doc
  Feat/llm cex deposit entry points (#4680)
  Feat/save swap history wallet api exchange (#4615)
  chore(deps): update dependency @types/node to v20.6.2
  fix: can find my ledger padding
  fix: renaming on LLM
  feat: send LL version to the manifest-api
  [B2CQA-1972] Detox fix animations flakiness (#4700)
  [BUGFIX] fix wallet-api complete exchange logic (#4699)
  chore(deps): update dependency esbuild to v0.19.3
  ...
  • Loading branch information
valpinkman committed Sep 20, 2023
2 parents 98daa51 + 4a57e0b commit 3fa6ffd
Show file tree
Hide file tree
Showing 674 changed files with 20,828 additions and 31,169 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-lions-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": patch
---

Ensure we reset the storage correctly in the PTXWebPlayer
5 changes: 5 additions & 0 deletions .changeset/five-monkeys-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": patch
---

Add Entry point to CEX with feature flag
5 changes: 5 additions & 0 deletions .changeset/gentle-tomatoes-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": patch
---

Update staking icon
5 changes: 5 additions & 0 deletions .changeset/gold-pants-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/hw-app-eth": patch
---

Fixing hexBuffer helper for EIP712 signature not padding byte strings with 0
5 changes: 5 additions & 0 deletions .changeset/great-tomatoes-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

Update learn more link for cosmos redelegation banner to point to cosmos page instead of ethereum page.
6 changes: 6 additions & 0 deletions .changeset/grumpy-flowers-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"ledger-live-desktop": minor
"live-mobile": minor
---

Fix swap issue when estimating and editing fees
11 changes: 11 additions & 0 deletions .changeset/lemon-taxis-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@ledgerhq/types-cryptoassets": minor
"@ledgerhq/cryptoassets": minor
"@ledgerhq/types-live": minor
"ledger-live-desktop": minor
"live-mobile": minor
"@ledgerhq/live-common": minor
"@ledgerhq/live-cli": minor
---

Integrate injective + gas rework
5 changes: 5 additions & 0 deletions .changeset/little-papayas-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/live-common": minor
---

Add loading state to useGasOptions hook to be used by UI while gasOptions are being fetched
6 changes: 6 additions & 0 deletions .changeset/long-schools-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"ledger-live-desktop": patch
"@ledgerhq/live-common": patch
---

Save swap history wallet api exchange
5 changes: 5 additions & 0 deletions .changeset/mighty-doors-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

Fix Stax onboarding early security checks: infinite loading state for locked device
5 changes: 5 additions & 0 deletions .changeset/neat-colts-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": patch
---

change ui button device select restore flow
5 changes: 5 additions & 0 deletions .changeset/nine-cooks-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/coin-evm": minor
---

Add gasOption serialisation and deserialisation to evm transactions
7 changes: 7 additions & 0 deletions .changeset/nine-kangaroos-lick.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
---

feat: send LL version to the manifest-api
6 changes: 6 additions & 0 deletions .changeset/perfect-shrimps-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"live-mobile": minor
"@ledgerhq/native-ui": minor
---

[LIVE-8347] Add quick actions on the wallet
5 changes: 5 additions & 0 deletions .changeset/plenty-starfishes-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": patch
---

fix: wallet-api & platform verify account screen
5 changes: 5 additions & 0 deletions .changeset/pretty-panthers-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/cryptoassets": patch
---

Don't use `0` address for evm currencies to avoid gas estimation error in swap when interacting with smart contracts (swapping from token accounts)
5 changes: 5 additions & 0 deletions .changeset/quick-olives-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/live-common": patch
---

fix wallet-api complete exchange logic
7 changes: 7 additions & 0 deletions .changeset/quick-students-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"ledger-live-desktop": patch
"live-mobile": patch
"@ledgerhq/live-common": patch
---

Update multibuy manifest to v2 to ensure full backwards compatibility
6 changes: 6 additions & 0 deletions .changeset/real-wolves-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"ledger-live-desktop": patch
"live-mobile": patch
---

Conditionally render different text when user arrives at the buy funds modal from a get funds button rather than default of no funds. Applies to mobile and desktop.
5 changes: 5 additions & 0 deletions .changeset/short-dogs-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/cryptoassets": patch
---

Update zcash explorer to zcashblockexplorer.com
16 changes: 16 additions & 0 deletions .changeset/small-jars-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@ledgerhq/cryptoassets": major
"ledger-live-desktop": major
"live-mobile": major
"@ledgerhq/live-common": major
"@ledgerhq/types-cryptoassets": minor
"@ledgerhq/coin-framework": minor
"@ledgerhq/coin-evm": minor
"@ledgerhq/live-cli": minor
"@ledgerhq/live-env": minor
---

Migrate Ethereum family implementation to EVM family

Replace the legcay Ethereum familly implementation that was present in ledger-live-common by the coin-evm lib implementation.
This change was made in order to improve scalabillity and maintainability of the evm coins, as well as more easilly integrate new evm based chains in the future.
5 changes: 5 additions & 0 deletions .changeset/tender-laws-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

Update ethereum staking icon
8 changes: 8 additions & 0 deletions .changeset/young-toes-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@ledgerhq/types-live": patch
"ledger-live-desktop": patch
"live-mobile": patch
"@ledgerhq/live-common": patch
---

Typed useFeature hook
4 changes: 2 additions & 2 deletions .github/workflows/bot-staging-explorer-eth.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "[Bot] Ethereum on Staging"
name: "[Bot] Evm on Staging"
on:
workflow_dispatch:
schedule:
Expand Down Expand Up @@ -37,5 +37,5 @@ jobs:
SLACK_API_TOKEN: ${{secrets.SLACK_API_TOKEN}}
SLACK_ICON_EMOJI: ":bot-seed2:"
SLACK_CHANNEL: explorer-bot-stg
BOT_FILTER_FAMILIES: ethereum
BOT_FILTER_CURRENCIES: avalanche_c_chain,bsc,polygon,ethereum,ethereum_classic,ethereum_goerli
BOT_ENVIRONMENT: staging
4 changes: 2 additions & 2 deletions apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
"@ledgerhq/hw-transport-mocker": "workspace:^",
"@ledgerhq/hw-transport-node-hid": "workspace:^",
"@ledgerhq/hw-transport-node-speculos": "workspace:^",
"@ledgerhq/live-env": "workspace:^",
"@ledgerhq/live-common": "workspace:^",
"@ledgerhq/live-env": "workspace:^",
"@ledgerhq/live-network": "workspace:^",
"@ledgerhq/logs": "workspace:^",
"@ledgerhq/types-devices": "workspace:^",
"asciichart": "^1.5.25",
"bignumber.js": "^9.1.1",
"bignumber.js": "^9.1.2",
"bip39": "^3.0.4",
"body-parser": "^1.19.1",
"command-line-args": "^5.2.1",
Expand Down
3 changes: 1 addition & 2 deletions apps/cli/src/live-common-setup-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ setSupportedCurrencies([
"persistence",
"quicksilver",
"internet_computer",
"ethereum_as_evm_test_only",
"polygon_as_evm_test_only",
"klaytn",
"polygon_zk_evm",
"polygon_zk_evm_testnet",
Expand All @@ -89,6 +87,7 @@ setSupportedCurrencies([
"stacks",
"telos_evm",
"coreum",
"injective",
]);

for (const k in process.env) setEnvUnsafe(k as EnvName, process.env[k]);
Expand Down
13 changes: 4 additions & 9 deletions apps/ledger-live-desktop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
# ledger-live-desktop

## 2.68.1-nightly.1
## 2.68.1

### Patch Changes

- Updated dependencies []:
- @ledgerhq/coin-evm@0.6.2-nightly.0
- @ledgerhq/coin-framework@0.5.4-nightly.0
- @ledgerhq/domain-service@1.1.11-nightly.0
- @ledgerhq/evm-tools@1.0.7-nightly.0
- @ledgerhq/live-common@31.7.1-nightly.0
- [#4613](https://github.com/LedgerHQ/ledger-live/pull/4613) [`e499949b1e`](https://github.com/LedgerHQ/ledger-live/commit/e499949b1e890b1efc7233596ac1a439a7963b1d) Thanks [@live-github-bot](https://github.com/apps/live-github-bot)! - trigger lld prerelease build

## 2.68.1-nightly.0
## 2.68.1-next.0

### Patch Changes

- [#4588](https://github.com/LedgerHQ/ledger-live/pull/4588) [`c89f7d0e9e`](https://github.com/LedgerHQ/ledger-live/commit/c89f7d0e9e37f4389578c2833adde076a5811ff5) Thanks [@aboissiere-ledger](https://github.com/aboissiere-ledger)! - Fix jest config to generate coverage report and include untested files
- [#4613](https://github.com/LedgerHQ/ledger-live/pull/4613) [`e499949b1e`](https://github.com/LedgerHQ/ledger-live/commit/e499949b1e890b1efc7233596ac1a439a7963b1d) Thanks [@live-github-bot](https://github.com/apps/live-github-bot)! - trigger lld prerelease build

## 2.68.0

Expand Down
28 changes: 16 additions & 12 deletions apps/ledger-live-desktop/MOCK.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,35 @@
In order to be able to complete all OK/KO cases of all flows for testing and development, we expose a way to mock events that require interaction with a real device. When running with the env variable `MOCK` you'll have access to `mockDeviceEvent` which receives one or more events that will be emitted to the subscribed observers triggering the associated actions.

### Dev

Simply open the console, `mockDeviceEvent` is available as a global window variable. Pass the snippet below or any event of your liking to that method.

### QA

As it's done in the `onboarding.spec.js` file, we need to get access to that method via a call to `const mockeDeviceEvent = getMockDeviceEvent(app)` afterward the functionality of the method is the same as for dev with the exception of having to `await` the result to not break the tests.

## What is this useful for?
It allows us to interact with all parts of the application without the need for a real device or real accounts.

It allows us to interact with all parts of the application without the need for a real device or real accounts.

## Snippets per-flow

These are a series of snippets that allow you to reach the OK and KO ends of a device interaction for each of the flows. For the KOs, we can essentially use the name of any error and it will throw it, depending on the flow ones make more sense than others.

### Successfully opening an app

```js
mockDeviceEvent({ type: "opened" })
mockDeviceEvent({ type: "opened" });
```

### Device allow events

```js
mockDeviceEvent({ type: "device-permission-requested", wording: "Allow manager" })
mockDeviceEvent({ type: "device-permission-requested" });
```

```js
mockDeviceEvent({ type: "device-permission-granted" })
mockDeviceEvent({ type: "device-permission-granted" });
```

### Genuine Check / Manager termination
Expand All @@ -37,14 +41,14 @@ mockDeviceEvent({ type: "opened" })
Refer to the signature of `mockListAppsResult` to see the doors it opens. But a tldr is the first parameter are the apps available in the catalog, the second is the list of installed apps.

```js
mockDeviceEvent(
{ type: "listingApps", deviceInfo: deviceInfo155 },
{
type: "result",
result: mockListAppsResult("Bitcoin", "Bitcoin", deviceInfo155),
}
)
```
mockDeviceEvent(
{ type: "listingApps", deviceInfo: deviceInfo155 },
{
type: "result",
result: mockListAppsResult("Bitcoin", "Bitcoin", deviceInfo155),
},
);
```

#### Error samples

Expand Down
4 changes: 4 additions & 0 deletions apps/ledger-live-desktop/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.68.1

This release includes minor bug fixes and security improvements.

# 2.66.0

### 🚀 Features
Expand Down
3 changes: 2 additions & 1 deletion apps/ledger-live-desktop/cryptoassets.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- this file is generated by generate-cryptoassets-md.test.ts -->
# Supported crypto assets
## Crypto currencies (135)
## Crypto currencies (136)
| name | ticker | supported on Ledger Live? | ledger id |
|--|--|--|--|
| Algorand | ALGO | YES | algorand |
Expand Down Expand Up @@ -35,6 +35,7 @@
| Flare | FLR | YES | flare |
| Hedera | HBAR | YES | hedera |
| Horizen | ZEN | YES | zencash |
| Injective | INJ | YES | injective |
| Internet Computer | ICP | YES | internet_computer |
| Kava EVM | KAVA | YES | kava_evm |
| Klaytn | KLAY | YES | klaytn |
Expand Down
5 changes: 2 additions & 3 deletions apps/ledger-live-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "MIT",
"private": true,
"main": "./.webpack/main.bundle.js",
"version": "2.68.1-nightly.1",
"version": "2.68.1",
"scripts": {
"start:prod": "electron ./.webpack/main.bundle.js",
"start": "cross-env NODE_ENV=development node ./tools/main.js",
Expand Down Expand Up @@ -51,7 +51,6 @@
"@ledgerhq/devices": "workspace:^",
"@ledgerhq/domain-service": "workspace:^",
"@ledgerhq/errors": "workspace:^",
"@ledgerhq/evm-tools": "workspace:^",
"@ledgerhq/hw-transport": "workspace:^",
"@ledgerhq/hw-transport-http": "workspace:^",
"@ledgerhq/hw-transport-node-hid-singleton": "workspace:^",
Expand All @@ -74,7 +73,7 @@
"@types/react-key-handler": "^1.2.0",
"@types/semver": "^7.3.9",
"@xstate/react": "^1.6.3",
"bignumber.js": "^9.1.1",
"bignumber.js": "^9.1.2",
"chart.js": "2.9.4",
"color": "^4.0.0",
"dotenv": "^16.0.3",
Expand Down
2 changes: 2 additions & 0 deletions apps/ledger-live-desktop/src/config/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ export const urls = {
},
maxSpendable:
"https://support.ledger.com/hc/en-us/articles/360012960679?utm_source=ledger_live_desktop&utm_medium=self_referral&utm_content=max_spendable_alert",
stakingEthereum:
"https://www.ledger.com/staking-ethereum?utm_source=ledger_live_desktop&utm_medium=self_referral&utm_content=ethereum",
stakingTezos:
"https://www.ledger.com/staking-tezos?utm_source=ledger_live_desktop&utm_medium=self_referral&utm_content=tezos",
stakingTron:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ setSupportedCurrencies([
"velas_evm",
"syscoin",
"internet_computer",
"ethereum_as_evm_test_only",
"polygon_as_evm_test_only",
"klaytn",
"polygon_zk_evm",
"polygon_zk_evm_testnet",
Expand All @@ -83,4 +81,5 @@ setSupportedCurrencies([
"stacks",
"telos_evm",
"coreum",
"injective",
]);
4 changes: 2 additions & 2 deletions apps/ledger-live-desktop/src/renderer/Default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default function Default() {
height: "100%",
}}
>
<FeatureToggle feature="protectServicesDesktop">
<FeatureToggle featureId="protectServicesDesktop">
<Switch>
<Route path="/recover/:appId" component={RecoverPlayer} />
</Switch>
Expand Down Expand Up @@ -273,7 +273,7 @@ export default function Default() {
<Route path="/swap" component={Swap2} />
<Route path="/market/:currencyId" component={MarketCoinScreen} />
<Route path="/market" component={Market} />
<FeatureToggle feature="learn">
<FeatureToggle featureId="learn">
<Route path="/learn" component={Learn} />
</FeatureToggle>
</Switch>
Expand Down
Loading

0 comments on commit 3fa6ffd

Please sign in to comment.