@swapkit/toolboxes 4.0.0-beta.67 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cosmos/index.cjs +2 -2
- package/dist/src/cosmos/index.cjs.map +8 -8
- package/dist/src/cosmos/index.js +2 -2
- package/dist/src/cosmos/index.js.map +8 -8
- package/dist/src/evm/index.cjs +2 -2
- package/dist/src/evm/index.cjs.map +13 -13
- package/dist/src/evm/index.js +2 -2
- package/dist/src/evm/index.js.map +13 -13
- package/dist/src/index.cjs +3 -3
- package/dist/src/index.cjs.map +46 -45
- package/dist/src/index.js +3 -3
- package/dist/src/index.js.map +46 -45
- package/dist/src/near/index.cjs +2 -2
- package/dist/src/near/index.cjs.map +8 -8
- package/dist/src/near/index.js +2 -2
- package/dist/src/near/index.js.map +8 -8
- package/dist/src/radix/index.cjs +2 -2
- package/dist/src/radix/index.cjs.map +3 -3
- package/dist/src/radix/index.js +2 -2
- package/dist/src/radix/index.js.map +3 -3
- package/dist/src/ripple/index.cjs +2 -2
- package/dist/src/ripple/index.cjs.map +3 -3
- package/dist/src/ripple/index.js +2 -2
- package/dist/src/ripple/index.js.map +3 -3
- package/dist/src/solana/index.cjs +2 -2
- package/dist/src/solana/index.cjs.map +4 -4
- package/dist/src/solana/index.js +2 -2
- package/dist/src/solana/index.js.map +4 -4
- package/dist/src/substrate/index.cjs +2 -2
- package/dist/src/substrate/index.cjs.map +5 -5
- package/dist/src/substrate/index.js +2 -2
- package/dist/src/substrate/index.js.map +5 -5
- package/dist/src/tron/index.cjs +2 -2
- package/dist/src/tron/index.cjs.map +5 -5
- package/dist/src/tron/index.js +2 -2
- package/dist/src/tron/index.js.map +5 -5
- package/dist/src/utxo/index.cjs +3 -3
- package/dist/src/utxo/index.cjs.map +14 -13
- package/dist/src/utxo/index.js +3 -3
- package/dist/src/utxo/index.js.map +14 -13
- package/dist/types/cosmos/thorchainUtils/addressFormat.d.ts.map +1 -1
- package/dist/types/cosmos/thorchainUtils/messages.d.ts +58 -58
- package/dist/types/cosmos/thorchainUtils/messages.d.ts.map +1 -1
- package/dist/types/cosmos/thorchainUtils/registry.d.ts.map +1 -1
- package/dist/types/cosmos/thorchainUtils/types/client-types.d.ts +2 -5
- package/dist/types/cosmos/thorchainUtils/types/client-types.d.ts.map +1 -1
- package/dist/types/cosmos/toolbox/cosmos.d.ts +19 -41
- package/dist/types/cosmos/toolbox/cosmos.d.ts.map +1 -1
- package/dist/types/cosmos/toolbox/thorchain.d.ts +45 -46
- package/dist/types/cosmos/toolbox/thorchain.d.ts.map +1 -1
- package/dist/types/cosmos/types.d.ts +5 -1
- package/dist/types/cosmos/types.d.ts.map +1 -1
- package/dist/types/cosmos/util.d.ts +12 -13
- package/dist/types/cosmos/util.d.ts.map +1 -1
- package/dist/types/evm/api.d.ts.map +1 -1
- package/dist/types/evm/contracts/op/gasOracle.d.ts.map +1 -1
- package/dist/types/evm/helpers.d.ts +1 -15
- package/dist/types/evm/helpers.d.ts.map +1 -1
- package/dist/types/evm/index.d.ts +1 -1
- package/dist/types/evm/index.d.ts.map +1 -1
- package/dist/types/evm/toolbox/baseEVMToolbox.d.ts +14 -14
- package/dist/types/evm/toolbox/baseEVMToolbox.d.ts.map +1 -1
- package/dist/types/evm/toolbox/evm.d.ts +108 -108
- package/dist/types/evm/toolbox/evm.d.ts.map +1 -1
- package/dist/types/evm/toolbox/index.d.ts +97 -29
- package/dist/types/evm/toolbox/index.d.ts.map +1 -1
- package/dist/types/evm/toolbox/op.d.ts +36 -24
- package/dist/types/evm/toolbox/op.d.ts.map +1 -1
- package/dist/types/evm/types.d.ts +1 -1
- package/dist/types/evm/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/near/helpers/core.d.ts +1 -1
- package/dist/types/near/helpers/core.d.ts.map +1 -1
- package/dist/types/near/helpers/gasEstimation.d.ts +5 -5
- package/dist/types/near/helpers/gasEstimation.d.ts.map +1 -1
- package/dist/types/near/helpers/nep141.d.ts.map +1 -1
- package/dist/types/near/index.d.ts +4 -4
- package/dist/types/near/index.d.ts.map +1 -1
- package/dist/types/near/toolbox.d.ts.map +1 -1
- package/dist/types/near/types/contract.d.ts.map +1 -1
- package/dist/types/near/types/nep141.d.ts.map +1 -1
- package/dist/types/near/types/toolbox.d.ts.map +1 -1
- package/dist/types/near/types.d.ts +2 -2
- package/dist/types/near/types.d.ts.map +1 -1
- package/dist/types/radix/index.d.ts +2 -2
- package/dist/types/radix/index.d.ts.map +1 -1
- package/dist/types/ripple/index.d.ts +14 -11
- package/dist/types/ripple/index.d.ts.map +1 -1
- package/dist/types/solana/index.d.ts.map +1 -1
- package/dist/types/solana/toolbox.d.ts +10 -10
- package/dist/types/solana/toolbox.d.ts.map +1 -1
- package/dist/types/substrate/balance.d.ts.map +1 -1
- package/dist/types/substrate/substrate.d.ts +45 -45
- package/dist/types/substrate/substrate.d.ts.map +1 -1
- package/dist/types/substrate/types.d.ts +12 -12
- package/dist/types/substrate/types.d.ts.map +1 -1
- package/dist/types/tron/helpers/trongrid.d.ts.map +1 -1
- package/dist/types/tron/index.d.ts +2 -2
- package/dist/types/tron/index.d.ts.map +1 -1
- package/dist/types/tron/toolbox.d.ts +1 -1
- package/dist/types/tron/toolbox.d.ts.map +1 -1
- package/dist/types/tron/types.d.ts.map +1 -1
- package/dist/types/utxo/helpers/api.d.ts +15 -15
- package/dist/types/utxo/helpers/api.d.ts.map +1 -1
- package/dist/types/utxo/helpers/bchaddrjs.d.ts.map +1 -1
- package/dist/types/utxo/helpers/coinselect.d.ts +4 -4
- package/dist/types/utxo/helpers/coinselect.d.ts.map +1 -1
- package/dist/types/utxo/helpers/txSize.d.ts.map +1 -1
- package/dist/types/utxo/index.d.ts +1 -1
- package/dist/types/utxo/index.d.ts.map +1 -1
- package/dist/types/utxo/toolbox/bitcoinCash.d.ts +26 -38
- package/dist/types/utxo/toolbox/bitcoinCash.d.ts.map +1 -1
- package/dist/types/utxo/toolbox/index.d.ts +3 -3
- package/dist/types/utxo/toolbox/index.d.ts.map +1 -1
- package/dist/types/utxo/toolbox/utxo.d.ts +27 -38
- package/dist/types/utxo/toolbox/utxo.d.ts.map +1 -1
- package/dist/types/utxo/toolbox/validators.d.ts +4 -0
- package/dist/types/utxo/toolbox/validators.d.ts.map +1 -0
- package/dist/types/utxo/toolbox/zcash.d.ts +26 -37
- package/dist/types/utxo/toolbox/zcash.d.ts.map +1 -1
- package/dist/types/utxo/types.d.ts.map +1 -1
- package/package.json +15 -22
|
@@ -5,24 +5,19 @@ export declare function ETHToolbox({ provider, ...signer }: EVMToolboxParams): P
|
|
|
5
5
|
address: string;
|
|
6
6
|
data: string;
|
|
7
7
|
}[], multicallAddress?: string, funcName?: string, feeOptionKey?: FeeOption) => Promise<string>;
|
|
8
|
-
getNetworkParams: () => undefined;
|
|
9
8
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
10
|
-
|
|
11
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
12
|
-
feeOption: FeeOption;
|
|
13
|
-
chain: EVMChain;
|
|
14
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
15
|
-
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
16
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
17
|
-
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
9
|
+
getNetworkParams: () => undefined;
|
|
18
10
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
19
11
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
20
12
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
21
|
-
|
|
13
|
+
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
14
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
22
15
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
23
16
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
24
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
25
17
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
18
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
19
|
+
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
20
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
26
21
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("..").EVMTransferParams & {
|
|
27
22
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
28
23
|
funcName?: string;
|
|
@@ -36,7 +31,12 @@ export declare function ETHToolbox({ provider, ...signer }: EVMToolboxParams): P
|
|
|
36
31
|
maxFeePerGas?: bigint;
|
|
37
32
|
maxPriorityFeePerGas?: bigint;
|
|
38
33
|
}; }>;
|
|
39
|
-
|
|
34
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
35
|
+
feeOption: FeeOption;
|
|
36
|
+
chain: EVMChain;
|
|
37
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
38
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
39
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
40
40
|
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
41
41
|
feeOptionKey?: FeeOption;
|
|
42
42
|
}) => Promise<string>;
|
|
@@ -45,24 +45,19 @@ export declare function ETHToolbox({ provider, ...signer }: EVMToolboxParams): P
|
|
|
45
45
|
validateAddress: (address: string) => boolean;
|
|
46
46
|
}>;
|
|
47
47
|
export declare const ARBToolbox: ({ provider: providerParam, ...toolboxSignerParams }: EVMToolboxParams) => Promise<{
|
|
48
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
49
48
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
50
|
-
|
|
51
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
52
|
-
feeOption: FeeOption;
|
|
53
|
-
chain: EVMChain;
|
|
54
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
55
|
-
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
56
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
57
|
-
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
49
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
58
50
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
59
51
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
60
52
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
61
|
-
|
|
53
|
+
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
54
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
62
55
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
63
56
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
64
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
65
57
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
58
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
59
|
+
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
60
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
66
61
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("..").EVMTransferParams & {
|
|
67
62
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
68
63
|
funcName?: string;
|
|
@@ -76,7 +71,12 @@ export declare const ARBToolbox: ({ provider: providerParam, ...toolboxSignerPar
|
|
|
76
71
|
maxFeePerGas?: bigint;
|
|
77
72
|
maxPriorityFeePerGas?: bigint;
|
|
78
73
|
}; }>;
|
|
79
|
-
|
|
74
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
75
|
+
feeOption: FeeOption;
|
|
76
|
+
chain: EVMChain;
|
|
77
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
78
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
79
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
80
80
|
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
81
81
|
feeOptionKey?: FeeOption;
|
|
82
82
|
}) => Promise<string>;
|
|
@@ -85,24 +85,19 @@ export declare const ARBToolbox: ({ provider: providerParam, ...toolboxSignerPar
|
|
|
85
85
|
validateAddress: (address: string) => boolean;
|
|
86
86
|
}>;
|
|
87
87
|
export declare const AURORAToolbox: ({ provider: providerParam, ...toolboxSignerParams }: EVMToolboxParams) => Promise<{
|
|
88
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
89
88
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
90
|
-
|
|
91
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
92
|
-
feeOption: FeeOption;
|
|
93
|
-
chain: EVMChain;
|
|
94
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
95
|
-
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
96
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
97
|
-
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
89
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
98
90
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
99
91
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
100
92
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
101
|
-
|
|
93
|
+
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
94
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
102
95
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
103
96
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
104
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
105
97
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
98
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
99
|
+
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
100
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
106
101
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("..").EVMTransferParams & {
|
|
107
102
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
108
103
|
funcName?: string;
|
|
@@ -116,7 +111,12 @@ export declare const AURORAToolbox: ({ provider: providerParam, ...toolboxSigner
|
|
|
116
111
|
maxFeePerGas?: bigint;
|
|
117
112
|
maxPriorityFeePerGas?: bigint;
|
|
118
113
|
}; }>;
|
|
119
|
-
|
|
114
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
115
|
+
feeOption: FeeOption;
|
|
116
|
+
chain: EVMChain;
|
|
117
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
118
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
119
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
120
120
|
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
121
121
|
feeOptionKey?: FeeOption;
|
|
122
122
|
}) => Promise<string>;
|
|
@@ -125,24 +125,19 @@ export declare const AURORAToolbox: ({ provider: providerParam, ...toolboxSigner
|
|
|
125
125
|
validateAddress: (address: string) => boolean;
|
|
126
126
|
}>;
|
|
127
127
|
export declare const AVAXToolbox: ({ provider: providerParam, ...toolboxSignerParams }: EVMToolboxParams) => Promise<{
|
|
128
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
129
128
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
130
|
-
|
|
131
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
132
|
-
feeOption: FeeOption;
|
|
133
|
-
chain: EVMChain;
|
|
134
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
135
|
-
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
136
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
137
|
-
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
129
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
138
130
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
139
131
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
140
132
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
141
|
-
|
|
133
|
+
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
134
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
142
135
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
143
136
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
144
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
145
137
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
138
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
139
|
+
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
140
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
146
141
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("..").EVMTransferParams & {
|
|
147
142
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
148
143
|
funcName?: string;
|
|
@@ -156,7 +151,12 @@ export declare const AVAXToolbox: ({ provider: providerParam, ...toolboxSignerPa
|
|
|
156
151
|
maxFeePerGas?: bigint;
|
|
157
152
|
maxPriorityFeePerGas?: bigint;
|
|
158
153
|
}; }>;
|
|
159
|
-
|
|
154
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
155
|
+
feeOption: FeeOption;
|
|
156
|
+
chain: EVMChain;
|
|
157
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
158
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
159
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
160
160
|
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
161
161
|
feeOptionKey?: FeeOption;
|
|
162
162
|
}) => Promise<string>;
|
|
@@ -165,24 +165,19 @@ export declare const AVAXToolbox: ({ provider: providerParam, ...toolboxSignerPa
|
|
|
165
165
|
validateAddress: (address: string) => boolean;
|
|
166
166
|
}>;
|
|
167
167
|
export declare const BASEToolbox: ({ provider: providerParam, ...toolboxSignerParams }: EVMToolboxParams) => Promise<{
|
|
168
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
169
168
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
170
|
-
|
|
171
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
172
|
-
feeOption: FeeOption;
|
|
173
|
-
chain: EVMChain;
|
|
174
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
175
|
-
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
176
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
177
|
-
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
169
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
178
170
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
179
171
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
180
172
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
181
|
-
|
|
173
|
+
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
174
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
182
175
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
183
176
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
184
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
185
177
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
178
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
179
|
+
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
180
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
186
181
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("..").EVMTransferParams & {
|
|
187
182
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
188
183
|
funcName?: string;
|
|
@@ -196,7 +191,12 @@ export declare const BASEToolbox: ({ provider: providerParam, ...toolboxSignerPa
|
|
|
196
191
|
maxFeePerGas?: bigint;
|
|
197
192
|
maxPriorityFeePerGas?: bigint;
|
|
198
193
|
}; }>;
|
|
199
|
-
|
|
194
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
195
|
+
feeOption: FeeOption;
|
|
196
|
+
chain: EVMChain;
|
|
197
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
198
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
199
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
200
200
|
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
201
201
|
feeOptionKey?: FeeOption;
|
|
202
202
|
}) => Promise<string>;
|
|
@@ -205,24 +205,19 @@ export declare const BASEToolbox: ({ provider: providerParam, ...toolboxSignerPa
|
|
|
205
205
|
validateAddress: (address: string) => boolean;
|
|
206
206
|
}>;
|
|
207
207
|
export declare const BERAToolbox: ({ provider: providerParam, ...toolboxSignerParams }: EVMToolboxParams) => Promise<{
|
|
208
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
209
208
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
210
|
-
|
|
211
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
212
|
-
feeOption: FeeOption;
|
|
213
|
-
chain: EVMChain;
|
|
214
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
215
|
-
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
216
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
217
|
-
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
209
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
218
210
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
219
211
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
220
212
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
221
|
-
|
|
213
|
+
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
214
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
222
215
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
223
216
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
224
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
225
217
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
218
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
219
|
+
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
220
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
226
221
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("..").EVMTransferParams & {
|
|
227
222
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
228
223
|
funcName?: string;
|
|
@@ -236,7 +231,12 @@ export declare const BERAToolbox: ({ provider: providerParam, ...toolboxSignerPa
|
|
|
236
231
|
maxFeePerGas?: bigint;
|
|
237
232
|
maxPriorityFeePerGas?: bigint;
|
|
238
233
|
}; }>;
|
|
239
|
-
|
|
234
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
235
|
+
feeOption: FeeOption;
|
|
236
|
+
chain: EVMChain;
|
|
237
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
238
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
239
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
240
240
|
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
241
241
|
feeOptionKey?: FeeOption;
|
|
242
242
|
}) => Promise<string>;
|
|
@@ -245,24 +245,19 @@ export declare const BERAToolbox: ({ provider: providerParam, ...toolboxSignerPa
|
|
|
245
245
|
validateAddress: (address: string) => boolean;
|
|
246
246
|
}>;
|
|
247
247
|
export declare const BSCToolbox: ({ provider: providerParam, ...toolboxSignerParams }: EVMToolboxParams) => Promise<{
|
|
248
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
249
248
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
250
|
-
|
|
251
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
252
|
-
feeOption: FeeOption;
|
|
253
|
-
chain: EVMChain;
|
|
254
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
255
|
-
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
256
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
257
|
-
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
249
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
258
250
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
259
251
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
260
252
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
261
|
-
|
|
253
|
+
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
254
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
262
255
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
263
256
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
264
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
265
257
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
258
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
259
|
+
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
260
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
266
261
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("..").EVMTransferParams & {
|
|
267
262
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
268
263
|
funcName?: string;
|
|
@@ -276,7 +271,12 @@ export declare const BSCToolbox: ({ provider: providerParam, ...toolboxSignerPar
|
|
|
276
271
|
maxFeePerGas?: bigint;
|
|
277
272
|
maxPriorityFeePerGas?: bigint;
|
|
278
273
|
}; }>;
|
|
279
|
-
|
|
274
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
275
|
+
feeOption: FeeOption;
|
|
276
|
+
chain: EVMChain;
|
|
277
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
278
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
279
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
280
280
|
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
281
281
|
feeOptionKey?: FeeOption;
|
|
282
282
|
}) => Promise<string>;
|
|
@@ -285,24 +285,19 @@ export declare const BSCToolbox: ({ provider: providerParam, ...toolboxSignerPar
|
|
|
285
285
|
validateAddress: (address: string) => boolean;
|
|
286
286
|
}>;
|
|
287
287
|
export declare const GNOToolbox: ({ provider: providerParam, ...toolboxSignerParams }: EVMToolboxParams) => Promise<{
|
|
288
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
289
288
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
290
|
-
|
|
291
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
292
|
-
feeOption: FeeOption;
|
|
293
|
-
chain: EVMChain;
|
|
294
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
295
|
-
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
296
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
297
|
-
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
289
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
298
290
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
299
291
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
300
292
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
301
|
-
|
|
293
|
+
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
294
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
302
295
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
303
296
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
304
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
305
297
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
298
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
299
|
+
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
300
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
306
301
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("..").EVMTransferParams & {
|
|
307
302
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
308
303
|
funcName?: string;
|
|
@@ -316,7 +311,12 @@ export declare const GNOToolbox: ({ provider: providerParam, ...toolboxSignerPar
|
|
|
316
311
|
maxFeePerGas?: bigint;
|
|
317
312
|
maxPriorityFeePerGas?: bigint;
|
|
318
313
|
}; }>;
|
|
319
|
-
|
|
314
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
315
|
+
feeOption: FeeOption;
|
|
316
|
+
chain: EVMChain;
|
|
317
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
318
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
319
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
320
320
|
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
321
321
|
feeOptionKey?: FeeOption;
|
|
322
322
|
}) => Promise<string>;
|
|
@@ -325,24 +325,19 @@ export declare const GNOToolbox: ({ provider: providerParam, ...toolboxSignerPar
|
|
|
325
325
|
validateAddress: (address: string) => boolean;
|
|
326
326
|
}>;
|
|
327
327
|
export declare const MATICToolbox: ({ provider: providerParam, ...toolboxSignerParams }: EVMToolboxParams) => Promise<{
|
|
328
|
-
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
329
328
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
330
|
-
|
|
331
|
-
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
332
|
-
feeOption: FeeOption;
|
|
333
|
-
chain: EVMChain;
|
|
334
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
335
|
-
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
336
|
-
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides, }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
337
|
-
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
329
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams;
|
|
338
330
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
|
|
339
331
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
|
|
340
332
|
broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
|
|
341
|
-
|
|
333
|
+
call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
|
|
334
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<import("ethers").ContractTransaction>;
|
|
342
335
|
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
343
336
|
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").CallParams) => Promise<import("ethers").ContractTransaction>;
|
|
344
|
-
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
345
337
|
createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
338
|
+
createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
|
|
339
|
+
EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
340
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").EstimateCallParams) => Promise<bigint>;
|
|
346
341
|
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("..").EVMTransferParams & {
|
|
347
342
|
assetValue: import("@swapkit/helpers").AssetValue;
|
|
348
343
|
funcName?: string;
|
|
@@ -356,7 +351,12 @@ export declare const MATICToolbox: ({ provider: providerParam, ...toolboxSignerP
|
|
|
356
351
|
maxFeePerGas?: bigint;
|
|
357
352
|
maxPriorityFeePerGas?: bigint;
|
|
358
353
|
}; }>;
|
|
359
|
-
|
|
354
|
+
estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
|
|
355
|
+
feeOption: FeeOption;
|
|
356
|
+
chain: EVMChain;
|
|
357
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
358
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
359
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
|
|
360
360
|
sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
|
|
361
361
|
feeOptionKey?: FeeOption;
|
|
362
362
|
}) => Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../../src/evm/toolbox/evm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,QAAQ,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../../src/evm/toolbox/evm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,QAAQ,EAAE,SAAS,EAAa,MAAM,kBAAkB,CAAC;AAO9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjD,wBAAsB,UAAU,CAAC,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,EAAE,gBAAgB;4BAG1D;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,+DAGjC,SAAS;;;;;;;;;;;;;;;;gBAyCgqa,CAAC;kBAAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;kBAA3sS,CAAC;gBAAkB,CAAC;oBAAsB,CAAC;4BAA8B,CAAC;;;;;;;;;oBAA4uU,CAAC;;;;;GA5Br3c;AAED,eAAO,MAAM,UAAU,wDAUuE,gBAAgB;;;;;;;;;;;;;;;;gBAgB6ka,CAAC;kBAAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;kBAA3sS,CAAC;gBAAkB,CAAC;oBAAsB,CAAC;4BAA8B,CAAC;;;;;;;;;oBAA4uU,CAAC;;;;;EA1B5zc,CAAC;AAC3D,eAAO,MAAM,aAAa,wDASoE,gBAAgB;;;;;;;;;;;;;;;;gBAgB6ka,CAAC;kBAAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;kBAA3sS,CAAC;gBAAkB,CAAC;oBAAsB,CAAC;4BAA8B,CAAC;;;;;;;;;oBAA4uU,CAAC;;;;;EAzB3zc,CAAC;AAC5D,eAAO,MAAM,WAAW,wDAQsE,gBAAgB;;;;;;;;;;;;;;;;gBAgB6ka,CAAC;kBAAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;kBAA3sS,CAAC;gBAAkB,CAAC;oBAAsB,CAAC;4BAA8B,CAAC;;;;;;;;;oBAA4uU,CAAC;;;;;EAxB1zc,CAAC;AAC7D,eAAO,MAAM,WAAW,wDAOsE,gBAAgB;;;;;;;;;;;;;;;;gBAgB6ka,CAAC;kBAAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;kBAA3sS,CAAC;gBAAkB,CAAC;oBAAsB,CAAC;4BAA8B,CAAC;;;;;;;;;oBAA4uU,CAAC;;;;;EAvB/zc,CAAC;AACxD,eAAO,MAAM,WAAW,wDAMsE,gBAAgB;;;;;;;;;;;;;;;;gBAgB6ka,CAAC;kBAAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;kBAA3sS,CAAC;gBAAkB,CAAC;oBAAsB,CAAC;4BAA8B,CAAC;;;;;;;;;oBAA4uU,CAAC;;;;;EAtB1zc,CAAC;AAC7D,eAAO,MAAM,UAAU,wDAKuE,gBAAgB;;;;;;;;;;;;;;;;gBAgB6ka,CAAC;kBAAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;kBAA3sS,CAAC;gBAAkB,CAAC;oBAAsB,CAAC;4BAA8B,CAAC;;;;;;;;;oBAA4uU,CAAC;;;;;EArBnzc,CAAC;AACpE,eAAO,MAAM,UAAU,wDAIuE,gBAAgB;;;;;;;;;;;;;;;;gBAgB6ka,CAAC;kBAAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;kBAA3sS,CAAC;gBAAkB,CAAC;oBAAsB,CAAC;4BAA8B,CAAC;;;;;;;;;oBAA4uU,CAAC;;;;;EApB9zc,CAAC;AACzD,eAAO,MAAM,YAAY,wDAGqE,gBAAgB;;;;;;;;;;;;;;;;gBAgB6ka,CAAC;kBAAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;kBAA3sS,CAAC;gBAAkB,CAAC;oBAAsB,CAAC;4BAA8B,CAAC;;;;;;;;;oBAA4uU,CAAC;;;;;EAnB3zc,CAAC"}
|