@swapkit/core 4.6.1 → 4.6.2

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @swapkit/core
2
2
 
3
+ ## 4.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#338](https://github.com/swapkit/sdk/pull/338) [`b93b9cd`](https://github.com/swapkit/sdk/commit/b93b9cd04730e728cb2c9de0b7e1e19a0951e46b) Thanks [@towanTG](https://github.com/towanTG)! - Allow already-fetched Aleo records to be passed directly to `unshield({ records })` as an alternative to the transaction-scoped `unshield({ transactionId })` form. Callers that fetch records for display (e.g. a wallet UI showing shielded balances from known swap-delivery transactions via `getRecords`) can unshield those exact records without a second lookup. Spent records are filtered out; the split/fee-record/prove/broadcast flow and the `splitTransactionId` resume semantics are unchanged. (via @swapkit/toolboxes@4.27.0)
8
+
3
9
  ## 4.6.1
4
10
 
5
11
  ### Patch Changes
@@ -243,8 +243,13 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
243
243
  signAndBroadcastTransaction: (transaction: import("@swapkit/toolboxes/aleo/types").AleoUnsignedTransaction) => Promise<string>;
244
244
  signTransaction: (transaction: import("@swapkit/toolboxes/aleo/types").AleoUnsignedTransaction) => Promise<import("@swapkit/toolboxes/aleo/types").AleoTransaction>;
245
245
  transfer: (params: import("@swapkit/toolboxes/aleo/types").AleoTransferParams) => Promise<string>;
246
- unshield: ({ transactionId, feeRecordCredits, }: {
246
+ unshield: (params: {
247
247
  transactionId: string;
248
+ records?: never;
249
+ feeRecordCredits?: number;
250
+ } | {
251
+ records: import("@swapkit/toolboxes/aleo/types").AleoRecord[];
252
+ transactionId?: never;
248
253
  feeRecordCredits?: number;
249
254
  }) => Promise<{
250
255
  publicBalance: AssetValue;
package/package.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "author": "swapkit-dev",
3
3
  "dependencies": {
4
4
  "@swapkit/helpers": "4.19.1",
5
- "@swapkit/plugins": "4.7.1",
6
- "@swapkit/toolboxes": "4.26.1",
5
+ "@swapkit/plugins": "4.7.2",
6
+ "@swapkit/toolboxes": "4.27.0",
7
7
  "@swapkit/wallet-core": "4.3.19"
8
8
  },
9
9
  "description": "SwapKit - Core",
@@ -36,5 +36,5 @@
36
36
  "type-check:go": "tsgo"
37
37
  },
38
38
  "type": "module",
39
- "version": "4.6.1"
39
+ "version": "4.6.2"
40
40
  }