@swapkit/toolboxes 4.19.0 → 4.20.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 +25 -0
- package/dist/chunk-3pne8gaa.js +1 -0
- package/dist/chunk-44m22jy1.js +1 -0
- package/dist/chunk-54gntgt1.js +2 -0
- package/dist/chunk-ntbvmmch.js +2 -0
- package/dist/chunk-x9db9hmg.js +1 -0
- package/dist/chunk-xs0j1eze.js +2 -0
- package/dist/src/aptos/index.js +1 -1
- package/dist/src/cardano/index.cjs +1 -1
- package/dist/src/cardano/index.js +1 -1
- package/dist/src/cosmos/index.cjs +1 -1
- package/dist/src/cosmos/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/near/index.cjs +1 -1
- package/dist/src/near/index.js +1 -1
- package/dist/src/radix/index.cjs +1 -1
- package/dist/src/radix/index.js +1 -1
- package/dist/src/ripple/index.cjs +1 -1
- package/dist/src/ripple/index.js +1 -1
- package/dist/src/solana/index.js +1 -1
- package/dist/src/starknet/index.js +1 -1
- package/dist/src/stellar/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.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/src/utxo/index.js +1 -1
- package/dist/types/cardano/toolbox.d.ts +1 -1
- package/dist/types/cosmos/toolbox/cosmos.d.ts +2 -3
- package/dist/types/evm/helpers.d.ts +11 -1
- package/dist/types/evm/toolbox/baseEVMToolbox.d.ts +90 -5
- package/dist/types/evm/toolbox/evm.d.ts +1584 -88
- package/dist/types/evm/toolbox/op.d.ts +72 -4
- package/dist/types/evm/types.d.ts +7 -7
- package/dist/types/near/toolbox.d.ts +1 -2
- package/dist/types/radix/index.d.ts +2 -2
- package/dist/types/ripple/index.d.ts +4 -8
- package/dist/types/substrate/substrate.d.ts +1 -1
- package/dist/types/ton/toolbox.d.ts +6 -6
- package/dist/types/ton/types.d.ts +5 -0
- package/dist/types/tron/index.d.ts +2 -2
- package/dist/types/tron/toolbox.d.ts +3 -1
- package/dist/types/tron/types.d.ts +5 -0
- package/package.json +4 -2
|
@@ -18,11 +18,79 @@ export declare function BaseEVMToolbox<P extends Provider | BrowserProvider, S e
|
|
|
18
18
|
approvedAmount: ({ assetAddress, spenderAddress, from }: IsApprovedParams) => Promise<bigint>;
|
|
19
19
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
20
20
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: CallParams) => Promise<T>;
|
|
21
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: ApproveParams) => Promise<
|
|
21
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: ApproveParams) => Promise<{
|
|
22
|
+
value: string;
|
|
23
|
+
to: string;
|
|
24
|
+
data: string;
|
|
25
|
+
from?: string;
|
|
26
|
+
type?: number;
|
|
27
|
+
nonce?: number;
|
|
28
|
+
gasLimit?: bigint;
|
|
29
|
+
gasPrice?: bigint;
|
|
30
|
+
maxPriorityFeePerGas?: bigint;
|
|
31
|
+
maxFeePerGas?: bigint;
|
|
32
|
+
chainId?: bigint;
|
|
33
|
+
accessList?: import("ethers").AccessList;
|
|
34
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
35
|
+
customData?: any;
|
|
36
|
+
blockTag?: import("ethers").BlockTag;
|
|
37
|
+
enableCcipRead?: boolean;
|
|
38
|
+
}>;
|
|
22
39
|
createContract: (address: string, abi: readonly (JsonFragment | Fragment)[]) => Contract;
|
|
23
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: CallParams) => Promise<
|
|
24
|
-
|
|
25
|
-
|
|
40
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: CallParams) => Promise<{
|
|
41
|
+
value: string;
|
|
42
|
+
to: string;
|
|
43
|
+
data: string;
|
|
44
|
+
from?: string;
|
|
45
|
+
type?: number;
|
|
46
|
+
nonce?: number;
|
|
47
|
+
gasLimit?: bigint;
|
|
48
|
+
gasPrice?: bigint;
|
|
49
|
+
maxPriorityFeePerGas?: bigint;
|
|
50
|
+
maxFeePerGas?: bigint;
|
|
51
|
+
chainId?: bigint;
|
|
52
|
+
accessList?: import("ethers").AccessList;
|
|
53
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
54
|
+
customData?: any;
|
|
55
|
+
blockTag?: import("ethers").BlockTag;
|
|
56
|
+
enableCcipRead?: boolean;
|
|
57
|
+
}>;
|
|
58
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: EVMCreateTransactionParams) => Promise<{
|
|
59
|
+
value: string;
|
|
60
|
+
to: string;
|
|
61
|
+
data: string;
|
|
62
|
+
from?: string;
|
|
63
|
+
type?: number;
|
|
64
|
+
nonce?: number;
|
|
65
|
+
gasLimit?: bigint;
|
|
66
|
+
gasPrice?: bigint;
|
|
67
|
+
maxPriorityFeePerGas?: bigint;
|
|
68
|
+
maxFeePerGas?: bigint;
|
|
69
|
+
chainId?: bigint;
|
|
70
|
+
accessList?: import("ethers").AccessList;
|
|
71
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
72
|
+
customData?: any;
|
|
73
|
+
blockTag?: import("ethers").BlockTag;
|
|
74
|
+
enableCcipRead?: boolean;
|
|
75
|
+
}>;
|
|
76
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: EVMCreateTransactionParams) => Promise<{
|
|
77
|
+
value: string;
|
|
78
|
+
to: string;
|
|
79
|
+
data: string;
|
|
80
|
+
from?: string;
|
|
81
|
+
type?: number;
|
|
82
|
+
nonce?: number;
|
|
83
|
+
gasLimit?: bigint;
|
|
84
|
+
gasPrice?: bigint;
|
|
85
|
+
maxPriorityFeePerGas?: bigint;
|
|
86
|
+
maxFeePerGas?: bigint;
|
|
87
|
+
chainId?: bigint;
|
|
88
|
+
accessList?: import("ethers").AccessList;
|
|
89
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
90
|
+
customData?: any;
|
|
91
|
+
blockTag?: import("ethers").BlockTag;
|
|
92
|
+
enableCcipRead?: boolean;
|
|
93
|
+
}>;
|
|
26
94
|
EIP1193SendTransaction: ({ value, ...params }: EVMTxParams | ContractTransaction) => Promise<string>;
|
|
27
95
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: EstimateCallParams) => Promise<bigint>;
|
|
28
96
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: EVMTransferParams & {
|
|
@@ -71,7 +139,24 @@ export declare function getEIP1193SendTransaction(provider: Provider | BrowserPr
|
|
|
71
139
|
export declare function getChecksumAddressFromAsset(asset: Asset, chain: EVMChain): string;
|
|
72
140
|
export declare const ContractAddress: Record<EVMChain, string>;
|
|
73
141
|
export declare function getTokenAddress({ chain, symbol, ticker }: Asset, baseAssetChain: EVMChain): string | null;
|
|
74
|
-
export declare function getCreateContractTxObject({ provider }: ToolboxWrapParams): ({ contractAddress, abi, funcName, funcParams, txOverrides }: CallParams) => Promise<
|
|
142
|
+
export declare function getCreateContractTxObject({ provider }: ToolboxWrapParams): ({ contractAddress, abi, funcName, funcParams, txOverrides }: CallParams) => Promise<{
|
|
143
|
+
value: string;
|
|
144
|
+
to: string;
|
|
145
|
+
data: string;
|
|
146
|
+
from?: string;
|
|
147
|
+
type?: number;
|
|
148
|
+
nonce?: number;
|
|
149
|
+
gasLimit?: bigint;
|
|
150
|
+
gasPrice?: bigint;
|
|
151
|
+
maxPriorityFeePerGas?: bigint;
|
|
152
|
+
maxFeePerGas?: bigint;
|
|
153
|
+
chainId?: bigint;
|
|
154
|
+
accessList?: import("ethers").AccessList;
|
|
155
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
156
|
+
customData?: any;
|
|
157
|
+
blockTag?: import("ethers").BlockTag;
|
|
158
|
+
enableCcipRead?: boolean;
|
|
159
|
+
}>;
|
|
75
160
|
export declare function getEstimateGasPrices({ chain, provider, isEIP1559Compatible, }: {
|
|
76
161
|
provider: Provider;
|
|
77
162
|
isEIP1559Compatible?: boolean;
|