@swapkit/core 4.4.46 → 4.4.49
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 +20 -0
- package/dist/types/index.d.ts +1761 -324
- package/package.json +5 -5
package/dist/types/index.d.ts
CHANGED
|
@@ -82,7 +82,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
82
82
|
blockTag?: import("ethers").BlockTag;
|
|
83
83
|
enableCcipRead?: boolean;
|
|
84
84
|
}>;
|
|
85
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
85
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
86
|
+
gasLimit: bigint;
|
|
87
|
+
value: string;
|
|
88
|
+
data: string;
|
|
89
|
+
from: string;
|
|
90
|
+
to: string;
|
|
91
|
+
maxFeePerGas: bigint;
|
|
92
|
+
maxPriorityFeePerGas: bigint;
|
|
93
|
+
gasPrice?: undefined;
|
|
94
|
+
type?: number | undefined;
|
|
95
|
+
nonce?: number | undefined;
|
|
96
|
+
} | {
|
|
97
|
+
gasLimit: bigint;
|
|
98
|
+
value: string;
|
|
99
|
+
data: string;
|
|
100
|
+
from: string;
|
|
101
|
+
to: string;
|
|
102
|
+
gasPrice: bigint;
|
|
103
|
+
maxFeePerGas?: undefined;
|
|
104
|
+
maxPriorityFeePerGas?: undefined;
|
|
105
|
+
type?: number | undefined;
|
|
106
|
+
nonce?: number | undefined;
|
|
107
|
+
} | {
|
|
86
108
|
value: string;
|
|
87
109
|
to: string;
|
|
88
110
|
data: string;
|
|
@@ -100,7 +122,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
100
122
|
blockTag?: import("ethers").BlockTag;
|
|
101
123
|
enableCcipRead?: boolean;
|
|
102
124
|
}>;
|
|
103
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
125
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
126
|
+
gasLimit: bigint;
|
|
127
|
+
value: string;
|
|
128
|
+
data: string;
|
|
129
|
+
from: string;
|
|
130
|
+
to: string;
|
|
131
|
+
maxFeePerGas: bigint;
|
|
132
|
+
maxPriorityFeePerGas: bigint;
|
|
133
|
+
gasPrice?: undefined;
|
|
134
|
+
type?: number | undefined;
|
|
135
|
+
nonce?: number | undefined;
|
|
136
|
+
} | {
|
|
137
|
+
gasLimit: bigint;
|
|
138
|
+
value: string;
|
|
139
|
+
data: string;
|
|
140
|
+
from: string;
|
|
141
|
+
to: string;
|
|
142
|
+
gasPrice: bigint;
|
|
143
|
+
maxFeePerGas?: undefined;
|
|
144
|
+
maxPriorityFeePerGas?: undefined;
|
|
145
|
+
type?: number | undefined;
|
|
146
|
+
nonce?: number | undefined;
|
|
147
|
+
} | {
|
|
104
148
|
value: string;
|
|
105
149
|
to: string;
|
|
106
150
|
data: string;
|
|
@@ -127,12 +171,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
127
171
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
128
172
|
data?: string;
|
|
129
173
|
}) => Promise<bigint>;
|
|
130
|
-
estimateGasPrices: () => Promise<{
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
174
|
+
estimateGasPrices: () => Promise<{
|
|
175
|
+
average: {
|
|
176
|
+
gasPrice?: bigint;
|
|
177
|
+
l1GasPrice?: bigint;
|
|
178
|
+
maxFeePerGas?: bigint;
|
|
179
|
+
maxPriorityFeePerGas?: bigint;
|
|
180
|
+
};
|
|
181
|
+
fast: {
|
|
182
|
+
gasPrice?: bigint;
|
|
183
|
+
l1GasPrice?: bigint;
|
|
184
|
+
maxFeePerGas?: bigint;
|
|
185
|
+
maxPriorityFeePerGas?: bigint;
|
|
186
|
+
};
|
|
187
|
+
fastest: {
|
|
188
|
+
gasPrice?: bigint;
|
|
189
|
+
l1GasPrice?: bigint;
|
|
190
|
+
maxFeePerGas?: bigint;
|
|
191
|
+
maxPriorityFeePerGas?: bigint;
|
|
192
|
+
};
|
|
193
|
+
}>;
|
|
136
194
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
137
195
|
feeOption: FeeOption;
|
|
138
196
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -140,8 +198,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
140
198
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
141
199
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
142
200
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
143
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
201
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
144
202
|
feeOptionKey?: FeeOption;
|
|
203
|
+
sweep?: boolean;
|
|
145
204
|
}) => Promise<string>;
|
|
146
205
|
signAuthorization: ((params: {
|
|
147
206
|
address: string;
|
|
@@ -150,21 +209,21 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
150
209
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
151
210
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
152
211
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
153
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
212
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
154
213
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
155
214
|
};
|
|
156
215
|
APT: ChainWallet<Chain.Aptos> & {
|
|
157
216
|
broadcastTransaction: ({ senderAuthenticator, transaction, }: {
|
|
158
|
-
senderAuthenticator: Awaited<ReturnType<(transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, }: import("@swapkit/toolboxes/aptos/types").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>) => Promise<import("@aptos-labs/ts-sdk").AccountAuthenticator>>>;
|
|
159
|
-
transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, }: import("@swapkit/toolboxes/aptos/types").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>;
|
|
217
|
+
senderAuthenticator: Awaited<ReturnType<(transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, sweep, }: import("@swapkit/toolboxes/aptos/types").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>) => Promise<import("@aptos-labs/ts-sdk").AccountAuthenticator>>>;
|
|
218
|
+
transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, sweep, }: import("@swapkit/toolboxes/aptos/types").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>;
|
|
160
219
|
}) => Promise<string>;
|
|
161
|
-
createTransaction: ({ recipient, assetValue, maxGasAmount, sender: _senderAddress, }: import("@swapkit/toolboxes/aptos/types").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>;
|
|
220
|
+
createTransaction: ({ recipient, assetValue, maxGasAmount, sender: _senderAddress, sweep, }: import("@swapkit/toolboxes/aptos/types").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>;
|
|
162
221
|
estimateTransactionFee: (params?: import("@swapkit/toolboxes/aptos/types").AptosCreateTransactionParams) => Promise<AssetValue>;
|
|
163
222
|
getAddress: () => Promise<"" | `0x${string}`>;
|
|
164
223
|
getBalance: (targetAddress?: string) => Promise<AssetValue[]>;
|
|
165
|
-
signAndBroadcastTransaction: (transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, }: import("@swapkit/toolboxes/aptos/types").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>) => Promise<string>;
|
|
166
|
-
signTransaction: (transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, }: import("@swapkit/toolboxes/aptos/types").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>) => Promise<import("@aptos-labs/ts-sdk").AccountAuthenticator>;
|
|
167
|
-
transfer: ({ assetValue, maxGasAmount, recipient }: import("@swapkit/toolboxes/aptos/types").AptosTransferParams) => Promise<string>;
|
|
224
|
+
signAndBroadcastTransaction: (transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, sweep, }: import("@swapkit/toolboxes/aptos/types").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>) => Promise<string>;
|
|
225
|
+
signTransaction: (transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, sweep, }: import("@swapkit/toolboxes/aptos/types").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>) => Promise<import("@aptos-labs/ts-sdk").AccountAuthenticator>;
|
|
226
|
+
transfer: ({ assetValue, maxGasAmount, recipient, sweep }: import("@swapkit/toolboxes/aptos/types").AptosTransferParams) => Promise<string>;
|
|
168
227
|
validateAddress: typeof import("@swapkit/toolboxes/aptos/toolbox").validateAptosAddress;
|
|
169
228
|
};
|
|
170
229
|
ARB: ChainWallet<Chain.Arbitrum> & {
|
|
@@ -209,7 +268,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
209
268
|
blockTag?: import("ethers").BlockTag;
|
|
210
269
|
enableCcipRead?: boolean;
|
|
211
270
|
}>;
|
|
212
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
271
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
272
|
+
gasLimit: bigint;
|
|
273
|
+
value: string;
|
|
274
|
+
data: string;
|
|
275
|
+
from: string;
|
|
276
|
+
to: string;
|
|
277
|
+
maxFeePerGas: bigint;
|
|
278
|
+
maxPriorityFeePerGas: bigint;
|
|
279
|
+
gasPrice?: undefined;
|
|
280
|
+
type?: number | undefined;
|
|
281
|
+
nonce?: number | undefined;
|
|
282
|
+
} | {
|
|
283
|
+
gasLimit: bigint;
|
|
284
|
+
value: string;
|
|
285
|
+
data: string;
|
|
286
|
+
from: string;
|
|
287
|
+
to: string;
|
|
288
|
+
gasPrice: bigint;
|
|
289
|
+
maxFeePerGas?: undefined;
|
|
290
|
+
maxPriorityFeePerGas?: undefined;
|
|
291
|
+
type?: number | undefined;
|
|
292
|
+
nonce?: number | undefined;
|
|
293
|
+
} | {
|
|
213
294
|
value: string;
|
|
214
295
|
to: string;
|
|
215
296
|
data: string;
|
|
@@ -227,7 +308,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
227
308
|
blockTag?: import("ethers").BlockTag;
|
|
228
309
|
enableCcipRead?: boolean;
|
|
229
310
|
}>;
|
|
230
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
311
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
312
|
+
gasLimit: bigint;
|
|
313
|
+
value: string;
|
|
314
|
+
data: string;
|
|
315
|
+
from: string;
|
|
316
|
+
to: string;
|
|
317
|
+
maxFeePerGas: bigint;
|
|
318
|
+
maxPriorityFeePerGas: bigint;
|
|
319
|
+
gasPrice?: undefined;
|
|
320
|
+
type?: number | undefined;
|
|
321
|
+
nonce?: number | undefined;
|
|
322
|
+
} | {
|
|
323
|
+
gasLimit: bigint;
|
|
324
|
+
value: string;
|
|
325
|
+
data: string;
|
|
326
|
+
from: string;
|
|
327
|
+
to: string;
|
|
328
|
+
gasPrice: bigint;
|
|
329
|
+
maxFeePerGas?: undefined;
|
|
330
|
+
maxPriorityFeePerGas?: undefined;
|
|
331
|
+
type?: number | undefined;
|
|
332
|
+
nonce?: number | undefined;
|
|
333
|
+
} | {
|
|
231
334
|
value: string;
|
|
232
335
|
to: string;
|
|
233
336
|
data: string;
|
|
@@ -254,12 +357,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
254
357
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
255
358
|
data?: string;
|
|
256
359
|
}) => Promise<bigint>;
|
|
257
|
-
estimateGasPrices: () => Promise<{
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
360
|
+
estimateGasPrices: () => Promise<{
|
|
361
|
+
average: {
|
|
362
|
+
gasPrice?: bigint;
|
|
363
|
+
l1GasPrice?: bigint;
|
|
364
|
+
maxFeePerGas?: bigint;
|
|
365
|
+
maxPriorityFeePerGas?: bigint;
|
|
366
|
+
};
|
|
367
|
+
fast: {
|
|
368
|
+
gasPrice?: bigint;
|
|
369
|
+
l1GasPrice?: bigint;
|
|
370
|
+
maxFeePerGas?: bigint;
|
|
371
|
+
maxPriorityFeePerGas?: bigint;
|
|
372
|
+
};
|
|
373
|
+
fastest: {
|
|
374
|
+
gasPrice?: bigint;
|
|
375
|
+
l1GasPrice?: bigint;
|
|
376
|
+
maxFeePerGas?: bigint;
|
|
377
|
+
maxPriorityFeePerGas?: bigint;
|
|
378
|
+
};
|
|
379
|
+
}>;
|
|
263
380
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
264
381
|
feeOption: FeeOption;
|
|
265
382
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -267,8 +384,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
267
384
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
268
385
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
269
386
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
270
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
387
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
271
388
|
feeOptionKey?: FeeOption;
|
|
389
|
+
sweep?: boolean;
|
|
272
390
|
}) => Promise<string>;
|
|
273
391
|
signAuthorization: ((params: {
|
|
274
392
|
address: string;
|
|
@@ -277,7 +395,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
277
395
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
278
396
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
279
397
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
280
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
398
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
281
399
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
282
400
|
};
|
|
283
401
|
AURORA: ChainWallet<Chain.Aurora> & {
|
|
@@ -322,7 +440,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
322
440
|
blockTag?: import("ethers").BlockTag;
|
|
323
441
|
enableCcipRead?: boolean;
|
|
324
442
|
}>;
|
|
325
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
443
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
444
|
+
gasLimit: bigint;
|
|
445
|
+
value: string;
|
|
446
|
+
data: string;
|
|
447
|
+
from: string;
|
|
448
|
+
to: string;
|
|
449
|
+
maxFeePerGas: bigint;
|
|
450
|
+
maxPriorityFeePerGas: bigint;
|
|
451
|
+
gasPrice?: undefined;
|
|
452
|
+
type?: number | undefined;
|
|
453
|
+
nonce?: number | undefined;
|
|
454
|
+
} | {
|
|
455
|
+
gasLimit: bigint;
|
|
456
|
+
value: string;
|
|
457
|
+
data: string;
|
|
458
|
+
from: string;
|
|
459
|
+
to: string;
|
|
460
|
+
gasPrice: bigint;
|
|
461
|
+
maxFeePerGas?: undefined;
|
|
462
|
+
maxPriorityFeePerGas?: undefined;
|
|
463
|
+
type?: number | undefined;
|
|
464
|
+
nonce?: number | undefined;
|
|
465
|
+
} | {
|
|
326
466
|
value: string;
|
|
327
467
|
to: string;
|
|
328
468
|
data: string;
|
|
@@ -340,7 +480,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
340
480
|
blockTag?: import("ethers").BlockTag;
|
|
341
481
|
enableCcipRead?: boolean;
|
|
342
482
|
}>;
|
|
343
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
483
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
484
|
+
gasLimit: bigint;
|
|
485
|
+
value: string;
|
|
486
|
+
data: string;
|
|
487
|
+
from: string;
|
|
488
|
+
to: string;
|
|
489
|
+
maxFeePerGas: bigint;
|
|
490
|
+
maxPriorityFeePerGas: bigint;
|
|
491
|
+
gasPrice?: undefined;
|
|
492
|
+
type?: number | undefined;
|
|
493
|
+
nonce?: number | undefined;
|
|
494
|
+
} | {
|
|
495
|
+
gasLimit: bigint;
|
|
496
|
+
value: string;
|
|
497
|
+
data: string;
|
|
498
|
+
from: string;
|
|
499
|
+
to: string;
|
|
500
|
+
gasPrice: bigint;
|
|
501
|
+
maxFeePerGas?: undefined;
|
|
502
|
+
maxPriorityFeePerGas?: undefined;
|
|
503
|
+
type?: number | undefined;
|
|
504
|
+
nonce?: number | undefined;
|
|
505
|
+
} | {
|
|
344
506
|
value: string;
|
|
345
507
|
to: string;
|
|
346
508
|
data: string;
|
|
@@ -367,12 +529,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
367
529
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
368
530
|
data?: string;
|
|
369
531
|
}) => Promise<bigint>;
|
|
370
|
-
estimateGasPrices: () => Promise<{
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
532
|
+
estimateGasPrices: () => Promise<{
|
|
533
|
+
average: {
|
|
534
|
+
gasPrice?: bigint;
|
|
535
|
+
l1GasPrice?: bigint;
|
|
536
|
+
maxFeePerGas?: bigint;
|
|
537
|
+
maxPriorityFeePerGas?: bigint;
|
|
538
|
+
};
|
|
539
|
+
fast: {
|
|
540
|
+
gasPrice?: bigint;
|
|
541
|
+
l1GasPrice?: bigint;
|
|
542
|
+
maxFeePerGas?: bigint;
|
|
543
|
+
maxPriorityFeePerGas?: bigint;
|
|
544
|
+
};
|
|
545
|
+
fastest: {
|
|
546
|
+
gasPrice?: bigint;
|
|
547
|
+
l1GasPrice?: bigint;
|
|
548
|
+
maxFeePerGas?: bigint;
|
|
549
|
+
maxPriorityFeePerGas?: bigint;
|
|
550
|
+
};
|
|
551
|
+
}>;
|
|
376
552
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
377
553
|
feeOption: FeeOption;
|
|
378
554
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -380,8 +556,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
380
556
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
381
557
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
382
558
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
383
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
559
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
384
560
|
feeOptionKey?: FeeOption;
|
|
561
|
+
sweep?: boolean;
|
|
385
562
|
}) => Promise<string>;
|
|
386
563
|
signAuthorization: ((params: {
|
|
387
564
|
address: string;
|
|
@@ -390,7 +567,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
390
567
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
391
568
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
392
569
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
393
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
570
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
394
571
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
395
572
|
};
|
|
396
573
|
AVAX: ChainWallet<Chain.Avalanche> & {
|
|
@@ -435,7 +612,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
435
612
|
blockTag?: import("ethers").BlockTag;
|
|
436
613
|
enableCcipRead?: boolean;
|
|
437
614
|
}>;
|
|
438
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
615
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
616
|
+
gasLimit: bigint;
|
|
617
|
+
value: string;
|
|
618
|
+
data: string;
|
|
619
|
+
from: string;
|
|
620
|
+
to: string;
|
|
621
|
+
maxFeePerGas: bigint;
|
|
622
|
+
maxPriorityFeePerGas: bigint;
|
|
623
|
+
gasPrice?: undefined;
|
|
624
|
+
type?: number | undefined;
|
|
625
|
+
nonce?: number | undefined;
|
|
626
|
+
} | {
|
|
627
|
+
gasLimit: bigint;
|
|
628
|
+
value: string;
|
|
629
|
+
data: string;
|
|
630
|
+
from: string;
|
|
631
|
+
to: string;
|
|
632
|
+
gasPrice: bigint;
|
|
633
|
+
maxFeePerGas?: undefined;
|
|
634
|
+
maxPriorityFeePerGas?: undefined;
|
|
635
|
+
type?: number | undefined;
|
|
636
|
+
nonce?: number | undefined;
|
|
637
|
+
} | {
|
|
439
638
|
value: string;
|
|
440
639
|
to: string;
|
|
441
640
|
data: string;
|
|
@@ -453,7 +652,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
453
652
|
blockTag?: import("ethers").BlockTag;
|
|
454
653
|
enableCcipRead?: boolean;
|
|
455
654
|
}>;
|
|
456
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
655
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
656
|
+
gasLimit: bigint;
|
|
657
|
+
value: string;
|
|
658
|
+
data: string;
|
|
659
|
+
from: string;
|
|
660
|
+
to: string;
|
|
661
|
+
maxFeePerGas: bigint;
|
|
662
|
+
maxPriorityFeePerGas: bigint;
|
|
663
|
+
gasPrice?: undefined;
|
|
664
|
+
type?: number | undefined;
|
|
665
|
+
nonce?: number | undefined;
|
|
666
|
+
} | {
|
|
667
|
+
gasLimit: bigint;
|
|
668
|
+
value: string;
|
|
669
|
+
data: string;
|
|
670
|
+
from: string;
|
|
671
|
+
to: string;
|
|
672
|
+
gasPrice: bigint;
|
|
673
|
+
maxFeePerGas?: undefined;
|
|
674
|
+
maxPriorityFeePerGas?: undefined;
|
|
675
|
+
type?: number | undefined;
|
|
676
|
+
nonce?: number | undefined;
|
|
677
|
+
} | {
|
|
457
678
|
value: string;
|
|
458
679
|
to: string;
|
|
459
680
|
data: string;
|
|
@@ -480,12 +701,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
480
701
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
481
702
|
data?: string;
|
|
482
703
|
}) => Promise<bigint>;
|
|
483
|
-
estimateGasPrices: () => Promise<{
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
704
|
+
estimateGasPrices: () => Promise<{
|
|
705
|
+
average: {
|
|
706
|
+
gasPrice?: bigint;
|
|
707
|
+
l1GasPrice?: bigint;
|
|
708
|
+
maxFeePerGas?: bigint;
|
|
709
|
+
maxPriorityFeePerGas?: bigint;
|
|
710
|
+
};
|
|
711
|
+
fast: {
|
|
712
|
+
gasPrice?: bigint;
|
|
713
|
+
l1GasPrice?: bigint;
|
|
714
|
+
maxFeePerGas?: bigint;
|
|
715
|
+
maxPriorityFeePerGas?: bigint;
|
|
716
|
+
};
|
|
717
|
+
fastest: {
|
|
718
|
+
gasPrice?: bigint;
|
|
719
|
+
l1GasPrice?: bigint;
|
|
720
|
+
maxFeePerGas?: bigint;
|
|
721
|
+
maxPriorityFeePerGas?: bigint;
|
|
722
|
+
};
|
|
723
|
+
}>;
|
|
489
724
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
490
725
|
feeOption: FeeOption;
|
|
491
726
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -493,8 +728,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
493
728
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
494
729
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
495
730
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
496
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
731
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
497
732
|
feeOptionKey?: FeeOption;
|
|
733
|
+
sweep?: boolean;
|
|
498
734
|
}) => Promise<string>;
|
|
499
735
|
signAuthorization: ((params: {
|
|
500
736
|
address: string;
|
|
@@ -503,10 +739,17 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
503
739
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
504
740
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
505
741
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
506
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
742
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
507
743
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
508
744
|
};
|
|
509
745
|
BASE: ChainWallet<Chain.Base> & {
|
|
746
|
+
estimateL1Gas: (tx: import("ethers").TransactionRequest) => Promise<any>;
|
|
747
|
+
estimateL1GasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint | undefined>;
|
|
748
|
+
estimateL2GasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint>;
|
|
749
|
+
estimateOperatorFee: (gasLimit: bigint) => Promise<bigint>;
|
|
750
|
+
estimateTotalGasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint>;
|
|
751
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
752
|
+
getL1GasPrice: () => Promise<bigint | undefined>;
|
|
510
753
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
511
754
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
512
755
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
@@ -548,7 +791,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
548
791
|
blockTag?: import("ethers").BlockTag;
|
|
549
792
|
enableCcipRead?: boolean;
|
|
550
793
|
}>;
|
|
551
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
794
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
795
|
+
gasLimit: bigint;
|
|
796
|
+
value: string;
|
|
797
|
+
data: string;
|
|
798
|
+
from: string;
|
|
799
|
+
to: string;
|
|
800
|
+
maxFeePerGas: bigint;
|
|
801
|
+
maxPriorityFeePerGas: bigint;
|
|
802
|
+
gasPrice?: undefined;
|
|
803
|
+
type?: number | undefined;
|
|
804
|
+
nonce?: number | undefined;
|
|
805
|
+
} | {
|
|
806
|
+
gasLimit: bigint;
|
|
807
|
+
value: string;
|
|
808
|
+
data: string;
|
|
809
|
+
from: string;
|
|
810
|
+
to: string;
|
|
811
|
+
gasPrice: bigint;
|
|
812
|
+
maxFeePerGas?: undefined;
|
|
813
|
+
maxPriorityFeePerGas?: undefined;
|
|
814
|
+
type?: number | undefined;
|
|
815
|
+
nonce?: number | undefined;
|
|
816
|
+
} | {
|
|
552
817
|
value: string;
|
|
553
818
|
to: string;
|
|
554
819
|
data: string;
|
|
@@ -566,7 +831,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
566
831
|
blockTag?: import("ethers").BlockTag;
|
|
567
832
|
enableCcipRead?: boolean;
|
|
568
833
|
}>;
|
|
569
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
834
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
835
|
+
gasLimit: bigint;
|
|
836
|
+
value: string;
|
|
837
|
+
data: string;
|
|
838
|
+
from: string;
|
|
839
|
+
to: string;
|
|
840
|
+
maxFeePerGas: bigint;
|
|
841
|
+
maxPriorityFeePerGas: bigint;
|
|
842
|
+
gasPrice?: undefined;
|
|
843
|
+
type?: number | undefined;
|
|
844
|
+
nonce?: number | undefined;
|
|
845
|
+
} | {
|
|
846
|
+
gasLimit: bigint;
|
|
847
|
+
value: string;
|
|
848
|
+
data: string;
|
|
849
|
+
from: string;
|
|
850
|
+
to: string;
|
|
851
|
+
gasPrice: bigint;
|
|
852
|
+
maxFeePerGas?: undefined;
|
|
853
|
+
maxPriorityFeePerGas?: undefined;
|
|
854
|
+
type?: number | undefined;
|
|
855
|
+
nonce?: number | undefined;
|
|
856
|
+
} | {
|
|
570
857
|
value: string;
|
|
571
858
|
to: string;
|
|
572
859
|
data: string;
|
|
@@ -593,21 +880,35 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
593
880
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
594
881
|
data?: string;
|
|
595
882
|
}) => Promise<bigint>;
|
|
596
|
-
estimateGasPrices: () => Promise<{
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
883
|
+
estimateGasPrices: () => Promise<{
|
|
884
|
+
average: {
|
|
885
|
+
gasPrice?: bigint;
|
|
886
|
+
l1GasPrice?: bigint;
|
|
887
|
+
maxFeePerGas?: bigint;
|
|
888
|
+
maxPriorityFeePerGas?: bigint;
|
|
889
|
+
};
|
|
890
|
+
fast: {
|
|
891
|
+
gasPrice?: bigint;
|
|
892
|
+
l1GasPrice?: bigint;
|
|
893
|
+
maxFeePerGas?: bigint;
|
|
894
|
+
maxPriorityFeePerGas?: bigint;
|
|
895
|
+
};
|
|
896
|
+
fastest: {
|
|
897
|
+
gasPrice?: bigint;
|
|
898
|
+
l1GasPrice?: bigint;
|
|
899
|
+
maxFeePerGas?: bigint;
|
|
900
|
+
maxPriorityFeePerGas?: bigint;
|
|
901
|
+
};
|
|
902
|
+
}>;
|
|
602
903
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
603
904
|
feeOption: FeeOption;
|
|
604
905
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
605
906
|
getAddress: () => string | Promise<string> | undefined;
|
|
606
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
607
907
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
608
908
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
609
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
909
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
610
910
|
feeOptionKey?: FeeOption;
|
|
911
|
+
sweep?: boolean;
|
|
611
912
|
}) => Promise<string>;
|
|
612
913
|
signAuthorization: ((params: {
|
|
613
914
|
address: string;
|
|
@@ -616,7 +917,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
616
917
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
617
918
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
618
919
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
619
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
920
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
620
921
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
621
922
|
};
|
|
622
923
|
BERA: ChainWallet<Chain.Berachain> & {
|
|
@@ -661,7 +962,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
661
962
|
blockTag?: import("ethers").BlockTag;
|
|
662
963
|
enableCcipRead?: boolean;
|
|
663
964
|
}>;
|
|
664
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
965
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
966
|
+
gasLimit: bigint;
|
|
967
|
+
value: string;
|
|
968
|
+
data: string;
|
|
969
|
+
from: string;
|
|
970
|
+
to: string;
|
|
971
|
+
maxFeePerGas: bigint;
|
|
972
|
+
maxPriorityFeePerGas: bigint;
|
|
973
|
+
gasPrice?: undefined;
|
|
974
|
+
type?: number | undefined;
|
|
975
|
+
nonce?: number | undefined;
|
|
976
|
+
} | {
|
|
977
|
+
gasLimit: bigint;
|
|
978
|
+
value: string;
|
|
979
|
+
data: string;
|
|
980
|
+
from: string;
|
|
981
|
+
to: string;
|
|
982
|
+
gasPrice: bigint;
|
|
983
|
+
maxFeePerGas?: undefined;
|
|
984
|
+
maxPriorityFeePerGas?: undefined;
|
|
985
|
+
type?: number | undefined;
|
|
986
|
+
nonce?: number | undefined;
|
|
987
|
+
} | {
|
|
665
988
|
value: string;
|
|
666
989
|
to: string;
|
|
667
990
|
data: string;
|
|
@@ -679,7 +1002,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
679
1002
|
blockTag?: import("ethers").BlockTag;
|
|
680
1003
|
enableCcipRead?: boolean;
|
|
681
1004
|
}>;
|
|
682
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1005
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1006
|
+
gasLimit: bigint;
|
|
1007
|
+
value: string;
|
|
1008
|
+
data: string;
|
|
1009
|
+
from: string;
|
|
1010
|
+
to: string;
|
|
1011
|
+
maxFeePerGas: bigint;
|
|
1012
|
+
maxPriorityFeePerGas: bigint;
|
|
1013
|
+
gasPrice?: undefined;
|
|
1014
|
+
type?: number | undefined;
|
|
1015
|
+
nonce?: number | undefined;
|
|
1016
|
+
} | {
|
|
1017
|
+
gasLimit: bigint;
|
|
1018
|
+
value: string;
|
|
1019
|
+
data: string;
|
|
1020
|
+
from: string;
|
|
1021
|
+
to: string;
|
|
1022
|
+
gasPrice: bigint;
|
|
1023
|
+
maxFeePerGas?: undefined;
|
|
1024
|
+
maxPriorityFeePerGas?: undefined;
|
|
1025
|
+
type?: number | undefined;
|
|
1026
|
+
nonce?: number | undefined;
|
|
1027
|
+
} | {
|
|
683
1028
|
value: string;
|
|
684
1029
|
to: string;
|
|
685
1030
|
data: string;
|
|
@@ -706,12 +1051,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
706
1051
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
707
1052
|
data?: string;
|
|
708
1053
|
}) => Promise<bigint>;
|
|
709
|
-
estimateGasPrices: () => Promise<{
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
1054
|
+
estimateGasPrices: () => Promise<{
|
|
1055
|
+
average: {
|
|
1056
|
+
gasPrice?: bigint;
|
|
1057
|
+
l1GasPrice?: bigint;
|
|
1058
|
+
maxFeePerGas?: bigint;
|
|
1059
|
+
maxPriorityFeePerGas?: bigint;
|
|
1060
|
+
};
|
|
1061
|
+
fast: {
|
|
1062
|
+
gasPrice?: bigint;
|
|
1063
|
+
l1GasPrice?: bigint;
|
|
1064
|
+
maxFeePerGas?: bigint;
|
|
1065
|
+
maxPriorityFeePerGas?: bigint;
|
|
1066
|
+
};
|
|
1067
|
+
fastest: {
|
|
1068
|
+
gasPrice?: bigint;
|
|
1069
|
+
l1GasPrice?: bigint;
|
|
1070
|
+
maxFeePerGas?: bigint;
|
|
1071
|
+
maxPriorityFeePerGas?: bigint;
|
|
1072
|
+
};
|
|
1073
|
+
}>;
|
|
715
1074
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
716
1075
|
feeOption: FeeOption;
|
|
717
1076
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -719,8 +1078,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
719
1078
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
720
1079
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
721
1080
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
722
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1081
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
723
1082
|
feeOptionKey?: FeeOption;
|
|
1083
|
+
sweep?: boolean;
|
|
724
1084
|
}) => Promise<string>;
|
|
725
1085
|
signAuthorization: ((params: {
|
|
726
1086
|
address: string;
|
|
@@ -729,7 +1089,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
729
1089
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
730
1090
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
731
1091
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
732
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1092
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
733
1093
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
734
1094
|
};
|
|
735
1095
|
BSC: ChainWallet<Chain.BinanceSmartChain> & {
|
|
@@ -774,7 +1134,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
774
1134
|
blockTag?: import("ethers").BlockTag;
|
|
775
1135
|
enableCcipRead?: boolean;
|
|
776
1136
|
}>;
|
|
777
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1137
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1138
|
+
gasLimit: bigint;
|
|
1139
|
+
value: string;
|
|
1140
|
+
data: string;
|
|
1141
|
+
from: string;
|
|
1142
|
+
to: string;
|
|
1143
|
+
maxFeePerGas: bigint;
|
|
1144
|
+
maxPriorityFeePerGas: bigint;
|
|
1145
|
+
gasPrice?: undefined;
|
|
1146
|
+
type?: number | undefined;
|
|
1147
|
+
nonce?: number | undefined;
|
|
1148
|
+
} | {
|
|
1149
|
+
gasLimit: bigint;
|
|
1150
|
+
value: string;
|
|
1151
|
+
data: string;
|
|
1152
|
+
from: string;
|
|
1153
|
+
to: string;
|
|
1154
|
+
gasPrice: bigint;
|
|
1155
|
+
maxFeePerGas?: undefined;
|
|
1156
|
+
maxPriorityFeePerGas?: undefined;
|
|
1157
|
+
type?: number | undefined;
|
|
1158
|
+
nonce?: number | undefined;
|
|
1159
|
+
} | {
|
|
778
1160
|
value: string;
|
|
779
1161
|
to: string;
|
|
780
1162
|
data: string;
|
|
@@ -792,7 +1174,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
792
1174
|
blockTag?: import("ethers").BlockTag;
|
|
793
1175
|
enableCcipRead?: boolean;
|
|
794
1176
|
}>;
|
|
795
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1177
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1178
|
+
gasLimit: bigint;
|
|
1179
|
+
value: string;
|
|
1180
|
+
data: string;
|
|
1181
|
+
from: string;
|
|
1182
|
+
to: string;
|
|
1183
|
+
maxFeePerGas: bigint;
|
|
1184
|
+
maxPriorityFeePerGas: bigint;
|
|
1185
|
+
gasPrice?: undefined;
|
|
1186
|
+
type?: number | undefined;
|
|
1187
|
+
nonce?: number | undefined;
|
|
1188
|
+
} | {
|
|
1189
|
+
gasLimit: bigint;
|
|
1190
|
+
value: string;
|
|
1191
|
+
data: string;
|
|
1192
|
+
from: string;
|
|
1193
|
+
to: string;
|
|
1194
|
+
gasPrice: bigint;
|
|
1195
|
+
maxFeePerGas?: undefined;
|
|
1196
|
+
maxPriorityFeePerGas?: undefined;
|
|
1197
|
+
type?: number | undefined;
|
|
1198
|
+
nonce?: number | undefined;
|
|
1199
|
+
} | {
|
|
796
1200
|
value: string;
|
|
797
1201
|
to: string;
|
|
798
1202
|
data: string;
|
|
@@ -819,12 +1223,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
819
1223
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
820
1224
|
data?: string;
|
|
821
1225
|
}) => Promise<bigint>;
|
|
822
|
-
estimateGasPrices: () => Promise<{
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
1226
|
+
estimateGasPrices: () => Promise<{
|
|
1227
|
+
average: {
|
|
1228
|
+
gasPrice?: bigint;
|
|
1229
|
+
l1GasPrice?: bigint;
|
|
1230
|
+
maxFeePerGas?: bigint;
|
|
1231
|
+
maxPriorityFeePerGas?: bigint;
|
|
1232
|
+
};
|
|
1233
|
+
fast: {
|
|
1234
|
+
gasPrice?: bigint;
|
|
1235
|
+
l1GasPrice?: bigint;
|
|
1236
|
+
maxFeePerGas?: bigint;
|
|
1237
|
+
maxPriorityFeePerGas?: bigint;
|
|
1238
|
+
};
|
|
1239
|
+
fastest: {
|
|
1240
|
+
gasPrice?: bigint;
|
|
1241
|
+
l1GasPrice?: bigint;
|
|
1242
|
+
maxFeePerGas?: bigint;
|
|
1243
|
+
maxPriorityFeePerGas?: bigint;
|
|
1244
|
+
};
|
|
1245
|
+
}>;
|
|
828
1246
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
829
1247
|
feeOption: FeeOption;
|
|
830
1248
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -832,8 +1250,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
832
1250
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
833
1251
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
834
1252
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
835
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1253
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
836
1254
|
feeOptionKey?: FeeOption;
|
|
1255
|
+
sweep?: boolean;
|
|
837
1256
|
}) => Promise<string>;
|
|
838
1257
|
signAuthorization: ((params: {
|
|
839
1258
|
address: string;
|
|
@@ -842,7 +1261,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
842
1261
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
843
1262
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
844
1263
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
845
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1264
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
846
1265
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
847
1266
|
};
|
|
848
1267
|
BTC: ChainWallet<Chain.Bitcoin> & {
|
|
@@ -863,7 +1282,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
863
1282
|
publicKey: Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>;
|
|
864
1283
|
};
|
|
865
1284
|
createReplacementTransaction: ({ txid, newFeeRate, recipient, memo, }: import("@swapkit/toolboxes/utxo/types").RBFTransactionParams) => Promise<import("@swapkit/toolboxes/utxo/toolbox/utxo").ReplacementTransactionResult>;
|
|
866
|
-
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, enableRBF, }: import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams) => Promise<{
|
|
1285
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, enableRBF, sweep, }: import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams) => Promise<{
|
|
867
1286
|
inputs: import("@swapkit/toolboxes/utxo/types").UTXOType[];
|
|
868
1287
|
tx: import("@swapkit/utxo-signer").Transaction;
|
|
869
1288
|
utxos: {
|
|
@@ -887,11 +1306,12 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
887
1306
|
pubkey: string;
|
|
888
1307
|
} | undefined;
|
|
889
1308
|
derivePrivateKeyAtIndex: ({ accountIndex, index, change }: import("@swapkit/toolboxes").DeriveAddressParams) => Uint8Array<ArrayBufferLike> | undefined;
|
|
890
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1309
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipient, recipients, }: {
|
|
891
1310
|
from: string;
|
|
892
1311
|
memo?: string;
|
|
893
1312
|
feeRate?: number;
|
|
894
1313
|
feeOptionKey?: FeeOption;
|
|
1314
|
+
recipient?: string;
|
|
895
1315
|
recipients?: number | import("@swapkit/toolboxes/utxo/types").TargetOutput[];
|
|
896
1316
|
}) => Promise<AssetValue>;
|
|
897
1317
|
estimateTransactionFee: (params: {
|
|
@@ -921,7 +1341,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
921
1341
|
fast: number;
|
|
922
1342
|
fastest: number;
|
|
923
1343
|
}>;
|
|
924
|
-
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, }: Omit<import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams, "feeRate"> & {
|
|
1344
|
+
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, sweep, }: Omit<import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams, "feeRate"> & {
|
|
925
1345
|
feeOptionKey?: FeeOption;
|
|
926
1346
|
feeRate?: number;
|
|
927
1347
|
}) => Promise<{
|
|
@@ -963,10 +1383,10 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
963
1383
|
tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>;
|
|
964
1384
|
inputDerivations: import("@swapkit/toolboxes/utxo/types").InputDerivation[];
|
|
965
1385
|
}) => import("@swapkit/utxo-signer").Transaction;
|
|
966
|
-
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, enableRBF, }: import("@swapkit/toolboxes/utxo/types").UTXOTransferParams & {
|
|
1386
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, enableRBF, sweep, }: import("@swapkit/toolboxes/utxo/types").UTXOTransferParams & {
|
|
967
1387
|
enableRBF?: boolean;
|
|
968
1388
|
}) => Promise<string>;
|
|
969
|
-
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, }: {
|
|
1389
|
+
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, sweep, }: {
|
|
970
1390
|
utxos: import("@swapkit/toolboxes").UTXOForMultiAddressTransfer[];
|
|
971
1391
|
recipient: string;
|
|
972
1392
|
assetValue: AssetValue;
|
|
@@ -974,6 +1394,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
974
1394
|
feeRate?: number;
|
|
975
1395
|
feeOptionKey?: FeeOption;
|
|
976
1396
|
changeAddress?: string;
|
|
1397
|
+
sweep?: boolean;
|
|
977
1398
|
}) => Promise<string>;
|
|
978
1399
|
validateAddress: (address: string) => boolean;
|
|
979
1400
|
};
|
|
@@ -994,7 +1415,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
994
1415
|
};
|
|
995
1416
|
}[];
|
|
996
1417
|
}>;
|
|
997
|
-
createTransaction: ({ assetValue, recipient, memo, feeRate, sender }: import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams) => Promise<{
|
|
1418
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, sweep }: import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams) => Promise<{
|
|
998
1419
|
inputs: import("@swapkit/toolboxes/utxo/types").UTXOType[];
|
|
999
1420
|
tx: import("@swapkit/utxo-signer").Transaction;
|
|
1000
1421
|
utxos: {
|
|
@@ -1023,7 +1444,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1023
1444
|
signTransaction: (tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>) => any;
|
|
1024
1445
|
stripPrefix: typeof import("@swapkit/toolboxes/utxo/index").stripPrefix;
|
|
1025
1446
|
stripToCashAddress: typeof import("@swapkit/toolboxes/utxo/index").stripToCashAddress;
|
|
1026
|
-
transfer: ({ recipient, assetValue, feeOptionKey, ...rest }: import("@swapkit/toolboxes/utxo/types").UTXOTransferParams) => Promise<string>;
|
|
1447
|
+
transfer: ({ recipient, assetValue, feeOptionKey, sweep, ...rest }: import("@swapkit/toolboxes/utxo/types").UTXOTransferParams) => Promise<string>;
|
|
1027
1448
|
validateAddress: typeof import("@swapkit/toolboxes/utxo/index").validateBchAddress;
|
|
1028
1449
|
accumulative: typeof import("@swapkit/toolboxes/utxo/index").accumulative;
|
|
1029
1450
|
bumpFee: ({ txid, newFeeRate, recipient, memo }: import("@swapkit/toolboxes/utxo/types").RBFTransactionParams) => Promise<{
|
|
@@ -1050,11 +1471,12 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1050
1471
|
pubkey: string;
|
|
1051
1472
|
} | undefined;
|
|
1052
1473
|
derivePrivateKeyAtIndex: ({ accountIndex, index, change }: import("@swapkit/toolboxes").DeriveAddressParams) => Uint8Array<ArrayBufferLike> | undefined;
|
|
1053
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
1474
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipient, recipients, }: {
|
|
1054
1475
|
from: string;
|
|
1055
1476
|
memo?: string;
|
|
1056
1477
|
feeRate?: number;
|
|
1057
1478
|
feeOptionKey?: FeeOption;
|
|
1479
|
+
recipient?: string;
|
|
1058
1480
|
recipients?: number | import("@swapkit/toolboxes/utxo/types").TargetOutput[];
|
|
1059
1481
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1060
1482
|
estimateTransactionFee: (params: {
|
|
@@ -1074,7 +1496,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1074
1496
|
path: string;
|
|
1075
1497
|
xpub: string;
|
|
1076
1498
|
} | undefined;
|
|
1077
|
-
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, }: Omit<import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams, "feeRate"> & {
|
|
1499
|
+
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, sweep, }: Omit<import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams, "feeRate"> & {
|
|
1078
1500
|
feeOptionKey?: FeeOption;
|
|
1079
1501
|
feeRate?: number;
|
|
1080
1502
|
}) => Promise<{
|
|
@@ -1114,7 +1536,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1114
1536
|
tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>;
|
|
1115
1537
|
inputDerivations: import("@swapkit/toolboxes/utxo/types").InputDerivation[];
|
|
1116
1538
|
}) => import("@swapkit/utxo-signer").Transaction;
|
|
1117
|
-
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, }: {
|
|
1539
|
+
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, sweep, }: {
|
|
1118
1540
|
utxos: import("@swapkit/toolboxes").UTXOForMultiAddressTransfer[];
|
|
1119
1541
|
recipient: string;
|
|
1120
1542
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
@@ -1122,6 +1544,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1122
1544
|
feeRate?: number;
|
|
1123
1545
|
feeOptionKey?: FeeOption;
|
|
1124
1546
|
changeAddress?: string;
|
|
1547
|
+
sweep?: boolean;
|
|
1125
1548
|
}) => Promise<string>;
|
|
1126
1549
|
};
|
|
1127
1550
|
BOTANIX: ChainWallet<Chain.Botanix> & {
|
|
@@ -1166,7 +1589,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1166
1589
|
blockTag?: import("ethers").BlockTag;
|
|
1167
1590
|
enableCcipRead?: boolean;
|
|
1168
1591
|
}>;
|
|
1169
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1592
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1593
|
+
gasLimit: bigint;
|
|
1594
|
+
value: string;
|
|
1595
|
+
data: string;
|
|
1596
|
+
from: string;
|
|
1597
|
+
to: string;
|
|
1598
|
+
maxFeePerGas: bigint;
|
|
1599
|
+
maxPriorityFeePerGas: bigint;
|
|
1600
|
+
gasPrice?: undefined;
|
|
1601
|
+
type?: number | undefined;
|
|
1602
|
+
nonce?: number | undefined;
|
|
1603
|
+
} | {
|
|
1604
|
+
gasLimit: bigint;
|
|
1605
|
+
value: string;
|
|
1606
|
+
data: string;
|
|
1607
|
+
from: string;
|
|
1608
|
+
to: string;
|
|
1609
|
+
gasPrice: bigint;
|
|
1610
|
+
maxFeePerGas?: undefined;
|
|
1611
|
+
maxPriorityFeePerGas?: undefined;
|
|
1612
|
+
type?: number | undefined;
|
|
1613
|
+
nonce?: number | undefined;
|
|
1614
|
+
} | {
|
|
1170
1615
|
value: string;
|
|
1171
1616
|
to: string;
|
|
1172
1617
|
data: string;
|
|
@@ -1184,7 +1629,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1184
1629
|
blockTag?: import("ethers").BlockTag;
|
|
1185
1630
|
enableCcipRead?: boolean;
|
|
1186
1631
|
}>;
|
|
1187
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1632
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1633
|
+
gasLimit: bigint;
|
|
1634
|
+
value: string;
|
|
1635
|
+
data: string;
|
|
1636
|
+
from: string;
|
|
1637
|
+
to: string;
|
|
1638
|
+
maxFeePerGas: bigint;
|
|
1639
|
+
maxPriorityFeePerGas: bigint;
|
|
1640
|
+
gasPrice?: undefined;
|
|
1641
|
+
type?: number | undefined;
|
|
1642
|
+
nonce?: number | undefined;
|
|
1643
|
+
} | {
|
|
1644
|
+
gasLimit: bigint;
|
|
1645
|
+
value: string;
|
|
1646
|
+
data: string;
|
|
1647
|
+
from: string;
|
|
1648
|
+
to: string;
|
|
1649
|
+
gasPrice: bigint;
|
|
1650
|
+
maxFeePerGas?: undefined;
|
|
1651
|
+
maxPriorityFeePerGas?: undefined;
|
|
1652
|
+
type?: number | undefined;
|
|
1653
|
+
nonce?: number | undefined;
|
|
1654
|
+
} | {
|
|
1188
1655
|
value: string;
|
|
1189
1656
|
to: string;
|
|
1190
1657
|
data: string;
|
|
@@ -1211,12 +1678,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1211
1678
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1212
1679
|
data?: string;
|
|
1213
1680
|
}) => Promise<bigint>;
|
|
1214
|
-
estimateGasPrices: () => Promise<{
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1681
|
+
estimateGasPrices: () => Promise<{
|
|
1682
|
+
average: {
|
|
1683
|
+
gasPrice?: bigint;
|
|
1684
|
+
l1GasPrice?: bigint;
|
|
1685
|
+
maxFeePerGas?: bigint;
|
|
1686
|
+
maxPriorityFeePerGas?: bigint;
|
|
1687
|
+
};
|
|
1688
|
+
fast: {
|
|
1689
|
+
gasPrice?: bigint;
|
|
1690
|
+
l1GasPrice?: bigint;
|
|
1691
|
+
maxFeePerGas?: bigint;
|
|
1692
|
+
maxPriorityFeePerGas?: bigint;
|
|
1693
|
+
};
|
|
1694
|
+
fastest: {
|
|
1695
|
+
gasPrice?: bigint;
|
|
1696
|
+
l1GasPrice?: bigint;
|
|
1697
|
+
maxFeePerGas?: bigint;
|
|
1698
|
+
maxPriorityFeePerGas?: bigint;
|
|
1699
|
+
};
|
|
1700
|
+
}>;
|
|
1220
1701
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
1221
1702
|
feeOption: FeeOption;
|
|
1222
1703
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1224,8 +1705,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1224
1705
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1225
1706
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1226
1707
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
1227
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1708
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1228
1709
|
feeOptionKey?: FeeOption;
|
|
1710
|
+
sweep?: boolean;
|
|
1229
1711
|
}) => Promise<string>;
|
|
1230
1712
|
signAuthorization: ((params: {
|
|
1231
1713
|
address: string;
|
|
@@ -1234,11 +1716,11 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1234
1716
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1235
1717
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1236
1718
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1237
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1719
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1238
1720
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
1239
1721
|
};
|
|
1240
1722
|
ADA: ChainWallet<Chain.Cardano> & {
|
|
1241
|
-
createTransaction: ({ sender, recipient, assetValue, memo, pureLovelaceOnly, }: import("@swapkit/toolboxes/cardano/types").CardanoCreateTransactionParams) => Promise<{
|
|
1723
|
+
createTransaction: ({ sender, recipient, assetValue, memo, pureLovelaceOnly, sweep, }: import("@swapkit/toolboxes/cardano/types").CardanoCreateTransactionParams) => Promise<{
|
|
1242
1724
|
tx: import("@stricahq/typhonjs").Transaction;
|
|
1243
1725
|
unsignedTx: string;
|
|
1244
1726
|
}>;
|
|
@@ -1247,7 +1729,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1247
1729
|
getBalance: (addressParam?: string) => Promise<AssetValue[]>;
|
|
1248
1730
|
signAndBroadcastTransaction: (txInput: string) => Promise<string>;
|
|
1249
1731
|
signTransaction: (tx: string) => Promise<string>;
|
|
1250
|
-
transfer: ({ recipient, assetValue, memo }: import("@swapkit/toolboxes/cardano/types").CardanoTransferParams) => Promise<string>;
|
|
1732
|
+
transfer: ({ recipient, assetValue, memo, sweep }: import("@swapkit/toolboxes/cardano/types").CardanoTransferParams) => Promise<string>;
|
|
1251
1733
|
validateAddress: typeof import("@swapkit/toolboxes/cardano/toolbox").validateCardanoAddress;
|
|
1252
1734
|
};
|
|
1253
1735
|
FLIP: ChainWallet<Chain.Chainflip> & {
|
|
@@ -1314,7 +1796,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1314
1796
|
blockTag?: import("ethers").BlockTag;
|
|
1315
1797
|
enableCcipRead?: boolean;
|
|
1316
1798
|
}>;
|
|
1317
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1799
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1800
|
+
gasLimit: bigint;
|
|
1801
|
+
value: string;
|
|
1802
|
+
data: string;
|
|
1803
|
+
from: string;
|
|
1804
|
+
to: string;
|
|
1805
|
+
maxFeePerGas: bigint;
|
|
1806
|
+
maxPriorityFeePerGas: bigint;
|
|
1807
|
+
gasPrice?: undefined;
|
|
1808
|
+
type?: number | undefined;
|
|
1809
|
+
nonce?: number | undefined;
|
|
1810
|
+
} | {
|
|
1811
|
+
gasLimit: bigint;
|
|
1812
|
+
value: string;
|
|
1813
|
+
data: string;
|
|
1814
|
+
from: string;
|
|
1815
|
+
to: string;
|
|
1816
|
+
gasPrice: bigint;
|
|
1817
|
+
maxFeePerGas?: undefined;
|
|
1818
|
+
maxPriorityFeePerGas?: undefined;
|
|
1819
|
+
type?: number | undefined;
|
|
1820
|
+
nonce?: number | undefined;
|
|
1821
|
+
} | {
|
|
1318
1822
|
value: string;
|
|
1319
1823
|
to: string;
|
|
1320
1824
|
data: string;
|
|
@@ -1332,7 +1836,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1332
1836
|
blockTag?: import("ethers").BlockTag;
|
|
1333
1837
|
enableCcipRead?: boolean;
|
|
1334
1838
|
}>;
|
|
1335
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1839
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1840
|
+
gasLimit: bigint;
|
|
1841
|
+
value: string;
|
|
1842
|
+
data: string;
|
|
1843
|
+
from: string;
|
|
1844
|
+
to: string;
|
|
1845
|
+
maxFeePerGas: bigint;
|
|
1846
|
+
maxPriorityFeePerGas: bigint;
|
|
1847
|
+
gasPrice?: undefined;
|
|
1848
|
+
type?: number | undefined;
|
|
1849
|
+
nonce?: number | undefined;
|
|
1850
|
+
} | {
|
|
1851
|
+
gasLimit: bigint;
|
|
1852
|
+
value: string;
|
|
1853
|
+
data: string;
|
|
1854
|
+
from: string;
|
|
1855
|
+
to: string;
|
|
1856
|
+
gasPrice: bigint;
|
|
1857
|
+
maxFeePerGas?: undefined;
|
|
1858
|
+
maxPriorityFeePerGas?: undefined;
|
|
1859
|
+
type?: number | undefined;
|
|
1860
|
+
nonce?: number | undefined;
|
|
1861
|
+
} | {
|
|
1336
1862
|
value: string;
|
|
1337
1863
|
to: string;
|
|
1338
1864
|
data: string;
|
|
@@ -1359,12 +1885,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1359
1885
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1360
1886
|
data?: string;
|
|
1361
1887
|
}) => Promise<bigint>;
|
|
1362
|
-
estimateGasPrices: () => Promise<{
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1888
|
+
estimateGasPrices: () => Promise<{
|
|
1889
|
+
average: {
|
|
1890
|
+
gasPrice?: bigint;
|
|
1891
|
+
l1GasPrice?: bigint;
|
|
1892
|
+
maxFeePerGas?: bigint;
|
|
1893
|
+
maxPriorityFeePerGas?: bigint;
|
|
1894
|
+
};
|
|
1895
|
+
fast: {
|
|
1896
|
+
gasPrice?: bigint;
|
|
1897
|
+
l1GasPrice?: bigint;
|
|
1898
|
+
maxFeePerGas?: bigint;
|
|
1899
|
+
maxPriorityFeePerGas?: bigint;
|
|
1900
|
+
};
|
|
1901
|
+
fastest: {
|
|
1902
|
+
gasPrice?: bigint;
|
|
1903
|
+
l1GasPrice?: bigint;
|
|
1904
|
+
maxFeePerGas?: bigint;
|
|
1905
|
+
maxPriorityFeePerGas?: bigint;
|
|
1906
|
+
};
|
|
1907
|
+
}>;
|
|
1368
1908
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
1369
1909
|
feeOption: FeeOption;
|
|
1370
1910
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1372,8 +1912,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1372
1912
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1373
1913
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1374
1914
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
1375
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1915
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1376
1916
|
feeOptionKey?: FeeOption;
|
|
1917
|
+
sweep?: boolean;
|
|
1377
1918
|
}) => Promise<string>;
|
|
1378
1919
|
signAuthorization: ((params: {
|
|
1379
1920
|
address: string;
|
|
@@ -1382,7 +1923,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1382
1923
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1383
1924
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1384
1925
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1385
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1926
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1386
1927
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
1387
1928
|
};
|
|
1388
1929
|
CORN: ChainWallet<Chain.Corn> & {
|
|
@@ -1427,7 +1968,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1427
1968
|
blockTag?: import("ethers").BlockTag;
|
|
1428
1969
|
enableCcipRead?: boolean;
|
|
1429
1970
|
}>;
|
|
1430
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1971
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
1972
|
+
gasLimit: bigint;
|
|
1973
|
+
value: string;
|
|
1974
|
+
data: string;
|
|
1975
|
+
from: string;
|
|
1976
|
+
to: string;
|
|
1977
|
+
maxFeePerGas: bigint;
|
|
1978
|
+
maxPriorityFeePerGas: bigint;
|
|
1979
|
+
gasPrice?: undefined;
|
|
1980
|
+
type?: number | undefined;
|
|
1981
|
+
nonce?: number | undefined;
|
|
1982
|
+
} | {
|
|
1983
|
+
gasLimit: bigint;
|
|
1984
|
+
value: string;
|
|
1985
|
+
data: string;
|
|
1986
|
+
from: string;
|
|
1987
|
+
to: string;
|
|
1988
|
+
gasPrice: bigint;
|
|
1989
|
+
maxFeePerGas?: undefined;
|
|
1990
|
+
maxPriorityFeePerGas?: undefined;
|
|
1991
|
+
type?: number | undefined;
|
|
1992
|
+
nonce?: number | undefined;
|
|
1993
|
+
} | {
|
|
1431
1994
|
value: string;
|
|
1432
1995
|
to: string;
|
|
1433
1996
|
data: string;
|
|
@@ -1445,7 +2008,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1445
2008
|
blockTag?: import("ethers").BlockTag;
|
|
1446
2009
|
enableCcipRead?: boolean;
|
|
1447
2010
|
}>;
|
|
1448
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2011
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2012
|
+
gasLimit: bigint;
|
|
2013
|
+
value: string;
|
|
2014
|
+
data: string;
|
|
2015
|
+
from: string;
|
|
2016
|
+
to: string;
|
|
2017
|
+
maxFeePerGas: bigint;
|
|
2018
|
+
maxPriorityFeePerGas: bigint;
|
|
2019
|
+
gasPrice?: undefined;
|
|
2020
|
+
type?: number | undefined;
|
|
2021
|
+
nonce?: number | undefined;
|
|
2022
|
+
} | {
|
|
2023
|
+
gasLimit: bigint;
|
|
2024
|
+
value: string;
|
|
2025
|
+
data: string;
|
|
2026
|
+
from: string;
|
|
2027
|
+
to: string;
|
|
2028
|
+
gasPrice: bigint;
|
|
2029
|
+
maxFeePerGas?: undefined;
|
|
2030
|
+
maxPriorityFeePerGas?: undefined;
|
|
2031
|
+
type?: number | undefined;
|
|
2032
|
+
nonce?: number | undefined;
|
|
2033
|
+
} | {
|
|
1449
2034
|
value: string;
|
|
1450
2035
|
to: string;
|
|
1451
2036
|
data: string;
|
|
@@ -1472,12 +2057,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1472
2057
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1473
2058
|
data?: string;
|
|
1474
2059
|
}) => Promise<bigint>;
|
|
1475
|
-
estimateGasPrices: () => Promise<{
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
2060
|
+
estimateGasPrices: () => Promise<{
|
|
2061
|
+
average: {
|
|
2062
|
+
gasPrice?: bigint;
|
|
2063
|
+
l1GasPrice?: bigint;
|
|
2064
|
+
maxFeePerGas?: bigint;
|
|
2065
|
+
maxPriorityFeePerGas?: bigint;
|
|
2066
|
+
};
|
|
2067
|
+
fast: {
|
|
2068
|
+
gasPrice?: bigint;
|
|
2069
|
+
l1GasPrice?: bigint;
|
|
2070
|
+
maxFeePerGas?: bigint;
|
|
2071
|
+
maxPriorityFeePerGas?: bigint;
|
|
2072
|
+
};
|
|
2073
|
+
fastest: {
|
|
2074
|
+
gasPrice?: bigint;
|
|
2075
|
+
l1GasPrice?: bigint;
|
|
2076
|
+
maxFeePerGas?: bigint;
|
|
2077
|
+
maxPriorityFeePerGas?: bigint;
|
|
2078
|
+
};
|
|
2079
|
+
}>;
|
|
1481
2080
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
1482
2081
|
feeOption: FeeOption;
|
|
1483
2082
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1485,8 +2084,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1485
2084
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1486
2085
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1487
2086
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
1488
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
2087
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1489
2088
|
feeOptionKey?: FeeOption;
|
|
2089
|
+
sweep?: boolean;
|
|
1490
2090
|
}) => Promise<string>;
|
|
1491
2091
|
signAuthorization: ((params: {
|
|
1492
2092
|
address: string;
|
|
@@ -1495,7 +2095,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1495
2095
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1496
2096
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1497
2097
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1498
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2098
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1499
2099
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
1500
2100
|
};
|
|
1501
2101
|
GAIA: ChainWallet<Chain.Cosmos> & {
|
|
@@ -1522,7 +2122,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1522
2122
|
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
1523
2123
|
signAndBroadcastTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<string>;
|
|
1524
2124
|
signTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<import("cosmjs-types/cosmos/tx/v1beta1/tx").TxRaw>;
|
|
1525
|
-
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: GenericTransferParams) => Promise<string>;
|
|
2125
|
+
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, sweep, }: GenericTransferParams) => Promise<string>;
|
|
1526
2126
|
validateAddress: (address: string) => boolean;
|
|
1527
2127
|
verifySignature: ({ signature, message, address, }: {
|
|
1528
2128
|
signature: string;
|
|
@@ -1572,7 +2172,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1572
2172
|
blockTag?: import("ethers").BlockTag;
|
|
1573
2173
|
enableCcipRead?: boolean;
|
|
1574
2174
|
}>;
|
|
1575
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2175
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2176
|
+
gasLimit: bigint;
|
|
2177
|
+
value: string;
|
|
2178
|
+
data: string;
|
|
2179
|
+
from: string;
|
|
2180
|
+
to: string;
|
|
2181
|
+
maxFeePerGas: bigint;
|
|
2182
|
+
maxPriorityFeePerGas: bigint;
|
|
2183
|
+
gasPrice?: undefined;
|
|
2184
|
+
type?: number | undefined;
|
|
2185
|
+
nonce?: number | undefined;
|
|
2186
|
+
} | {
|
|
2187
|
+
gasLimit: bigint;
|
|
2188
|
+
value: string;
|
|
2189
|
+
data: string;
|
|
2190
|
+
from: string;
|
|
2191
|
+
to: string;
|
|
2192
|
+
gasPrice: bigint;
|
|
2193
|
+
maxFeePerGas?: undefined;
|
|
2194
|
+
maxPriorityFeePerGas?: undefined;
|
|
2195
|
+
type?: number | undefined;
|
|
2196
|
+
nonce?: number | undefined;
|
|
2197
|
+
} | {
|
|
1576
2198
|
value: string;
|
|
1577
2199
|
to: string;
|
|
1578
2200
|
data: string;
|
|
@@ -1590,7 +2212,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1590
2212
|
blockTag?: import("ethers").BlockTag;
|
|
1591
2213
|
enableCcipRead?: boolean;
|
|
1592
2214
|
}>;
|
|
1593
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2215
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2216
|
+
gasLimit: bigint;
|
|
2217
|
+
value: string;
|
|
2218
|
+
data: string;
|
|
2219
|
+
from: string;
|
|
2220
|
+
to: string;
|
|
2221
|
+
maxFeePerGas: bigint;
|
|
2222
|
+
maxPriorityFeePerGas: bigint;
|
|
2223
|
+
gasPrice?: undefined;
|
|
2224
|
+
type?: number | undefined;
|
|
2225
|
+
nonce?: number | undefined;
|
|
2226
|
+
} | {
|
|
2227
|
+
gasLimit: bigint;
|
|
2228
|
+
value: string;
|
|
2229
|
+
data: string;
|
|
2230
|
+
from: string;
|
|
2231
|
+
to: string;
|
|
2232
|
+
gasPrice: bigint;
|
|
2233
|
+
maxFeePerGas?: undefined;
|
|
2234
|
+
maxPriorityFeePerGas?: undefined;
|
|
2235
|
+
type?: number | undefined;
|
|
2236
|
+
nonce?: number | undefined;
|
|
2237
|
+
} | {
|
|
1594
2238
|
value: string;
|
|
1595
2239
|
to: string;
|
|
1596
2240
|
data: string;
|
|
@@ -1617,12 +2261,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1617
2261
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1618
2262
|
data?: string;
|
|
1619
2263
|
}) => Promise<bigint>;
|
|
1620
|
-
estimateGasPrices: () => Promise<{
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
2264
|
+
estimateGasPrices: () => Promise<{
|
|
2265
|
+
average: {
|
|
2266
|
+
gasPrice?: bigint;
|
|
2267
|
+
l1GasPrice?: bigint;
|
|
2268
|
+
maxFeePerGas?: bigint;
|
|
2269
|
+
maxPriorityFeePerGas?: bigint;
|
|
2270
|
+
};
|
|
2271
|
+
fast: {
|
|
2272
|
+
gasPrice?: bigint;
|
|
2273
|
+
l1GasPrice?: bigint;
|
|
2274
|
+
maxFeePerGas?: bigint;
|
|
2275
|
+
maxPriorityFeePerGas?: bigint;
|
|
2276
|
+
};
|
|
2277
|
+
fastest: {
|
|
2278
|
+
gasPrice?: bigint;
|
|
2279
|
+
l1GasPrice?: bigint;
|
|
2280
|
+
maxFeePerGas?: bigint;
|
|
2281
|
+
maxPriorityFeePerGas?: bigint;
|
|
2282
|
+
};
|
|
2283
|
+
}>;
|
|
1626
2284
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
1627
2285
|
feeOption: FeeOption;
|
|
1628
2286
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -1630,8 +2288,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1630
2288
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1631
2289
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1632
2290
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
1633
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
2291
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1634
2292
|
feeOptionKey?: FeeOption;
|
|
2293
|
+
sweep?: boolean;
|
|
1635
2294
|
}) => Promise<string>;
|
|
1636
2295
|
signAuthorization: ((params: {
|
|
1637
2296
|
address: string;
|
|
@@ -1640,7 +2299,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1640
2299
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
1641
2300
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1642
2301
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
1643
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2302
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1644
2303
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
1645
2304
|
};
|
|
1646
2305
|
DASH: ChainWallet<Chain.Dash> & {
|
|
@@ -1661,7 +2320,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1661
2320
|
publicKey: Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>;
|
|
1662
2321
|
};
|
|
1663
2322
|
createReplacementTransaction: ({ txid, newFeeRate, recipient, memo, }: import("@swapkit/toolboxes/utxo/types").RBFTransactionParams) => Promise<import("@swapkit/toolboxes/utxo/toolbox/utxo").ReplacementTransactionResult>;
|
|
1664
|
-
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, enableRBF, }: import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams) => Promise<{
|
|
2323
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, enableRBF, sweep, }: import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams) => Promise<{
|
|
1665
2324
|
inputs: import("@swapkit/toolboxes/utxo/types").UTXOType[];
|
|
1666
2325
|
tx: import("@swapkit/utxo-signer").Transaction;
|
|
1667
2326
|
utxos: {
|
|
@@ -1685,11 +2344,12 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1685
2344
|
pubkey: string;
|
|
1686
2345
|
} | undefined;
|
|
1687
2346
|
derivePrivateKeyAtIndex: ({ accountIndex, index, change }: import("@swapkit/toolboxes").DeriveAddressParams) => Uint8Array<ArrayBufferLike> | undefined;
|
|
1688
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
2347
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipient, recipients, }: {
|
|
1689
2348
|
from: string;
|
|
1690
2349
|
memo?: string;
|
|
1691
2350
|
feeRate?: number;
|
|
1692
2351
|
feeOptionKey?: FeeOption;
|
|
2352
|
+
recipient?: string;
|
|
1693
2353
|
recipients?: number | import("@swapkit/toolboxes/utxo/types").TargetOutput[];
|
|
1694
2354
|
}) => Promise<AssetValue>;
|
|
1695
2355
|
estimateTransactionFee: (params: {
|
|
@@ -1719,7 +2379,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1719
2379
|
fast: number;
|
|
1720
2380
|
fastest: number;
|
|
1721
2381
|
}>;
|
|
1722
|
-
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, }: Omit<import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams, "feeRate"> & {
|
|
2382
|
+
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, sweep, }: Omit<import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams, "feeRate"> & {
|
|
1723
2383
|
feeOptionKey?: FeeOption;
|
|
1724
2384
|
feeRate?: number;
|
|
1725
2385
|
}) => Promise<{
|
|
@@ -1761,10 +2421,10 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1761
2421
|
tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>;
|
|
1762
2422
|
inputDerivations: import("@swapkit/toolboxes/utxo/types").InputDerivation[];
|
|
1763
2423
|
}) => import("@swapkit/utxo-signer").Transaction;
|
|
1764
|
-
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, enableRBF, }: import("@swapkit/toolboxes/utxo/types").UTXOTransferParams & {
|
|
2424
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, enableRBF, sweep, }: import("@swapkit/toolboxes/utxo/types").UTXOTransferParams & {
|
|
1765
2425
|
enableRBF?: boolean;
|
|
1766
2426
|
}) => Promise<string>;
|
|
1767
|
-
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, }: {
|
|
2427
|
+
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, sweep, }: {
|
|
1768
2428
|
utxos: import("@swapkit/toolboxes").UTXOForMultiAddressTransfer[];
|
|
1769
2429
|
recipient: string;
|
|
1770
2430
|
assetValue: AssetValue;
|
|
@@ -1772,6 +2432,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1772
2432
|
feeRate?: number;
|
|
1773
2433
|
feeOptionKey?: FeeOption;
|
|
1774
2434
|
changeAddress?: string;
|
|
2435
|
+
sweep?: boolean;
|
|
1775
2436
|
}) => Promise<string>;
|
|
1776
2437
|
validateAddress: (address: string) => boolean;
|
|
1777
2438
|
};
|
|
@@ -1793,7 +2454,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1793
2454
|
publicKey: Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>;
|
|
1794
2455
|
};
|
|
1795
2456
|
createReplacementTransaction: ({ txid, newFeeRate, recipient, memo, }: import("@swapkit/toolboxes/utxo/types").RBFTransactionParams) => Promise<import("@swapkit/toolboxes/utxo/toolbox/utxo").ReplacementTransactionResult>;
|
|
1796
|
-
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, enableRBF, }: import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams) => Promise<{
|
|
2457
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, enableRBF, sweep, }: import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams) => Promise<{
|
|
1797
2458
|
inputs: import("@swapkit/toolboxes/utxo/types").UTXOType[];
|
|
1798
2459
|
tx: import("@swapkit/utxo-signer").Transaction;
|
|
1799
2460
|
utxos: {
|
|
@@ -1817,11 +2478,12 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1817
2478
|
pubkey: string;
|
|
1818
2479
|
} | undefined;
|
|
1819
2480
|
derivePrivateKeyAtIndex: ({ accountIndex, index, change }: import("@swapkit/toolboxes").DeriveAddressParams) => Uint8Array<ArrayBufferLike> | undefined;
|
|
1820
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
2481
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipient, recipients, }: {
|
|
1821
2482
|
from: string;
|
|
1822
2483
|
memo?: string;
|
|
1823
2484
|
feeRate?: number;
|
|
1824
2485
|
feeOptionKey?: FeeOption;
|
|
2486
|
+
recipient?: string;
|
|
1825
2487
|
recipients?: number | import("@swapkit/toolboxes/utxo/types").TargetOutput[];
|
|
1826
2488
|
}) => Promise<AssetValue>;
|
|
1827
2489
|
estimateTransactionFee: (params: {
|
|
@@ -1851,7 +2513,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1851
2513
|
fast: number;
|
|
1852
2514
|
fastest: number;
|
|
1853
2515
|
}>;
|
|
1854
|
-
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, }: Omit<import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams, "feeRate"> & {
|
|
2516
|
+
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, sweep, }: Omit<import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams, "feeRate"> & {
|
|
1855
2517
|
feeOptionKey?: FeeOption;
|
|
1856
2518
|
feeRate?: number;
|
|
1857
2519
|
}) => Promise<{
|
|
@@ -1893,10 +2555,10 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1893
2555
|
tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>;
|
|
1894
2556
|
inputDerivations: import("@swapkit/toolboxes/utxo/types").InputDerivation[];
|
|
1895
2557
|
}) => import("@swapkit/utxo-signer").Transaction;
|
|
1896
|
-
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, enableRBF, }: import("@swapkit/toolboxes/utxo/types").UTXOTransferParams & {
|
|
2558
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, enableRBF, sweep, }: import("@swapkit/toolboxes/utxo/types").UTXOTransferParams & {
|
|
1897
2559
|
enableRBF?: boolean;
|
|
1898
2560
|
}) => Promise<string>;
|
|
1899
|
-
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, }: {
|
|
2561
|
+
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, sweep, }: {
|
|
1900
2562
|
utxos: import("@swapkit/toolboxes").UTXOForMultiAddressTransfer[];
|
|
1901
2563
|
recipient: string;
|
|
1902
2564
|
assetValue: AssetValue;
|
|
@@ -1904,6 +2566,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1904
2566
|
feeRate?: number;
|
|
1905
2567
|
feeOptionKey?: FeeOption;
|
|
1906
2568
|
changeAddress?: string;
|
|
2569
|
+
sweep?: boolean;
|
|
1907
2570
|
}) => Promise<string>;
|
|
1908
2571
|
validateAddress: (address: string) => boolean;
|
|
1909
2572
|
};
|
|
@@ -1953,7 +2616,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1953
2616
|
blockTag?: import("ethers").BlockTag;
|
|
1954
2617
|
enableCcipRead?: boolean;
|
|
1955
2618
|
}>;
|
|
1956
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2619
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2620
|
+
gasLimit: bigint;
|
|
2621
|
+
value: string;
|
|
2622
|
+
data: string;
|
|
2623
|
+
from: string;
|
|
2624
|
+
to: string;
|
|
2625
|
+
maxFeePerGas: bigint;
|
|
2626
|
+
maxPriorityFeePerGas: bigint;
|
|
2627
|
+
gasPrice?: undefined;
|
|
2628
|
+
type?: number | undefined;
|
|
2629
|
+
nonce?: number | undefined;
|
|
2630
|
+
} | {
|
|
2631
|
+
gasLimit: bigint;
|
|
2632
|
+
value: string;
|
|
2633
|
+
data: string;
|
|
2634
|
+
from: string;
|
|
2635
|
+
to: string;
|
|
2636
|
+
gasPrice: bigint;
|
|
2637
|
+
maxFeePerGas?: undefined;
|
|
2638
|
+
maxPriorityFeePerGas?: undefined;
|
|
2639
|
+
type?: number | undefined;
|
|
2640
|
+
nonce?: number | undefined;
|
|
2641
|
+
} | {
|
|
1957
2642
|
value: string;
|
|
1958
2643
|
to: string;
|
|
1959
2644
|
data: string;
|
|
@@ -1971,7 +2656,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1971
2656
|
blockTag?: import("ethers").BlockTag;
|
|
1972
2657
|
enableCcipRead?: boolean;
|
|
1973
2658
|
}>;
|
|
1974
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2659
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2660
|
+
gasLimit: bigint;
|
|
2661
|
+
value: string;
|
|
2662
|
+
data: string;
|
|
2663
|
+
from: string;
|
|
2664
|
+
to: string;
|
|
2665
|
+
maxFeePerGas: bigint;
|
|
2666
|
+
maxPriorityFeePerGas: bigint;
|
|
2667
|
+
gasPrice?: undefined;
|
|
2668
|
+
type?: number | undefined;
|
|
2669
|
+
nonce?: number | undefined;
|
|
2670
|
+
} | {
|
|
2671
|
+
gasLimit: bigint;
|
|
2672
|
+
value: string;
|
|
2673
|
+
data: string;
|
|
2674
|
+
from: string;
|
|
2675
|
+
to: string;
|
|
2676
|
+
gasPrice: bigint;
|
|
2677
|
+
maxFeePerGas?: undefined;
|
|
2678
|
+
maxPriorityFeePerGas?: undefined;
|
|
2679
|
+
type?: number | undefined;
|
|
2680
|
+
nonce?: number | undefined;
|
|
2681
|
+
} | {
|
|
1975
2682
|
value: string;
|
|
1976
2683
|
to: string;
|
|
1977
2684
|
data: string;
|
|
@@ -1998,12 +2705,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1998
2705
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1999
2706
|
data?: string;
|
|
2000
2707
|
}) => Promise<bigint>;
|
|
2001
|
-
estimateGasPrices: () => Promise<{
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2708
|
+
estimateGasPrices: () => Promise<{
|
|
2709
|
+
average: {
|
|
2710
|
+
gasPrice?: bigint;
|
|
2711
|
+
l1GasPrice?: bigint;
|
|
2712
|
+
maxFeePerGas?: bigint;
|
|
2713
|
+
maxPriorityFeePerGas?: bigint;
|
|
2714
|
+
};
|
|
2715
|
+
fast: {
|
|
2716
|
+
gasPrice?: bigint;
|
|
2717
|
+
l1GasPrice?: bigint;
|
|
2718
|
+
maxFeePerGas?: bigint;
|
|
2719
|
+
maxPriorityFeePerGas?: bigint;
|
|
2720
|
+
};
|
|
2721
|
+
fastest: {
|
|
2722
|
+
gasPrice?: bigint;
|
|
2723
|
+
l1GasPrice?: bigint;
|
|
2724
|
+
maxFeePerGas?: bigint;
|
|
2725
|
+
maxPriorityFeePerGas?: bigint;
|
|
2726
|
+
};
|
|
2727
|
+
}>;
|
|
2007
2728
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
2008
2729
|
feeOption: FeeOption;
|
|
2009
2730
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -2011,21 +2732,18 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2011
2732
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2012
2733
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
2013
2734
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
2014
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
2735
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
2015
2736
|
feeOptionKey?: FeeOption;
|
|
2737
|
+
sweep?: boolean;
|
|
2016
2738
|
}) => Promise<string>;
|
|
2017
2739
|
signAuthorization: ((params: {
|
|
2018
2740
|
address: string;
|
|
2019
|
-
nonce
|
|
2020
|
-
/**
|
|
2021
|
-
* @Public
|
|
2022
|
-
*/
|
|
2023
|
-
?: number | bigint;
|
|
2741
|
+
nonce?: number | bigint;
|
|
2024
2742
|
chainId?: bigint;
|
|
2025
2743
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2026
2744
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2027
2745
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2028
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2746
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2029
2747
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
2030
2748
|
};
|
|
2031
2749
|
GNO: ChainWallet<Chain.Gnosis> & {
|
|
@@ -2070,7 +2788,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2070
2788
|
blockTag?: import("ethers").BlockTag;
|
|
2071
2789
|
enableCcipRead?: boolean;
|
|
2072
2790
|
}>;
|
|
2073
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2791
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2792
|
+
gasLimit: bigint;
|
|
2793
|
+
value: string;
|
|
2794
|
+
data: string;
|
|
2795
|
+
from: string;
|
|
2796
|
+
to: string;
|
|
2797
|
+
maxFeePerGas: bigint;
|
|
2798
|
+
maxPriorityFeePerGas: bigint;
|
|
2799
|
+
gasPrice?: undefined;
|
|
2800
|
+
type?: number | undefined;
|
|
2801
|
+
nonce?: number | undefined;
|
|
2802
|
+
} | {
|
|
2803
|
+
gasLimit: bigint;
|
|
2804
|
+
value: string;
|
|
2805
|
+
data: string;
|
|
2806
|
+
from: string;
|
|
2807
|
+
to: string;
|
|
2808
|
+
gasPrice: bigint;
|
|
2809
|
+
maxFeePerGas?: undefined;
|
|
2810
|
+
maxPriorityFeePerGas?: undefined;
|
|
2811
|
+
type?: number | undefined;
|
|
2812
|
+
nonce?: number | undefined;
|
|
2813
|
+
} | {
|
|
2074
2814
|
value: string;
|
|
2075
2815
|
to: string;
|
|
2076
2816
|
data: string;
|
|
@@ -2088,7 +2828,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2088
2828
|
blockTag?: import("ethers").BlockTag;
|
|
2089
2829
|
enableCcipRead?: boolean;
|
|
2090
2830
|
}>;
|
|
2091
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2831
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2832
|
+
gasLimit: bigint;
|
|
2833
|
+
value: string;
|
|
2834
|
+
data: string;
|
|
2835
|
+
from: string;
|
|
2836
|
+
to: string;
|
|
2837
|
+
maxFeePerGas: bigint;
|
|
2838
|
+
maxPriorityFeePerGas: bigint;
|
|
2839
|
+
gasPrice?: undefined;
|
|
2840
|
+
type?: number | undefined;
|
|
2841
|
+
nonce?: number | undefined;
|
|
2842
|
+
} | {
|
|
2843
|
+
gasLimit: bigint;
|
|
2844
|
+
value: string;
|
|
2845
|
+
data: string;
|
|
2846
|
+
from: string;
|
|
2847
|
+
to: string;
|
|
2848
|
+
gasPrice: bigint;
|
|
2849
|
+
maxFeePerGas?: undefined;
|
|
2850
|
+
maxPriorityFeePerGas?: undefined;
|
|
2851
|
+
type?: number | undefined;
|
|
2852
|
+
nonce?: number | undefined;
|
|
2853
|
+
} | {
|
|
2092
2854
|
value: string;
|
|
2093
2855
|
to: string;
|
|
2094
2856
|
data: string;
|
|
@@ -2115,12 +2877,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2115
2877
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
2116
2878
|
data?: string;
|
|
2117
2879
|
}) => Promise<bigint>;
|
|
2118
|
-
estimateGasPrices: () => Promise<{
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2880
|
+
estimateGasPrices: () => Promise<{
|
|
2881
|
+
average: {
|
|
2882
|
+
gasPrice?: bigint;
|
|
2883
|
+
l1GasPrice?: bigint;
|
|
2884
|
+
maxFeePerGas?: bigint;
|
|
2885
|
+
maxPriorityFeePerGas?: bigint;
|
|
2886
|
+
};
|
|
2887
|
+
fast: {
|
|
2888
|
+
gasPrice?: bigint;
|
|
2889
|
+
l1GasPrice?: bigint;
|
|
2890
|
+
maxFeePerGas?: bigint;
|
|
2891
|
+
maxPriorityFeePerGas?: bigint;
|
|
2892
|
+
};
|
|
2893
|
+
fastest: {
|
|
2894
|
+
gasPrice?: bigint;
|
|
2895
|
+
l1GasPrice?: bigint;
|
|
2896
|
+
maxFeePerGas?: bigint;
|
|
2897
|
+
maxPriorityFeePerGas?: bigint;
|
|
2898
|
+
};
|
|
2899
|
+
}>;
|
|
2124
2900
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
2125
2901
|
feeOption: FeeOption;
|
|
2126
2902
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -2128,8 +2904,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2128
2904
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2129
2905
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
2130
2906
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
2131
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
2907
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
2132
2908
|
feeOptionKey?: FeeOption;
|
|
2909
|
+
sweep?: boolean;
|
|
2133
2910
|
}) => Promise<string>;
|
|
2134
2911
|
signAuthorization: ((params: {
|
|
2135
2912
|
address: string;
|
|
@@ -2138,7 +2915,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2138
2915
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2139
2916
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2140
2917
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2141
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2918
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2142
2919
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
2143
2920
|
};
|
|
2144
2921
|
HARBOR: ChainWallet<Chain.Harbor> & {
|
|
@@ -2165,7 +2942,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2165
2942
|
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
2166
2943
|
signAndBroadcastTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<string>;
|
|
2167
2944
|
signTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<import("cosmjs-types/cosmos/tx/v1beta1/tx").TxRaw>;
|
|
2168
|
-
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: GenericTransferParams) => Promise<string>;
|
|
2945
|
+
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, sweep, }: GenericTransferParams) => Promise<string>;
|
|
2169
2946
|
validateAddress: (address: string) => boolean;
|
|
2170
2947
|
verifySignature: ({ signature, message, address, }: {
|
|
2171
2948
|
signature: string;
|
|
@@ -2215,7 +2992,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2215
2992
|
blockTag?: import("ethers").BlockTag;
|
|
2216
2993
|
enableCcipRead?: boolean;
|
|
2217
2994
|
}>;
|
|
2218
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2995
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
2996
|
+
gasLimit: bigint;
|
|
2997
|
+
value: string;
|
|
2998
|
+
data: string;
|
|
2999
|
+
from: string;
|
|
3000
|
+
to: string;
|
|
3001
|
+
maxFeePerGas: bigint;
|
|
3002
|
+
maxPriorityFeePerGas: bigint;
|
|
3003
|
+
gasPrice?: undefined;
|
|
3004
|
+
type?: number | undefined;
|
|
3005
|
+
nonce?: number | undefined;
|
|
3006
|
+
} | {
|
|
3007
|
+
gasLimit: bigint;
|
|
3008
|
+
value: string;
|
|
3009
|
+
data: string;
|
|
3010
|
+
from: string;
|
|
3011
|
+
to: string;
|
|
3012
|
+
gasPrice: bigint;
|
|
3013
|
+
maxFeePerGas?: undefined;
|
|
3014
|
+
maxPriorityFeePerGas?: undefined;
|
|
3015
|
+
type?: number | undefined;
|
|
3016
|
+
nonce?: number | undefined;
|
|
3017
|
+
} | {
|
|
2219
3018
|
value: string;
|
|
2220
3019
|
to: string;
|
|
2221
3020
|
data: string;
|
|
@@ -2233,7 +3032,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2233
3032
|
blockTag?: import("ethers").BlockTag;
|
|
2234
3033
|
enableCcipRead?: boolean;
|
|
2235
3034
|
}>;
|
|
2236
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3035
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3036
|
+
gasLimit: bigint;
|
|
3037
|
+
value: string;
|
|
3038
|
+
data: string;
|
|
3039
|
+
from: string;
|
|
3040
|
+
to: string;
|
|
3041
|
+
maxFeePerGas: bigint;
|
|
3042
|
+
maxPriorityFeePerGas: bigint;
|
|
3043
|
+
gasPrice?: undefined;
|
|
3044
|
+
type?: number | undefined;
|
|
3045
|
+
nonce?: number | undefined;
|
|
3046
|
+
} | {
|
|
3047
|
+
gasLimit: bigint;
|
|
3048
|
+
value: string;
|
|
3049
|
+
data: string;
|
|
3050
|
+
from: string;
|
|
3051
|
+
to: string;
|
|
3052
|
+
gasPrice: bigint;
|
|
3053
|
+
maxFeePerGas?: undefined;
|
|
3054
|
+
maxPriorityFeePerGas?: undefined;
|
|
3055
|
+
type?: number | undefined;
|
|
3056
|
+
nonce?: number | undefined;
|
|
3057
|
+
} | {
|
|
2237
3058
|
value: string;
|
|
2238
3059
|
to: string;
|
|
2239
3060
|
data: string;
|
|
@@ -2260,12 +3081,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2260
3081
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
2261
3082
|
data?: string;
|
|
2262
3083
|
}) => Promise<bigint>;
|
|
2263
|
-
estimateGasPrices: () => Promise<{
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
3084
|
+
estimateGasPrices: () => Promise<{
|
|
3085
|
+
average: {
|
|
3086
|
+
gasPrice?: bigint;
|
|
3087
|
+
l1GasPrice?: bigint;
|
|
3088
|
+
maxFeePerGas?: bigint;
|
|
3089
|
+
maxPriorityFeePerGas?: bigint;
|
|
3090
|
+
};
|
|
3091
|
+
fast: {
|
|
3092
|
+
gasPrice?: bigint;
|
|
3093
|
+
l1GasPrice?: bigint;
|
|
3094
|
+
maxFeePerGas?: bigint;
|
|
3095
|
+
maxPriorityFeePerGas?: bigint;
|
|
3096
|
+
};
|
|
3097
|
+
fastest: {
|
|
3098
|
+
gasPrice?: bigint;
|
|
3099
|
+
l1GasPrice?: bigint;
|
|
3100
|
+
maxFeePerGas?: bigint;
|
|
3101
|
+
maxPriorityFeePerGas?: bigint;
|
|
3102
|
+
};
|
|
3103
|
+
}>;
|
|
2269
3104
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
2270
3105
|
feeOption: FeeOption;
|
|
2271
3106
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -2273,8 +3108,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2273
3108
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2274
3109
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
2275
3110
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
2276
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
3111
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
2277
3112
|
feeOptionKey?: FeeOption;
|
|
3113
|
+
sweep?: boolean;
|
|
2278
3114
|
}) => Promise<string>;
|
|
2279
3115
|
signAuthorization: ((params: {
|
|
2280
3116
|
address: string;
|
|
@@ -2283,7 +3119,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2283
3119
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2284
3120
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2285
3121
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2286
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3122
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2287
3123
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
2288
3124
|
};
|
|
2289
3125
|
HYPE: ChainWallet<Chain.Hype> & {
|
|
@@ -2336,7 +3172,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2336
3172
|
userFillsByTime: ({ aggregateByTime, endTime, startTime, user }: import("@swapkit/toolboxes/hypercore/types").HyperCoreUserFillsByTimeQueryParams) => Promise<import("@swapkit/toolboxes/hypercore/types").HyperCoreFill[]>;
|
|
2337
3173
|
};
|
|
2338
3174
|
signTransaction: (request: import("@swapkit/toolboxes/hypercore/types").HyperCoreUnsignedRequest) => Promise<import("@swapkit/toolboxes/hypercore/types").HyperCoreSignedRequest>;
|
|
2339
|
-
transfer: (params: import("@swapkit/toolboxes/hypercore/types").HyperCoreTransferParams) => Promise<string>;
|
|
3175
|
+
transfer: ({ sweep, ...params }: import("@swapkit/toolboxes/hypercore/types").HyperCoreTransferParams) => Promise<string>;
|
|
2340
3176
|
validateAddress: typeof import("@swapkit/toolboxes/hypercore/toolbox").validateHyperCoreAddress;
|
|
2341
3177
|
};
|
|
2342
3178
|
KUJI: ChainWallet<Chain.Kujira> & {
|
|
@@ -2363,7 +3199,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2363
3199
|
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
2364
3200
|
signAndBroadcastTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<string>;
|
|
2365
3201
|
signTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<import("cosmjs-types/cosmos/tx/v1beta1/tx").TxRaw>;
|
|
2366
|
-
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: GenericTransferParams) => Promise<string>;
|
|
3202
|
+
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, sweep, }: GenericTransferParams) => Promise<string>;
|
|
2367
3203
|
validateAddress: (address: string) => boolean;
|
|
2368
3204
|
verifySignature: ({ signature, message, address, }: {
|
|
2369
3205
|
signature: string;
|
|
@@ -2389,7 +3225,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2389
3225
|
publicKey: Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>;
|
|
2390
3226
|
};
|
|
2391
3227
|
createReplacementTransaction: ({ txid, newFeeRate, recipient, memo, }: import("@swapkit/toolboxes/utxo/types").RBFTransactionParams) => Promise<import("@swapkit/toolboxes/utxo/toolbox/utxo").ReplacementTransactionResult>;
|
|
2392
|
-
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, enableRBF, }: import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams) => Promise<{
|
|
3228
|
+
createTransaction: ({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, enableRBF, sweep, }: import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams) => Promise<{
|
|
2393
3229
|
inputs: import("@swapkit/toolboxes/utxo/types").UTXOType[];
|
|
2394
3230
|
tx: import("@swapkit/utxo-signer").Transaction;
|
|
2395
3231
|
utxos: {
|
|
@@ -2413,11 +3249,12 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2413
3249
|
pubkey: string;
|
|
2414
3250
|
} | undefined;
|
|
2415
3251
|
derivePrivateKeyAtIndex: ({ accountIndex, index, change }: import("@swapkit/toolboxes").DeriveAddressParams) => Uint8Array<ArrayBufferLike> | undefined;
|
|
2416
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
3252
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipient, recipients, }: {
|
|
2417
3253
|
from: string;
|
|
2418
3254
|
memo?: string;
|
|
2419
3255
|
feeRate?: number;
|
|
2420
3256
|
feeOptionKey?: FeeOption;
|
|
3257
|
+
recipient?: string;
|
|
2421
3258
|
recipients?: number | import("@swapkit/toolboxes/utxo/types").TargetOutput[];
|
|
2422
3259
|
}) => Promise<AssetValue>;
|
|
2423
3260
|
estimateTransactionFee: (params: {
|
|
@@ -2447,7 +3284,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2447
3284
|
fast: number;
|
|
2448
3285
|
fastest: number;
|
|
2449
3286
|
}>;
|
|
2450
|
-
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, }: Omit<import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams, "feeRate"> & {
|
|
3287
|
+
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, sweep, }: Omit<import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams, "feeRate"> & {
|
|
2451
3288
|
feeOptionKey?: FeeOption;
|
|
2452
3289
|
feeRate?: number;
|
|
2453
3290
|
}) => Promise<{
|
|
@@ -2489,10 +3326,10 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2489
3326
|
tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>;
|
|
2490
3327
|
inputDerivations: import("@swapkit/toolboxes/utxo/types").InputDerivation[];
|
|
2491
3328
|
}) => import("@swapkit/utxo-signer").Transaction;
|
|
2492
|
-
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, enableRBF, }: import("@swapkit/toolboxes/utxo/types").UTXOTransferParams & {
|
|
3329
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, enableRBF, sweep, }: import("@swapkit/toolboxes/utxo/types").UTXOTransferParams & {
|
|
2493
3330
|
enableRBF?: boolean;
|
|
2494
3331
|
}) => Promise<string>;
|
|
2495
|
-
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, }: {
|
|
3332
|
+
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, sweep, }: {
|
|
2496
3333
|
utxos: import("@swapkit/toolboxes").UTXOForMultiAddressTransfer[];
|
|
2497
3334
|
recipient: string;
|
|
2498
3335
|
assetValue: AssetValue;
|
|
@@ -2500,6 +3337,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2500
3337
|
feeRate?: number;
|
|
2501
3338
|
feeOptionKey?: FeeOption;
|
|
2502
3339
|
changeAddress?: string;
|
|
3340
|
+
sweep?: boolean;
|
|
2503
3341
|
}) => Promise<string>;
|
|
2504
3342
|
validateAddress: (address: string) => boolean;
|
|
2505
3343
|
};
|
|
@@ -2545,7 +3383,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2545
3383
|
blockTag?: import("ethers").BlockTag;
|
|
2546
3384
|
enableCcipRead?: boolean;
|
|
2547
3385
|
}>;
|
|
2548
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3386
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3387
|
+
gasLimit: bigint;
|
|
3388
|
+
value: string;
|
|
3389
|
+
data: string;
|
|
3390
|
+
from: string;
|
|
3391
|
+
to: string;
|
|
3392
|
+
maxFeePerGas: bigint;
|
|
3393
|
+
maxPriorityFeePerGas: bigint;
|
|
3394
|
+
gasPrice?: undefined;
|
|
3395
|
+
type?: number | undefined;
|
|
3396
|
+
nonce?: number | undefined;
|
|
3397
|
+
} | {
|
|
3398
|
+
gasLimit: bigint;
|
|
3399
|
+
value: string;
|
|
3400
|
+
data: string;
|
|
3401
|
+
from: string;
|
|
3402
|
+
to: string;
|
|
3403
|
+
gasPrice: bigint;
|
|
3404
|
+
maxFeePerGas?: undefined;
|
|
3405
|
+
maxPriorityFeePerGas?: undefined;
|
|
3406
|
+
type?: number | undefined;
|
|
3407
|
+
nonce?: number | undefined;
|
|
3408
|
+
} | {
|
|
2549
3409
|
value: string;
|
|
2550
3410
|
to: string;
|
|
2551
3411
|
data: string;
|
|
@@ -2563,7 +3423,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2563
3423
|
blockTag?: import("ethers").BlockTag;
|
|
2564
3424
|
enableCcipRead?: boolean;
|
|
2565
3425
|
}>;
|
|
2566
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3426
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3427
|
+
gasLimit: bigint;
|
|
3428
|
+
value: string;
|
|
3429
|
+
data: string;
|
|
3430
|
+
from: string;
|
|
3431
|
+
to: string;
|
|
3432
|
+
maxFeePerGas: bigint;
|
|
3433
|
+
maxPriorityFeePerGas: bigint;
|
|
3434
|
+
gasPrice?: undefined;
|
|
3435
|
+
type?: number | undefined;
|
|
3436
|
+
nonce?: number | undefined;
|
|
3437
|
+
} | {
|
|
3438
|
+
gasLimit: bigint;
|
|
3439
|
+
value: string;
|
|
3440
|
+
data: string;
|
|
3441
|
+
from: string;
|
|
3442
|
+
to: string;
|
|
3443
|
+
gasPrice: bigint;
|
|
3444
|
+
maxFeePerGas?: undefined;
|
|
3445
|
+
maxPriorityFeePerGas?: undefined;
|
|
3446
|
+
type?: number | undefined;
|
|
3447
|
+
nonce?: number | undefined;
|
|
3448
|
+
} | {
|
|
2567
3449
|
value: string;
|
|
2568
3450
|
to: string;
|
|
2569
3451
|
data: string;
|
|
@@ -2590,12 +3472,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2590
3472
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
2591
3473
|
data?: string;
|
|
2592
3474
|
}) => Promise<bigint>;
|
|
2593
|
-
estimateGasPrices: () => Promise<{
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
3475
|
+
estimateGasPrices: () => Promise<{
|
|
3476
|
+
average: {
|
|
3477
|
+
gasPrice?: bigint;
|
|
3478
|
+
l1GasPrice?: bigint;
|
|
3479
|
+
maxFeePerGas?: bigint;
|
|
3480
|
+
maxPriorityFeePerGas?: bigint;
|
|
3481
|
+
};
|
|
3482
|
+
fast: {
|
|
3483
|
+
gasPrice?: bigint;
|
|
3484
|
+
l1GasPrice?: bigint;
|
|
3485
|
+
maxFeePerGas?: bigint;
|
|
3486
|
+
maxPriorityFeePerGas?: bigint;
|
|
3487
|
+
};
|
|
3488
|
+
fastest: {
|
|
3489
|
+
gasPrice?: bigint;
|
|
3490
|
+
l1GasPrice?: bigint;
|
|
3491
|
+
maxFeePerGas?: bigint;
|
|
3492
|
+
maxPriorityFeePerGas?: bigint;
|
|
3493
|
+
};
|
|
3494
|
+
}>;
|
|
2599
3495
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
2600
3496
|
feeOption: FeeOption;
|
|
2601
3497
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -2603,8 +3499,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2603
3499
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2604
3500
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
2605
3501
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
2606
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
3502
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
2607
3503
|
feeOptionKey?: FeeOption;
|
|
3504
|
+
sweep?: boolean;
|
|
2608
3505
|
}) => Promise<string>;
|
|
2609
3506
|
signAuthorization: ((params: {
|
|
2610
3507
|
address: string;
|
|
@@ -2613,7 +3510,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2613
3510
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2614
3511
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2615
3512
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2616
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3513
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2617
3514
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
2618
3515
|
};
|
|
2619
3516
|
MAYA: ChainWallet<Chain.Maya> & import("@swapkit/toolboxes/cosmos").ThorchainWallet;
|
|
@@ -2659,7 +3556,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2659
3556
|
blockTag?: import("ethers").BlockTag;
|
|
2660
3557
|
enableCcipRead?: boolean;
|
|
2661
3558
|
}>;
|
|
2662
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3559
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3560
|
+
gasLimit: bigint;
|
|
3561
|
+
value: string;
|
|
3562
|
+
data: string;
|
|
3563
|
+
from: string;
|
|
3564
|
+
to: string;
|
|
3565
|
+
maxFeePerGas: bigint;
|
|
3566
|
+
maxPriorityFeePerGas: bigint;
|
|
3567
|
+
gasPrice?: undefined;
|
|
3568
|
+
type?: number | undefined;
|
|
3569
|
+
nonce?: number | undefined;
|
|
3570
|
+
} | {
|
|
3571
|
+
gasLimit: bigint;
|
|
3572
|
+
value: string;
|
|
3573
|
+
data: string;
|
|
3574
|
+
from: string;
|
|
3575
|
+
to: string;
|
|
3576
|
+
gasPrice: bigint;
|
|
3577
|
+
maxFeePerGas?: undefined;
|
|
3578
|
+
maxPriorityFeePerGas?: undefined;
|
|
3579
|
+
type?: number | undefined;
|
|
3580
|
+
nonce?: number | undefined;
|
|
3581
|
+
} | {
|
|
2663
3582
|
value: string;
|
|
2664
3583
|
to: string;
|
|
2665
3584
|
data: string;
|
|
@@ -2677,7 +3596,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2677
3596
|
blockTag?: import("ethers").BlockTag;
|
|
2678
3597
|
enableCcipRead?: boolean;
|
|
2679
3598
|
}>;
|
|
2680
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3599
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3600
|
+
gasLimit: bigint;
|
|
3601
|
+
value: string;
|
|
3602
|
+
data: string;
|
|
3603
|
+
from: string;
|
|
3604
|
+
to: string;
|
|
3605
|
+
maxFeePerGas: bigint;
|
|
3606
|
+
maxPriorityFeePerGas: bigint;
|
|
3607
|
+
gasPrice?: undefined;
|
|
3608
|
+
type?: number | undefined;
|
|
3609
|
+
nonce?: number | undefined;
|
|
3610
|
+
} | {
|
|
3611
|
+
gasLimit: bigint;
|
|
3612
|
+
value: string;
|
|
3613
|
+
data: string;
|
|
3614
|
+
from: string;
|
|
3615
|
+
to: string;
|
|
3616
|
+
gasPrice: bigint;
|
|
3617
|
+
maxFeePerGas?: undefined;
|
|
3618
|
+
maxPriorityFeePerGas?: undefined;
|
|
3619
|
+
type?: number | undefined;
|
|
3620
|
+
nonce?: number | undefined;
|
|
3621
|
+
} | {
|
|
2681
3622
|
value: string;
|
|
2682
3623
|
to: string;
|
|
2683
3624
|
data: string;
|
|
@@ -2704,12 +3645,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2704
3645
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
2705
3646
|
data?: string;
|
|
2706
3647
|
}) => Promise<bigint>;
|
|
2707
|
-
estimateGasPrices: () => Promise<{
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
3648
|
+
estimateGasPrices: () => Promise<{
|
|
3649
|
+
average: {
|
|
3650
|
+
gasPrice?: bigint;
|
|
3651
|
+
l1GasPrice?: bigint;
|
|
3652
|
+
maxFeePerGas?: bigint;
|
|
3653
|
+
maxPriorityFeePerGas?: bigint;
|
|
3654
|
+
};
|
|
3655
|
+
fast: {
|
|
3656
|
+
gasPrice?: bigint;
|
|
3657
|
+
l1GasPrice?: bigint;
|
|
3658
|
+
maxFeePerGas?: bigint;
|
|
3659
|
+
maxPriorityFeePerGas?: bigint;
|
|
3660
|
+
};
|
|
3661
|
+
fastest: {
|
|
3662
|
+
gasPrice?: bigint;
|
|
3663
|
+
l1GasPrice?: bigint;
|
|
3664
|
+
maxFeePerGas?: bigint;
|
|
3665
|
+
maxPriorityFeePerGas?: bigint;
|
|
3666
|
+
};
|
|
3667
|
+
}>;
|
|
2713
3668
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
2714
3669
|
feeOption: FeeOption;
|
|
2715
3670
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -2717,8 +3672,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2717
3672
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2718
3673
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
2719
3674
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
2720
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
3675
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
2721
3676
|
feeOptionKey?: FeeOption;
|
|
3677
|
+
sweep?: boolean;
|
|
2722
3678
|
}) => Promise<string>;
|
|
2723
3679
|
signAuthorization: ((params: {
|
|
2724
3680
|
address: string;
|
|
@@ -2727,7 +3683,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2727
3683
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2728
3684
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2729
3685
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2730
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3686
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2731
3687
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
2732
3688
|
};
|
|
2733
3689
|
MONAD: ChainWallet<Chain.Monad> & {
|
|
@@ -2772,7 +3728,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2772
3728
|
blockTag?: import("ethers").BlockTag;
|
|
2773
3729
|
enableCcipRead?: boolean;
|
|
2774
3730
|
}>;
|
|
2775
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3731
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3732
|
+
gasLimit: bigint;
|
|
3733
|
+
value: string;
|
|
3734
|
+
data: string;
|
|
3735
|
+
from: string;
|
|
3736
|
+
to: string;
|
|
3737
|
+
maxFeePerGas: bigint;
|
|
3738
|
+
maxPriorityFeePerGas: bigint;
|
|
3739
|
+
gasPrice?: undefined;
|
|
3740
|
+
type?: number | undefined;
|
|
3741
|
+
nonce?: number | undefined;
|
|
3742
|
+
} | {
|
|
3743
|
+
gasLimit: bigint;
|
|
3744
|
+
value: string;
|
|
3745
|
+
data: string;
|
|
3746
|
+
from: string;
|
|
3747
|
+
to: string;
|
|
3748
|
+
gasPrice: bigint;
|
|
3749
|
+
maxFeePerGas?: undefined;
|
|
3750
|
+
maxPriorityFeePerGas?: undefined;
|
|
3751
|
+
type?: number | undefined;
|
|
3752
|
+
nonce?: number | undefined;
|
|
3753
|
+
} | {
|
|
2776
3754
|
value: string;
|
|
2777
3755
|
to: string;
|
|
2778
3756
|
data: string;
|
|
@@ -2790,7 +3768,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2790
3768
|
blockTag?: import("ethers").BlockTag;
|
|
2791
3769
|
enableCcipRead?: boolean;
|
|
2792
3770
|
}>;
|
|
2793
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3771
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3772
|
+
gasLimit: bigint;
|
|
3773
|
+
value: string;
|
|
3774
|
+
data: string;
|
|
3775
|
+
from: string;
|
|
3776
|
+
to: string;
|
|
3777
|
+
maxFeePerGas: bigint;
|
|
3778
|
+
maxPriorityFeePerGas: bigint;
|
|
3779
|
+
gasPrice?: undefined;
|
|
3780
|
+
type?: number | undefined;
|
|
3781
|
+
nonce?: number | undefined;
|
|
3782
|
+
} | {
|
|
3783
|
+
gasLimit: bigint;
|
|
3784
|
+
value: string;
|
|
3785
|
+
data: string;
|
|
3786
|
+
from: string;
|
|
3787
|
+
to: string;
|
|
3788
|
+
gasPrice: bigint;
|
|
3789
|
+
maxFeePerGas?: undefined;
|
|
3790
|
+
maxPriorityFeePerGas?: undefined;
|
|
3791
|
+
type?: number | undefined;
|
|
3792
|
+
nonce?: number | undefined;
|
|
3793
|
+
} | {
|
|
2794
3794
|
value: string;
|
|
2795
3795
|
to: string;
|
|
2796
3796
|
data: string;
|
|
@@ -2817,12 +3817,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2817
3817
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
2818
3818
|
data?: string;
|
|
2819
3819
|
}) => Promise<bigint>;
|
|
2820
|
-
estimateGasPrices: () => Promise<{
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
3820
|
+
estimateGasPrices: () => Promise<{
|
|
3821
|
+
average: {
|
|
3822
|
+
gasPrice?: bigint;
|
|
3823
|
+
l1GasPrice?: bigint;
|
|
3824
|
+
maxFeePerGas?: bigint;
|
|
3825
|
+
maxPriorityFeePerGas?: bigint;
|
|
3826
|
+
};
|
|
3827
|
+
fast: {
|
|
3828
|
+
gasPrice?: bigint;
|
|
3829
|
+
l1GasPrice?: bigint;
|
|
3830
|
+
maxFeePerGas?: bigint;
|
|
3831
|
+
maxPriorityFeePerGas?: bigint;
|
|
3832
|
+
};
|
|
3833
|
+
fastest: {
|
|
3834
|
+
gasPrice?: bigint;
|
|
3835
|
+
l1GasPrice?: bigint;
|
|
3836
|
+
maxFeePerGas?: bigint;
|
|
3837
|
+
maxPriorityFeePerGas?: bigint;
|
|
3838
|
+
};
|
|
3839
|
+
}>;
|
|
2826
3840
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
2827
3841
|
feeOption: FeeOption;
|
|
2828
3842
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -2830,8 +3844,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2830
3844
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2831
3845
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
2832
3846
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
2833
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
3847
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
2834
3848
|
feeOptionKey?: FeeOption;
|
|
3849
|
+
sweep?: boolean;
|
|
2835
3850
|
}) => Promise<string>;
|
|
2836
3851
|
signAuthorization: ((params: {
|
|
2837
3852
|
address: string;
|
|
@@ -2840,7 +3855,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2840
3855
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
2841
3856
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
2842
3857
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
2843
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3858
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
2844
3859
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
2845
3860
|
};
|
|
2846
3861
|
NEAR: ChainWallet<Chain.Near> & {
|
|
@@ -2850,10 +3865,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2850
3865
|
createContract: <T_1 extends import("@near-js/accounts").Contract = import("@near-js/accounts").Contract>(contractInterface: import("@swapkit/toolboxes/near/types").NearContractInterface) => Promise<T_1>;
|
|
2851
3866
|
createContractFunctionCall: ({ args, attachedDeposit, contractId, gas, methodName, sender: accountId, }: import("@swapkit/toolboxes/near/types").ContractFunctionCallParams) => Promise<import("@near-js/transactions").Transaction>;
|
|
2852
3867
|
createSubAccount: (subAccountId: string, publicKey: string, initialBalance: string) => Promise<string>;
|
|
2853
|
-
createTransaction: ({ recipient, assetValue, memo, attachedDeposit, sender, functionCall, }: import("@swapkit/toolboxes/near/types").NearCreateTransactionParams) => Promise<import("@near-js/transactions").Transaction>;
|
|
3868
|
+
createTransaction: ({ recipient, assetValue, memo, attachedDeposit, sender, functionCall, sweep, }: import("@swapkit/toolboxes/near/types").NearCreateTransactionParams) => Promise<import("@near-js/transactions").Transaction>;
|
|
2854
3869
|
estimateGas: (params: import("@swapkit/toolboxes/near/types").NearGasEstimateParams, account?: import("@near-js/accounts").Account) => Promise<AssetValue>;
|
|
2855
3870
|
estimateGasLimit: (params: import("@swapkit/toolboxes/near/types").NearGasEstimateParams, account?: import("@near-js/accounts").Account) => Promise<AssetValue>;
|
|
2856
|
-
estimateTransactionFee: (params: import("@swapkit/toolboxes/near/types").NearTransferParams | import("@swapkit/toolboxes/near/types").NearGasEstimateParams
|
|
3871
|
+
estimateTransactionFee: (params: import("@swapkit/toolboxes/near/types").NearTransferParams | import("@swapkit/toolboxes/near/types").NearGasEstimateParams, protocolConfigParam?: {
|
|
3872
|
+
runtime_config: {
|
|
3873
|
+
storage_amount_per_byte: string;
|
|
3874
|
+
transaction_costs: {
|
|
3875
|
+
action_creation_config: {
|
|
3876
|
+
transfer_cost: {
|
|
3877
|
+
execution: string;
|
|
3878
|
+
send_sir: string;
|
|
3879
|
+
};
|
|
3880
|
+
};
|
|
3881
|
+
action_receipt_creation_config: {
|
|
3882
|
+
execution: string;
|
|
3883
|
+
send_sir: string;
|
|
3884
|
+
};
|
|
3885
|
+
};
|
|
3886
|
+
};
|
|
3887
|
+
}) => Promise<AssetValue>;
|
|
2857
3888
|
executeBatchTransaction: (batch: import("@swapkit/toolboxes/near/types").BatchTransaction) => Promise<string>;
|
|
2858
3889
|
getAddress: () => Promise<string>;
|
|
2859
3890
|
getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
|
|
@@ -2892,7 +3923,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2892
3923
|
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
2893
3924
|
signAndBroadcastTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<string>;
|
|
2894
3925
|
signTransaction: (transaction: import("@swapkit/helpers").CosmosTransaction) => Promise<import("cosmjs-types/cosmos/tx/v1beta1/tx").TxRaw>;
|
|
2895
|
-
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: GenericTransferParams) => Promise<string>;
|
|
3926
|
+
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, sweep, }: GenericTransferParams) => Promise<string>;
|
|
2896
3927
|
validateAddress: (address: string) => boolean;
|
|
2897
3928
|
verifySignature: ({ signature, message, address, }: {
|
|
2898
3929
|
signature: string;
|
|
@@ -2901,30 +3932,11 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2901
3932
|
}) => Promise<boolean>;
|
|
2902
3933
|
};
|
|
2903
3934
|
OP: ChainWallet<Chain.Optimism> & {
|
|
2904
|
-
estimateGasPrices: () => Promise<{
|
|
2905
|
-
average: {
|
|
2906
|
-
l1GasPrice?: bigint;
|
|
2907
|
-
gasPrice?: bigint;
|
|
2908
|
-
maxFeePerGas?: bigint;
|
|
2909
|
-
maxPriorityFeePerGas?: bigint;
|
|
2910
|
-
};
|
|
2911
|
-
fast: {
|
|
2912
|
-
l1GasPrice?: bigint;
|
|
2913
|
-
gasPrice?: bigint;
|
|
2914
|
-
maxFeePerGas?: bigint;
|
|
2915
|
-
maxPriorityFeePerGas?: bigint;
|
|
2916
|
-
};
|
|
2917
|
-
fastest: {
|
|
2918
|
-
l1GasPrice?: bigint;
|
|
2919
|
-
gasPrice?: bigint;
|
|
2920
|
-
maxFeePerGas?: bigint;
|
|
2921
|
-
maxPriorityFeePerGas?: bigint;
|
|
2922
|
-
};
|
|
2923
|
-
}>;
|
|
2924
3935
|
estimateL1Gas: (tx: import("ethers").TransactionRequest) => Promise<any>;
|
|
2925
|
-
estimateL1GasCost: (tx: import("ethers").TransactionRequest) => Promise<
|
|
3936
|
+
estimateL1GasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint | undefined>;
|
|
2926
3937
|
estimateL2GasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint>;
|
|
2927
|
-
|
|
3938
|
+
estimateOperatorFee: (gasLimit: bigint) => Promise<bigint>;
|
|
3939
|
+
estimateTotalGasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint>;
|
|
2928
3940
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
2929
3941
|
getL1GasPrice: () => Promise<bigint | undefined>;
|
|
2930
3942
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
@@ -2968,7 +3980,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2968
3980
|
blockTag?: import("ethers").BlockTag;
|
|
2969
3981
|
enableCcipRead?: boolean;
|
|
2970
3982
|
}>;
|
|
2971
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3983
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
3984
|
+
gasLimit: bigint;
|
|
3985
|
+
value: string;
|
|
3986
|
+
data: string;
|
|
3987
|
+
from: string;
|
|
3988
|
+
to: string;
|
|
3989
|
+
maxFeePerGas: bigint;
|
|
3990
|
+
maxPriorityFeePerGas: bigint;
|
|
3991
|
+
gasPrice?: undefined;
|
|
3992
|
+
type?: number | undefined;
|
|
3993
|
+
nonce?: number | undefined;
|
|
3994
|
+
} | {
|
|
3995
|
+
gasLimit: bigint;
|
|
3996
|
+
value: string;
|
|
3997
|
+
data: string;
|
|
3998
|
+
from: string;
|
|
3999
|
+
to: string;
|
|
4000
|
+
gasPrice: bigint;
|
|
4001
|
+
maxFeePerGas?: undefined;
|
|
4002
|
+
maxPriorityFeePerGas?: undefined;
|
|
4003
|
+
type?: number | undefined;
|
|
4004
|
+
nonce?: number | undefined;
|
|
4005
|
+
} | {
|
|
2972
4006
|
value: string;
|
|
2973
4007
|
to: string;
|
|
2974
4008
|
data: string;
|
|
@@ -2986,7 +4020,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2986
4020
|
blockTag?: import("ethers").BlockTag;
|
|
2987
4021
|
enableCcipRead?: boolean;
|
|
2988
4022
|
}>;
|
|
2989
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4023
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4024
|
+
gasLimit: bigint;
|
|
4025
|
+
value: string;
|
|
4026
|
+
data: string;
|
|
4027
|
+
from: string;
|
|
4028
|
+
to: string;
|
|
4029
|
+
maxFeePerGas: bigint;
|
|
4030
|
+
maxPriorityFeePerGas: bigint;
|
|
4031
|
+
gasPrice?: undefined;
|
|
4032
|
+
type?: number | undefined;
|
|
4033
|
+
nonce?: number | undefined;
|
|
4034
|
+
} | {
|
|
4035
|
+
gasLimit: bigint;
|
|
4036
|
+
value: string;
|
|
4037
|
+
data: string;
|
|
4038
|
+
from: string;
|
|
4039
|
+
to: string;
|
|
4040
|
+
gasPrice: bigint;
|
|
4041
|
+
maxFeePerGas?: undefined;
|
|
4042
|
+
maxPriorityFeePerGas?: undefined;
|
|
4043
|
+
type?: number | undefined;
|
|
4044
|
+
nonce?: number | undefined;
|
|
4045
|
+
} | {
|
|
2990
4046
|
value: string;
|
|
2991
4047
|
to: string;
|
|
2992
4048
|
data: string;
|
|
@@ -3013,14 +4069,35 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3013
4069
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
3014
4070
|
data?: string;
|
|
3015
4071
|
}) => Promise<bigint>;
|
|
4072
|
+
estimateGasPrices: () => Promise<{
|
|
4073
|
+
average: {
|
|
4074
|
+
gasPrice?: bigint;
|
|
4075
|
+
l1GasPrice?: bigint;
|
|
4076
|
+
maxFeePerGas?: bigint;
|
|
4077
|
+
maxPriorityFeePerGas?: bigint;
|
|
4078
|
+
};
|
|
4079
|
+
fast: {
|
|
4080
|
+
gasPrice?: bigint;
|
|
4081
|
+
l1GasPrice?: bigint;
|
|
4082
|
+
maxFeePerGas?: bigint;
|
|
4083
|
+
maxPriorityFeePerGas?: bigint;
|
|
4084
|
+
};
|
|
4085
|
+
fastest: {
|
|
4086
|
+
gasPrice?: bigint;
|
|
4087
|
+
l1GasPrice?: bigint;
|
|
4088
|
+
maxFeePerGas?: bigint;
|
|
4089
|
+
maxPriorityFeePerGas?: bigint;
|
|
4090
|
+
};
|
|
4091
|
+
}>;
|
|
3016
4092
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
3017
4093
|
feeOption: FeeOption;
|
|
3018
4094
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
3019
4095
|
getAddress: () => string | Promise<string> | undefined;
|
|
3020
4096
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
3021
4097
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
3022
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
4098
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
3023
4099
|
feeOptionKey?: FeeOption;
|
|
4100
|
+
sweep?: boolean;
|
|
3024
4101
|
}) => Promise<string>;
|
|
3025
4102
|
signAuthorization: ((params: {
|
|
3026
4103
|
address: string;
|
|
@@ -3029,7 +4106,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3029
4106
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
3030
4107
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
3031
4108
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
3032
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
4109
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3033
4110
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
3034
4111
|
};
|
|
3035
4112
|
XPL: ChainWallet<Chain.Plasma> & {
|
|
@@ -3074,7 +4151,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3074
4151
|
blockTag?: import("ethers").BlockTag;
|
|
3075
4152
|
enableCcipRead?: boolean;
|
|
3076
4153
|
}>;
|
|
3077
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4154
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4155
|
+
gasLimit: bigint;
|
|
4156
|
+
value: string;
|
|
4157
|
+
data: string;
|
|
4158
|
+
from: string;
|
|
4159
|
+
to: string;
|
|
4160
|
+
maxFeePerGas: bigint;
|
|
4161
|
+
maxPriorityFeePerGas: bigint;
|
|
4162
|
+
gasPrice?: undefined;
|
|
4163
|
+
type?: number | undefined;
|
|
4164
|
+
nonce?: number | undefined;
|
|
4165
|
+
} | {
|
|
4166
|
+
gasLimit: bigint;
|
|
4167
|
+
value: string;
|
|
4168
|
+
data: string;
|
|
4169
|
+
from: string;
|
|
4170
|
+
to: string;
|
|
4171
|
+
gasPrice: bigint;
|
|
4172
|
+
maxFeePerGas?: undefined;
|
|
4173
|
+
maxPriorityFeePerGas?: undefined;
|
|
4174
|
+
type?: number | undefined;
|
|
4175
|
+
nonce?: number | undefined;
|
|
4176
|
+
} | {
|
|
3078
4177
|
value: string;
|
|
3079
4178
|
to: string;
|
|
3080
4179
|
data: string;
|
|
@@ -3092,7 +4191,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3092
4191
|
blockTag?: import("ethers").BlockTag;
|
|
3093
4192
|
enableCcipRead?: boolean;
|
|
3094
4193
|
}>;
|
|
3095
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4194
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4195
|
+
gasLimit: bigint;
|
|
4196
|
+
value: string;
|
|
4197
|
+
data: string;
|
|
4198
|
+
from: string;
|
|
4199
|
+
to: string;
|
|
4200
|
+
maxFeePerGas: bigint;
|
|
4201
|
+
maxPriorityFeePerGas: bigint;
|
|
4202
|
+
gasPrice?: undefined;
|
|
4203
|
+
type?: number | undefined;
|
|
4204
|
+
nonce?: number | undefined;
|
|
4205
|
+
} | {
|
|
4206
|
+
gasLimit: bigint;
|
|
4207
|
+
value: string;
|
|
4208
|
+
data: string;
|
|
4209
|
+
from: string;
|
|
4210
|
+
to: string;
|
|
4211
|
+
gasPrice: bigint;
|
|
4212
|
+
maxFeePerGas?: undefined;
|
|
4213
|
+
maxPriorityFeePerGas?: undefined;
|
|
4214
|
+
type?: number | undefined;
|
|
4215
|
+
nonce?: number | undefined;
|
|
4216
|
+
} | {
|
|
3096
4217
|
value: string;
|
|
3097
4218
|
to: string;
|
|
3098
4219
|
data: string;
|
|
@@ -3119,12 +4240,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3119
4240
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
3120
4241
|
data?: string;
|
|
3121
4242
|
}) => Promise<bigint>;
|
|
3122
|
-
estimateGasPrices: () => Promise<{
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
4243
|
+
estimateGasPrices: () => Promise<{
|
|
4244
|
+
average: {
|
|
4245
|
+
gasPrice?: bigint;
|
|
4246
|
+
l1GasPrice?: bigint;
|
|
4247
|
+
maxFeePerGas?: bigint;
|
|
4248
|
+
maxPriorityFeePerGas?: bigint;
|
|
4249
|
+
};
|
|
4250
|
+
fast: {
|
|
4251
|
+
gasPrice?: bigint;
|
|
4252
|
+
l1GasPrice?: bigint;
|
|
4253
|
+
maxFeePerGas?: bigint;
|
|
4254
|
+
maxPriorityFeePerGas?: bigint;
|
|
4255
|
+
};
|
|
4256
|
+
fastest: {
|
|
4257
|
+
gasPrice?: bigint;
|
|
4258
|
+
l1GasPrice?: bigint;
|
|
4259
|
+
maxFeePerGas?: bigint;
|
|
4260
|
+
maxPriorityFeePerGas?: bigint;
|
|
4261
|
+
};
|
|
4262
|
+
}>;
|
|
3128
4263
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
3129
4264
|
feeOption: FeeOption;
|
|
3130
4265
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -3132,8 +4267,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3132
4267
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
3133
4268
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
3134
4269
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
3135
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
4270
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
3136
4271
|
feeOptionKey?: FeeOption;
|
|
4272
|
+
sweep?: boolean;
|
|
3137
4273
|
}) => Promise<string>;
|
|
3138
4274
|
signAuthorization: ((params: {
|
|
3139
4275
|
address: string;
|
|
@@ -3142,7 +4278,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3142
4278
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
3143
4279
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
3144
4280
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
3145
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
4281
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3146
4282
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
3147
4283
|
};
|
|
3148
4284
|
DOT: ChainWallet<Chain.Polkadot> & {
|
|
@@ -3209,7 +4345,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3209
4345
|
blockTag?: import("ethers").BlockTag;
|
|
3210
4346
|
enableCcipRead?: boolean;
|
|
3211
4347
|
}>;
|
|
3212
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4348
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4349
|
+
gasLimit: bigint;
|
|
4350
|
+
value: string;
|
|
4351
|
+
data: string;
|
|
4352
|
+
from: string;
|
|
4353
|
+
to: string;
|
|
4354
|
+
maxFeePerGas: bigint;
|
|
4355
|
+
maxPriorityFeePerGas: bigint;
|
|
4356
|
+
gasPrice?: undefined;
|
|
4357
|
+
type?: number | undefined;
|
|
4358
|
+
nonce?: number | undefined;
|
|
4359
|
+
} | {
|
|
4360
|
+
gasLimit: bigint;
|
|
4361
|
+
value: string;
|
|
4362
|
+
data: string;
|
|
4363
|
+
from: string;
|
|
4364
|
+
to: string;
|
|
4365
|
+
gasPrice: bigint;
|
|
4366
|
+
maxFeePerGas?: undefined;
|
|
4367
|
+
maxPriorityFeePerGas?: undefined;
|
|
4368
|
+
type?: number | undefined;
|
|
4369
|
+
nonce?: number | undefined;
|
|
4370
|
+
} | {
|
|
3213
4371
|
value: string;
|
|
3214
4372
|
to: string;
|
|
3215
4373
|
data: string;
|
|
@@ -3227,7 +4385,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3227
4385
|
blockTag?: import("ethers").BlockTag;
|
|
3228
4386
|
enableCcipRead?: boolean;
|
|
3229
4387
|
}>;
|
|
3230
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4388
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4389
|
+
gasLimit: bigint;
|
|
4390
|
+
value: string;
|
|
4391
|
+
data: string;
|
|
4392
|
+
from: string;
|
|
4393
|
+
to: string;
|
|
4394
|
+
maxFeePerGas: bigint;
|
|
4395
|
+
maxPriorityFeePerGas: bigint;
|
|
4396
|
+
gasPrice?: undefined;
|
|
4397
|
+
type?: number | undefined;
|
|
4398
|
+
nonce?: number | undefined;
|
|
4399
|
+
} | {
|
|
4400
|
+
gasLimit: bigint;
|
|
4401
|
+
value: string;
|
|
4402
|
+
data: string;
|
|
4403
|
+
from: string;
|
|
4404
|
+
to: string;
|
|
4405
|
+
gasPrice: bigint;
|
|
4406
|
+
maxFeePerGas?: undefined;
|
|
4407
|
+
maxPriorityFeePerGas?: undefined;
|
|
4408
|
+
type?: number | undefined;
|
|
4409
|
+
nonce?: number | undefined;
|
|
4410
|
+
} | {
|
|
3231
4411
|
value: string;
|
|
3232
4412
|
to: string;
|
|
3233
4413
|
data: string;
|
|
@@ -3254,12 +4434,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3254
4434
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
3255
4435
|
data?: string;
|
|
3256
4436
|
}) => Promise<bigint>;
|
|
3257
|
-
estimateGasPrices: () => Promise<{
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
4437
|
+
estimateGasPrices: () => Promise<{
|
|
4438
|
+
average: {
|
|
4439
|
+
gasPrice?: bigint;
|
|
4440
|
+
l1GasPrice?: bigint;
|
|
4441
|
+
maxFeePerGas?: bigint;
|
|
4442
|
+
maxPriorityFeePerGas?: bigint;
|
|
4443
|
+
};
|
|
4444
|
+
fast: {
|
|
4445
|
+
gasPrice?: bigint;
|
|
4446
|
+
l1GasPrice?: bigint;
|
|
4447
|
+
maxFeePerGas?: bigint;
|
|
4448
|
+
maxPriorityFeePerGas?: bigint;
|
|
4449
|
+
};
|
|
4450
|
+
fastest: {
|
|
4451
|
+
gasPrice?: bigint;
|
|
4452
|
+
l1GasPrice?: bigint;
|
|
4453
|
+
maxFeePerGas?: bigint;
|
|
4454
|
+
maxPriorityFeePerGas?: bigint;
|
|
4455
|
+
};
|
|
4456
|
+
}>;
|
|
3263
4457
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
3264
4458
|
feeOption: FeeOption;
|
|
3265
4459
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -3267,8 +4461,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3267
4461
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
3268
4462
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
3269
4463
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
3270
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
4464
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
3271
4465
|
feeOptionKey?: FeeOption;
|
|
4466
|
+
sweep?: boolean;
|
|
3272
4467
|
}) => Promise<string>;
|
|
3273
4468
|
signAuthorization: ((params: {
|
|
3274
4469
|
address: string;
|
|
@@ -3277,7 +4472,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3277
4472
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
3278
4473
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
3279
4474
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
3280
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
4475
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3281
4476
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
3282
4477
|
};
|
|
3283
4478
|
XRD: ChainWallet<Chain.Radix> & {
|
|
@@ -3293,11 +4488,12 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3293
4488
|
tx_blob: string;
|
|
3294
4489
|
hash: string;
|
|
3295
4490
|
}>;
|
|
3296
|
-
createTransaction: ({ assetValue, recipient, memo, sender, destinationTag, extendBySeconds, }: {
|
|
4491
|
+
createTransaction: ({ assetValue, recipient, memo, sender, sweep, destinationTag, extendBySeconds, }: {
|
|
3297
4492
|
assetValue: AssetValue;
|
|
3298
4493
|
recipient: string;
|
|
3299
4494
|
sender?: string;
|
|
3300
4495
|
memo?: string;
|
|
4496
|
+
sweep?: boolean;
|
|
3301
4497
|
destinationTag?: number;
|
|
3302
4498
|
extendBySeconds?: number;
|
|
3303
4499
|
}) => Promise<import("xrpl").Payment>;
|
|
@@ -3318,7 +4514,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3318
4514
|
tx_blob: string;
|
|
3319
4515
|
hash: string;
|
|
3320
4516
|
}>;
|
|
3321
|
-
transfer: (
|
|
4517
|
+
transfer: ({ assetValue, memo, recipient, sweep }: GenericTransferParams) => Promise<string>;
|
|
3322
4518
|
validateAddress: typeof import("@swapkit/toolboxes/ripple/index").validateRippleAddress;
|
|
3323
4519
|
};
|
|
3324
4520
|
HOOD: ChainWallet<Chain.Robinhood> & {
|
|
@@ -3363,7 +4559,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3363
4559
|
blockTag?: import("ethers").BlockTag;
|
|
3364
4560
|
enableCcipRead?: boolean;
|
|
3365
4561
|
}>;
|
|
3366
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4562
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4563
|
+
gasLimit: bigint;
|
|
4564
|
+
value: string;
|
|
4565
|
+
data: string;
|
|
4566
|
+
from: string;
|
|
4567
|
+
to: string;
|
|
4568
|
+
maxFeePerGas: bigint;
|
|
4569
|
+
maxPriorityFeePerGas: bigint;
|
|
4570
|
+
gasPrice?: undefined;
|
|
4571
|
+
type?: number | undefined;
|
|
4572
|
+
nonce?: number | undefined;
|
|
4573
|
+
} | {
|
|
4574
|
+
gasLimit: bigint;
|
|
4575
|
+
value: string;
|
|
4576
|
+
data: string;
|
|
4577
|
+
from: string;
|
|
4578
|
+
to: string;
|
|
4579
|
+
gasPrice: bigint;
|
|
4580
|
+
maxFeePerGas?: undefined;
|
|
4581
|
+
maxPriorityFeePerGas?: undefined;
|
|
4582
|
+
type?: number | undefined;
|
|
4583
|
+
nonce?: number | undefined;
|
|
4584
|
+
} | {
|
|
3367
4585
|
value: string;
|
|
3368
4586
|
to: string;
|
|
3369
4587
|
data: string;
|
|
@@ -3381,7 +4599,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3381
4599
|
blockTag?: import("ethers").BlockTag;
|
|
3382
4600
|
enableCcipRead?: boolean;
|
|
3383
4601
|
}>;
|
|
3384
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4602
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4603
|
+
gasLimit: bigint;
|
|
4604
|
+
value: string;
|
|
4605
|
+
data: string;
|
|
4606
|
+
from: string;
|
|
4607
|
+
to: string;
|
|
4608
|
+
maxFeePerGas: bigint;
|
|
4609
|
+
maxPriorityFeePerGas: bigint;
|
|
4610
|
+
gasPrice?: undefined;
|
|
4611
|
+
type?: number | undefined;
|
|
4612
|
+
nonce?: number | undefined;
|
|
4613
|
+
} | {
|
|
4614
|
+
gasLimit: bigint;
|
|
4615
|
+
value: string;
|
|
4616
|
+
data: string;
|
|
4617
|
+
from: string;
|
|
4618
|
+
to: string;
|
|
4619
|
+
gasPrice: bigint;
|
|
4620
|
+
maxFeePerGas?: undefined;
|
|
4621
|
+
maxPriorityFeePerGas?: undefined;
|
|
4622
|
+
type?: number | undefined;
|
|
4623
|
+
nonce?: number | undefined;
|
|
4624
|
+
} | {
|
|
3385
4625
|
value: string;
|
|
3386
4626
|
to: string;
|
|
3387
4627
|
data: string;
|
|
@@ -3408,12 +4648,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3408
4648
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
3409
4649
|
data?: string;
|
|
3410
4650
|
}) => Promise<bigint>;
|
|
3411
|
-
estimateGasPrices: () => Promise<{
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
4651
|
+
estimateGasPrices: () => Promise<{
|
|
4652
|
+
average: {
|
|
4653
|
+
gasPrice?: bigint;
|
|
4654
|
+
l1GasPrice?: bigint;
|
|
4655
|
+
maxFeePerGas?: bigint;
|
|
4656
|
+
maxPriorityFeePerGas?: bigint;
|
|
4657
|
+
};
|
|
4658
|
+
fast: {
|
|
4659
|
+
gasPrice?: bigint;
|
|
4660
|
+
l1GasPrice?: bigint;
|
|
4661
|
+
maxFeePerGas?: bigint;
|
|
4662
|
+
maxPriorityFeePerGas?: bigint;
|
|
4663
|
+
};
|
|
4664
|
+
fastest: {
|
|
4665
|
+
gasPrice?: bigint;
|
|
4666
|
+
l1GasPrice?: bigint;
|
|
4667
|
+
maxFeePerGas?: bigint;
|
|
4668
|
+
maxPriorityFeePerGas?: bigint;
|
|
4669
|
+
};
|
|
4670
|
+
}>;
|
|
3417
4671
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
3418
4672
|
feeOption: FeeOption;
|
|
3419
4673
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -3421,8 +4675,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3421
4675
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
3422
4676
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
3423
4677
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
3424
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
4678
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
3425
4679
|
feeOptionKey?: FeeOption;
|
|
4680
|
+
sweep?: boolean;
|
|
3426
4681
|
}) => Promise<string>;
|
|
3427
4682
|
signAuthorization: ((params: {
|
|
3428
4683
|
address: string;
|
|
@@ -3431,13 +4686,13 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3431
4686
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
3432
4687
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
3433
4688
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
3434
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
4689
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3435
4690
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
3436
4691
|
};
|
|
3437
4692
|
SOL: ChainWallet<Chain.Solana> & {
|
|
3438
4693
|
broadcastTransaction: (transaction: import("@solana/web3.js/lib").Transaction | import("@solana/web3.js/lib").VersionedTransaction) => Promise<string>;
|
|
3439
4694
|
createKeysForPath: typeof import("@swapkit/toolboxes/solana/toolbox").createKeysForPath;
|
|
3440
|
-
createTransaction: ({ recipient, assetValue, memo, isProgramDerivedAddress, sender }: import("@swapkit/toolboxes/solana/index").SolanaCreateTransactionParams) => Promise<import("@solana/web3.js/lib").Transaction>;
|
|
4695
|
+
createTransaction: ({ recipient, assetValue, memo, isProgramDerivedAddress, sender, sweep, }: import("@swapkit/toolboxes/solana/index").SolanaCreateTransactionParams) => Promise<import("@solana/web3.js/lib").Transaction>;
|
|
3441
4696
|
createTransactionFromInstructions: ({ instructions, }: {
|
|
3442
4697
|
instructions: import("@solana/web3.js/lib").TransactionInstruction[];
|
|
3443
4698
|
isProgramDerivedAddress?: boolean;
|
|
@@ -3453,7 +4708,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3453
4708
|
getPubkeyFromAddress: (address: string) => import("@solana/web3.js/lib").PublicKey;
|
|
3454
4709
|
signAndBroadcastTransaction: (transaction: import("@solana/web3.js/lib").Transaction | import("@solana/web3.js/lib").VersionedTransaction) => Promise<string>;
|
|
3455
4710
|
signTransaction: (transaction: import("@solana/web3.js/lib").Transaction | import("@solana/web3.js/lib").VersionedTransaction) => Promise<import("@solana/web3.js/lib").Transaction | import("@solana/web3.js/lib").VersionedTransaction>;
|
|
3456
|
-
transfer: ({ recipient, assetValue, memo, isProgramDerivedAddress }: import("@swapkit/toolboxes/solana/index").SolanaTransferParams) => Promise<string>;
|
|
4711
|
+
transfer: ({ recipient, assetValue, memo, isProgramDerivedAddress, sweep }: import("@swapkit/toolboxes/solana/index").SolanaTransferParams) => Promise<string>;
|
|
3457
4712
|
validateAddress: typeof import("@swapkit/toolboxes/solana/toolbox").validateSolanaAddress;
|
|
3458
4713
|
};
|
|
3459
4714
|
SONIC: ChainWallet<Chain.Sonic> & {
|
|
@@ -3498,7 +4753,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3498
4753
|
blockTag?: import("ethers").BlockTag;
|
|
3499
4754
|
enableCcipRead?: boolean;
|
|
3500
4755
|
}>;
|
|
3501
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4756
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4757
|
+
gasLimit: bigint;
|
|
4758
|
+
value: string;
|
|
4759
|
+
data: string;
|
|
4760
|
+
from: string;
|
|
4761
|
+
to: string;
|
|
4762
|
+
maxFeePerGas: bigint;
|
|
4763
|
+
maxPriorityFeePerGas: bigint;
|
|
4764
|
+
gasPrice?: undefined;
|
|
4765
|
+
type?: number | undefined;
|
|
4766
|
+
nonce?: number | undefined;
|
|
4767
|
+
} | {
|
|
4768
|
+
gasLimit: bigint;
|
|
4769
|
+
value: string;
|
|
4770
|
+
data: string;
|
|
4771
|
+
from: string;
|
|
4772
|
+
to: string;
|
|
4773
|
+
gasPrice: bigint;
|
|
4774
|
+
maxFeePerGas?: undefined;
|
|
4775
|
+
maxPriorityFeePerGas?: undefined;
|
|
4776
|
+
type?: number | undefined;
|
|
4777
|
+
nonce?: number | undefined;
|
|
4778
|
+
} | {
|
|
3502
4779
|
value: string;
|
|
3503
4780
|
to: string;
|
|
3504
4781
|
data: string;
|
|
@@ -3516,7 +4793,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3516
4793
|
blockTag?: import("ethers").BlockTag;
|
|
3517
4794
|
enableCcipRead?: boolean;
|
|
3518
4795
|
}>;
|
|
3519
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4796
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
4797
|
+
gasLimit: bigint;
|
|
4798
|
+
value: string;
|
|
4799
|
+
data: string;
|
|
4800
|
+
from: string;
|
|
4801
|
+
to: string;
|
|
4802
|
+
maxFeePerGas: bigint;
|
|
4803
|
+
maxPriorityFeePerGas: bigint;
|
|
4804
|
+
gasPrice?: undefined;
|
|
4805
|
+
type?: number | undefined;
|
|
4806
|
+
nonce?: number | undefined;
|
|
4807
|
+
} | {
|
|
4808
|
+
gasLimit: bigint;
|
|
4809
|
+
value: string;
|
|
4810
|
+
data: string;
|
|
4811
|
+
from: string;
|
|
4812
|
+
to: string;
|
|
4813
|
+
gasPrice: bigint;
|
|
4814
|
+
maxFeePerGas?: undefined;
|
|
4815
|
+
maxPriorityFeePerGas?: undefined;
|
|
4816
|
+
type?: number | undefined;
|
|
4817
|
+
nonce?: number | undefined;
|
|
4818
|
+
} | {
|
|
3520
4819
|
value: string;
|
|
3521
4820
|
to: string;
|
|
3522
4821
|
data: string;
|
|
@@ -3543,12 +4842,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3543
4842
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
3544
4843
|
data?: string;
|
|
3545
4844
|
}) => Promise<bigint>;
|
|
3546
|
-
estimateGasPrices: () => Promise<{
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
4845
|
+
estimateGasPrices: () => Promise<{
|
|
4846
|
+
average: {
|
|
4847
|
+
gasPrice?: bigint;
|
|
4848
|
+
l1GasPrice?: bigint;
|
|
4849
|
+
maxFeePerGas?: bigint;
|
|
4850
|
+
maxPriorityFeePerGas?: bigint;
|
|
4851
|
+
};
|
|
4852
|
+
fast: {
|
|
4853
|
+
gasPrice?: bigint;
|
|
4854
|
+
l1GasPrice?: bigint;
|
|
4855
|
+
maxFeePerGas?: bigint;
|
|
4856
|
+
maxPriorityFeePerGas?: bigint;
|
|
4857
|
+
};
|
|
4858
|
+
fastest: {
|
|
4859
|
+
gasPrice?: bigint;
|
|
4860
|
+
l1GasPrice?: bigint;
|
|
4861
|
+
maxFeePerGas?: bigint;
|
|
4862
|
+
maxPriorityFeePerGas?: bigint;
|
|
4863
|
+
};
|
|
4864
|
+
}>;
|
|
3552
4865
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
3553
4866
|
feeOption: FeeOption;
|
|
3554
4867
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -3556,8 +4869,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3556
4869
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
3557
4870
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
3558
4871
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
3559
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
4872
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
3560
4873
|
feeOptionKey?: FeeOption;
|
|
4874
|
+
sweep?: boolean;
|
|
3561
4875
|
}) => Promise<string>;
|
|
3562
4876
|
signAuthorization: ((params: {
|
|
3563
4877
|
address: string;
|
|
@@ -3566,7 +4880,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3566
4880
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
3567
4881
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
3568
4882
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
3569
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
4883
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3570
4884
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
3571
4885
|
};
|
|
3572
4886
|
SPARK: never;
|
|
@@ -3575,7 +4889,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3575
4889
|
hash?: () => Buffer;
|
|
3576
4890
|
toXDR: () => string;
|
|
3577
4891
|
}) => Promise<string>;
|
|
3578
|
-
createTransaction: ({ recipient, assetValue, memo, sender }: import("@swapkit/toolboxes/stellar/types").StellarCreateTransactionParams) => Promise<import("@stellar/stellar-sdk").Transaction<import("@stellar/stellar-sdk").Memo<import("@stellar/stellar-sdk").MemoType>, import("@stellar/stellar-sdk").Operation[]>>;
|
|
4892
|
+
createTransaction: ({ recipient, assetValue, memo, sender, sweep }: import("@swapkit/toolboxes/stellar/types").StellarCreateTransactionParams) => Promise<import("@stellar/stellar-sdk").Transaction<import("@stellar/stellar-sdk").Memo<import("@stellar/stellar-sdk").MemoType>, import("@stellar/stellar-sdk").Operation[]>>;
|
|
3579
4893
|
createTrustline: ({ assetValue, limit }: import("@swapkit/toolboxes/stellar/types").StellarTrustlineParams) => Promise<string>;
|
|
3580
4894
|
createTrustlineTransaction: ({ assetValue, limit, sender }: import("@swapkit/toolboxes/stellar/types").StellarCreateTrustlineTransactionParams) => Promise<import("@stellar/stellar-sdk").Transaction<import("@stellar/stellar-sdk").Memo<import("@stellar/stellar-sdk").MemoType>, import("@stellar/stellar-sdk").Operation[]>>;
|
|
3581
4895
|
estimateTransactionFee: () => Promise<AssetValue>;
|
|
@@ -3587,13 +4901,13 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3587
4901
|
signTransaction: (transaction: {
|
|
3588
4902
|
toXDR: () => string;
|
|
3589
4903
|
}) => Promise<import("@stellar/stellar-sdk").Transaction<import("@stellar/stellar-sdk").Memo<import("@stellar/stellar-sdk").MemoType>, import("@stellar/stellar-sdk").Operation[]> | import("@stellar/stellar-sdk").FeeBumpTransaction>;
|
|
3590
|
-
transfer: ({ recipient, assetValue, memo }: import("@swapkit/toolboxes/stellar/types").StellarTransferParams) => Promise<string>;
|
|
4904
|
+
transfer: ({ recipient, assetValue, memo, sweep }: import("@swapkit/toolboxes/stellar/types").StellarTransferParams) => Promise<string>;
|
|
3591
4905
|
validateAddress: typeof import("@swapkit/toolboxes/stellar/toolbox").validateStellarAddress;
|
|
3592
4906
|
};
|
|
3593
4907
|
STRK: ChainWallet<Chain.Starknet> & {
|
|
3594
4908
|
broadcastTransaction: (calls: import("starknet").Call[]) => Promise<string>;
|
|
3595
4909
|
createKeysForPath: typeof import("@swapkit/toolboxes/starknet/toolbox").createKeysForPath;
|
|
3596
|
-
createTransaction: ({ recipient, assetValue }: import("@swapkit/toolboxes/starknet/types").StarknetCreateTransactionParams) => Promise<import("starknet").Call[]>;
|
|
4910
|
+
createTransaction: ({ recipient, assetValue, sender, sweep }: import("@swapkit/toolboxes/starknet/types").StarknetCreateTransactionParams) => Promise<import("starknet").Call[]>;
|
|
3597
4911
|
deployAccount: () => Promise<string>;
|
|
3598
4912
|
estimateTransactionFee: ({ recipient, assetValue, sender, }: import("@swapkit/toolboxes/starknet/types").StarknetTransferParams & {
|
|
3599
4913
|
sender?: string;
|
|
@@ -3604,7 +4918,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3604
4918
|
isAccountDeployed: (address?: string) => Promise<boolean>;
|
|
3605
4919
|
signAndBroadcastTransaction: (calls: import("starknet").Call[]) => Promise<string>;
|
|
3606
4920
|
signMessage: (typedData: import("starknet").TypedData) => Promise<string[]>;
|
|
3607
|
-
transfer: ({ recipient, assetValue, memo }: import("@swapkit/toolboxes/starknet/types").StarknetTransferParams) => Promise<string>;
|
|
4921
|
+
transfer: ({ recipient, assetValue, memo, sweep }: import("@swapkit/toolboxes/starknet/types").StarknetTransferParams) => Promise<string>;
|
|
3608
4922
|
validateAddress: typeof import("@swapkit/toolboxes/starknet/toolbox").validateStarknetAddress;
|
|
3609
4923
|
};
|
|
3610
4924
|
SUI: ChainWallet<Chain.Sui> & {
|
|
@@ -3612,7 +4926,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3612
4926
|
bytes: string;
|
|
3613
4927
|
signature: string;
|
|
3614
4928
|
}) => Promise<string>;
|
|
3615
|
-
createTransaction: ({ recipient, assetValue, gasBudget, sender }: import("@swapkit/toolboxes/sui/types").SuiCreateTransactionParams) => Promise<{
|
|
4929
|
+
createTransaction: ({ recipient, assetValue, gasBudget, sender, sweep }: import("@swapkit/toolboxes/sui/types").SuiCreateTransactionParams) => Promise<{
|
|
3616
4930
|
tx: import("@mysten/sui/transactions").Transaction;
|
|
3617
4931
|
txBytes: Uint8Array<ArrayBuffer>;
|
|
3618
4932
|
}>;
|
|
@@ -3620,14 +4934,14 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3620
4934
|
getAddress: () => Promise<string>;
|
|
3621
4935
|
getBalance: (targetAddress?: string) => Promise<AssetValue[]>;
|
|
3622
4936
|
signAndBroadcastTransaction: (transaction: import("@mysten/sui/transactions").Transaction | Uint8Array<ArrayBuffer> | string) => Promise<string>;
|
|
3623
|
-
signTransaction: (params: Uint8Array<ArrayBuffer> | import("@swapkit/toolboxes/sui/types").SuiCreateTransactionParams | Awaited<ReturnType<({ recipient, assetValue, gasBudget, sender }: import("@swapkit/toolboxes/sui/types").SuiCreateTransactionParams) => Promise<{
|
|
4937
|
+
signTransaction: (params: Uint8Array<ArrayBuffer> | import("@swapkit/toolboxes/sui/types").SuiCreateTransactionParams | Awaited<ReturnType<({ recipient, assetValue, gasBudget, sender, sweep }: import("@swapkit/toolboxes/sui/types").SuiCreateTransactionParams) => Promise<{
|
|
3624
4938
|
tx: import("@mysten/sui/transactions").Transaction;
|
|
3625
4939
|
txBytes: Uint8Array<ArrayBuffer>;
|
|
3626
4940
|
}>>>) => Promise<{
|
|
3627
4941
|
bytes: string;
|
|
3628
4942
|
signature: string;
|
|
3629
4943
|
} | import("@mysten/sui/cryptography").SignatureWithBytes>;
|
|
3630
|
-
transfer: ({ assetValue, gasBudget, recipient }: import("@swapkit/toolboxes/sui/types").SuiTransferParams) => Promise<string>;
|
|
4944
|
+
transfer: ({ assetValue, gasBudget, recipient, sweep }: import("@swapkit/toolboxes/sui/types").SuiTransferParams) => Promise<string>;
|
|
3631
4945
|
validateAddress: typeof import("@swapkit/toolboxes/sui/toolbox").validateSuiAddress;
|
|
3632
4946
|
};
|
|
3633
4947
|
THOR: ChainWallet<Chain.THORChain> & import("@swapkit/toolboxes/cosmos").ThorchainWallet;
|
|
@@ -3635,7 +4949,6 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3635
4949
|
broadcastTransaction: (transferCell: import("@ton/core").Cell) => Promise<string>;
|
|
3636
4950
|
createTransaction: ({ sender, sweep, ...params }: GenericTransferParams & {
|
|
3637
4951
|
sender?: string;
|
|
3638
|
-
sweep?: boolean;
|
|
3639
4952
|
}) => Promise<import("@swapkit/toolboxes/ton/types").TONToolboxTransaction>;
|
|
3640
4953
|
estimateTransactionFee: ({ sender, ...params }: GenericTransferParams & {
|
|
3641
4954
|
sender?: string;
|
|
@@ -3648,15 +4961,13 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3648
4961
|
}) => Promise<import("@ton/core").Address>;
|
|
3649
4962
|
sign: (transactionInput: import("@swapkit/toolboxes/ton/types").TONTransactionInput) => Promise<import("@ton/core").Cell>;
|
|
3650
4963
|
signAndBroadcastTransaction: (transaction: import("@swapkit/toolboxes/ton/types").TONTransactionInput) => Promise<string>;
|
|
3651
|
-
transfer: ({ assetValue, recipient, memo, sweep }: GenericTransferParams
|
|
3652
|
-
sweep?: boolean;
|
|
3653
|
-
}) => Promise<string>;
|
|
4964
|
+
transfer: ({ assetValue, recipient, memo, sweep }: GenericTransferParams) => Promise<string>;
|
|
3654
4965
|
validateAddress: typeof import("@swapkit/toolboxes/ton/toolbox").validateTonAddress;
|
|
3655
4966
|
};
|
|
3656
4967
|
TRON: ChainWallet<Chain.Tron> & {
|
|
3657
4968
|
approve: ({ assetAddress, spenderAddress, amount, from }: import("@swapkit/toolboxes/tron/types").TronApproveParams) => Promise<string>;
|
|
3658
4969
|
broadcastTransaction: typeof import("@swapkit/toolboxes/tron/helpers/trongrid").broadcastTronTransaction;
|
|
3659
|
-
createTransaction: ({ recipient, assetValue, memo, sender, expiration }: import("@swapkit/toolboxes/tron/types").TronCreateTransactionParams) => Promise<import("@swapkit/toolboxes/tron/types").TronTransaction>;
|
|
4970
|
+
createTransaction: ({ recipient, assetValue, memo, sender, expiration, sweep, }: import("@swapkit/toolboxes/tron/types").TronCreateTransactionParams) => Promise<import("@swapkit/toolboxes/tron/types").TronTransaction>;
|
|
3660
4971
|
estimateTransactionFee: ({ assetValue, memo, recipient, sender, }: import("@swapkit/toolboxes/tron/types").TronTransferParams & {
|
|
3661
4972
|
sender?: string;
|
|
3662
4973
|
}) => Promise<AssetValue>;
|
|
@@ -3667,10 +4978,17 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3667
4978
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/tron/types").TronIsApprovedParams) => Promise<boolean>;
|
|
3668
4979
|
signAndBroadcastTransaction: (transaction: import("@swapkit/toolboxes/tron/types").TronTransaction) => Promise<string>;
|
|
3669
4980
|
signTransaction: (transaction: import("@swapkit/toolboxes/tron/types").TronTransaction) => Promise<import("@swapkit/toolboxes/tron/types").TronSignedTransaction>;
|
|
3670
|
-
transfer: ({ recipient, assetValue, memo, expiration }: import("@swapkit/toolboxes/tron/types").TronTransferParams) => Promise<string>;
|
|
4981
|
+
transfer: ({ recipient, assetValue, memo, expiration, sweep }: import("@swapkit/toolboxes/tron/types").TronTransferParams) => Promise<string>;
|
|
3671
4982
|
validateAddress: typeof import("@swapkit/toolboxes/tron/helpers/utils").isValidTronAddress;
|
|
3672
4983
|
};
|
|
3673
4984
|
UNI: ChainWallet<Chain.Unichain> & {
|
|
4985
|
+
estimateL1Gas: (tx: import("ethers").TransactionRequest) => Promise<any>;
|
|
4986
|
+
estimateL1GasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint | undefined>;
|
|
4987
|
+
estimateL2GasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint>;
|
|
4988
|
+
estimateOperatorFee: (gasLimit: bigint) => Promise<bigint>;
|
|
4989
|
+
estimateTotalGasCost: (tx: import("ethers").TransactionRequest) => Promise<bigint>;
|
|
4990
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
4991
|
+
getL1GasPrice: () => Promise<bigint | undefined>;
|
|
3674
4992
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
3675
4993
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
3676
4994
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
@@ -3712,7 +5030,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3712
5030
|
blockTag?: import("ethers").BlockTag;
|
|
3713
5031
|
enableCcipRead?: boolean;
|
|
3714
5032
|
}>;
|
|
3715
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
5033
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
5034
|
+
gasLimit: bigint;
|
|
5035
|
+
value: string;
|
|
5036
|
+
data: string;
|
|
5037
|
+
from: string;
|
|
5038
|
+
to: string;
|
|
5039
|
+
maxFeePerGas: bigint;
|
|
5040
|
+
maxPriorityFeePerGas: bigint;
|
|
5041
|
+
gasPrice?: undefined;
|
|
5042
|
+
type?: number | undefined;
|
|
5043
|
+
nonce?: number | undefined;
|
|
5044
|
+
} | {
|
|
5045
|
+
gasLimit: bigint;
|
|
5046
|
+
value: string;
|
|
5047
|
+
data: string;
|
|
5048
|
+
from: string;
|
|
5049
|
+
to: string;
|
|
5050
|
+
gasPrice: bigint;
|
|
5051
|
+
maxFeePerGas?: undefined;
|
|
5052
|
+
maxPriorityFeePerGas?: undefined;
|
|
5053
|
+
type?: number | undefined;
|
|
5054
|
+
nonce?: number | undefined;
|
|
5055
|
+
} | {
|
|
3716
5056
|
value: string;
|
|
3717
5057
|
to: string;
|
|
3718
5058
|
data: string;
|
|
@@ -3730,7 +5070,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3730
5070
|
blockTag?: import("ethers").BlockTag;
|
|
3731
5071
|
enableCcipRead?: boolean;
|
|
3732
5072
|
}>;
|
|
3733
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
5073
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
5074
|
+
gasLimit: bigint;
|
|
5075
|
+
value: string;
|
|
5076
|
+
data: string;
|
|
5077
|
+
from: string;
|
|
5078
|
+
to: string;
|
|
5079
|
+
maxFeePerGas: bigint;
|
|
5080
|
+
maxPriorityFeePerGas: bigint;
|
|
5081
|
+
gasPrice?: undefined;
|
|
5082
|
+
type?: number | undefined;
|
|
5083
|
+
nonce?: number | undefined;
|
|
5084
|
+
} | {
|
|
5085
|
+
gasLimit: bigint;
|
|
5086
|
+
value: string;
|
|
5087
|
+
data: string;
|
|
5088
|
+
from: string;
|
|
5089
|
+
to: string;
|
|
5090
|
+
gasPrice: bigint;
|
|
5091
|
+
maxFeePerGas?: undefined;
|
|
5092
|
+
maxPriorityFeePerGas?: undefined;
|
|
5093
|
+
type?: number | undefined;
|
|
5094
|
+
nonce?: number | undefined;
|
|
5095
|
+
} | {
|
|
3734
5096
|
value: string;
|
|
3735
5097
|
to: string;
|
|
3736
5098
|
data: string;
|
|
@@ -3757,21 +5119,35 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3757
5119
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
3758
5120
|
data?: string;
|
|
3759
5121
|
}) => Promise<bigint>;
|
|
3760
|
-
estimateGasPrices: () => Promise<{
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
5122
|
+
estimateGasPrices: () => Promise<{
|
|
5123
|
+
average: {
|
|
5124
|
+
gasPrice?: bigint;
|
|
5125
|
+
l1GasPrice?: bigint;
|
|
5126
|
+
maxFeePerGas?: bigint;
|
|
5127
|
+
maxPriorityFeePerGas?: bigint;
|
|
5128
|
+
};
|
|
5129
|
+
fast: {
|
|
5130
|
+
gasPrice?: bigint;
|
|
5131
|
+
l1GasPrice?: bigint;
|
|
5132
|
+
maxFeePerGas?: bigint;
|
|
5133
|
+
maxPriorityFeePerGas?: bigint;
|
|
5134
|
+
};
|
|
5135
|
+
fastest: {
|
|
5136
|
+
gasPrice?: bigint;
|
|
5137
|
+
l1GasPrice?: bigint;
|
|
5138
|
+
maxFeePerGas?: bigint;
|
|
5139
|
+
maxPriorityFeePerGas?: bigint;
|
|
5140
|
+
};
|
|
5141
|
+
}>;
|
|
3766
5142
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
3767
5143
|
feeOption: FeeOption;
|
|
3768
5144
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
3769
5145
|
getAddress: () => string | Promise<string> | undefined;
|
|
3770
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
3771
5146
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
3772
5147
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
3773
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
5148
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
3774
5149
|
feeOptionKey?: FeeOption;
|
|
5150
|
+
sweep?: boolean;
|
|
3775
5151
|
}) => Promise<string>;
|
|
3776
5152
|
signAuthorization: ((params: {
|
|
3777
5153
|
address: string;
|
|
@@ -3780,7 +5156,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3780
5156
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
3781
5157
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
3782
5158
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
3783
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
5159
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3784
5160
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
3785
5161
|
};
|
|
3786
5162
|
XLAYER: ChainWallet<Chain.XLayer> & {
|
|
@@ -3825,7 +5201,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3825
5201
|
blockTag?: import("ethers").BlockTag;
|
|
3826
5202
|
enableCcipRead?: boolean;
|
|
3827
5203
|
}>;
|
|
3828
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
5204
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
5205
|
+
gasLimit: bigint;
|
|
5206
|
+
value: string;
|
|
5207
|
+
data: string;
|
|
5208
|
+
from: string;
|
|
5209
|
+
to: string;
|
|
5210
|
+
maxFeePerGas: bigint;
|
|
5211
|
+
maxPriorityFeePerGas: bigint;
|
|
5212
|
+
gasPrice?: undefined;
|
|
5213
|
+
type?: number | undefined;
|
|
5214
|
+
nonce?: number | undefined;
|
|
5215
|
+
} | {
|
|
5216
|
+
gasLimit: bigint;
|
|
5217
|
+
value: string;
|
|
5218
|
+
data: string;
|
|
5219
|
+
from: string;
|
|
5220
|
+
to: string;
|
|
5221
|
+
gasPrice: bigint;
|
|
5222
|
+
maxFeePerGas?: undefined;
|
|
5223
|
+
maxPriorityFeePerGas?: undefined;
|
|
5224
|
+
type?: number | undefined;
|
|
5225
|
+
nonce?: number | undefined;
|
|
5226
|
+
} | {
|
|
3829
5227
|
value: string;
|
|
3830
5228
|
to: string;
|
|
3831
5229
|
data: string;
|
|
@@ -3843,7 +5241,29 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3843
5241
|
blockTag?: import("ethers").BlockTag;
|
|
3844
5242
|
enableCcipRead?: boolean;
|
|
3845
5243
|
}>;
|
|
3846
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
5244
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
5245
|
+
gasLimit: bigint;
|
|
5246
|
+
value: string;
|
|
5247
|
+
data: string;
|
|
5248
|
+
from: string;
|
|
5249
|
+
to: string;
|
|
5250
|
+
maxFeePerGas: bigint;
|
|
5251
|
+
maxPriorityFeePerGas: bigint;
|
|
5252
|
+
gasPrice?: undefined;
|
|
5253
|
+
type?: number | undefined;
|
|
5254
|
+
nonce?: number | undefined;
|
|
5255
|
+
} | {
|
|
5256
|
+
gasLimit: bigint;
|
|
5257
|
+
value: string;
|
|
5258
|
+
data: string;
|
|
5259
|
+
from: string;
|
|
5260
|
+
to: string;
|
|
5261
|
+
gasPrice: bigint;
|
|
5262
|
+
maxFeePerGas?: undefined;
|
|
5263
|
+
maxPriorityFeePerGas?: undefined;
|
|
5264
|
+
type?: number | undefined;
|
|
5265
|
+
nonce?: number | undefined;
|
|
5266
|
+
} | {
|
|
3847
5267
|
value: string;
|
|
3848
5268
|
to: string;
|
|
3849
5269
|
data: string;
|
|
@@ -3870,12 +5290,26 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3870
5290
|
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
3871
5291
|
data?: string;
|
|
3872
5292
|
}) => Promise<bigint>;
|
|
3873
|
-
estimateGasPrices: () => Promise<{
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
5293
|
+
estimateGasPrices: () => Promise<{
|
|
5294
|
+
average: {
|
|
5295
|
+
gasPrice?: bigint;
|
|
5296
|
+
l1GasPrice?: bigint;
|
|
5297
|
+
maxFeePerGas?: bigint;
|
|
5298
|
+
maxPriorityFeePerGas?: bigint;
|
|
5299
|
+
};
|
|
5300
|
+
fast: {
|
|
5301
|
+
gasPrice?: bigint;
|
|
5302
|
+
l1GasPrice?: bigint;
|
|
5303
|
+
maxFeePerGas?: bigint;
|
|
5304
|
+
maxPriorityFeePerGas?: bigint;
|
|
5305
|
+
};
|
|
5306
|
+
fastest: {
|
|
5307
|
+
gasPrice?: bigint;
|
|
5308
|
+
l1GasPrice?: bigint;
|
|
5309
|
+
maxFeePerGas?: bigint;
|
|
5310
|
+
maxPriorityFeePerGas?: bigint;
|
|
5311
|
+
};
|
|
5312
|
+
}>;
|
|
3879
5313
|
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
3880
5314
|
feeOption: FeeOption;
|
|
3881
5315
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
@@ -3883,8 +5317,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3883
5317
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
3884
5318
|
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
3885
5319
|
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
3886
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
5320
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
3887
5321
|
feeOptionKey?: FeeOption;
|
|
5322
|
+
sweep?: boolean;
|
|
3888
5323
|
}) => Promise<string>;
|
|
3889
5324
|
signAuthorization: ((params: {
|
|
3890
5325
|
address: string;
|
|
@@ -3893,7 +5328,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3893
5328
|
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
3894
5329
|
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
3895
5330
|
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
3896
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
5331
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
3897
5332
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
3898
5333
|
};
|
|
3899
5334
|
ZEC: ChainWallet<Chain.Zcash> & {
|
|
@@ -3915,7 +5350,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3915
5350
|
}) => string;
|
|
3916
5351
|
signAndBroadcastTransaction: (tx: import("@swapkit/utxo-signer").ZcashTransaction | import("@swapkit/utxo-signer").PCZT | import("@swapkit/utxo-signer").ZcashPSBT) => Promise<string>;
|
|
3917
5352
|
signTransaction: (tx: import("@swapkit/utxo-signer").ZcashTransaction | import("@swapkit/utxo-signer").PCZT | import("@swapkit/utxo-signer").ZcashPSBT) => Promise<import("@swapkit/utxo-signer").ZcashTransaction>;
|
|
3918
|
-
transfer: ({ recipient, assetValue, feeOptionKey, ...rest }: import("@swapkit/toolboxes/utxo/types").UTXOTransferParams) => Promise<string>;
|
|
5353
|
+
transfer: ({ recipient, assetValue, feeOptionKey, sweep, ...rest }: import("@swapkit/toolboxes/utxo/types").UTXOTransferParams) => Promise<string>;
|
|
3919
5354
|
validateAddress: typeof import("@swapkit/utxo-signer").validateZcashAddress;
|
|
3920
5355
|
accumulative: typeof import("@swapkit/toolboxes/utxo/index").accumulative;
|
|
3921
5356
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
@@ -3935,11 +5370,12 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3935
5370
|
pubkey: string;
|
|
3936
5371
|
} | undefined;
|
|
3937
5372
|
derivePrivateKeyAtIndex: ({ accountIndex, index, change }: import("@swapkit/toolboxes").DeriveAddressParams) => Uint8Array<ArrayBufferLike> | undefined;
|
|
3938
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
5373
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipient, recipients, }: {
|
|
3939
5374
|
from: string;
|
|
3940
5375
|
memo?: string;
|
|
3941
5376
|
feeRate?: number;
|
|
3942
5377
|
feeOptionKey?: FeeOption;
|
|
5378
|
+
recipient?: string;
|
|
3943
5379
|
recipients?: number | import("@swapkit/toolboxes/utxo/types").TargetOutput[];
|
|
3944
5380
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
3945
5381
|
estimateTransactionFee: (params: {
|
|
@@ -3969,7 +5405,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3969
5405
|
fast: number;
|
|
3970
5406
|
fastest: number;
|
|
3971
5407
|
}>;
|
|
3972
|
-
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, }: Omit<import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams, "feeRate"> & {
|
|
5408
|
+
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, sweep, }: Omit<import("@swapkit/toolboxes/utxo/types").UTXOBuildTxParams, "feeRate"> & {
|
|
3973
5409
|
feeOptionKey?: FeeOption;
|
|
3974
5410
|
feeRate?: number;
|
|
3975
5411
|
}) => Promise<{
|
|
@@ -4005,7 +5441,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
4005
5441
|
tx: InstanceType<typeof import("@swapkit/utxo-signer").Transaction>;
|
|
4006
5442
|
inputDerivations: import("@swapkit/toolboxes/utxo/types").InputDerivation[];
|
|
4007
5443
|
}) => import("@swapkit/utxo-signer").Transaction;
|
|
4008
|
-
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, }: {
|
|
5444
|
+
transferFromMultipleAddresses: ({ utxos, recipient, assetValue, memo, feeRate, feeOptionKey, changeAddress, sweep, }: {
|
|
4009
5445
|
utxos: import("@swapkit/toolboxes").UTXOForMultiAddressTransfer[];
|
|
4010
5446
|
recipient: string;
|
|
4011
5447
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
@@ -4013,6 +5449,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
4013
5449
|
feeRate?: number;
|
|
4014
5450
|
feeOptionKey?: FeeOption;
|
|
4015
5451
|
changeAddress?: string;
|
|
5452
|
+
sweep?: boolean;
|
|
4016
5453
|
}) => Promise<string>;
|
|
4017
5454
|
};
|
|
4018
5455
|
};
|