@swapkit/core 4.4.40 → 4.4.42
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 +28 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/index.d.ts +1683 -118
- package/package.json +17 -7
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AssetValue, Chain, type ChainWallet, type ConditionalAssetValueReturn, type FeeOption, type GenericTransferParams, type SKConfigState, type SwapParams } from "@swapkit/helpers";
|
|
2
|
-
import type
|
|
2
|
+
import { type QuoteResponseRoute, type SwapRouteV2Response } from "@swapkit/helpers/api";
|
|
3
3
|
import type { createPlugin } from "@swapkit/plugins";
|
|
4
4
|
import type { FullWallet } from "@swapkit/toolboxes";
|
|
5
5
|
import type { EVMCreateTransactionParams, EVMTransferParams, TypedDataField } from "@swapkit/toolboxes/evm";
|
|
@@ -45,11 +45,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
45
45
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
46
46
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
47
47
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
48
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
48
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
49
|
+
value: string;
|
|
50
|
+
to: string;
|
|
51
|
+
data: string;
|
|
52
|
+
from?: string;
|
|
53
|
+
type?: number;
|
|
54
|
+
nonce?: number;
|
|
55
|
+
gasLimit?: bigint;
|
|
56
|
+
gasPrice?: bigint;
|
|
57
|
+
maxPriorityFeePerGas?: bigint;
|
|
58
|
+
maxFeePerGas?: bigint;
|
|
59
|
+
chainId?: bigint;
|
|
60
|
+
accessList?: import("ethers").AccessList;
|
|
61
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
62
|
+
customData?: any;
|
|
63
|
+
blockTag?: import("ethers").BlockTag;
|
|
64
|
+
enableCcipRead?: boolean;
|
|
65
|
+
}>;
|
|
49
66
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
50
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
51
|
-
|
|
52
|
-
|
|
67
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
68
|
+
value: string;
|
|
69
|
+
to: string;
|
|
70
|
+
data: string;
|
|
71
|
+
from?: string;
|
|
72
|
+
type?: number;
|
|
73
|
+
nonce?: number;
|
|
74
|
+
gasLimit?: bigint;
|
|
75
|
+
gasPrice?: bigint;
|
|
76
|
+
maxPriorityFeePerGas?: bigint;
|
|
77
|
+
maxFeePerGas?: bigint;
|
|
78
|
+
chainId?: bigint;
|
|
79
|
+
accessList?: import("ethers").AccessList;
|
|
80
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
81
|
+
customData?: any;
|
|
82
|
+
blockTag?: import("ethers").BlockTag;
|
|
83
|
+
enableCcipRead?: boolean;
|
|
84
|
+
}>;
|
|
85
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
86
|
+
value: string;
|
|
87
|
+
to: string;
|
|
88
|
+
data: string;
|
|
89
|
+
from?: string;
|
|
90
|
+
type?: number;
|
|
91
|
+
nonce?: number;
|
|
92
|
+
gasLimit?: bigint;
|
|
93
|
+
gasPrice?: bigint;
|
|
94
|
+
maxPriorityFeePerGas?: bigint;
|
|
95
|
+
maxFeePerGas?: bigint;
|
|
96
|
+
chainId?: bigint;
|
|
97
|
+
accessList?: import("ethers").AccessList;
|
|
98
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
99
|
+
customData?: any;
|
|
100
|
+
blockTag?: import("ethers").BlockTag;
|
|
101
|
+
enableCcipRead?: boolean;
|
|
102
|
+
}>;
|
|
103
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
104
|
+
value: string;
|
|
105
|
+
to: string;
|
|
106
|
+
data: string;
|
|
107
|
+
from?: string;
|
|
108
|
+
type?: number;
|
|
109
|
+
nonce?: number;
|
|
110
|
+
gasLimit?: bigint;
|
|
111
|
+
gasPrice?: bigint;
|
|
112
|
+
maxPriorityFeePerGas?: bigint;
|
|
113
|
+
maxFeePerGas?: bigint;
|
|
114
|
+
chainId?: bigint;
|
|
115
|
+
accessList?: import("ethers").AccessList;
|
|
116
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
117
|
+
customData?: any;
|
|
118
|
+
blockTag?: import("ethers").BlockTag;
|
|
119
|
+
enableCcipRead?: boolean;
|
|
120
|
+
}>;
|
|
53
121
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
54
122
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
55
123
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -104,11 +172,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
104
172
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
105
173
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
106
174
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
107
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
175
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
176
|
+
value: string;
|
|
177
|
+
to: string;
|
|
178
|
+
data: string;
|
|
179
|
+
from?: string;
|
|
180
|
+
type?: number;
|
|
181
|
+
nonce?: number;
|
|
182
|
+
gasLimit?: bigint;
|
|
183
|
+
gasPrice?: bigint;
|
|
184
|
+
maxPriorityFeePerGas?: bigint;
|
|
185
|
+
maxFeePerGas?: bigint;
|
|
186
|
+
chainId?: bigint;
|
|
187
|
+
accessList?: import("ethers").AccessList;
|
|
188
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
189
|
+
customData?: any;
|
|
190
|
+
blockTag?: import("ethers").BlockTag;
|
|
191
|
+
enableCcipRead?: boolean;
|
|
192
|
+
}>;
|
|
108
193
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
109
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
110
|
-
|
|
111
|
-
|
|
194
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
195
|
+
value: string;
|
|
196
|
+
to: string;
|
|
197
|
+
data: string;
|
|
198
|
+
from?: string;
|
|
199
|
+
type?: number;
|
|
200
|
+
nonce?: number;
|
|
201
|
+
gasLimit?: bigint;
|
|
202
|
+
gasPrice?: bigint;
|
|
203
|
+
maxPriorityFeePerGas?: bigint;
|
|
204
|
+
maxFeePerGas?: bigint;
|
|
205
|
+
chainId?: bigint;
|
|
206
|
+
accessList?: import("ethers").AccessList;
|
|
207
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
208
|
+
customData?: any;
|
|
209
|
+
blockTag?: import("ethers").BlockTag;
|
|
210
|
+
enableCcipRead?: boolean;
|
|
211
|
+
}>;
|
|
212
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
213
|
+
value: string;
|
|
214
|
+
to: string;
|
|
215
|
+
data: string;
|
|
216
|
+
from?: string;
|
|
217
|
+
type?: number;
|
|
218
|
+
nonce?: number;
|
|
219
|
+
gasLimit?: bigint;
|
|
220
|
+
gasPrice?: bigint;
|
|
221
|
+
maxPriorityFeePerGas?: bigint;
|
|
222
|
+
maxFeePerGas?: bigint;
|
|
223
|
+
chainId?: bigint;
|
|
224
|
+
accessList?: import("ethers").AccessList;
|
|
225
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
226
|
+
customData?: any;
|
|
227
|
+
blockTag?: import("ethers").BlockTag;
|
|
228
|
+
enableCcipRead?: boolean;
|
|
229
|
+
}>;
|
|
230
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
231
|
+
value: string;
|
|
232
|
+
to: string;
|
|
233
|
+
data: string;
|
|
234
|
+
from?: string;
|
|
235
|
+
type?: number;
|
|
236
|
+
nonce?: number;
|
|
237
|
+
gasLimit?: bigint;
|
|
238
|
+
gasPrice?: bigint;
|
|
239
|
+
maxPriorityFeePerGas?: bigint;
|
|
240
|
+
maxFeePerGas?: bigint;
|
|
241
|
+
chainId?: bigint;
|
|
242
|
+
accessList?: import("ethers").AccessList;
|
|
243
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
244
|
+
customData?: any;
|
|
245
|
+
blockTag?: import("ethers").BlockTag;
|
|
246
|
+
enableCcipRead?: boolean;
|
|
247
|
+
}>;
|
|
112
248
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
113
249
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
114
250
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -149,11 +285,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
149
285
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
150
286
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
151
287
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
152
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
288
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
289
|
+
value: string;
|
|
290
|
+
to: string;
|
|
291
|
+
data: string;
|
|
292
|
+
from?: string;
|
|
293
|
+
type?: number;
|
|
294
|
+
nonce?: number;
|
|
295
|
+
gasLimit?: bigint;
|
|
296
|
+
gasPrice?: bigint;
|
|
297
|
+
maxPriorityFeePerGas?: bigint;
|
|
298
|
+
maxFeePerGas?: bigint;
|
|
299
|
+
chainId?: bigint;
|
|
300
|
+
accessList?: import("ethers").AccessList;
|
|
301
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
302
|
+
customData?: any;
|
|
303
|
+
blockTag?: import("ethers").BlockTag;
|
|
304
|
+
enableCcipRead?: boolean;
|
|
305
|
+
}>;
|
|
153
306
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
154
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
155
|
-
|
|
156
|
-
|
|
307
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
308
|
+
value: string;
|
|
309
|
+
to: string;
|
|
310
|
+
data: string;
|
|
311
|
+
from?: string;
|
|
312
|
+
type?: number;
|
|
313
|
+
nonce?: number;
|
|
314
|
+
gasLimit?: bigint;
|
|
315
|
+
gasPrice?: bigint;
|
|
316
|
+
maxPriorityFeePerGas?: bigint;
|
|
317
|
+
maxFeePerGas?: bigint;
|
|
318
|
+
chainId?: bigint;
|
|
319
|
+
accessList?: import("ethers").AccessList;
|
|
320
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
321
|
+
customData?: any;
|
|
322
|
+
blockTag?: import("ethers").BlockTag;
|
|
323
|
+
enableCcipRead?: boolean;
|
|
324
|
+
}>;
|
|
325
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
326
|
+
value: string;
|
|
327
|
+
to: string;
|
|
328
|
+
data: string;
|
|
329
|
+
from?: string;
|
|
330
|
+
type?: number;
|
|
331
|
+
nonce?: number;
|
|
332
|
+
gasLimit?: bigint;
|
|
333
|
+
gasPrice?: bigint;
|
|
334
|
+
maxPriorityFeePerGas?: bigint;
|
|
335
|
+
maxFeePerGas?: bigint;
|
|
336
|
+
chainId?: bigint;
|
|
337
|
+
accessList?: import("ethers").AccessList;
|
|
338
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
339
|
+
customData?: any;
|
|
340
|
+
blockTag?: import("ethers").BlockTag;
|
|
341
|
+
enableCcipRead?: boolean;
|
|
342
|
+
}>;
|
|
343
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
344
|
+
value: string;
|
|
345
|
+
to: string;
|
|
346
|
+
data: string;
|
|
347
|
+
from?: string;
|
|
348
|
+
type?: number;
|
|
349
|
+
nonce?: number;
|
|
350
|
+
gasLimit?: bigint;
|
|
351
|
+
gasPrice?: bigint;
|
|
352
|
+
maxPriorityFeePerGas?: bigint;
|
|
353
|
+
maxFeePerGas?: bigint;
|
|
354
|
+
chainId?: bigint;
|
|
355
|
+
accessList?: import("ethers").AccessList;
|
|
356
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
357
|
+
customData?: any;
|
|
358
|
+
blockTag?: import("ethers").BlockTag;
|
|
359
|
+
enableCcipRead?: boolean;
|
|
360
|
+
}>;
|
|
157
361
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
158
362
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
159
363
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -194,11 +398,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
194
398
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
195
399
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
196
400
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
197
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
401
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
402
|
+
value: string;
|
|
403
|
+
to: string;
|
|
404
|
+
data: string;
|
|
405
|
+
from?: string;
|
|
406
|
+
type?: number;
|
|
407
|
+
nonce?: number;
|
|
408
|
+
gasLimit?: bigint;
|
|
409
|
+
gasPrice?: bigint;
|
|
410
|
+
maxPriorityFeePerGas?: bigint;
|
|
411
|
+
maxFeePerGas?: bigint;
|
|
412
|
+
chainId?: bigint;
|
|
413
|
+
accessList?: import("ethers").AccessList;
|
|
414
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
415
|
+
customData?: any;
|
|
416
|
+
blockTag?: import("ethers").BlockTag;
|
|
417
|
+
enableCcipRead?: boolean;
|
|
418
|
+
}>;
|
|
198
419
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
199
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
200
|
-
|
|
201
|
-
|
|
420
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
421
|
+
value: string;
|
|
422
|
+
to: string;
|
|
423
|
+
data: string;
|
|
424
|
+
from?: string;
|
|
425
|
+
type?: number;
|
|
426
|
+
nonce?: number;
|
|
427
|
+
gasLimit?: bigint;
|
|
428
|
+
gasPrice?: bigint;
|
|
429
|
+
maxPriorityFeePerGas?: bigint;
|
|
430
|
+
maxFeePerGas?: bigint;
|
|
431
|
+
chainId?: bigint;
|
|
432
|
+
accessList?: import("ethers").AccessList;
|
|
433
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
434
|
+
customData?: any;
|
|
435
|
+
blockTag?: import("ethers").BlockTag;
|
|
436
|
+
enableCcipRead?: boolean;
|
|
437
|
+
}>;
|
|
438
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
439
|
+
value: string;
|
|
440
|
+
to: string;
|
|
441
|
+
data: string;
|
|
442
|
+
from?: string;
|
|
443
|
+
type?: number;
|
|
444
|
+
nonce?: number;
|
|
445
|
+
gasLimit?: bigint;
|
|
446
|
+
gasPrice?: bigint;
|
|
447
|
+
maxPriorityFeePerGas?: bigint;
|
|
448
|
+
maxFeePerGas?: bigint;
|
|
449
|
+
chainId?: bigint;
|
|
450
|
+
accessList?: import("ethers").AccessList;
|
|
451
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
452
|
+
customData?: any;
|
|
453
|
+
blockTag?: import("ethers").BlockTag;
|
|
454
|
+
enableCcipRead?: boolean;
|
|
455
|
+
}>;
|
|
456
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
457
|
+
value: string;
|
|
458
|
+
to: string;
|
|
459
|
+
data: string;
|
|
460
|
+
from?: string;
|
|
461
|
+
type?: number;
|
|
462
|
+
nonce?: number;
|
|
463
|
+
gasLimit?: bigint;
|
|
464
|
+
gasPrice?: bigint;
|
|
465
|
+
maxPriorityFeePerGas?: bigint;
|
|
466
|
+
maxFeePerGas?: bigint;
|
|
467
|
+
chainId?: bigint;
|
|
468
|
+
accessList?: import("ethers").AccessList;
|
|
469
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
470
|
+
customData?: any;
|
|
471
|
+
blockTag?: import("ethers").BlockTag;
|
|
472
|
+
enableCcipRead?: boolean;
|
|
473
|
+
}>;
|
|
202
474
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
203
475
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
204
476
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -239,11 +511,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
239
511
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
240
512
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
241
513
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
242
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
514
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
515
|
+
value: string;
|
|
516
|
+
to: string;
|
|
517
|
+
data: string;
|
|
518
|
+
from?: string;
|
|
519
|
+
type?: number;
|
|
520
|
+
nonce?: number;
|
|
521
|
+
gasLimit?: bigint;
|
|
522
|
+
gasPrice?: bigint;
|
|
523
|
+
maxPriorityFeePerGas?: bigint;
|
|
524
|
+
maxFeePerGas?: bigint;
|
|
525
|
+
chainId?: bigint;
|
|
526
|
+
accessList?: import("ethers").AccessList;
|
|
527
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
528
|
+
customData?: any;
|
|
529
|
+
blockTag?: import("ethers").BlockTag;
|
|
530
|
+
enableCcipRead?: boolean;
|
|
531
|
+
}>;
|
|
243
532
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
244
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
245
|
-
|
|
246
|
-
|
|
533
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
534
|
+
value: string;
|
|
535
|
+
to: string;
|
|
536
|
+
data: string;
|
|
537
|
+
from?: string;
|
|
538
|
+
type?: number;
|
|
539
|
+
nonce?: number;
|
|
540
|
+
gasLimit?: bigint;
|
|
541
|
+
gasPrice?: bigint;
|
|
542
|
+
maxPriorityFeePerGas?: bigint;
|
|
543
|
+
maxFeePerGas?: bigint;
|
|
544
|
+
chainId?: bigint;
|
|
545
|
+
accessList?: import("ethers").AccessList;
|
|
546
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
547
|
+
customData?: any;
|
|
548
|
+
blockTag?: import("ethers").BlockTag;
|
|
549
|
+
enableCcipRead?: boolean;
|
|
550
|
+
}>;
|
|
551
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
552
|
+
value: string;
|
|
553
|
+
to: string;
|
|
554
|
+
data: string;
|
|
555
|
+
from?: string;
|
|
556
|
+
type?: number;
|
|
557
|
+
nonce?: number;
|
|
558
|
+
gasLimit?: bigint;
|
|
559
|
+
gasPrice?: bigint;
|
|
560
|
+
maxPriorityFeePerGas?: bigint;
|
|
561
|
+
maxFeePerGas?: bigint;
|
|
562
|
+
chainId?: bigint;
|
|
563
|
+
accessList?: import("ethers").AccessList;
|
|
564
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
565
|
+
customData?: any;
|
|
566
|
+
blockTag?: import("ethers").BlockTag;
|
|
567
|
+
enableCcipRead?: boolean;
|
|
568
|
+
}>;
|
|
569
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
570
|
+
value: string;
|
|
571
|
+
to: string;
|
|
572
|
+
data: string;
|
|
573
|
+
from?: string;
|
|
574
|
+
type?: number;
|
|
575
|
+
nonce?: number;
|
|
576
|
+
gasLimit?: bigint;
|
|
577
|
+
gasPrice?: bigint;
|
|
578
|
+
maxPriorityFeePerGas?: bigint;
|
|
579
|
+
maxFeePerGas?: bigint;
|
|
580
|
+
chainId?: bigint;
|
|
581
|
+
accessList?: import("ethers").AccessList;
|
|
582
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
583
|
+
customData?: any;
|
|
584
|
+
blockTag?: import("ethers").BlockTag;
|
|
585
|
+
enableCcipRead?: boolean;
|
|
586
|
+
}>;
|
|
247
587
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
248
588
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
249
589
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -284,11 +624,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
284
624
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
285
625
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
286
626
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
287
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
627
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
628
|
+
value: string;
|
|
629
|
+
to: string;
|
|
630
|
+
data: string;
|
|
631
|
+
from?: string;
|
|
632
|
+
type?: number;
|
|
633
|
+
nonce?: number;
|
|
634
|
+
gasLimit?: bigint;
|
|
635
|
+
gasPrice?: bigint;
|
|
636
|
+
maxPriorityFeePerGas?: bigint;
|
|
637
|
+
maxFeePerGas?: bigint;
|
|
638
|
+
chainId?: bigint;
|
|
639
|
+
accessList?: import("ethers").AccessList;
|
|
640
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
641
|
+
customData?: any;
|
|
642
|
+
blockTag?: import("ethers").BlockTag;
|
|
643
|
+
enableCcipRead?: boolean;
|
|
644
|
+
}>;
|
|
288
645
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
289
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
290
|
-
|
|
291
|
-
|
|
646
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
647
|
+
value: string;
|
|
648
|
+
to: string;
|
|
649
|
+
data: string;
|
|
650
|
+
from?: string;
|
|
651
|
+
type?: number;
|
|
652
|
+
nonce?: number;
|
|
653
|
+
gasLimit?: bigint;
|
|
654
|
+
gasPrice?: bigint;
|
|
655
|
+
maxPriorityFeePerGas?: bigint;
|
|
656
|
+
maxFeePerGas?: bigint;
|
|
657
|
+
chainId?: bigint;
|
|
658
|
+
accessList?: import("ethers").AccessList;
|
|
659
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
660
|
+
customData?: any;
|
|
661
|
+
blockTag?: import("ethers").BlockTag;
|
|
662
|
+
enableCcipRead?: boolean;
|
|
663
|
+
}>;
|
|
664
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
665
|
+
value: string;
|
|
666
|
+
to: string;
|
|
667
|
+
data: string;
|
|
668
|
+
from?: string;
|
|
669
|
+
type?: number;
|
|
670
|
+
nonce?: number;
|
|
671
|
+
gasLimit?: bigint;
|
|
672
|
+
gasPrice?: bigint;
|
|
673
|
+
maxPriorityFeePerGas?: bigint;
|
|
674
|
+
maxFeePerGas?: bigint;
|
|
675
|
+
chainId?: bigint;
|
|
676
|
+
accessList?: import("ethers").AccessList;
|
|
677
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
678
|
+
customData?: any;
|
|
679
|
+
blockTag?: import("ethers").BlockTag;
|
|
680
|
+
enableCcipRead?: boolean;
|
|
681
|
+
}>;
|
|
682
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
683
|
+
value: string;
|
|
684
|
+
to: string;
|
|
685
|
+
data: string;
|
|
686
|
+
from?: string;
|
|
687
|
+
type?: number;
|
|
688
|
+
nonce?: number;
|
|
689
|
+
gasLimit?: bigint;
|
|
690
|
+
gasPrice?: bigint;
|
|
691
|
+
maxPriorityFeePerGas?: bigint;
|
|
692
|
+
maxFeePerGas?: bigint;
|
|
693
|
+
chainId?: bigint;
|
|
694
|
+
accessList?: import("ethers").AccessList;
|
|
695
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
696
|
+
customData?: any;
|
|
697
|
+
blockTag?: import("ethers").BlockTag;
|
|
698
|
+
enableCcipRead?: boolean;
|
|
699
|
+
}>;
|
|
292
700
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
293
701
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
294
702
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -329,11 +737,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
329
737
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
330
738
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
331
739
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
332
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
740
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
741
|
+
value: string;
|
|
742
|
+
to: string;
|
|
743
|
+
data: string;
|
|
744
|
+
from?: string;
|
|
745
|
+
type?: number;
|
|
746
|
+
nonce?: number;
|
|
747
|
+
gasLimit?: bigint;
|
|
748
|
+
gasPrice?: bigint;
|
|
749
|
+
maxPriorityFeePerGas?: bigint;
|
|
750
|
+
maxFeePerGas?: bigint;
|
|
751
|
+
chainId?: bigint;
|
|
752
|
+
accessList?: import("ethers").AccessList;
|
|
753
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
754
|
+
customData?: any;
|
|
755
|
+
blockTag?: import("ethers").BlockTag;
|
|
756
|
+
enableCcipRead?: boolean;
|
|
757
|
+
}>;
|
|
333
758
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
334
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
335
|
-
|
|
336
|
-
|
|
759
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
760
|
+
value: string;
|
|
761
|
+
to: string;
|
|
762
|
+
data: string;
|
|
763
|
+
from?: string;
|
|
764
|
+
type?: number;
|
|
765
|
+
nonce?: number;
|
|
766
|
+
gasLimit?: bigint;
|
|
767
|
+
gasPrice?: bigint;
|
|
768
|
+
maxPriorityFeePerGas?: bigint;
|
|
769
|
+
maxFeePerGas?: bigint;
|
|
770
|
+
chainId?: bigint;
|
|
771
|
+
accessList?: import("ethers").AccessList;
|
|
772
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
773
|
+
customData?: any;
|
|
774
|
+
blockTag?: import("ethers").BlockTag;
|
|
775
|
+
enableCcipRead?: boolean;
|
|
776
|
+
}>;
|
|
777
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
778
|
+
value: string;
|
|
779
|
+
to: string;
|
|
780
|
+
data: string;
|
|
781
|
+
from?: string;
|
|
782
|
+
type?: number;
|
|
783
|
+
nonce?: number;
|
|
784
|
+
gasLimit?: bigint;
|
|
785
|
+
gasPrice?: bigint;
|
|
786
|
+
maxPriorityFeePerGas?: bigint;
|
|
787
|
+
maxFeePerGas?: bigint;
|
|
788
|
+
chainId?: bigint;
|
|
789
|
+
accessList?: import("ethers").AccessList;
|
|
790
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
791
|
+
customData?: any;
|
|
792
|
+
blockTag?: import("ethers").BlockTag;
|
|
793
|
+
enableCcipRead?: boolean;
|
|
794
|
+
}>;
|
|
795
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
796
|
+
value: string;
|
|
797
|
+
to: string;
|
|
798
|
+
data: string;
|
|
799
|
+
from?: string;
|
|
800
|
+
type?: number;
|
|
801
|
+
nonce?: number;
|
|
802
|
+
gasLimit?: bigint;
|
|
803
|
+
gasPrice?: bigint;
|
|
804
|
+
maxPriorityFeePerGas?: bigint;
|
|
805
|
+
maxFeePerGas?: bigint;
|
|
806
|
+
chainId?: bigint;
|
|
807
|
+
accessList?: import("ethers").AccessList;
|
|
808
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
809
|
+
customData?: any;
|
|
810
|
+
blockTag?: import("ethers").BlockTag;
|
|
811
|
+
enableCcipRead?: boolean;
|
|
812
|
+
}>;
|
|
337
813
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
338
814
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
339
815
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -653,11 +1129,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
653
1129
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
654
1130
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
655
1131
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
656
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
1132
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
1133
|
+
value: string;
|
|
1134
|
+
to: string;
|
|
1135
|
+
data: string;
|
|
1136
|
+
from?: string;
|
|
1137
|
+
type?: number;
|
|
1138
|
+
nonce?: number;
|
|
1139
|
+
gasLimit?: bigint;
|
|
1140
|
+
gasPrice?: bigint;
|
|
1141
|
+
maxPriorityFeePerGas?: bigint;
|
|
1142
|
+
maxFeePerGas?: bigint;
|
|
1143
|
+
chainId?: bigint;
|
|
1144
|
+
accessList?: import("ethers").AccessList;
|
|
1145
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1146
|
+
customData?: any;
|
|
1147
|
+
blockTag?: import("ethers").BlockTag;
|
|
1148
|
+
enableCcipRead?: boolean;
|
|
1149
|
+
}>;
|
|
657
1150
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
658
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
659
|
-
|
|
660
|
-
|
|
1151
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
1152
|
+
value: string;
|
|
1153
|
+
to: string;
|
|
1154
|
+
data: string;
|
|
1155
|
+
from?: string;
|
|
1156
|
+
type?: number;
|
|
1157
|
+
nonce?: number;
|
|
1158
|
+
gasLimit?: bigint;
|
|
1159
|
+
gasPrice?: bigint;
|
|
1160
|
+
maxPriorityFeePerGas?: bigint;
|
|
1161
|
+
maxFeePerGas?: bigint;
|
|
1162
|
+
chainId?: bigint;
|
|
1163
|
+
accessList?: import("ethers").AccessList;
|
|
1164
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1165
|
+
customData?: any;
|
|
1166
|
+
blockTag?: import("ethers").BlockTag;
|
|
1167
|
+
enableCcipRead?: boolean;
|
|
1168
|
+
}>;
|
|
1169
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1170
|
+
value: string;
|
|
1171
|
+
to: string;
|
|
1172
|
+
data: string;
|
|
1173
|
+
from?: string;
|
|
1174
|
+
type?: number;
|
|
1175
|
+
nonce?: number;
|
|
1176
|
+
gasLimit?: bigint;
|
|
1177
|
+
gasPrice?: bigint;
|
|
1178
|
+
maxPriorityFeePerGas?: bigint;
|
|
1179
|
+
maxFeePerGas?: bigint;
|
|
1180
|
+
chainId?: bigint;
|
|
1181
|
+
accessList?: import("ethers").AccessList;
|
|
1182
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1183
|
+
customData?: any;
|
|
1184
|
+
blockTag?: import("ethers").BlockTag;
|
|
1185
|
+
enableCcipRead?: boolean;
|
|
1186
|
+
}>;
|
|
1187
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1188
|
+
value: string;
|
|
1189
|
+
to: string;
|
|
1190
|
+
data: string;
|
|
1191
|
+
from?: string;
|
|
1192
|
+
type?: number;
|
|
1193
|
+
nonce?: number;
|
|
1194
|
+
gasLimit?: bigint;
|
|
1195
|
+
gasPrice?: bigint;
|
|
1196
|
+
maxPriorityFeePerGas?: bigint;
|
|
1197
|
+
maxFeePerGas?: bigint;
|
|
1198
|
+
chainId?: bigint;
|
|
1199
|
+
accessList?: import("ethers").AccessList;
|
|
1200
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1201
|
+
customData?: any;
|
|
1202
|
+
blockTag?: import("ethers").BlockTag;
|
|
1203
|
+
enableCcipRead?: boolean;
|
|
1204
|
+
}>;
|
|
661
1205
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
662
1206
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
663
1207
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -733,11 +1277,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
733
1277
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
734
1278
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
735
1279
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
736
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
1280
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
1281
|
+
value: string;
|
|
1282
|
+
to: string;
|
|
1283
|
+
data: string;
|
|
1284
|
+
from?: string;
|
|
1285
|
+
type?: number;
|
|
1286
|
+
nonce?: number;
|
|
1287
|
+
gasLimit?: bigint;
|
|
1288
|
+
gasPrice?: bigint;
|
|
1289
|
+
maxPriorityFeePerGas?: bigint;
|
|
1290
|
+
maxFeePerGas?: bigint;
|
|
1291
|
+
chainId?: bigint;
|
|
1292
|
+
accessList?: import("ethers").AccessList;
|
|
1293
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1294
|
+
customData?: any;
|
|
1295
|
+
blockTag?: import("ethers").BlockTag;
|
|
1296
|
+
enableCcipRead?: boolean;
|
|
1297
|
+
}>;
|
|
737
1298
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
738
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
739
|
-
|
|
740
|
-
|
|
1299
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
1300
|
+
value: string;
|
|
1301
|
+
to: string;
|
|
1302
|
+
data: string;
|
|
1303
|
+
from?: string;
|
|
1304
|
+
type?: number;
|
|
1305
|
+
nonce?: number;
|
|
1306
|
+
gasLimit?: bigint;
|
|
1307
|
+
gasPrice?: bigint;
|
|
1308
|
+
maxPriorityFeePerGas?: bigint;
|
|
1309
|
+
maxFeePerGas?: bigint;
|
|
1310
|
+
chainId?: bigint;
|
|
1311
|
+
accessList?: import("ethers").AccessList;
|
|
1312
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1313
|
+
customData?: any;
|
|
1314
|
+
blockTag?: import("ethers").BlockTag;
|
|
1315
|
+
enableCcipRead?: boolean;
|
|
1316
|
+
}>;
|
|
1317
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1318
|
+
value: string;
|
|
1319
|
+
to: string;
|
|
1320
|
+
data: string;
|
|
1321
|
+
from?: string;
|
|
1322
|
+
type?: number;
|
|
1323
|
+
nonce?: number;
|
|
1324
|
+
gasLimit?: bigint;
|
|
1325
|
+
gasPrice?: bigint;
|
|
1326
|
+
maxPriorityFeePerGas?: bigint;
|
|
1327
|
+
maxFeePerGas?: bigint;
|
|
1328
|
+
chainId?: bigint;
|
|
1329
|
+
accessList?: import("ethers").AccessList;
|
|
1330
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1331
|
+
customData?: any;
|
|
1332
|
+
blockTag?: import("ethers").BlockTag;
|
|
1333
|
+
enableCcipRead?: boolean;
|
|
1334
|
+
}>;
|
|
1335
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1336
|
+
value: string;
|
|
1337
|
+
to: string;
|
|
1338
|
+
data: string;
|
|
1339
|
+
from?: string;
|
|
1340
|
+
type?: number;
|
|
1341
|
+
nonce?: number;
|
|
1342
|
+
gasLimit?: bigint;
|
|
1343
|
+
gasPrice?: bigint;
|
|
1344
|
+
maxPriorityFeePerGas?: bigint;
|
|
1345
|
+
maxFeePerGas?: bigint;
|
|
1346
|
+
chainId?: bigint;
|
|
1347
|
+
accessList?: import("ethers").AccessList;
|
|
1348
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1349
|
+
customData?: any;
|
|
1350
|
+
blockTag?: import("ethers").BlockTag;
|
|
1351
|
+
enableCcipRead?: boolean;
|
|
1352
|
+
}>;
|
|
741
1353
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
742
1354
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
743
1355
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -778,11 +1390,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
778
1390
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
779
1391
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
780
1392
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
781
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
1393
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
1394
|
+
value: string;
|
|
1395
|
+
to: string;
|
|
1396
|
+
data: string;
|
|
1397
|
+
from?: string;
|
|
1398
|
+
type?: number;
|
|
1399
|
+
nonce?: number;
|
|
1400
|
+
gasLimit?: bigint;
|
|
1401
|
+
gasPrice?: bigint;
|
|
1402
|
+
maxPriorityFeePerGas?: bigint;
|
|
1403
|
+
maxFeePerGas?: bigint;
|
|
1404
|
+
chainId?: bigint;
|
|
1405
|
+
accessList?: import("ethers").AccessList;
|
|
1406
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1407
|
+
customData?: any;
|
|
1408
|
+
blockTag?: import("ethers").BlockTag;
|
|
1409
|
+
enableCcipRead?: boolean;
|
|
1410
|
+
}>;
|
|
782
1411
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
783
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
784
|
-
|
|
785
|
-
|
|
1412
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
1413
|
+
value: string;
|
|
1414
|
+
to: string;
|
|
1415
|
+
data: string;
|
|
1416
|
+
from?: string;
|
|
1417
|
+
type?: number;
|
|
1418
|
+
nonce?: number;
|
|
1419
|
+
gasLimit?: bigint;
|
|
1420
|
+
gasPrice?: bigint;
|
|
1421
|
+
maxPriorityFeePerGas?: bigint;
|
|
1422
|
+
maxFeePerGas?: bigint;
|
|
1423
|
+
chainId?: bigint;
|
|
1424
|
+
accessList?: import("ethers").AccessList;
|
|
1425
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1426
|
+
customData?: any;
|
|
1427
|
+
blockTag?: import("ethers").BlockTag;
|
|
1428
|
+
enableCcipRead?: boolean;
|
|
1429
|
+
}>;
|
|
1430
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1431
|
+
value: string;
|
|
1432
|
+
to: string;
|
|
1433
|
+
data: string;
|
|
1434
|
+
from?: string;
|
|
1435
|
+
type?: number;
|
|
1436
|
+
nonce?: number;
|
|
1437
|
+
gasLimit?: bigint;
|
|
1438
|
+
gasPrice?: bigint;
|
|
1439
|
+
maxPriorityFeePerGas?: bigint;
|
|
1440
|
+
maxFeePerGas?: bigint;
|
|
1441
|
+
chainId?: bigint;
|
|
1442
|
+
accessList?: import("ethers").AccessList;
|
|
1443
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1444
|
+
customData?: any;
|
|
1445
|
+
blockTag?: import("ethers").BlockTag;
|
|
1446
|
+
enableCcipRead?: boolean;
|
|
1447
|
+
}>;
|
|
1448
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1449
|
+
value: string;
|
|
1450
|
+
to: string;
|
|
1451
|
+
data: string;
|
|
1452
|
+
from?: string;
|
|
1453
|
+
type?: number;
|
|
1454
|
+
nonce?: number;
|
|
1455
|
+
gasLimit?: bigint;
|
|
1456
|
+
gasPrice?: bigint;
|
|
1457
|
+
maxPriorityFeePerGas?: bigint;
|
|
1458
|
+
maxFeePerGas?: bigint;
|
|
1459
|
+
chainId?: bigint;
|
|
1460
|
+
accessList?: import("ethers").AccessList;
|
|
1461
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1462
|
+
customData?: any;
|
|
1463
|
+
blockTag?: import("ethers").BlockTag;
|
|
1464
|
+
enableCcipRead?: boolean;
|
|
1465
|
+
}>;
|
|
786
1466
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
787
1467
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
788
1468
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -855,11 +1535,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
855
1535
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
856
1536
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
857
1537
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
858
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
1538
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
1539
|
+
value: string;
|
|
1540
|
+
to: string;
|
|
1541
|
+
data: string;
|
|
1542
|
+
from?: string;
|
|
1543
|
+
type?: number;
|
|
1544
|
+
nonce?: number;
|
|
1545
|
+
gasLimit?: bigint;
|
|
1546
|
+
gasPrice?: bigint;
|
|
1547
|
+
maxPriorityFeePerGas?: bigint;
|
|
1548
|
+
maxFeePerGas?: bigint;
|
|
1549
|
+
chainId?: bigint;
|
|
1550
|
+
accessList?: import("ethers").AccessList;
|
|
1551
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1552
|
+
customData?: any;
|
|
1553
|
+
blockTag?: import("ethers").BlockTag;
|
|
1554
|
+
enableCcipRead?: boolean;
|
|
1555
|
+
}>;
|
|
859
1556
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
860
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
861
|
-
|
|
862
|
-
|
|
1557
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
1558
|
+
value: string;
|
|
1559
|
+
to: string;
|
|
1560
|
+
data: string;
|
|
1561
|
+
from?: string;
|
|
1562
|
+
type?: number;
|
|
1563
|
+
nonce?: number;
|
|
1564
|
+
gasLimit?: bigint;
|
|
1565
|
+
gasPrice?: bigint;
|
|
1566
|
+
maxPriorityFeePerGas?: bigint;
|
|
1567
|
+
maxFeePerGas?: bigint;
|
|
1568
|
+
chainId?: bigint;
|
|
1569
|
+
accessList?: import("ethers").AccessList;
|
|
1570
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1571
|
+
customData?: any;
|
|
1572
|
+
blockTag?: import("ethers").BlockTag;
|
|
1573
|
+
enableCcipRead?: boolean;
|
|
1574
|
+
}>;
|
|
1575
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1576
|
+
value: string;
|
|
1577
|
+
to: string;
|
|
1578
|
+
data: string;
|
|
1579
|
+
from?: string;
|
|
1580
|
+
type?: number;
|
|
1581
|
+
nonce?: number;
|
|
1582
|
+
gasLimit?: bigint;
|
|
1583
|
+
gasPrice?: bigint;
|
|
1584
|
+
maxPriorityFeePerGas?: bigint;
|
|
1585
|
+
maxFeePerGas?: bigint;
|
|
1586
|
+
chainId?: bigint;
|
|
1587
|
+
accessList?: import("ethers").AccessList;
|
|
1588
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1589
|
+
customData?: any;
|
|
1590
|
+
blockTag?: import("ethers").BlockTag;
|
|
1591
|
+
enableCcipRead?: boolean;
|
|
1592
|
+
}>;
|
|
1593
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1594
|
+
value: string;
|
|
1595
|
+
to: string;
|
|
1596
|
+
data: string;
|
|
1597
|
+
from?: string;
|
|
1598
|
+
type?: number;
|
|
1599
|
+
nonce?: number;
|
|
1600
|
+
gasLimit?: bigint;
|
|
1601
|
+
gasPrice?: bigint;
|
|
1602
|
+
maxPriorityFeePerGas?: bigint;
|
|
1603
|
+
maxFeePerGas?: bigint;
|
|
1604
|
+
chainId?: bigint;
|
|
1605
|
+
accessList?: import("ethers").AccessList;
|
|
1606
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1607
|
+
customData?: any;
|
|
1608
|
+
blockTag?: import("ethers").BlockTag;
|
|
1609
|
+
enableCcipRead?: boolean;
|
|
1610
|
+
}>;
|
|
863
1611
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
864
1612
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
865
1613
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -1168,11 +1916,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1168
1916
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1169
1917
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1170
1918
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1171
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
1919
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
1920
|
+
value: string;
|
|
1921
|
+
to: string;
|
|
1922
|
+
data: string;
|
|
1923
|
+
from?: string;
|
|
1924
|
+
type?: number;
|
|
1925
|
+
nonce?: number;
|
|
1926
|
+
gasLimit?: bigint;
|
|
1927
|
+
gasPrice?: bigint;
|
|
1928
|
+
maxPriorityFeePerGas?: bigint;
|
|
1929
|
+
maxFeePerGas?: bigint;
|
|
1930
|
+
chainId?: bigint;
|
|
1931
|
+
accessList?: import("ethers").AccessList;
|
|
1932
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1933
|
+
customData?: any;
|
|
1934
|
+
blockTag?: import("ethers").BlockTag;
|
|
1935
|
+
enableCcipRead?: boolean;
|
|
1936
|
+
}>;
|
|
1172
1937
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1173
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
1174
|
-
|
|
1175
|
-
|
|
1938
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
1939
|
+
value: string;
|
|
1940
|
+
to: string;
|
|
1941
|
+
data: string;
|
|
1942
|
+
from?: string;
|
|
1943
|
+
type?: number;
|
|
1944
|
+
nonce?: number;
|
|
1945
|
+
gasLimit?: bigint;
|
|
1946
|
+
gasPrice?: bigint;
|
|
1947
|
+
maxPriorityFeePerGas?: bigint;
|
|
1948
|
+
maxFeePerGas?: bigint;
|
|
1949
|
+
chainId?: bigint;
|
|
1950
|
+
accessList?: import("ethers").AccessList;
|
|
1951
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1952
|
+
customData?: any;
|
|
1953
|
+
blockTag?: import("ethers").BlockTag;
|
|
1954
|
+
enableCcipRead?: boolean;
|
|
1955
|
+
}>;
|
|
1956
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1957
|
+
value: string;
|
|
1958
|
+
to: string;
|
|
1959
|
+
data: string;
|
|
1960
|
+
from?: string;
|
|
1961
|
+
type?: number;
|
|
1962
|
+
nonce?: number;
|
|
1963
|
+
gasLimit?: bigint;
|
|
1964
|
+
gasPrice?: bigint;
|
|
1965
|
+
maxPriorityFeePerGas?: bigint;
|
|
1966
|
+
maxFeePerGas?: bigint;
|
|
1967
|
+
chainId?: bigint;
|
|
1968
|
+
accessList?: import("ethers").AccessList;
|
|
1969
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1970
|
+
customData?: any;
|
|
1971
|
+
blockTag?: import("ethers").BlockTag;
|
|
1972
|
+
enableCcipRead?: boolean;
|
|
1973
|
+
}>;
|
|
1974
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1975
|
+
value: string;
|
|
1976
|
+
to: string;
|
|
1977
|
+
data: string;
|
|
1978
|
+
from?: string;
|
|
1979
|
+
type?: number;
|
|
1980
|
+
nonce?: number;
|
|
1981
|
+
gasLimit?: bigint;
|
|
1982
|
+
gasPrice?: bigint;
|
|
1983
|
+
maxPriorityFeePerGas?: bigint;
|
|
1984
|
+
maxFeePerGas?: bigint;
|
|
1985
|
+
chainId?: bigint;
|
|
1986
|
+
accessList?: import("ethers").AccessList;
|
|
1987
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
1988
|
+
customData?: any;
|
|
1989
|
+
blockTag?: import("ethers").BlockTag;
|
|
1990
|
+
enableCcipRead?: boolean;
|
|
1991
|
+
}>;
|
|
1176
1992
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1177
1993
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1178
1994
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -1200,24 +2016,96 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1200
2016
|
}) => Promise<string>;
|
|
1201
2017
|
signAuthorization: ((params: {
|
|
1202
2018
|
address: string;
|
|
1203
|
-
nonce
|
|
2019
|
+
nonce
|
|
2020
|
+
/**
|
|
2021
|
+
* @Public
|
|
2022
|
+
*/
|
|
2023
|
+
?: number | bigint;
|
|
2024
|
+
chainId?: bigint;
|
|
2025
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2026
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2027
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2028
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2029
|
+
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
2030
|
+
};
|
|
2031
|
+
GNO: ChainWallet<Chain.Gnosis> & {
|
|
2032
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
2033
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
2034
|
+
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
2035
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
2036
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
2037
|
+
value: string;
|
|
2038
|
+
to: string;
|
|
2039
|
+
data: string;
|
|
2040
|
+
from?: string;
|
|
2041
|
+
type?: number;
|
|
2042
|
+
nonce?: number;
|
|
2043
|
+
gasLimit?: bigint;
|
|
2044
|
+
gasPrice?: bigint;
|
|
2045
|
+
maxPriorityFeePerGas?: bigint;
|
|
2046
|
+
maxFeePerGas?: bigint;
|
|
2047
|
+
chainId?: bigint;
|
|
2048
|
+
accessList?: import("ethers").AccessList;
|
|
2049
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2050
|
+
customData?: any;
|
|
2051
|
+
blockTag?: import("ethers").BlockTag;
|
|
2052
|
+
enableCcipRead?: boolean;
|
|
2053
|
+
}>;
|
|
2054
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
2055
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
2056
|
+
value: string;
|
|
2057
|
+
to: string;
|
|
2058
|
+
data: string;
|
|
2059
|
+
from?: string;
|
|
2060
|
+
type?: number;
|
|
2061
|
+
nonce?: number;
|
|
2062
|
+
gasLimit?: bigint;
|
|
2063
|
+
gasPrice?: bigint;
|
|
2064
|
+
maxPriorityFeePerGas?: bigint;
|
|
2065
|
+
maxFeePerGas?: bigint;
|
|
2066
|
+
chainId?: bigint;
|
|
2067
|
+
accessList?: import("ethers").AccessList;
|
|
2068
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2069
|
+
customData?: any;
|
|
2070
|
+
blockTag?: import("ethers").BlockTag;
|
|
2071
|
+
enableCcipRead?: boolean;
|
|
2072
|
+
}>;
|
|
2073
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2074
|
+
value: string;
|
|
2075
|
+
to: string;
|
|
2076
|
+
data: string;
|
|
2077
|
+
from?: string;
|
|
2078
|
+
type?: number;
|
|
2079
|
+
nonce?: number;
|
|
2080
|
+
gasLimit?: bigint;
|
|
2081
|
+
gasPrice?: bigint;
|
|
2082
|
+
maxPriorityFeePerGas?: bigint;
|
|
2083
|
+
maxFeePerGas?: bigint;
|
|
2084
|
+
chainId?: bigint;
|
|
2085
|
+
accessList?: import("ethers").AccessList;
|
|
2086
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2087
|
+
customData?: any;
|
|
2088
|
+
blockTag?: import("ethers").BlockTag;
|
|
2089
|
+
enableCcipRead?: boolean;
|
|
2090
|
+
}>;
|
|
2091
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2092
|
+
value: string;
|
|
2093
|
+
to: string;
|
|
2094
|
+
data: string;
|
|
2095
|
+
from?: string;
|
|
2096
|
+
type?: number;
|
|
2097
|
+
nonce?: number;
|
|
2098
|
+
gasLimit?: bigint;
|
|
2099
|
+
gasPrice?: bigint;
|
|
2100
|
+
maxPriorityFeePerGas?: bigint;
|
|
2101
|
+
maxFeePerGas?: bigint;
|
|
1204
2102
|
chainId?: bigint;
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
GNO: ChainWallet<Chain.Gnosis> & {
|
|
1212
|
-
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
1213
|
-
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1214
|
-
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1215
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1216
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1217
|
-
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1218
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1219
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1220
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
2103
|
+
accessList?: import("ethers").AccessList;
|
|
2104
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2105
|
+
customData?: any;
|
|
2106
|
+
blockTag?: import("ethers").BlockTag;
|
|
2107
|
+
enableCcipRead?: boolean;
|
|
2108
|
+
}>;
|
|
1221
2109
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1222
2110
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1223
2111
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -1290,11 +2178,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1290
2178
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1291
2179
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1292
2180
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1293
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
2181
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
2182
|
+
value: string;
|
|
2183
|
+
to: string;
|
|
2184
|
+
data: string;
|
|
2185
|
+
from?: string;
|
|
2186
|
+
type?: number;
|
|
2187
|
+
nonce?: number;
|
|
2188
|
+
gasLimit?: bigint;
|
|
2189
|
+
gasPrice?: bigint;
|
|
2190
|
+
maxPriorityFeePerGas?: bigint;
|
|
2191
|
+
maxFeePerGas?: bigint;
|
|
2192
|
+
chainId?: bigint;
|
|
2193
|
+
accessList?: import("ethers").AccessList;
|
|
2194
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2195
|
+
customData?: any;
|
|
2196
|
+
blockTag?: import("ethers").BlockTag;
|
|
2197
|
+
enableCcipRead?: boolean;
|
|
2198
|
+
}>;
|
|
1294
2199
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1295
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
1296
|
-
|
|
1297
|
-
|
|
2200
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
2201
|
+
value: string;
|
|
2202
|
+
to: string;
|
|
2203
|
+
data: string;
|
|
2204
|
+
from?: string;
|
|
2205
|
+
type?: number;
|
|
2206
|
+
nonce?: number;
|
|
2207
|
+
gasLimit?: bigint;
|
|
2208
|
+
gasPrice?: bigint;
|
|
2209
|
+
maxPriorityFeePerGas?: bigint;
|
|
2210
|
+
maxFeePerGas?: bigint;
|
|
2211
|
+
chainId?: bigint;
|
|
2212
|
+
accessList?: import("ethers").AccessList;
|
|
2213
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2214
|
+
customData?: any;
|
|
2215
|
+
blockTag?: import("ethers").BlockTag;
|
|
2216
|
+
enableCcipRead?: boolean;
|
|
2217
|
+
}>;
|
|
2218
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2219
|
+
value: string;
|
|
2220
|
+
to: string;
|
|
2221
|
+
data: string;
|
|
2222
|
+
from?: string;
|
|
2223
|
+
type?: number;
|
|
2224
|
+
nonce?: number;
|
|
2225
|
+
gasLimit?: bigint;
|
|
2226
|
+
gasPrice?: bigint;
|
|
2227
|
+
maxPriorityFeePerGas?: bigint;
|
|
2228
|
+
maxFeePerGas?: bigint;
|
|
2229
|
+
chainId?: bigint;
|
|
2230
|
+
accessList?: import("ethers").AccessList;
|
|
2231
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2232
|
+
customData?: any;
|
|
2233
|
+
blockTag?: import("ethers").BlockTag;
|
|
2234
|
+
enableCcipRead?: boolean;
|
|
2235
|
+
}>;
|
|
2236
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2237
|
+
value: string;
|
|
2238
|
+
to: string;
|
|
2239
|
+
data: string;
|
|
2240
|
+
from?: string;
|
|
2241
|
+
type?: number;
|
|
2242
|
+
nonce?: number;
|
|
2243
|
+
gasLimit?: bigint;
|
|
2244
|
+
gasPrice?: bigint;
|
|
2245
|
+
maxPriorityFeePerGas?: bigint;
|
|
2246
|
+
maxFeePerGas?: bigint;
|
|
2247
|
+
chainId?: bigint;
|
|
2248
|
+
accessList?: import("ethers").AccessList;
|
|
2249
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2250
|
+
customData?: any;
|
|
2251
|
+
blockTag?: import("ethers").BlockTag;
|
|
2252
|
+
enableCcipRead?: boolean;
|
|
2253
|
+
}>;
|
|
1298
2254
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1299
2255
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1300
2256
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -1552,11 +2508,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1552
2508
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1553
2509
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1554
2510
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1555
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
2511
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
2512
|
+
value: string;
|
|
2513
|
+
to: string;
|
|
2514
|
+
data: string;
|
|
2515
|
+
from?: string;
|
|
2516
|
+
type?: number;
|
|
2517
|
+
nonce?: number;
|
|
2518
|
+
gasLimit?: bigint;
|
|
2519
|
+
gasPrice?: bigint;
|
|
2520
|
+
maxPriorityFeePerGas?: bigint;
|
|
2521
|
+
maxFeePerGas?: bigint;
|
|
2522
|
+
chainId?: bigint;
|
|
2523
|
+
accessList?: import("ethers").AccessList;
|
|
2524
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2525
|
+
customData?: any;
|
|
2526
|
+
blockTag?: import("ethers").BlockTag;
|
|
2527
|
+
enableCcipRead?: boolean;
|
|
2528
|
+
}>;
|
|
1556
2529
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1557
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
1558
|
-
|
|
1559
|
-
|
|
2530
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
2531
|
+
value: string;
|
|
2532
|
+
to: string;
|
|
2533
|
+
data: string;
|
|
2534
|
+
from?: string;
|
|
2535
|
+
type?: number;
|
|
2536
|
+
nonce?: number;
|
|
2537
|
+
gasLimit?: bigint;
|
|
2538
|
+
gasPrice?: bigint;
|
|
2539
|
+
maxPriorityFeePerGas?: bigint;
|
|
2540
|
+
maxFeePerGas?: bigint;
|
|
2541
|
+
chainId?: bigint;
|
|
2542
|
+
accessList?: import("ethers").AccessList;
|
|
2543
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2544
|
+
customData?: any;
|
|
2545
|
+
blockTag?: import("ethers").BlockTag;
|
|
2546
|
+
enableCcipRead?: boolean;
|
|
2547
|
+
}>;
|
|
2548
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2549
|
+
value: string;
|
|
2550
|
+
to: string;
|
|
2551
|
+
data: string;
|
|
2552
|
+
from?: string;
|
|
2553
|
+
type?: number;
|
|
2554
|
+
nonce?: number;
|
|
2555
|
+
gasLimit?: bigint;
|
|
2556
|
+
gasPrice?: bigint;
|
|
2557
|
+
maxPriorityFeePerGas?: bigint;
|
|
2558
|
+
maxFeePerGas?: bigint;
|
|
2559
|
+
chainId?: bigint;
|
|
2560
|
+
accessList?: import("ethers").AccessList;
|
|
2561
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2562
|
+
customData?: any;
|
|
2563
|
+
blockTag?: import("ethers").BlockTag;
|
|
2564
|
+
enableCcipRead?: boolean;
|
|
2565
|
+
}>;
|
|
2566
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2567
|
+
value: string;
|
|
2568
|
+
to: string;
|
|
2569
|
+
data: string;
|
|
2570
|
+
from?: string;
|
|
2571
|
+
type?: number;
|
|
2572
|
+
nonce?: number;
|
|
2573
|
+
gasLimit?: bigint;
|
|
2574
|
+
gasPrice?: bigint;
|
|
2575
|
+
maxPriorityFeePerGas?: bigint;
|
|
2576
|
+
maxFeePerGas?: bigint;
|
|
2577
|
+
chainId?: bigint;
|
|
2578
|
+
accessList?: import("ethers").AccessList;
|
|
2579
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2580
|
+
customData?: any;
|
|
2581
|
+
blockTag?: import("ethers").BlockTag;
|
|
2582
|
+
enableCcipRead?: boolean;
|
|
2583
|
+
}>;
|
|
1560
2584
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1561
2585
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1562
2586
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -1598,11 +2622,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1598
2622
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1599
2623
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1600
2624
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1601
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
2625
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
2626
|
+
value: string;
|
|
2627
|
+
to: string;
|
|
2628
|
+
data: string;
|
|
2629
|
+
from?: string;
|
|
2630
|
+
type?: number;
|
|
2631
|
+
nonce?: number;
|
|
2632
|
+
gasLimit?: bigint;
|
|
2633
|
+
gasPrice?: bigint;
|
|
2634
|
+
maxPriorityFeePerGas?: bigint;
|
|
2635
|
+
maxFeePerGas?: bigint;
|
|
2636
|
+
chainId?: bigint;
|
|
2637
|
+
accessList?: import("ethers").AccessList;
|
|
2638
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2639
|
+
customData?: any;
|
|
2640
|
+
blockTag?: import("ethers").BlockTag;
|
|
2641
|
+
enableCcipRead?: boolean;
|
|
2642
|
+
}>;
|
|
1602
2643
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1603
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
1604
|
-
|
|
1605
|
-
|
|
2644
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
2645
|
+
value: string;
|
|
2646
|
+
to: string;
|
|
2647
|
+
data: string;
|
|
2648
|
+
from?: string;
|
|
2649
|
+
type?: number;
|
|
2650
|
+
nonce?: number;
|
|
2651
|
+
gasLimit?: bigint;
|
|
2652
|
+
gasPrice?: bigint;
|
|
2653
|
+
maxPriorityFeePerGas?: bigint;
|
|
2654
|
+
maxFeePerGas?: bigint;
|
|
2655
|
+
chainId?: bigint;
|
|
2656
|
+
accessList?: import("ethers").AccessList;
|
|
2657
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2658
|
+
customData?: any;
|
|
2659
|
+
blockTag?: import("ethers").BlockTag;
|
|
2660
|
+
enableCcipRead?: boolean;
|
|
2661
|
+
}>;
|
|
2662
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2663
|
+
value: string;
|
|
2664
|
+
to: string;
|
|
2665
|
+
data: string;
|
|
2666
|
+
from?: string;
|
|
2667
|
+
type?: number;
|
|
2668
|
+
nonce?: number;
|
|
2669
|
+
gasLimit?: bigint;
|
|
2670
|
+
gasPrice?: bigint;
|
|
2671
|
+
maxPriorityFeePerGas?: bigint;
|
|
2672
|
+
maxFeePerGas?: bigint;
|
|
2673
|
+
chainId?: bigint;
|
|
2674
|
+
accessList?: import("ethers").AccessList;
|
|
2675
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2676
|
+
customData?: any;
|
|
2677
|
+
blockTag?: import("ethers").BlockTag;
|
|
2678
|
+
enableCcipRead?: boolean;
|
|
2679
|
+
}>;
|
|
2680
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2681
|
+
value: string;
|
|
2682
|
+
to: string;
|
|
2683
|
+
data: string;
|
|
2684
|
+
from?: string;
|
|
2685
|
+
type?: number;
|
|
2686
|
+
nonce?: number;
|
|
2687
|
+
gasLimit?: bigint;
|
|
2688
|
+
gasPrice?: bigint;
|
|
2689
|
+
maxPriorityFeePerGas?: bigint;
|
|
2690
|
+
maxFeePerGas?: bigint;
|
|
2691
|
+
chainId?: bigint;
|
|
2692
|
+
accessList?: import("ethers").AccessList;
|
|
2693
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2694
|
+
customData?: any;
|
|
2695
|
+
blockTag?: import("ethers").BlockTag;
|
|
2696
|
+
enableCcipRead?: boolean;
|
|
2697
|
+
}>;
|
|
1606
2698
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1607
2699
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1608
2700
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -1643,11 +2735,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1643
2735
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1644
2736
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1645
2737
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1646
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
2738
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
2739
|
+
value: string;
|
|
2740
|
+
to: string;
|
|
2741
|
+
data: string;
|
|
2742
|
+
from?: string;
|
|
2743
|
+
type?: number;
|
|
2744
|
+
nonce?: number;
|
|
2745
|
+
gasLimit?: bigint;
|
|
2746
|
+
gasPrice?: bigint;
|
|
2747
|
+
maxPriorityFeePerGas?: bigint;
|
|
2748
|
+
maxFeePerGas?: bigint;
|
|
2749
|
+
chainId?: bigint;
|
|
2750
|
+
accessList?: import("ethers").AccessList;
|
|
2751
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2752
|
+
customData?: any;
|
|
2753
|
+
blockTag?: import("ethers").BlockTag;
|
|
2754
|
+
enableCcipRead?: boolean;
|
|
2755
|
+
}>;
|
|
1647
2756
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1648
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
1649
|
-
|
|
1650
|
-
|
|
2757
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
2758
|
+
value: string;
|
|
2759
|
+
to: string;
|
|
2760
|
+
data: string;
|
|
2761
|
+
from?: string;
|
|
2762
|
+
type?: number;
|
|
2763
|
+
nonce?: number;
|
|
2764
|
+
gasLimit?: bigint;
|
|
2765
|
+
gasPrice?: bigint;
|
|
2766
|
+
maxPriorityFeePerGas?: bigint;
|
|
2767
|
+
maxFeePerGas?: bigint;
|
|
2768
|
+
chainId?: bigint;
|
|
2769
|
+
accessList?: import("ethers").AccessList;
|
|
2770
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2771
|
+
customData?: any;
|
|
2772
|
+
blockTag?: import("ethers").BlockTag;
|
|
2773
|
+
enableCcipRead?: boolean;
|
|
2774
|
+
}>;
|
|
2775
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2776
|
+
value: string;
|
|
2777
|
+
to: string;
|
|
2778
|
+
data: string;
|
|
2779
|
+
from?: string;
|
|
2780
|
+
type?: number;
|
|
2781
|
+
nonce?: number;
|
|
2782
|
+
gasLimit?: bigint;
|
|
2783
|
+
gasPrice?: bigint;
|
|
2784
|
+
maxPriorityFeePerGas?: bigint;
|
|
2785
|
+
maxFeePerGas?: bigint;
|
|
2786
|
+
chainId?: bigint;
|
|
2787
|
+
accessList?: import("ethers").AccessList;
|
|
2788
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2789
|
+
customData?: any;
|
|
2790
|
+
blockTag?: import("ethers").BlockTag;
|
|
2791
|
+
enableCcipRead?: boolean;
|
|
2792
|
+
}>;
|
|
2793
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2794
|
+
value: string;
|
|
2795
|
+
to: string;
|
|
2796
|
+
data: string;
|
|
2797
|
+
from?: string;
|
|
2798
|
+
type?: number;
|
|
2799
|
+
nonce?: number;
|
|
2800
|
+
gasLimit?: bigint;
|
|
2801
|
+
gasPrice?: bigint;
|
|
2802
|
+
maxPriorityFeePerGas?: bigint;
|
|
2803
|
+
maxFeePerGas?: bigint;
|
|
2804
|
+
chainId?: bigint;
|
|
2805
|
+
accessList?: import("ethers").AccessList;
|
|
2806
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2807
|
+
customData?: any;
|
|
2808
|
+
blockTag?: import("ethers").BlockTag;
|
|
2809
|
+
enableCcipRead?: boolean;
|
|
2810
|
+
}>;
|
|
1651
2811
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1652
2812
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1653
2813
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -1771,11 +2931,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1771
2931
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1772
2932
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1773
2933
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1774
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
2934
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
2935
|
+
value: string;
|
|
2936
|
+
to: string;
|
|
2937
|
+
data: string;
|
|
2938
|
+
from?: string;
|
|
2939
|
+
type?: number;
|
|
2940
|
+
nonce?: number;
|
|
2941
|
+
gasLimit?: bigint;
|
|
2942
|
+
gasPrice?: bigint;
|
|
2943
|
+
maxPriorityFeePerGas?: bigint;
|
|
2944
|
+
maxFeePerGas?: bigint;
|
|
2945
|
+
chainId?: bigint;
|
|
2946
|
+
accessList?: import("ethers").AccessList;
|
|
2947
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2948
|
+
customData?: any;
|
|
2949
|
+
blockTag?: import("ethers").BlockTag;
|
|
2950
|
+
enableCcipRead?: boolean;
|
|
2951
|
+
}>;
|
|
1775
2952
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1776
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
1777
|
-
|
|
1778
|
-
|
|
2953
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
2954
|
+
value: string;
|
|
2955
|
+
to: string;
|
|
2956
|
+
data: string;
|
|
2957
|
+
from?: string;
|
|
2958
|
+
type?: number;
|
|
2959
|
+
nonce?: number;
|
|
2960
|
+
gasLimit?: bigint;
|
|
2961
|
+
gasPrice?: bigint;
|
|
2962
|
+
maxPriorityFeePerGas?: bigint;
|
|
2963
|
+
maxFeePerGas?: bigint;
|
|
2964
|
+
chainId?: bigint;
|
|
2965
|
+
accessList?: import("ethers").AccessList;
|
|
2966
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2967
|
+
customData?: any;
|
|
2968
|
+
blockTag?: import("ethers").BlockTag;
|
|
2969
|
+
enableCcipRead?: boolean;
|
|
2970
|
+
}>;
|
|
2971
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2972
|
+
value: string;
|
|
2973
|
+
to: string;
|
|
2974
|
+
data: string;
|
|
2975
|
+
from?: string;
|
|
2976
|
+
type?: number;
|
|
2977
|
+
nonce?: number;
|
|
2978
|
+
gasLimit?: bigint;
|
|
2979
|
+
gasPrice?: bigint;
|
|
2980
|
+
maxPriorityFeePerGas?: bigint;
|
|
2981
|
+
maxFeePerGas?: bigint;
|
|
2982
|
+
chainId?: bigint;
|
|
2983
|
+
accessList?: import("ethers").AccessList;
|
|
2984
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
2985
|
+
customData?: any;
|
|
2986
|
+
blockTag?: import("ethers").BlockTag;
|
|
2987
|
+
enableCcipRead?: boolean;
|
|
2988
|
+
}>;
|
|
2989
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2990
|
+
value: string;
|
|
2991
|
+
to: string;
|
|
2992
|
+
data: string;
|
|
2993
|
+
from?: string;
|
|
2994
|
+
type?: number;
|
|
2995
|
+
nonce?: number;
|
|
2996
|
+
gasLimit?: bigint;
|
|
2997
|
+
gasPrice?: bigint;
|
|
2998
|
+
maxPriorityFeePerGas?: bigint;
|
|
2999
|
+
maxFeePerGas?: bigint;
|
|
3000
|
+
chainId?: bigint;
|
|
3001
|
+
accessList?: import("ethers").AccessList;
|
|
3002
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3003
|
+
customData?: any;
|
|
3004
|
+
blockTag?: import("ethers").BlockTag;
|
|
3005
|
+
enableCcipRead?: boolean;
|
|
3006
|
+
}>;
|
|
1779
3007
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1780
3008
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1781
3009
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -1809,11 +3037,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1809
3037
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1810
3038
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1811
3039
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1812
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
3040
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
3041
|
+
value: string;
|
|
3042
|
+
to: string;
|
|
3043
|
+
data: string;
|
|
3044
|
+
from?: string;
|
|
3045
|
+
type?: number;
|
|
3046
|
+
nonce?: number;
|
|
3047
|
+
gasLimit?: bigint;
|
|
3048
|
+
gasPrice?: bigint;
|
|
3049
|
+
maxPriorityFeePerGas?: bigint;
|
|
3050
|
+
maxFeePerGas?: bigint;
|
|
3051
|
+
chainId?: bigint;
|
|
3052
|
+
accessList?: import("ethers").AccessList;
|
|
3053
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3054
|
+
customData?: any;
|
|
3055
|
+
blockTag?: import("ethers").BlockTag;
|
|
3056
|
+
enableCcipRead?: boolean;
|
|
3057
|
+
}>;
|
|
1813
3058
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1814
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
1815
|
-
|
|
1816
|
-
|
|
3059
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
3060
|
+
value: string;
|
|
3061
|
+
to: string;
|
|
3062
|
+
data: string;
|
|
3063
|
+
from?: string;
|
|
3064
|
+
type?: number;
|
|
3065
|
+
nonce?: number;
|
|
3066
|
+
gasLimit?: bigint;
|
|
3067
|
+
gasPrice?: bigint;
|
|
3068
|
+
maxPriorityFeePerGas?: bigint;
|
|
3069
|
+
maxFeePerGas?: bigint;
|
|
3070
|
+
chainId?: bigint;
|
|
3071
|
+
accessList?: import("ethers").AccessList;
|
|
3072
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3073
|
+
customData?: any;
|
|
3074
|
+
blockTag?: import("ethers").BlockTag;
|
|
3075
|
+
enableCcipRead?: boolean;
|
|
3076
|
+
}>;
|
|
3077
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3078
|
+
value: string;
|
|
3079
|
+
to: string;
|
|
3080
|
+
data: string;
|
|
3081
|
+
from?: string;
|
|
3082
|
+
type?: number;
|
|
3083
|
+
nonce?: number;
|
|
3084
|
+
gasLimit?: bigint;
|
|
3085
|
+
gasPrice?: bigint;
|
|
3086
|
+
maxPriorityFeePerGas?: bigint;
|
|
3087
|
+
maxFeePerGas?: bigint;
|
|
3088
|
+
chainId?: bigint;
|
|
3089
|
+
accessList?: import("ethers").AccessList;
|
|
3090
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3091
|
+
customData?: any;
|
|
3092
|
+
blockTag?: import("ethers").BlockTag;
|
|
3093
|
+
enableCcipRead?: boolean;
|
|
3094
|
+
}>;
|
|
3095
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3096
|
+
value: string;
|
|
3097
|
+
to: string;
|
|
3098
|
+
data: string;
|
|
3099
|
+
from?: string;
|
|
3100
|
+
type?: number;
|
|
3101
|
+
nonce?: number;
|
|
3102
|
+
gasLimit?: bigint;
|
|
3103
|
+
gasPrice?: bigint;
|
|
3104
|
+
maxPriorityFeePerGas?: bigint;
|
|
3105
|
+
maxFeePerGas?: bigint;
|
|
3106
|
+
chainId?: bigint;
|
|
3107
|
+
accessList?: import("ethers").AccessList;
|
|
3108
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3109
|
+
customData?: any;
|
|
3110
|
+
blockTag?: import("ethers").BlockTag;
|
|
3111
|
+
enableCcipRead?: boolean;
|
|
3112
|
+
}>;
|
|
1817
3113
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1818
3114
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1819
3115
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -1876,11 +3172,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1876
3172
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1877
3173
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1878
3174
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1879
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
3175
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
3176
|
+
value: string;
|
|
3177
|
+
to: string;
|
|
3178
|
+
data: string;
|
|
3179
|
+
from?: string;
|
|
3180
|
+
type?: number;
|
|
3181
|
+
nonce?: number;
|
|
3182
|
+
gasLimit?: bigint;
|
|
3183
|
+
gasPrice?: bigint;
|
|
3184
|
+
maxPriorityFeePerGas?: bigint;
|
|
3185
|
+
maxFeePerGas?: bigint;
|
|
3186
|
+
chainId?: bigint;
|
|
3187
|
+
accessList?: import("ethers").AccessList;
|
|
3188
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3189
|
+
customData?: any;
|
|
3190
|
+
blockTag?: import("ethers").BlockTag;
|
|
3191
|
+
enableCcipRead?: boolean;
|
|
3192
|
+
}>;
|
|
1880
3193
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1881
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
1882
|
-
|
|
1883
|
-
|
|
3194
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
3195
|
+
value: string;
|
|
3196
|
+
to: string;
|
|
3197
|
+
data: string;
|
|
3198
|
+
from?: string;
|
|
3199
|
+
type?: number;
|
|
3200
|
+
nonce?: number;
|
|
3201
|
+
gasLimit?: bigint;
|
|
3202
|
+
gasPrice?: bigint;
|
|
3203
|
+
maxPriorityFeePerGas?: bigint;
|
|
3204
|
+
maxFeePerGas?: bigint;
|
|
3205
|
+
chainId?: bigint;
|
|
3206
|
+
accessList?: import("ethers").AccessList;
|
|
3207
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3208
|
+
customData?: any;
|
|
3209
|
+
blockTag?: import("ethers").BlockTag;
|
|
3210
|
+
enableCcipRead?: boolean;
|
|
3211
|
+
}>;
|
|
3212
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3213
|
+
value: string;
|
|
3214
|
+
to: string;
|
|
3215
|
+
data: string;
|
|
3216
|
+
from?: string;
|
|
3217
|
+
type?: number;
|
|
3218
|
+
nonce?: number;
|
|
3219
|
+
gasLimit?: bigint;
|
|
3220
|
+
gasPrice?: bigint;
|
|
3221
|
+
maxPriorityFeePerGas?: bigint;
|
|
3222
|
+
maxFeePerGas?: bigint;
|
|
3223
|
+
chainId?: bigint;
|
|
3224
|
+
accessList?: import("ethers").AccessList;
|
|
3225
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3226
|
+
customData?: any;
|
|
3227
|
+
blockTag?: import("ethers").BlockTag;
|
|
3228
|
+
enableCcipRead?: boolean;
|
|
3229
|
+
}>;
|
|
3230
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3231
|
+
value: string;
|
|
3232
|
+
to: string;
|
|
3233
|
+
data: string;
|
|
3234
|
+
from?: string;
|
|
3235
|
+
type?: number;
|
|
3236
|
+
nonce?: number;
|
|
3237
|
+
gasLimit?: bigint;
|
|
3238
|
+
gasPrice?: bigint;
|
|
3239
|
+
maxPriorityFeePerGas?: bigint;
|
|
3240
|
+
maxFeePerGas?: bigint;
|
|
3241
|
+
chainId?: bigint;
|
|
3242
|
+
accessList?: import("ethers").AccessList;
|
|
3243
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3244
|
+
customData?: any;
|
|
3245
|
+
blockTag?: import("ethers").BlockTag;
|
|
3246
|
+
enableCcipRead?: boolean;
|
|
3247
|
+
}>;
|
|
1884
3248
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1885
3249
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1886
3250
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -1919,7 +3283,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1919
3283
|
XRD: ChainWallet<Chain.Radix> & {
|
|
1920
3284
|
getAddress: () => string;
|
|
1921
3285
|
getBalance: (address: string) => Promise<AssetValue[]>;
|
|
1922
|
-
|
|
3286
|
+
getNetworkApi: () => Promise<import("@radixdlt/babylon-gateway-api-sdk").GatewayApiClient>;
|
|
1923
3287
|
signAndBroadcast: (params: any) => Promise<string>;
|
|
1924
3288
|
validateAddress: typeof import("@swapkit/toolboxes/radix/index").validateRadixAddress;
|
|
1925
3289
|
};
|
|
@@ -1939,7 +3303,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1939
3303
|
}) => Promise<import("xrpl").Payment>;
|
|
1940
3304
|
disconnect: () => void;
|
|
1941
3305
|
estimateTransactionFee: () => Promise<AssetValue>;
|
|
1942
|
-
getAddress: () =>
|
|
3306
|
+
getAddress: () => Promise<string>;
|
|
1943
3307
|
getBalance: (checkAddress?: string) => Promise<AssetValue[]>;
|
|
1944
3308
|
getTrustLines: (address?: string) => Promise<import("@swapkit/toolboxes/ripple/index").TrustLineInfo[]>;
|
|
1945
3309
|
hasTrustLine: ({ address, currency, issuer, }: {
|
|
@@ -1950,10 +3314,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1950
3314
|
setTrustLine: ({ currency, issuer, limit, sender }: import("@swapkit/toolboxes/ripple/index").TrustLineParams) => Promise<import("xrpl").Transaction>;
|
|
1951
3315
|
setTrustLineAndBroadcast: (params: import("@swapkit/toolboxes/ripple/index").TrustLineParams) => Promise<string>;
|
|
1952
3316
|
signAndBroadcastTransaction: (tx: import("xrpl").Transaction) => Promise<string>;
|
|
1953
|
-
signTransaction: (tx: import("xrpl").Transaction) => {
|
|
1954
|
-
tx_blob: string;
|
|
1955
|
-
hash: string;
|
|
1956
|
-
} | Promise<{
|
|
3317
|
+
signTransaction: (tx: import("xrpl").Transaction) => Promise<{
|
|
1957
3318
|
tx_blob: string;
|
|
1958
3319
|
hash: string;
|
|
1959
3320
|
}>;
|
|
@@ -1987,11 +3348,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1987
3348
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1988
3349
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1989
3350
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1990
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
3351
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
3352
|
+
value: string;
|
|
3353
|
+
to: string;
|
|
3354
|
+
data: string;
|
|
3355
|
+
from?: string;
|
|
3356
|
+
type?: number;
|
|
3357
|
+
nonce?: number;
|
|
3358
|
+
gasLimit?: bigint;
|
|
3359
|
+
gasPrice?: bigint;
|
|
3360
|
+
maxPriorityFeePerGas?: bigint;
|
|
3361
|
+
maxFeePerGas?: bigint;
|
|
3362
|
+
chainId?: bigint;
|
|
3363
|
+
accessList?: import("ethers").AccessList;
|
|
3364
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3365
|
+
customData?: any;
|
|
3366
|
+
blockTag?: import("ethers").BlockTag;
|
|
3367
|
+
enableCcipRead?: boolean;
|
|
3368
|
+
}>;
|
|
1991
3369
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1992
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
1993
|
-
|
|
1994
|
-
|
|
3370
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
3371
|
+
value: string;
|
|
3372
|
+
to: string;
|
|
3373
|
+
data: string;
|
|
3374
|
+
from?: string;
|
|
3375
|
+
type?: number;
|
|
3376
|
+
nonce?: number;
|
|
3377
|
+
gasLimit?: bigint;
|
|
3378
|
+
gasPrice?: bigint;
|
|
3379
|
+
maxPriorityFeePerGas?: bigint;
|
|
3380
|
+
maxFeePerGas?: bigint;
|
|
3381
|
+
chainId?: bigint;
|
|
3382
|
+
accessList?: import("ethers").AccessList;
|
|
3383
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3384
|
+
customData?: any;
|
|
3385
|
+
blockTag?: import("ethers").BlockTag;
|
|
3386
|
+
enableCcipRead?: boolean;
|
|
3387
|
+
}>;
|
|
3388
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3389
|
+
value: string;
|
|
3390
|
+
to: string;
|
|
3391
|
+
data: string;
|
|
3392
|
+
from?: string;
|
|
3393
|
+
type?: number;
|
|
3394
|
+
nonce?: number;
|
|
3395
|
+
gasLimit?: bigint;
|
|
3396
|
+
gasPrice?: bigint;
|
|
3397
|
+
maxPriorityFeePerGas?: bigint;
|
|
3398
|
+
maxFeePerGas?: bigint;
|
|
3399
|
+
chainId?: bigint;
|
|
3400
|
+
accessList?: import("ethers").AccessList;
|
|
3401
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3402
|
+
customData?: any;
|
|
3403
|
+
blockTag?: import("ethers").BlockTag;
|
|
3404
|
+
enableCcipRead?: boolean;
|
|
3405
|
+
}>;
|
|
3406
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3407
|
+
value: string;
|
|
3408
|
+
to: string;
|
|
3409
|
+
data: string;
|
|
3410
|
+
from?: string;
|
|
3411
|
+
type?: number;
|
|
3412
|
+
nonce?: number;
|
|
3413
|
+
gasLimit?: bigint;
|
|
3414
|
+
gasPrice?: bigint;
|
|
3415
|
+
maxPriorityFeePerGas?: bigint;
|
|
3416
|
+
maxFeePerGas?: bigint;
|
|
3417
|
+
chainId?: bigint;
|
|
3418
|
+
accessList?: import("ethers").AccessList;
|
|
3419
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3420
|
+
customData?: any;
|
|
3421
|
+
blockTag?: import("ethers").BlockTag;
|
|
3422
|
+
enableCcipRead?: boolean;
|
|
3423
|
+
}>;
|
|
1995
3424
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1996
3425
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1997
3426
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -2088,11 +3517,11 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2088
3517
|
};
|
|
2089
3518
|
THOR: ChainWallet<Chain.THORChain> & import("@swapkit/toolboxes/cosmos").ThorchainWallet;
|
|
2090
3519
|
TON: ChainWallet<Chain.Ton> & {
|
|
2091
|
-
broadcastTransaction: (transferCell: import("@ton/
|
|
2092
|
-
createTransaction: ({ sender, ...params }: GenericTransferParams & {
|
|
3520
|
+
broadcastTransaction: (transferCell: import("@ton/core").Cell) => Promise<string>;
|
|
3521
|
+
createTransaction: ({ sender, sweep, ...params }: GenericTransferParams & {
|
|
2093
3522
|
sender?: string;
|
|
2094
3523
|
sweep?: boolean;
|
|
2095
|
-
}) => Promise<import("@swapkit/toolboxes/ton/types").
|
|
3524
|
+
}) => Promise<import("@swapkit/toolboxes/ton/types").TONToolboxTransaction>;
|
|
2096
3525
|
estimateTransactionFee: ({ sender, ...params }: GenericTransferParams & {
|
|
2097
3526
|
sender?: string;
|
|
2098
3527
|
}) => Promise<AssetValue>;
|
|
@@ -2101,9 +3530,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2101
3530
|
getJettonWalletAddress: ({ jettonMasterAddress, ownerAddress, }: {
|
|
2102
3531
|
jettonMasterAddress: string;
|
|
2103
3532
|
ownerAddress: string;
|
|
2104
|
-
}) => Promise<import("@ton/
|
|
2105
|
-
sign: (
|
|
2106
|
-
signAndBroadcastTransaction: (
|
|
3533
|
+
}) => Promise<import("@ton/core").Address>;
|
|
3534
|
+
sign: (transactionInput: import("@swapkit/toolboxes/ton/types").TONTransactionInput) => Promise<import("@ton/core").Cell>;
|
|
3535
|
+
signAndBroadcastTransaction: (transaction: import("@swapkit/toolboxes/ton/types").TONTransactionInput) => Promise<string>;
|
|
2107
3536
|
transfer: ({ assetValue, recipient, memo, sweep }: GenericTransferParams & {
|
|
2108
3537
|
sweep?: boolean;
|
|
2109
3538
|
}) => Promise<string>;
|
|
@@ -2131,11 +3560,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2131
3560
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
2132
3561
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
2133
3562
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
2134
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
3563
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
3564
|
+
value: string;
|
|
3565
|
+
to: string;
|
|
3566
|
+
data: string;
|
|
3567
|
+
from?: string;
|
|
3568
|
+
type?: number;
|
|
3569
|
+
nonce?: number;
|
|
3570
|
+
gasLimit?: bigint;
|
|
3571
|
+
gasPrice?: bigint;
|
|
3572
|
+
maxPriorityFeePerGas?: bigint;
|
|
3573
|
+
maxFeePerGas?: bigint;
|
|
3574
|
+
chainId?: bigint;
|
|
3575
|
+
accessList?: import("ethers").AccessList;
|
|
3576
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3577
|
+
customData?: any;
|
|
3578
|
+
blockTag?: import("ethers").BlockTag;
|
|
3579
|
+
enableCcipRead?: boolean;
|
|
3580
|
+
}>;
|
|
2135
3581
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
2136
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
2137
|
-
|
|
2138
|
-
|
|
3582
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
3583
|
+
value: string;
|
|
3584
|
+
to: string;
|
|
3585
|
+
data: string;
|
|
3586
|
+
from?: string;
|
|
3587
|
+
type?: number;
|
|
3588
|
+
nonce?: number;
|
|
3589
|
+
gasLimit?: bigint;
|
|
3590
|
+
gasPrice?: bigint;
|
|
3591
|
+
maxPriorityFeePerGas?: bigint;
|
|
3592
|
+
maxFeePerGas?: bigint;
|
|
3593
|
+
chainId?: bigint;
|
|
3594
|
+
accessList?: import("ethers").AccessList;
|
|
3595
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3596
|
+
customData?: any;
|
|
3597
|
+
blockTag?: import("ethers").BlockTag;
|
|
3598
|
+
enableCcipRead?: boolean;
|
|
3599
|
+
}>;
|
|
3600
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3601
|
+
value: string;
|
|
3602
|
+
to: string;
|
|
3603
|
+
data: string;
|
|
3604
|
+
from?: string;
|
|
3605
|
+
type?: number;
|
|
3606
|
+
nonce?: number;
|
|
3607
|
+
gasLimit?: bigint;
|
|
3608
|
+
gasPrice?: bigint;
|
|
3609
|
+
maxPriorityFeePerGas?: bigint;
|
|
3610
|
+
maxFeePerGas?: bigint;
|
|
3611
|
+
chainId?: bigint;
|
|
3612
|
+
accessList?: import("ethers").AccessList;
|
|
3613
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3614
|
+
customData?: any;
|
|
3615
|
+
blockTag?: import("ethers").BlockTag;
|
|
3616
|
+
enableCcipRead?: boolean;
|
|
3617
|
+
}>;
|
|
3618
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3619
|
+
value: string;
|
|
3620
|
+
to: string;
|
|
3621
|
+
data: string;
|
|
3622
|
+
from?: string;
|
|
3623
|
+
type?: number;
|
|
3624
|
+
nonce?: number;
|
|
3625
|
+
gasLimit?: bigint;
|
|
3626
|
+
gasPrice?: bigint;
|
|
3627
|
+
maxPriorityFeePerGas?: bigint;
|
|
3628
|
+
maxFeePerGas?: bigint;
|
|
3629
|
+
chainId?: bigint;
|
|
3630
|
+
accessList?: import("ethers").AccessList;
|
|
3631
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3632
|
+
customData?: any;
|
|
3633
|
+
blockTag?: import("ethers").BlockTag;
|
|
3634
|
+
enableCcipRead?: boolean;
|
|
3635
|
+
}>;
|
|
2139
3636
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
2140
3637
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
2141
3638
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
@@ -2176,11 +3673,79 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2176
3673
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
2177
3674
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
2178
3675
|
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
2179
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<
|
|
3676
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
3677
|
+
value: string;
|
|
3678
|
+
to: string;
|
|
3679
|
+
data: string;
|
|
3680
|
+
from?: string;
|
|
3681
|
+
type?: number;
|
|
3682
|
+
nonce?: number;
|
|
3683
|
+
gasLimit?: bigint;
|
|
3684
|
+
gasPrice?: bigint;
|
|
3685
|
+
maxPriorityFeePerGas?: bigint;
|
|
3686
|
+
maxFeePerGas?: bigint;
|
|
3687
|
+
chainId?: bigint;
|
|
3688
|
+
accessList?: import("ethers").AccessList;
|
|
3689
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3690
|
+
customData?: any;
|
|
3691
|
+
blockTag?: import("ethers").BlockTag;
|
|
3692
|
+
enableCcipRead?: boolean;
|
|
3693
|
+
}>;
|
|
2180
3694
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
2181
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<
|
|
2182
|
-
|
|
2183
|
-
|
|
3695
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
3696
|
+
value: string;
|
|
3697
|
+
to: string;
|
|
3698
|
+
data: string;
|
|
3699
|
+
from?: string;
|
|
3700
|
+
type?: number;
|
|
3701
|
+
nonce?: number;
|
|
3702
|
+
gasLimit?: bigint;
|
|
3703
|
+
gasPrice?: bigint;
|
|
3704
|
+
maxPriorityFeePerGas?: bigint;
|
|
3705
|
+
maxFeePerGas?: bigint;
|
|
3706
|
+
chainId?: bigint;
|
|
3707
|
+
accessList?: import("ethers").AccessList;
|
|
3708
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3709
|
+
customData?: any;
|
|
3710
|
+
blockTag?: import("ethers").BlockTag;
|
|
3711
|
+
enableCcipRead?: boolean;
|
|
3712
|
+
}>;
|
|
3713
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3714
|
+
value: string;
|
|
3715
|
+
to: string;
|
|
3716
|
+
data: string;
|
|
3717
|
+
from?: string;
|
|
3718
|
+
type?: number;
|
|
3719
|
+
nonce?: number;
|
|
3720
|
+
gasLimit?: bigint;
|
|
3721
|
+
gasPrice?: bigint;
|
|
3722
|
+
maxPriorityFeePerGas?: bigint;
|
|
3723
|
+
maxFeePerGas?: bigint;
|
|
3724
|
+
chainId?: bigint;
|
|
3725
|
+
accessList?: import("ethers").AccessList;
|
|
3726
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3727
|
+
customData?: any;
|
|
3728
|
+
blockTag?: import("ethers").BlockTag;
|
|
3729
|
+
enableCcipRead?: boolean;
|
|
3730
|
+
}>;
|
|
3731
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3732
|
+
value: string;
|
|
3733
|
+
to: string;
|
|
3734
|
+
data: string;
|
|
3735
|
+
from?: string;
|
|
3736
|
+
type?: number;
|
|
3737
|
+
nonce?: number;
|
|
3738
|
+
gasLimit?: bigint;
|
|
3739
|
+
gasPrice?: bigint;
|
|
3740
|
+
maxPriorityFeePerGas?: bigint;
|
|
3741
|
+
maxFeePerGas?: bigint;
|
|
3742
|
+
chainId?: bigint;
|
|
3743
|
+
accessList?: import("ethers").AccessList;
|
|
3744
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
3745
|
+
customData?: any;
|
|
3746
|
+
blockTag?: import("ethers").BlockTag;
|
|
3747
|
+
enableCcipRead?: boolean;
|
|
3748
|
+
}>;
|
|
2184
3749
|
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
2185
3750
|
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
2186
3751
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|