@swapkit/toolboxes 4.17.6 → 4.19.0
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 +32 -0
- package/dist/src/aptos/index.cjs +1 -1
- package/dist/src/aptos/index.js +1 -1
- package/dist/src/evm/index.cjs +1 -1
- package/dist/src/evm/index.js +1 -1
- package/dist/src/hypercore/index.cjs +1 -1
- package/dist/src/hypercore/index.js +1 -1
- package/dist/src/index.cjs +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/substrate/index.cjs +1 -1
- package/dist/src/substrate/index.js +1 -1
- package/dist/src/sui/index.cjs +1 -1
- package/dist/src/sui/index.js +1 -1
- package/dist/src/ton/index.cjs +1 -1
- package/dist/src/ton/index.js +1 -1
- package/dist/src/tron/index.cjs +1 -1
- package/dist/src/tron/index.js +1 -1
- package/dist/types/evm/toolbox/evm.d.ts +95 -5
- package/dist/types/evm/types.d.ts +3 -1
- package/dist/types/ton/toolbox.d.ts +4 -1
- package/dist/types/ton/types.d.ts +1 -0
- package/package.json +16 -16
|
@@ -2,7 +2,7 @@ import type { AssetValue, ChainSigner, DerivationPathArray, FeeOption, GenericCr
|
|
|
2
2
|
import { Chain } from "@swapkit/helpers";
|
|
3
3
|
import type { BigNumberish, BrowserProvider, JsonFragment, JsonRpcSigner, Provider, Signer, Transaction, TypedDataField } from "ethers";
|
|
4
4
|
import type { getProvider } from "./index";
|
|
5
|
-
import type { ADIToolbox, ARBToolbox, AURORAToolbox, AVAXToolbox, BASEToolbox, BERAToolbox, BSCToolbox, COREToolbox, CORNToolbox, CROToolbox, ETHToolbox, GNOToolbox, HYPEREVMToolbox, MATICToolbox, MEGAETHToolbox, MONADToolbox, OPToolbox, SONICToolbox, UNIToolbox, XLayerToolbox } from "./toolbox";
|
|
5
|
+
import type { ADIToolbox, ARBToolbox, AURORAToolbox, AVAXToolbox, BASEToolbox, BERAToolbox, BSCToolbox, COREToolbox, CORNToolbox, CROToolbox, ETHToolbox, GNOToolbox, HYPEREVMToolbox, LINEAToolbox, MATICToolbox, MEGAETHToolbox, MONADToolbox, OPToolbox, PLASMAToolbox, SONICToolbox, UNIToolbox, XLayerToolbox } from "./toolbox";
|
|
6
6
|
export declare enum EthNetwork {
|
|
7
7
|
Test = "goerli",
|
|
8
8
|
Main = "homestead"
|
|
@@ -119,9 +119,11 @@ export type EVMToolboxes = {
|
|
|
119
119
|
[Chain.Ethereum]: ReturnType<typeof ETHToolbox>;
|
|
120
120
|
[Chain.Gnosis]: ReturnType<typeof GNOToolbox>;
|
|
121
121
|
[Chain.Hyperevm]: ReturnType<typeof HYPEREVMToolbox>;
|
|
122
|
+
[Chain.Linea]: ReturnType<typeof LINEAToolbox>;
|
|
122
123
|
[Chain.MegaETH]: ReturnType<typeof MEGAETHToolbox>;
|
|
123
124
|
[Chain.Monad]: ReturnType<typeof MONADToolbox>;
|
|
124
125
|
[Chain.Optimism]: ReturnType<typeof OPToolbox>;
|
|
126
|
+
[Chain.Plasma]: ReturnType<typeof PLASMAToolbox>;
|
|
125
127
|
[Chain.Polygon]: ReturnType<typeof MATICToolbox>;
|
|
126
128
|
[Chain.Sonic]: ReturnType<typeof SONICToolbox>;
|
|
127
129
|
[Chain.Unichain]: ReturnType<typeof UNIToolbox>;
|
|
@@ -5,6 +5,7 @@ export declare function getTONToolbox(toolboxParams?: TONToolboxParams): {
|
|
|
5
5
|
broadcastTransaction: (transferCell: Cell) => Promise<string>;
|
|
6
6
|
createTransaction: ({ sender, ...params }: GenericTransferParams & {
|
|
7
7
|
sender?: string;
|
|
8
|
+
sweep?: boolean;
|
|
8
9
|
}) => Promise<TONTransactionMessage[]>;
|
|
9
10
|
estimateTransactionFee: ({ sender, ...params }: GenericTransferParams & {
|
|
10
11
|
sender?: string;
|
|
@@ -17,7 +18,9 @@ export declare function getTONToolbox(toolboxParams?: TONToolboxParams): {
|
|
|
17
18
|
}) => Promise<Address>;
|
|
18
19
|
sign: (messages: TONTransactionMessage[]) => Promise<Cell>;
|
|
19
20
|
signAndBroadcastTransaction: (messages: TONTransactionMessage[]) => Promise<string>;
|
|
20
|
-
transfer: ({ assetValue, recipient, memo }: GenericTransferParams
|
|
21
|
+
transfer: ({ assetValue, recipient, memo, sweep }: GenericTransferParams & {
|
|
22
|
+
sweep?: boolean;
|
|
23
|
+
}) => Promise<string>;
|
|
21
24
|
validateAddress: typeof validateTonAddress;
|
|
22
25
|
};
|
|
23
26
|
export declare function validateTonAddress(address: string): boolean;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"dependencies": { "@swapkit/helpers": "4.15.
|
|
2
|
+
"dependencies": { "@swapkit/helpers": "4.15.1", "@swapkit/utxo-signer": "2.2.2" },
|
|
3
3
|
"description": "SwapKit - Toolboxes",
|
|
4
4
|
"devDependencies": {
|
|
5
|
-
"@aptos-labs/ts-sdk": "
|
|
5
|
+
"@aptos-labs/ts-sdk": "7.0.1",
|
|
6
6
|
"@cosmjs/amino": "0.39.0",
|
|
7
7
|
"@cosmjs/crypto": "0.39.0",
|
|
8
8
|
"@cosmjs/proto-signing": "0.39.0",
|
|
9
9
|
"@cosmjs/stargate": "0.39.0",
|
|
10
|
-
"@mysten/sui": "
|
|
10
|
+
"@mysten/sui": "2.17.0",
|
|
11
11
|
"@near-js/accounts": "2.5.1",
|
|
12
12
|
"@near-js/crypto": "2.5.1",
|
|
13
13
|
"@near-js/providers": "2.5.1",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"@nomicfoundation/hardhat-network-helpers": "3.0.7",
|
|
21
21
|
"@nomicfoundation/hardhat-toolbox": "7.0.0",
|
|
22
22
|
"@orbs-network/ton-access": "2.3.3",
|
|
23
|
-
"@polkadot/api": "
|
|
24
|
-
"@polkadot/keyring": "
|
|
25
|
-
"@polkadot/types": "
|
|
26
|
-
"@polkadot/util": "
|
|
27
|
-
"@polkadot/util-crypto": "
|
|
23
|
+
"@polkadot/api": "16.5.6",
|
|
24
|
+
"@polkadot/keyring": "14.0.3",
|
|
25
|
+
"@polkadot/types": "16.5.6",
|
|
26
|
+
"@polkadot/util": "14.0.3",
|
|
27
|
+
"@polkadot/util-crypto": "14.0.3",
|
|
28
28
|
"@radixdlt/babylon-gateway-api-sdk": "1.10.1",
|
|
29
29
|
"@radixdlt/radix-dapp-toolkit": "2.3.0",
|
|
30
30
|
"@scure/base": "2.2.0",
|
|
@@ -141,12 +141,12 @@
|
|
|
141
141
|
"license": "SEE LICENSE IN LICENSE",
|
|
142
142
|
"name": "@swapkit/toolboxes",
|
|
143
143
|
"peerDependencies": {
|
|
144
|
-
"@aptos-labs/ts-sdk": "
|
|
144
|
+
"@aptos-labs/ts-sdk": "7.0.1",
|
|
145
145
|
"@cosmjs/amino": "0.39.0",
|
|
146
146
|
"@cosmjs/crypto": "0.39.0",
|
|
147
147
|
"@cosmjs/proto-signing": "0.39.0",
|
|
148
148
|
"@cosmjs/stargate": "0.39.0",
|
|
149
|
-
"@mysten/sui": "
|
|
149
|
+
"@mysten/sui": "2.17.0",
|
|
150
150
|
"@near-js/accounts": "2.5.1",
|
|
151
151
|
"@near-js/crypto": "2.5.1",
|
|
152
152
|
"@near-js/providers": "2.5.1",
|
|
@@ -156,11 +156,11 @@
|
|
|
156
156
|
"@noble/curves": "2.2.0",
|
|
157
157
|
"@noble/hashes": "2.2.0",
|
|
158
158
|
"@orbs-network/ton-access": "2.3.3",
|
|
159
|
-
"@polkadot/api": "
|
|
160
|
-
"@polkadot/keyring": "
|
|
161
|
-
"@polkadot/rpc-provider": "
|
|
162
|
-
"@polkadot/util": "
|
|
163
|
-
"@polkadot/util-crypto": "
|
|
159
|
+
"@polkadot/api": "16.5.6",
|
|
160
|
+
"@polkadot/keyring": "14.0.3",
|
|
161
|
+
"@polkadot/rpc-provider": "16.5.6",
|
|
162
|
+
"@polkadot/util": "14.0.3",
|
|
163
|
+
"@polkadot/util-crypto": "14.0.3",
|
|
164
164
|
"@radixdlt/babylon-gateway-api-sdk": "1.10.1",
|
|
165
165
|
"@radixdlt/radix-dapp-toolkit": "2.3.0",
|
|
166
166
|
"@scure/base": "2.2.0",
|
|
@@ -196,5 +196,5 @@
|
|
|
196
196
|
"type-check:go": "tsgo"
|
|
197
197
|
},
|
|
198
198
|
"type": "module",
|
|
199
|
-
"version": "4.
|
|
199
|
+
"version": "4.19.0"
|
|
200
200
|
}
|