wative-core 2.5.3 → 2.5.5

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/artifacts/evm/index.cjs +1 -1
  3. package/dist/artifacts/evm/index.d.cts +2 -2
  4. package/dist/artifacts/evm/index.d.ts +2 -2
  5. package/dist/artifacts/evm/index.js +1 -1
  6. package/dist/artifacts/svm/index.cjs +1 -1
  7. package/dist/artifacts/svm/index.d.cts +3 -3
  8. package/dist/artifacts/svm/index.d.ts +3 -3
  9. package/dist/artifacts/svm/index.js +1 -1
  10. package/dist/{container-provider-DObyv4EW.d.cts → container-provider-BGXrTnGa.d.cts} +1 -1
  11. package/dist/{container-provider-D5bLhd__.d.ts → container-provider-DeEiua4J.d.ts} +1 -1
  12. package/dist/{evm-Yd0NCJAL.d.ts → evm-D3zji6gT.d.ts} +1 -1
  13. package/dist/{evm-CJqPjHHu.d.cts → evm-TSU9rVlb.d.cts} +1 -1
  14. package/dist/{file-sink-D8l-OwW9.d.cts → file-sink-BsfIT5JJ.d.cts} +2 -2
  15. package/dist/{file-sink-GrtMBpmU.d.ts → file-sink-DAitYVxc.d.ts} +2 -2
  16. package/dist/index.cjs +1 -1
  17. package/dist/index.d.cts +6 -6
  18. package/dist/index.d.ts +6 -6
  19. package/dist/index.js +1 -1
  20. package/dist/index.node.cjs +1 -1
  21. package/dist/index.node.d.cts +5 -5
  22. package/dist/index.node.d.ts +5 -5
  23. package/dist/index.node.js +1 -1
  24. package/dist/node/index.cjs +1 -1
  25. package/dist/node/index.d.cts +3 -3
  26. package/dist/node/index.d.ts +3 -3
  27. package/dist/node/index.js +1 -1
  28. package/dist/{svm-DgxTJqrR.d.ts → svm-B66vNECq.d.ts} +1 -1
  29. package/dist/{svm-qBfrN98x.d.cts → svm-DuJBblmu.d.cts} +1 -1
  30. package/dist/{workspace-CZO-ANYP.d.cts → workspace-_8Ed5yFS.d.cts} +32 -8
  31. package/dist/{workspace-CZO-ANYP.d.ts → workspace-_8Ed5yFS.d.ts} +32 -8
  32. package/examples/03-pk-account.test.cjs +1 -1
  33. package/examples/04-network-management.test.cjs +1 -1
  34. package/examples/05-asset-management.test.cjs +2 -2
  35. package/examples/06-address-signing.test.cjs +2 -3
  36. package/examples/18-envelope-v3.test.cjs +3 -3
  37. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  All notable changes to `wative-core` are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
4
 
5
+ ## [2.5.5] — 2026-10-03
6
+
7
+ Adds reorder methods for networks and per-network assets, and a dedicated error for duplicate adds.
8
+
9
+ ### Added
10
+ - Reorder with `workspace.networks.move(slug, toIndex)` and `workspace.moveAsset(network, id, toIndex)`, which move a network, or a token within its network, to a 0-based final position; the new order is what the networks list and `assets(network)` return, and it persists.
11
+
12
+ ### Changed
13
+ - BREAKING: a duplicate add now rejects with the new `DUPLICATE_IDENTITY` code instead of `PARAMETER_ERROR` (29 codes total) — a duplicate account or network slug, an asset id, an asset `(network, contractAddress)` pair or native slot, a re-imported key identity, or a duplicate wallet id. Callers branching on `err.code === "PARAMETER_ERROR"` for these must switch. Malformed input and a network `(chainId, rpcUrl)` collision stay `PARAMETER_ERROR`.
14
+
15
+ ## [2.5.4] — 2026-09-29
16
+
17
+ Reworks disabling wallet slots, adds a filtered wallet list, and improves mnemonic generation.
18
+
19
+ ### Added
20
+ - Disable and re-enable derivation slots with `disableSlots`/`disableAddressNos`, `enableSlots`/`enableAddressNos` and `getDisabledSlots`; `getWalletList(force?)` returns enabled wallets by default (natural ids kept) or all of them with a `wallet.disabled` flag. `newMnemonic(wordCount?)` now generates any standard BIP-39 length, still defaulting to 12.
21
+
22
+ ### Changed
23
+ - BREAKING: `setDisabledSlots`, `setDisabledAddressNos` and the `disabledSlots` property are removed — use the add/remove/read methods above. Disabling is now a reversible marker that hides a wallet from `getWalletList()` and blocks its signing, sending and key export with the new `WALLET_DISABLED` error, without changing which indices `deriveWallets` produces.
24
+
25
+ ### Fixed
26
+ - Invalid-mnemonic errors now name the real defect — bad checksum, unknown word, or wrong length — instead of sometimes reporting a checksum failure as an unknown word.
27
+
5
28
  ## [2.5.3] — 2026-09-19
6
29
 
7
30
  Adds foreign-transaction signing, sign-in, a keyless chain client, and Solana versioned transactions.