wative-core 2.5.8 → 2.5.9
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 +18 -0
- package/dist/artifacts/evm/index.cjs +1 -1
- package/dist/artifacts/evm/index.d.cts +2 -2
- package/dist/artifacts/evm/index.d.ts +2 -2
- package/dist/artifacts/evm/index.js +1 -1
- package/dist/artifacts/svm/index.cjs +1 -1
- package/dist/artifacts/svm/index.d.cts +3 -3
- package/dist/artifacts/svm/index.d.ts +3 -3
- package/dist/artifacts/svm/index.js +1 -1
- package/dist/{container-provider-CZ8KFTjR.d.cts → container-provider-BECY3xFW.d.cts} +1 -1
- package/dist/{container-provider-MsxU8Fv_.d.ts → container-provider-Da9jn2NY.d.ts} +1 -1
- package/dist/{evm-CsE3-oyu.d.ts → evm-B3-ujBFb.d.ts} +1 -1
- package/dist/{evm-CUET-BZi.d.cts → evm-kJ59A16B.d.cts} +1 -1
- package/dist/{file-sink-jxjpuv0b.d.cts → file-sink-5QWuUJGt.d.cts} +2 -2
- package/dist/{file-sink-m_9jqKTY.d.ts → file-sink-DemUj44c.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/index.node.cjs +1 -1
- package/dist/index.node.d.cts +5 -5
- package/dist/index.node.d.ts +5 -5
- package/dist/index.node.js +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +3 -3
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.js +1 -1
- package/dist/{svm-Cc8p6lK7.d.ts → svm-DnKdq2PX.d.ts} +1 -1
- package/dist/{svm-DtTozGHY.d.cts → svm-uk1mRC3m.d.cts} +1 -1
- package/dist/{workspace-Bln1maQ9.d.cts → workspace-BoiTRV1J.d.cts} +4 -2
- package/dist/{workspace-Bln1maQ9.d.ts → workspace-BoiTRV1J.d.ts} +4 -2
- package/examples/04-network-management.test.cjs +3 -0
- package/examples/05-asset-management.test.cjs +2 -0
- package/examples/21-token-transfer.test.cjs +13 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
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.9] — 2026-10-14
|
|
6
|
+
|
|
7
|
+
Adds `isBuiltin` on networks and tokens, keeps built-ins in step with the library, adds an SPL token-transfer shortcut and frozen / non-transferable destination warnings, and removes two balance-refresh forms that were never implemented.
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- `network.isBuiltin` and `asset.isBuiltin` tell you whether a network or token ships with the library. A built-in cannot be removed and limits which fields you may edit — a network's connectivity and labels, a token's display settings.
|
|
11
|
+
- `buildTransaction({ tokenMint })` builds a Solana SPL token transfer — the same transfer `buildTransferPayload` produces — without hand-built instructions; `tokenProgram` picks classic SPL or Token-2022.
|
|
12
|
+
- `checkDestination` warns when an SPL recipient's token account is frozen or the token's mint is non-transferable, so you can tell before sending that the transfer would be rejected on-chain (codes `SVM_FROZEN_TOKEN_ACCOUNT`, `SVM_NON_TRANSFERABLE`).
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- Built-in networks and tokens stay in step with the library: ones added in a later release show up automatically in workspaces created earlier, and a built-in's details always match the library — your own changes to it (a network's RPC URL, a token's display settings) are kept.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- A built-in network that first appears in a workspace created before it existed now includes its built-in tokens; previously it showed no balances.
|
|
19
|
+
|
|
20
|
+
### Removed
|
|
21
|
+
- `address.refreshBalances(network, …)` and `address.refreshBalances(assetId)` are gone — they were never implemented and always failed. `address.refreshBalances()` reads the balances on the address's own network.
|
|
22
|
+
|
|
5
23
|
## [2.5.8] — 2026-10-14
|
|
6
24
|
|
|
7
25
|
Adds VM-agnostic wallet accessors and a built-in network's canonical RPC URL, and removes the unimplemented Sui placeholder.
|