@wagmi/core 2.0.0-alpha.4 → 2.0.0-alpha.6
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/estimateGas.js.map +1 -1
- package/dist/esm/actions/getAccount.js +5 -0
- package/dist/esm/actions/getAccount.js.map +1 -1
- package/dist/esm/actions/getBalance.js.map +1 -1
- package/dist/esm/actions/getBlock.js.map +1 -1
- package/dist/esm/actions/getBlockNumber.js.map +1 -1
- package/dist/esm/actions/getEnsAddress.js.map +1 -1
- package/dist/esm/actions/getEnsAvatar.js.map +1 -1
- package/dist/esm/actions/getEnsName.js.map +1 -1
- package/dist/esm/actions/getEnsResolver.js.map +1 -1
- package/dist/esm/actions/getToken.js.map +1 -1
- package/dist/esm/actions/getTransaction.js.map +1 -1
- package/dist/esm/actions/multicall.js.map +1 -1
- package/dist/esm/actions/readContract.js.map +1 -1
- package/dist/esm/actions/readContracts.js.map +1 -1
- package/dist/esm/actions/sendTransaction.js.map +1 -1
- package/dist/esm/actions/signMessage.js.map +1 -1
- package/dist/esm/actions/signTypedData.js.map +1 -1
- package/dist/esm/actions/simulateContract.js.map +1 -1
- package/dist/esm/actions/waitForTransactionReceipt.js.map +1 -1
- package/dist/esm/actions/watchBlockNumber.js +1 -3
- package/dist/esm/actions/watchBlockNumber.js.map +1 -1
- package/dist/esm/actions/watchBlocks.js +1 -3
- package/dist/esm/actions/watchBlocks.js.map +1 -1
- package/dist/esm/actions/watchContractEvent.js +1 -3
- package/dist/esm/actions/watchContractEvent.js.map +1 -1
- package/dist/esm/actions/watchPendingTransactions.js +1 -3
- package/dist/esm/actions/watchPendingTransactions.js.map +1 -1
- package/dist/esm/actions/writeContract.js +1 -1
- package/dist/esm/actions/writeContract.js.map +1 -1
- package/dist/esm/connectors/injected.js +20 -5
- package/dist/esm/connectors/injected.js.map +1 -1
- package/dist/esm/connectors/mock.js +129 -0
- package/dist/esm/connectors/mock.js.map +1 -0
- package/dist/esm/createConfig.js +1 -1
- package/dist/esm/createConfig.js.map +1 -1
- package/dist/esm/exports/actions.js +33 -11
- package/dist/esm/exports/actions.js.map +1 -1
- package/dist/esm/exports/index.js +31 -11
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/exports/internal.js +4 -0
- package/dist/esm/exports/internal.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/actions/connect.d.ts +1 -1
- package/dist/types/actions/connect.d.ts.map +1 -1
- package/dist/types/actions/disconnect.d.ts +1 -1
- package/dist/types/actions/disconnect.d.ts.map +1 -1
- package/dist/types/actions/estimateFeesPerGas.d.ts +2 -2
- 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/getAccount.d.ts +5 -1
- package/dist/types/actions/getAccount.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 +2 -2
- 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/getConnectorClient.d.ts +1 -1
- 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/getToken.d.ts +2 -1
- package/dist/types/actions/getToken.d.ts.map +1 -1
- package/dist/types/actions/getTransaction.d.ts +2 -2
- package/dist/types/actions/getTransaction.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/multicall.d.ts +2 -1
- package/dist/types/actions/multicall.d.ts.map +1 -1
- package/dist/types/actions/readContract.d.ts +2 -2
- package/dist/types/actions/readContract.d.ts.map +1 -1
- package/dist/types/actions/readContracts.d.ts +3 -1
- package/dist/types/actions/readContracts.d.ts.map +1 -1
- package/dist/types/actions/reconnect.d.ts +1 -1
- 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 +2 -2
- package/dist/types/actions/simulateContract.d.ts.map +1 -1
- package/dist/types/actions/switchAccount.d.ts +1 -1
- package/dist/types/actions/switchAccount.d.ts.map +1 -1
- package/dist/types/actions/switchChain.d.ts +1 -1
- package/dist/types/actions/switchChain.d.ts.map +1 -1
- package/dist/types/actions/waitForTransactionReceipt.d.ts +3 -2
- package/dist/types/actions/waitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/actions/watchBlockNumber.d.ts.map +1 -1
- package/dist/types/actions/watchBlocks.d.ts.map +1 -1
- package/dist/types/actions/watchContractEvent.d.ts.map +1 -1
- package/dist/types/actions/watchPendingTransactions.d.ts.map +1 -1
- package/dist/types/actions/writeContract.d.ts +6 -5
- package/dist/types/actions/writeContract.d.ts.map +1 -1
- package/dist/types/connectors/injected.d.ts +4 -4
- package/dist/types/connectors/injected.d.ts.map +1 -1
- package/dist/types/connectors/mock.d.ts +17 -0
- package/dist/types/connectors/mock.d.ts.map +1 -0
- package/dist/types/createConfig.d.ts +1 -1
- package/dist/types/createConfig.d.ts.map +1 -1
- package/dist/types/exports/actions.d.ts +47 -25
- package/dist/types/exports/actions.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts +47 -27
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/exports/internal.d.ts +2 -0
- package/dist/types/exports/internal.d.ts.map +1 -1
- package/dist/types/query/connect.d.ts +3 -3
- package/dist/types/query/connect.d.ts.map +1 -1
- package/dist/types/query/disconnect.d.ts +3 -3
- package/dist/types/query/disconnect.d.ts.map +1 -1
- package/dist/types/query/reconnect.d.ts +3 -3
- package/dist/types/query/reconnect.d.ts.map +1 -1
- package/dist/types/query/sendTransaction.d.ts +3 -3
- package/dist/types/query/sendTransaction.d.ts.map +1 -1
- package/dist/types/query/signMessage.d.ts +3 -3
- package/dist/types/query/signMessage.d.ts.map +1 -1
- package/dist/types/query/signTypedData.d.ts +3 -3
- package/dist/types/query/signTypedData.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 +3 -3
- package/dist/types/query/switchChain.d.ts.map +1 -1
- package/dist/types/query/writeContract.d.ts +54 -4
- package/dist/types/query/writeContract.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/actions/connect.ts +1 -1
- package/src/actions/disconnect.ts +1 -1
- package/src/actions/estimateFeesPerGas.ts +2 -1
- package/src/actions/estimateGas.ts +2 -1
- package/src/actions/getAccount.ts +10 -1
- package/src/actions/getBalance.ts +2 -1
- package/src/actions/getBlock.ts +2 -1
- package/src/actions/getBlockNumber.ts +2 -1
- package/src/actions/getConnectorClient.ts +1 -1
- package/src/actions/getEnsAddress.ts +2 -1
- package/src/actions/getEnsAvatar.ts +2 -1
- package/src/actions/getEnsName.ts +2 -1
- package/src/actions/getEnsResolver.ts +2 -1
- package/src/actions/getToken.ts +2 -2
- package/src/actions/getTransaction.ts +2 -1
- package/src/actions/getWalletClient.ts +2 -2
- package/src/actions/multicall.ts +3 -0
- package/src/actions/readContract.ts +2 -1
- package/src/actions/readContracts.ts +3 -3
- package/src/actions/reconnect.ts +1 -1
- package/src/actions/sendTransaction.ts +2 -1
- package/src/actions/signMessage.ts +2 -1
- package/src/actions/signTypedData.ts +2 -1
- package/src/actions/simulateContract.ts +2 -1
- package/src/actions/switchAccount.ts +1 -1
- package/src/actions/switchChain.ts +1 -1
- package/src/actions/waitForTransactionReceipt.ts +6 -7
- package/src/actions/watchBlockNumber.ts +1 -3
- package/src/actions/watchBlocks.ts +1 -3
- package/src/actions/watchContractEvent.ts +1 -3
- package/src/actions/watchPendingTransactions.ts +1 -3
- package/src/actions/writeContract.ts +27 -28
- package/src/connectors/injected.ts +27 -12
- package/src/connectors/mock.ts +174 -0
- package/src/createConfig.ts +2 -3
- package/src/exports/actions.ts +64 -31
- package/src/exports/index.ts +48 -31
- package/src/exports/internal.ts +13 -0
- package/src/query/connect.ts +4 -4
- package/src/query/disconnect.ts +4 -4
- package/src/query/estimateFeesPerGas.ts +2 -2
- package/src/query/estimateGas.ts +2 -2
- package/src/query/getBalance.ts +2 -2
- package/src/query/getBlock.ts +2 -2
- package/src/query/getBlockNumber.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/getToken.ts +2 -2
- package/src/query/getTransaction.ts +2 -2
- package/src/query/getWalletClient.ts +2 -2
- package/src/query/infiniteReadContracts.ts +2 -2
- package/src/query/readContract.ts +2 -2
- package/src/query/readContracts.ts +2 -2
- package/src/query/reconnect.ts +4 -4
- package/src/query/sendTransaction.ts +4 -4
- package/src/query/signMessage.ts +4 -4
- package/src/query/signTypedData.ts +4 -4
- package/src/query/simulateContract.ts +2 -2
- package/src/query/switchAccount.ts +4 -4
- package/src/query/switchChain.ts +4 -4
- package/src/query/waitForTransactionReceipt.ts +2 -2
- package/src/query/writeContract.ts +4 -4
- package/src/version.ts +1 -1
package/src/exports/actions.ts
CHANGED
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
// Actions
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
|
-
type
|
|
5
|
+
type ConnectErrorType,
|
|
6
6
|
type ConnectParameters,
|
|
7
7
|
type ConnectReturnType,
|
|
8
8
|
connect,
|
|
9
9
|
} from '../actions/connect.js'
|
|
10
10
|
|
|
11
11
|
export {
|
|
12
|
-
type
|
|
12
|
+
type DisconnectErrorType,
|
|
13
13
|
type DisconnectParameters,
|
|
14
14
|
type DisconnectReturnType,
|
|
15
15
|
disconnect,
|
|
16
16
|
} from '../actions/disconnect.js'
|
|
17
17
|
|
|
18
18
|
export {
|
|
19
|
-
type
|
|
20
|
-
type EstimateFeesPerGasParameters,
|
|
21
|
-
type EstimateFeesPerGasReturnType,
|
|
22
|
-
estimateFeesPerGas,
|
|
23
|
-
} from '../actions/estimateFeesPerGas.js'
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
type EstimateGasError,
|
|
19
|
+
type EstimateGasErrorType,
|
|
27
20
|
type EstimateGasParameters,
|
|
28
21
|
type EstimateGasReturnType,
|
|
29
22
|
estimateGas,
|
|
30
23
|
} from '../actions/estimateGas.js'
|
|
31
24
|
|
|
25
|
+
export {
|
|
26
|
+
type EstimateFeesPerGasErrorType,
|
|
27
|
+
type EstimateFeesPerGasParameters,
|
|
28
|
+
type EstimateFeesPerGasReturnType,
|
|
29
|
+
estimateFeesPerGas,
|
|
30
|
+
} from '../actions/estimateFeesPerGas.js'
|
|
31
|
+
|
|
32
32
|
export {
|
|
33
33
|
type GetAccountReturnType,
|
|
34
34
|
getAccount,
|
|
@@ -37,15 +37,26 @@ export {
|
|
|
37
37
|
export {
|
|
38
38
|
type GetBalanceParameters,
|
|
39
39
|
type GetBalanceReturnType,
|
|
40
|
-
type
|
|
40
|
+
type GetBalanceErrorType,
|
|
41
41
|
getBalance,
|
|
42
|
+
/** @deprecated use `getBalance` instead */
|
|
43
|
+
getBalance as fetchBalance,
|
|
42
44
|
} from '../actions/getBalance.js'
|
|
43
45
|
|
|
44
46
|
export {
|
|
45
|
-
type
|
|
47
|
+
type GetBlockErrorType,
|
|
48
|
+
type GetBlockParameters,
|
|
49
|
+
type GetBlockReturnType,
|
|
50
|
+
getBlock,
|
|
51
|
+
} from '../actions/getBlock.js'
|
|
52
|
+
|
|
53
|
+
export {
|
|
54
|
+
type GetBlockNumberErrorType,
|
|
46
55
|
type GetBlockNumberParameters,
|
|
47
56
|
type GetBlockNumberReturnType,
|
|
48
57
|
getBlockNumber,
|
|
58
|
+
/** @deprecated use `getBlockNumber` instead */
|
|
59
|
+
getBlockNumber as fetchBlockNumber,
|
|
49
60
|
} from '../actions/getBlockNumber.js'
|
|
50
61
|
|
|
51
62
|
export {
|
|
@@ -70,38 +81,46 @@ export {
|
|
|
70
81
|
} from '../actions/getConnectors.js'
|
|
71
82
|
|
|
72
83
|
export {
|
|
73
|
-
type
|
|
84
|
+
type GetConnectorClientErrorType,
|
|
74
85
|
type GetConnectorClientParameters,
|
|
75
86
|
type GetConnectorClientReturnType,
|
|
76
87
|
getConnectorClient,
|
|
77
88
|
} from '../actions/getConnectorClient.js'
|
|
78
89
|
|
|
79
90
|
export {
|
|
80
|
-
type
|
|
91
|
+
type GetEnsAddressErrorType,
|
|
81
92
|
type GetEnsAddressParameters,
|
|
82
93
|
type GetEnsAddressReturnType,
|
|
83
94
|
getEnsAddress,
|
|
95
|
+
/** @deprecated use `getEnsAddress` instead */
|
|
96
|
+
getEnsAddress as fetchEnsAddress,
|
|
84
97
|
} from '../actions/getEnsAddress.js'
|
|
85
98
|
|
|
86
99
|
export {
|
|
87
|
-
type
|
|
100
|
+
type GetEnsAvatarErrorType,
|
|
88
101
|
type GetEnsAvatarParameters,
|
|
89
102
|
type GetEnsAvatarReturnType,
|
|
90
103
|
getEnsAvatar,
|
|
104
|
+
/** @deprecated use `getEnsAvatar` instead */
|
|
105
|
+
getEnsAvatar as fetchEnsAvatar,
|
|
91
106
|
} from '../actions/getEnsAvatar.js'
|
|
92
107
|
|
|
93
108
|
export {
|
|
94
|
-
type
|
|
109
|
+
type GetEnsNameErrorType,
|
|
95
110
|
type GetEnsNameParameters,
|
|
96
111
|
type GetEnsNameReturnType,
|
|
97
112
|
getEnsName,
|
|
113
|
+
/** @deprecated */
|
|
114
|
+
getEnsName as fetchEnsName,
|
|
98
115
|
} from '../actions/getEnsName.js'
|
|
99
116
|
|
|
100
117
|
export {
|
|
101
|
-
type
|
|
118
|
+
type GetEnsResolverErrorType,
|
|
102
119
|
type GetEnsResolverParameters,
|
|
103
120
|
type GetEnsResolverReturnType,
|
|
104
121
|
getEnsResolver,
|
|
122
|
+
/** @deprecated use `getEnsResolver` instead */
|
|
123
|
+
getEnsResolver as fetchEnsResolver,
|
|
105
124
|
} from '../actions/getEnsResolver.js'
|
|
106
125
|
|
|
107
126
|
export {
|
|
@@ -111,21 +130,25 @@ export {
|
|
|
111
130
|
} from '../actions/getPublicClient.js'
|
|
112
131
|
|
|
113
132
|
export {
|
|
114
|
-
type
|
|
133
|
+
type GetTokenErrorType,
|
|
115
134
|
type GetTokenParameters,
|
|
116
135
|
type GetTokenReturnType,
|
|
117
136
|
getToken,
|
|
137
|
+
/** @deprecated use `getToken` instead */
|
|
138
|
+
getToken as fetchToken,
|
|
118
139
|
} from '../actions/getToken.js'
|
|
119
140
|
|
|
120
141
|
export {
|
|
121
|
-
type
|
|
142
|
+
type GetTransactionErrorType,
|
|
122
143
|
type GetTransactionParameters,
|
|
123
144
|
type GetTransactionReturnType,
|
|
124
145
|
getTransaction,
|
|
146
|
+
/** @deprecated use `getTransaction` instead */
|
|
147
|
+
getTransaction as fetchTransaction,
|
|
125
148
|
} from '../actions/getTransaction.js'
|
|
126
149
|
|
|
127
150
|
export {
|
|
128
|
-
type
|
|
151
|
+
type GetWalletClientErrorType,
|
|
129
152
|
type GetWalletClientParameters,
|
|
130
153
|
type GetWalletClientReturnType,
|
|
131
154
|
getWalletClient,
|
|
@@ -140,64 +163,66 @@ export {
|
|
|
140
163
|
export {
|
|
141
164
|
type ReadContractParameters,
|
|
142
165
|
type ReadContractReturnType,
|
|
143
|
-
type
|
|
166
|
+
type ReadContractErrorType,
|
|
144
167
|
readContract,
|
|
145
168
|
} from '../actions/readContract.js'
|
|
146
169
|
|
|
147
170
|
export {
|
|
148
171
|
type ReadContractsParameters,
|
|
149
172
|
type ReadContractsReturnType,
|
|
150
|
-
type
|
|
173
|
+
type ReadContractsErrorType,
|
|
151
174
|
readContracts,
|
|
152
175
|
} from '../actions/readContracts.js'
|
|
153
176
|
|
|
154
177
|
export {
|
|
155
|
-
type
|
|
178
|
+
type ReconnectErrorType,
|
|
156
179
|
type ReconnectParameters,
|
|
157
180
|
type ReconnectReturnType,
|
|
158
181
|
reconnect,
|
|
159
182
|
} from '../actions/reconnect.js'
|
|
160
183
|
|
|
161
184
|
export {
|
|
162
|
-
type
|
|
185
|
+
type SendTransactionErrorType,
|
|
163
186
|
type SendTransactionParameters,
|
|
164
187
|
type SendTransactionReturnType,
|
|
165
188
|
sendTransaction,
|
|
166
189
|
} from '../actions/sendTransaction.js'
|
|
167
190
|
|
|
168
191
|
export {
|
|
169
|
-
type
|
|
192
|
+
type SignMessageErrorType,
|
|
170
193
|
type SignMessageParameters,
|
|
171
194
|
type SignMessageReturnType,
|
|
172
195
|
signMessage,
|
|
173
196
|
} from '../actions/signMessage.js'
|
|
174
197
|
|
|
175
198
|
export {
|
|
176
|
-
type
|
|
199
|
+
type SignTypedDataErrorType,
|
|
177
200
|
type SignTypedDataParameters,
|
|
178
201
|
type SignTypedDataReturnType,
|
|
179
202
|
signTypedData,
|
|
180
203
|
} from '../actions/signTypedData.js'
|
|
181
204
|
|
|
182
205
|
export {
|
|
183
|
-
type
|
|
206
|
+
type SimulateContractErrorType,
|
|
184
207
|
type SimulateContractParameters,
|
|
185
208
|
type SimulateContractReturnType,
|
|
186
209
|
simulateContract,
|
|
187
210
|
} from '../actions/simulateContract.js'
|
|
188
211
|
|
|
189
212
|
export {
|
|
190
|
-
type
|
|
213
|
+
type SwitchAccountErrorType,
|
|
191
214
|
type SwitchAccountParameters,
|
|
192
215
|
type SwitchAccountReturnType,
|
|
193
216
|
switchAccount,
|
|
194
217
|
} from '../actions/switchAccount.js'
|
|
195
218
|
|
|
196
219
|
export {
|
|
197
|
-
type
|
|
220
|
+
type SwitchChainErrorType,
|
|
198
221
|
type SwitchChainParameters,
|
|
199
222
|
type SwitchChainReturnType,
|
|
200
223
|
switchChain,
|
|
224
|
+
/** @deprecated use `switchChain` instead */
|
|
225
|
+
switchChain as switchNetwork,
|
|
201
226
|
} from '../actions/switchChain.js'
|
|
202
227
|
|
|
203
228
|
export {
|
|
@@ -206,6 +231,12 @@ export {
|
|
|
206
231
|
watchAccount,
|
|
207
232
|
} from '../actions/watchAccount.js'
|
|
208
233
|
|
|
234
|
+
export {
|
|
235
|
+
type WatchBlocksParameters,
|
|
236
|
+
type WatchBlocksReturnType,
|
|
237
|
+
watchBlocks,
|
|
238
|
+
} from '../actions/watchBlocks.js'
|
|
239
|
+
|
|
209
240
|
export {
|
|
210
241
|
type WatchBlockNumberParameters,
|
|
211
242
|
type WatchBlockNumberReturnType,
|
|
@@ -255,14 +286,16 @@ export {
|
|
|
255
286
|
} from '../actions/watchPublicClient.js'
|
|
256
287
|
|
|
257
288
|
export {
|
|
258
|
-
type
|
|
289
|
+
type WaitForTransactionReceiptErrorType,
|
|
259
290
|
type WaitForTransactionReceiptParameters,
|
|
260
291
|
type WaitForTransactionReceiptReturnType,
|
|
261
292
|
waitForTransactionReceipt,
|
|
293
|
+
/** @deprecated use `waitForTransactionReceipt` instead */
|
|
294
|
+
waitForTransactionReceipt as waitForTransaction,
|
|
262
295
|
} from '../actions/waitForTransactionReceipt.js'
|
|
263
296
|
|
|
264
297
|
export {
|
|
265
|
-
type
|
|
298
|
+
type WriteContractErrorType,
|
|
266
299
|
type WriteContractParameters,
|
|
267
300
|
type WriteContractReturnType,
|
|
268
301
|
writeContract,
|
package/src/exports/index.ts
CHANGED
|
@@ -13,28 +13,28 @@ export {
|
|
|
13
13
|
// Actions
|
|
14
14
|
|
|
15
15
|
export {
|
|
16
|
-
type
|
|
16
|
+
type ConnectErrorType,
|
|
17
17
|
type ConnectParameters,
|
|
18
18
|
type ConnectReturnType,
|
|
19
19
|
connect,
|
|
20
20
|
} from '../actions/connect.js'
|
|
21
21
|
|
|
22
22
|
export {
|
|
23
|
-
type
|
|
23
|
+
type DisconnectErrorType,
|
|
24
24
|
type DisconnectParameters,
|
|
25
25
|
type DisconnectReturnType,
|
|
26
26
|
disconnect,
|
|
27
27
|
} from '../actions/disconnect.js'
|
|
28
28
|
|
|
29
29
|
export {
|
|
30
|
-
type
|
|
30
|
+
type EstimateGasErrorType,
|
|
31
31
|
type EstimateGasParameters,
|
|
32
32
|
type EstimateGasReturnType,
|
|
33
33
|
estimateGas,
|
|
34
34
|
} from '../actions/estimateGas.js'
|
|
35
35
|
|
|
36
36
|
export {
|
|
37
|
-
type
|
|
37
|
+
type EstimateFeesPerGasErrorType,
|
|
38
38
|
type EstimateFeesPerGasParameters,
|
|
39
39
|
type EstimateFeesPerGasReturnType,
|
|
40
40
|
estimateFeesPerGas,
|
|
@@ -48,22 +48,26 @@ export {
|
|
|
48
48
|
export {
|
|
49
49
|
type GetBalanceParameters,
|
|
50
50
|
type GetBalanceReturnType,
|
|
51
|
-
type
|
|
51
|
+
type GetBalanceErrorType,
|
|
52
52
|
getBalance,
|
|
53
|
+
/** @deprecated use `getBalance` instead */
|
|
54
|
+
getBalance as fetchBalance,
|
|
53
55
|
} from '../actions/getBalance.js'
|
|
54
56
|
|
|
55
57
|
export {
|
|
56
|
-
type
|
|
58
|
+
type GetBlockErrorType,
|
|
57
59
|
type GetBlockParameters,
|
|
58
60
|
type GetBlockReturnType,
|
|
59
61
|
getBlock,
|
|
60
62
|
} from '../actions/getBlock.js'
|
|
61
63
|
|
|
62
64
|
export {
|
|
63
|
-
type
|
|
65
|
+
type GetBlockNumberErrorType,
|
|
64
66
|
type GetBlockNumberParameters,
|
|
65
67
|
type GetBlockNumberReturnType,
|
|
66
68
|
getBlockNumber,
|
|
69
|
+
/** @deprecated use `getBlockNumber` instead */
|
|
70
|
+
getBlockNumber as fetchBlockNumber,
|
|
67
71
|
} from '../actions/getBlockNumber.js'
|
|
68
72
|
|
|
69
73
|
export {
|
|
@@ -88,38 +92,46 @@ export {
|
|
|
88
92
|
} from '../actions/getConnectors.js'
|
|
89
93
|
|
|
90
94
|
export {
|
|
91
|
-
type
|
|
95
|
+
type GetConnectorClientErrorType,
|
|
92
96
|
type GetConnectorClientParameters,
|
|
93
97
|
type GetConnectorClientReturnType,
|
|
94
98
|
getConnectorClient,
|
|
95
99
|
} from '../actions/getConnectorClient.js'
|
|
96
100
|
|
|
97
101
|
export {
|
|
98
|
-
type
|
|
102
|
+
type GetEnsAddressErrorType,
|
|
99
103
|
type GetEnsAddressParameters,
|
|
100
104
|
type GetEnsAddressReturnType,
|
|
101
105
|
getEnsAddress,
|
|
106
|
+
/** @deprecated use `getEnsAddress` instead */
|
|
107
|
+
getEnsAddress as fetchEnsAddress,
|
|
102
108
|
} from '../actions/getEnsAddress.js'
|
|
103
109
|
|
|
104
110
|
export {
|
|
105
|
-
type
|
|
111
|
+
type GetEnsAvatarErrorType,
|
|
106
112
|
type GetEnsAvatarParameters,
|
|
107
113
|
type GetEnsAvatarReturnType,
|
|
108
114
|
getEnsAvatar,
|
|
115
|
+
/** @deprecated use `getEnsAvatar` instead */
|
|
116
|
+
getEnsAvatar as fetchEnsAvatar,
|
|
109
117
|
} from '../actions/getEnsAvatar.js'
|
|
110
118
|
|
|
111
119
|
export {
|
|
112
|
-
type
|
|
120
|
+
type GetEnsNameErrorType,
|
|
113
121
|
type GetEnsNameParameters,
|
|
114
122
|
type GetEnsNameReturnType,
|
|
115
123
|
getEnsName,
|
|
124
|
+
/** @deprecated */
|
|
125
|
+
getEnsName as fetchEnsName,
|
|
116
126
|
} from '../actions/getEnsName.js'
|
|
117
127
|
|
|
118
128
|
export {
|
|
119
|
-
type
|
|
129
|
+
type GetEnsResolverErrorType,
|
|
120
130
|
type GetEnsResolverParameters,
|
|
121
131
|
type GetEnsResolverReturnType,
|
|
122
132
|
getEnsResolver,
|
|
133
|
+
/** @deprecated use `getEnsResolver` instead */
|
|
134
|
+
getEnsResolver as fetchEnsResolver,
|
|
123
135
|
} from '../actions/getEnsResolver.js'
|
|
124
136
|
|
|
125
137
|
export {
|
|
@@ -129,21 +141,25 @@ export {
|
|
|
129
141
|
} from '../actions/getPublicClient.js'
|
|
130
142
|
|
|
131
143
|
export {
|
|
132
|
-
type
|
|
144
|
+
type GetTokenErrorType,
|
|
133
145
|
type GetTokenParameters,
|
|
134
146
|
type GetTokenReturnType,
|
|
135
147
|
getToken,
|
|
148
|
+
/** @deprecated use `getToken` instead */
|
|
149
|
+
getToken as fetchToken,
|
|
136
150
|
} from '../actions/getToken.js'
|
|
137
151
|
|
|
138
152
|
export {
|
|
139
|
-
type
|
|
153
|
+
type GetTransactionErrorType,
|
|
140
154
|
type GetTransactionParameters,
|
|
141
155
|
type GetTransactionReturnType,
|
|
142
156
|
getTransaction,
|
|
157
|
+
/** @deprecated use `getTransaction` instead */
|
|
158
|
+
getTransaction as fetchTransaction,
|
|
143
159
|
} from '../actions/getTransaction.js'
|
|
144
160
|
|
|
145
161
|
export {
|
|
146
|
-
type
|
|
162
|
+
type GetWalletClientErrorType,
|
|
147
163
|
type GetWalletClientParameters,
|
|
148
164
|
type GetWalletClientReturnType,
|
|
149
165
|
getWalletClient,
|
|
@@ -158,64 +174,66 @@ export {
|
|
|
158
174
|
export {
|
|
159
175
|
type ReadContractParameters,
|
|
160
176
|
type ReadContractReturnType,
|
|
161
|
-
type
|
|
177
|
+
type ReadContractErrorType,
|
|
162
178
|
readContract,
|
|
163
179
|
} from '../actions/readContract.js'
|
|
164
180
|
|
|
165
181
|
export {
|
|
166
182
|
type ReadContractsParameters,
|
|
167
183
|
type ReadContractsReturnType,
|
|
168
|
-
type
|
|
184
|
+
type ReadContractsErrorType,
|
|
169
185
|
readContracts,
|
|
170
186
|
} from '../actions/readContracts.js'
|
|
171
187
|
|
|
172
188
|
export {
|
|
173
|
-
type
|
|
189
|
+
type ReconnectErrorType,
|
|
174
190
|
type ReconnectParameters,
|
|
175
191
|
type ReconnectReturnType,
|
|
176
192
|
reconnect,
|
|
177
193
|
} from '../actions/reconnect.js'
|
|
178
194
|
|
|
179
195
|
export {
|
|
180
|
-
type
|
|
196
|
+
type SendTransactionErrorType,
|
|
181
197
|
type SendTransactionParameters,
|
|
182
198
|
type SendTransactionReturnType,
|
|
183
199
|
sendTransaction,
|
|
184
200
|
} from '../actions/sendTransaction.js'
|
|
185
201
|
|
|
186
202
|
export {
|
|
187
|
-
type
|
|
203
|
+
type SignMessageErrorType,
|
|
188
204
|
type SignMessageParameters,
|
|
189
205
|
type SignMessageReturnType,
|
|
190
206
|
signMessage,
|
|
191
207
|
} from '../actions/signMessage.js'
|
|
192
208
|
|
|
193
209
|
export {
|
|
194
|
-
type
|
|
210
|
+
type SignTypedDataErrorType,
|
|
195
211
|
type SignTypedDataParameters,
|
|
196
212
|
type SignTypedDataReturnType,
|
|
197
213
|
signTypedData,
|
|
198
214
|
} from '../actions/signTypedData.js'
|
|
199
215
|
|
|
200
216
|
export {
|
|
201
|
-
type
|
|
217
|
+
type SimulateContractErrorType,
|
|
202
218
|
type SimulateContractParameters,
|
|
203
219
|
type SimulateContractReturnType,
|
|
204
220
|
simulateContract,
|
|
205
221
|
} from '../actions/simulateContract.js'
|
|
206
222
|
|
|
207
223
|
export {
|
|
208
|
-
type
|
|
224
|
+
type SwitchAccountErrorType,
|
|
209
225
|
type SwitchAccountParameters,
|
|
210
226
|
type SwitchAccountReturnType,
|
|
211
227
|
switchAccount,
|
|
212
228
|
} from '../actions/switchAccount.js'
|
|
213
229
|
|
|
214
230
|
export {
|
|
215
|
-
type
|
|
231
|
+
type SwitchChainErrorType,
|
|
216
232
|
type SwitchChainParameters,
|
|
217
233
|
type SwitchChainReturnType,
|
|
218
234
|
switchChain,
|
|
235
|
+
/** @deprecated use `switchChain` instead */
|
|
236
|
+
switchChain as switchNetwork,
|
|
219
237
|
} from '../actions/switchChain.js'
|
|
220
238
|
|
|
221
239
|
export {
|
|
@@ -279,14 +297,16 @@ export {
|
|
|
279
297
|
} from '../actions/watchPublicClient.js'
|
|
280
298
|
|
|
281
299
|
export {
|
|
282
|
-
type
|
|
300
|
+
type WaitForTransactionReceiptErrorType,
|
|
283
301
|
type WaitForTransactionReceiptParameters,
|
|
284
302
|
type WaitForTransactionReceiptReturnType,
|
|
285
303
|
waitForTransactionReceipt,
|
|
304
|
+
/** @deprecated use `waitForTransactionReceipt` instead */
|
|
305
|
+
waitForTransactionReceipt as waitForTransaction,
|
|
286
306
|
} from '../actions/waitForTransactionReceipt.js'
|
|
287
307
|
|
|
288
308
|
export {
|
|
289
|
-
type
|
|
309
|
+
type WriteContractErrorType,
|
|
290
310
|
type WriteContractParameters,
|
|
291
311
|
type WriteContractReturnType,
|
|
292
312
|
writeContract,
|
|
@@ -295,11 +315,6 @@ export {
|
|
|
295
315
|
////////////////////////////////////////////////////////////////////////////////
|
|
296
316
|
// connectors
|
|
297
317
|
|
|
298
|
-
export {
|
|
299
|
-
type InjectedParameters,
|
|
300
|
-
injected,
|
|
301
|
-
} from '../connectors/injected.js'
|
|
302
|
-
|
|
303
318
|
export {
|
|
304
319
|
type ConnectorEventMap,
|
|
305
320
|
type CreateConnectorFn,
|
|
@@ -356,6 +371,8 @@ export { type Register, type ResolvedRegister } from '../types/register.js'
|
|
|
356
371
|
////////////////////////////////////////////////////////////////////////////////
|
|
357
372
|
// Utilities
|
|
358
373
|
|
|
374
|
+
export { deepEqual } from '../utils/deepEqual.js'
|
|
375
|
+
|
|
359
376
|
export { deserialize } from '../utils/deserialize.js'
|
|
360
377
|
|
|
361
378
|
export { normalizeChainId } from '../utils/normalizeChainId.js'
|
package/src/exports/internal.ts
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Connectors
|
|
3
|
+
|
|
4
|
+
export {
|
|
5
|
+
type InjectedParameters,
|
|
6
|
+
injected,
|
|
7
|
+
} from '../connectors/injected.js'
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
type MockParameters,
|
|
11
|
+
mock,
|
|
12
|
+
} from '../connectors/mock.js'
|
|
13
|
+
|
|
1
14
|
////////////////////////////////////////////////////////////////////////////////
|
|
2
15
|
// Emitter
|
|
3
16
|
|
package/src/query/connect.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MutationOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type ConnectErrorType,
|
|
5
5
|
type ConnectParameters,
|
|
6
6
|
type ConnectReturnType,
|
|
7
7
|
connect,
|
|
@@ -18,7 +18,7 @@ export function connectMutationOptions<config extends Config>(config: config) {
|
|
|
18
18
|
mutationKey: ['connect'],
|
|
19
19
|
} as const satisfies MutationOptions<
|
|
20
20
|
ConnectData<config>,
|
|
21
|
-
|
|
21
|
+
ConnectErrorType,
|
|
22
22
|
ConnectVariables<config>
|
|
23
23
|
>
|
|
24
24
|
}
|
|
@@ -29,7 +29,7 @@ export type ConnectVariables<config extends Config> = ConnectParameters<config>
|
|
|
29
29
|
|
|
30
30
|
export type ConnectMutate<config extends Config, context = unknown> = Mutate<
|
|
31
31
|
ConnectData<config>,
|
|
32
|
-
|
|
32
|
+
ConnectErrorType,
|
|
33
33
|
ConnectVariables<config>,
|
|
34
34
|
context
|
|
35
35
|
>
|
|
@@ -39,7 +39,7 @@ export type ConnectMutateAsync<
|
|
|
39
39
|
context = unknown,
|
|
40
40
|
> = MutateAsync<
|
|
41
41
|
ConnectData<config>,
|
|
42
|
-
|
|
42
|
+
ConnectErrorType,
|
|
43
43
|
ConnectVariables<config>,
|
|
44
44
|
context
|
|
45
45
|
>
|
package/src/query/disconnect.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MutationOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type DisconnectErrorType,
|
|
5
5
|
type DisconnectParameters,
|
|
6
6
|
type DisconnectReturnType,
|
|
7
7
|
disconnect,
|
|
@@ -19,7 +19,7 @@ export function disconnectMutationOptions<config extends Config>(
|
|
|
19
19
|
mutationKey: ['disconnect'],
|
|
20
20
|
} as const satisfies MutationOptions<
|
|
21
21
|
DisconnectData,
|
|
22
|
-
|
|
22
|
+
DisconnectErrorType,
|
|
23
23
|
DisconnectVariables
|
|
24
24
|
>
|
|
25
25
|
}
|
|
@@ -30,14 +30,14 @@ export type DisconnectVariables = DisconnectParameters | undefined
|
|
|
30
30
|
|
|
31
31
|
export type DisconnectMutate<context = unknown> = Mutate<
|
|
32
32
|
DisconnectData,
|
|
33
|
-
|
|
33
|
+
DisconnectErrorType,
|
|
34
34
|
DisconnectVariables,
|
|
35
35
|
context
|
|
36
36
|
>
|
|
37
37
|
|
|
38
38
|
export type DisconnectMutateAsync<context = unknown> = MutateAsync<
|
|
39
39
|
DisconnectData,
|
|
40
|
-
|
|
40
|
+
DisconnectErrorType,
|
|
41
41
|
DisconnectVariables,
|
|
42
42
|
context
|
|
43
43
|
>
|
|
@@ -2,7 +2,7 @@ import { type QueryOptions } from '@tanstack/query-core'
|
|
|
2
2
|
import type { FeeValuesType } from 'viem'
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
-
type
|
|
5
|
+
type EstimateFeesPerGasErrorType,
|
|
6
6
|
type EstimateFeesPerGasParameters,
|
|
7
7
|
type EstimateFeesPerGasReturnType,
|
|
8
8
|
estimateFeesPerGas,
|
|
@@ -31,7 +31,7 @@ export function estimateFeesPerGasQueryOptions<
|
|
|
31
31
|
queryKey: estimateFeesPerGasQueryKey(options),
|
|
32
32
|
} as const satisfies QueryOptions<
|
|
33
33
|
EstimateFeesPerGasQueryFnData<type>,
|
|
34
|
-
|
|
34
|
+
EstimateFeesPerGasErrorType,
|
|
35
35
|
EstimateFeesPerGasData<type>,
|
|
36
36
|
EstimateFeesPerGasQueryKey<config, type>
|
|
37
37
|
>
|
package/src/query/estimateGas.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type QueryOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type EstimateGasErrorType,
|
|
5
5
|
type EstimateGasParameters,
|
|
6
6
|
type EstimateGasReturnType,
|
|
7
7
|
estimateGas,
|
|
@@ -31,7 +31,7 @@ export function estimateGasQueryOptions<
|
|
|
31
31
|
queryKey: estimateGasQueryKey(options),
|
|
32
32
|
} as const satisfies QueryOptions<
|
|
33
33
|
EstimateGasQueryFnData,
|
|
34
|
-
|
|
34
|
+
EstimateGasErrorType,
|
|
35
35
|
EstimateGasData,
|
|
36
36
|
EstimateGasQueryKey<config, chainId>
|
|
37
37
|
>
|
package/src/query/getBalance.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type QueryOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
type
|
|
4
|
+
type GetBalanceErrorType,
|
|
5
5
|
type GetBalanceParameters,
|
|
6
6
|
type GetBalanceReturnType,
|
|
7
7
|
getBalance,
|
|
@@ -32,7 +32,7 @@ export function getBalanceQueryOptions<config extends Config>(
|
|
|
32
32
|
queryKey: getBalanceQueryKey(options),
|
|
33
33
|
} as const satisfies QueryOptions<
|
|
34
34
|
GetBalanceQueryFnData,
|
|
35
|
-
|
|
35
|
+
GetBalanceErrorType,
|
|
36
36
|
GetBalanceData,
|
|
37
37
|
GetBalanceQueryKey<config>
|
|
38
38
|
>
|
package/src/query/getBlock.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type QueryOptions } from '@tanstack/query-core'
|
|
|
2
2
|
import type { BlockTag } from 'viem'
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
-
type
|
|
5
|
+
type GetBlockErrorType,
|
|
6
6
|
type GetBlockParameters,
|
|
7
7
|
type GetBlockReturnType,
|
|
8
8
|
getBlock,
|
|
@@ -43,7 +43,7 @@ export function getBlockQueryOptions<
|
|
|
43
43
|
queryKey: getBlockQueryKey(options),
|
|
44
44
|
} as const satisfies QueryOptions<
|
|
45
45
|
GetBlockQueryFnData,
|
|
46
|
-
|
|
46
|
+
GetBlockErrorType,
|
|
47
47
|
GetBlockData,
|
|
48
48
|
GetBlockQueryKey<includeTransactions, blockTag, config, chainId>
|
|
49
49
|
>
|