@swapkit/core 4.0.44 → 4.1.3
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/dist/index.cjs.map +2 -2
- package/dist/index.js.map +2 -2
- package/dist/types/index.d.ts +500 -419
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +16 -4
- package/src/index.ts +361 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
127
127
|
txType?: import("@swapkit/helpers/api").RouteQuoteTxType | undefined;
|
|
128
128
|
};
|
|
129
129
|
providers: PluginNameEnum[];
|
|
130
|
+
routeId: string;
|
|
130
131
|
sellAmount: string;
|
|
131
132
|
sellAsset: string;
|
|
132
133
|
sourceAddress: string;
|
|
@@ -215,7 +216,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
215
216
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
216
217
|
feeOptionKey?: FeeOption;
|
|
217
218
|
}) => Promise<string>;
|
|
218
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) |
|
|
219
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
219
220
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
220
221
|
validateAddress: (address: string) => boolean;
|
|
221
222
|
};
|
|
@@ -255,7 +256,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
255
256
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
256
257
|
feeOptionKey?: FeeOption;
|
|
257
258
|
}) => Promise<string>;
|
|
258
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) |
|
|
259
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
259
260
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
260
261
|
validateAddress: (address: string) => boolean;
|
|
261
262
|
};
|
|
@@ -295,7 +296,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
295
296
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
296
297
|
feeOptionKey?: FeeOption;
|
|
297
298
|
}) => Promise<string>;
|
|
298
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) |
|
|
299
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
299
300
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
300
301
|
validateAddress: (address: string) => boolean;
|
|
301
302
|
};
|
|
@@ -335,7 +336,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
335
336
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
336
337
|
feeOptionKey?: FeeOption;
|
|
337
338
|
}) => Promise<string>;
|
|
338
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) |
|
|
339
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
339
340
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
340
341
|
validateAddress: (address: string) => boolean;
|
|
341
342
|
};
|
|
@@ -375,7 +376,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
375
376
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
376
377
|
feeOptionKey?: FeeOption;
|
|
377
378
|
}) => Promise<string>;
|
|
378
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) |
|
|
379
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
379
380
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
380
381
|
validateAddress: (address: string) => boolean;
|
|
381
382
|
};
|
|
@@ -415,187 +416,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
415
416
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
416
417
|
feeOptionKey?: FeeOption;
|
|
417
418
|
}) => Promise<string>;
|
|
418
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) |
|
|
419
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
420
|
-
validateAddress: (address: string) => boolean;
|
|
421
|
-
};
|
|
422
|
-
ADA: ChainWallet<Chain.Cardano> & {
|
|
423
|
-
createTransaction: ({ recipient, assetValue, memo, }: {
|
|
424
|
-
recipient: string;
|
|
425
|
-
assetValue: AssetValue;
|
|
426
|
-
memo?: string;
|
|
427
|
-
}) => Promise<{
|
|
428
|
-
tx: import("@meshsdk/transaction").Transaction;
|
|
429
|
-
unsignedTx: string;
|
|
430
|
-
}>;
|
|
431
|
-
estimateTransactionFee: () => Promise<AssetValue>;
|
|
432
|
-
getAddress: () => string;
|
|
433
|
-
getBalance: (addressParam?: string) => Promise<AssetValue[]>;
|
|
434
|
-
signTransaction: (txParams: string) => Promise<string>;
|
|
435
|
-
transfer: ({ recipient, assetValue, memo, }: {
|
|
436
|
-
recipient: string;
|
|
437
|
-
assetValue: AssetValue;
|
|
438
|
-
memo?: string;
|
|
439
|
-
}) => Promise<string>;
|
|
440
|
-
validateAddress: (address: string) => boolean;
|
|
441
|
-
};
|
|
442
|
-
BOTANIX: ChainWallet<Chain.Botanix> & {
|
|
443
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
444
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
445
|
-
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
446
|
-
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
447
|
-
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
448
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
449
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
450
|
-
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
451
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
452
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
453
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
454
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
455
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
456
|
-
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
457
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
458
|
-
funcName?: string;
|
|
459
|
-
funcParams?: unknown[];
|
|
460
|
-
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
461
|
-
data?: string;
|
|
462
|
-
}) => Promise<bigint>;
|
|
463
|
-
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
464
|
-
l1GasPrice?: bigint;
|
|
465
|
-
gasPrice?: bigint;
|
|
466
|
-
maxFeePerGas?: bigint;
|
|
467
|
-
maxPriorityFeePerGas?: bigint;
|
|
468
|
-
}; }>;
|
|
469
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
470
|
-
feeOption: FeeOption;
|
|
471
|
-
chain: EVMChain;
|
|
472
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
473
|
-
getAddress: () => string | Promise<string> | undefined;
|
|
474
|
-
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
475
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
476
|
-
feeOptionKey?: FeeOption;
|
|
477
|
-
}) => Promise<string>;
|
|
478
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) | ((message: string | Uint8Array) => Promise<string>) | ((_message: string | Uint8Array) => Promise<string>) | undefined;
|
|
479
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
480
|
-
validateAddress: (address: string) => boolean;
|
|
481
|
-
};
|
|
482
|
-
CORE: ChainWallet<Chain.Core> & {
|
|
483
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
484
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
485
|
-
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
486
|
-
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
487
|
-
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
488
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
489
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
490
|
-
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
491
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
492
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
493
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
494
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
495
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
496
|
-
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
497
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
498
|
-
funcName?: string;
|
|
499
|
-
funcParams?: unknown[];
|
|
500
|
-
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
501
|
-
data?: string;
|
|
502
|
-
}) => Promise<bigint>;
|
|
503
|
-
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
504
|
-
l1GasPrice?: bigint;
|
|
505
|
-
gasPrice?: bigint;
|
|
506
|
-
maxFeePerGas?: bigint;
|
|
507
|
-
maxPriorityFeePerGas?: bigint;
|
|
508
|
-
}; }>;
|
|
509
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
510
|
-
feeOption: FeeOption;
|
|
511
|
-
chain: EVMChain;
|
|
512
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
513
|
-
getAddress: () => string | Promise<string> | undefined;
|
|
514
|
-
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
515
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
516
|
-
feeOptionKey?: FeeOption;
|
|
517
|
-
}) => Promise<string>;
|
|
518
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) | ((message: string | Uint8Array) => Promise<string>) | ((_message: string | Uint8Array) => Promise<string>) | undefined;
|
|
519
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
520
|
-
validateAddress: (address: string) => boolean;
|
|
521
|
-
};
|
|
522
|
-
CORN: ChainWallet<Chain.Corn> & {
|
|
523
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
524
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
525
|
-
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
526
|
-
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
527
|
-
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
528
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
529
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
530
|
-
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
531
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
532
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
533
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
534
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
535
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
536
|
-
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
537
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
538
|
-
funcName?: string;
|
|
539
|
-
funcParams?: unknown[];
|
|
540
|
-
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
541
|
-
data?: string;
|
|
542
|
-
}) => Promise<bigint>;
|
|
543
|
-
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
544
|
-
l1GasPrice?: bigint;
|
|
545
|
-
gasPrice?: bigint;
|
|
546
|
-
maxFeePerGas?: bigint;
|
|
547
|
-
maxPriorityFeePerGas?: bigint;
|
|
548
|
-
}; }>;
|
|
549
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
550
|
-
feeOption: FeeOption;
|
|
551
|
-
chain: EVMChain;
|
|
552
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
553
|
-
getAddress: () => string | Promise<string> | undefined;
|
|
554
|
-
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
555
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
556
|
-
feeOptionKey?: FeeOption;
|
|
557
|
-
}) => Promise<string>;
|
|
558
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) | ((message: string | Uint8Array) => Promise<string>) | ((_message: string | Uint8Array) => Promise<string>) | undefined;
|
|
559
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
560
|
-
validateAddress: (address: string) => boolean;
|
|
561
|
-
};
|
|
562
|
-
CRO: ChainWallet<Chain.Cronos> & {
|
|
563
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
564
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
565
|
-
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
566
|
-
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
567
|
-
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
568
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
569
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
570
|
-
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
571
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
572
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
573
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
574
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
575
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
576
|
-
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
577
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
578
|
-
funcName?: string;
|
|
579
|
-
funcParams?: unknown[];
|
|
580
|
-
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
581
|
-
data?: string;
|
|
582
|
-
}) => Promise<bigint>;
|
|
583
|
-
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
584
|
-
l1GasPrice?: bigint;
|
|
585
|
-
gasPrice?: bigint;
|
|
586
|
-
maxFeePerGas?: bigint;
|
|
587
|
-
maxPriorityFeePerGas?: bigint;
|
|
588
|
-
}; }>;
|
|
589
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
590
|
-
feeOption: FeeOption;
|
|
591
|
-
chain: EVMChain;
|
|
592
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
593
|
-
getAddress: () => string | Promise<string> | undefined;
|
|
594
|
-
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
595
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
596
|
-
feeOptionKey?: FeeOption;
|
|
597
|
-
}) => Promise<string>;
|
|
598
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) | ((message: string | Uint8Array) => Promise<string>) | ((_message: string | Uint8Array) => Promise<string>) | undefined;
|
|
419
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
599
420
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
600
421
|
validateAddress: (address: string) => boolean;
|
|
601
422
|
};
|
|
@@ -709,29 +530,191 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
709
530
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
710
531
|
estimateTransactionFee: (params: {
|
|
711
532
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
712
|
-
recipient: string;
|
|
713
|
-
sender: string;
|
|
714
|
-
memo?: string;
|
|
715
|
-
feeOptionKey?: FeeOption;
|
|
716
|
-
feeRate?: number;
|
|
717
|
-
fetchTxHex?: boolean;
|
|
533
|
+
recipient: string;
|
|
534
|
+
sender: string;
|
|
535
|
+
memo?: string;
|
|
536
|
+
feeOptionKey?: FeeOption;
|
|
537
|
+
feeRate?: number;
|
|
538
|
+
fetchTxHex?: boolean;
|
|
539
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
540
|
+
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, }: Omit<import("@swapkit/toolboxes/utxo").UTXOBuildTxParams, "feeRate"> & {
|
|
541
|
+
feeOptionKey?: FeeOption;
|
|
542
|
+
feeRate?: number;
|
|
543
|
+
}) => Promise<{
|
|
544
|
+
fee: number;
|
|
545
|
+
inputs: (import("@swapkit/toolboxes/utxo").UTXOType | import("@swapkit/toolboxes/utxo").UTXOInputWithScriptType)[];
|
|
546
|
+
outputs: import("@swapkit/toolboxes/utxo").TargetOutput[];
|
|
547
|
+
} | {
|
|
548
|
+
fee: number;
|
|
549
|
+
inputs?: undefined;
|
|
550
|
+
outputs?: undefined;
|
|
551
|
+
}>;
|
|
552
|
+
getPrivateKeyFromMnemonic: (params: {
|
|
553
|
+
phrase: string;
|
|
554
|
+
derivationPath: string;
|
|
555
|
+
}) => string;
|
|
556
|
+
};
|
|
557
|
+
BOTANIX: ChainWallet<Chain.Botanix> & {
|
|
558
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
559
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
560
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
561
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
562
|
+
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
563
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
564
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
565
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
566
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
567
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
568
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
569
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
570
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
571
|
+
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
572
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
573
|
+
funcName?: string;
|
|
574
|
+
funcParams?: unknown[];
|
|
575
|
+
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
576
|
+
data?: string;
|
|
577
|
+
}) => Promise<bigint>;
|
|
578
|
+
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
579
|
+
l1GasPrice?: bigint;
|
|
580
|
+
gasPrice?: bigint;
|
|
581
|
+
maxFeePerGas?: bigint;
|
|
582
|
+
maxPriorityFeePerGas?: bigint;
|
|
583
|
+
}; }>;
|
|
584
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
585
|
+
feeOption: FeeOption;
|
|
586
|
+
chain: EVMChain;
|
|
587
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
588
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
589
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
590
|
+
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
591
|
+
feeOptionKey?: FeeOption;
|
|
592
|
+
}) => Promise<string>;
|
|
593
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
594
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
595
|
+
validateAddress: (address: string) => boolean;
|
|
596
|
+
};
|
|
597
|
+
ADA: ChainWallet<Chain.Cardano> & {
|
|
598
|
+
createTransaction: ({ recipient, assetValue, memo, }: {
|
|
599
|
+
recipient: string;
|
|
600
|
+
assetValue: AssetValue;
|
|
601
|
+
memo?: string;
|
|
602
|
+
}) => Promise<{
|
|
603
|
+
tx: import("@meshsdk/core").Transaction;
|
|
604
|
+
unsignedTx: string;
|
|
605
|
+
}>;
|
|
606
|
+
estimateTransactionFee: () => Promise<AssetValue>;
|
|
607
|
+
getAddress: () => string;
|
|
608
|
+
getBalance: (addressParam?: string) => Promise<AssetValue[]>;
|
|
609
|
+
signTransaction: (txParams: string) => Promise<string>;
|
|
610
|
+
transfer: ({ recipient, assetValue, memo, }: {
|
|
611
|
+
recipient: string;
|
|
612
|
+
assetValue: AssetValue;
|
|
613
|
+
memo?: string;
|
|
614
|
+
}) => Promise<string>;
|
|
615
|
+
validateAddress: (address: string) => boolean;
|
|
616
|
+
};
|
|
617
|
+
FLIP: ChainWallet<Chain.Chainflip> & {
|
|
618
|
+
api: import("@polkadot/api").ApiPromise;
|
|
619
|
+
broadcast: (tx: import("@polkadot/api/types").SubmittableExtrinsic<"promise">, callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>) => Promise<string | (() => void)>;
|
|
620
|
+
convertAddress: (address: string, newPrefix: number) => string;
|
|
621
|
+
createKeyring: (phrase: string) => Promise<import("@polkadot/keyring/types").KeyringPair>;
|
|
622
|
+
createTransaction: (params: import("@swapkit/helpers").GenericCreateTransactionParams) => import("@polkadot/api/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult> | undefined;
|
|
623
|
+
decodeAddress: (address: string, networkPrefix?: number) => Uint8Array<ArrayBufferLike>;
|
|
624
|
+
encodeAddress: (address: Uint8Array, encoding?: "ss58" | "hex", networkPrefix?: number) => string;
|
|
625
|
+
estimateTransactionFee: (params: import("@swapkit/toolboxes/substrate").SubstrateTransferParams) => Promise<AssetValue | undefined>;
|
|
626
|
+
gasAsset: AssetValue;
|
|
627
|
+
getAddress: (keyring?: import("@polkadot/types/types").IKeyringPair | import("@polkadot/types/types").Signer) => string | undefined;
|
|
628
|
+
getBalance: (address: string) => Promise<AssetValue[]>;
|
|
629
|
+
network: import("@swapkit/toolboxes/substrate").SubstrateNetwork;
|
|
630
|
+
sign: (tx: import("@polkadot/api/types").SubmittableExtrinsic<"promise">) => Promise<import("@polkadot/api/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult>>;
|
|
631
|
+
signAndBroadcast: ({ tx, callback, address, }: {
|
|
632
|
+
tx: import("@polkadot/api/types").SubmittableExtrinsic<"promise">;
|
|
633
|
+
callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>;
|
|
634
|
+
address?: string;
|
|
635
|
+
}) => string | Promise<string> | Promise<() => void>;
|
|
636
|
+
transfer: (params: import("@swapkit/toolboxes/substrate").SubstrateTransferParams) => Promise<string>;
|
|
637
|
+
validateAddress: (address: string) => boolean;
|
|
638
|
+
};
|
|
639
|
+
CORE: ChainWallet<Chain.Core> & {
|
|
640
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
641
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
642
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
643
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
644
|
+
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
645
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
646
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
647
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
648
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
649
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
650
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
651
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
652
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
653
|
+
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
654
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
655
|
+
funcName?: string;
|
|
656
|
+
funcParams?: unknown[];
|
|
657
|
+
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
658
|
+
data?: string;
|
|
659
|
+
}) => Promise<bigint>;
|
|
660
|
+
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
661
|
+
l1GasPrice?: bigint;
|
|
662
|
+
gasPrice?: bigint;
|
|
663
|
+
maxFeePerGas?: bigint;
|
|
664
|
+
maxPriorityFeePerGas?: bigint;
|
|
665
|
+
}; }>;
|
|
666
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
667
|
+
feeOption: FeeOption;
|
|
668
|
+
chain: EVMChain;
|
|
669
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
670
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
671
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
672
|
+
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
673
|
+
feeOptionKey?: FeeOption;
|
|
674
|
+
}) => Promise<string>;
|
|
675
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
676
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
677
|
+
validateAddress: (address: string) => boolean;
|
|
678
|
+
};
|
|
679
|
+
CORN: ChainWallet<Chain.Corn> & {
|
|
680
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
681
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
682
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
683
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
684
|
+
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
685
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
686
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
687
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
688
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
689
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
690
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
691
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
692
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
693
|
+
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
694
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
695
|
+
funcName?: string;
|
|
696
|
+
funcParams?: unknown[];
|
|
697
|
+
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
698
|
+
data?: string;
|
|
699
|
+
}) => Promise<bigint>;
|
|
700
|
+
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
701
|
+
l1GasPrice?: bigint;
|
|
702
|
+
gasPrice?: bigint;
|
|
703
|
+
maxFeePerGas?: bigint;
|
|
704
|
+
maxPriorityFeePerGas?: bigint;
|
|
705
|
+
}; }>;
|
|
706
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
707
|
+
feeOption: FeeOption;
|
|
708
|
+
chain: EVMChain;
|
|
718
709
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
719
|
-
|
|
710
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
711
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
712
|
+
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
720
713
|
feeOptionKey?: FeeOption;
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
outputs: import("@swapkit/toolboxes/utxo").TargetOutput[];
|
|
726
|
-
} | {
|
|
727
|
-
fee: number;
|
|
728
|
-
inputs?: undefined;
|
|
729
|
-
outputs?: undefined;
|
|
730
|
-
}>;
|
|
731
|
-
getPrivateKeyFromMnemonic: (params: {
|
|
732
|
-
phrase: string;
|
|
733
|
-
derivationPath: string;
|
|
734
|
-
}) => string;
|
|
714
|
+
}) => Promise<string>;
|
|
715
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
716
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
717
|
+
validateAddress: (address: string) => boolean;
|
|
735
718
|
};
|
|
736
719
|
GAIA: ChainWallet<Chain.Cosmos> & {
|
|
737
720
|
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
@@ -766,6 +749,46 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
766
749
|
address: string;
|
|
767
750
|
}) => Promise<boolean>;
|
|
768
751
|
};
|
|
752
|
+
CRO: ChainWallet<Chain.Cronos> & {
|
|
753
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
754
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
755
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
756
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
757
|
+
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
758
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
759
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
760
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
761
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
762
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
763
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
764
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
765
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
766
|
+
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
767
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
768
|
+
funcName?: string;
|
|
769
|
+
funcParams?: unknown[];
|
|
770
|
+
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
771
|
+
data?: string;
|
|
772
|
+
}) => Promise<bigint>;
|
|
773
|
+
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
774
|
+
l1GasPrice?: bigint;
|
|
775
|
+
gasPrice?: bigint;
|
|
776
|
+
maxFeePerGas?: bigint;
|
|
777
|
+
maxPriorityFeePerGas?: bigint;
|
|
778
|
+
}; }>;
|
|
779
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
780
|
+
feeOption: FeeOption;
|
|
781
|
+
chain: EVMChain;
|
|
782
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
783
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
784
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
785
|
+
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
786
|
+
feeOptionKey?: FeeOption;
|
|
787
|
+
}) => Promise<string>;
|
|
788
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
789
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
790
|
+
validateAddress: (address: string) => boolean;
|
|
791
|
+
};
|
|
769
792
|
DASH: ChainWallet<Chain.Dash> & {
|
|
770
793
|
accumulative: typeof import("@swapkit/toolboxes/utxo").accumulative;
|
|
771
794
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
@@ -920,7 +943,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
920
943
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
921
944
|
feeOptionKey?: FeeOption;
|
|
922
945
|
}) => Promise<string>;
|
|
923
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) |
|
|
946
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
924
947
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
925
948
|
validateAddress: (address: string) => boolean;
|
|
926
949
|
};
|
|
@@ -960,7 +983,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
960
983
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
961
984
|
feeOptionKey?: FeeOption;
|
|
962
985
|
}) => Promise<string>;
|
|
963
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) |
|
|
986
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
964
987
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
965
988
|
validateAddress: (address: string) => boolean;
|
|
966
989
|
};
|
|
@@ -1033,7 +1056,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1033
1056
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1034
1057
|
feeOptionKey?: FeeOption;
|
|
1035
1058
|
}) => Promise<string>;
|
|
1036
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) |
|
|
1059
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1037
1060
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1038
1061
|
validateAddress: (address: string) => boolean;
|
|
1039
1062
|
};
|
|
@@ -1070,126 +1093,6 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1070
1093
|
address: string;
|
|
1071
1094
|
}) => Promise<boolean>;
|
|
1072
1095
|
};
|
|
1073
|
-
SONIC: ChainWallet<Chain.Sonic> & {
|
|
1074
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1075
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
1076
|
-
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
1077
|
-
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1078
|
-
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1079
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1080
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1081
|
-
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1082
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1083
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1084
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1085
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1086
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1087
|
-
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
1088
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1089
|
-
funcName?: string;
|
|
1090
|
-
funcParams?: unknown[];
|
|
1091
|
-
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1092
|
-
data?: string;
|
|
1093
|
-
}) => Promise<bigint>;
|
|
1094
|
-
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
1095
|
-
l1GasPrice?: bigint;
|
|
1096
|
-
gasPrice?: bigint;
|
|
1097
|
-
maxFeePerGas?: bigint;
|
|
1098
|
-
maxPriorityFeePerGas?: bigint;
|
|
1099
|
-
}; }>;
|
|
1100
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
1101
|
-
feeOption: FeeOption;
|
|
1102
|
-
chain: EVMChain;
|
|
1103
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1104
|
-
getAddress: () => string | Promise<string> | undefined;
|
|
1105
|
-
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
1106
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1107
|
-
feeOptionKey?: FeeOption;
|
|
1108
|
-
}) => Promise<string>;
|
|
1109
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) | ((message: string | Uint8Array) => Promise<string>) | ((_message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1110
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1111
|
-
validateAddress: (address: string) => boolean;
|
|
1112
|
-
};
|
|
1113
|
-
UNI: ChainWallet<Chain.Unichain> & {
|
|
1114
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1115
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
1116
|
-
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
1117
|
-
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1118
|
-
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1119
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1120
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1121
|
-
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1122
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1123
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1124
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1125
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1126
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1127
|
-
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
1128
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1129
|
-
funcName?: string;
|
|
1130
|
-
funcParams?: unknown[];
|
|
1131
|
-
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1132
|
-
data?: string;
|
|
1133
|
-
}) => Promise<bigint>;
|
|
1134
|
-
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
1135
|
-
l1GasPrice?: bigint;
|
|
1136
|
-
gasPrice?: bigint;
|
|
1137
|
-
maxFeePerGas?: bigint;
|
|
1138
|
-
maxPriorityFeePerGas?: bigint;
|
|
1139
|
-
}; }>;
|
|
1140
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
1141
|
-
feeOption: FeeOption;
|
|
1142
|
-
chain: EVMChain;
|
|
1143
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1144
|
-
getAddress: () => string | Promise<string> | undefined;
|
|
1145
|
-
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
1146
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1147
|
-
feeOptionKey?: FeeOption;
|
|
1148
|
-
}) => Promise<string>;
|
|
1149
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) | ((message: string | Uint8Array) => Promise<string>) | ((_message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1150
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1151
|
-
validateAddress: (address: string) => boolean;
|
|
1152
|
-
};
|
|
1153
|
-
XLAYER: ChainWallet<Chain.XLayer> & {
|
|
1154
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1155
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
1156
|
-
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
1157
|
-
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1158
|
-
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1159
|
-
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1160
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1161
|
-
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1162
|
-
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1163
|
-
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1164
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1165
|
-
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1166
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1167
|
-
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
1168
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1169
|
-
funcName?: string;
|
|
1170
|
-
funcParams?: unknown[];
|
|
1171
|
-
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1172
|
-
data?: string;
|
|
1173
|
-
}) => Promise<bigint>;
|
|
1174
|
-
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
1175
|
-
l1GasPrice?: bigint;
|
|
1176
|
-
gasPrice?: bigint;
|
|
1177
|
-
maxFeePerGas?: bigint;
|
|
1178
|
-
maxPriorityFeePerGas?: bigint;
|
|
1179
|
-
}; }>;
|
|
1180
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
1181
|
-
feeOption: FeeOption;
|
|
1182
|
-
chain: EVMChain;
|
|
1183
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1184
|
-
getAddress: () => string | Promise<string> | undefined;
|
|
1185
|
-
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
1186
|
-
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1187
|
-
feeOptionKey?: FeeOption;
|
|
1188
|
-
}) => Promise<string>;
|
|
1189
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) | ((message: string | Uint8Array) => Promise<string>) | ((_message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1190
|
-
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1191
|
-
validateAddress: (address: string) => boolean;
|
|
1192
|
-
};
|
|
1193
1096
|
LTC: ChainWallet<Chain.Litecoin> & {
|
|
1194
1097
|
accumulative: typeof import("@swapkit/toolboxes/utxo").accumulative;
|
|
1195
1098
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
@@ -1370,31 +1273,111 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1370
1273
|
privateKey: Uint8Array;
|
|
1371
1274
|
message: string;
|
|
1372
1275
|
}) => Promise<string>;
|
|
1373
|
-
transfer: ({ assetValue, memo, recipient, }: Omit<GenericTransferParams, "recipient"> & {
|
|
1374
|
-
recipient?: string;
|
|
1276
|
+
transfer: ({ assetValue, memo, recipient, }: Omit<GenericTransferParams, "recipient"> & {
|
|
1277
|
+
recipient?: string;
|
|
1278
|
+
}) => Promise<string>;
|
|
1279
|
+
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
1280
|
+
fetchFeeRateFromSwapKit: typeof import("@swapkit/toolboxes/cosmos").fetchFeeRateFromSwapKit;
|
|
1281
|
+
getAccount: (address: string) => Promise<import("@cosmjs/stargate").Account | null>;
|
|
1282
|
+
getAddress: () => Promise<string | undefined>;
|
|
1283
|
+
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1284
|
+
getBalanceAsDenoms: (address: string) => Promise<{
|
|
1285
|
+
denom: string;
|
|
1286
|
+
amount: string;
|
|
1287
|
+
}[]>;
|
|
1288
|
+
getPubKey: () => Promise<string>;
|
|
1289
|
+
getSignerFromPhrase: ({ phrase, derivationPath }: {
|
|
1290
|
+
phrase: string;
|
|
1291
|
+
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1292
|
+
}) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1HdWallet>;
|
|
1293
|
+
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
1294
|
+
signTransaction: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: GenericTransferParams) => Promise<string>;
|
|
1295
|
+
validateAddress: (address: string) => boolean;
|
|
1296
|
+
verifySignature: ({ signature, message, address, }: {
|
|
1297
|
+
signature: string;
|
|
1298
|
+
message: string;
|
|
1299
|
+
address: string;
|
|
1300
|
+
}) => Promise<boolean>;
|
|
1301
|
+
};
|
|
1302
|
+
MEGAETH: ChainWallet<Chain.MegaETH> & {
|
|
1303
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1304
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
1305
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
1306
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1307
|
+
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1308
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1309
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1310
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1311
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1312
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1313
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1314
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1315
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1316
|
+
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
1317
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1318
|
+
funcName?: string;
|
|
1319
|
+
funcParams?: unknown[];
|
|
1320
|
+
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1321
|
+
data?: string;
|
|
1322
|
+
}) => Promise<bigint>;
|
|
1323
|
+
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
1324
|
+
l1GasPrice?: bigint;
|
|
1325
|
+
gasPrice?: bigint;
|
|
1326
|
+
maxFeePerGas?: bigint;
|
|
1327
|
+
maxPriorityFeePerGas?: bigint;
|
|
1328
|
+
}; }>;
|
|
1329
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
1330
|
+
feeOption: FeeOption;
|
|
1331
|
+
chain: EVMChain;
|
|
1332
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1333
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
1334
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
1335
|
+
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1336
|
+
feeOptionKey?: FeeOption;
|
|
1337
|
+
}) => Promise<string>;
|
|
1338
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1339
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1340
|
+
validateAddress: (address: string) => boolean;
|
|
1341
|
+
};
|
|
1342
|
+
MONAD: ChainWallet<Chain.Monad> & {
|
|
1343
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1344
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
1345
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
1346
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1347
|
+
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1348
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1349
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1350
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1351
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1352
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1353
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1354
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1355
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1356
|
+
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
1357
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1358
|
+
funcName?: string;
|
|
1359
|
+
funcParams?: unknown[];
|
|
1360
|
+
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1361
|
+
data?: string;
|
|
1362
|
+
}) => Promise<bigint>;
|
|
1363
|
+
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
1364
|
+
l1GasPrice?: bigint;
|
|
1365
|
+
gasPrice?: bigint;
|
|
1366
|
+
maxFeePerGas?: bigint;
|
|
1367
|
+
maxPriorityFeePerGas?: bigint;
|
|
1368
|
+
}; }>;
|
|
1369
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
1370
|
+
feeOption: FeeOption;
|
|
1371
|
+
chain: EVMChain;
|
|
1372
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1373
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
1374
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
1375
|
+
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1376
|
+
feeOptionKey?: FeeOption;
|
|
1375
1377
|
}) => Promise<string>;
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
getAccount: (address: string) => Promise<import("@cosmjs/stargate").Account | null>;
|
|
1379
|
-
getAddress: () => Promise<string | undefined>;
|
|
1380
|
-
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1381
|
-
getBalanceAsDenoms: (address: string) => Promise<{
|
|
1382
|
-
denom: string;
|
|
1383
|
-
amount: string;
|
|
1384
|
-
}[]>;
|
|
1385
|
-
getPubKey: () => Promise<string>;
|
|
1386
|
-
getSignerFromPhrase: ({ phrase, derivationPath }: {
|
|
1387
|
-
phrase: string;
|
|
1388
|
-
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
1389
|
-
}) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1HdWallet>;
|
|
1390
|
-
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
1391
|
-
signTransaction: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: GenericTransferParams) => Promise<string>;
|
|
1378
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1379
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1392
1380
|
validateAddress: (address: string) => boolean;
|
|
1393
|
-
verifySignature: ({ signature, message, address, }: {
|
|
1394
|
-
signature: string;
|
|
1395
|
-
message: string;
|
|
1396
|
-
address: string;
|
|
1397
|
-
}) => Promise<boolean>;
|
|
1398
1381
|
};
|
|
1399
1382
|
NEAR: ChainWallet<Chain.Near> & {
|
|
1400
1383
|
broadcastTransaction: (signedTransaction: import("@near-js/transactions").SignedTransaction) => Promise<any>;
|
|
@@ -1518,38 +1501,16 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1518
1501
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1519
1502
|
feeOptionKey?: FeeOption;
|
|
1520
1503
|
}) => Promise<string>;
|
|
1521
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) |
|
|
1504
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1522
1505
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1523
1506
|
validateAddress: (address: string) => boolean;
|
|
1524
1507
|
};
|
|
1525
1508
|
DOT: ChainWallet<Chain.Polkadot> & {
|
|
1526
1509
|
api: import("@polkadot/api").ApiPromise;
|
|
1527
|
-
broadcast: (tx: import("@polkadot/api
|
|
1528
|
-
convertAddress: (address: string, newPrefix: number) => string;
|
|
1529
|
-
createKeyring: (phrase: string) => Promise<import("@polkadot/keyring/types").KeyringPair>;
|
|
1530
|
-
createTransaction: (params: import("@swapkit/helpers").GenericCreateTransactionParams) => import("@polkadot/api-base/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult> | undefined;
|
|
1531
|
-
decodeAddress: (address: string, networkPrefix?: number) => Uint8Array<ArrayBufferLike>;
|
|
1532
|
-
encodeAddress: (address: Uint8Array, encoding?: "ss58" | "hex", networkPrefix?: number) => string;
|
|
1533
|
-
estimateTransactionFee: (params: import("@swapkit/toolboxes/substrate").SubstrateTransferParams) => Promise<AssetValue | undefined>;
|
|
1534
|
-
gasAsset: AssetValue;
|
|
1535
|
-
getAddress: (keyring?: import("@polkadot/types/types").IKeyringPair | import("@polkadot/types/types").Signer) => string | undefined;
|
|
1536
|
-
getBalance: (address: string) => Promise<AssetValue[]>;
|
|
1537
|
-
network: import("@swapkit/toolboxes/substrate").SubstrateNetwork;
|
|
1538
|
-
sign: (tx: import("@polkadot/api-base/types").SubmittableExtrinsic<"promise">) => Promise<import("@polkadot/api-base/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult>>;
|
|
1539
|
-
signAndBroadcast: ({ tx, callback, address, }: {
|
|
1540
|
-
tx: import("@polkadot/api-base/types").SubmittableExtrinsic<"promise">;
|
|
1541
|
-
callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>;
|
|
1542
|
-
address?: string;
|
|
1543
|
-
}) => string | Promise<string> | Promise<() => void>;
|
|
1544
|
-
transfer: (params: import("@swapkit/toolboxes/substrate").SubstrateTransferParams) => Promise<string>;
|
|
1545
|
-
validateAddress: (address: string) => boolean;
|
|
1546
|
-
};
|
|
1547
|
-
FLIP: ChainWallet<Chain.Chainflip> & {
|
|
1548
|
-
api: import("@polkadot/api").ApiPromise;
|
|
1549
|
-
broadcast: (tx: import("@polkadot/api-base/types").SubmittableExtrinsic<"promise">, callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>) => Promise<string | (() => void)>;
|
|
1510
|
+
broadcast: (tx: import("@polkadot/api/types").SubmittableExtrinsic<"promise">, callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>) => Promise<string | (() => void)>;
|
|
1550
1511
|
convertAddress: (address: string, newPrefix: number) => string;
|
|
1551
1512
|
createKeyring: (phrase: string) => Promise<import("@polkadot/keyring/types").KeyringPair>;
|
|
1552
|
-
createTransaction: (params: import("@swapkit/helpers").GenericCreateTransactionParams) => import("@polkadot/api
|
|
1513
|
+
createTransaction: (params: import("@swapkit/helpers").GenericCreateTransactionParams) => import("@polkadot/api/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult> | undefined;
|
|
1553
1514
|
decodeAddress: (address: string, networkPrefix?: number) => Uint8Array<ArrayBufferLike>;
|
|
1554
1515
|
encodeAddress: (address: Uint8Array, encoding?: "ss58" | "hex", networkPrefix?: number) => string;
|
|
1555
1516
|
estimateTransactionFee: (params: import("@swapkit/toolboxes/substrate").SubstrateTransferParams) => Promise<AssetValue | undefined>;
|
|
@@ -1557,9 +1518,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1557
1518
|
getAddress: (keyring?: import("@polkadot/types/types").IKeyringPair | import("@polkadot/types/types").Signer) => string | undefined;
|
|
1558
1519
|
getBalance: (address: string) => Promise<AssetValue[]>;
|
|
1559
1520
|
network: import("@swapkit/toolboxes/substrate").SubstrateNetwork;
|
|
1560
|
-
sign: (tx: import("@polkadot/api
|
|
1521
|
+
sign: (tx: import("@polkadot/api/types").SubmittableExtrinsic<"promise">) => Promise<import("@polkadot/api/types").SubmittableExtrinsic<"promise", import("@polkadot/types/types").ISubmittableResult>>;
|
|
1561
1522
|
signAndBroadcast: ({ tx, callback, address, }: {
|
|
1562
|
-
tx: import("@polkadot/api
|
|
1523
|
+
tx: import("@polkadot/api/types").SubmittableExtrinsic<"promise">;
|
|
1563
1524
|
callback?: import("@polkadot/types/types").Callback<import("@polkadot/types/types").ISubmittableResult>;
|
|
1564
1525
|
address?: string;
|
|
1565
1526
|
}) => string | Promise<string> | Promise<() => void>;
|
|
@@ -1602,7 +1563,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1602
1563
|
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1603
1564
|
feeOptionKey?: FeeOption;
|
|
1604
1565
|
}) => Promise<string>;
|
|
1605
|
-
signMessage: ((message: string | Uint8Array) => Promise<string>) |
|
|
1566
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1606
1567
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1607
1568
|
validateAddress: (address: string) => boolean;
|
|
1608
1569
|
};
|
|
@@ -1643,6 +1604,81 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1643
1604
|
transfer: (params: GenericTransferParams) => Promise<string>;
|
|
1644
1605
|
validateAddress: typeof import("@swapkit/toolboxes/ripple").rippleValidateAddress;
|
|
1645
1606
|
};
|
|
1607
|
+
SOL: ChainWallet<Chain.Solana> & {
|
|
1608
|
+
broadcastTransaction: (transaction: import("@solana/web3.js/lib").Transaction | import("@solana/web3.js/lib").VersionedTransaction) => Promise<string>;
|
|
1609
|
+
createKeysForPath: typeof import("@swapkit/toolboxes/solana").createKeysForPath;
|
|
1610
|
+
createTransaction: ({ recipient, assetValue, memo, isProgramDerivedAddress, sender }: import("@swapkit/toolboxes/solana").SolanaCreateTransactionParams) => Promise<import("@solana/web3.js/lib").Transaction>;
|
|
1611
|
+
createTransactionFromInstructions: ({ instructions, }: {
|
|
1612
|
+
instructions: import("@solana/web3.js/lib").TransactionInstruction[];
|
|
1613
|
+
isProgramDerivedAddress?: boolean;
|
|
1614
|
+
}) => Promise<import("@solana/web3.js/lib").Transaction>;
|
|
1615
|
+
estimateTransactionFee: ({ recipient, assetValue, memo, isProgramDerivedAddress, sender, }: Omit<import("@swapkit/helpers").GenericCreateTransactionParams, "feeRate"> & {
|
|
1616
|
+
isProgramDerivedAddress?: boolean;
|
|
1617
|
+
}) => Promise<AssetValue>;
|
|
1618
|
+
getAddress: () => string;
|
|
1619
|
+
getAddressFromPubKey: (publicKey: import("@solana/web3.js/lib").PublicKey) => string;
|
|
1620
|
+
getAddressValidator: typeof import("@swapkit/toolboxes/solana").getSolanaAddressValidator;
|
|
1621
|
+
getBalance: (addressParam?: string) => Promise<AssetValue[]>;
|
|
1622
|
+
getConnection: () => Promise<import("@solana/web3.js/lib").Connection>;
|
|
1623
|
+
getPubkeyFromAddress: (address: string) => Promise<import("@solana/web3.js/lib").PublicKey>;
|
|
1624
|
+
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>;
|
|
1625
|
+
transfer: ({ recipient, assetValue, memo, isProgramDerivedAddress }: import("@swapkit/toolboxes/solana").SolanaTransferParams) => Promise<string>;
|
|
1626
|
+
};
|
|
1627
|
+
SONIC: ChainWallet<Chain.Sonic> & {
|
|
1628
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1629
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
1630
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
1631
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1632
|
+
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1633
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1634
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1635
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1636
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1637
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1638
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1639
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1640
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1641
|
+
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
1642
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1643
|
+
funcName?: string;
|
|
1644
|
+
funcParams?: unknown[];
|
|
1645
|
+
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1646
|
+
data?: string;
|
|
1647
|
+
}) => Promise<bigint>;
|
|
1648
|
+
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
1649
|
+
l1GasPrice?: bigint;
|
|
1650
|
+
gasPrice?: bigint;
|
|
1651
|
+
maxFeePerGas?: bigint;
|
|
1652
|
+
maxPriorityFeePerGas?: bigint;
|
|
1653
|
+
}; }>;
|
|
1654
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
1655
|
+
feeOption: FeeOption;
|
|
1656
|
+
chain: EVMChain;
|
|
1657
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1658
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
1659
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
1660
|
+
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1661
|
+
feeOptionKey?: FeeOption;
|
|
1662
|
+
}) => Promise<string>;
|
|
1663
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1664
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1665
|
+
validateAddress: (address: string) => boolean;
|
|
1666
|
+
};
|
|
1667
|
+
SUI: ChainWallet<Chain.Sui> & {
|
|
1668
|
+
createTransaction: ({ recipient, assetValue, gasBudget, sender }: import("@swapkit/toolboxes/sui").SuiCreateTransactionParams) => Promise<{
|
|
1669
|
+
tx: import("@mysten/sui/transactions").Transaction;
|
|
1670
|
+
txBytes: Uint8Array<ArrayBuffer>;
|
|
1671
|
+
}>;
|
|
1672
|
+
estimateTransactionFee: (params?: import("@swapkit/toolboxes/sui").SuiCreateTransactionParams) => Promise<AssetValue>;
|
|
1673
|
+
getAddress: () => string;
|
|
1674
|
+
getBalance: (targetAddress?: string) => Promise<AssetValue[]>;
|
|
1675
|
+
signTransaction: (params: Uint8Array<ArrayBuffer> | import("@swapkit/toolboxes/sui").SuiCreateTransactionParams | Awaited<ReturnType<({ recipient, assetValue, gasBudget, sender }: import("@swapkit/toolboxes/sui").SuiCreateTransactionParams) => Promise<{
|
|
1676
|
+
tx: import("@mysten/sui/transactions").Transaction;
|
|
1677
|
+
txBytes: Uint8Array<ArrayBuffer>;
|
|
1678
|
+
}>>>) => Promise<import("@mysten/sui/cryptography").SignatureWithBytes>;
|
|
1679
|
+
transfer: ({ assetValue, gasBudget, recipient }: import("@swapkit/toolboxes/sui").SuiTransferParams) => Promise<string>;
|
|
1680
|
+
validateAddress: (address: string) => boolean;
|
|
1681
|
+
};
|
|
1646
1682
|
THOR: ChainWallet<Chain.THORChain> & {
|
|
1647
1683
|
broadcastMultisigTx: (tx: string, signers: import("@swapkit/toolboxes/cosmos").MultiSigSigner[], membersPubKeys: string[], threshold: number, bodyBytes: Uint8Array) => Promise<string>;
|
|
1648
1684
|
buildAminoMsg: ({ sender, recipient, assetValue, memo, }: {
|
|
@@ -1792,47 +1828,12 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1792
1828
|
address: string;
|
|
1793
1829
|
}) => Promise<boolean>;
|
|
1794
1830
|
};
|
|
1795
|
-
SOL: ChainWallet<Chain.Solana> & {
|
|
1796
|
-
broadcastTransaction: (transaction: import("@solana/web3.js").Transaction | import("@solana/web3.js").VersionedTransaction) => Promise<string>;
|
|
1797
|
-
createKeysForPath: typeof import("@swapkit/toolboxes/solana").createKeysForPath;
|
|
1798
|
-
createTransaction: ({ recipient, assetValue, memo, isProgramDerivedAddress, sender }: import("@swapkit/toolboxes/solana").SolanaCreateTransactionParams) => Promise<import("@solana/web3.js").Transaction>;
|
|
1799
|
-
createTransactionFromInstructions: ({ instructions, }: {
|
|
1800
|
-
instructions: import("@solana/web3.js").TransactionInstruction[];
|
|
1801
|
-
isProgramDerivedAddress?: boolean;
|
|
1802
|
-
}) => Promise<import("@solana/web3.js").Transaction>;
|
|
1803
|
-
estimateTransactionFee: ({ recipient, assetValue, memo, isProgramDerivedAddress, sender, }: Omit<import("@swapkit/helpers").GenericCreateTransactionParams, "feeRate"> & {
|
|
1804
|
-
isProgramDerivedAddress?: boolean;
|
|
1805
|
-
}) => Promise<AssetValue>;
|
|
1806
|
-
getAddress: () => string;
|
|
1807
|
-
getAddressFromPubKey: (publicKey: import("@solana/web3.js").PublicKey) => string;
|
|
1808
|
-
getAddressValidator: typeof import("@swapkit/toolboxes/solana").getSolanaAddressValidator;
|
|
1809
|
-
getBalance: (addressParam?: string) => Promise<AssetValue[]>;
|
|
1810
|
-
getConnection: () => Promise<import("@solana/web3.js").Connection>;
|
|
1811
|
-
getPubkeyFromAddress: (address: string) => Promise<import("@solana/web3.js").PublicKey>;
|
|
1812
|
-
signTransaction: (transaction: import("@solana/web3.js").Transaction | import("@solana/web3.js").VersionedTransaction) => Promise<import("@solana/web3.js").Transaction | import("@solana/web3.js").VersionedTransaction>;
|
|
1813
|
-
transfer: ({ recipient, assetValue, memo, isProgramDerivedAddress }: import("@swapkit/toolboxes/solana").SolanaTransferParams) => Promise<string>;
|
|
1814
|
-
};
|
|
1815
|
-
SUI: ChainWallet<Chain.Sui> & {
|
|
1816
|
-
createTransaction: ({ recipient, assetValue, gasBudget, sender }: import("@swapkit/toolboxes/sui").SuiCreateTransactionParams) => Promise<{
|
|
1817
|
-
tx: import("@mysten/sui/transactions").Transaction;
|
|
1818
|
-
txBytes: Uint8Array<ArrayBuffer>;
|
|
1819
|
-
}>;
|
|
1820
|
-
estimateTransactionFee: (params?: import("@swapkit/toolboxes/sui").SuiCreateTransactionParams) => Promise<AssetValue>;
|
|
1821
|
-
getAddress: () => string;
|
|
1822
|
-
getBalance: (targetAddress?: string) => Promise<AssetValue[]>;
|
|
1823
|
-
signTransaction: (params: Uint8Array<ArrayBuffer> | import("@swapkit/toolboxes/sui").SuiCreateTransactionParams | Awaited<ReturnType<({ recipient, assetValue, gasBudget, sender }: import("@swapkit/toolboxes/sui").SuiCreateTransactionParams) => Promise<{
|
|
1824
|
-
tx: import("@mysten/sui/transactions").Transaction;
|
|
1825
|
-
txBytes: Uint8Array<ArrayBuffer>;
|
|
1826
|
-
}>>>) => Promise<import("@mysten/sui/cryptography").SignatureWithBytes>;
|
|
1827
|
-
transfer: ({ assetValue, gasBudget, recipient }: import("@swapkit/toolboxes/sui").SuiTransferParams) => Promise<string>;
|
|
1828
|
-
validateAddress: (address: string) => boolean;
|
|
1829
|
-
};
|
|
1830
1831
|
TON: ChainWallet<Chain.Ton> & {
|
|
1831
|
-
createTransaction: ({ assetValue, recipient, memo }: import("@swapkit/toolboxes/ton").TONTransferParams) => Promise<import("@ton/
|
|
1832
|
+
createTransaction: ({ assetValue, recipient, memo }: import("@swapkit/toolboxes/ton").TONTransferParams) => Promise<import("@ton/ton/dist").Cell>;
|
|
1832
1833
|
estimateTransactionFee: () => Promise<AssetValue>;
|
|
1833
1834
|
getAddress: () => string;
|
|
1834
1835
|
getBalance: (address: string) => Promise<AssetValue[]>;
|
|
1835
|
-
sendTransaction: (transferCell: import("@ton/
|
|
1836
|
+
sendTransaction: (transferCell: import("@ton/ton/dist").Cell) => Promise<string>;
|
|
1836
1837
|
transfer: ({ assetValue, recipient, memo }: import("@swapkit/toolboxes/ton").TONTransferParams) => Promise<string>;
|
|
1837
1838
|
validateAddress: (address: string) => boolean;
|
|
1838
1839
|
};
|
|
@@ -1852,11 +1853,91 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1852
1853
|
isApproved: (params: import("@swapkit/toolboxes/tron").TronIsApprovedParams) => Promise<boolean>;
|
|
1853
1854
|
getApprovedAmount: (params: import("@swapkit/toolboxes/tron").TronApprovedParams) => Promise<bigint>;
|
|
1854
1855
|
};
|
|
1856
|
+
UNI: ChainWallet<Chain.Unichain> & {
|
|
1857
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1858
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
1859
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
1860
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1861
|
+
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1862
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1863
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1864
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1865
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1866
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1867
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1868
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1869
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1870
|
+
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
1871
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1872
|
+
funcName?: string;
|
|
1873
|
+
funcParams?: unknown[];
|
|
1874
|
+
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1875
|
+
data?: string;
|
|
1876
|
+
}) => Promise<bigint>;
|
|
1877
|
+
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
1878
|
+
l1GasPrice?: bigint;
|
|
1879
|
+
gasPrice?: bigint;
|
|
1880
|
+
maxFeePerGas?: bigint;
|
|
1881
|
+
maxPriorityFeePerGas?: bigint;
|
|
1882
|
+
}; }>;
|
|
1883
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
1884
|
+
feeOption: FeeOption;
|
|
1885
|
+
chain: EVMChain;
|
|
1886
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1887
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
1888
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
1889
|
+
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1890
|
+
feeOptionKey?: FeeOption;
|
|
1891
|
+
}) => Promise<string>;
|
|
1892
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1893
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1894
|
+
validateAddress: (address: string) => boolean;
|
|
1895
|
+
};
|
|
1896
|
+
XLAYER: ChainWallet<Chain.XLayer> & {
|
|
1897
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
1898
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
1899
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
1900
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
1901
|
+
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
1902
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
1903
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
1904
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
1905
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
1906
|
+
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1907
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
1908
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
1909
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
1910
|
+
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
1911
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
1912
|
+
funcName?: string;
|
|
1913
|
+
funcParams?: unknown[];
|
|
1914
|
+
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
1915
|
+
data?: string;
|
|
1916
|
+
}) => Promise<bigint>;
|
|
1917
|
+
estimateGasPrices: () => Promise<{ [key_2 in FeeOption]: {
|
|
1918
|
+
l1GasPrice?: bigint;
|
|
1919
|
+
gasPrice?: bigint;
|
|
1920
|
+
maxFeePerGas?: bigint;
|
|
1921
|
+
maxPriorityFeePerGas?: bigint;
|
|
1922
|
+
}; }>;
|
|
1923
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
1924
|
+
feeOption: FeeOption;
|
|
1925
|
+
chain: EVMChain;
|
|
1926
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1927
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
1928
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
1929
|
+
sendTransaction: ({ feeOptionKey, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
1930
|
+
feeOptionKey?: FeeOption;
|
|
1931
|
+
}) => Promise<string>;
|
|
1932
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
1933
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
1934
|
+
validateAddress: (address: string) => boolean;
|
|
1935
|
+
};
|
|
1855
1936
|
ZEC: ChainWallet<Chain.Zcash> & {
|
|
1856
1937
|
createKeysForPath: ({ phrase, derivationPath, }: {
|
|
1857
1938
|
phrase: string;
|
|
1858
1939
|
derivationPath?: string;
|
|
1859
|
-
}) => import("
|
|
1940
|
+
}) => import("ecpair").ECPairInterface;
|
|
1860
1941
|
createTransaction: (buildTxParams: import("@swapkit/toolboxes/utxo").UTXOBuildTxParams) => Promise<{
|
|
1861
1942
|
inputs: import("@swapkit/toolboxes/utxo").UTXOType[];
|
|
1862
1943
|
outputs: import("@swapkit/toolboxes/utxo").TargetOutput[];
|