@wagmi/core 2.11.7 → 2.11.8
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/esm/actions/codegen/createWriteContract.js.map +1 -1
- package/dist/esm/connectors/injected.js +7 -0
- package/dist/esm/connectors/injected.js.map +1 -1
- package/dist/esm/query/estimateGas.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/actions/codegen/createReadContract.d.ts +2 -2
- package/dist/types/actions/codegen/createReadContract.d.ts.map +1 -1
- package/dist/types/actions/codegen/createSimulateContract.d.ts +2 -2
- package/dist/types/actions/codegen/createSimulateContract.d.ts.map +1 -1
- package/dist/types/actions/codegen/createWatchContractEvent.d.ts +2 -2
- package/dist/types/actions/codegen/createWatchContractEvent.d.ts.map +1 -1
- package/dist/types/actions/codegen/createWriteContract.d.ts +4 -4
- package/dist/types/actions/codegen/createWriteContract.d.ts.map +1 -1
- package/dist/types/actions/connect.d.ts +2 -2
- package/dist/types/actions/connect.d.ts.map +1 -1
- package/dist/types/actions/deployContract.d.ts +2 -2
- package/dist/types/actions/deployContract.d.ts.map +1 -1
- package/dist/types/actions/estimateFeesPerGas.d.ts +5 -5
- package/dist/types/actions/estimateFeesPerGas.d.ts.map +1 -1
- package/dist/types/actions/estimateGas.d.ts +2 -2
- package/dist/types/actions/estimateGas.d.ts.map +1 -1
- package/dist/types/actions/estimateMaxPriorityFeePerGas.d.ts +2 -2
- package/dist/types/actions/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
- package/dist/types/actions/getBalance.d.ts +2 -2
- package/dist/types/actions/getBalance.d.ts.map +1 -1
- package/dist/types/actions/getBlock.d.ts +3 -3
- package/dist/types/actions/getBlock.d.ts.map +1 -1
- package/dist/types/actions/getBlockNumber.d.ts +2 -2
- package/dist/types/actions/getBlockNumber.d.ts.map +1 -1
- package/dist/types/actions/getBlockTransactionCount.d.ts +2 -2
- package/dist/types/actions/getBlockTransactionCount.d.ts.map +1 -1
- package/dist/types/actions/getBytecode.d.ts +2 -2
- package/dist/types/actions/getBytecode.d.ts.map +1 -1
- package/dist/types/actions/getClient.d.ts +2 -2
- package/dist/types/actions/getClient.d.ts.map +1 -1
- package/dist/types/actions/getConnections.d.ts +2 -2
- package/dist/types/actions/getConnections.d.ts.map +1 -1
- package/dist/types/actions/getConnectorClient.d.ts +3 -3
- package/dist/types/actions/getConnectorClient.d.ts.map +1 -1
- package/dist/types/actions/getEnsAddress.d.ts +2 -2
- package/dist/types/actions/getEnsAddress.d.ts.map +1 -1
- package/dist/types/actions/getEnsAvatar.d.ts +2 -2
- package/dist/types/actions/getEnsAvatar.d.ts.map +1 -1
- package/dist/types/actions/getEnsName.d.ts +2 -2
- package/dist/types/actions/getEnsName.d.ts.map +1 -1
- package/dist/types/actions/getEnsResolver.d.ts +2 -2
- package/dist/types/actions/getEnsResolver.d.ts.map +1 -1
- package/dist/types/actions/getEnsText.d.ts +2 -2
- package/dist/types/actions/getEnsText.d.ts.map +1 -1
- package/dist/types/actions/getFeeHistory.d.ts +2 -2
- package/dist/types/actions/getFeeHistory.d.ts.map +1 -1
- package/dist/types/actions/getGasPrice.d.ts +2 -2
- package/dist/types/actions/getGasPrice.d.ts.map +1 -1
- package/dist/types/actions/getProof.d.ts +2 -2
- package/dist/types/actions/getProof.d.ts.map +1 -1
- package/dist/types/actions/getPublicClient.d.ts +2 -2
- package/dist/types/actions/getPublicClient.d.ts.map +1 -1
- package/dist/types/actions/getStorageAt.d.ts +2 -2
- package/dist/types/actions/getStorageAt.d.ts.map +1 -1
- package/dist/types/actions/getToken.d.ts +2 -2
- package/dist/types/actions/getToken.d.ts.map +1 -1
- package/dist/types/actions/getTransaction.d.ts +3 -3
- package/dist/types/actions/getTransaction.d.ts.map +1 -1
- package/dist/types/actions/getTransactionCount.d.ts +2 -2
- package/dist/types/actions/getTransactionCount.d.ts.map +1 -1
- package/dist/types/actions/getTransactionReceipt.d.ts +3 -3
- package/dist/types/actions/getTransactionReceipt.d.ts.map +1 -1
- package/dist/types/actions/getWalletClient.d.ts +2 -2
- package/dist/types/actions/getWalletClient.d.ts.map +1 -1
- package/dist/types/actions/prepareTransactionRequest.d.ts +3 -3
- package/dist/types/actions/prepareTransactionRequest.d.ts.map +1 -1
- package/dist/types/actions/reconnect.d.ts +2 -2
- package/dist/types/actions/reconnect.d.ts.map +1 -1
- package/dist/types/actions/sendTransaction.d.ts +2 -2
- package/dist/types/actions/sendTransaction.d.ts.map +1 -1
- package/dist/types/actions/signMessage.d.ts +2 -2
- package/dist/types/actions/signMessage.d.ts.map +1 -1
- package/dist/types/actions/signTypedData.d.ts +2 -2
- package/dist/types/actions/signTypedData.d.ts.map +1 -1
- package/dist/types/actions/simulateContract.d.ts +3 -3
- package/dist/types/actions/simulateContract.d.ts.map +1 -1
- package/dist/types/actions/switchChain.d.ts +3 -3
- package/dist/types/actions/switchChain.d.ts.map +1 -1
- package/dist/types/actions/verifyMessage.d.ts +2 -2
- package/dist/types/actions/verifyMessage.d.ts.map +1 -1
- package/dist/types/actions/verifyTypedData.d.ts +2 -2
- package/dist/types/actions/verifyTypedData.d.ts.map +1 -1
- package/dist/types/actions/waitForTransactionReceipt.d.ts +3 -3
- package/dist/types/actions/waitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/actions/watchBlockNumber.d.ts +2 -2
- package/dist/types/actions/watchBlockNumber.d.ts.map +1 -1
- package/dist/types/actions/watchBlocks.d.ts +2 -2
- package/dist/types/actions/watchBlocks.d.ts.map +1 -1
- package/dist/types/actions/watchContractEvent.d.ts +2 -2
- package/dist/types/actions/watchContractEvent.d.ts.map +1 -1
- package/dist/types/actions/watchPendingTransactions.d.ts +2 -2
- package/dist/types/actions/watchPendingTransactions.d.ts.map +1 -1
- package/dist/types/actions/writeContract.d.ts +3 -3
- package/dist/types/actions/writeContract.d.ts.map +1 -1
- package/dist/types/connectors/createConnector.d.ts +5 -5
- package/dist/types/connectors/createConnector.d.ts.map +1 -1
- package/dist/types/connectors/injected.d.ts +3 -3
- package/dist/types/connectors/injected.d.ts.map +1 -1
- package/dist/types/createConfig.d.ts +3 -3
- package/dist/types/createConfig.d.ts.map +1 -1
- package/dist/types/createStorage.d.ts +3 -3
- package/dist/types/createStorage.d.ts.map +1 -1
- package/dist/types/errors/base.d.ts +2 -2
- package/dist/types/errors/base.d.ts.map +1 -1
- package/dist/types/experimental/actions/sendCalls.d.ts +2 -2
- package/dist/types/experimental/actions/sendCalls.d.ts.map +1 -1
- package/dist/types/experimental/actions/writeContracts.d.ts +2 -2
- package/dist/types/experimental/actions/writeContracts.d.ts.map +1 -1
- package/dist/types/experimental/query/getCallsStatus.d.ts +2 -2
- package/dist/types/experimental/query/getCallsStatus.d.ts.map +1 -1
- package/dist/types/experimental/query/getCapabilities.d.ts +2 -2
- package/dist/types/experimental/query/getCapabilities.d.ts.map +1 -1
- package/dist/types/experimental/query/sendCalls.d.ts +4 -4
- package/dist/types/experimental/query/sendCalls.d.ts.map +1 -1
- package/dist/types/experimental/query/showCallsStatus.d.ts +4 -4
- package/dist/types/experimental/query/showCallsStatus.d.ts.map +1 -1
- package/dist/types/experimental/query/writeContracts.d.ts +4 -4
- package/dist/types/experimental/query/writeContracts.d.ts.map +1 -1
- package/dist/types/exports/internal.d.ts +1 -1
- package/dist/types/exports/internal.d.ts.map +1 -1
- package/dist/types/query/call.d.ts +2 -2
- package/dist/types/query/call.d.ts.map +1 -1
- package/dist/types/query/deployContract.d.ts +4 -4
- package/dist/types/query/deployContract.d.ts.map +1 -1
- package/dist/types/query/estimateFeesPerGas.d.ts +2 -2
- package/dist/types/query/estimateFeesPerGas.d.ts.map +1 -1
- package/dist/types/query/estimateGas.d.ts +2 -2
- package/dist/types/query/estimateGas.d.ts.map +1 -1
- package/dist/types/query/estimateMaxPriorityFeePerGas.d.ts +2 -2
- package/dist/types/query/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
- package/dist/types/query/getBalance.d.ts +3 -3
- package/dist/types/query/getBalance.d.ts.map +1 -1
- package/dist/types/query/getBlock.d.ts +2 -2
- package/dist/types/query/getBlock.d.ts.map +1 -1
- package/dist/types/query/getBlockNumber.d.ts +2 -2
- package/dist/types/query/getBlockNumber.d.ts.map +1 -1
- package/dist/types/query/getBlockTransactionCount.d.ts +2 -2
- package/dist/types/query/getBlockTransactionCount.d.ts.map +1 -1
- package/dist/types/query/getBytecode.d.ts +2 -2
- package/dist/types/query/getBytecode.d.ts.map +1 -1
- package/dist/types/query/getConnectorClient.d.ts +2 -2
- package/dist/types/query/getConnectorClient.d.ts.map +1 -1
- package/dist/types/query/getEnsAddress.d.ts +2 -2
- package/dist/types/query/getEnsAddress.d.ts.map +1 -1
- package/dist/types/query/getEnsAvatar.d.ts +2 -2
- package/dist/types/query/getEnsAvatar.d.ts.map +1 -1
- package/dist/types/query/getEnsName.d.ts +2 -2
- package/dist/types/query/getEnsName.d.ts.map +1 -1
- package/dist/types/query/getEnsResolver.d.ts +2 -2
- package/dist/types/query/getEnsResolver.d.ts.map +1 -1
- package/dist/types/query/getEnsText.d.ts +2 -2
- package/dist/types/query/getEnsText.d.ts.map +1 -1
- package/dist/types/query/getFeeHistory.d.ts +2 -2
- package/dist/types/query/getFeeHistory.d.ts.map +1 -1
- package/dist/types/query/getGasPrice.d.ts +2 -2
- package/dist/types/query/getGasPrice.d.ts.map +1 -1
- package/dist/types/query/getProof.d.ts +2 -2
- package/dist/types/query/getProof.d.ts.map +1 -1
- package/dist/types/query/getStorageAt.d.ts +2 -2
- package/dist/types/query/getStorageAt.d.ts.map +1 -1
- package/dist/types/query/getToken.d.ts +2 -2
- package/dist/types/query/getToken.d.ts.map +1 -1
- package/dist/types/query/getTransaction.d.ts +2 -2
- package/dist/types/query/getTransaction.d.ts.map +1 -1
- package/dist/types/query/getTransactionConfirmations.d.ts +2 -2
- package/dist/types/query/getTransactionConfirmations.d.ts.map +1 -1
- package/dist/types/query/getTransactionCount.d.ts +3 -3
- package/dist/types/query/getTransactionCount.d.ts.map +1 -1
- package/dist/types/query/getTransactionReceipt.d.ts +2 -2
- package/dist/types/query/getTransactionReceipt.d.ts.map +1 -1
- package/dist/types/query/getWalletClient.d.ts +2 -2
- package/dist/types/query/getWalletClient.d.ts.map +1 -1
- package/dist/types/query/infiniteReadContracts.d.ts +2 -2
- package/dist/types/query/infiniteReadContracts.d.ts.map +1 -1
- package/dist/types/query/prepareTransactionRequest.d.ts +2 -2
- package/dist/types/query/prepareTransactionRequest.d.ts.map +1 -1
- package/dist/types/query/readContract.d.ts +6 -6
- package/dist/types/query/readContract.d.ts.map +1 -1
- package/dist/types/query/reconnect.d.ts +2 -2
- package/dist/types/query/reconnect.d.ts.map +1 -1
- package/dist/types/query/sendTransaction.d.ts +4 -4
- package/dist/types/query/sendTransaction.d.ts.map +1 -1
- package/dist/types/query/signMessage.d.ts +2 -2
- package/dist/types/query/signMessage.d.ts.map +1 -1
- package/dist/types/query/signTypedData.d.ts +2 -2
- package/dist/types/query/signTypedData.d.ts.map +1 -1
- package/dist/types/query/simulateContract.d.ts +2 -2
- package/dist/types/query/simulateContract.d.ts.map +1 -1
- package/dist/types/query/switchAccount.d.ts +3 -3
- package/dist/types/query/switchAccount.d.ts.map +1 -1
- package/dist/types/query/switchChain.d.ts +6 -6
- package/dist/types/query/switchChain.d.ts.map +1 -1
- package/dist/types/query/types.d.ts +5 -5
- package/dist/types/query/types.d.ts.map +1 -1
- package/dist/types/query/verifyMessage.d.ts +2 -2
- package/dist/types/query/verifyMessage.d.ts.map +1 -1
- package/dist/types/query/waitForTransactionReceipt.d.ts +2 -2
- package/dist/types/query/waitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/query/writeContract.d.ts +3 -3
- package/dist/types/query/writeContract.d.ts.map +1 -1
- package/dist/types/types/utils.d.ts +9 -9
- package/dist/types/types/utils.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/actions/codegen/createReadContract.ts +3 -3
- package/src/actions/codegen/createSimulateContract.ts +3 -3
- package/src/actions/codegen/createWatchContractEvent.ts +3 -3
- package/src/actions/codegen/createWriteContract.ts +8 -4
- package/src/actions/connect.ts +2 -2
- package/src/actions/deployContract.ts +2 -2
- package/src/actions/estimateFeesPerGas.ts +5 -5
- package/src/actions/estimateGas.ts +2 -2
- package/src/actions/estimateMaxPriorityFeePerGas.ts +2 -2
- package/src/actions/getBalance.ts +2 -2
- package/src/actions/getBlock.ts +3 -3
- package/src/actions/getBlockNumber.ts +2 -2
- package/src/actions/getBlockTransactionCount.ts +2 -2
- package/src/actions/getBytecode.ts +2 -2
- package/src/actions/getClient.ts +2 -2
- package/src/actions/getConnections.ts +2 -2
- package/src/actions/getConnectorClient.ts +3 -3
- package/src/actions/getEnsAddress.ts +2 -2
- package/src/actions/getEnsAvatar.ts +2 -2
- package/src/actions/getEnsName.ts +2 -2
- package/src/actions/getEnsResolver.ts +2 -2
- package/src/actions/getEnsText.ts +2 -2
- package/src/actions/getFeeHistory.ts +2 -2
- package/src/actions/getGasPrice.ts +2 -2
- package/src/actions/getProof.ts +2 -2
- package/src/actions/getPublicClient.ts +2 -2
- package/src/actions/getStorageAt.ts +2 -2
- package/src/actions/getToken.ts +2 -2
- package/src/actions/getTransaction.ts +3 -3
- package/src/actions/getTransactionCount.ts +2 -2
- package/src/actions/getTransactionReceipt.ts +3 -3
- package/src/actions/getWalletClient.ts +2 -2
- package/src/actions/prepareTransactionRequest.ts +6 -6
- package/src/actions/reconnect.ts +2 -2
- package/src/actions/sendTransaction.ts +2 -2
- package/src/actions/signMessage.ts +2 -2
- package/src/actions/signTypedData.ts +2 -2
- package/src/actions/simulateContract.ts +6 -6
- package/src/actions/switchChain.ts +3 -3
- package/src/actions/verifyMessage.ts +2 -2
- package/src/actions/verifyTypedData.ts +2 -2
- package/src/actions/waitForTransactionReceipt.ts +3 -3
- package/src/actions/watchBlockNumber.ts +2 -2
- package/src/actions/watchBlocks.ts +2 -2
- package/src/actions/watchContractEvent.ts +2 -2
- package/src/actions/watchPendingTransactions.ts +2 -2
- package/src/actions/writeContract.ts +4 -4
- package/src/connectors/createConnector.ts +5 -5
- package/src/connectors/injected.ts +11 -4
- package/src/createConfig.ts +3 -3
- package/src/createStorage.ts +3 -3
- package/src/errors/base.ts +2 -2
- package/src/experimental/actions/sendCalls.ts +2 -2
- package/src/experimental/actions/writeContracts.ts +2 -2
- package/src/experimental/query/getCallsStatus.ts +2 -2
- package/src/experimental/query/getCapabilities.ts +2 -2
- package/src/experimental/query/sendCalls.ts +6 -6
- package/src/experimental/query/showCallsStatus.ts +6 -6
- package/src/experimental/query/writeContracts.ts +6 -6
- package/src/exports/internal.ts +5 -5
- package/src/query/call.ts +2 -2
- package/src/query/deployContract.ts +6 -6
- package/src/query/estimateFeesPerGas.ts +2 -2
- package/src/query/estimateGas.ts +3 -2
- package/src/query/estimateMaxPriorityFeePerGas.ts +2 -2
- package/src/query/getBalance.ts +3 -3
- package/src/query/getBlock.ts +2 -2
- package/src/query/getBlockNumber.ts +2 -2
- package/src/query/getBlockTransactionCount.ts +2 -2
- package/src/query/getBytecode.ts +2 -2
- package/src/query/getConnectorClient.ts +2 -2
- package/src/query/getEnsAddress.ts +2 -2
- package/src/query/getEnsAvatar.ts +2 -2
- package/src/query/getEnsName.ts +2 -2
- package/src/query/getEnsResolver.ts +2 -2
- package/src/query/getEnsText.ts +2 -2
- package/src/query/getFeeHistory.ts +2 -2
- package/src/query/getGasPrice.ts +2 -2
- package/src/query/getProof.ts +2 -2
- package/src/query/getStorageAt.ts +2 -2
- package/src/query/getToken.ts +2 -2
- package/src/query/getTransaction.ts +2 -2
- package/src/query/getTransactionConfirmations.ts +2 -2
- package/src/query/getTransactionCount.ts +3 -3
- package/src/query/getTransactionReceipt.ts +2 -2
- package/src/query/getWalletClient.ts +2 -2
- package/src/query/infiniteReadContracts.ts +2 -2
- package/src/query/prepareTransactionRequest.ts +2 -2
- package/src/query/readContract.ts +2 -2
- package/src/query/reconnect.ts +2 -2
- package/src/query/sendTransaction.ts +6 -6
- package/src/query/signMessage.ts +2 -2
- package/src/query/signTypedData.ts +2 -2
- package/src/query/simulateContract.ts +2 -2
- package/src/query/switchAccount.ts +3 -3
- package/src/query/switchChain.ts +7 -7
- package/src/query/types.ts +7 -7
- package/src/query/verifyMessage.ts +2 -2
- package/src/query/waitForTransactionReceipt.ts +2 -2
- package/src/query/writeContract.ts +2 -2
- package/src/types/utils.ts +12 -10
- package/src/version.ts +1 -1
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
deployContract,
|
|
9
9
|
} from '../actions/deployContract.js'
|
|
10
10
|
import type { Config } from '../createConfig.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute } from '../types/utils.js'
|
|
12
12
|
|
|
13
13
|
export function deployContractMutationOptions<config extends Config>(
|
|
14
14
|
config: config,
|
|
@@ -25,7 +25,7 @@ export function deployContractMutationOptions<config extends Config>(
|
|
|
25
25
|
>
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export type DeployContractData =
|
|
28
|
+
export type DeployContractData = Compute<DeployContractReturnType>
|
|
29
29
|
|
|
30
30
|
export type DeployContractVariables<
|
|
31
31
|
abi extends Abi | readonly unknown[],
|
|
@@ -41,11 +41,11 @@ export type DeployContractMutate<config extends Config, context = unknown> = <
|
|
|
41
41
|
>(
|
|
42
42
|
variables: DeployContractVariables<abi, config, chainId>,
|
|
43
43
|
options?:
|
|
44
|
-
|
|
|
44
|
+
| Compute<
|
|
45
45
|
MutateOptions<
|
|
46
46
|
DeployContractData,
|
|
47
47
|
DeployContractErrorType,
|
|
48
|
-
|
|
48
|
+
Compute<DeployContractVariables<abi, config, chainId>>,
|
|
49
49
|
context
|
|
50
50
|
>
|
|
51
51
|
>
|
|
@@ -61,11 +61,11 @@ export type DeployContractMutateAsync<
|
|
|
61
61
|
>(
|
|
62
62
|
variables: DeployContractVariables<abi, config, chainId>,
|
|
63
63
|
options?:
|
|
64
|
-
|
|
|
64
|
+
| Compute<
|
|
65
65
|
MutateOptions<
|
|
66
66
|
DeployContractData,
|
|
67
67
|
DeployContractErrorType,
|
|
68
|
-
|
|
68
|
+
Compute<DeployContractVariables<abi, config, chainId>>,
|
|
69
69
|
context
|
|
70
70
|
>
|
|
71
71
|
>
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from '../actions/estimateFeesPerGas.js'
|
|
10
10
|
import type { Config } from '../createConfig.js'
|
|
11
11
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
12
|
-
import type {
|
|
12
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
13
13
|
import { filterQueryOptions } from './utils.js'
|
|
14
14
|
|
|
15
15
|
export type EstimateFeesPerGasOptions<
|
|
16
16
|
type extends FeeValuesType,
|
|
17
17
|
config extends Config,
|
|
18
|
-
> =
|
|
18
|
+
> = Compute<
|
|
19
19
|
ExactPartial<EstimateFeesPerGasParameters<type, config>> & ScopeKeyParameter
|
|
20
20
|
>
|
|
21
21
|
|
package/src/query/estimateGas.ts
CHANGED
|
@@ -8,13 +8,14 @@ import {
|
|
|
8
8
|
} from '../actions/estimateGas.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { UnionExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
14
|
export type EstimateGasOptions<
|
|
15
15
|
config extends Config,
|
|
16
16
|
chainId extends config['chains'][number]['id'] | undefined,
|
|
17
|
-
> =
|
|
17
|
+
> = UnionExactPartial<EstimateGasParameters<config, chainId>> &
|
|
18
|
+
ScopeKeyParameter
|
|
18
19
|
|
|
19
20
|
export function estimateGasQueryOptions<
|
|
20
21
|
config extends Config,
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from '../actions/estimateMaxPriorityFeePerGas.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
14
|
export type EstimateMaxPriorityFeePerGasOptions<config extends Config> =
|
|
15
|
-
|
|
15
|
+
Compute<
|
|
16
16
|
ExactPartial<EstimateMaxPriorityFeePerGasParameters<config>> &
|
|
17
17
|
ScopeKeyParameter
|
|
18
18
|
>
|
package/src/query/getBalance.ts
CHANGED
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from '../actions/getBalance.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, PartialBy } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
|
-
export type GetBalanceOptions<config extends Config> =
|
|
14
|
+
export type GetBalanceOptions<config extends Config> = Compute<
|
|
15
15
|
PartialBy<GetBalanceParameters<config>, 'address'> & ScopeKeyParameter
|
|
16
16
|
>
|
|
17
17
|
|
|
@@ -38,7 +38,7 @@ export function getBalanceQueryOptions<config extends Config>(
|
|
|
38
38
|
>
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export type GetBalanceQueryFnData =
|
|
41
|
+
export type GetBalanceQueryFnData = Compute<GetBalanceReturnType>
|
|
42
42
|
|
|
43
43
|
export type GetBalanceData = GetBalanceQueryFnData
|
|
44
44
|
|
package/src/query/getBlock.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from '../actions/getBlock.js'
|
|
10
10
|
import type { Config } from '../createConfig.js'
|
|
11
11
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
12
|
-
import type {
|
|
12
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
13
13
|
import { filterQueryOptions } from './utils.js'
|
|
14
14
|
|
|
15
15
|
export type GetBlockOptions<
|
|
@@ -18,7 +18,7 @@ export type GetBlockOptions<
|
|
|
18
18
|
config extends Config,
|
|
19
19
|
chainId extends
|
|
20
20
|
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
21
|
-
> =
|
|
21
|
+
> = Compute<
|
|
22
22
|
ExactPartial<
|
|
23
23
|
GetBlockParameters<includeTransactions, blockTag, config, chainId>
|
|
24
24
|
> &
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from '../actions/getBlockNumber.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
14
|
export type GetBlockNumberOptions<
|
|
15
15
|
config extends Config,
|
|
16
16
|
chainId extends config['chains'][number]['id'],
|
|
17
|
-
> =
|
|
17
|
+
> = Compute<
|
|
18
18
|
ExactPartial<GetBlockNumberParameters<config, chainId>> & ScopeKeyParameter
|
|
19
19
|
>
|
|
20
20
|
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from '../actions/getBlockTransactionCount.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type { ExactPartial,
|
|
11
|
+
import type { ExactPartial, UnionCompute } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
14
|
export type GetBlockTransactionCountOptions<
|
|
15
15
|
config extends Config,
|
|
16
16
|
chainId extends config['chains'][number]['id'],
|
|
17
|
-
> =
|
|
17
|
+
> = UnionCompute<
|
|
18
18
|
ExactPartial<GetBlockTransactionCountParameters<config, chainId>> &
|
|
19
19
|
ScopeKeyParameter
|
|
20
20
|
>
|
package/src/query/getBytecode.ts
CHANGED
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from '../actions/getBytecode.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
|
-
export type GetBytecodeOptions<config extends Config> =
|
|
14
|
+
export type GetBytecodeOptions<config extends Config> = Compute<
|
|
15
15
|
ExactPartial<GetBytecodeParameters<config>> & ScopeKeyParameter
|
|
16
16
|
>
|
|
17
17
|
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from '../actions/getConnectorClient.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
14
|
export type GetConnectorClientOptions<
|
|
15
15
|
config extends Config,
|
|
16
16
|
chainId extends config['chains'][number]['id'],
|
|
17
|
-
> =
|
|
17
|
+
> = Compute<
|
|
18
18
|
ExactPartial<GetConnectorClientParameters<config, chainId>> &
|
|
19
19
|
ScopeKeyParameter
|
|
20
20
|
>
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from '../actions/getEnsAddress.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
|
-
export type GetEnsAddressOptions<config extends Config> =
|
|
14
|
+
export type GetEnsAddressOptions<config extends Config> = Compute<
|
|
15
15
|
ExactPartial<GetEnsAddressParameters<config>> & ScopeKeyParameter
|
|
16
16
|
>
|
|
17
17
|
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from '../actions/getEnsAvatar.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
|
-
export type GetEnsAvatarOptions<config extends Config> =
|
|
14
|
+
export type GetEnsAvatarOptions<config extends Config> = Compute<
|
|
15
15
|
ExactPartial<GetEnsAvatarParameters<config>> & ScopeKeyParameter
|
|
16
16
|
>
|
|
17
17
|
|
package/src/query/getEnsName.ts
CHANGED
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from '../actions/getEnsName.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
|
-
export type GetEnsNameOptions<config extends Config> =
|
|
14
|
+
export type GetEnsNameOptions<config extends Config> = Compute<
|
|
15
15
|
ExactPartial<GetEnsNameParameters<config>> & ScopeKeyParameter
|
|
16
16
|
>
|
|
17
17
|
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from '../actions/getEnsResolver.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
|
-
export type GetEnsResolverOptions<config extends Config> =
|
|
14
|
+
export type GetEnsResolverOptions<config extends Config> = Compute<
|
|
15
15
|
ExactPartial<GetEnsResolverParameters<config>> & ScopeKeyParameter
|
|
16
16
|
>
|
|
17
17
|
|
package/src/query/getEnsText.ts
CHANGED
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from '../actions/getEnsText.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
|
-
export type GetEnsTextOptions<config extends Config> =
|
|
14
|
+
export type GetEnsTextOptions<config extends Config> = Compute<
|
|
15
15
|
ExactPartial<GetEnsTextParameters<config>> & ScopeKeyParameter
|
|
16
16
|
>
|
|
17
17
|
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from '../actions/getFeeHistory.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, PartialBy } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
14
|
export type GetFeeHistoryOptions<
|
|
15
15
|
config extends Config,
|
|
16
16
|
chainId extends config['chains'][number]['id'],
|
|
17
|
-
> =
|
|
17
|
+
> = Compute<
|
|
18
18
|
PartialBy<
|
|
19
19
|
GetFeeHistoryParameters<config, chainId>,
|
|
20
20
|
'blockCount' | 'rewardPercentiles'
|
package/src/query/getGasPrice.ts
CHANGED
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from '../actions/getGasPrice.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
14
|
export type GetGasPriceOptions<
|
|
15
15
|
config extends Config,
|
|
16
16
|
chainId extends config['chains'][number]['id'],
|
|
17
|
-
> =
|
|
17
|
+
> = Compute<
|
|
18
18
|
ExactPartial<GetGasPriceParameters<config, chainId>> & ScopeKeyParameter
|
|
19
19
|
>
|
|
20
20
|
|
package/src/query/getProof.ts
CHANGED
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from '../actions/getProof.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
|
-
export type GetProofOptions<config extends Config> =
|
|
14
|
+
export type GetProofOptions<config extends Config> = Compute<
|
|
15
15
|
ExactPartial<GetProofParameters<config>> & ScopeKeyParameter
|
|
16
16
|
>
|
|
17
17
|
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from '../actions/getStorageAt.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
|
-
export type GetStorageAtOptions<config extends Config> =
|
|
14
|
+
export type GetStorageAtOptions<config extends Config> = Compute<
|
|
15
15
|
ExactPartial<GetStorageAtParameters<config>> & ScopeKeyParameter
|
|
16
16
|
>
|
|
17
17
|
|
package/src/query/getToken.ts
CHANGED
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from '../actions/getToken.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
|
-
export type GetTokenOptions<config extends Config> =
|
|
14
|
+
export type GetTokenOptions<config extends Config> = Compute<
|
|
15
15
|
ExactPartial<GetTokenParameters<config>> & ScopeKeyParameter
|
|
16
16
|
>
|
|
17
17
|
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from '../actions/getTransaction.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
14
|
export type GetTransactionOptions<
|
|
15
15
|
config extends Config,
|
|
16
16
|
chainId extends config['chains'][number]['id'],
|
|
17
|
-
> =
|
|
17
|
+
> = Compute<
|
|
18
18
|
ExactPartial<GetTransactionParameters<config, chainId>> & ScopeKeyParameter
|
|
19
19
|
>
|
|
20
20
|
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from '../actions/getTransactionConfirmations.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { UnionExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
14
|
export type GetTransactionConfirmationsOptions<
|
|
@@ -16,7 +16,7 @@ export type GetTransactionConfirmationsOptions<
|
|
|
16
16
|
chainId extends
|
|
17
17
|
| config['chains'][number]['id']
|
|
18
18
|
| undefined = config['chains'][number]['id'],
|
|
19
|
-
> =
|
|
19
|
+
> = UnionExactPartial<GetTransactionConfirmationsParameters<config, chainId>> &
|
|
20
20
|
ScopeKeyParameter
|
|
21
21
|
|
|
22
22
|
export function getTransactionConfirmationsQueryOptions<
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from '../actions/getTransactionCount.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, PartialBy } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
|
-
export type GetTransactionCountOptions<config extends Config> =
|
|
14
|
+
export type GetTransactionCountOptions<config extends Config> = Compute<
|
|
15
15
|
PartialBy<GetTransactionCountParameters<config>, 'address'> &
|
|
16
16
|
ScopeKeyParameter
|
|
17
17
|
>
|
|
@@ -40,7 +40,7 @@ export function getTransactionCountQueryOptions<config extends Config>(
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export type GetTransactionCountQueryFnData =
|
|
43
|
-
|
|
43
|
+
Compute<GetTransactionCountReturnType>
|
|
44
44
|
|
|
45
45
|
export type GetTransactionCountData = GetTransactionCountQueryFnData
|
|
46
46
|
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
import type { GetTransactionReceiptReturnType } from '../actions/getTransactionReceipt.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
14
|
export type GetTransactionReceiptOptions<
|
|
15
15
|
config extends Config,
|
|
16
16
|
chainId extends config['chains'][number]['id'],
|
|
17
|
-
> =
|
|
17
|
+
> = Compute<
|
|
18
18
|
ExactPartial<GetTransactionReceiptParameters<config, chainId>> &
|
|
19
19
|
ScopeKeyParameter
|
|
20
20
|
>
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from '../actions/getWalletClient.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
12
12
|
import { filterQueryOptions } from './utils.js'
|
|
13
13
|
|
|
14
14
|
export type GetWalletClientOptions<
|
|
15
15
|
config extends Config,
|
|
16
16
|
chainId extends config['chains'][number]['id'],
|
|
17
|
-
> =
|
|
17
|
+
> = Compute<
|
|
18
18
|
ExactPartial<GetWalletClientParameters<config, chainId>> & ScopeKeyParameter
|
|
19
19
|
>
|
|
20
20
|
|
|
@@ -10,7 +10,7 @@ import type {
|
|
|
10
10
|
ChainIdParameter,
|
|
11
11
|
ScopeKeyParameter,
|
|
12
12
|
} from '../types/properties.js'
|
|
13
|
-
import type {
|
|
13
|
+
import type { StrictOmit } from '../types/utils.js'
|
|
14
14
|
import type { InfiniteQueryOptions } from './types.js'
|
|
15
15
|
import { filterQueryOptions } from './utils.js'
|
|
16
16
|
|
|
@@ -24,7 +24,7 @@ export type InfiniteReadContractsOptions<
|
|
|
24
24
|
contracts(
|
|
25
25
|
pageParam: pageParam,
|
|
26
26
|
): ReadContractsParameters<contracts, allowFailure, config>['contracts']
|
|
27
|
-
} &
|
|
27
|
+
} & StrictOmit<
|
|
28
28
|
ReadContractsParameters<contracts, allowFailure, config>,
|
|
29
29
|
'contracts'
|
|
30
30
|
> &
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import type { Config } from '../createConfig.js'
|
|
12
12
|
import type { SelectChains } from '../types/chain.js'
|
|
13
13
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
14
|
-
import type {
|
|
14
|
+
import type { UnionExactPartial } from '../types/utils.js'
|
|
15
15
|
import { filterQueryOptions } from './utils.js'
|
|
16
16
|
|
|
17
17
|
export type PrepareTransactionRequestOptions<
|
|
@@ -21,7 +21,7 @@ export type PrepareTransactionRequestOptions<
|
|
|
21
21
|
SelectChains<config, chainId>[0],
|
|
22
22
|
SelectChains<config, chainId>[0]
|
|
23
23
|
>,
|
|
24
|
-
> =
|
|
24
|
+
> = UnionExactPartial<
|
|
25
25
|
PrepareTransactionRequestParameters<config, chainId, request>
|
|
26
26
|
> &
|
|
27
27
|
ScopeKeyParameter
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from '../actions/readContract.js'
|
|
10
10
|
import type { Config } from '../createConfig.js'
|
|
11
11
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
12
|
-
import type {
|
|
12
|
+
import type { UnionExactPartial } from '../types/utils.js'
|
|
13
13
|
import { filterQueryOptions } from './utils.js'
|
|
14
14
|
|
|
15
15
|
export type ReadContractOptions<
|
|
@@ -17,7 +17,7 @@ export type ReadContractOptions<
|
|
|
17
17
|
functionName extends ContractFunctionName<abi, 'pure' | 'view'>,
|
|
18
18
|
args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>,
|
|
19
19
|
config extends Config,
|
|
20
|
-
> =
|
|
20
|
+
> = UnionExactPartial<ReadContractParameters<abi, functionName, args, config>> &
|
|
21
21
|
ScopeKeyParameter
|
|
22
22
|
|
|
23
23
|
export function readContractQueryOptions<
|
package/src/query/reconnect.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
reconnect,
|
|
8
8
|
} from '../actions/reconnect.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
|
-
import type {
|
|
10
|
+
import type { Compute } from '../types/utils.js'
|
|
11
11
|
import type { Mutate, MutateAsync } from './types.js'
|
|
12
12
|
|
|
13
13
|
export function reconnectMutationOptions(config: Config) {
|
|
@@ -23,7 +23,7 @@ export function reconnectMutationOptions(config: Config) {
|
|
|
23
23
|
>
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export type ReconnectData =
|
|
26
|
+
export type ReconnectData = Compute<ReconnectReturnType>
|
|
27
27
|
|
|
28
28
|
export type ReconnectVariables = ReconnectParameters | undefined
|
|
29
29
|
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
sendTransaction,
|
|
8
8
|
} from '../actions/sendTransaction.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
|
-
import type {
|
|
10
|
+
import type { Compute } from '../types/utils.js'
|
|
11
11
|
|
|
12
12
|
export function sendTransactionMutationOptions<config extends Config>(
|
|
13
13
|
config: config,
|
|
@@ -24,7 +24,7 @@ export function sendTransactionMutationOptions<config extends Config>(
|
|
|
24
24
|
>
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export type SendTransactionData =
|
|
27
|
+
export type SendTransactionData = Compute<SendTransactionReturnType>
|
|
28
28
|
|
|
29
29
|
export type SendTransactionVariables<
|
|
30
30
|
config extends Config,
|
|
@@ -36,11 +36,11 @@ export type SendTransactionMutate<config extends Config, context = unknown> = <
|
|
|
36
36
|
>(
|
|
37
37
|
variables: SendTransactionVariables<config, chainId>,
|
|
38
38
|
options?:
|
|
39
|
-
|
|
|
39
|
+
| Compute<
|
|
40
40
|
MutateOptions<
|
|
41
41
|
SendTransactionData,
|
|
42
42
|
SendTransactionErrorType,
|
|
43
|
-
|
|
43
|
+
Compute<SendTransactionVariables<config, chainId>>,
|
|
44
44
|
context
|
|
45
45
|
>
|
|
46
46
|
>
|
|
@@ -53,11 +53,11 @@ export type SendTransactionMutateAsync<
|
|
|
53
53
|
> = <chainId extends config['chains'][number]['id']>(
|
|
54
54
|
variables: SendTransactionVariables<config, chainId>,
|
|
55
55
|
options?:
|
|
56
|
-
|
|
|
56
|
+
| Compute<
|
|
57
57
|
MutateOptions<
|
|
58
58
|
SendTransactionData,
|
|
59
59
|
SendTransactionErrorType,
|
|
60
|
-
|
|
60
|
+
Compute<SendTransactionVariables<config, chainId>>,
|
|
61
61
|
context
|
|
62
62
|
>
|
|
63
63
|
>
|
package/src/query/signMessage.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
signMessage,
|
|
8
8
|
} from '../actions/signMessage.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
|
-
import type {
|
|
10
|
+
import type { Compute } from '../types/utils.js'
|
|
11
11
|
import type { Mutate, MutateAsync } from './types.js'
|
|
12
12
|
|
|
13
13
|
export function signMessageMutationOptions(config: Config) {
|
|
@@ -25,7 +25,7 @@ export function signMessageMutationOptions(config: Config) {
|
|
|
25
25
|
|
|
26
26
|
export type SignMessageData = SignMessageReturnType
|
|
27
27
|
|
|
28
|
-
export type SignMessageVariables =
|
|
28
|
+
export type SignMessageVariables = Compute<SignMessageParameters>
|
|
29
29
|
|
|
30
30
|
export type SignMessageMutate<context = unknown> = Mutate<
|
|
31
31
|
SignMessageData,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
signTypedData,
|
|
9
9
|
} from '../actions/signTypedData.js'
|
|
10
10
|
import type { Config } from '../createConfig.js'
|
|
11
|
-
import type {
|
|
11
|
+
import type { Compute } from '../types/utils.js'
|
|
12
12
|
|
|
13
13
|
export function signTypedDataMutationOptions<config extends Config>(
|
|
14
14
|
config: config,
|
|
@@ -25,7 +25,7 @@ export function signTypedDataMutationOptions<config extends Config>(
|
|
|
25
25
|
>
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export type SignTypedDataData =
|
|
28
|
+
export type SignTypedDataData = Compute<SignTypedDataReturnType>
|
|
29
29
|
|
|
30
30
|
export type SignTypedDataVariables<
|
|
31
31
|
typedData extends TypedData | Record<string, unknown> = TypedData,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from '../actions/simulateContract.js'
|
|
10
10
|
import type { Config } from '../createConfig.js'
|
|
11
11
|
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
12
|
-
import type {
|
|
12
|
+
import type { UnionExactPartial } from '../types/utils.js'
|
|
13
13
|
import { filterQueryOptions } from './utils.js'
|
|
14
14
|
|
|
15
15
|
export type SimulateContractOptions<
|
|
@@ -22,7 +22,7 @@ export type SimulateContractOptions<
|
|
|
22
22
|
>,
|
|
23
23
|
config extends Config,
|
|
24
24
|
chainId extends config['chains'][number]['id'] | undefined,
|
|
25
|
-
> =
|
|
25
|
+
> = UnionExactPartial<
|
|
26
26
|
SimulateContractParameters<abi, functionName, args, config, chainId>
|
|
27
27
|
> &
|
|
28
28
|
ScopeKeyParameter
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
switchAccount,
|
|
8
8
|
} from '../actions/switchAccount.js'
|
|
9
9
|
import type { Config } from '../createConfig.js'
|
|
10
|
-
import type {
|
|
10
|
+
import type { Compute } from '../types/utils.js'
|
|
11
11
|
import type { Mutate, MutateAsync } from './types.js'
|
|
12
12
|
|
|
13
13
|
export function switchAccountMutationOptions<config extends Config>(
|
|
@@ -25,11 +25,11 @@ export function switchAccountMutationOptions<config extends Config>(
|
|
|
25
25
|
>
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export type SwitchAccountData<config extends Config> =
|
|
28
|
+
export type SwitchAccountData<config extends Config> = Compute<
|
|
29
29
|
SwitchAccountReturnType<config>
|
|
30
30
|
>
|
|
31
31
|
|
|
32
|
-
export type SwitchAccountVariables =
|
|
32
|
+
export type SwitchAccountVariables = Compute<SwitchAccountParameters>
|
|
33
33
|
|
|
34
34
|
export type SwitchAccountMutate<
|
|
35
35
|
config extends Config,
|