@swapkit/core 4.5.0 → 4.5.1

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,13 @@
1
1
  # @swapkit/core
2
2
 
3
+ ## 4.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#331](https://github.com/swapkit/sdk/pull/331) [`f740a74`](https://github.com/swapkit/sdk/commit/f740a742a0cf879b4e56bb73647d21642bc22e9d) Thanks [@towanTG](https://github.com/towanTG)! - Add client-side support for the Stellar trustline approval flow: swap response types model the `approvalTx` union (EVM | Stellar changeTrust XDR) and `nextActions`, `approveAssetValue`/`isAssetValueApproved` switch between EVM allowances and Stellar trustlines (checking via the new Stellar toolbox `hasTrustline({ address, assetValue })`, approving by signing the API-provided changeTrust XDR with the destination wallet). The swap method itself is unchanged — integrators approve first, re-fetch the route, then swap. (via @swapkit/helpers@4.19.0)
8
+ - Update generated token lists. (via @swapkit/helpers@4.19.0)
9
+ - [#329](https://github.com/swapkit/sdk/pull/329) [`55d9edc`](https://github.com/swapkit/sdk/commit/55d9edcc603e0139588c905e41a59eaaa3275cda) Thanks [@towanTG](https://github.com/towanTG)! - Update NEAR provider token list: add Stellar assets (XLM.XLM, XLM.USDC) and latest NEAR-intents listings (SWEAT, GMX, KAITO, AAVE, LINK, UNI, and more); remove BTC.BTC(OMNI) (via @swapkit/helpers@4.19.0)
10
+
3
11
  ## 4.5.0
4
12
 
5
13
  ### Minor Changes
@@ -4930,6 +4930,10 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
4930
4930
  estimateTransactionFee: () => Promise<AssetValue>;
4931
4931
  getAddress: () => Promise<string>;
4932
4932
  getBalance: (checkAddress?: string) => Promise<AssetValue[]>;
4933
+ hasTrustline: ({ address, assetValue }: {
4934
+ address: string;
4935
+ assetValue: AssetValue;
4936
+ }) => Promise<boolean>;
4933
4937
  signAndBroadcastTransaction: (transaction: {
4934
4938
  toXDR: () => string;
4935
4939
  }) => Promise<string>;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "author": "swapkit-dev",
3
3
  "dependencies": {
4
- "@swapkit/helpers": "4.18.0",
5
- "@swapkit/plugins": "4.6.64",
6
- "@swapkit/toolboxes": "4.25.0",
7
- "@swapkit/wallet-core": "4.3.17"
4
+ "@swapkit/helpers": "4.19.0",
5
+ "@swapkit/plugins": "4.7.0",
6
+ "@swapkit/toolboxes": "4.26.0",
7
+ "@swapkit/wallet-core": "4.3.18"
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.5.0"
39
+ "version": "4.5.1"
40
40
  }