@swapkit/core 4.4.39 → 4.4.40
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 +6 -0
- package/dist/types/index.d.ts +4 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @swapkit/core
|
|
2
2
|
|
|
3
|
+
## 4.4.40
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#290](https://github.com/swapkit/sdk/pull/290) [`4e7d2d7`](https://github.com/swapkit/sdk/commit/4e7d2d72b4c1254d16a8a6084843bd49d0795b3b) Thanks [@olegpetroveth](https://github.com/olegpetroveth)! - Add TON native balance sweep. `createTransaction`/`transfer` accept a `sweep` flag that sets the `CARRY_ALL_REMAINING_BALANCE | IGNORE_ERRORS` send mode so the wallet sends its full balance minus fees. `TONTransactionMessage` gains an optional `sendMode` override (read per-transfer from the first message by `sign`/`estimateTransactionFee`). Sweep is native-only; jetton sweeps throw. (via @swapkit/toolboxes@4.19.0)
|
|
8
|
+
|
|
3
9
|
## 4.4.39
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2091,6 +2091,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2091
2091
|
broadcastTransaction: (transferCell: import("@ton/ton/dist").Cell) => Promise<string>;
|
|
2092
2092
|
createTransaction: ({ sender, ...params }: GenericTransferParams & {
|
|
2093
2093
|
sender?: string;
|
|
2094
|
+
sweep?: boolean;
|
|
2094
2095
|
}) => Promise<import("@swapkit/toolboxes/ton/types").TONTransactionMessage[]>;
|
|
2095
2096
|
estimateTransactionFee: ({ sender, ...params }: GenericTransferParams & {
|
|
2096
2097
|
sender?: string;
|
|
@@ -2103,7 +2104,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2103
2104
|
}) => Promise<import("@ton/ton/dist").Address>;
|
|
2104
2105
|
sign: (messages: import("@swapkit/toolboxes/ton/types").TONTransactionMessage[]) => Promise<import("@ton/ton/dist").Cell>;
|
|
2105
2106
|
signAndBroadcastTransaction: (messages: import("@swapkit/toolboxes/ton/types").TONTransactionMessage[]) => Promise<string>;
|
|
2106
|
-
transfer: ({ assetValue, recipient, memo }: GenericTransferParams
|
|
2107
|
+
transfer: ({ assetValue, recipient, memo, sweep }: GenericTransferParams & {
|
|
2108
|
+
sweep?: boolean;
|
|
2109
|
+
}) => Promise<string>;
|
|
2107
2110
|
validateAddress: typeof import("@swapkit/toolboxes/ton/toolbox").validateTonAddress;
|
|
2108
2111
|
};
|
|
2109
2112
|
TRON: ChainWallet<Chain.Tron> & {
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"author": "swapkit-dev",
|
|
3
3
|
"dependencies": {
|
|
4
4
|
"@swapkit/helpers": "4.15.1",
|
|
5
|
-
"@swapkit/plugins": "4.6.
|
|
6
|
-
"@swapkit/toolboxes": "4.
|
|
5
|
+
"@swapkit/plugins": "4.6.54",
|
|
6
|
+
"@swapkit/toolboxes": "4.19.0",
|
|
7
7
|
"@swapkit/wallet-core": "4.3.8"
|
|
8
8
|
},
|
|
9
9
|
"description": "SwapKit - Core",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"type-check:go": "tsgo"
|
|
27
27
|
},
|
|
28
28
|
"type": "module",
|
|
29
|
-
"version": "4.4.
|
|
29
|
+
"version": "4.4.40"
|
|
30
30
|
}
|