@ledgerhq/coin-hedera 3.1.1-nightly.20261104020313 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -32
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
# @ledgerhq/coin-hedera
|
|
2
2
|
|
|
3
|
-
## 3.
|
|
3
|
+
## 3.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#24085](https://github.com/LedgerHQ/ledger-live/pull/24085) [`2b8aa58`](https://github.com/LedgerHQ/ledger-live/commit/2b8aa5862ed01665cefc11b62ce80d314c5771ba) Thanks [@jnicoulaud-ledger](https://github.com/jnicoulaud-ledger)! - fix(coin-hedera): split a native operation's HBAR change like getBlock does
|
|
8
|
+
|
|
9
|
+
`listOperations` now derives each native value from the account's transfer plus the fees it paid, as `getBlock` does, so an indexer summing either one gets the account's on-chain HBAR change. A contract call that paid HBAR back to its fee payer stays outgoing, with a negative value. An IN the account paid for counts the fee, which the Live Hedera adapter takes back out. Someone else's contract call that only credited the account becomes an IN. Live's A4 reader gives a negative value to a native credit of an outgoing-like operation, so such a contract call shows as a credit there too.
|
|
10
|
+
|
|
11
|
+
- [#24088](https://github.com/LedgerHQ/ledger-live/pull/24088) [`0c91d5f`](https://github.com/LedgerHQ/ledger-live/commit/0c91d5f0dadaad2bc4b94766e47a6479e0175916) Thanks [@jnicoulaud-ledger](https://github.com/jnicoulaud-ledger)! - fix(coin-hedera): match an ERC20 transfer to its contract call by hash
|
|
12
|
+
|
|
13
|
+
`enrichERC20Transfers` found the mirror node transaction of an Hgraph ERC20 transfer by taking the first contract call of the payer within ±10 µs of the transfer. When the payer made two contract calls less than 10 µs apart, both transfers went to the later call: `getBlock` returned that transaction twice and the earlier one without its ERC20 transfer. The contract call is now the one whose hash starts with the transfer's EVM transaction hash.
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
6
16
|
|
|
17
|
+
- Updated dependencies [[`9907890`](https://github.com/LedgerHQ/ledger-live/commit/9907890790bf8b804d7cc454a067508df0969137), [`8854aff`](https://github.com/LedgerHQ/ledger-live/commit/8854aff9cace72ad17c6d9fd7ee98a4dcd65ecb1), [`77a85a3`](https://github.com/LedgerHQ/ledger-live/commit/77a85a30abe7b42e5f5b4e0478bec14fa39033cf), [`c50f3fa`](https://github.com/LedgerHQ/ledger-live/commit/c50f3fac1c822d61332dbb512b21cdda6bb57210)]:
|
|
18
|
+
- @ledgerhq/types-live@6.130.0
|
|
19
|
+
- @ledgerhq/ledger-wallet-framework@3.10.0
|
|
20
|
+
|
|
21
|
+
## 3.2.0-next.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
7
25
|
- [#24085](https://github.com/LedgerHQ/ledger-live/pull/24085) [`2b8aa58`](https://github.com/LedgerHQ/ledger-live/commit/2b8aa5862ed01665cefc11b62ce80d314c5771ba) Thanks [@jnicoulaud-ledger](https://github.com/jnicoulaud-ledger)! - fix(coin-hedera): split a native operation's HBAR change like getBlock does
|
|
8
26
|
|
|
9
27
|
`listOperations` now derives each native value from the account's transfer plus the fees it paid, as `getBlock` does, so an indexer summing either one gets the account's on-chain HBAR change. A contract call that paid HBAR back to its fee payer stays outgoing, with a negative value. An IN the account paid for counts the fee, which the Live Hedera adapter takes back out. Someone else's contract call that only credited the account becomes an IN. Live's A4 reader gives a negative value to a native credit of an outgoing-like operation, so such a contract call shows as a credit there too.
|
|
@@ -12,9 +30,11 @@
|
|
|
12
30
|
|
|
13
31
|
`enrichERC20Transfers` found the mirror node transaction of an Hgraph ERC20 transfer by taking the first contract call of the payer within ±10 µs of the transfer. When the payer made two contract calls less than 10 µs apart, both transfers went to the later call: `getBlock` returned that transaction twice and the earlier one without its ERC20 transfer. The contract call is now the one whose hash starts with the transfer's EVM transaction hash.
|
|
14
32
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Updated dependencies [[`9907890`](https://github.com/LedgerHQ/ledger-live/commit/9907890790bf8b804d7cc454a067508df0969137), [`8854aff`](https://github.com/LedgerHQ/ledger-live/commit/8854aff9cace72ad17c6d9fd7ee98a4dcd65ecb1), [`77a85a3`](https://github.com/LedgerHQ/ledger-live/commit/77a85a30abe7b42e5f5b4e0478bec14fa39033cf), [`c50f3fa`](https://github.com/LedgerHQ/ledger-live/commit/c50f3fac1c822d61332dbb512b21cdda6bb57210)]:
|
|
36
|
+
- @ledgerhq/types-live@6.130.0-next.0
|
|
37
|
+
- @ledgerhq/ledger-wallet-framework@3.10.0-next.0
|
|
18
38
|
|
|
19
39
|
## 3.1.0
|
|
20
40
|
|
|
@@ -420,32 +440,4 @@
|
|
|
420
440
|
- @ledgerhq/ledger-wallet-framework@3.0.0
|
|
421
441
|
- @ledgerhq/live-countervalues@0.24.3
|
|
422
442
|
|
|
423
|
-
## 2.0.0-next.1
|
|
424
|
-
|
|
425
|
-
### Patch Changes
|
|
426
|
-
|
|
427
|
-
- Updated dependencies [[`da0a5ce`](https://github.com/LedgerHQ/ledger-live/commit/da0a5ceb8f889f1bace45ed2d3d4c640cdf24ca8)]:
|
|
428
|
-
- @ledgerhq/types-live@6.120.0-next.1
|
|
429
|
-
- @ledgerhq/ledger-wallet-framework@3.0.0-next.1
|
|
430
|
-
- @ledgerhq/live-countervalues@0.24.3-next.1
|
|
431
|
-
|
|
432
|
-
## 2.0.0-next.0
|
|
433
|
-
|
|
434
|
-
### Major Changes
|
|
435
|
-
|
|
436
|
-
- [#20752](https://github.com/LedgerHQ/ledger-live/pull/20752) [`b2896a9`](https://github.com/LedgerHQ/ledger-live/commit/b2896a9b10cf6daaa8f532eaa12f016df606eb8b) Thanks [@live-github-bot](https://github.com/apps/live-github-bot)! - Update combine to accept string[] per ADR-047
|
|
437
|
-
|
|
438
|
-
### Minor Changes
|
|
439
|
-
|
|
440
|
-
- [#20571](https://github.com/LedgerHQ/ledger-live/pull/20571) [`7c8d5df`](https://github.com/LedgerHQ/ledger-live/commit/7c8d5dfa862a2e9c3a35251b5d06a3cd4f905d2a) Thanks [@live-github-bot](https://github.com/apps/live-github-bot)! - Thread the coin-module `Context` (ADR-019) explicitly through the coin-evm, coin-vechain and coin-near api and logic layers instead of resolving configuration from the module-level `getCoinConfig` singleton. Exported logic functions now take the context as their first argument, resolve `config` from it (`await context.config(currencyId)`), and pass an explicit, required `config` down to the network layer — no `config?` optionals and no singleton reads on the data path. `getCoinConfig`/`setCoinConfig` remain only as the compatibility surface for the classic account bridge. Ledger Live consumers (live-common, desktop, mobile and coin-celo) are updated to resolve and pass config/context explicitly. Also fixes a coin-polkadot type-inference issue where `getTransactionMaterialWithMetadata`'s cache-key extractor narrowed the cached signature and dropped the `config` argument.
|
|
441
|
-
|
|
442
|
-
- [#20786](https://github.com/LedgerHQ/ledger-live/pull/20786) [`75d0c9b`](https://github.com/LedgerHQ/ledger-live/commit/75d0c9b97aced42be1f465319ee17ccaafcd649d) Thanks [@live-github-bot](https://github.com/apps/live-github-bot)! - Add unsupported `register` to CoinModuleApi implementations (ADR-046)
|
|
443
|
-
|
|
444
|
-
### Patch Changes
|
|
445
|
-
|
|
446
|
-
- Updated dependencies [[`eecf99a`](https://github.com/LedgerHQ/ledger-live/commit/eecf99af5c17ab63724843c31d5f3facc6352dad), [`030fc67`](https://github.com/LedgerHQ/ledger-live/commit/030fc677db03e8a411d3d33d2fa88e1ab04df80b), [`5b39a67`](https://github.com/LedgerHQ/ledger-live/commit/5b39a67dd93d4c541a77b0b146881073ca00ed15), [`0807eca`](https://github.com/LedgerHQ/ledger-live/commit/0807ecacfd06057811a3d6f8845b9f4bfc6f693c), [`b6da6b1`](https://github.com/LedgerHQ/ledger-live/commit/b6da6b1b1c98d022f30985c6103c239bffd0c7df), [`79882e2`](https://github.com/LedgerHQ/ledger-live/commit/79882e26a14f246f1cc969937e011b16e701b8f2), [`a20805c`](https://github.com/LedgerHQ/ledger-live/commit/a20805cebd95f2f620d394c4d7598ec93506c83e), [`030b427`](https://github.com/LedgerHQ/ledger-live/commit/030b42707768af3f9c98a15fc6751f1d64b36fe6)]:
|
|
447
|
-
- @ledgerhq/ledger-wallet-framework@3.0.0-next.0
|
|
448
|
-
- @ledgerhq/types-live@6.120.0-next.0
|
|
449
|
-
- @ledgerhq/live-countervalues@0.24.3-next.0
|
|
450
|
-
|
|
451
443
|
<!-- changelog-pruned: older entries were removed to keep this file small. Full history is in `git log -p CHANGELOG.md` and in the GitHub release for each version. -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-hedera",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Ledger Hedera Coin integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
"@hiero-ledger/sdk": "2.90.1",
|
|
92
92
|
"@ledgerhq/coin-module-framework": "11.0.1",
|
|
93
93
|
"@ledgerhq/devices": "8.18.1",
|
|
94
|
-
"@ledgerhq/ledger-wallet-framework": "^3.10.0
|
|
94
|
+
"@ledgerhq/ledger-wallet-framework": "^3.10.0",
|
|
95
95
|
"@ledgerhq/live-env": "4.1.0",
|
|
96
96
|
"@ledgerhq/live-network": "3.2.0",
|
|
97
97
|
"@ledgerhq/logs": "6.19.0",
|
|
98
|
-
"@ledgerhq/types-live": "^6.130.0
|
|
98
|
+
"@ledgerhq/types-live": "^6.130.0",
|
|
99
99
|
"axios": "1.20.0",
|
|
100
100
|
"bignumber.js": "^9.1.2",
|
|
101
101
|
"invariant": "^2.2.2",
|
|
@@ -104,21 +104,21 @@
|
|
|
104
104
|
"viem": "^2.27.0"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
-
"@domain/entity-currency-crypto": "^0.18.0
|
|
108
|
-
"@features/platform-currencies": "^0.12.0
|
|
107
|
+
"@domain/entity-currency-crypto": "^0.18.0",
|
|
108
|
+
"@features/platform-currencies": "^0.12.0",
|
|
109
109
|
"@ledgerhq/disable-network-setup": "^0.3.0",
|
|
110
110
|
"@ledgerhq/test-quarantine": "0.1.0",
|
|
111
|
-
"@ledgerhq/wallet-framework-test-setup": "^0.1.16
|
|
111
|
+
"@ledgerhq/wallet-framework-test-setup": "^0.1.16",
|
|
112
112
|
"@support/jest": "0.2.0",
|
|
113
113
|
"@swc/core": "1.15.11",
|
|
114
114
|
"@swc/jest": "0.2.39",
|
|
115
|
-
"@types/invariant": "2.2.
|
|
115
|
+
"@types/invariant": "^2.2.2",
|
|
116
116
|
"@types/jest": "30.0.0",
|
|
117
117
|
"@types/lodash": "^4.17.21",
|
|
118
118
|
"@types/node": "24.12.0",
|
|
119
119
|
"jest": "30.5.0",
|
|
120
|
-
"oxfmt": "0.
|
|
121
|
-
"oxlint": "1.
|
|
120
|
+
"oxfmt": "0.67.0",
|
|
121
|
+
"oxlint": "1.82.0",
|
|
122
122
|
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
|
123
123
|
},
|
|
124
124
|
"files": [
|