@swapkit/core 4.6.0 → 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 +13 -0
- package/dist/types/index.d.ts +9 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
|
|
9
|
+
## 4.6.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#336](https://github.com/swapkit/sdk/pull/336) [`82ddf32`](https://github.com/swapkit/sdk/commit/82ddf329eba718c23239bdea60dc070f4c8b4b34) Thanks [@towanTG](https://github.com/towanTG)! - Upgrade `@stellar/stellar-sdk` from 15.1.0 to 16.1.0 to fix Stellar in browser bundles. v15 mapped the `browser` export condition to a minified UMD bundle, so bundlers like Vite resolved a namespace without named exports — every lazy `const { Keypair } = await import("@stellar/stellar-sdk")` yielded `undefined` in the browser. The fallout was silent: XLM keystore wallets registered with an empty address, `getBalance` failed with `toolbox_stellar_account_not_found` without a Horizon call ever firing, and transaction signing (including the trustline approval flow) was broken in web apps, while Node/Bun (and therefore all tests) resolved the `default` condition and worked. v16 ships native ESM with no `browser` condition, restoring correct named-export resolution everywhere. No SwapKit API changes. (via @swapkit/toolboxes@4.26.1)
|
|
14
|
+
- Update generated token lists. (via @swapkit/toolboxes@4.26.1)
|
|
15
|
+
|
|
3
16
|
## 4.6.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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: (
|
|
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;
|
|
@@ -4930,9 +4935,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
4930
4935
|
hash?: () => Buffer;
|
|
4931
4936
|
toXDR: () => string;
|
|
4932
4937
|
}) => Promise<string>;
|
|
4933
|
-
createTransaction: ({ recipient, assetValue, memo, sender, sweep }: import("@swapkit/toolboxes/stellar/types").StellarCreateTransactionParams) => Promise<import("@stellar/stellar-sdk").Transaction
|
|
4938
|
+
createTransaction: ({ recipient, assetValue, memo, sender, sweep }: import("@swapkit/toolboxes/stellar/types").StellarCreateTransactionParams) => Promise<import("@stellar/stellar-sdk").Transaction>;
|
|
4934
4939
|
createTrustline: ({ assetValue, limit }: import("@swapkit/toolboxes/stellar/types").StellarTrustlineParams) => Promise<string>;
|
|
4935
|
-
createTrustlineTransaction: ({ assetValue, limit, sender }: import("@swapkit/toolboxes/stellar/types").StellarCreateTrustlineTransactionParams) => Promise<import("@stellar/stellar-sdk").Transaction
|
|
4940
|
+
createTrustlineTransaction: ({ assetValue, limit, sender }: import("@swapkit/toolboxes/stellar/types").StellarCreateTrustlineTransactionParams) => Promise<import("@stellar/stellar-sdk").Transaction>;
|
|
4936
4941
|
estimateTransactionFee: () => Promise<AssetValue>;
|
|
4937
4942
|
getAddress: () => Promise<string>;
|
|
4938
4943
|
getBalance: (checkAddress?: string) => Promise<AssetValue[]>;
|
|
@@ -4945,7 +4950,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
4945
4950
|
}) => Promise<string>;
|
|
4946
4951
|
signTransaction: (transaction: {
|
|
4947
4952
|
toXDR: () => string;
|
|
4948
|
-
}) => Promise<import("@stellar/stellar-sdk").Transaction
|
|
4953
|
+
}) => Promise<import("@stellar/stellar-sdk").Transaction | import("@stellar/stellar-sdk").FeeBumpTransaction>;
|
|
4949
4954
|
transfer: ({ recipient, assetValue, memo, sweep }: import("@swapkit/toolboxes/stellar/types").StellarTransferParams) => Promise<string>;
|
|
4950
4955
|
validateAddress: typeof import("@swapkit/toolboxes/stellar/toolbox").validateStellarAddress;
|
|
4951
4956
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "swapkit-dev",
|
|
3
3
|
"dependencies": {
|
|
4
|
-
"@swapkit/helpers": "4.19.
|
|
5
|
-
"@swapkit/plugins": "4.7.
|
|
6
|
-
"@swapkit/toolboxes": "4.
|
|
7
|
-
"@swapkit/wallet-core": "4.3.
|
|
4
|
+
"@swapkit/helpers": "4.19.1",
|
|
5
|
+
"@swapkit/plugins": "4.7.2",
|
|
6
|
+
"@swapkit/toolboxes": "4.27.0",
|
|
7
|
+
"@swapkit/wallet-core": "4.3.19"
|
|
8
8
|
},
|
|
9
9
|
"description": "SwapKit - Core",
|
|
10
10
|
"devDependencies": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"type-check:go": "tsgo"
|
|
37
37
|
},
|
|
38
38
|
"type": "module",
|
|
39
|
-
"version": "4.6.
|
|
39
|
+
"version": "4.6.2"
|
|
40
40
|
}
|