@wagmi/core 2.18.0 → 2.18.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/esm/actions/estimateFeesPerGas.js.map +1 -1
- package/dist/esm/actions/getBalance.js.map +1 -1
- package/dist/esm/actions/getClient.js +4 -4
- package/dist/esm/actions/getClient.js.map +1 -1
- package/dist/esm/actions/readContract.js.map +1 -1
- package/dist/esm/actions/watchBlockNumber.js.map +1 -1
- package/dist/esm/actions/watchBlocks.js.map +1 -1
- package/dist/esm/connectors/injected.js +1 -1
- package/dist/esm/connectors/injected.js.map +1 -1
- package/dist/esm/connectors/mock.js +8 -2
- package/dist/esm/connectors/mock.js.map +1 -1
- package/dist/esm/createConfig.js.map +1 -1
- package/dist/esm/exports/actions.js +6 -6
- package/dist/esm/exports/actions.js.map +1 -1
- package/dist/esm/exports/codegen.js +1 -1
- package/dist/esm/exports/codegen.js.map +1 -1
- package/dist/esm/exports/experimental.js +9 -9
- package/dist/esm/exports/experimental.js.map +1 -1
- package/dist/esm/exports/index.js +7 -7
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/exports/internal.js +1 -1
- package/dist/esm/exports/internal.js.map +1 -1
- package/dist/esm/exports/query.js +3 -3
- package/dist/esm/exports/query.js.map +1 -1
- package/dist/esm/query/connect.js.map +1 -1
- package/dist/esm/query/getTransactionReceipt.js.map +1 -1
- package/dist/esm/query/readContracts.js.map +1 -1
- package/dist/esm/query/utils.js +6 -2
- package/dist/esm/query/utils.js.map +1 -1
- package/dist/esm/transports/connector.js +1 -1
- package/dist/esm/transports/connector.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/utils/cookie.js +2 -0
- package/dist/esm/utils/cookie.js.map +1 -1
- package/dist/esm/utils/deepEqual.js +2 -2
- package/dist/esm/utils/deepEqual.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/actions/estimateFeesPerGas.d.ts +1 -2
- package/dist/types/actions/estimateFeesPerGas.d.ts.map +1 -1
- package/dist/types/actions/readContract.d.ts +1 -2
- package/dist/types/actions/readContract.d.ts.map +1 -1
- package/dist/types/actions/watchBlockNumber.d.ts +1 -1
- package/dist/types/actions/watchBlockNumber.d.ts.map +1 -1
- package/dist/types/actions/watchBlocks.d.ts +1 -1
- package/dist/types/actions/watchBlocks.d.ts.map +1 -1
- package/dist/types/connectors/injected.d.ts.map +1 -1
- package/dist/types/connectors/mock.d.ts.map +1 -1
- package/dist/types/createConfig.d.ts.map +1 -1
- package/dist/types/exports/actions.d.ts +10 -10
- package/dist/types/exports/actions.d.ts.map +1 -1
- package/dist/types/exports/codegen.d.ts +1 -1
- package/dist/types/exports/codegen.d.ts.map +1 -1
- package/dist/types/exports/experimental.d.ts +17 -17
- package/dist/types/exports/experimental.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts +15 -15
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/exports/internal.d.ts +2 -2
- package/dist/types/exports/internal.d.ts.map +1 -1
- package/dist/types/exports/query.d.ts +14 -14
- package/dist/types/exports/query.d.ts.map +1 -1
- package/dist/types/query/connect.d.ts +1 -1
- package/dist/types/query/connect.d.ts.map +1 -1
- package/dist/types/query/getTransactionReceipt.d.ts +1 -1
- package/dist/types/query/getTransactionReceipt.d.ts.map +1 -1
- package/dist/types/query/readContracts.d.ts +1 -2
- package/dist/types/query/readContracts.d.ts.map +1 -1
- package/dist/types/query/utils.d.ts.map +1 -1
- package/dist/types/transports/connector.d.ts.map +1 -1
- package/dist/types/utils/cookie.d.ts.map +1 -1
- package/dist/types/utils/deepEqual.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/actions/estimateFeesPerGas.ts +1 -2
- package/src/actions/getBalance.ts +1 -1
- package/src/actions/getClient.ts +4 -4
- package/src/actions/readContract.ts +1 -2
- package/src/actions/watchBlockNumber.ts +1 -2
- package/src/actions/watchBlocks.ts +1 -2
- package/src/actions/writeContract.ts +1 -1
- package/src/connectors/injected.ts +2 -2
- package/src/connectors/mock.ts +13 -7
- package/src/createConfig.ts +8 -9
- package/src/exports/actions.ts +27 -42
- package/src/exports/codegen.ts +5 -6
- package/src/exports/experimental.ts +16 -21
- package/src/exports/index.ts +44 -59
- package/src/exports/internal.ts +4 -4
- package/src/exports/query.ts +26 -37
- package/src/query/connect.ts +1 -2
- package/src/query/getTransactionReceipt.ts +1 -2
- package/src/query/readContracts.ts +4 -2
- package/src/query/utils.ts +6 -2
- package/src/transports/connector.ts +2 -2
- package/src/types/register.ts +1 -1
- package/src/utils/cookie.ts +2 -0
- package/src/utils/deepEqual.ts +2 -3
- package/src/version.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { type CallData, type CallOptions, type CallQueryFnData, type CallQueryKey, callQueryKey, callQueryOptions, } from '../query/call.js';
|
|
2
|
-
export { type ConnectData, type
|
|
3
|
-
export { type DeployContractData, type
|
|
4
|
-
export { type DisconnectData, type
|
|
2
|
+
export { type ConnectData, type ConnectMutate, type ConnectMutateAsync, type ConnectVariables, connectMutationOptions, } from '../query/connect.js';
|
|
3
|
+
export { type DeployContractData, type DeployContractMutate, type DeployContractMutateAsync, type DeployContractVariables, deployContractMutationOptions, } from '../query/deployContract.js';
|
|
4
|
+
export { type DisconnectData, type DisconnectMutate, type DisconnectMutateAsync, type DisconnectVariables, disconnectMutationOptions, } from '../query/disconnect.js';
|
|
5
5
|
export { type EstimateFeesPerGasData, type EstimateFeesPerGasOptions, type EstimateFeesPerGasQueryFnData, type EstimateFeesPerGasQueryKey, estimateFeesPerGasQueryKey, estimateFeesPerGasQueryOptions, } from '../query/estimateFeesPerGas.js';
|
|
6
6
|
export { type EstimateGasData, type EstimateGasOptions, type EstimateGasQueryFnData, type EstimateGasQueryKey, estimateGasQueryKey, estimateGasQueryOptions, } from '../query/estimateGas.js';
|
|
7
7
|
export { type EstimateMaxPriorityFeePerGasData, type EstimateMaxPriorityFeePerGasOptions, type EstimateMaxPriorityFeePerGasQueryFnData, type EstimateMaxPriorityFeePerGasQueryKey, estimateMaxPriorityFeePerGasQueryKey, estimateMaxPriorityFeePerGasQueryOptions, } from '../query/estimateMaxPriorityFeePerGas.js';
|
|
@@ -32,20 +32,20 @@ export { type InfiniteReadContractsData, type InfiniteReadContractsOptions, type
|
|
|
32
32
|
export { type PrepareTransactionRequestData, type PrepareTransactionRequestOptions, type PrepareTransactionRequestQueryFnData, type PrepareTransactionRequestQueryKey, prepareTransactionRequestQueryKey, prepareTransactionRequestQueryOptions, } from '../query/prepareTransactionRequest.js';
|
|
33
33
|
export { type ReadContractData, type ReadContractOptions, type ReadContractQueryFnData, type ReadContractQueryKey, readContractQueryKey, readContractQueryOptions, } from '../query/readContract.js';
|
|
34
34
|
export { type ReadContractsData, type ReadContractsOptions, type ReadContractsQueryFnData, type ReadContractsQueryKey, readContractsQueryKey, readContractsQueryOptions, } from '../query/readContracts.js';
|
|
35
|
-
export { type ReconnectData, type
|
|
36
|
-
export { type SendCallsData, type
|
|
37
|
-
export { type
|
|
38
|
-
export { type
|
|
39
|
-
export { type SignMessageData, type
|
|
40
|
-
export { type SignTypedDataData, type
|
|
41
|
-
export { type SwitchAccountData, type SwitchAccountVariables, type SwitchAccountMutate, type SwitchAccountMutateAsync, switchAccountMutationOptions, } from '../query/switchAccount.js';
|
|
35
|
+
export { type ReconnectData, type ReconnectMutate, type ReconnectMutateAsync, type ReconnectVariables, reconnectMutationOptions, } from '../query/reconnect.js';
|
|
36
|
+
export { type SendCallsData, type SendCallsMutate, type SendCallsMutateAsync, type SendCallsVariables, sendCallsMutationOptions, } from '../query/sendCalls.js';
|
|
37
|
+
export { type SendTransactionData, type SendTransactionMutate, type SendTransactionMutateAsync, type SendTransactionVariables, sendTransactionMutationOptions, } from '../query/sendTransaction.js';
|
|
38
|
+
export { type ShowCallsStatusData, type ShowCallsStatusMutate, type ShowCallsStatusMutateAsync, type ShowCallsStatusVariables, showCallsStatusMutationOptions, } from '../query/showCallsStatus.js';
|
|
39
|
+
export { type SignMessageData, type SignMessageMutate, type SignMessageMutateAsync, type SignMessageVariables, signMessageMutationOptions, } from '../query/signMessage.js';
|
|
40
|
+
export { type SignTypedDataData, type SignTypedDataMutate, type SignTypedDataMutateAsync, type SignTypedDataVariables, signTypedDataMutationOptions, } from '../query/signTypedData.js';
|
|
42
41
|
export { type SimulateContractData, type SimulateContractOptions, type SimulateContractQueryFnData, type SimulateContractQueryKey, simulateContractQueryKey, simulateContractQueryOptions, } from '../query/simulateContract.js';
|
|
43
|
-
export { type
|
|
42
|
+
export { type SwitchAccountData, type SwitchAccountMutate, type SwitchAccountMutateAsync, type SwitchAccountVariables, switchAccountMutationOptions, } from '../query/switchAccount.js';
|
|
43
|
+
export { type SwitchChainData, type SwitchChainMutate, type SwitchChainMutateAsync, type SwitchChainVariables, switchChainMutationOptions, } from '../query/switchChain.js';
|
|
44
|
+
export { hashFn, structuralSharing } from '../query/utils.js';
|
|
44
45
|
export { type VerifyMessageData, type VerifyMessageOptions, type VerifyMessageQueryFnData, type VerifyMessageQueryKey, verifyMessageQueryKey, verifyMessageQueryOptions, } from '../query/verifyMessage.js';
|
|
45
46
|
export { type VerifyTypedDataData, type VerifyTypedDataOptions, type VerifyTypedDataQueryFnData, type VerifyTypedDataQueryKey, verifyTypedDataQueryKey, verifyTypedDataQueryOptions, } from '../query/verifyTypedData.js';
|
|
46
47
|
export { type WaitForCallsStatusData, type WaitForCallsStatusOptions, type WaitForCallsStatusQueryFnData, type WaitForCallsStatusQueryKey, waitForCallsStatusQueryKey, waitForCallsStatusQueryOptions, } from '../query/waitForCallsStatus.js';
|
|
47
48
|
export { type WaitForTransactionReceiptData, type WaitForTransactionReceiptOptions, type WaitForTransactionReceiptQueryFnData, type WaitForTransactionReceiptQueryKey, waitForTransactionReceiptQueryKey, waitForTransactionReceiptQueryOptions, } from '../query/waitForTransactionReceipt.js';
|
|
48
|
-
export { type WatchAssetData, type
|
|
49
|
-
export { type WriteContractData, type
|
|
50
|
-
export { hashFn, structuralSharing } from '../query/utils.js';
|
|
49
|
+
export { type WatchAssetData, type WatchAssetMutate, type WatchAssetMutateAsync, type WatchAssetVariables, watchAssetMutationOptions, } from '../query/watchAsset.js';
|
|
50
|
+
export { type WriteContractData, type WriteContractMutate, type WriteContractMutateAsync, type WriteContractVariables, writeContractMutationOptions, } from '../query/writeContract.js';
|
|
51
51
|
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/exports/query.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,YAAY,EACZ,gBAAgB,GACjB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/exports/query.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,YAAY,EACZ,gBAAgB,GACjB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,sBAAsB,GACvB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,6BAA6B,GAC9B,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,yBAAyB,GAC1B,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,E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AC/B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,oCAAoC,EACzC,KAAK,iCAAiC,EACtC,iCAAiC,EACjC,qCAAqC,GACtC,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,yBAAyB,GAC1B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,4BAA4B,GAC7B,MAAM,2BAA2B,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MutateOptions } from '@tanstack/query-core';
|
|
2
2
|
import { type ConnectErrorType, type ConnectParameters, type ConnectReturnType } from '../actions/connect.js';
|
|
3
|
-
import type { Config, Connector } from '../createConfig.js';
|
|
4
3
|
import type { CreateConnectorFn } from '../connectors/createConnector.js';
|
|
4
|
+
import type { Config, Connector } from '../createConfig.js';
|
|
5
5
|
import type { Compute } from '../types/utils.js';
|
|
6
6
|
export declare function connectMutationOptions<config extends Config>(config: config): {
|
|
7
7
|
readonly mutationFn: (variables: ConnectVariables<config, CreateConnectorFn | Connector>) => Promise<ConnectReturnType<config>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/query/connect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,sBAAsB,CAAA;AAE1E,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EAEvB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/query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AC,GAC5B,SAAS,GACT,iBAAiB,EAErB,SAAS,EAAE,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,EAC9C,OAAO,CAAC,EACJ,OAAO,CACL,aAAa,CACX,WAAW,CAAC,MAAM,CAAC,EACnB,gBAAgB,EAChB,OAAO,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,EAC5C,OAAO,CACR,CACF,GACD,SAAS,KACV,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type GetTransactionReceiptParameters } from '../actions/getTransactionReceipt.js';
|
|
2
1
|
import type { GetTransactionReceiptReturnType } from '../actions/getTransactionReceipt.js';
|
|
2
|
+
import { type GetTransactionReceiptParameters } from '../actions/getTransactionReceipt.js';
|
|
3
3
|
import type { Config } from '../createConfig.js';
|
|
4
4
|
import type { ScopeKeyParameter } from '../types/properties.js';
|
|
5
5
|
import type { Compute, ExactPartial } from '../types/utils.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTransactionReceipt.d.ts","sourceRoot":"","sources":["../../../src/query/getTransactionReceipt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTransactionReceipt.d.ts","sourceRoot":"","sources":["../../../src/query/getTransactionReceipt.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAA;AAC1F,OAAO,EAEL,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAG9D,MAAM,MAAM,4BAA4B,CACtC,MAAM,SAAS,MAAM,EACrB,OAAO,SAAS,MAAM,CA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em';
|
|
2
2
|
import { type ReadContractsReturnType } from '../actions/readContracts.js';
|
|
3
3
|
import type { Config } from '../createConfig.js';
|
|
4
|
-
import type { ChainIdParameter } from '../types/properties.js';
|
|
5
|
-
import type { ScopeKeyParameter } from '../types/properties.js';
|
|
4
|
+
import type { ChainIdParameter, ScopeKeyParameter } from '../types/properties.js';
|
|
6
5
|
import type { ExactPartial } from '../types/utils.js';
|
|
7
6
|
export type ReadContractsOptions<contracts extends readonly unknown[], allowFailure extends boolean, config extends Config> = ExactPartial<viem_MulticallParameters<contracts, allowFailure, {
|
|
8
7
|
optional: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readContracts.d.ts","sourceRoot":"","sources":["../../../src/query/readContracts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,mBAAmB,IAAI,wBAAwB,EAChD,MAAM,MAAM,CAAA;AAEb,OAAO,EAEL,KAAK,uBAAuB,EAE7B,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"readContracts.d.ts","sourceRoot":"","sources":["../../../src/query/readContracts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,mBAAmB,IAAI,wBAAwB,EAChD,MAAM,MAAM,CAAA;AAEb,OAAO,EAEL,KAAK,uBAAuB,EAE7B,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGrD,MAAM,MAAM,oBAAoB,CAC9B,SAAS,SAAS,SAAS,OAAO,EAAE,EACpC,YAAY,SAAS,OAAO,EAC5B,MAAM,SAAS,MAAM,IACnB,YAAY,CACd,wBAAwB,CACtB,S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.d.ts","sourceRoot":"","sources":["../../../src/query/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAoB,MAAM,sBAAsB,CAAA;AAEtE,wBAAgB,iBAAiB,CAAC,IAAI,EACpC,OAAO,EAAE,IAAI,GAAG,SAAS,EACzB,OAAO,EAAE,IAAI,GACZ,IAAI,CAEN;AAED,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAYjD;AA4BD,wBAAgB,kBAAkB,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrE,OAAO,EAAE,IAAI,GACZ,IAAI,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/query/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAoB,MAAM,sBAAsB,CAAA;AAEtE,wBAAgB,iBAAiB,CAAC,IAAI,EACpC,OAAO,EAAE,IAAI,GAAG,SAAS,EACzB,OAAO,EAAE,IAAI,GACZ,IAAI,CAEN;AAED,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAYjD;AA4BD,wBAAgB,kBAAkB,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrE,OAAO,EAAE,IAAI,GACZ,IAAI,CAyBN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../src/transports/connector.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../src/transports/connector.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,eAAe,EAIrB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9D,MAAM,MAAM,wBAAwB,GAAG;IACrC,gCAAgC;IAChC,GAAG,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,SAAS,CAAA;IACxC,iCAAiC;IACjC,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IAC1C,wCAAwC;IACxC,UAAU,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,GAAG,SAAS,CAAA;IACtD,8CAA8C;IAC9C,UAAU,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,GAAG,SAAS,CAAA;CACvD,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAA;AAE1C,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,EAClC,MAAM,GAAE,wBAA6B,GACpC,SAAS,CAAC,WAAW,CAAC,CAsDxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookie.d.ts","sourceRoot":"","sources":["../../../src/utils/cookie.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAIvD,eAAO,MAAM,aAAa;;;;
|
|
1
|
+
{"version":3,"file":"cookie.d.ts","sourceRoot":"","sources":["../../../src/utils/cookie.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAIvD,eAAO,MAAM,aAAa;;;;CAgBH,CAAA;AAEvB,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,qBAM1E;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,sBAItD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/deepEqual.ts"],"names":[],"mappings":"AAAA,iEAAiE;AAEjE,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"deepEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/deepEqual.ts"],"names":[],"mappings":"AAAA,iEAAiE;AAEjE,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,WAuCvC"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.18.
|
|
1
|
+
export declare const version = "2.18.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -15,8 +15,7 @@ import {
|
|
|
15
15
|
import type { Config } from '../createConfig.js'
|
|
16
16
|
import type { ChainIdParameter } from '../types/properties.js'
|
|
17
17
|
import type { Unit } from '../types/unit.js'
|
|
18
|
-
import type { Compute } from '../types/utils.js'
|
|
19
|
-
import type { UnionCompute, UnionLooseOmit } from '../types/utils.js'
|
|
18
|
+
import type { Compute, UnionCompute, UnionLooseOmit } from '../types/utils.js'
|
|
20
19
|
import { getAction } from '../utils/getAction.js'
|
|
21
20
|
import { getUnit } from '../utils/getUnit.js'
|
|
22
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Address, type Hex,
|
|
1
|
+
import { type Address, formatUnits, type Hex, hexToString, trim } from 'viem'
|
|
2
2
|
import {
|
|
3
3
|
type GetBalanceErrorType as viem_GetBalanceErrorType,
|
|
4
4
|
type GetBalanceParameters as viem_GetBalanceParameters,
|
package/src/actions/getClient.ts
CHANGED
|
@@ -44,9 +44,9 @@ export function getClient<
|
|
|
44
44
|
config: config,
|
|
45
45
|
parameters: GetClientParameters<config, chainId> = {},
|
|
46
46
|
): GetClientReturnType<config, chainId> {
|
|
47
|
-
let client = undefined
|
|
48
47
|
try {
|
|
49
|
-
|
|
50
|
-
} catch {
|
|
51
|
-
|
|
48
|
+
return config.getClient(parameters) as GetClientReturnType<config, chainId>
|
|
49
|
+
} catch {
|
|
50
|
+
return undefined as never
|
|
51
|
+
}
|
|
52
52
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Abi } from 'viem'
|
|
2
|
-
import type { ContractFunctionArgs, ContractFunctionName } from 'viem'
|
|
1
|
+
import type { Abi, ContractFunctionArgs, ContractFunctionName } from 'viem'
|
|
3
2
|
import {
|
|
4
3
|
type ReadContractErrorType as viem_ReadContractErrorType,
|
|
5
4
|
type ReadContractParameters as viem_ReadContractParameters,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import type { Chain, Transport, WebSocketTransport } from 'viem'
|
|
1
2
|
import {
|
|
2
3
|
type WatchBlockNumberParameters as viem_WatchBlockNumberParameters,
|
|
3
4
|
type WatchBlockNumberReturnType as viem_WatchBlockNumberReturnType,
|
|
4
5
|
watchBlockNumber as viem_watchBlockNumber,
|
|
5
6
|
} from 'viem/actions'
|
|
6
|
-
|
|
7
|
-
import type { Chain, Transport, WebSocketTransport } from 'viem'
|
|
8
7
|
import type { Config } from '../createConfig.js'
|
|
9
8
|
import type { SelectChains } from '../types/chain.js'
|
|
10
9
|
import type {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import type { BlockTag, Chain, Transport, WebSocketTransport } from 'viem'
|
|
1
2
|
import {
|
|
2
3
|
type WatchBlocksParameters as viem_WatchBlocksParameters,
|
|
3
4
|
type WatchBlocksReturnType as viem_WatchBlocksReturnType,
|
|
4
5
|
watchBlocks as viem_watchBlocks,
|
|
5
6
|
} from 'viem/actions'
|
|
6
|
-
|
|
7
|
-
import type { BlockTag, Chain, Transport, WebSocketTransport } from 'viem'
|
|
8
7
|
import type { Config } from '../createConfig.js'
|
|
9
8
|
import type { SelectChains } from '../types/chain.js'
|
|
10
9
|
import type {
|
|
@@ -47,7 +47,7 @@ export type WriteContractParameters<
|
|
|
47
47
|
> = UnionCompute<
|
|
48
48
|
{
|
|
49
49
|
// TODO: Should use `UnionStrictOmit<..., 'chain'>` on `viem_WriteContractParameters` result instead
|
|
50
|
-
// temp workaround that doesn't affect runtime behavior for
|
|
50
|
+
// temp workaround that doesn't affect runtime behavior for https://github.com/wevm/wagmi/issues/3981
|
|
51
51
|
[key in keyof chains]: viem_WriteContractParameters<
|
|
52
52
|
abi,
|
|
53
53
|
functionName,
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
type AddEthereumChainParameter,
|
|
3
3
|
type Address,
|
|
4
4
|
type EIP1193Provider,
|
|
5
|
+
getAddress,
|
|
6
|
+
numberToHex,
|
|
5
7
|
type ProviderConnectInfo,
|
|
6
8
|
type ProviderRpcError,
|
|
7
9
|
ResourceUnavailableRpcError,
|
|
8
10
|
type RpcError,
|
|
9
11
|
SwitchChainError,
|
|
10
12
|
UserRejectedRequestError,
|
|
11
|
-
getAddress,
|
|
12
|
-
numberToHex,
|
|
13
13
|
withRetry,
|
|
14
14
|
withTimeout,
|
|
15
15
|
} from 'viem'
|
package/src/connectors/mock.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
type Address,
|
|
3
|
+
custom,
|
|
3
4
|
type EIP1193RequestFn,
|
|
5
|
+
fromHex,
|
|
6
|
+
getAddress,
|
|
4
7
|
type Hex,
|
|
8
|
+
keccak256,
|
|
9
|
+
numberToHex,
|
|
5
10
|
RpcRequestError,
|
|
6
11
|
SwitchChainError,
|
|
12
|
+
stringToHex,
|
|
7
13
|
type Transport,
|
|
8
14
|
UserRejectedRequestError,
|
|
9
15
|
type WalletCallReceipt,
|
|
10
16
|
type WalletGetCallsStatusReturnType,
|
|
11
17
|
type WalletRpcSchema,
|
|
12
|
-
custom,
|
|
13
|
-
fromHex,
|
|
14
|
-
getAddress,
|
|
15
|
-
keccak256,
|
|
16
|
-
numberToHex,
|
|
17
|
-
stringToHex,
|
|
18
18
|
} from 'viem'
|
|
19
19
|
import { rpc } from 'viem/utils'
|
|
20
20
|
|
|
@@ -208,11 +208,17 @@ export function mock(parameters: MockParameters) {
|
|
|
208
208
|
if (method === 'wallet_sendCalls') {
|
|
209
209
|
const hashes = []
|
|
210
210
|
const calls = (params as any)[0].calls
|
|
211
|
+
const from = (params as any)[0].from
|
|
211
212
|
for (const call of calls) {
|
|
212
213
|
const { result, error } = await rpc.http(url, {
|
|
213
214
|
body: {
|
|
214
215
|
method: 'eth_sendTransaction',
|
|
215
|
-
params: [
|
|
216
|
+
params: [
|
|
217
|
+
{
|
|
218
|
+
...call,
|
|
219
|
+
...(typeof from !== 'undefined' ? { from } : {}),
|
|
220
|
+
},
|
|
221
|
+
],
|
|
216
222
|
},
|
|
217
223
|
})
|
|
218
224
|
if (error)
|
package/src/createConfig.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
+
createStore as createMipd,
|
|
2
3
|
type EIP6963ProviderDetail,
|
|
3
4
|
type Store as MipdStore,
|
|
4
|
-
createStore as createMipd,
|
|
5
5
|
} from 'mipd'
|
|
6
6
|
import {
|
|
7
7
|
type Address,
|
|
8
8
|
type Chain,
|
|
9
9
|
type Client,
|
|
10
|
-
type EIP1193RequestFn,
|
|
11
10
|
createClient,
|
|
11
|
+
type EIP1193RequestFn,
|
|
12
12
|
type ClientConfig as viem_ClientConfig,
|
|
13
13
|
type Transport as viem_Transport,
|
|
14
14
|
} from 'viem'
|
|
15
15
|
import { persist, subscribeWithSelector } from 'zustand/middleware'
|
|
16
|
-
import { type Mutate, type StoreApi
|
|
16
|
+
import { createStore, type Mutate, type StoreApi } from 'zustand/vanilla'
|
|
17
17
|
|
|
18
18
|
import type {
|
|
19
19
|
ConnectorEventMap,
|
|
20
20
|
CreateConnectorFn,
|
|
21
21
|
} from './connectors/createConnector.js'
|
|
22
22
|
import { injected } from './connectors/injected.js'
|
|
23
|
-
import { type Emitter, type EventData
|
|
23
|
+
import { createEmitter, type Emitter, type EventData } from './createEmitter.js'
|
|
24
24
|
import {
|
|
25
|
-
type Storage,
|
|
26
25
|
createStorage,
|
|
27
26
|
getDefaultStorage,
|
|
27
|
+
type Storage,
|
|
28
28
|
} from './createStorage.js'
|
|
29
29
|
import { ChainNotConfiguredError } from './errors/config.js'
|
|
30
30
|
import type {
|
|
@@ -515,10 +515,9 @@ export type CreateConfigParameters<
|
|
|
515
515
|
| undefined
|
|
516
516
|
})
|
|
517
517
|
| {
|
|
518
|
-
client(parameters: {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
>
|
|
518
|
+
client(parameters: {
|
|
519
|
+
chain: chains[number]
|
|
520
|
+
}): Client<transports[chains[number]['id']], chains[number]>
|
|
522
521
|
}
|
|
523
522
|
>
|
|
524
523
|
>
|
package/src/exports/actions.ts
CHANGED
|
@@ -30,20 +30,18 @@ export {
|
|
|
30
30
|
type DisconnectReturnType,
|
|
31
31
|
disconnect,
|
|
32
32
|
} from '../actions/disconnect.js'
|
|
33
|
-
|
|
34
|
-
export {
|
|
35
|
-
type EstimateGasErrorType,
|
|
36
|
-
type EstimateGasParameters,
|
|
37
|
-
type EstimateGasReturnType,
|
|
38
|
-
estimateGas,
|
|
39
|
-
} from '../actions/estimateGas.js'
|
|
40
|
-
|
|
41
33
|
export {
|
|
42
34
|
type EstimateFeesPerGasErrorType,
|
|
43
35
|
type EstimateFeesPerGasParameters,
|
|
44
36
|
type EstimateFeesPerGasReturnType,
|
|
45
37
|
estimateFeesPerGas,
|
|
46
38
|
} from '../actions/estimateFeesPerGas.js'
|
|
39
|
+
export {
|
|
40
|
+
type EstimateGasErrorType,
|
|
41
|
+
type EstimateGasParameters,
|
|
42
|
+
type EstimateGasReturnType,
|
|
43
|
+
estimateGas,
|
|
44
|
+
} from '../actions/estimateGas.js'
|
|
47
45
|
|
|
48
46
|
export {
|
|
49
47
|
type EstimateMaxPriorityFeePerGasErrorType,
|
|
@@ -58,9 +56,9 @@ export {
|
|
|
58
56
|
} from '../actions/getAccount.js'
|
|
59
57
|
|
|
60
58
|
export {
|
|
59
|
+
type GetBalanceErrorType,
|
|
61
60
|
type GetBalanceParameters,
|
|
62
61
|
type GetBalanceReturnType,
|
|
63
|
-
type GetBalanceErrorType,
|
|
64
62
|
getBalance,
|
|
65
63
|
/** @deprecated use `getBalance` instead */
|
|
66
64
|
getBalance as fetchBalance,
|
|
@@ -130,18 +128,16 @@ export {
|
|
|
130
128
|
type GetConnectionsReturnType,
|
|
131
129
|
getConnections,
|
|
132
130
|
} from '../actions/getConnections.js'
|
|
133
|
-
|
|
134
|
-
export {
|
|
135
|
-
type GetConnectorsReturnType,
|
|
136
|
-
getConnectors,
|
|
137
|
-
} from '../actions/getConnectors.js'
|
|
138
|
-
|
|
139
131
|
export {
|
|
140
132
|
type GetConnectorClientErrorType,
|
|
141
133
|
type GetConnectorClientParameters,
|
|
142
134
|
type GetConnectorClientReturnType,
|
|
143
135
|
getConnectorClient,
|
|
144
136
|
} from '../actions/getConnectorClient.js'
|
|
137
|
+
export {
|
|
138
|
+
type GetConnectorsReturnType,
|
|
139
|
+
getConnectors,
|
|
140
|
+
} from '../actions/getConnectors.js'
|
|
145
141
|
|
|
146
142
|
export {
|
|
147
143
|
type GetEnsAddressErrorType,
|
|
@@ -273,23 +269,23 @@ export {
|
|
|
273
269
|
} from '../actions/multicall.js'
|
|
274
270
|
|
|
275
271
|
export {
|
|
272
|
+
type PrepareTransactionRequestErrorType,
|
|
276
273
|
type PrepareTransactionRequestParameters,
|
|
277
274
|
type PrepareTransactionRequestReturnType,
|
|
278
|
-
type PrepareTransactionRequestErrorType,
|
|
279
275
|
prepareTransactionRequest,
|
|
280
276
|
} from '../actions/prepareTransactionRequest.js'
|
|
281
277
|
|
|
282
278
|
export {
|
|
279
|
+
type ReadContractErrorType,
|
|
283
280
|
type ReadContractParameters,
|
|
284
281
|
type ReadContractReturnType,
|
|
285
|
-
type ReadContractErrorType,
|
|
286
282
|
readContract,
|
|
287
283
|
} from '../actions/readContract.js'
|
|
288
284
|
|
|
289
285
|
export {
|
|
286
|
+
type ReadContractsErrorType,
|
|
290
287
|
type ReadContractsParameters,
|
|
291
288
|
type ReadContractsReturnType,
|
|
292
|
-
type ReadContractsErrorType,
|
|
293
289
|
readContracts,
|
|
294
290
|
} from '../actions/readContracts.js'
|
|
295
291
|
|
|
@@ -376,82 +372,71 @@ export {
|
|
|
376
372
|
type WaitForCallsStatusReturnType,
|
|
377
373
|
waitForCallsStatus,
|
|
378
374
|
} from '../actions/waitForCallsStatus.js'
|
|
379
|
-
|
|
375
|
+
export {
|
|
376
|
+
type WaitForTransactionReceiptErrorType,
|
|
377
|
+
type WaitForTransactionReceiptParameters,
|
|
378
|
+
type WaitForTransactionReceiptReturnType,
|
|
379
|
+
waitForTransactionReceipt,
|
|
380
|
+
/** @deprecated use `waitForTransactionReceipt` instead */
|
|
381
|
+
waitForTransactionReceipt as waitForTransaction,
|
|
382
|
+
} from '../actions/waitForTransactionReceipt.js'
|
|
380
383
|
export {
|
|
381
384
|
type WatchAccountParameters,
|
|
382
385
|
type WatchAccountReturnType,
|
|
383
386
|
watchAccount,
|
|
384
387
|
} from '../actions/watchAccount.js'
|
|
385
|
-
|
|
386
388
|
export {
|
|
387
389
|
type WatchAssetParameters,
|
|
388
390
|
type WatchAssetReturnType,
|
|
389
391
|
watchAsset,
|
|
390
392
|
} from '../actions/watchAsset.js'
|
|
391
393
|
|
|
392
|
-
export {
|
|
393
|
-
type WatchBlocksParameters,
|
|
394
|
-
type WatchBlocksReturnType,
|
|
395
|
-
watchBlocks,
|
|
396
|
-
} from '../actions/watchBlocks.js'
|
|
397
|
-
|
|
398
394
|
export {
|
|
399
395
|
type WatchBlockNumberParameters,
|
|
400
396
|
type WatchBlockNumberReturnType,
|
|
401
397
|
watchBlockNumber,
|
|
402
398
|
} from '../actions/watchBlockNumber.js'
|
|
403
|
-
|
|
399
|
+
export {
|
|
400
|
+
type WatchBlocksParameters,
|
|
401
|
+
type WatchBlocksReturnType,
|
|
402
|
+
watchBlocks,
|
|
403
|
+
} from '../actions/watchBlocks.js'
|
|
404
404
|
export {
|
|
405
405
|
type WatchChainIdParameters,
|
|
406
406
|
type WatchChainIdReturnType,
|
|
407
407
|
watchChainId,
|
|
408
408
|
} from '../actions/watchChainId.js'
|
|
409
|
-
|
|
410
409
|
export {
|
|
411
410
|
type WatchClientParameters,
|
|
412
411
|
type WatchClientReturnType,
|
|
413
412
|
watchClient,
|
|
414
413
|
} from '../actions/watchClient.js'
|
|
415
|
-
|
|
416
414
|
export {
|
|
417
415
|
type WatchConnectionsParameters,
|
|
418
416
|
type WatchConnectionsReturnType,
|
|
419
417
|
watchConnections,
|
|
420
418
|
} from '../actions/watchConnections.js'
|
|
421
|
-
|
|
422
419
|
export {
|
|
423
420
|
type WatchConnectorsParameters,
|
|
424
421
|
type WatchConnectorsReturnType,
|
|
425
422
|
watchConnectors,
|
|
426
423
|
} from '../actions/watchConnectors.js'
|
|
427
|
-
|
|
428
424
|
export {
|
|
429
425
|
type WatchContractEventParameters,
|
|
430
426
|
type WatchContractEventReturnType,
|
|
431
427
|
watchContractEvent,
|
|
432
428
|
} from '../actions/watchContractEvent.js'
|
|
433
|
-
|
|
434
429
|
export {
|
|
435
430
|
type WatchPendingTransactionsParameters,
|
|
436
431
|
type WatchPendingTransactionsReturnType,
|
|
437
432
|
watchPendingTransactions,
|
|
438
433
|
} from '../actions/watchPendingTransactions.js'
|
|
439
|
-
|
|
440
434
|
export {
|
|
441
435
|
type WatchPublicClientParameters,
|
|
442
436
|
type WatchPublicClientReturnType,
|
|
443
437
|
watchPublicClient,
|
|
444
438
|
} from '../actions/watchPublicClient.js'
|
|
445
439
|
|
|
446
|
-
export {
|
|
447
|
-
type WaitForTransactionReceiptErrorType,
|
|
448
|
-
type WaitForTransactionReceiptParameters,
|
|
449
|
-
type WaitForTransactionReceiptReturnType,
|
|
450
|
-
waitForTransactionReceipt,
|
|
451
|
-
/** @deprecated use `waitForTransactionReceipt` instead */
|
|
452
|
-
waitForTransactionReceipt as waitForTransaction,
|
|
453
|
-
} from '../actions/waitForTransactionReceipt.js'
|
|
454
|
-
|
|
455
440
|
export {
|
|
456
441
|
type WriteContractErrorType,
|
|
457
442
|
type WriteContractParameters,
|
package/src/exports/codegen.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
// biome-ignore lint/performance/noBarrelFile: entrypoint module
|
|
2
|
-
export {
|
|
3
|
-
type CreateSimulateContractParameters,
|
|
4
|
-
type CreateSimulateContractReturnType,
|
|
5
|
-
createSimulateContract,
|
|
6
|
-
} from '../actions/codegen/createSimulateContract.js'
|
|
7
|
-
|
|
8
2
|
export {
|
|
9
3
|
type CreateReadContractParameters,
|
|
10
4
|
type CreateReadContractReturnType,
|
|
11
5
|
createReadContract,
|
|
12
6
|
} from '../actions/codegen/createReadContract.js'
|
|
7
|
+
export {
|
|
8
|
+
type CreateSimulateContractParameters,
|
|
9
|
+
type CreateSimulateContractReturnType,
|
|
10
|
+
createSimulateContract,
|
|
11
|
+
} from '../actions/codegen/createSimulateContract.js'
|
|
13
12
|
|
|
14
13
|
export {
|
|
15
14
|
type CreateWatchContractEventParameters,
|