@swapkit/toolboxes 4.23.0 → 4.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/chunk-ap5mzmjf.js +1 -0
- package/dist/{chunk-9psy287z.js → chunk-btth5bse.js} +1 -1
- package/dist/{chunk-jdh5asaw.js → chunk-nvfkjbyq.js} +1 -1
- package/dist/{chunk-fjyc6m34.js → chunk-xbdjxeqd.js} +1 -1
- package/dist/chunk-z61r1327.js +2 -0
- package/dist/src/aptos/index.cjs +1 -1
- package/dist/src/aptos/index.js +1 -1
- package/dist/src/cardano/index.cjs +1 -1
- package/dist/src/cardano/index.js +1 -1
- package/dist/src/cosmos/index.cjs +1 -1
- package/dist/src/cosmos/index.js +1 -1
- package/dist/src/evm/index.cjs +1 -1
- package/dist/src/evm/index.js +1 -1
- package/dist/src/hypercore/index.cjs +1 -1
- package/dist/src/hypercore/index.js +1 -1
- package/dist/src/index.cjs +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/near/index.cjs +1 -1
- package/dist/src/near/index.js +1 -1
- package/dist/src/radix/index.js +1 -1
- package/dist/src/ripple/index.cjs +1 -1
- package/dist/src/ripple/index.js +1 -1
- package/dist/src/solana/index.cjs +1 -1
- package/dist/src/solana/index.js +1 -1
- package/dist/src/starknet/index.cjs +1 -1
- package/dist/src/starknet/index.js +1 -1
- package/dist/src/stellar/index.cjs +1 -1
- package/dist/src/stellar/index.js +1 -1
- package/dist/src/substrate/index.cjs +1 -1
- package/dist/src/substrate/index.js +1 -1
- package/dist/src/sui/index.cjs +1 -1
- package/dist/src/sui/index.js +1 -1
- package/dist/src/ton/index.cjs +1 -1
- package/dist/src/ton/index.js +1 -1
- package/dist/src/tron/index.cjs +1 -1
- package/dist/src/tron/index.js +1 -1
- package/dist/src/utxo/index.cjs +1 -1
- package/dist/src/utxo/index.js +1 -1
- package/dist/types/aptos/toolbox.d.ts +11 -7
- package/dist/types/cardano/toolbox.d.ts +2 -2
- package/dist/types/cosmos/thorchainUtils/messages.d.ts +2 -1
- package/dist/types/cosmos/thorchainUtils/registry.d.ts +1 -1
- package/dist/types/cosmos/toolbox/cosmos.d.ts +1 -1
- package/dist/types/cosmos/toolbox/thorchain.d.ts +6 -6
- package/dist/types/cosmos/util.d.ts +16 -2
- package/dist/types/evm/toolbox/baseEVMToolbox.d.ts +66 -21
- package/dist/types/evm/toolbox/evm.d.ts +1603 -234
- package/dist/types/evm/toolbox/op.d.ts +235 -11
- package/dist/types/evm/types.d.ts +7 -13
- package/dist/types/hypercore/toolbox.d.ts +2 -2
- package/dist/types/hypercore/types.d.ts +3 -1
- package/dist/types/near/toolbox.d.ts +22 -3
- package/dist/types/near/types.d.ts +4 -1
- package/dist/types/ripple/index.d.ts +3 -2
- package/dist/types/solana/toolbox.d.ts +2 -2
- package/dist/types/starknet/toolbox.d.ts +2 -2
- package/dist/types/starknet/types.d.ts +3 -12
- package/dist/types/stellar/toolbox.d.ts +2 -2
- package/dist/types/sui/toolbox.d.ts +3 -3
- package/dist/types/ton/toolbox.d.ts +1 -4
- package/dist/types/tron/toolbox.d.ts +2 -2
- package/dist/types/utxo/helpers/coinselect.d.ts +2 -1
- package/dist/types/utxo/toolbox/bitcoinCash.d.ts +7 -5
- package/dist/types/utxo/toolbox/utxo.d.ts +8 -5
- package/dist/types/utxo/toolbox/zcash.d.ts +6 -4
- package/package.json +2 -2
- package/dist/chunk-6b99avsd.js +0 -2
- package/dist/chunk-e02sjx7s.js +0 -1
|
@@ -46,7 +46,29 @@ export declare function ETHToolbox(params: EVMToolboxParams): {
|
|
|
46
46
|
blockTag?: import("ethers").BlockTag;
|
|
47
47
|
enableCcipRead?: boolean;
|
|
48
48
|
}>;
|
|
49
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
49
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
50
|
+
gasLimit: bigint;
|
|
51
|
+
value: string;
|
|
52
|
+
data: string;
|
|
53
|
+
from: string;
|
|
54
|
+
to: string;
|
|
55
|
+
maxFeePerGas: bigint;
|
|
56
|
+
maxPriorityFeePerGas: bigint;
|
|
57
|
+
gasPrice?: undefined;
|
|
58
|
+
type?: number | undefined;
|
|
59
|
+
nonce?: number | undefined;
|
|
60
|
+
} | {
|
|
61
|
+
gasLimit: bigint;
|
|
62
|
+
value: string;
|
|
63
|
+
data: string;
|
|
64
|
+
from: string;
|
|
65
|
+
to: string;
|
|
66
|
+
gasPrice: bigint;
|
|
67
|
+
maxFeePerGas?: undefined;
|
|
68
|
+
maxPriorityFeePerGas?: undefined;
|
|
69
|
+
type?: number | undefined;
|
|
70
|
+
nonce?: number | undefined;
|
|
71
|
+
} | {
|
|
50
72
|
value: string;
|
|
51
73
|
to: string;
|
|
52
74
|
data: string;
|
|
@@ -64,7 +86,29 @@ export declare function ETHToolbox(params: EVMToolboxParams): {
|
|
|
64
86
|
blockTag?: import("ethers").BlockTag;
|
|
65
87
|
enableCcipRead?: boolean;
|
|
66
88
|
}>;
|
|
67
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
89
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
90
|
+
gasLimit: bigint;
|
|
91
|
+
value: string;
|
|
92
|
+
data: string;
|
|
93
|
+
from: string;
|
|
94
|
+
to: string;
|
|
95
|
+
maxFeePerGas: bigint;
|
|
96
|
+
maxPriorityFeePerGas: bigint;
|
|
97
|
+
gasPrice?: undefined;
|
|
98
|
+
type?: number | undefined;
|
|
99
|
+
nonce?: number | undefined;
|
|
100
|
+
} | {
|
|
101
|
+
gasLimit: bigint;
|
|
102
|
+
value: string;
|
|
103
|
+
data: string;
|
|
104
|
+
from: string;
|
|
105
|
+
to: string;
|
|
106
|
+
gasPrice: bigint;
|
|
107
|
+
maxFeePerGas?: undefined;
|
|
108
|
+
maxPriorityFeePerGas?: undefined;
|
|
109
|
+
type?: number | undefined;
|
|
110
|
+
nonce?: number | undefined;
|
|
111
|
+
} | {
|
|
68
112
|
value: string;
|
|
69
113
|
to: string;
|
|
70
114
|
data: string;
|
|
@@ -91,12 +135,26 @@ export declare function ETHToolbox(params: EVMToolboxParams): {
|
|
|
91
135
|
txOverrides?: import("..").EVMTxParams;
|
|
92
136
|
data?: string;
|
|
93
137
|
}) => Promise<bigint>;
|
|
94
|
-
estimateGasPrices: () => Promise<{
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
138
|
+
estimateGasPrices: () => Promise<{
|
|
139
|
+
average: {
|
|
140
|
+
gasPrice?: bigint;
|
|
141
|
+
l1GasPrice?: bigint;
|
|
142
|
+
maxFeePerGas?: bigint;
|
|
143
|
+
maxPriorityFeePerGas?: bigint;
|
|
144
|
+
};
|
|
145
|
+
fast: {
|
|
146
|
+
gasPrice?: bigint;
|
|
147
|
+
l1GasPrice?: bigint;
|
|
148
|
+
maxFeePerGas?: bigint;
|
|
149
|
+
maxPriorityFeePerGas?: bigint;
|
|
150
|
+
};
|
|
151
|
+
fastest: {
|
|
152
|
+
gasPrice?: bigint;
|
|
153
|
+
l1GasPrice?: bigint;
|
|
154
|
+
maxFeePerGas?: bigint;
|
|
155
|
+
maxPriorityFeePerGas?: bigint;
|
|
156
|
+
};
|
|
157
|
+
}>;
|
|
100
158
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
101
159
|
feeOption: FeeOption;
|
|
102
160
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -104,8 +162,9 @@ export declare function ETHToolbox(params: EVMToolboxParams): {
|
|
|
104
162
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
105
163
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
106
164
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
107
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
165
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
108
166
|
feeOptionKey?: FeeOption;
|
|
167
|
+
sweep?: boolean;
|
|
109
168
|
}) => Promise<string>;
|
|
110
169
|
signAuthorization: ((params: {
|
|
111
170
|
address: string;
|
|
@@ -114,7 +173,7 @@ export declare function ETHToolbox(params: EVMToolboxParams): {
|
|
|
114
173
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
115
174
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
116
175
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
117
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
176
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
118
177
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
119
178
|
};
|
|
120
179
|
export declare const ADIToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -159,7 +218,29 @@ export declare const ADIToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
159
218
|
blockTag?: import("ethers").BlockTag;
|
|
160
219
|
enableCcipRead?: boolean;
|
|
161
220
|
}>;
|
|
162
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
221
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
222
|
+
gasLimit: bigint;
|
|
223
|
+
value: string;
|
|
224
|
+
data: string;
|
|
225
|
+
from: string;
|
|
226
|
+
to: string;
|
|
227
|
+
maxFeePerGas: bigint;
|
|
228
|
+
maxPriorityFeePerGas: bigint;
|
|
229
|
+
gasPrice?: undefined;
|
|
230
|
+
type?: number | undefined;
|
|
231
|
+
nonce?: number | undefined;
|
|
232
|
+
} | {
|
|
233
|
+
gasLimit: bigint;
|
|
234
|
+
value: string;
|
|
235
|
+
data: string;
|
|
236
|
+
from: string;
|
|
237
|
+
to: string;
|
|
238
|
+
gasPrice: bigint;
|
|
239
|
+
maxFeePerGas?: undefined;
|
|
240
|
+
maxPriorityFeePerGas?: undefined;
|
|
241
|
+
type?: number | undefined;
|
|
242
|
+
nonce?: number | undefined;
|
|
243
|
+
} | {
|
|
163
244
|
value: string;
|
|
164
245
|
to: string;
|
|
165
246
|
data: string;
|
|
@@ -177,7 +258,29 @@ export declare const ADIToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
177
258
|
blockTag?: import("ethers").BlockTag;
|
|
178
259
|
enableCcipRead?: boolean;
|
|
179
260
|
}>;
|
|
180
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
261
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
262
|
+
gasLimit: bigint;
|
|
263
|
+
value: string;
|
|
264
|
+
data: string;
|
|
265
|
+
from: string;
|
|
266
|
+
to: string;
|
|
267
|
+
maxFeePerGas: bigint;
|
|
268
|
+
maxPriorityFeePerGas: bigint;
|
|
269
|
+
gasPrice?: undefined;
|
|
270
|
+
type?: number | undefined;
|
|
271
|
+
nonce?: number | undefined;
|
|
272
|
+
} | {
|
|
273
|
+
gasLimit: bigint;
|
|
274
|
+
value: string;
|
|
275
|
+
data: string;
|
|
276
|
+
from: string;
|
|
277
|
+
to: string;
|
|
278
|
+
gasPrice: bigint;
|
|
279
|
+
maxFeePerGas?: undefined;
|
|
280
|
+
maxPriorityFeePerGas?: undefined;
|
|
281
|
+
type?: number | undefined;
|
|
282
|
+
nonce?: number | undefined;
|
|
283
|
+
} | {
|
|
181
284
|
value: string;
|
|
182
285
|
to: string;
|
|
183
286
|
data: string;
|
|
@@ -204,12 +307,26 @@ export declare const ADIToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
204
307
|
txOverrides?: import("..").EVMTxParams;
|
|
205
308
|
data?: string;
|
|
206
309
|
}) => Promise<bigint>;
|
|
207
|
-
estimateGasPrices: () => Promise<{
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
310
|
+
estimateGasPrices: () => Promise<{
|
|
311
|
+
average: {
|
|
312
|
+
gasPrice?: bigint;
|
|
313
|
+
l1GasPrice?: bigint;
|
|
314
|
+
maxFeePerGas?: bigint;
|
|
315
|
+
maxPriorityFeePerGas?: bigint;
|
|
316
|
+
};
|
|
317
|
+
fast: {
|
|
318
|
+
gasPrice?: bigint;
|
|
319
|
+
l1GasPrice?: bigint;
|
|
320
|
+
maxFeePerGas?: bigint;
|
|
321
|
+
maxPriorityFeePerGas?: bigint;
|
|
322
|
+
};
|
|
323
|
+
fastest: {
|
|
324
|
+
gasPrice?: bigint;
|
|
325
|
+
l1GasPrice?: bigint;
|
|
326
|
+
maxFeePerGas?: bigint;
|
|
327
|
+
maxPriorityFeePerGas?: bigint;
|
|
328
|
+
};
|
|
329
|
+
}>;
|
|
213
330
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
214
331
|
feeOption: FeeOption;
|
|
215
332
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -217,8 +334,9 @@ export declare const ADIToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
217
334
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
218
335
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
219
336
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
220
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
337
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
221
338
|
feeOptionKey?: FeeOption;
|
|
339
|
+
sweep?: boolean;
|
|
222
340
|
}) => Promise<string>;
|
|
223
341
|
signAuthorization: ((params: {
|
|
224
342
|
address: string;
|
|
@@ -227,7 +345,7 @@ export declare const ADIToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
227
345
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
228
346
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
229
347
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
230
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
348
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
231
349
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
232
350
|
};
|
|
233
351
|
export declare const ARBToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -272,7 +390,29 @@ export declare const ARBToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
272
390
|
blockTag?: import("ethers").BlockTag;
|
|
273
391
|
enableCcipRead?: boolean;
|
|
274
392
|
}>;
|
|
275
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
393
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
394
|
+
gasLimit: bigint;
|
|
395
|
+
value: string;
|
|
396
|
+
data: string;
|
|
397
|
+
from: string;
|
|
398
|
+
to: string;
|
|
399
|
+
maxFeePerGas: bigint;
|
|
400
|
+
maxPriorityFeePerGas: bigint;
|
|
401
|
+
gasPrice?: undefined;
|
|
402
|
+
type?: number | undefined;
|
|
403
|
+
nonce?: number | undefined;
|
|
404
|
+
} | {
|
|
405
|
+
gasLimit: bigint;
|
|
406
|
+
value: string;
|
|
407
|
+
data: string;
|
|
408
|
+
from: string;
|
|
409
|
+
to: string;
|
|
410
|
+
gasPrice: bigint;
|
|
411
|
+
maxFeePerGas?: undefined;
|
|
412
|
+
maxPriorityFeePerGas?: undefined;
|
|
413
|
+
type?: number | undefined;
|
|
414
|
+
nonce?: number | undefined;
|
|
415
|
+
} | {
|
|
276
416
|
value: string;
|
|
277
417
|
to: string;
|
|
278
418
|
data: string;
|
|
@@ -290,7 +430,29 @@ export declare const ARBToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
290
430
|
blockTag?: import("ethers").BlockTag;
|
|
291
431
|
enableCcipRead?: boolean;
|
|
292
432
|
}>;
|
|
293
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
433
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
434
|
+
gasLimit: bigint;
|
|
435
|
+
value: string;
|
|
436
|
+
data: string;
|
|
437
|
+
from: string;
|
|
438
|
+
to: string;
|
|
439
|
+
maxFeePerGas: bigint;
|
|
440
|
+
maxPriorityFeePerGas: bigint;
|
|
441
|
+
gasPrice?: undefined;
|
|
442
|
+
type?: number | undefined;
|
|
443
|
+
nonce?: number | undefined;
|
|
444
|
+
} | {
|
|
445
|
+
gasLimit: bigint;
|
|
446
|
+
value: string;
|
|
447
|
+
data: string;
|
|
448
|
+
from: string;
|
|
449
|
+
to: string;
|
|
450
|
+
gasPrice: bigint;
|
|
451
|
+
maxFeePerGas?: undefined;
|
|
452
|
+
maxPriorityFeePerGas?: undefined;
|
|
453
|
+
type?: number | undefined;
|
|
454
|
+
nonce?: number | undefined;
|
|
455
|
+
} | {
|
|
294
456
|
value: string;
|
|
295
457
|
to: string;
|
|
296
458
|
data: string;
|
|
@@ -317,12 +479,26 @@ export declare const ARBToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
317
479
|
txOverrides?: import("..").EVMTxParams;
|
|
318
480
|
data?: string;
|
|
319
481
|
}) => Promise<bigint>;
|
|
320
|
-
estimateGasPrices: () => Promise<{
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
482
|
+
estimateGasPrices: () => Promise<{
|
|
483
|
+
average: {
|
|
484
|
+
gasPrice?: bigint;
|
|
485
|
+
l1GasPrice?: bigint;
|
|
486
|
+
maxFeePerGas?: bigint;
|
|
487
|
+
maxPriorityFeePerGas?: bigint;
|
|
488
|
+
};
|
|
489
|
+
fast: {
|
|
490
|
+
gasPrice?: bigint;
|
|
491
|
+
l1GasPrice?: bigint;
|
|
492
|
+
maxFeePerGas?: bigint;
|
|
493
|
+
maxPriorityFeePerGas?: bigint;
|
|
494
|
+
};
|
|
495
|
+
fastest: {
|
|
496
|
+
gasPrice?: bigint;
|
|
497
|
+
l1GasPrice?: bigint;
|
|
498
|
+
maxFeePerGas?: bigint;
|
|
499
|
+
maxPriorityFeePerGas?: bigint;
|
|
500
|
+
};
|
|
501
|
+
}>;
|
|
326
502
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
327
503
|
feeOption: FeeOption;
|
|
328
504
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -330,8 +506,9 @@ export declare const ARBToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
330
506
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
331
507
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
332
508
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
333
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
509
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
334
510
|
feeOptionKey?: FeeOption;
|
|
511
|
+
sweep?: boolean;
|
|
335
512
|
}) => Promise<string>;
|
|
336
513
|
signAuthorization: ((params: {
|
|
337
514
|
address: string;
|
|
@@ -340,7 +517,7 @@ export declare const ARBToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
340
517
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
341
518
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
342
519
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
343
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
520
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
344
521
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
345
522
|
};
|
|
346
523
|
export declare const AURORAToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -385,7 +562,29 @@ export declare const AURORAToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
385
562
|
blockTag?: import("ethers").BlockTag;
|
|
386
563
|
enableCcipRead?: boolean;
|
|
387
564
|
}>;
|
|
388
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
565
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
566
|
+
gasLimit: bigint;
|
|
567
|
+
value: string;
|
|
568
|
+
data: string;
|
|
569
|
+
from: string;
|
|
570
|
+
to: string;
|
|
571
|
+
maxFeePerGas: bigint;
|
|
572
|
+
maxPriorityFeePerGas: bigint;
|
|
573
|
+
gasPrice?: undefined;
|
|
574
|
+
type?: number | undefined;
|
|
575
|
+
nonce?: number | undefined;
|
|
576
|
+
} | {
|
|
577
|
+
gasLimit: bigint;
|
|
578
|
+
value: string;
|
|
579
|
+
data: string;
|
|
580
|
+
from: string;
|
|
581
|
+
to: string;
|
|
582
|
+
gasPrice: bigint;
|
|
583
|
+
maxFeePerGas?: undefined;
|
|
584
|
+
maxPriorityFeePerGas?: undefined;
|
|
585
|
+
type?: number | undefined;
|
|
586
|
+
nonce?: number | undefined;
|
|
587
|
+
} | {
|
|
389
588
|
value: string;
|
|
390
589
|
to: string;
|
|
391
590
|
data: string;
|
|
@@ -403,7 +602,29 @@ export declare const AURORAToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
403
602
|
blockTag?: import("ethers").BlockTag;
|
|
404
603
|
enableCcipRead?: boolean;
|
|
405
604
|
}>;
|
|
406
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
605
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
606
|
+
gasLimit: bigint;
|
|
607
|
+
value: string;
|
|
608
|
+
data: string;
|
|
609
|
+
from: string;
|
|
610
|
+
to: string;
|
|
611
|
+
maxFeePerGas: bigint;
|
|
612
|
+
maxPriorityFeePerGas: bigint;
|
|
613
|
+
gasPrice?: undefined;
|
|
614
|
+
type?: number | undefined;
|
|
615
|
+
nonce?: number | undefined;
|
|
616
|
+
} | {
|
|
617
|
+
gasLimit: bigint;
|
|
618
|
+
value: string;
|
|
619
|
+
data: string;
|
|
620
|
+
from: string;
|
|
621
|
+
to: string;
|
|
622
|
+
gasPrice: bigint;
|
|
623
|
+
maxFeePerGas?: undefined;
|
|
624
|
+
maxPriorityFeePerGas?: undefined;
|
|
625
|
+
type?: number | undefined;
|
|
626
|
+
nonce?: number | undefined;
|
|
627
|
+
} | {
|
|
407
628
|
value: string;
|
|
408
629
|
to: string;
|
|
409
630
|
data: string;
|
|
@@ -430,12 +651,26 @@ export declare const AURORAToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
430
651
|
txOverrides?: import("..").EVMTxParams;
|
|
431
652
|
data?: string;
|
|
432
653
|
}) => Promise<bigint>;
|
|
433
|
-
estimateGasPrices: () => Promise<{
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
654
|
+
estimateGasPrices: () => Promise<{
|
|
655
|
+
average: {
|
|
656
|
+
gasPrice?: bigint;
|
|
657
|
+
l1GasPrice?: bigint;
|
|
658
|
+
maxFeePerGas?: bigint;
|
|
659
|
+
maxPriorityFeePerGas?: bigint;
|
|
660
|
+
};
|
|
661
|
+
fast: {
|
|
662
|
+
gasPrice?: bigint;
|
|
663
|
+
l1GasPrice?: bigint;
|
|
664
|
+
maxFeePerGas?: bigint;
|
|
665
|
+
maxPriorityFeePerGas?: bigint;
|
|
666
|
+
};
|
|
667
|
+
fastest: {
|
|
668
|
+
gasPrice?: bigint;
|
|
669
|
+
l1GasPrice?: bigint;
|
|
670
|
+
maxFeePerGas?: bigint;
|
|
671
|
+
maxPriorityFeePerGas?: bigint;
|
|
672
|
+
};
|
|
673
|
+
}>;
|
|
439
674
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
440
675
|
feeOption: FeeOption;
|
|
441
676
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -443,8 +678,9 @@ export declare const AURORAToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
443
678
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
444
679
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
445
680
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
446
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
681
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
447
682
|
feeOptionKey?: FeeOption;
|
|
683
|
+
sweep?: boolean;
|
|
448
684
|
}) => Promise<string>;
|
|
449
685
|
signAuthorization: ((params: {
|
|
450
686
|
address: string;
|
|
@@ -453,7 +689,7 @@ export declare const AURORAToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
453
689
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
454
690
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
455
691
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
456
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
692
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
457
693
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
458
694
|
};
|
|
459
695
|
export declare const AVAXToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -498,7 +734,29 @@ export declare const AVAXToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
498
734
|
blockTag?: import("ethers").BlockTag;
|
|
499
735
|
enableCcipRead?: boolean;
|
|
500
736
|
}>;
|
|
501
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
737
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
738
|
+
gasLimit: bigint;
|
|
739
|
+
value: string;
|
|
740
|
+
data: string;
|
|
741
|
+
from: string;
|
|
742
|
+
to: string;
|
|
743
|
+
maxFeePerGas: bigint;
|
|
744
|
+
maxPriorityFeePerGas: bigint;
|
|
745
|
+
gasPrice?: undefined;
|
|
746
|
+
type?: number | undefined;
|
|
747
|
+
nonce?: number | undefined;
|
|
748
|
+
} | {
|
|
749
|
+
gasLimit: bigint;
|
|
750
|
+
value: string;
|
|
751
|
+
data: string;
|
|
752
|
+
from: string;
|
|
753
|
+
to: string;
|
|
754
|
+
gasPrice: bigint;
|
|
755
|
+
maxFeePerGas?: undefined;
|
|
756
|
+
maxPriorityFeePerGas?: undefined;
|
|
757
|
+
type?: number | undefined;
|
|
758
|
+
nonce?: number | undefined;
|
|
759
|
+
} | {
|
|
502
760
|
value: string;
|
|
503
761
|
to: string;
|
|
504
762
|
data: string;
|
|
@@ -516,7 +774,29 @@ export declare const AVAXToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
516
774
|
blockTag?: import("ethers").BlockTag;
|
|
517
775
|
enableCcipRead?: boolean;
|
|
518
776
|
}>;
|
|
519
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
777
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
778
|
+
gasLimit: bigint;
|
|
779
|
+
value: string;
|
|
780
|
+
data: string;
|
|
781
|
+
from: string;
|
|
782
|
+
to: string;
|
|
783
|
+
maxFeePerGas: bigint;
|
|
784
|
+
maxPriorityFeePerGas: bigint;
|
|
785
|
+
gasPrice?: undefined;
|
|
786
|
+
type?: number | undefined;
|
|
787
|
+
nonce?: number | undefined;
|
|
788
|
+
} | {
|
|
789
|
+
gasLimit: bigint;
|
|
790
|
+
value: string;
|
|
791
|
+
data: string;
|
|
792
|
+
from: string;
|
|
793
|
+
to: string;
|
|
794
|
+
gasPrice: bigint;
|
|
795
|
+
maxFeePerGas?: undefined;
|
|
796
|
+
maxPriorityFeePerGas?: undefined;
|
|
797
|
+
type?: number | undefined;
|
|
798
|
+
nonce?: number | undefined;
|
|
799
|
+
} | {
|
|
520
800
|
value: string;
|
|
521
801
|
to: string;
|
|
522
802
|
data: string;
|
|
@@ -543,12 +823,26 @@ export declare const AVAXToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
543
823
|
txOverrides?: import("..").EVMTxParams;
|
|
544
824
|
data?: string;
|
|
545
825
|
}) => Promise<bigint>;
|
|
546
|
-
estimateGasPrices: () => Promise<{
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
826
|
+
estimateGasPrices: () => Promise<{
|
|
827
|
+
average: {
|
|
828
|
+
gasPrice?: bigint;
|
|
829
|
+
l1GasPrice?: bigint;
|
|
830
|
+
maxFeePerGas?: bigint;
|
|
831
|
+
maxPriorityFeePerGas?: bigint;
|
|
832
|
+
};
|
|
833
|
+
fast: {
|
|
834
|
+
gasPrice?: bigint;
|
|
835
|
+
l1GasPrice?: bigint;
|
|
836
|
+
maxFeePerGas?: bigint;
|
|
837
|
+
maxPriorityFeePerGas?: bigint;
|
|
838
|
+
};
|
|
839
|
+
fastest: {
|
|
840
|
+
gasPrice?: bigint;
|
|
841
|
+
l1GasPrice?: bigint;
|
|
842
|
+
maxFeePerGas?: bigint;
|
|
843
|
+
maxPriorityFeePerGas?: bigint;
|
|
844
|
+
};
|
|
845
|
+
}>;
|
|
552
846
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
553
847
|
feeOption: FeeOption;
|
|
554
848
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -556,8 +850,9 @@ export declare const AVAXToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
556
850
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
557
851
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
558
852
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
559
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
853
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
560
854
|
feeOptionKey?: FeeOption;
|
|
855
|
+
sweep?: boolean;
|
|
561
856
|
}) => Promise<string>;
|
|
562
857
|
signAuthorization: ((params: {
|
|
563
858
|
address: string;
|
|
@@ -566,10 +861,17 @@ export declare const AVAXToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
566
861
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
567
862
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
568
863
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
569
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
864
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
570
865
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
571
866
|
};
|
|
572
|
-
export declare const BASEToolbox: ({ provider, ...
|
|
867
|
+
export declare const BASEToolbox: ({ provider, ...toolboxSignerParams }: EVMToolboxParams) => {
|
|
868
|
+
estimateL1Gas: (tx: import("ethers").TransactionRequest) => Promise<any>;
|
|
869
|
+
estimateL1GasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint | undefined>;
|
|
870
|
+
estimateL2GasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint>;
|
|
871
|
+
estimateOperatorFee: (gasLimit: bigint) => Promise<bigint>;
|
|
872
|
+
estimateTotalGasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint>;
|
|
873
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
874
|
+
getL1GasPrice: () => Promise<bigint | undefined>;
|
|
573
875
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
574
876
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
575
877
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
@@ -611,7 +913,29 @@ export declare const BASEToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
611
913
|
blockTag?: import("ethers").BlockTag;
|
|
612
914
|
enableCcipRead?: boolean;
|
|
613
915
|
}>;
|
|
614
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
916
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
917
|
+
gasLimit: bigint;
|
|
918
|
+
value: string;
|
|
919
|
+
data: string;
|
|
920
|
+
from: string;
|
|
921
|
+
to: string;
|
|
922
|
+
maxFeePerGas: bigint;
|
|
923
|
+
maxPriorityFeePerGas: bigint;
|
|
924
|
+
gasPrice?: undefined;
|
|
925
|
+
type?: number | undefined;
|
|
926
|
+
nonce?: number | undefined;
|
|
927
|
+
} | {
|
|
928
|
+
gasLimit: bigint;
|
|
929
|
+
value: string;
|
|
930
|
+
data: string;
|
|
931
|
+
from: string;
|
|
932
|
+
to: string;
|
|
933
|
+
gasPrice: bigint;
|
|
934
|
+
maxFeePerGas?: undefined;
|
|
935
|
+
maxPriorityFeePerGas?: undefined;
|
|
936
|
+
type?: number | undefined;
|
|
937
|
+
nonce?: number | undefined;
|
|
938
|
+
} | {
|
|
615
939
|
value: string;
|
|
616
940
|
to: string;
|
|
617
941
|
data: string;
|
|
@@ -629,7 +953,29 @@ export declare const BASEToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
629
953
|
blockTag?: import("ethers").BlockTag;
|
|
630
954
|
enableCcipRead?: boolean;
|
|
631
955
|
}>;
|
|
632
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
956
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
957
|
+
gasLimit: bigint;
|
|
958
|
+
value: string;
|
|
959
|
+
data: string;
|
|
960
|
+
from: string;
|
|
961
|
+
to: string;
|
|
962
|
+
maxFeePerGas: bigint;
|
|
963
|
+
maxPriorityFeePerGas: bigint;
|
|
964
|
+
gasPrice?: undefined;
|
|
965
|
+
type?: number | undefined;
|
|
966
|
+
nonce?: number | undefined;
|
|
967
|
+
} | {
|
|
968
|
+
gasLimit: bigint;
|
|
969
|
+
value: string;
|
|
970
|
+
data: string;
|
|
971
|
+
from: string;
|
|
972
|
+
to: string;
|
|
973
|
+
gasPrice: bigint;
|
|
974
|
+
maxFeePerGas?: undefined;
|
|
975
|
+
maxPriorityFeePerGas?: undefined;
|
|
976
|
+
type?: number | undefined;
|
|
977
|
+
nonce?: number | undefined;
|
|
978
|
+
} | {
|
|
633
979
|
value: string;
|
|
634
980
|
to: string;
|
|
635
981
|
data: string;
|
|
@@ -656,21 +1002,35 @@ export declare const BASEToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
656
1002
|
txOverrides?: import("..").EVMTxParams;
|
|
657
1003
|
data?: string;
|
|
658
1004
|
}) => Promise<bigint>;
|
|
659
|
-
estimateGasPrices: () => Promise<{
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
1005
|
+
estimateGasPrices: () => Promise<{
|
|
1006
|
+
average: {
|
|
1007
|
+
gasPrice?: bigint;
|
|
1008
|
+
l1GasPrice?: bigint;
|
|
1009
|
+
maxFeePerGas?: bigint;
|
|
1010
|
+
maxPriorityFeePerGas?: bigint;
|
|
1011
|
+
};
|
|
1012
|
+
fast: {
|
|
1013
|
+
gasPrice?: bigint;
|
|
1014
|
+
l1GasPrice?: bigint;
|
|
1015
|
+
maxFeePerGas?: bigint;
|
|
1016
|
+
maxPriorityFeePerGas?: bigint;
|
|
1017
|
+
};
|
|
1018
|
+
fastest: {
|
|
1019
|
+
gasPrice?: bigint;
|
|
1020
|
+
l1GasPrice?: bigint;
|
|
1021
|
+
maxFeePerGas?: bigint;
|
|
1022
|
+
maxPriorityFeePerGas?: bigint;
|
|
1023
|
+
};
|
|
1024
|
+
}>;
|
|
665
1025
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
666
1026
|
feeOption: FeeOption;
|
|
667
1027
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
668
1028
|
getAddress: () => string | Promise<string> | undefined;
|
|
669
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
670
1029
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
671
1030
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
672
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
1031
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
673
1032
|
feeOptionKey?: FeeOption;
|
|
1033
|
+
sweep?: boolean;
|
|
674
1034
|
}) => Promise<string>;
|
|
675
1035
|
signAuthorization: ((params: {
|
|
676
1036
|
address: string;
|
|
@@ -679,7 +1039,7 @@ export declare const BASEToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
679
1039
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
680
1040
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
681
1041
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
682
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1042
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
683
1043
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
684
1044
|
};
|
|
685
1045
|
export declare const BERAToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -724,7 +1084,29 @@ export declare const BERAToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
724
1084
|
blockTag?: import("ethers").BlockTag;
|
|
725
1085
|
enableCcipRead?: boolean;
|
|
726
1086
|
}>;
|
|
727
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1087
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1088
|
+
gasLimit: bigint;
|
|
1089
|
+
value: string;
|
|
1090
|
+
data: string;
|
|
1091
|
+
from: string;
|
|
1092
|
+
to: string;
|
|
1093
|
+
maxFeePerGas: bigint;
|
|
1094
|
+
maxPriorityFeePerGas: bigint;
|
|
1095
|
+
gasPrice?: undefined;
|
|
1096
|
+
type?: number | undefined;
|
|
1097
|
+
nonce?: number | undefined;
|
|
1098
|
+
} | {
|
|
1099
|
+
gasLimit: bigint;
|
|
1100
|
+
value: string;
|
|
1101
|
+
data: string;
|
|
1102
|
+
from: string;
|
|
1103
|
+
to: string;
|
|
1104
|
+
gasPrice: bigint;
|
|
1105
|
+
maxFeePerGas?: undefined;
|
|
1106
|
+
maxPriorityFeePerGas?: undefined;
|
|
1107
|
+
type?: number | undefined;
|
|
1108
|
+
nonce?: number | undefined;
|
|
1109
|
+
} | {
|
|
728
1110
|
value: string;
|
|
729
1111
|
to: string;
|
|
730
1112
|
data: string;
|
|
@@ -742,7 +1124,29 @@ export declare const BERAToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
742
1124
|
blockTag?: import("ethers").BlockTag;
|
|
743
1125
|
enableCcipRead?: boolean;
|
|
744
1126
|
}>;
|
|
745
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1127
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1128
|
+
gasLimit: bigint;
|
|
1129
|
+
value: string;
|
|
1130
|
+
data: string;
|
|
1131
|
+
from: string;
|
|
1132
|
+
to: string;
|
|
1133
|
+
maxFeePerGas: bigint;
|
|
1134
|
+
maxPriorityFeePerGas: bigint;
|
|
1135
|
+
gasPrice?: undefined;
|
|
1136
|
+
type?: number | undefined;
|
|
1137
|
+
nonce?: number | undefined;
|
|
1138
|
+
} | {
|
|
1139
|
+
gasLimit: bigint;
|
|
1140
|
+
value: string;
|
|
1141
|
+
data: string;
|
|
1142
|
+
from: string;
|
|
1143
|
+
to: string;
|
|
1144
|
+
gasPrice: bigint;
|
|
1145
|
+
maxFeePerGas?: undefined;
|
|
1146
|
+
maxPriorityFeePerGas?: undefined;
|
|
1147
|
+
type?: number | undefined;
|
|
1148
|
+
nonce?: number | undefined;
|
|
1149
|
+
} | {
|
|
746
1150
|
value: string;
|
|
747
1151
|
to: string;
|
|
748
1152
|
data: string;
|
|
@@ -769,12 +1173,26 @@ export declare const BERAToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
769
1173
|
txOverrides?: import("..").EVMTxParams;
|
|
770
1174
|
data?: string;
|
|
771
1175
|
}) => Promise<bigint>;
|
|
772
|
-
estimateGasPrices: () => Promise<{
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
1176
|
+
estimateGasPrices: () => Promise<{
|
|
1177
|
+
average: {
|
|
1178
|
+
gasPrice?: bigint;
|
|
1179
|
+
l1GasPrice?: bigint;
|
|
1180
|
+
maxFeePerGas?: bigint;
|
|
1181
|
+
maxPriorityFeePerGas?: bigint;
|
|
1182
|
+
};
|
|
1183
|
+
fast: {
|
|
1184
|
+
gasPrice?: bigint;
|
|
1185
|
+
l1GasPrice?: bigint;
|
|
1186
|
+
maxFeePerGas?: bigint;
|
|
1187
|
+
maxPriorityFeePerGas?: bigint;
|
|
1188
|
+
};
|
|
1189
|
+
fastest: {
|
|
1190
|
+
gasPrice?: bigint;
|
|
1191
|
+
l1GasPrice?: bigint;
|
|
1192
|
+
maxFeePerGas?: bigint;
|
|
1193
|
+
maxPriorityFeePerGas?: bigint;
|
|
1194
|
+
};
|
|
1195
|
+
}>;
|
|
778
1196
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
779
1197
|
feeOption: FeeOption;
|
|
780
1198
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -782,8 +1200,9 @@ export declare const BERAToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
782
1200
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
783
1201
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
784
1202
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
785
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
1203
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
786
1204
|
feeOptionKey?: FeeOption;
|
|
1205
|
+
sweep?: boolean;
|
|
787
1206
|
}) => Promise<string>;
|
|
788
1207
|
signAuthorization: ((params: {
|
|
789
1208
|
address: string;
|
|
@@ -792,7 +1211,7 @@ export declare const BERAToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
792
1211
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
793
1212
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
794
1213
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
795
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1214
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
796
1215
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
797
1216
|
};
|
|
798
1217
|
export declare const BSCToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -837,7 +1256,29 @@ export declare const BSCToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
837
1256
|
blockTag?: import("ethers").BlockTag;
|
|
838
1257
|
enableCcipRead?: boolean;
|
|
839
1258
|
}>;
|
|
840
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1259
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1260
|
+
gasLimit: bigint;
|
|
1261
|
+
value: string;
|
|
1262
|
+
data: string;
|
|
1263
|
+
from: string;
|
|
1264
|
+
to: string;
|
|
1265
|
+
maxFeePerGas: bigint;
|
|
1266
|
+
maxPriorityFeePerGas: bigint;
|
|
1267
|
+
gasPrice?: undefined;
|
|
1268
|
+
type?: number | undefined;
|
|
1269
|
+
nonce?: number | undefined;
|
|
1270
|
+
} | {
|
|
1271
|
+
gasLimit: bigint;
|
|
1272
|
+
value: string;
|
|
1273
|
+
data: string;
|
|
1274
|
+
from: string;
|
|
1275
|
+
to: string;
|
|
1276
|
+
gasPrice: bigint;
|
|
1277
|
+
maxFeePerGas?: undefined;
|
|
1278
|
+
maxPriorityFeePerGas?: undefined;
|
|
1279
|
+
type?: number | undefined;
|
|
1280
|
+
nonce?: number | undefined;
|
|
1281
|
+
} | {
|
|
841
1282
|
value: string;
|
|
842
1283
|
to: string;
|
|
843
1284
|
data: string;
|
|
@@ -855,7 +1296,29 @@ export declare const BSCToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
855
1296
|
blockTag?: import("ethers").BlockTag;
|
|
856
1297
|
enableCcipRead?: boolean;
|
|
857
1298
|
}>;
|
|
858
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1299
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1300
|
+
gasLimit: bigint;
|
|
1301
|
+
value: string;
|
|
1302
|
+
data: string;
|
|
1303
|
+
from: string;
|
|
1304
|
+
to: string;
|
|
1305
|
+
maxFeePerGas: bigint;
|
|
1306
|
+
maxPriorityFeePerGas: bigint;
|
|
1307
|
+
gasPrice?: undefined;
|
|
1308
|
+
type?: number | undefined;
|
|
1309
|
+
nonce?: number | undefined;
|
|
1310
|
+
} | {
|
|
1311
|
+
gasLimit: bigint;
|
|
1312
|
+
value: string;
|
|
1313
|
+
data: string;
|
|
1314
|
+
from: string;
|
|
1315
|
+
to: string;
|
|
1316
|
+
gasPrice: bigint;
|
|
1317
|
+
maxFeePerGas?: undefined;
|
|
1318
|
+
maxPriorityFeePerGas?: undefined;
|
|
1319
|
+
type?: number | undefined;
|
|
1320
|
+
nonce?: number | undefined;
|
|
1321
|
+
} | {
|
|
859
1322
|
value: string;
|
|
860
1323
|
to: string;
|
|
861
1324
|
data: string;
|
|
@@ -882,12 +1345,26 @@ export declare const BSCToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
882
1345
|
txOverrides?: import("..").EVMTxParams;
|
|
883
1346
|
data?: string;
|
|
884
1347
|
}) => Promise<bigint>;
|
|
885
|
-
estimateGasPrices: () => Promise<{
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
1348
|
+
estimateGasPrices: () => Promise<{
|
|
1349
|
+
average: {
|
|
1350
|
+
gasPrice?: bigint;
|
|
1351
|
+
l1GasPrice?: bigint;
|
|
1352
|
+
maxFeePerGas?: bigint;
|
|
1353
|
+
maxPriorityFeePerGas?: bigint;
|
|
1354
|
+
};
|
|
1355
|
+
fast: {
|
|
1356
|
+
gasPrice?: bigint;
|
|
1357
|
+
l1GasPrice?: bigint;
|
|
1358
|
+
maxFeePerGas?: bigint;
|
|
1359
|
+
maxPriorityFeePerGas?: bigint;
|
|
1360
|
+
};
|
|
1361
|
+
fastest: {
|
|
1362
|
+
gasPrice?: bigint;
|
|
1363
|
+
l1GasPrice?: bigint;
|
|
1364
|
+
maxFeePerGas?: bigint;
|
|
1365
|
+
maxPriorityFeePerGas?: bigint;
|
|
1366
|
+
};
|
|
1367
|
+
}>;
|
|
891
1368
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
892
1369
|
feeOption: FeeOption;
|
|
893
1370
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -895,8 +1372,9 @@ export declare const BSCToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
895
1372
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
896
1373
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
897
1374
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
898
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
1375
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
899
1376
|
feeOptionKey?: FeeOption;
|
|
1377
|
+
sweep?: boolean;
|
|
900
1378
|
}) => Promise<string>;
|
|
901
1379
|
signAuthorization: ((params: {
|
|
902
1380
|
address: string;
|
|
@@ -905,7 +1383,7 @@ export declare const BSCToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
905
1383
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
906
1384
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
907
1385
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
908
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1386
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
909
1387
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
910
1388
|
};
|
|
911
1389
|
export declare const BotanixToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -950,7 +1428,29 @@ export declare const BotanixToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
950
1428
|
blockTag?: import("ethers").BlockTag;
|
|
951
1429
|
enableCcipRead?: boolean;
|
|
952
1430
|
}>;
|
|
953
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1431
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1432
|
+
gasLimit: bigint;
|
|
1433
|
+
value: string;
|
|
1434
|
+
data: string;
|
|
1435
|
+
from: string;
|
|
1436
|
+
to: string;
|
|
1437
|
+
maxFeePerGas: bigint;
|
|
1438
|
+
maxPriorityFeePerGas: bigint;
|
|
1439
|
+
gasPrice?: undefined;
|
|
1440
|
+
type?: number | undefined;
|
|
1441
|
+
nonce?: number | undefined;
|
|
1442
|
+
} | {
|
|
1443
|
+
gasLimit: bigint;
|
|
1444
|
+
value: string;
|
|
1445
|
+
data: string;
|
|
1446
|
+
from: string;
|
|
1447
|
+
to: string;
|
|
1448
|
+
gasPrice: bigint;
|
|
1449
|
+
maxFeePerGas?: undefined;
|
|
1450
|
+
maxPriorityFeePerGas?: undefined;
|
|
1451
|
+
type?: number | undefined;
|
|
1452
|
+
nonce?: number | undefined;
|
|
1453
|
+
} | {
|
|
954
1454
|
value: string;
|
|
955
1455
|
to: string;
|
|
956
1456
|
data: string;
|
|
@@ -968,7 +1468,29 @@ export declare const BotanixToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
968
1468
|
blockTag?: import("ethers").BlockTag;
|
|
969
1469
|
enableCcipRead?: boolean;
|
|
970
1470
|
}>;
|
|
971
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1471
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1472
|
+
gasLimit: bigint;
|
|
1473
|
+
value: string;
|
|
1474
|
+
data: string;
|
|
1475
|
+
from: string;
|
|
1476
|
+
to: string;
|
|
1477
|
+
maxFeePerGas: bigint;
|
|
1478
|
+
maxPriorityFeePerGas: bigint;
|
|
1479
|
+
gasPrice?: undefined;
|
|
1480
|
+
type?: number | undefined;
|
|
1481
|
+
nonce?: number | undefined;
|
|
1482
|
+
} | {
|
|
1483
|
+
gasLimit: bigint;
|
|
1484
|
+
value: string;
|
|
1485
|
+
data: string;
|
|
1486
|
+
from: string;
|
|
1487
|
+
to: string;
|
|
1488
|
+
gasPrice: bigint;
|
|
1489
|
+
maxFeePerGas?: undefined;
|
|
1490
|
+
maxPriorityFeePerGas?: undefined;
|
|
1491
|
+
type?: number | undefined;
|
|
1492
|
+
nonce?: number | undefined;
|
|
1493
|
+
} | {
|
|
972
1494
|
value: string;
|
|
973
1495
|
to: string;
|
|
974
1496
|
data: string;
|
|
@@ -995,12 +1517,26 @@ export declare const BotanixToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
995
1517
|
txOverrides?: import("..").EVMTxParams;
|
|
996
1518
|
data?: string;
|
|
997
1519
|
}) => Promise<bigint>;
|
|
998
|
-
estimateGasPrices: () => Promise<{
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1520
|
+
estimateGasPrices: () => Promise<{
|
|
1521
|
+
average: {
|
|
1522
|
+
gasPrice?: bigint;
|
|
1523
|
+
l1GasPrice?: bigint;
|
|
1524
|
+
maxFeePerGas?: bigint;
|
|
1525
|
+
maxPriorityFeePerGas?: bigint;
|
|
1526
|
+
};
|
|
1527
|
+
fast: {
|
|
1528
|
+
gasPrice?: bigint;
|
|
1529
|
+
l1GasPrice?: bigint;
|
|
1530
|
+
maxFeePerGas?: bigint;
|
|
1531
|
+
maxPriorityFeePerGas?: bigint;
|
|
1532
|
+
};
|
|
1533
|
+
fastest: {
|
|
1534
|
+
gasPrice?: bigint;
|
|
1535
|
+
l1GasPrice?: bigint;
|
|
1536
|
+
maxFeePerGas?: bigint;
|
|
1537
|
+
maxPriorityFeePerGas?: bigint;
|
|
1538
|
+
};
|
|
1539
|
+
}>;
|
|
1004
1540
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
1005
1541
|
feeOption: FeeOption;
|
|
1006
1542
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1008,8 +1544,9 @@ export declare const BotanixToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
1008
1544
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1009
1545
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1010
1546
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
1011
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
1547
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
1012
1548
|
feeOptionKey?: FeeOption;
|
|
1549
|
+
sweep?: boolean;
|
|
1013
1550
|
}) => Promise<string>;
|
|
1014
1551
|
signAuthorization: ((params: {
|
|
1015
1552
|
address: string;
|
|
@@ -1018,7 +1555,7 @@ export declare const BotanixToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
1018
1555
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1019
1556
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1020
1557
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1021
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1558
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1022
1559
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
1023
1560
|
};
|
|
1024
1561
|
export declare const COREToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -1063,7 +1600,29 @@ export declare const COREToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1063
1600
|
blockTag?: import("ethers").BlockTag;
|
|
1064
1601
|
enableCcipRead?: boolean;
|
|
1065
1602
|
}>;
|
|
1066
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1603
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1604
|
+
gasLimit: bigint;
|
|
1605
|
+
value: string;
|
|
1606
|
+
data: string;
|
|
1607
|
+
from: string;
|
|
1608
|
+
to: string;
|
|
1609
|
+
maxFeePerGas: bigint;
|
|
1610
|
+
maxPriorityFeePerGas: bigint;
|
|
1611
|
+
gasPrice?: undefined;
|
|
1612
|
+
type?: number | undefined;
|
|
1613
|
+
nonce?: number | undefined;
|
|
1614
|
+
} | {
|
|
1615
|
+
gasLimit: bigint;
|
|
1616
|
+
value: string;
|
|
1617
|
+
data: string;
|
|
1618
|
+
from: string;
|
|
1619
|
+
to: string;
|
|
1620
|
+
gasPrice: bigint;
|
|
1621
|
+
maxFeePerGas?: undefined;
|
|
1622
|
+
maxPriorityFeePerGas?: undefined;
|
|
1623
|
+
type?: number | undefined;
|
|
1624
|
+
nonce?: number | undefined;
|
|
1625
|
+
} | {
|
|
1067
1626
|
value: string;
|
|
1068
1627
|
to: string;
|
|
1069
1628
|
data: string;
|
|
@@ -1081,7 +1640,29 @@ export declare const COREToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1081
1640
|
blockTag?: import("ethers").BlockTag;
|
|
1082
1641
|
enableCcipRead?: boolean;
|
|
1083
1642
|
}>;
|
|
1084
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1643
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1644
|
+
gasLimit: bigint;
|
|
1645
|
+
value: string;
|
|
1646
|
+
data: string;
|
|
1647
|
+
from: string;
|
|
1648
|
+
to: string;
|
|
1649
|
+
maxFeePerGas: bigint;
|
|
1650
|
+
maxPriorityFeePerGas: bigint;
|
|
1651
|
+
gasPrice?: undefined;
|
|
1652
|
+
type?: number | undefined;
|
|
1653
|
+
nonce?: number | undefined;
|
|
1654
|
+
} | {
|
|
1655
|
+
gasLimit: bigint;
|
|
1656
|
+
value: string;
|
|
1657
|
+
data: string;
|
|
1658
|
+
from: string;
|
|
1659
|
+
to: string;
|
|
1660
|
+
gasPrice: bigint;
|
|
1661
|
+
maxFeePerGas?: undefined;
|
|
1662
|
+
maxPriorityFeePerGas?: undefined;
|
|
1663
|
+
type?: number | undefined;
|
|
1664
|
+
nonce?: number | undefined;
|
|
1665
|
+
} | {
|
|
1085
1666
|
value: string;
|
|
1086
1667
|
to: string;
|
|
1087
1668
|
data: string;
|
|
@@ -1108,12 +1689,26 @@ export declare const COREToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1108
1689
|
txOverrides?: import("..").EVMTxParams;
|
|
1109
1690
|
data?: string;
|
|
1110
1691
|
}) => Promise<bigint>;
|
|
1111
|
-
estimateGasPrices: () => Promise<{
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1692
|
+
estimateGasPrices: () => Promise<{
|
|
1693
|
+
average: {
|
|
1694
|
+
gasPrice?: bigint;
|
|
1695
|
+
l1GasPrice?: bigint;
|
|
1696
|
+
maxFeePerGas?: bigint;
|
|
1697
|
+
maxPriorityFeePerGas?: bigint;
|
|
1698
|
+
};
|
|
1699
|
+
fast: {
|
|
1700
|
+
gasPrice?: bigint;
|
|
1701
|
+
l1GasPrice?: bigint;
|
|
1702
|
+
maxFeePerGas?: bigint;
|
|
1703
|
+
maxPriorityFeePerGas?: bigint;
|
|
1704
|
+
};
|
|
1705
|
+
fastest: {
|
|
1706
|
+
gasPrice?: bigint;
|
|
1707
|
+
l1GasPrice?: bigint;
|
|
1708
|
+
maxFeePerGas?: bigint;
|
|
1709
|
+
maxPriorityFeePerGas?: bigint;
|
|
1710
|
+
};
|
|
1711
|
+
}>;
|
|
1117
1712
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
1118
1713
|
feeOption: FeeOption;
|
|
1119
1714
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1121,8 +1716,9 @@ export declare const COREToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1121
1716
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1122
1717
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1123
1718
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
1124
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
1719
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
1125
1720
|
feeOptionKey?: FeeOption;
|
|
1721
|
+
sweep?: boolean;
|
|
1126
1722
|
}) => Promise<string>;
|
|
1127
1723
|
signAuthorization: ((params: {
|
|
1128
1724
|
address: string;
|
|
@@ -1131,7 +1727,7 @@ export declare const COREToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1131
1727
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1132
1728
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1133
1729
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1134
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1730
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1135
1731
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
1136
1732
|
};
|
|
1137
1733
|
export declare const CORNToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -1176,7 +1772,29 @@ export declare const CORNToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1176
1772
|
blockTag?: import("ethers").BlockTag;
|
|
1177
1773
|
enableCcipRead?: boolean;
|
|
1178
1774
|
}>;
|
|
1179
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1775
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1776
|
+
gasLimit: bigint;
|
|
1777
|
+
value: string;
|
|
1778
|
+
data: string;
|
|
1779
|
+
from: string;
|
|
1780
|
+
to: string;
|
|
1781
|
+
maxFeePerGas: bigint;
|
|
1782
|
+
maxPriorityFeePerGas: bigint;
|
|
1783
|
+
gasPrice?: undefined;
|
|
1784
|
+
type?: number | undefined;
|
|
1785
|
+
nonce?: number | undefined;
|
|
1786
|
+
} | {
|
|
1787
|
+
gasLimit: bigint;
|
|
1788
|
+
value: string;
|
|
1789
|
+
data: string;
|
|
1790
|
+
from: string;
|
|
1791
|
+
to: string;
|
|
1792
|
+
gasPrice: bigint;
|
|
1793
|
+
maxFeePerGas?: undefined;
|
|
1794
|
+
maxPriorityFeePerGas?: undefined;
|
|
1795
|
+
type?: number | undefined;
|
|
1796
|
+
nonce?: number | undefined;
|
|
1797
|
+
} | {
|
|
1180
1798
|
value: string;
|
|
1181
1799
|
to: string;
|
|
1182
1800
|
data: string;
|
|
@@ -1194,7 +1812,29 @@ export declare const CORNToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1194
1812
|
blockTag?: import("ethers").BlockTag;
|
|
1195
1813
|
enableCcipRead?: boolean;
|
|
1196
1814
|
}>;
|
|
1197
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1815
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1816
|
+
gasLimit: bigint;
|
|
1817
|
+
value: string;
|
|
1818
|
+
data: string;
|
|
1819
|
+
from: string;
|
|
1820
|
+
to: string;
|
|
1821
|
+
maxFeePerGas: bigint;
|
|
1822
|
+
maxPriorityFeePerGas: bigint;
|
|
1823
|
+
gasPrice?: undefined;
|
|
1824
|
+
type?: number | undefined;
|
|
1825
|
+
nonce?: number | undefined;
|
|
1826
|
+
} | {
|
|
1827
|
+
gasLimit: bigint;
|
|
1828
|
+
value: string;
|
|
1829
|
+
data: string;
|
|
1830
|
+
from: string;
|
|
1831
|
+
to: string;
|
|
1832
|
+
gasPrice: bigint;
|
|
1833
|
+
maxFeePerGas?: undefined;
|
|
1834
|
+
maxPriorityFeePerGas?: undefined;
|
|
1835
|
+
type?: number | undefined;
|
|
1836
|
+
nonce?: number | undefined;
|
|
1837
|
+
} | {
|
|
1198
1838
|
value: string;
|
|
1199
1839
|
to: string;
|
|
1200
1840
|
data: string;
|
|
@@ -1221,12 +1861,26 @@ export declare const CORNToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1221
1861
|
txOverrides?: import("..").EVMTxParams;
|
|
1222
1862
|
data?: string;
|
|
1223
1863
|
}) => Promise<bigint>;
|
|
1224
|
-
estimateGasPrices: () => Promise<{
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1864
|
+
estimateGasPrices: () => Promise<{
|
|
1865
|
+
average: {
|
|
1866
|
+
gasPrice?: bigint;
|
|
1867
|
+
l1GasPrice?: bigint;
|
|
1868
|
+
maxFeePerGas?: bigint;
|
|
1869
|
+
maxPriorityFeePerGas?: bigint;
|
|
1870
|
+
};
|
|
1871
|
+
fast: {
|
|
1872
|
+
gasPrice?: bigint;
|
|
1873
|
+
l1GasPrice?: bigint;
|
|
1874
|
+
maxFeePerGas?: bigint;
|
|
1875
|
+
maxPriorityFeePerGas?: bigint;
|
|
1876
|
+
};
|
|
1877
|
+
fastest: {
|
|
1878
|
+
gasPrice?: bigint;
|
|
1879
|
+
l1GasPrice?: bigint;
|
|
1880
|
+
maxFeePerGas?: bigint;
|
|
1881
|
+
maxPriorityFeePerGas?: bigint;
|
|
1882
|
+
};
|
|
1883
|
+
}>;
|
|
1230
1884
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
1231
1885
|
feeOption: FeeOption;
|
|
1232
1886
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1234,8 +1888,9 @@ export declare const CORNToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1234
1888
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1235
1889
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1236
1890
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
1237
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
1891
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
1238
1892
|
feeOptionKey?: FeeOption;
|
|
1893
|
+
sweep?: boolean;
|
|
1239
1894
|
}) => Promise<string>;
|
|
1240
1895
|
signAuthorization: ((params: {
|
|
1241
1896
|
address: string;
|
|
@@ -1244,7 +1899,7 @@ export declare const CORNToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1244
1899
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1245
1900
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1246
1901
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1247
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1902
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1248
1903
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
1249
1904
|
};
|
|
1250
1905
|
export declare const CROToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -1289,7 +1944,29 @@ export declare const CROToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
1289
1944
|
blockTag?: import("ethers").BlockTag;
|
|
1290
1945
|
enableCcipRead?: boolean;
|
|
1291
1946
|
}>;
|
|
1292
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1947
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1948
|
+
gasLimit: bigint;
|
|
1949
|
+
value: string;
|
|
1950
|
+
data: string;
|
|
1951
|
+
from: string;
|
|
1952
|
+
to: string;
|
|
1953
|
+
maxFeePerGas: bigint;
|
|
1954
|
+
maxPriorityFeePerGas: bigint;
|
|
1955
|
+
gasPrice?: undefined;
|
|
1956
|
+
type?: number | undefined;
|
|
1957
|
+
nonce?: number | undefined;
|
|
1958
|
+
} | {
|
|
1959
|
+
gasLimit: bigint;
|
|
1960
|
+
value: string;
|
|
1961
|
+
data: string;
|
|
1962
|
+
from: string;
|
|
1963
|
+
to: string;
|
|
1964
|
+
gasPrice: bigint;
|
|
1965
|
+
maxFeePerGas?: undefined;
|
|
1966
|
+
maxPriorityFeePerGas?: undefined;
|
|
1967
|
+
type?: number | undefined;
|
|
1968
|
+
nonce?: number | undefined;
|
|
1969
|
+
} | {
|
|
1293
1970
|
value: string;
|
|
1294
1971
|
to: string;
|
|
1295
1972
|
data: string;
|
|
@@ -1307,7 +1984,29 @@ export declare const CROToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
1307
1984
|
blockTag?: import("ethers").BlockTag;
|
|
1308
1985
|
enableCcipRead?: boolean;
|
|
1309
1986
|
}>;
|
|
1310
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1987
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
1988
|
+
gasLimit: bigint;
|
|
1989
|
+
value: string;
|
|
1990
|
+
data: string;
|
|
1991
|
+
from: string;
|
|
1992
|
+
to: string;
|
|
1993
|
+
maxFeePerGas: bigint;
|
|
1994
|
+
maxPriorityFeePerGas: bigint;
|
|
1995
|
+
gasPrice?: undefined;
|
|
1996
|
+
type?: number | undefined;
|
|
1997
|
+
nonce?: number | undefined;
|
|
1998
|
+
} | {
|
|
1999
|
+
gasLimit: bigint;
|
|
2000
|
+
value: string;
|
|
2001
|
+
data: string;
|
|
2002
|
+
from: string;
|
|
2003
|
+
to: string;
|
|
2004
|
+
gasPrice: bigint;
|
|
2005
|
+
maxFeePerGas?: undefined;
|
|
2006
|
+
maxPriorityFeePerGas?: undefined;
|
|
2007
|
+
type?: number | undefined;
|
|
2008
|
+
nonce?: number | undefined;
|
|
2009
|
+
} | {
|
|
1311
2010
|
value: string;
|
|
1312
2011
|
to: string;
|
|
1313
2012
|
data: string;
|
|
@@ -1334,12 +2033,26 @@ export declare const CROToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
1334
2033
|
txOverrides?: import("..").EVMTxParams;
|
|
1335
2034
|
data?: string;
|
|
1336
2035
|
}) => Promise<bigint>;
|
|
1337
|
-
estimateGasPrices: () => Promise<{
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
2036
|
+
estimateGasPrices: () => Promise<{
|
|
2037
|
+
average: {
|
|
2038
|
+
gasPrice?: bigint;
|
|
2039
|
+
l1GasPrice?: bigint;
|
|
2040
|
+
maxFeePerGas?: bigint;
|
|
2041
|
+
maxPriorityFeePerGas?: bigint;
|
|
2042
|
+
};
|
|
2043
|
+
fast: {
|
|
2044
|
+
gasPrice?: bigint;
|
|
2045
|
+
l1GasPrice?: bigint;
|
|
2046
|
+
maxFeePerGas?: bigint;
|
|
2047
|
+
maxPriorityFeePerGas?: bigint;
|
|
2048
|
+
};
|
|
2049
|
+
fastest: {
|
|
2050
|
+
gasPrice?: bigint;
|
|
2051
|
+
l1GasPrice?: bigint;
|
|
2052
|
+
maxFeePerGas?: bigint;
|
|
2053
|
+
maxPriorityFeePerGas?: bigint;
|
|
2054
|
+
};
|
|
2055
|
+
}>;
|
|
1343
2056
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
1344
2057
|
feeOption: FeeOption;
|
|
1345
2058
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1347,8 +2060,9 @@ export declare const CROToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
1347
2060
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1348
2061
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1349
2062
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
1350
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
2063
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
1351
2064
|
feeOptionKey?: FeeOption;
|
|
2065
|
+
sweep?: boolean;
|
|
1352
2066
|
}) => Promise<string>;
|
|
1353
2067
|
signAuthorization: ((params: {
|
|
1354
2068
|
address: string;
|
|
@@ -1357,7 +2071,7 @@ export declare const CROToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
1357
2071
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1358
2072
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1359
2073
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1360
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
2074
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1361
2075
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
1362
2076
|
};
|
|
1363
2077
|
export declare const GNOToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -1402,7 +2116,29 @@ export declare const GNOToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
1402
2116
|
blockTag?: import("ethers").BlockTag;
|
|
1403
2117
|
enableCcipRead?: boolean;
|
|
1404
2118
|
}>;
|
|
1405
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2119
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2120
|
+
gasLimit: bigint;
|
|
2121
|
+
value: string;
|
|
2122
|
+
data: string;
|
|
2123
|
+
from: string;
|
|
2124
|
+
to: string;
|
|
2125
|
+
maxFeePerGas: bigint;
|
|
2126
|
+
maxPriorityFeePerGas: bigint;
|
|
2127
|
+
gasPrice?: undefined;
|
|
2128
|
+
type?: number | undefined;
|
|
2129
|
+
nonce?: number | undefined;
|
|
2130
|
+
} | {
|
|
2131
|
+
gasLimit: bigint;
|
|
2132
|
+
value: string;
|
|
2133
|
+
data: string;
|
|
2134
|
+
from: string;
|
|
2135
|
+
to: string;
|
|
2136
|
+
gasPrice: bigint;
|
|
2137
|
+
maxFeePerGas?: undefined;
|
|
2138
|
+
maxPriorityFeePerGas?: undefined;
|
|
2139
|
+
type?: number | undefined;
|
|
2140
|
+
nonce?: number | undefined;
|
|
2141
|
+
} | {
|
|
1406
2142
|
value: string;
|
|
1407
2143
|
to: string;
|
|
1408
2144
|
data: string;
|
|
@@ -1420,7 +2156,29 @@ export declare const GNOToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
1420
2156
|
blockTag?: import("ethers").BlockTag;
|
|
1421
2157
|
enableCcipRead?: boolean;
|
|
1422
2158
|
}>;
|
|
1423
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2159
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2160
|
+
gasLimit: bigint;
|
|
2161
|
+
value: string;
|
|
2162
|
+
data: string;
|
|
2163
|
+
from: string;
|
|
2164
|
+
to: string;
|
|
2165
|
+
maxFeePerGas: bigint;
|
|
2166
|
+
maxPriorityFeePerGas: bigint;
|
|
2167
|
+
gasPrice?: undefined;
|
|
2168
|
+
type?: number | undefined;
|
|
2169
|
+
nonce?: number | undefined;
|
|
2170
|
+
} | {
|
|
2171
|
+
gasLimit: bigint;
|
|
2172
|
+
value: string;
|
|
2173
|
+
data: string;
|
|
2174
|
+
from: string;
|
|
2175
|
+
to: string;
|
|
2176
|
+
gasPrice: bigint;
|
|
2177
|
+
maxFeePerGas?: undefined;
|
|
2178
|
+
maxPriorityFeePerGas?: undefined;
|
|
2179
|
+
type?: number | undefined;
|
|
2180
|
+
nonce?: number | undefined;
|
|
2181
|
+
} | {
|
|
1424
2182
|
value: string;
|
|
1425
2183
|
to: string;
|
|
1426
2184
|
data: string;
|
|
@@ -1447,12 +2205,26 @@ export declare const GNOToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
1447
2205
|
txOverrides?: import("..").EVMTxParams;
|
|
1448
2206
|
data?: string;
|
|
1449
2207
|
}) => Promise<bigint>;
|
|
1450
|
-
estimateGasPrices: () => Promise<{
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
2208
|
+
estimateGasPrices: () => Promise<{
|
|
2209
|
+
average: {
|
|
2210
|
+
gasPrice?: bigint;
|
|
2211
|
+
l1GasPrice?: bigint;
|
|
2212
|
+
maxFeePerGas?: bigint;
|
|
2213
|
+
maxPriorityFeePerGas?: bigint;
|
|
2214
|
+
};
|
|
2215
|
+
fast: {
|
|
2216
|
+
gasPrice?: bigint;
|
|
2217
|
+
l1GasPrice?: bigint;
|
|
2218
|
+
maxFeePerGas?: bigint;
|
|
2219
|
+
maxPriorityFeePerGas?: bigint;
|
|
2220
|
+
};
|
|
2221
|
+
fastest: {
|
|
2222
|
+
gasPrice?: bigint;
|
|
2223
|
+
l1GasPrice?: bigint;
|
|
2224
|
+
maxFeePerGas?: bigint;
|
|
2225
|
+
maxPriorityFeePerGas?: bigint;
|
|
2226
|
+
};
|
|
2227
|
+
}>;
|
|
1456
2228
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
1457
2229
|
feeOption: FeeOption;
|
|
1458
2230
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1460,8 +2232,9 @@ export declare const GNOToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
1460
2232
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1461
2233
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1462
2234
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
1463
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
2235
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
1464
2236
|
feeOptionKey?: FeeOption;
|
|
2237
|
+
sweep?: boolean;
|
|
1465
2238
|
}) => Promise<string>;
|
|
1466
2239
|
signAuthorization: ((params: {
|
|
1467
2240
|
address: string;
|
|
@@ -1470,7 +2243,7 @@ export declare const GNOToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
1470
2243
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1471
2244
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1472
2245
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1473
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
2246
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1474
2247
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
1475
2248
|
};
|
|
1476
2249
|
export declare const HOODToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -1515,7 +2288,29 @@ export declare const HOODToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1515
2288
|
blockTag?: import("ethers").BlockTag;
|
|
1516
2289
|
enableCcipRead?: boolean;
|
|
1517
2290
|
}>;
|
|
1518
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2291
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2292
|
+
gasLimit: bigint;
|
|
2293
|
+
value: string;
|
|
2294
|
+
data: string;
|
|
2295
|
+
from: string;
|
|
2296
|
+
to: string;
|
|
2297
|
+
maxFeePerGas: bigint;
|
|
2298
|
+
maxPriorityFeePerGas: bigint;
|
|
2299
|
+
gasPrice?: undefined;
|
|
2300
|
+
type?: number | undefined;
|
|
2301
|
+
nonce?: number | undefined;
|
|
2302
|
+
} | {
|
|
2303
|
+
gasLimit: bigint;
|
|
2304
|
+
value: string;
|
|
2305
|
+
data: string;
|
|
2306
|
+
from: string;
|
|
2307
|
+
to: string;
|
|
2308
|
+
gasPrice: bigint;
|
|
2309
|
+
maxFeePerGas?: undefined;
|
|
2310
|
+
maxPriorityFeePerGas?: undefined;
|
|
2311
|
+
type?: number | undefined;
|
|
2312
|
+
nonce?: number | undefined;
|
|
2313
|
+
} | {
|
|
1519
2314
|
value: string;
|
|
1520
2315
|
to: string;
|
|
1521
2316
|
data: string;
|
|
@@ -1533,7 +2328,29 @@ export declare const HOODToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1533
2328
|
blockTag?: import("ethers").BlockTag;
|
|
1534
2329
|
enableCcipRead?: boolean;
|
|
1535
2330
|
}>;
|
|
1536
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2331
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2332
|
+
gasLimit: bigint;
|
|
2333
|
+
value: string;
|
|
2334
|
+
data: string;
|
|
2335
|
+
from: string;
|
|
2336
|
+
to: string;
|
|
2337
|
+
maxFeePerGas: bigint;
|
|
2338
|
+
maxPriorityFeePerGas: bigint;
|
|
2339
|
+
gasPrice?: undefined;
|
|
2340
|
+
type?: number | undefined;
|
|
2341
|
+
nonce?: number | undefined;
|
|
2342
|
+
} | {
|
|
2343
|
+
gasLimit: bigint;
|
|
2344
|
+
value: string;
|
|
2345
|
+
data: string;
|
|
2346
|
+
from: string;
|
|
2347
|
+
to: string;
|
|
2348
|
+
gasPrice: bigint;
|
|
2349
|
+
maxFeePerGas?: undefined;
|
|
2350
|
+
maxPriorityFeePerGas?: undefined;
|
|
2351
|
+
type?: number | undefined;
|
|
2352
|
+
nonce?: number | undefined;
|
|
2353
|
+
} | {
|
|
1537
2354
|
value: string;
|
|
1538
2355
|
to: string;
|
|
1539
2356
|
data: string;
|
|
@@ -1560,12 +2377,26 @@ export declare const HOODToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1560
2377
|
txOverrides?: import("..").EVMTxParams;
|
|
1561
2378
|
data?: string;
|
|
1562
2379
|
}) => Promise<bigint>;
|
|
1563
|
-
estimateGasPrices: () => Promise<{
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
2380
|
+
estimateGasPrices: () => Promise<{
|
|
2381
|
+
average: {
|
|
2382
|
+
gasPrice?: bigint;
|
|
2383
|
+
l1GasPrice?: bigint;
|
|
2384
|
+
maxFeePerGas?: bigint;
|
|
2385
|
+
maxPriorityFeePerGas?: bigint;
|
|
2386
|
+
};
|
|
2387
|
+
fast: {
|
|
2388
|
+
gasPrice?: bigint;
|
|
2389
|
+
l1GasPrice?: bigint;
|
|
2390
|
+
maxFeePerGas?: bigint;
|
|
2391
|
+
maxPriorityFeePerGas?: bigint;
|
|
2392
|
+
};
|
|
2393
|
+
fastest: {
|
|
2394
|
+
gasPrice?: bigint;
|
|
2395
|
+
l1GasPrice?: bigint;
|
|
2396
|
+
maxFeePerGas?: bigint;
|
|
2397
|
+
maxPriorityFeePerGas?: bigint;
|
|
2398
|
+
};
|
|
2399
|
+
}>;
|
|
1569
2400
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
1570
2401
|
feeOption: FeeOption;
|
|
1571
2402
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1573,8 +2404,9 @@ export declare const HOODToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1573
2404
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1574
2405
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1575
2406
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
1576
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
2407
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
1577
2408
|
feeOptionKey?: FeeOption;
|
|
2409
|
+
sweep?: boolean;
|
|
1578
2410
|
}) => Promise<string>;
|
|
1579
2411
|
signAuthorization: ((params: {
|
|
1580
2412
|
address: string;
|
|
@@ -1583,7 +2415,7 @@ export declare const HOODToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1583
2415
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1584
2416
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1585
2417
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1586
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
2418
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1587
2419
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
1588
2420
|
};
|
|
1589
2421
|
export declare const HYPEREVMToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -1628,7 +2460,29 @@ export declare const HYPEREVMToolbox: ({ provider, ...toolboxParams }: EVMToolbo
|
|
|
1628
2460
|
blockTag?: import("ethers").BlockTag;
|
|
1629
2461
|
enableCcipRead?: boolean;
|
|
1630
2462
|
}>;
|
|
1631
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2463
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2464
|
+
gasLimit: bigint;
|
|
2465
|
+
value: string;
|
|
2466
|
+
data: string;
|
|
2467
|
+
from: string;
|
|
2468
|
+
to: string;
|
|
2469
|
+
maxFeePerGas: bigint;
|
|
2470
|
+
maxPriorityFeePerGas: bigint;
|
|
2471
|
+
gasPrice?: undefined;
|
|
2472
|
+
type?: number | undefined;
|
|
2473
|
+
nonce?: number | undefined;
|
|
2474
|
+
} | {
|
|
2475
|
+
gasLimit: bigint;
|
|
2476
|
+
value: string;
|
|
2477
|
+
data: string;
|
|
2478
|
+
from: string;
|
|
2479
|
+
to: string;
|
|
2480
|
+
gasPrice: bigint;
|
|
2481
|
+
maxFeePerGas?: undefined;
|
|
2482
|
+
maxPriorityFeePerGas?: undefined;
|
|
2483
|
+
type?: number | undefined;
|
|
2484
|
+
nonce?: number | undefined;
|
|
2485
|
+
} | {
|
|
1632
2486
|
value: string;
|
|
1633
2487
|
to: string;
|
|
1634
2488
|
data: string;
|
|
@@ -1646,7 +2500,29 @@ export declare const HYPEREVMToolbox: ({ provider, ...toolboxParams }: EVMToolbo
|
|
|
1646
2500
|
blockTag?: import("ethers").BlockTag;
|
|
1647
2501
|
enableCcipRead?: boolean;
|
|
1648
2502
|
}>;
|
|
1649
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2503
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2504
|
+
gasLimit: bigint;
|
|
2505
|
+
value: string;
|
|
2506
|
+
data: string;
|
|
2507
|
+
from: string;
|
|
2508
|
+
to: string;
|
|
2509
|
+
maxFeePerGas: bigint;
|
|
2510
|
+
maxPriorityFeePerGas: bigint;
|
|
2511
|
+
gasPrice?: undefined;
|
|
2512
|
+
type?: number | undefined;
|
|
2513
|
+
nonce?: number | undefined;
|
|
2514
|
+
} | {
|
|
2515
|
+
gasLimit: bigint;
|
|
2516
|
+
value: string;
|
|
2517
|
+
data: string;
|
|
2518
|
+
from: string;
|
|
2519
|
+
to: string;
|
|
2520
|
+
gasPrice: bigint;
|
|
2521
|
+
maxFeePerGas?: undefined;
|
|
2522
|
+
maxPriorityFeePerGas?: undefined;
|
|
2523
|
+
type?: number | undefined;
|
|
2524
|
+
nonce?: number | undefined;
|
|
2525
|
+
} | {
|
|
1650
2526
|
value: string;
|
|
1651
2527
|
to: string;
|
|
1652
2528
|
data: string;
|
|
@@ -1673,12 +2549,26 @@ export declare const HYPEREVMToolbox: ({ provider, ...toolboxParams }: EVMToolbo
|
|
|
1673
2549
|
txOverrides?: import("..").EVMTxParams;
|
|
1674
2550
|
data?: string;
|
|
1675
2551
|
}) => Promise<bigint>;
|
|
1676
|
-
estimateGasPrices: () => Promise<{
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
2552
|
+
estimateGasPrices: () => Promise<{
|
|
2553
|
+
average: {
|
|
2554
|
+
gasPrice?: bigint;
|
|
2555
|
+
l1GasPrice?: bigint;
|
|
2556
|
+
maxFeePerGas?: bigint;
|
|
2557
|
+
maxPriorityFeePerGas?: bigint;
|
|
2558
|
+
};
|
|
2559
|
+
fast: {
|
|
2560
|
+
gasPrice?: bigint;
|
|
2561
|
+
l1GasPrice?: bigint;
|
|
2562
|
+
maxFeePerGas?: bigint;
|
|
2563
|
+
maxPriorityFeePerGas?: bigint;
|
|
2564
|
+
};
|
|
2565
|
+
fastest: {
|
|
2566
|
+
gasPrice?: bigint;
|
|
2567
|
+
l1GasPrice?: bigint;
|
|
2568
|
+
maxFeePerGas?: bigint;
|
|
2569
|
+
maxPriorityFeePerGas?: bigint;
|
|
2570
|
+
};
|
|
2571
|
+
}>;
|
|
1682
2572
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
1683
2573
|
feeOption: FeeOption;
|
|
1684
2574
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1686,8 +2576,9 @@ export declare const HYPEREVMToolbox: ({ provider, ...toolboxParams }: EVMToolbo
|
|
|
1686
2576
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1687
2577
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1688
2578
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
1689
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
2579
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
1690
2580
|
feeOptionKey?: FeeOption;
|
|
2581
|
+
sweep?: boolean;
|
|
1691
2582
|
}) => Promise<string>;
|
|
1692
2583
|
signAuthorization: ((params: {
|
|
1693
2584
|
address: string;
|
|
@@ -1696,7 +2587,7 @@ export declare const HYPEREVMToolbox: ({ provider, ...toolboxParams }: EVMToolbo
|
|
|
1696
2587
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1697
2588
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1698
2589
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1699
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
2590
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1700
2591
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
1701
2592
|
};
|
|
1702
2593
|
export declare const LINEAToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -1741,7 +2632,29 @@ export declare const LINEAToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
1741
2632
|
blockTag?: import("ethers").BlockTag;
|
|
1742
2633
|
enableCcipRead?: boolean;
|
|
1743
2634
|
}>;
|
|
1744
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2635
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2636
|
+
gasLimit: bigint;
|
|
2637
|
+
value: string;
|
|
2638
|
+
data: string;
|
|
2639
|
+
from: string;
|
|
2640
|
+
to: string;
|
|
2641
|
+
maxFeePerGas: bigint;
|
|
2642
|
+
maxPriorityFeePerGas: bigint;
|
|
2643
|
+
gasPrice?: undefined;
|
|
2644
|
+
type?: number | undefined;
|
|
2645
|
+
nonce?: number | undefined;
|
|
2646
|
+
} | {
|
|
2647
|
+
gasLimit: bigint;
|
|
2648
|
+
value: string;
|
|
2649
|
+
data: string;
|
|
2650
|
+
from: string;
|
|
2651
|
+
to: string;
|
|
2652
|
+
gasPrice: bigint;
|
|
2653
|
+
maxFeePerGas?: undefined;
|
|
2654
|
+
maxPriorityFeePerGas?: undefined;
|
|
2655
|
+
type?: number | undefined;
|
|
2656
|
+
nonce?: number | undefined;
|
|
2657
|
+
} | {
|
|
1745
2658
|
value: string;
|
|
1746
2659
|
to: string;
|
|
1747
2660
|
data: string;
|
|
@@ -1759,7 +2672,29 @@ export declare const LINEAToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
1759
2672
|
blockTag?: import("ethers").BlockTag;
|
|
1760
2673
|
enableCcipRead?: boolean;
|
|
1761
2674
|
}>;
|
|
1762
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2675
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2676
|
+
gasLimit: bigint;
|
|
2677
|
+
value: string;
|
|
2678
|
+
data: string;
|
|
2679
|
+
from: string;
|
|
2680
|
+
to: string;
|
|
2681
|
+
maxFeePerGas: bigint;
|
|
2682
|
+
maxPriorityFeePerGas: bigint;
|
|
2683
|
+
gasPrice?: undefined;
|
|
2684
|
+
type?: number | undefined;
|
|
2685
|
+
nonce?: number | undefined;
|
|
2686
|
+
} | {
|
|
2687
|
+
gasLimit: bigint;
|
|
2688
|
+
value: string;
|
|
2689
|
+
data: string;
|
|
2690
|
+
from: string;
|
|
2691
|
+
to: string;
|
|
2692
|
+
gasPrice: bigint;
|
|
2693
|
+
maxFeePerGas?: undefined;
|
|
2694
|
+
maxPriorityFeePerGas?: undefined;
|
|
2695
|
+
type?: number | undefined;
|
|
2696
|
+
nonce?: number | undefined;
|
|
2697
|
+
} | {
|
|
1763
2698
|
value: string;
|
|
1764
2699
|
to: string;
|
|
1765
2700
|
data: string;
|
|
@@ -1786,12 +2721,26 @@ export declare const LINEAToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
1786
2721
|
txOverrides?: import("..").EVMTxParams;
|
|
1787
2722
|
data?: string;
|
|
1788
2723
|
}) => Promise<bigint>;
|
|
1789
|
-
estimateGasPrices: () => Promise<{
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
2724
|
+
estimateGasPrices: () => Promise<{
|
|
2725
|
+
average: {
|
|
2726
|
+
gasPrice?: bigint;
|
|
2727
|
+
l1GasPrice?: bigint;
|
|
2728
|
+
maxFeePerGas?: bigint;
|
|
2729
|
+
maxPriorityFeePerGas?: bigint;
|
|
2730
|
+
};
|
|
2731
|
+
fast: {
|
|
2732
|
+
gasPrice?: bigint;
|
|
2733
|
+
l1GasPrice?: bigint;
|
|
2734
|
+
maxFeePerGas?: bigint;
|
|
2735
|
+
maxPriorityFeePerGas?: bigint;
|
|
2736
|
+
};
|
|
2737
|
+
fastest: {
|
|
2738
|
+
gasPrice?: bigint;
|
|
2739
|
+
l1GasPrice?: bigint;
|
|
2740
|
+
maxFeePerGas?: bigint;
|
|
2741
|
+
maxPriorityFeePerGas?: bigint;
|
|
2742
|
+
};
|
|
2743
|
+
}>;
|
|
1795
2744
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
1796
2745
|
feeOption: FeeOption;
|
|
1797
2746
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1799,8 +2748,9 @@ export declare const LINEAToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
1799
2748
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1800
2749
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1801
2750
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
1802
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
2751
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
1803
2752
|
feeOptionKey?: FeeOption;
|
|
2753
|
+
sweep?: boolean;
|
|
1804
2754
|
}) => Promise<string>;
|
|
1805
2755
|
signAuthorization: ((params: {
|
|
1806
2756
|
address: string;
|
|
@@ -1809,7 +2759,7 @@ export declare const LINEAToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
1809
2759
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1810
2760
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1811
2761
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1812
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
2762
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1813
2763
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
1814
2764
|
};
|
|
1815
2765
|
export declare const MATICToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -1854,7 +2804,29 @@ export declare const MATICToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
1854
2804
|
blockTag?: import("ethers").BlockTag;
|
|
1855
2805
|
enableCcipRead?: boolean;
|
|
1856
2806
|
}>;
|
|
1857
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2807
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2808
|
+
gasLimit: bigint;
|
|
2809
|
+
value: string;
|
|
2810
|
+
data: string;
|
|
2811
|
+
from: string;
|
|
2812
|
+
to: string;
|
|
2813
|
+
maxFeePerGas: bigint;
|
|
2814
|
+
maxPriorityFeePerGas: bigint;
|
|
2815
|
+
gasPrice?: undefined;
|
|
2816
|
+
type?: number | undefined;
|
|
2817
|
+
nonce?: number | undefined;
|
|
2818
|
+
} | {
|
|
2819
|
+
gasLimit: bigint;
|
|
2820
|
+
value: string;
|
|
2821
|
+
data: string;
|
|
2822
|
+
from: string;
|
|
2823
|
+
to: string;
|
|
2824
|
+
gasPrice: bigint;
|
|
2825
|
+
maxFeePerGas?: undefined;
|
|
2826
|
+
maxPriorityFeePerGas?: undefined;
|
|
2827
|
+
type?: number | undefined;
|
|
2828
|
+
nonce?: number | undefined;
|
|
2829
|
+
} | {
|
|
1858
2830
|
value: string;
|
|
1859
2831
|
to: string;
|
|
1860
2832
|
data: string;
|
|
@@ -1872,7 +2844,29 @@ export declare const MATICToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
1872
2844
|
blockTag?: import("ethers").BlockTag;
|
|
1873
2845
|
enableCcipRead?: boolean;
|
|
1874
2846
|
}>;
|
|
1875
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2847
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2848
|
+
gasLimit: bigint;
|
|
2849
|
+
value: string;
|
|
2850
|
+
data: string;
|
|
2851
|
+
from: string;
|
|
2852
|
+
to: string;
|
|
2853
|
+
maxFeePerGas: bigint;
|
|
2854
|
+
maxPriorityFeePerGas: bigint;
|
|
2855
|
+
gasPrice?: undefined;
|
|
2856
|
+
type?: number | undefined;
|
|
2857
|
+
nonce?: number | undefined;
|
|
2858
|
+
} | {
|
|
2859
|
+
gasLimit: bigint;
|
|
2860
|
+
value: string;
|
|
2861
|
+
data: string;
|
|
2862
|
+
from: string;
|
|
2863
|
+
to: string;
|
|
2864
|
+
gasPrice: bigint;
|
|
2865
|
+
maxFeePerGas?: undefined;
|
|
2866
|
+
maxPriorityFeePerGas?: undefined;
|
|
2867
|
+
type?: number | undefined;
|
|
2868
|
+
nonce?: number | undefined;
|
|
2869
|
+
} | {
|
|
1876
2870
|
value: string;
|
|
1877
2871
|
to: string;
|
|
1878
2872
|
data: string;
|
|
@@ -1899,12 +2893,26 @@ export declare const MATICToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
1899
2893
|
txOverrides?: import("..").EVMTxParams;
|
|
1900
2894
|
data?: string;
|
|
1901
2895
|
}) => Promise<bigint>;
|
|
1902
|
-
estimateGasPrices: () => Promise<{
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
2896
|
+
estimateGasPrices: () => Promise<{
|
|
2897
|
+
average: {
|
|
2898
|
+
gasPrice?: bigint;
|
|
2899
|
+
l1GasPrice?: bigint;
|
|
2900
|
+
maxFeePerGas?: bigint;
|
|
2901
|
+
maxPriorityFeePerGas?: bigint;
|
|
2902
|
+
};
|
|
2903
|
+
fast: {
|
|
2904
|
+
gasPrice?: bigint;
|
|
2905
|
+
l1GasPrice?: bigint;
|
|
2906
|
+
maxFeePerGas?: bigint;
|
|
2907
|
+
maxPriorityFeePerGas?: bigint;
|
|
2908
|
+
};
|
|
2909
|
+
fastest: {
|
|
2910
|
+
gasPrice?: bigint;
|
|
2911
|
+
l1GasPrice?: bigint;
|
|
2912
|
+
maxFeePerGas?: bigint;
|
|
2913
|
+
maxPriorityFeePerGas?: bigint;
|
|
2914
|
+
};
|
|
2915
|
+
}>;
|
|
1908
2916
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
1909
2917
|
feeOption: FeeOption;
|
|
1910
2918
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1912,8 +2920,9 @@ export declare const MATICToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
1912
2920
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1913
2921
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1914
2922
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
1915
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
2923
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
1916
2924
|
feeOptionKey?: FeeOption;
|
|
2925
|
+
sweep?: boolean;
|
|
1917
2926
|
}) => Promise<string>;
|
|
1918
2927
|
signAuthorization: ((params: {
|
|
1919
2928
|
address: string;
|
|
@@ -1922,7 +2931,7 @@ export declare const MATICToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
1922
2931
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1923
2932
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1924
2933
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1925
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
2934
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
1926
2935
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
1927
2936
|
};
|
|
1928
2937
|
export declare const MEGAETHToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -1967,7 +2976,29 @@ export declare const MEGAETHToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
1967
2976
|
blockTag?: import("ethers").BlockTag;
|
|
1968
2977
|
enableCcipRead?: boolean;
|
|
1969
2978
|
}>;
|
|
1970
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2979
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
2980
|
+
gasLimit: bigint;
|
|
2981
|
+
value: string;
|
|
2982
|
+
data: string;
|
|
2983
|
+
from: string;
|
|
2984
|
+
to: string;
|
|
2985
|
+
maxFeePerGas: bigint;
|
|
2986
|
+
maxPriorityFeePerGas: bigint;
|
|
2987
|
+
gasPrice?: undefined;
|
|
2988
|
+
type?: number | undefined;
|
|
2989
|
+
nonce?: number | undefined;
|
|
2990
|
+
} | {
|
|
2991
|
+
gasLimit: bigint;
|
|
2992
|
+
value: string;
|
|
2993
|
+
data: string;
|
|
2994
|
+
from: string;
|
|
2995
|
+
to: string;
|
|
2996
|
+
gasPrice: bigint;
|
|
2997
|
+
maxFeePerGas?: undefined;
|
|
2998
|
+
maxPriorityFeePerGas?: undefined;
|
|
2999
|
+
type?: number | undefined;
|
|
3000
|
+
nonce?: number | undefined;
|
|
3001
|
+
} | {
|
|
1971
3002
|
value: string;
|
|
1972
3003
|
to: string;
|
|
1973
3004
|
data: string;
|
|
@@ -1985,7 +3016,29 @@ export declare const MEGAETHToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
1985
3016
|
blockTag?: import("ethers").BlockTag;
|
|
1986
3017
|
enableCcipRead?: boolean;
|
|
1987
3018
|
}>;
|
|
1988
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3019
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3020
|
+
gasLimit: bigint;
|
|
3021
|
+
value: string;
|
|
3022
|
+
data: string;
|
|
3023
|
+
from: string;
|
|
3024
|
+
to: string;
|
|
3025
|
+
maxFeePerGas: bigint;
|
|
3026
|
+
maxPriorityFeePerGas: bigint;
|
|
3027
|
+
gasPrice?: undefined;
|
|
3028
|
+
type?: number | undefined;
|
|
3029
|
+
nonce?: number | undefined;
|
|
3030
|
+
} | {
|
|
3031
|
+
gasLimit: bigint;
|
|
3032
|
+
value: string;
|
|
3033
|
+
data: string;
|
|
3034
|
+
from: string;
|
|
3035
|
+
to: string;
|
|
3036
|
+
gasPrice: bigint;
|
|
3037
|
+
maxFeePerGas?: undefined;
|
|
3038
|
+
maxPriorityFeePerGas?: undefined;
|
|
3039
|
+
type?: number | undefined;
|
|
3040
|
+
nonce?: number | undefined;
|
|
3041
|
+
} | {
|
|
1989
3042
|
value: string;
|
|
1990
3043
|
to: string;
|
|
1991
3044
|
data: string;
|
|
@@ -2012,12 +3065,26 @@ export declare const MEGAETHToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
2012
3065
|
txOverrides?: import("..").EVMTxParams;
|
|
2013
3066
|
data?: string;
|
|
2014
3067
|
}) => Promise<bigint>;
|
|
2015
|
-
estimateGasPrices: () => Promise<{
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
3068
|
+
estimateGasPrices: () => Promise<{
|
|
3069
|
+
average: {
|
|
3070
|
+
gasPrice?: bigint;
|
|
3071
|
+
l1GasPrice?: bigint;
|
|
3072
|
+
maxFeePerGas?: bigint;
|
|
3073
|
+
maxPriorityFeePerGas?: bigint;
|
|
3074
|
+
};
|
|
3075
|
+
fast: {
|
|
3076
|
+
gasPrice?: bigint;
|
|
3077
|
+
l1GasPrice?: bigint;
|
|
3078
|
+
maxFeePerGas?: bigint;
|
|
3079
|
+
maxPriorityFeePerGas?: bigint;
|
|
3080
|
+
};
|
|
3081
|
+
fastest: {
|
|
3082
|
+
gasPrice?: bigint;
|
|
3083
|
+
l1GasPrice?: bigint;
|
|
3084
|
+
maxFeePerGas?: bigint;
|
|
3085
|
+
maxPriorityFeePerGas?: bigint;
|
|
3086
|
+
};
|
|
3087
|
+
}>;
|
|
2021
3088
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
2022
3089
|
feeOption: FeeOption;
|
|
2023
3090
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -2025,8 +3092,9 @@ export declare const MEGAETHToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
2025
3092
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2026
3093
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
2027
3094
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
2028
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
3095
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
2029
3096
|
feeOptionKey?: FeeOption;
|
|
3097
|
+
sweep?: boolean;
|
|
2030
3098
|
}) => Promise<string>;
|
|
2031
3099
|
signAuthorization: ((params: {
|
|
2032
3100
|
address: string;
|
|
@@ -2035,7 +3103,7 @@ export declare const MEGAETHToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
2035
3103
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2036
3104
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2037
3105
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2038
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
3106
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
2039
3107
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
2040
3108
|
};
|
|
2041
3109
|
export declare const MONADToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -2080,7 +3148,29 @@ export declare const MONADToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
2080
3148
|
blockTag?: import("ethers").BlockTag;
|
|
2081
3149
|
enableCcipRead?: boolean;
|
|
2082
3150
|
}>;
|
|
2083
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3151
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3152
|
+
gasLimit: bigint;
|
|
3153
|
+
value: string;
|
|
3154
|
+
data: string;
|
|
3155
|
+
from: string;
|
|
3156
|
+
to: string;
|
|
3157
|
+
maxFeePerGas: bigint;
|
|
3158
|
+
maxPriorityFeePerGas: bigint;
|
|
3159
|
+
gasPrice?: undefined;
|
|
3160
|
+
type?: number | undefined;
|
|
3161
|
+
nonce?: number | undefined;
|
|
3162
|
+
} | {
|
|
3163
|
+
gasLimit: bigint;
|
|
3164
|
+
value: string;
|
|
3165
|
+
data: string;
|
|
3166
|
+
from: string;
|
|
3167
|
+
to: string;
|
|
3168
|
+
gasPrice: bigint;
|
|
3169
|
+
maxFeePerGas?: undefined;
|
|
3170
|
+
maxPriorityFeePerGas?: undefined;
|
|
3171
|
+
type?: number | undefined;
|
|
3172
|
+
nonce?: number | undefined;
|
|
3173
|
+
} | {
|
|
2084
3174
|
value: string;
|
|
2085
3175
|
to: string;
|
|
2086
3176
|
data: string;
|
|
@@ -2098,7 +3188,29 @@ export declare const MONADToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
2098
3188
|
blockTag?: import("ethers").BlockTag;
|
|
2099
3189
|
enableCcipRead?: boolean;
|
|
2100
3190
|
}>;
|
|
2101
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3191
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3192
|
+
gasLimit: bigint;
|
|
3193
|
+
value: string;
|
|
3194
|
+
data: string;
|
|
3195
|
+
from: string;
|
|
3196
|
+
to: string;
|
|
3197
|
+
maxFeePerGas: bigint;
|
|
3198
|
+
maxPriorityFeePerGas: bigint;
|
|
3199
|
+
gasPrice?: undefined;
|
|
3200
|
+
type?: number | undefined;
|
|
3201
|
+
nonce?: number | undefined;
|
|
3202
|
+
} | {
|
|
3203
|
+
gasLimit: bigint;
|
|
3204
|
+
value: string;
|
|
3205
|
+
data: string;
|
|
3206
|
+
from: string;
|
|
3207
|
+
to: string;
|
|
3208
|
+
gasPrice: bigint;
|
|
3209
|
+
maxFeePerGas?: undefined;
|
|
3210
|
+
maxPriorityFeePerGas?: undefined;
|
|
3211
|
+
type?: number | undefined;
|
|
3212
|
+
nonce?: number | undefined;
|
|
3213
|
+
} | {
|
|
2102
3214
|
value: string;
|
|
2103
3215
|
to: string;
|
|
2104
3216
|
data: string;
|
|
@@ -2125,12 +3237,26 @@ export declare const MONADToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
2125
3237
|
txOverrides?: import("..").EVMTxParams;
|
|
2126
3238
|
data?: string;
|
|
2127
3239
|
}) => Promise<bigint>;
|
|
2128
|
-
estimateGasPrices: () => Promise<{
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
3240
|
+
estimateGasPrices: () => Promise<{
|
|
3241
|
+
average: {
|
|
3242
|
+
gasPrice?: bigint;
|
|
3243
|
+
l1GasPrice?: bigint;
|
|
3244
|
+
maxFeePerGas?: bigint;
|
|
3245
|
+
maxPriorityFeePerGas?: bigint;
|
|
3246
|
+
};
|
|
3247
|
+
fast: {
|
|
3248
|
+
gasPrice?: bigint;
|
|
3249
|
+
l1GasPrice?: bigint;
|
|
3250
|
+
maxFeePerGas?: bigint;
|
|
3251
|
+
maxPriorityFeePerGas?: bigint;
|
|
3252
|
+
};
|
|
3253
|
+
fastest: {
|
|
3254
|
+
gasPrice?: bigint;
|
|
3255
|
+
l1GasPrice?: bigint;
|
|
3256
|
+
maxFeePerGas?: bigint;
|
|
3257
|
+
maxPriorityFeePerGas?: bigint;
|
|
3258
|
+
};
|
|
3259
|
+
}>;
|
|
2134
3260
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
2135
3261
|
feeOption: FeeOption;
|
|
2136
3262
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -2138,8 +3264,9 @@ export declare const MONADToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
2138
3264
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2139
3265
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
2140
3266
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
2141
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
3267
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
2142
3268
|
feeOptionKey?: FeeOption;
|
|
3269
|
+
sweep?: boolean;
|
|
2143
3270
|
}) => Promise<string>;
|
|
2144
3271
|
signAuthorization: ((params: {
|
|
2145
3272
|
address: string;
|
|
@@ -2148,7 +3275,7 @@ export declare const MONADToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
2148
3275
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2149
3276
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2150
3277
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2151
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
3278
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
2152
3279
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
2153
3280
|
};
|
|
2154
3281
|
export declare const PLASMAToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -2193,7 +3320,29 @@ export declare const PLASMAToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
2193
3320
|
blockTag?: import("ethers").BlockTag;
|
|
2194
3321
|
enableCcipRead?: boolean;
|
|
2195
3322
|
}>;
|
|
2196
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3323
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3324
|
+
gasLimit: bigint;
|
|
3325
|
+
value: string;
|
|
3326
|
+
data: string;
|
|
3327
|
+
from: string;
|
|
3328
|
+
to: string;
|
|
3329
|
+
maxFeePerGas: bigint;
|
|
3330
|
+
maxPriorityFeePerGas: bigint;
|
|
3331
|
+
gasPrice?: undefined;
|
|
3332
|
+
type?: number | undefined;
|
|
3333
|
+
nonce?: number | undefined;
|
|
3334
|
+
} | {
|
|
3335
|
+
gasLimit: bigint;
|
|
3336
|
+
value: string;
|
|
3337
|
+
data: string;
|
|
3338
|
+
from: string;
|
|
3339
|
+
to: string;
|
|
3340
|
+
gasPrice: bigint;
|
|
3341
|
+
maxFeePerGas?: undefined;
|
|
3342
|
+
maxPriorityFeePerGas?: undefined;
|
|
3343
|
+
type?: number | undefined;
|
|
3344
|
+
nonce?: number | undefined;
|
|
3345
|
+
} | {
|
|
2197
3346
|
value: string;
|
|
2198
3347
|
to: string;
|
|
2199
3348
|
data: string;
|
|
@@ -2211,7 +3360,29 @@ export declare const PLASMAToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
2211
3360
|
blockTag?: import("ethers").BlockTag;
|
|
2212
3361
|
enableCcipRead?: boolean;
|
|
2213
3362
|
}>;
|
|
2214
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3363
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3364
|
+
gasLimit: bigint;
|
|
3365
|
+
value: string;
|
|
3366
|
+
data: string;
|
|
3367
|
+
from: string;
|
|
3368
|
+
to: string;
|
|
3369
|
+
maxFeePerGas: bigint;
|
|
3370
|
+
maxPriorityFeePerGas: bigint;
|
|
3371
|
+
gasPrice?: undefined;
|
|
3372
|
+
type?: number | undefined;
|
|
3373
|
+
nonce?: number | undefined;
|
|
3374
|
+
} | {
|
|
3375
|
+
gasLimit: bigint;
|
|
3376
|
+
value: string;
|
|
3377
|
+
data: string;
|
|
3378
|
+
from: string;
|
|
3379
|
+
to: string;
|
|
3380
|
+
gasPrice: bigint;
|
|
3381
|
+
maxFeePerGas?: undefined;
|
|
3382
|
+
maxPriorityFeePerGas?: undefined;
|
|
3383
|
+
type?: number | undefined;
|
|
3384
|
+
nonce?: number | undefined;
|
|
3385
|
+
} | {
|
|
2215
3386
|
value: string;
|
|
2216
3387
|
to: string;
|
|
2217
3388
|
data: string;
|
|
@@ -2238,12 +3409,26 @@ export declare const PLASMAToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
2238
3409
|
txOverrides?: import("..").EVMTxParams;
|
|
2239
3410
|
data?: string;
|
|
2240
3411
|
}) => Promise<bigint>;
|
|
2241
|
-
estimateGasPrices: () => Promise<{
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
3412
|
+
estimateGasPrices: () => Promise<{
|
|
3413
|
+
average: {
|
|
3414
|
+
gasPrice?: bigint;
|
|
3415
|
+
l1GasPrice?: bigint;
|
|
3416
|
+
maxFeePerGas?: bigint;
|
|
3417
|
+
maxPriorityFeePerGas?: bigint;
|
|
3418
|
+
};
|
|
3419
|
+
fast: {
|
|
3420
|
+
gasPrice?: bigint;
|
|
3421
|
+
l1GasPrice?: bigint;
|
|
3422
|
+
maxFeePerGas?: bigint;
|
|
3423
|
+
maxPriorityFeePerGas?: bigint;
|
|
3424
|
+
};
|
|
3425
|
+
fastest: {
|
|
3426
|
+
gasPrice?: bigint;
|
|
3427
|
+
l1GasPrice?: bigint;
|
|
3428
|
+
maxFeePerGas?: bigint;
|
|
3429
|
+
maxPriorityFeePerGas?: bigint;
|
|
3430
|
+
};
|
|
3431
|
+
}>;
|
|
2247
3432
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
2248
3433
|
feeOption: FeeOption;
|
|
2249
3434
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -2251,8 +3436,9 @@ export declare const PLASMAToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
2251
3436
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2252
3437
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
2253
3438
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
2254
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
3439
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
2255
3440
|
feeOptionKey?: FeeOption;
|
|
3441
|
+
sweep?: boolean;
|
|
2256
3442
|
}) => Promise<string>;
|
|
2257
3443
|
signAuthorization: ((params: {
|
|
2258
3444
|
address: string;
|
|
@@ -2261,7 +3447,7 @@ export declare const PLASMAToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
2261
3447
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2262
3448
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2263
3449
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2264
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
3450
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
2265
3451
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
2266
3452
|
};
|
|
2267
3453
|
export declare const SONICToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -2306,7 +3492,29 @@ export declare const SONICToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
2306
3492
|
blockTag?: import("ethers").BlockTag;
|
|
2307
3493
|
enableCcipRead?: boolean;
|
|
2308
3494
|
}>;
|
|
2309
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3495
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3496
|
+
gasLimit: bigint;
|
|
3497
|
+
value: string;
|
|
3498
|
+
data: string;
|
|
3499
|
+
from: string;
|
|
3500
|
+
to: string;
|
|
3501
|
+
maxFeePerGas: bigint;
|
|
3502
|
+
maxPriorityFeePerGas: bigint;
|
|
3503
|
+
gasPrice?: undefined;
|
|
3504
|
+
type?: number | undefined;
|
|
3505
|
+
nonce?: number | undefined;
|
|
3506
|
+
} | {
|
|
3507
|
+
gasLimit: bigint;
|
|
3508
|
+
value: string;
|
|
3509
|
+
data: string;
|
|
3510
|
+
from: string;
|
|
3511
|
+
to: string;
|
|
3512
|
+
gasPrice: bigint;
|
|
3513
|
+
maxFeePerGas?: undefined;
|
|
3514
|
+
maxPriorityFeePerGas?: undefined;
|
|
3515
|
+
type?: number | undefined;
|
|
3516
|
+
nonce?: number | undefined;
|
|
3517
|
+
} | {
|
|
2310
3518
|
value: string;
|
|
2311
3519
|
to: string;
|
|
2312
3520
|
data: string;
|
|
@@ -2324,7 +3532,29 @@ export declare const SONICToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
2324
3532
|
blockTag?: import("ethers").BlockTag;
|
|
2325
3533
|
enableCcipRead?: boolean;
|
|
2326
3534
|
}>;
|
|
2327
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3535
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3536
|
+
gasLimit: bigint;
|
|
3537
|
+
value: string;
|
|
3538
|
+
data: string;
|
|
3539
|
+
from: string;
|
|
3540
|
+
to: string;
|
|
3541
|
+
maxFeePerGas: bigint;
|
|
3542
|
+
maxPriorityFeePerGas: bigint;
|
|
3543
|
+
gasPrice?: undefined;
|
|
3544
|
+
type?: number | undefined;
|
|
3545
|
+
nonce?: number | undefined;
|
|
3546
|
+
} | {
|
|
3547
|
+
gasLimit: bigint;
|
|
3548
|
+
value: string;
|
|
3549
|
+
data: string;
|
|
3550
|
+
from: string;
|
|
3551
|
+
to: string;
|
|
3552
|
+
gasPrice: bigint;
|
|
3553
|
+
maxFeePerGas?: undefined;
|
|
3554
|
+
maxPriorityFeePerGas?: undefined;
|
|
3555
|
+
type?: number | undefined;
|
|
3556
|
+
nonce?: number | undefined;
|
|
3557
|
+
} | {
|
|
2328
3558
|
value: string;
|
|
2329
3559
|
to: string;
|
|
2330
3560
|
data: string;
|
|
@@ -2351,12 +3581,26 @@ export declare const SONICToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
2351
3581
|
txOverrides?: import("..").EVMTxParams;
|
|
2352
3582
|
data?: string;
|
|
2353
3583
|
}) => Promise<bigint>;
|
|
2354
|
-
estimateGasPrices: () => Promise<{
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
3584
|
+
estimateGasPrices: () => Promise<{
|
|
3585
|
+
average: {
|
|
3586
|
+
gasPrice?: bigint;
|
|
3587
|
+
l1GasPrice?: bigint;
|
|
3588
|
+
maxFeePerGas?: bigint;
|
|
3589
|
+
maxPriorityFeePerGas?: bigint;
|
|
3590
|
+
};
|
|
3591
|
+
fast: {
|
|
3592
|
+
gasPrice?: bigint;
|
|
3593
|
+
l1GasPrice?: bigint;
|
|
3594
|
+
maxFeePerGas?: bigint;
|
|
3595
|
+
maxPriorityFeePerGas?: bigint;
|
|
3596
|
+
};
|
|
3597
|
+
fastest: {
|
|
3598
|
+
gasPrice?: bigint;
|
|
3599
|
+
l1GasPrice?: bigint;
|
|
3600
|
+
maxFeePerGas?: bigint;
|
|
3601
|
+
maxPriorityFeePerGas?: bigint;
|
|
3602
|
+
};
|
|
3603
|
+
}>;
|
|
2360
3604
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
2361
3605
|
feeOption: FeeOption;
|
|
2362
3606
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -2364,8 +3608,9 @@ export declare const SONICToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
2364
3608
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2365
3609
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
2366
3610
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
2367
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
3611
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
2368
3612
|
feeOptionKey?: FeeOption;
|
|
3613
|
+
sweep?: boolean;
|
|
2369
3614
|
}) => Promise<string>;
|
|
2370
3615
|
signAuthorization: ((params: {
|
|
2371
3616
|
address: string;
|
|
@@ -2374,10 +3619,17 @@ export declare const SONICToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
2374
3619
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2375
3620
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2376
3621
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2377
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
3622
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
2378
3623
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
2379
3624
|
};
|
|
2380
|
-
export declare const UNIToolbox: ({ provider, ...
|
|
3625
|
+
export declare const UNIToolbox: ({ provider, ...toolboxSignerParams }: EVMToolboxParams) => {
|
|
3626
|
+
estimateL1Gas: (tx: import("ethers").TransactionRequest) => Promise<any>;
|
|
3627
|
+
estimateL1GasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint | undefined>;
|
|
3628
|
+
estimateL2GasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint>;
|
|
3629
|
+
estimateOperatorFee: (gasLimit: bigint) => Promise<bigint>;
|
|
3630
|
+
estimateTotalGasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint>;
|
|
3631
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
3632
|
+
getL1GasPrice: () => Promise<bigint | undefined>;
|
|
2381
3633
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
2382
3634
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
2383
3635
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
@@ -2419,7 +3671,29 @@ export declare const UNIToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
2419
3671
|
blockTag?: import("ethers").BlockTag;
|
|
2420
3672
|
enableCcipRead?: boolean;
|
|
2421
3673
|
}>;
|
|
2422
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3674
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3675
|
+
gasLimit: bigint;
|
|
3676
|
+
value: string;
|
|
3677
|
+
data: string;
|
|
3678
|
+
from: string;
|
|
3679
|
+
to: string;
|
|
3680
|
+
maxFeePerGas: bigint;
|
|
3681
|
+
maxPriorityFeePerGas: bigint;
|
|
3682
|
+
gasPrice?: undefined;
|
|
3683
|
+
type?: number | undefined;
|
|
3684
|
+
nonce?: number | undefined;
|
|
3685
|
+
} | {
|
|
3686
|
+
gasLimit: bigint;
|
|
3687
|
+
value: string;
|
|
3688
|
+
data: string;
|
|
3689
|
+
from: string;
|
|
3690
|
+
to: string;
|
|
3691
|
+
gasPrice: bigint;
|
|
3692
|
+
maxFeePerGas?: undefined;
|
|
3693
|
+
maxPriorityFeePerGas?: undefined;
|
|
3694
|
+
type?: number | undefined;
|
|
3695
|
+
nonce?: number | undefined;
|
|
3696
|
+
} | {
|
|
2423
3697
|
value: string;
|
|
2424
3698
|
to: string;
|
|
2425
3699
|
data: string;
|
|
@@ -2437,7 +3711,29 @@ export declare const UNIToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
2437
3711
|
blockTag?: import("ethers").BlockTag;
|
|
2438
3712
|
enableCcipRead?: boolean;
|
|
2439
3713
|
}>;
|
|
2440
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3714
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3715
|
+
gasLimit: bigint;
|
|
3716
|
+
value: string;
|
|
3717
|
+
data: string;
|
|
3718
|
+
from: string;
|
|
3719
|
+
to: string;
|
|
3720
|
+
maxFeePerGas: bigint;
|
|
3721
|
+
maxPriorityFeePerGas: bigint;
|
|
3722
|
+
gasPrice?: undefined;
|
|
3723
|
+
type?: number | undefined;
|
|
3724
|
+
nonce?: number | undefined;
|
|
3725
|
+
} | {
|
|
3726
|
+
gasLimit: bigint;
|
|
3727
|
+
value: string;
|
|
3728
|
+
data: string;
|
|
3729
|
+
from: string;
|
|
3730
|
+
to: string;
|
|
3731
|
+
gasPrice: bigint;
|
|
3732
|
+
maxFeePerGas?: undefined;
|
|
3733
|
+
maxPriorityFeePerGas?: undefined;
|
|
3734
|
+
type?: number | undefined;
|
|
3735
|
+
nonce?: number | undefined;
|
|
3736
|
+
} | {
|
|
2441
3737
|
value: string;
|
|
2442
3738
|
to: string;
|
|
2443
3739
|
data: string;
|
|
@@ -2464,21 +3760,35 @@ export declare const UNIToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
2464
3760
|
txOverrides?: import("..").EVMTxParams;
|
|
2465
3761
|
data?: string;
|
|
2466
3762
|
}) => Promise<bigint>;
|
|
2467
|
-
estimateGasPrices: () => Promise<{
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
3763
|
+
estimateGasPrices: () => Promise<{
|
|
3764
|
+
average: {
|
|
3765
|
+
gasPrice?: bigint;
|
|
3766
|
+
l1GasPrice?: bigint;
|
|
3767
|
+
maxFeePerGas?: bigint;
|
|
3768
|
+
maxPriorityFeePerGas?: bigint;
|
|
3769
|
+
};
|
|
3770
|
+
fast: {
|
|
3771
|
+
gasPrice?: bigint;
|
|
3772
|
+
l1GasPrice?: bigint;
|
|
3773
|
+
maxFeePerGas?: bigint;
|
|
3774
|
+
maxPriorityFeePerGas?: bigint;
|
|
3775
|
+
};
|
|
3776
|
+
fastest: {
|
|
3777
|
+
gasPrice?: bigint;
|
|
3778
|
+
l1GasPrice?: bigint;
|
|
3779
|
+
maxFeePerGas?: bigint;
|
|
3780
|
+
maxPriorityFeePerGas?: bigint;
|
|
3781
|
+
};
|
|
3782
|
+
}>;
|
|
2473
3783
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
2474
3784
|
feeOption: FeeOption;
|
|
2475
3785
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
2476
3786
|
getAddress: () => string | Promise<string> | undefined;
|
|
2477
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2478
3787
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
2479
3788
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
2480
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
3789
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
2481
3790
|
feeOptionKey?: FeeOption;
|
|
3791
|
+
sweep?: boolean;
|
|
2482
3792
|
}) => Promise<string>;
|
|
2483
3793
|
signAuthorization: ((params: {
|
|
2484
3794
|
address: string;
|
|
@@ -2487,7 +3797,7 @@ export declare const UNIToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
2487
3797
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2488
3798
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2489
3799
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2490
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
3800
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
2491
3801
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
2492
3802
|
};
|
|
2493
3803
|
export declare const XLayerToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
@@ -2532,7 +3842,29 @@ export declare const XLayerToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
2532
3842
|
blockTag?: import("ethers").BlockTag;
|
|
2533
3843
|
enableCcipRead?: boolean;
|
|
2534
3844
|
}>;
|
|
2535
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3845
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3846
|
+
gasLimit: bigint;
|
|
3847
|
+
value: string;
|
|
3848
|
+
data: string;
|
|
3849
|
+
from: string;
|
|
3850
|
+
to: string;
|
|
3851
|
+
maxFeePerGas: bigint;
|
|
3852
|
+
maxPriorityFeePerGas: bigint;
|
|
3853
|
+
gasPrice?: undefined;
|
|
3854
|
+
type?: number | undefined;
|
|
3855
|
+
nonce?: number | undefined;
|
|
3856
|
+
} | {
|
|
3857
|
+
gasLimit: bigint;
|
|
3858
|
+
value: string;
|
|
3859
|
+
data: string;
|
|
3860
|
+
from: string;
|
|
3861
|
+
to: string;
|
|
3862
|
+
gasPrice: bigint;
|
|
3863
|
+
maxFeePerGas?: undefined;
|
|
3864
|
+
maxPriorityFeePerGas?: undefined;
|
|
3865
|
+
type?: number | undefined;
|
|
3866
|
+
nonce?: number | undefined;
|
|
3867
|
+
} | {
|
|
2536
3868
|
value: string;
|
|
2537
3869
|
to: string;
|
|
2538
3870
|
data: string;
|
|
@@ -2550,7 +3882,29 @@ export declare const XLayerToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
2550
3882
|
blockTag?: import("ethers").BlockTag;
|
|
2551
3883
|
enableCcipRead?: boolean;
|
|
2552
3884
|
}>;
|
|
2553
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3885
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
3886
|
+
gasLimit: bigint;
|
|
3887
|
+
value: string;
|
|
3888
|
+
data: string;
|
|
3889
|
+
from: string;
|
|
3890
|
+
to: string;
|
|
3891
|
+
maxFeePerGas: bigint;
|
|
3892
|
+
maxPriorityFeePerGas: bigint;
|
|
3893
|
+
gasPrice?: undefined;
|
|
3894
|
+
type?: number | undefined;
|
|
3895
|
+
nonce?: number | undefined;
|
|
3896
|
+
} | {
|
|
3897
|
+
gasLimit: bigint;
|
|
3898
|
+
value: string;
|
|
3899
|
+
data: string;
|
|
3900
|
+
from: string;
|
|
3901
|
+
to: string;
|
|
3902
|
+
gasPrice: bigint;
|
|
3903
|
+
maxFeePerGas?: undefined;
|
|
3904
|
+
maxPriorityFeePerGas?: undefined;
|
|
3905
|
+
type?: number | undefined;
|
|
3906
|
+
nonce?: number | undefined;
|
|
3907
|
+
} | {
|
|
2554
3908
|
value: string;
|
|
2555
3909
|
to: string;
|
|
2556
3910
|
data: string;
|
|
@@ -2577,12 +3931,26 @@ export declare const XLayerToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
2577
3931
|
txOverrides?: import("..").EVMTxParams;
|
|
2578
3932
|
data?: string;
|
|
2579
3933
|
}) => Promise<bigint>;
|
|
2580
|
-
estimateGasPrices: () => Promise<{
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
3934
|
+
estimateGasPrices: () => Promise<{
|
|
3935
|
+
average: {
|
|
3936
|
+
gasPrice?: bigint;
|
|
3937
|
+
l1GasPrice?: bigint;
|
|
3938
|
+
maxFeePerGas?: bigint;
|
|
3939
|
+
maxPriorityFeePerGas?: bigint;
|
|
3940
|
+
};
|
|
3941
|
+
fast: {
|
|
3942
|
+
gasPrice?: bigint;
|
|
3943
|
+
l1GasPrice?: bigint;
|
|
3944
|
+
maxFeePerGas?: bigint;
|
|
3945
|
+
maxPriorityFeePerGas?: bigint;
|
|
3946
|
+
};
|
|
3947
|
+
fastest: {
|
|
3948
|
+
gasPrice?: bigint;
|
|
3949
|
+
l1GasPrice?: bigint;
|
|
3950
|
+
maxFeePerGas?: bigint;
|
|
3951
|
+
maxPriorityFeePerGas?: bigint;
|
|
3952
|
+
};
|
|
3953
|
+
}>;
|
|
2586
3954
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
2587
3955
|
feeOption: FeeOption;
|
|
2588
3956
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -2590,8 +3958,9 @@ export declare const XLayerToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
2590
3958
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2591
3959
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
2592
3960
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
2593
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
3961
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
2594
3962
|
feeOptionKey?: FeeOption;
|
|
3963
|
+
sweep?: boolean;
|
|
2595
3964
|
}) => Promise<string>;
|
|
2596
3965
|
signAuthorization: ((params: {
|
|
2597
3966
|
address: string;
|
|
@@ -2600,6 +3969,6 @@ export declare const XLayerToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
2600
3969
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2601
3970
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2602
3971
|
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2603
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
3972
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
2604
3973
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
2605
3974
|
};
|