Skip to content

Commit ab692d9

Browse files
changelog.md
1 parent 2386953 commit ab692d9

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

js/compressed-token/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## [0.23.0-beta.9]
2+
3+
### Fixed
4+
5+
- `maxTopUp` default changed from `0` (no top-ups allowed) to `MAX_TOP_UP` (65535, no cap) across all instruction builders (`wrap`, `unwrap`, `mintTo`, `createMint`, `decompressMint`, `updateMetadata`, `updateMintAuthority`). Previously rent top-ups were silently blocked, causing transaction failures on underfunded compressible accounts.
6+
- `getSplOrToken2022AccountInterface` now fetches hot and cold accounts in parallel; individual fetch failures are handled gracefully instead of throwing immediately.
7+
- `delegatedAmount` correctly parsed from CompressedOnly TLV extension instead of defaulting to 0.
8+
- `parseCTokenHot` uses `unpackAccountSPL` for correct hot c-token account parsing.
9+
- Frozen `ctoken-hot` sources now correctly excluded from load paths (was only filtering SPL/T22 frozen sources).
10+
- SPL interface fetch errors in load paths are now rethrown when there is an SPL or T22 balance; previously all errors were silently swallowed.
11+
12+
### Added
13+
14+
- `MAX_TOP_UP` constant (65535) — exported from constants.
15+
- `maxTopUp` optional parameter on `createWrapInstruction`, `createUnwrapInstruction`, `createMintToInstruction`, `createMintInstruction`, `decompressMintInstruction`, `createUpdateMetadataFieldInstruction`, `createUpdateMetadataAuthorityInstruction`, `createRemoveMetadataKeyInstruction`, `createUpdateMintAuthorityInstruction`, `createUpdateFreezeAuthorityInstruction` for explicit rent top-up capping.
16+
- `maxTopUp` optional parameter on `mintToCompressed`, `unwrap`, `decompressMint` actions. **Note:** `mintToCompressed` inserts `maxTopUp` before the existing `confirmOptions` positional parameter — callers who were passing `confirmOptions` positionally must update their call sites (TypeScript will report a type error).
17+
- `createUnwrapInstructions` — instruction builder for unwrapping, returns `TransactionInstruction[][]` with amount-aware input selection.
18+
- `selectInputsForAmount` — greedy amount-aware compressed account selection for load/unwrap.
19+
- `assertV2Only` guards on `loadAta` and decompress paths — V1 inputs are rejected early with a clear error.
20+
121
## [0.23.0-beta.7] - Transfer Interface Hardening
222

323
### Breaking Changes

0 commit comments

Comments
 (0)