@swapkit/toolboxes 5.2.1 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/{chunk-xbdjxeqd.js → chunk-4428244x.js} +1 -1
- package/dist/{chunk-nvfkjbyq.js → chunk-as9fracn.js} +2 -2
- package/dist/chunk-dssawneq.js +1 -0
- package/dist/chunk-qsbf0z90.js +1 -0
- package/dist/chunk-rn33j2bm.js +2 -0
- package/dist/src/aleo/index.js +1 -1
- package/dist/src/aptos/index.js +1 -1
- package/dist/src/cardano/index.js +1 -1
- package/dist/src/cosmos/index.js +1 -1
- package/dist/src/evm/index.js +1 -1
- package/dist/src/hypercore/index.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/near/index.js +1 -1
- package/dist/src/radix/index.js +1 -1
- package/dist/src/ripple/index.js +1 -1
- package/dist/src/solana/index.js +1 -1
- package/dist/src/starknet/index.js +1 -1
- package/dist/src/stellar/index.js +1 -1
- package/dist/src/substrate/index.js +1 -1
- package/dist/src/sui/index.js +1 -1
- package/dist/src/ton/index.js +1 -1
- package/dist/src/tron/index.js +1 -1
- package/dist/src/utxo/index.js +1 -1
- package/dist/types/evm/toolbox/baseEVMToolbox.d.ts +2 -2
- package/dist/types/evm/toolbox/evm.d.ts +218 -46
- package/dist/types/evm/toolbox/op.d.ts +4 -4
- package/dist/types/evm/types.d.ts +2 -1
- package/dist/types/tron/helpers/trongrid.d.ts +2 -2
- package/dist/types/tron/types.d.ts +7 -0
- package/dist/types/utxo/__tests__/fixtures/utxo.d.ts +178 -0
- package/dist/types/utxo/helpers/bchaddrjs.d.ts +17 -1
- package/dist/types/utxo/helpers/txSize.d.ts +7 -5
- package/dist/types/utxo/index.d.ts +1 -1
- package/dist/types/utxo/toolbox/bitcoinCash.d.ts +1 -0
- package/dist/types/utxo/toolbox/index.d.ts +1 -1
- package/dist/types/utxo/toolbox/utxo.d.ts +6 -0
- package/dist/types/utxo/toolbox/validators.d.ts +2 -1
- package/dist/types/utxo/toolbox/zcash.d.ts +1 -0
- package/package.json +2 -2
- package/dist/chunk-44m22jy1.js +0 -1
- package/dist/chunk-ye1j5pz2.js +0 -2
- package/dist/chunk-zhn86hw6.js +0 -1
|
@@ -7,9 +7,9 @@ export declare function ETHToolbox(params: EVMToolboxParams): {
|
|
|
7
7
|
}[], multicallAddress?: string, funcName?: string, feeOptionKey?: FeeOption) => Promise<string>;
|
|
8
8
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
9
9
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
10
|
-
broadcastTransaction: (
|
|
10
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
11
11
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
12
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
12
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
13
13
|
value: string;
|
|
14
14
|
to: string;
|
|
15
15
|
data: string;
|
|
@@ -179,9 +179,9 @@ export declare function ETHToolbox(params: EVMToolboxParams): {
|
|
|
179
179
|
export declare const ADIToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
180
180
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
181
181
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
182
|
-
broadcastTransaction: (
|
|
182
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
183
183
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
184
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
184
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
185
185
|
value: string;
|
|
186
186
|
to: string;
|
|
187
187
|
data: string;
|
|
@@ -351,9 +351,181 @@ export declare const ADIToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
351
351
|
export declare const ARBToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
352
352
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
353
353
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
354
|
-
broadcastTransaction: (
|
|
354
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
355
355
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
356
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
356
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
357
|
+
value: string;
|
|
358
|
+
to: string;
|
|
359
|
+
data: string;
|
|
360
|
+
from?: string;
|
|
361
|
+
type?: number;
|
|
362
|
+
nonce?: number;
|
|
363
|
+
gasLimit?: bigint;
|
|
364
|
+
gasPrice?: bigint;
|
|
365
|
+
maxPriorityFeePerGas?: bigint;
|
|
366
|
+
maxFeePerGas?: bigint;
|
|
367
|
+
chainId?: bigint;
|
|
368
|
+
accessList?: import("ethers").AccessList;
|
|
369
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
370
|
+
customData?: any;
|
|
371
|
+
blockTag?: import("ethers").BlockTag;
|
|
372
|
+
enableCcipRead?: boolean;
|
|
373
|
+
}>;
|
|
374
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
375
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").CallParams) => Promise<{
|
|
376
|
+
value: string;
|
|
377
|
+
to: string;
|
|
378
|
+
data: string;
|
|
379
|
+
from?: string;
|
|
380
|
+
type?: number;
|
|
381
|
+
nonce?: number;
|
|
382
|
+
gasLimit?: bigint;
|
|
383
|
+
gasPrice?: bigint;
|
|
384
|
+
maxPriorityFeePerGas?: bigint;
|
|
385
|
+
maxFeePerGas?: bigint;
|
|
386
|
+
chainId?: bigint;
|
|
387
|
+
accessList?: import("ethers").AccessList;
|
|
388
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
389
|
+
customData?: any;
|
|
390
|
+
blockTag?: import("ethers").BlockTag;
|
|
391
|
+
enableCcipRead?: boolean;
|
|
392
|
+
}>;
|
|
393
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
394
|
+
gasLimit: bigint;
|
|
395
|
+
value: string;
|
|
396
|
+
data: string;
|
|
397
|
+
from: string;
|
|
398
|
+
to: string;
|
|
399
|
+
maxFeePerGas: bigint;
|
|
400
|
+
maxPriorityFeePerGas: bigint;
|
|
401
|
+
gasPrice?: undefined;
|
|
402
|
+
type?: number | undefined;
|
|
403
|
+
nonce?: number | undefined;
|
|
404
|
+
} | {
|
|
405
|
+
gasLimit: bigint;
|
|
406
|
+
value: string;
|
|
407
|
+
data: string;
|
|
408
|
+
from: string;
|
|
409
|
+
to: string;
|
|
410
|
+
gasPrice: bigint;
|
|
411
|
+
maxFeePerGas?: undefined;
|
|
412
|
+
maxPriorityFeePerGas?: undefined;
|
|
413
|
+
type?: number | undefined;
|
|
414
|
+
nonce?: number | undefined;
|
|
415
|
+
} | {
|
|
416
|
+
value: string;
|
|
417
|
+
to: string;
|
|
418
|
+
data: string;
|
|
419
|
+
from?: string;
|
|
420
|
+
type?: number;
|
|
421
|
+
nonce?: number;
|
|
422
|
+
gasLimit?: bigint;
|
|
423
|
+
gasPrice?: bigint;
|
|
424
|
+
maxPriorityFeePerGas?: bigint;
|
|
425
|
+
maxFeePerGas?: bigint;
|
|
426
|
+
chainId?: bigint;
|
|
427
|
+
accessList?: import("ethers").AccessList;
|
|
428
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
429
|
+
customData?: any;
|
|
430
|
+
blockTag?: import("ethers").BlockTag;
|
|
431
|
+
enableCcipRead?: boolean;
|
|
432
|
+
}>;
|
|
433
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<{
|
|
434
|
+
gasLimit: bigint;
|
|
435
|
+
value: string;
|
|
436
|
+
data: string;
|
|
437
|
+
from: string;
|
|
438
|
+
to: string;
|
|
439
|
+
maxFeePerGas: bigint;
|
|
440
|
+
maxPriorityFeePerGas: bigint;
|
|
441
|
+
gasPrice?: undefined;
|
|
442
|
+
type?: number | undefined;
|
|
443
|
+
nonce?: number | undefined;
|
|
444
|
+
} | {
|
|
445
|
+
gasLimit: bigint;
|
|
446
|
+
value: string;
|
|
447
|
+
data: string;
|
|
448
|
+
from: string;
|
|
449
|
+
to: string;
|
|
450
|
+
gasPrice: bigint;
|
|
451
|
+
maxFeePerGas?: undefined;
|
|
452
|
+
maxPriorityFeePerGas?: undefined;
|
|
453
|
+
type?: number | undefined;
|
|
454
|
+
nonce?: number | undefined;
|
|
455
|
+
} | {
|
|
456
|
+
value: string;
|
|
457
|
+
to: string;
|
|
458
|
+
data: string;
|
|
459
|
+
from?: string;
|
|
460
|
+
type?: number;
|
|
461
|
+
nonce?: number;
|
|
462
|
+
gasLimit?: bigint;
|
|
463
|
+
gasPrice?: bigint;
|
|
464
|
+
maxPriorityFeePerGas?: bigint;
|
|
465
|
+
maxFeePerGas?: bigint;
|
|
466
|
+
chainId?: bigint;
|
|
467
|
+
accessList?: import("ethers").AccessList;
|
|
468
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
469
|
+
customData?: any;
|
|
470
|
+
blockTag?: import("ethers").BlockTag;
|
|
471
|
+
enableCcipRead?: boolean;
|
|
472
|
+
}>;
|
|
473
|
+
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
474
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
475
|
+
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("..").EVMTransferParams & {
|
|
476
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
477
|
+
funcName?: string;
|
|
478
|
+
funcParams?: unknown[];
|
|
479
|
+
txOverrides?: import("..").EVMTxParams;
|
|
480
|
+
data?: string;
|
|
481
|
+
}) => Promise<bigint>;
|
|
482
|
+
estimateGasPrices: () => Promise<{
|
|
483
|
+
average: {
|
|
484
|
+
gasPrice?: bigint;
|
|
485
|
+
l1GasPrice?: bigint;
|
|
486
|
+
maxFeePerGas?: bigint;
|
|
487
|
+
maxPriorityFeePerGas?: bigint;
|
|
488
|
+
};
|
|
489
|
+
fast: {
|
|
490
|
+
gasPrice?: bigint;
|
|
491
|
+
l1GasPrice?: bigint;
|
|
492
|
+
maxFeePerGas?: bigint;
|
|
493
|
+
maxPriorityFeePerGas?: bigint;
|
|
494
|
+
};
|
|
495
|
+
fastest: {
|
|
496
|
+
gasPrice?: bigint;
|
|
497
|
+
l1GasPrice?: bigint;
|
|
498
|
+
maxFeePerGas?: bigint;
|
|
499
|
+
maxPriorityFeePerGas?: bigint;
|
|
500
|
+
};
|
|
501
|
+
}>;
|
|
502
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("..").EIP1559TxParams & {
|
|
503
|
+
feeOption: FeeOption;
|
|
504
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
505
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
506
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
507
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
508
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
509
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("..").EVMTxParams & {
|
|
510
|
+
feeOptionKey?: FeeOption;
|
|
511
|
+
sweep?: boolean;
|
|
512
|
+
}) => Promise<string>;
|
|
513
|
+
signAuthorization: ((params: {
|
|
514
|
+
address: string;
|
|
515
|
+
nonce?: number | bigint;
|
|
516
|
+
chainId?: bigint;
|
|
517
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
518
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
519
|
+
signTypedData: (({ domain, types, value }: import("..").SignTypedDataParams) => Promise<string>) | undefined;
|
|
520
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
521
|
+
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
522
|
+
};
|
|
523
|
+
export declare const ARCToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
524
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
525
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
526
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
527
|
+
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
528
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
357
529
|
value: string;
|
|
358
530
|
to: string;
|
|
359
531
|
data: string;
|
|
@@ -523,9 +695,9 @@ export declare const ARBToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
523
695
|
export declare const AURORAToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
524
696
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
525
697
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
526
|
-
broadcastTransaction: (
|
|
698
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
527
699
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
528
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
700
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
529
701
|
value: string;
|
|
530
702
|
to: string;
|
|
531
703
|
data: string;
|
|
@@ -695,9 +867,9 @@ export declare const AURORAToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
695
867
|
export declare const AVAXToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
696
868
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
697
869
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
698
|
-
broadcastTransaction: (
|
|
870
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
699
871
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
700
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
872
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
701
873
|
value: string;
|
|
702
874
|
to: string;
|
|
703
875
|
data: string;
|
|
@@ -874,9 +1046,9 @@ export declare const BASEToolbox: ({ provider, ...toolboxSignerParams }: EVMTool
|
|
|
874
1046
|
getL1GasPrice: () => Promise<bigint | undefined>;
|
|
875
1047
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
876
1048
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
877
|
-
broadcastTransaction: (
|
|
1049
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
878
1050
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
879
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
1051
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
880
1052
|
value: string;
|
|
881
1053
|
to: string;
|
|
882
1054
|
data: string;
|
|
@@ -1045,9 +1217,9 @@ export declare const BASEToolbox: ({ provider, ...toolboxSignerParams }: EVMTool
|
|
|
1045
1217
|
export declare const BERAToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
1046
1218
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
1047
1219
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
1048
|
-
broadcastTransaction: (
|
|
1220
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
1049
1221
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
1050
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
1222
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
1051
1223
|
value: string;
|
|
1052
1224
|
to: string;
|
|
1053
1225
|
data: string;
|
|
@@ -1217,9 +1389,9 @@ export declare const BERAToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1217
1389
|
export declare const BSCToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
1218
1390
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
1219
1391
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
1220
|
-
broadcastTransaction: (
|
|
1392
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
1221
1393
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
1222
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
1394
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
1223
1395
|
value: string;
|
|
1224
1396
|
to: string;
|
|
1225
1397
|
data: string;
|
|
@@ -1389,9 +1561,9 @@ export declare const BSCToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
1389
1561
|
export declare const BotanixToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
1390
1562
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
1391
1563
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
1392
|
-
broadcastTransaction: (
|
|
1564
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
1393
1565
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
1394
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
1566
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
1395
1567
|
value: string;
|
|
1396
1568
|
to: string;
|
|
1397
1569
|
data: string;
|
|
@@ -1561,9 +1733,9 @@ export declare const BotanixToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
1561
1733
|
export declare const COREToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
1562
1734
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
1563
1735
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
1564
|
-
broadcastTransaction: (
|
|
1736
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
1565
1737
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
1566
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
1738
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
1567
1739
|
value: string;
|
|
1568
1740
|
to: string;
|
|
1569
1741
|
data: string;
|
|
@@ -1733,9 +1905,9 @@ export declare const COREToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1733
1905
|
export declare const CORNToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
1734
1906
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
1735
1907
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
1736
|
-
broadcastTransaction: (
|
|
1908
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
1737
1909
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
1738
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
1910
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
1739
1911
|
value: string;
|
|
1740
1912
|
to: string;
|
|
1741
1913
|
data: string;
|
|
@@ -1905,9 +2077,9 @@ export declare const CORNToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
1905
2077
|
export declare const CROToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
1906
2078
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
1907
2079
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
1908
|
-
broadcastTransaction: (
|
|
2080
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
1909
2081
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
1910
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
2082
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
1911
2083
|
value: string;
|
|
1912
2084
|
to: string;
|
|
1913
2085
|
data: string;
|
|
@@ -2077,9 +2249,9 @@ export declare const CROToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
2077
2249
|
export declare const GNOToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
2078
2250
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
2079
2251
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
2080
|
-
broadcastTransaction: (
|
|
2252
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
2081
2253
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
2082
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
2254
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
2083
2255
|
value: string;
|
|
2084
2256
|
to: string;
|
|
2085
2257
|
data: string;
|
|
@@ -2249,9 +2421,9 @@ export declare const GNOToolbox: ({ provider, ...toolboxParams }: EVMToolboxPara
|
|
|
2249
2421
|
export declare const HOODToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
2250
2422
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
2251
2423
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
2252
|
-
broadcastTransaction: (
|
|
2424
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
2253
2425
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
2254
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
2426
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
2255
2427
|
value: string;
|
|
2256
2428
|
to: string;
|
|
2257
2429
|
data: string;
|
|
@@ -2421,9 +2593,9 @@ export declare const HOODToolbox: ({ provider, ...toolboxParams }: EVMToolboxPar
|
|
|
2421
2593
|
export declare const HYPEREVMToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
2422
2594
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
2423
2595
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
2424
|
-
broadcastTransaction: (
|
|
2596
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
2425
2597
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
2426
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
2598
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
2427
2599
|
value: string;
|
|
2428
2600
|
to: string;
|
|
2429
2601
|
data: string;
|
|
@@ -2593,9 +2765,9 @@ export declare const HYPEREVMToolbox: ({ provider, ...toolboxParams }: EVMToolbo
|
|
|
2593
2765
|
export declare const LINEAToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
2594
2766
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
2595
2767
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
2596
|
-
broadcastTransaction: (
|
|
2768
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
2597
2769
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
2598
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
2770
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
2599
2771
|
value: string;
|
|
2600
2772
|
to: string;
|
|
2601
2773
|
data: string;
|
|
@@ -2765,9 +2937,9 @@ export declare const LINEAToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
2765
2937
|
export declare const MATICToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
2766
2938
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
2767
2939
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
2768
|
-
broadcastTransaction: (
|
|
2940
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
2769
2941
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
2770
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
2942
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
2771
2943
|
value: string;
|
|
2772
2944
|
to: string;
|
|
2773
2945
|
data: string;
|
|
@@ -2937,9 +3109,9 @@ export declare const MATICToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
2937
3109
|
export declare const MEGAETHToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
2938
3110
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
2939
3111
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
2940
|
-
broadcastTransaction: (
|
|
3112
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
2941
3113
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
2942
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
3114
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
2943
3115
|
value: string;
|
|
2944
3116
|
to: string;
|
|
2945
3117
|
data: string;
|
|
@@ -3109,9 +3281,9 @@ export declare const MEGAETHToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
3109
3281
|
export declare const MONADToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
3110
3282
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
3111
3283
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
3112
|
-
broadcastTransaction: (
|
|
3284
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
3113
3285
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
3114
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
3286
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
3115
3287
|
value: string;
|
|
3116
3288
|
to: string;
|
|
3117
3289
|
data: string;
|
|
@@ -3281,9 +3453,9 @@ export declare const MONADToolbox: ({ provider, ...toolboxParams }: EVMToolboxPa
|
|
|
3281
3453
|
export declare const PLASMAToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
3282
3454
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
3283
3455
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
3284
|
-
broadcastTransaction: (
|
|
3456
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
3285
3457
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
3286
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
3458
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
3287
3459
|
value: string;
|
|
3288
3460
|
to: string;
|
|
3289
3461
|
data: string;
|
|
@@ -3453,9 +3625,9 @@ export declare const PLASMAToolbox: ({ provider, ...toolboxParams }: EVMToolboxP
|
|
|
3453
3625
|
export declare const SONICToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
3454
3626
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
3455
3627
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
3456
|
-
broadcastTransaction: (
|
|
3628
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
3457
3629
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
3458
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
3630
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
3459
3631
|
value: string;
|
|
3460
3632
|
to: string;
|
|
3461
3633
|
data: string;
|
|
@@ -3632,9 +3804,9 @@ export declare const UNIToolbox: ({ provider, ...toolboxSignerParams }: EVMToolb
|
|
|
3632
3804
|
getL1GasPrice: () => Promise<bigint | undefined>;
|
|
3633
3805
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
3634
3806
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
3635
|
-
broadcastTransaction: (
|
|
3807
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
3636
3808
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
3637
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
3809
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
3638
3810
|
value: string;
|
|
3639
3811
|
to: string;
|
|
3640
3812
|
data: string;
|
|
@@ -3803,9 +3975,9 @@ export declare const UNIToolbox: ({ provider, ...toolboxSignerParams }: EVMToolb
|
|
|
3803
3975
|
export declare const XLayerToolbox: ({ provider, ...toolboxParams }: EVMToolboxParams) => {
|
|
3804
3976
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
3805
3977
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
3806
|
-
broadcastTransaction: (
|
|
3978
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
3807
3979
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
3808
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
3980
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
3809
3981
|
value: string;
|
|
3810
3982
|
to: string;
|
|
3811
3983
|
data: string;
|
|
@@ -12,9 +12,9 @@ export declare function createOPStackToolbox(chain: Chain.Optimism | Chain.Base
|
|
|
12
12
|
getL1GasPrice: () => Promise<bigint | undefined>;
|
|
13
13
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
14
14
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
15
|
-
broadcastTransaction: (
|
|
15
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
16
16
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
17
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
17
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
18
18
|
value: string;
|
|
19
19
|
to: string;
|
|
20
20
|
data: string;
|
|
@@ -190,9 +190,9 @@ export declare const OPToolbox: ({ provider, ...toolboxSignerParams }: EVMToolbo
|
|
|
190
190
|
getL1GasPrice: () => Promise<bigint | undefined>;
|
|
191
191
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
192
192
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
193
|
-
broadcastTransaction: (
|
|
193
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
194
194
|
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
195
|
-
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<{
|
|
195
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<{
|
|
196
196
|
value: string;
|
|
197
197
|
to: string;
|
|
198
198
|
data: string;
|
|
@@ -2,7 +2,7 @@ import type { ChainSigner, DerivationPathArray, FeeOption, GenericCreateTransact
|
|
|
2
2
|
import { Chain } from "@swapkit/helpers";
|
|
3
3
|
import type { AuthorizationLike, BigNumberish, BrowserProvider, JsonFragment, JsonRpcSigner, Provider, Signer, TransactionRequest, TypedDataField } from "ethers";
|
|
4
4
|
import type { getProvider } from "./index";
|
|
5
|
-
import type { ADIToolbox, ARBToolbox, AURORAToolbox, AVAXToolbox, BASEToolbox, BERAToolbox, BSCToolbox, COREToolbox, CORNToolbox, CROToolbox, ETHToolbox, GNOToolbox, HOODToolbox, HYPEREVMToolbox, LINEAToolbox, MATICToolbox, MEGAETHToolbox, MONADToolbox, OPToolbox, PLASMAToolbox, SONICToolbox, UNIToolbox, XLayerToolbox } from "./toolbox";
|
|
5
|
+
import type { ADIToolbox, ARBToolbox, ARCToolbox, AURORAToolbox, AVAXToolbox, BASEToolbox, BERAToolbox, BSCToolbox, COREToolbox, CORNToolbox, CROToolbox, ETHToolbox, GNOToolbox, HOODToolbox, HYPEREVMToolbox, LINEAToolbox, MATICToolbox, MEGAETHToolbox, MONADToolbox, OPToolbox, PLASMAToolbox, SONICToolbox, UNIToolbox, XLayerToolbox } from "./toolbox";
|
|
6
6
|
export declare enum EthNetwork {
|
|
7
7
|
Test = "goerli",
|
|
8
8
|
Main = "homestead"
|
|
@@ -101,6 +101,7 @@ export type EVMToolboxAsyncParams = {
|
|
|
101
101
|
export type EVMToolboxes = {
|
|
102
102
|
[Chain.Adi]: ReturnType<typeof ADIToolbox>;
|
|
103
103
|
[Chain.Arbitrum]: ReturnType<typeof ARBToolbox>;
|
|
104
|
+
[Chain.Arc]: ReturnType<typeof ARCToolbox>;
|
|
104
105
|
[Chain.Aurora]: ReturnType<typeof AURORAToolbox>;
|
|
105
106
|
[Chain.Avalanche]: ReturnType<typeof AVAXToolbox>;
|
|
106
107
|
[Chain.Base]: ReturnType<typeof BASEToolbox>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TronSignedTransaction, TronTransaction } from "../types";
|
|
1
|
+
import type { TronGridResponse, TronSignedTransaction, TronTransaction } from "../types";
|
|
2
2
|
export declare function fetchAccountFromTronGrid(address: string): Promise<{
|
|
3
3
|
balance: number;
|
|
4
4
|
trc20: import("../types").TronGridTRC20Balance;
|
|
@@ -7,7 +7,7 @@ export declare function buildTrxTransaction({ from, to, amount }: {
|
|
|
7
7
|
from: string;
|
|
8
8
|
to: string;
|
|
9
9
|
amount: number;
|
|
10
|
-
}): Promise<TronTransaction
|
|
10
|
+
}): Promise<TronGridResponse<TronTransaction>>;
|
|
11
11
|
export declare function buildContractTransaction({ ownerAddress, contractAddress, functionSelector, parameter, feeLimit, callValue, }: {
|
|
12
12
|
ownerAddress: string;
|
|
13
13
|
contractAddress: string;
|
|
@@ -24,6 +24,13 @@ export interface TronTransaction {
|
|
|
24
24
|
contractRet?: string;
|
|
25
25
|
}>;
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* TronGrid answers contract validation failures with HTTP 200 and an `Error` field rather than an
|
|
29
|
+
* error status, so every response body may carry one alongside (or instead of) the expected shape.
|
|
30
|
+
*/
|
|
31
|
+
export type TronGridResponse<T> = T & {
|
|
32
|
+
Error?: string;
|
|
33
|
+
};
|
|
27
34
|
export type TronTransactionMetadata = {
|
|
28
35
|
data?: string;
|
|
29
36
|
value?: string;
|