@lightprotocol/compressed-token 0.20.8 → 0.20.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.
@@ -2601,10 +2601,9 @@ declare function selectMinCompressedTokenAccountsForTransfer(accounts: ParsedTok
2601
2601
  maxPossibleAmount: BN
2602
2602
  ];
2603
2603
  /**
2604
- * Selects the minimal number of compressed token accounts for a transfer orPartially.
2605
- *
2606
- * 1. Sorts accounts by amount (descending)
2607
- * 2. Accumulates amount until it meets or exceeds transfer amount
2604
+ * Executes {@link selectMinCompressedTokenAccountsForTransfer} strategy,
2605
+ * returns partial amounts if insufficient accounts are found instead of
2606
+ * throwing an error.
2608
2607
  */
2609
2608
  declare function selectMinCompressedTokenAccountsForTransferOrPartial(accounts: ParsedTokenAccount[], transferAmount: BN, maxInputs?: number): [
2610
2609
  selectedAccounts: ParsedTokenAccount[],
@@ -2658,7 +2657,9 @@ declare function selectSmartCompressedTokenAccountsForTransfer(accounts: ParsedT
2658
2657
  maxPossibleAmount: BN
2659
2658
  ];
2660
2659
  /**
2661
- * orPartially runs {@link selectSmartCompressedTokenAccountsForTransfer} strategy.
2660
+ * Executes {@link selectMinCompressedTokenAccountsForTransfer} strategy,
2661
+ * returns partial amounts if insufficient accounts are found instead of
2662
+ * throwing an error.
2662
2663
  */
2663
2664
  declare function selectSmartCompressedTokenAccountsForTransferOrPartial(accounts: ParsedTokenAccount[], transferAmount: BN, maxInputs?: number): [
2664
2665
  selectedAccounts: ParsedTokenAccount[],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/compressed-token",
3
- "version": "0.20.8",
3
+ "version": "0.20.9",
4
4
  "description": "JS client to interact with the compressed-token program",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/node/index.cjs",
@@ -31,7 +31,7 @@
31
31
  "peerDependencies": {
32
32
  "@solana/spl-token": ">=0.3.9",
33
33
  "@solana/web3.js": ">=1.73.5",
34
- "@lightprotocol/stateless.js": "0.20.8"
34
+ "@lightprotocol/stateless.js": "0.20.9"
35
35
  },
36
36
  "dependencies": {
37
37
  "@coral-xyz/borsh": "^0.29.0",