@wagmi/core 2.22.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/dist/esm/actions/codegen/createWriteContract.js.map +1 -1
  2. package/dist/esm/actions/estimateFeesPerGas.js +1 -12
  3. package/dist/esm/actions/estimateFeesPerGas.js.map +1 -1
  4. package/dist/esm/actions/getBalance.js +1 -76
  5. package/dist/esm/actions/getBalance.js.map +1 -1
  6. package/dist/esm/actions/getChains.js.map +1 -1
  7. package/dist/esm/actions/{getAccount.js → getConnection.js} +3 -3
  8. package/dist/esm/actions/getConnection.js.map +1 -0
  9. package/dist/esm/actions/prepareTransactionRequest.js +2 -2
  10. package/dist/esm/actions/prepareTransactionRequest.js.map +1 -1
  11. package/dist/esm/actions/{switchAccount.js → switchConnection.js} +3 -3
  12. package/dist/esm/actions/switchConnection.js.map +1 -0
  13. package/dist/esm/actions/waitForTransactionReceipt.js +4 -1
  14. package/dist/esm/actions/waitForTransactionReceipt.js.map +1 -1
  15. package/dist/esm/actions/{watchAccount.js → watchConnection.js} +5 -5
  16. package/dist/esm/actions/watchConnection.js.map +1 -0
  17. package/dist/esm/actions/writeContract.js.map +1 -1
  18. package/dist/esm/connectors/createConnector.js.map +1 -1
  19. package/dist/esm/connectors/injected.js +0 -4
  20. package/dist/esm/connectors/injected.js.map +1 -1
  21. package/dist/esm/exports/actions.js +18 -33
  22. package/dist/esm/exports/actions.js.map +1 -1
  23. package/dist/esm/exports/index.js +18 -34
  24. package/dist/esm/exports/index.js.map +1 -1
  25. package/dist/esm/exports/query.js +3 -2
  26. package/dist/esm/exports/query.js.map +1 -1
  27. package/dist/esm/query/switchConnection.js +10 -0
  28. package/dist/esm/query/switchConnection.js.map +1 -0
  29. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  30. package/dist/esm/version.js +1 -1
  31. package/dist/esm/version.js.map +1 -1
  32. package/dist/types/actions/codegen/createWriteContract.d.ts +1 -4
  33. package/dist/types/actions/codegen/createWriteContract.d.ts.map +1 -1
  34. package/dist/types/actions/estimateFeesPerGas.d.ts +3 -10
  35. package/dist/types/actions/estimateFeesPerGas.d.ts.map +1 -1
  36. package/dist/types/actions/getBalance.d.ts +1 -10
  37. package/dist/types/actions/getBalance.d.ts.map +1 -1
  38. package/dist/types/actions/getChains.d.ts +1 -5
  39. package/dist/types/actions/getChains.d.ts.map +1 -1
  40. package/dist/types/actions/{getAccount.d.ts → getConnection.d.ts} +4 -4
  41. package/dist/types/actions/getConnection.d.ts.map +1 -0
  42. package/dist/types/actions/switchConnection.d.ts +15 -0
  43. package/dist/types/actions/switchConnection.d.ts.map +1 -0
  44. package/dist/types/actions/waitForTransactionReceipt.d.ts.map +1 -1
  45. package/dist/types/actions/watchConnection.d.ts +9 -0
  46. package/dist/types/actions/watchConnection.d.ts.map +1 -0
  47. package/dist/types/actions/writeContract.d.ts +1 -4
  48. package/dist/types/actions/writeContract.d.ts.map +1 -1
  49. package/dist/types/connectors/createConnector.d.ts +0 -2
  50. package/dist/types/connectors/createConnector.d.ts.map +1 -1
  51. package/dist/types/connectors/injected.d.ts.map +1 -1
  52. package/dist/types/exports/actions.d.ts +30 -33
  53. package/dist/types/exports/actions.d.ts.map +1 -1
  54. package/dist/types/exports/index.d.ts +30 -34
  55. package/dist/types/exports/index.d.ts.map +1 -1
  56. package/dist/types/exports/query.d.ts +11 -2
  57. package/dist/types/exports/query.d.ts.map +1 -1
  58. package/dist/types/query/estimateFeesPerGas.d.ts +0 -3
  59. package/dist/types/query/estimateFeesPerGas.d.ts.map +1 -1
  60. package/dist/types/query/getBalance.d.ts +0 -6
  61. package/dist/types/query/getBalance.d.ts.map +1 -1
  62. package/dist/types/query/infiniteReadContracts.d.ts +3 -3
  63. package/dist/types/query/switchConnection.d.ts +15 -0
  64. package/dist/types/query/switchConnection.d.ts.map +1 -0
  65. package/dist/types/query/verifyMessage.d.ts +3 -3
  66. package/dist/types/query/writeContract.d.ts +1 -3
  67. package/dist/types/query/writeContract.d.ts.map +1 -1
  68. package/dist/types/version.d.ts +1 -1
  69. package/dist/types/version.d.ts.map +1 -1
  70. package/package.json +2 -10
  71. package/src/actions/codegen/createWriteContract.ts +1 -4
  72. package/src/actions/estimateFeesPerGas.ts +4 -33
  73. package/src/actions/getBalance.ts +2 -109
  74. package/src/actions/getChains.ts +2 -4
  75. package/src/actions/{getAccount.ts → getConnection.ts} +5 -5
  76. package/src/actions/prepareTransactionRequest.ts +2 -2
  77. package/src/actions/{switchAccount.ts → switchConnection.ts} +7 -7
  78. package/src/actions/waitForTransactionReceipt.ts +4 -1
  79. package/src/actions/watchConnection.ts +33 -0
  80. package/src/actions/writeContract.ts +1 -4
  81. package/src/connectors/createConnector.ts +0 -2
  82. package/src/connectors/injected.ts +0 -4
  83. package/src/exports/actions.ts +48 -44
  84. package/src/exports/index.ts +50 -46
  85. package/src/exports/query.ts +30 -16
  86. package/src/query/switchConnection.ts +52 -0
  87. package/src/version.ts +1 -1
  88. package/dist/esm/actions/getAccount.js.map +0 -1
  89. package/dist/esm/actions/getToken.js +0 -102
  90. package/dist/esm/actions/getToken.js.map +0 -1
  91. package/dist/esm/actions/switchAccount.js.map +0 -1
  92. package/dist/esm/actions/watchAccount.js.map +0 -1
  93. package/dist/esm/experimental/actions/writeContracts.js +0 -18
  94. package/dist/esm/experimental/actions/writeContracts.js.map +0 -1
  95. package/dist/esm/experimental/query/writeContracts.js +0 -10
  96. package/dist/esm/experimental/query/writeContracts.js.map +0 -1
  97. package/dist/esm/exports/experimental.js +0 -50
  98. package/dist/esm/exports/experimental.js.map +0 -1
  99. package/dist/esm/query/getToken.js +0 -17
  100. package/dist/esm/query/getToken.js.map +0 -1
  101. package/dist/esm/query/switchAccount.js +0 -10
  102. package/dist/esm/query/switchAccount.js.map +0 -1
  103. package/dist/esm/types/unit.js +0 -2
  104. package/dist/esm/types/unit.js.map +0 -1
  105. package/dist/esm/utils/getUnit.js +0 -9
  106. package/dist/esm/utils/getUnit.js.map +0 -1
  107. package/dist/esm/utils/normalizeChainId.js +0 -11
  108. package/dist/esm/utils/normalizeChainId.js.map +0 -1
  109. package/dist/types/actions/getAccount.d.ts.map +0 -1
  110. package/dist/types/actions/getToken.d.ts +0 -24
  111. package/dist/types/actions/getToken.d.ts.map +0 -1
  112. package/dist/types/actions/switchAccount.d.ts +0 -15
  113. package/dist/types/actions/switchAccount.d.ts.map +0 -1
  114. package/dist/types/actions/watchAccount.d.ts +0 -9
  115. package/dist/types/actions/watchAccount.d.ts.map +0 -1
  116. package/dist/types/experimental/actions/writeContracts.d.ts +0 -16
  117. package/dist/types/experimental/actions/writeContracts.d.ts.map +0 -1
  118. package/dist/types/experimental/query/writeContracts.d.ts +0 -13
  119. package/dist/types/experimental/query/writeContracts.d.ts.map +0 -1
  120. package/dist/types/exports/experimental.d.ts +0 -127
  121. package/dist/types/exports/experimental.d.ts.map +0 -1
  122. package/dist/types/query/getToken.d.ts +0 -35
  123. package/dist/types/query/getToken.d.ts.map +0 -1
  124. package/dist/types/query/switchAccount.d.ts +0 -15
  125. package/dist/types/query/switchAccount.d.ts.map +0 -1
  126. package/dist/types/types/unit.d.ts +0 -2
  127. package/dist/types/types/unit.d.ts.map +0 -1
  128. package/dist/types/utils/getUnit.d.ts +0 -3
  129. package/dist/types/utils/getUnit.d.ts.map +0 -1
  130. package/dist/types/utils/normalizeChainId.d.ts +0 -3
  131. package/dist/types/utils/normalizeChainId.d.ts.map +0 -1
  132. package/experimental/package.json +0 -5
  133. package/src/actions/getToken.ts +0 -141
  134. package/src/actions/watchAccount.ts +0 -33
  135. package/src/experimental/actions/writeContracts.ts +0 -79
  136. package/src/experimental/query/writeContracts.ts +0 -70
  137. package/src/exports/experimental.ts +0 -153
  138. package/src/query/getToken.ts +0 -49
  139. package/src/query/switchAccount.ts +0 -52
  140. package/src/types/unit.ts +0 -1
  141. package/src/utils/getUnit.ts +0 -9
  142. package/src/utils/normalizeChainId.ts +0 -13
@@ -63,10 +63,13 @@ export async function waitForTransactionReceipt<
63
63
  getTransaction,
64
64
  'getTransaction',
65
65
  )
66
- const txn = await action_getTransaction({ hash: receipt.transactionHash })
66
+ const { from: account, ...txn } = await action_getTransaction({
67
+ hash: receipt.transactionHash,
68
+ })
67
69
  const action_call = getAction(client, call, 'call')
68
70
  const code = await action_call({
69
71
  ...(txn as any),
72
+ account,
70
73
  data: txn.input,
71
74
  gasPrice: txn.type !== 'eip1559' ? txn.gasPrice : undefined,
72
75
  maxFeePerGas: txn.type === 'eip1559' ? txn.maxFeePerGas : undefined,
@@ -0,0 +1,33 @@
1
+ import type { Config } from '../createConfig.js'
2
+ import { deepEqual } from '../utils/deepEqual.js'
3
+ import { type GetConnectionReturnType, getConnection } from './getConnection.js'
4
+
5
+ export type WatchConnectionParameters<config extends Config = Config> = {
6
+ onChange(
7
+ connection: GetConnectionReturnType<config>,
8
+ prevConnection: GetConnectionReturnType<config>,
9
+ ): void
10
+ }
11
+
12
+ export type WatchConnectionReturnType = () => void
13
+
14
+ /** https://wagmi.sh/core/api/actions/watchConnection */
15
+ export function watchConnection<config extends Config>(
16
+ config: config,
17
+ parameters: WatchConnectionParameters<config>,
18
+ ): WatchConnectionReturnType {
19
+ const { onChange } = parameters
20
+
21
+ return config.subscribe(() => getConnection(config), onChange, {
22
+ equalityFn(a, b) {
23
+ const { connector: aConnector, ...aRest } = a
24
+ const { connector: bConnector, ...bRest } = b
25
+ return (
26
+ deepEqual(aRest, bRest) &&
27
+ // check connector separately
28
+ aConnector?.id === bConnector?.id &&
29
+ aConnector?.uid === bConnector?.uid
30
+ )
31
+ },
32
+ })
33
+ }
@@ -59,10 +59,7 @@ export type WriteContractParameters<
59
59
  >
60
60
  }[number] &
61
61
  Compute<ChainIdParameter<config, chainId>> &
62
- ConnectorParameter & {
63
- /** @deprecated */
64
- __mode?: 'prepared'
65
- }
62
+ ConnectorParameter
66
63
  >
67
64
 
68
65
  export type WriteContractReturnType = viem_WriteContractReturnType
@@ -38,8 +38,6 @@ export type CreateConnectorFn<
38
38
  readonly id: string
39
39
  readonly name: string
40
40
  readonly rdns?: string | readonly string[] | undefined
41
- /** @deprecated */
42
- readonly supportsSimulation?: boolean | undefined
43
41
  readonly type: string
44
42
 
45
43
  setup?(): Promise<void>
@@ -88,10 +88,6 @@ export function injected(parameters: InjectedParameters = {}) {
88
88
  get name() {
89
89
  return getTarget().name
90
90
  },
91
- /** @deprecated */
92
- get supportsSimulation() {
93
- return true
94
- },
95
91
  type: injected.type,
96
92
  async setup() {
97
93
  const provider = await this.getProvider()
@@ -30,12 +30,14 @@ export {
30
30
  type DisconnectReturnType,
31
31
  disconnect,
32
32
  } from '../actions/disconnect.js'
33
+
33
34
  export {
34
35
  type EstimateFeesPerGasErrorType,
35
36
  type EstimateFeesPerGasParameters,
36
37
  type EstimateFeesPerGasReturnType,
37
38
  estimateFeesPerGas,
38
39
  } from '../actions/estimateFeesPerGas.js'
40
+
39
41
  export {
40
42
  type EstimateGasErrorType,
41
43
  type EstimateGasParameters,
@@ -50,18 +52,11 @@ export {
50
52
  estimateMaxPriorityFeePerGas,
51
53
  } from '../actions/estimateMaxPriorityFeePerGas.js'
52
54
 
53
- export {
54
- type GetAccountReturnType,
55
- getAccount,
56
- } from '../actions/getAccount.js'
57
-
58
55
  export {
59
56
  type GetBalanceErrorType,
60
57
  type GetBalanceParameters,
61
58
  type GetBalanceReturnType,
62
59
  getBalance,
63
- /** @deprecated use `getBalance` instead */
64
- getBalance as fetchBalance,
65
60
  } from '../actions/getBalance.js'
66
61
 
67
62
  export {
@@ -76,8 +71,6 @@ export {
76
71
  type GetBlockNumberParameters,
77
72
  type GetBlockNumberReturnType,
78
73
  getBlockNumber,
79
- /** @deprecated use `getBlockNumber` instead */
80
- getBlockNumber as fetchBlockNumber,
81
74
  } from '../actions/getBlockNumber.js'
82
75
 
83
76
  export {
@@ -124,6 +117,15 @@ export {
124
117
  getClient,
125
118
  } from '../actions/getClient.js'
126
119
 
120
+ export {
121
+ /** @deprecated use `GetConnectionReturnType` instead */
122
+ type GetConnectionReturnType as GetAccountReturnType,
123
+ type GetConnectionReturnType,
124
+ /** @deprecated use `getConnection` instead */
125
+ getConnection as getAccount,
126
+ getConnection,
127
+ } from '../actions/getConnection.js'
128
+
127
129
  export {
128
130
  type GetConnectionsReturnType,
129
131
  getConnections,
@@ -144,8 +146,6 @@ export {
144
146
  type GetEnsAddressParameters,
145
147
  type GetEnsAddressReturnType,
146
148
  getEnsAddress,
147
- /** @deprecated use `getEnsAddress` instead */
148
- getEnsAddress as fetchEnsAddress,
149
149
  } from '../actions/getEnsAddress.js'
150
150
 
151
151
  export {
@@ -153,8 +153,6 @@ export {
153
153
  type GetEnsAvatarParameters,
154
154
  type GetEnsAvatarReturnType,
155
155
  getEnsAvatar,
156
- /** @deprecated use `getEnsAvatar` instead */
157
- getEnsAvatar as fetchEnsAvatar,
158
156
  } from '../actions/getEnsAvatar.js'
159
157
 
160
158
  export {
@@ -162,8 +160,6 @@ export {
162
160
  type GetEnsNameParameters,
163
161
  type GetEnsNameReturnType,
164
162
  getEnsName,
165
- /** @deprecated */
166
- getEnsName as fetchEnsName,
167
163
  } from '../actions/getEnsName.js'
168
164
 
169
165
  export {
@@ -171,8 +167,6 @@ export {
171
167
  type GetEnsResolverParameters,
172
168
  type GetEnsResolverReturnType,
173
169
  getEnsResolver,
174
- /** @deprecated use `getEnsResolver` instead */
175
- getEnsResolver as fetchEnsResolver,
176
170
  } from '../actions/getEnsResolver.js'
177
171
 
178
172
  export {
@@ -216,22 +210,11 @@ export {
216
210
  getStorageAt,
217
211
  } from '../actions/getStorageAt.js'
218
212
 
219
- export {
220
- type GetTokenErrorType,
221
- type GetTokenParameters,
222
- type GetTokenReturnType,
223
- getToken,
224
- /** @deprecated use `getToken` instead */
225
- getToken as fetchToken,
226
- } from '../actions/getToken.js'
227
-
228
213
  export {
229
214
  type GetTransactionErrorType,
230
215
  type GetTransactionParameters,
231
216
  type GetTransactionReturnType,
232
217
  getTransaction,
233
- /** @deprecated use `getTransaction` instead */
234
- getTransaction as fetchTransaction,
235
218
  } from '../actions/getTransaction.js'
236
219
 
237
220
  export {
@@ -338,22 +321,28 @@ export {
338
321
  simulateContract,
339
322
  } from '../actions/simulateContract.js'
340
323
 
341
- export {
342
- type SwitchAccountErrorType,
343
- type SwitchAccountParameters,
344
- type SwitchAccountReturnType,
345
- switchAccount,
346
- } from '../actions/switchAccount.js'
347
-
348
324
  export {
349
325
  type SwitchChainErrorType,
350
326
  type SwitchChainParameters,
351
327
  type SwitchChainReturnType,
352
328
  switchChain,
353
- /** @deprecated use `switchChain` instead */
354
- switchChain as switchNetwork,
355
329
  } from '../actions/switchChain.js'
356
330
 
331
+ export {
332
+ /** @deprecated use `SwitchConnectionErrorType` instead */
333
+ type SwitchConnectionErrorType as SwitchAccountErrorType,
334
+ type SwitchConnectionErrorType,
335
+ /** @deprecated use `SwitchConnectionParameters` instead */
336
+ type SwitchConnectionParameters as SwitchAccountParameters,
337
+ type SwitchConnectionParameters,
338
+ /** @deprecated use `SwitchConnectionReturnType` instead */
339
+ type SwitchConnectionReturnType as SwitchAccountReturnType,
340
+ type SwitchConnectionReturnType,
341
+ /** @deprecated use `switchConnection` instead */
342
+ switchConnection as switchAccount,
343
+ switchConnection,
344
+ } from '../actions/switchConnection.js'
345
+
357
346
  export {
358
347
  type VerifyMessageParameters,
359
348
  type VerifyMessageReturnType,
@@ -372,19 +361,14 @@ export {
372
361
  type WaitForCallsStatusReturnType,
373
362
  waitForCallsStatus,
374
363
  } from '../actions/waitForCallsStatus.js'
364
+
375
365
  export {
376
366
  type WaitForTransactionReceiptErrorType,
377
367
  type WaitForTransactionReceiptParameters,
378
368
  type WaitForTransactionReceiptReturnType,
379
369
  waitForTransactionReceipt,
380
- /** @deprecated use `waitForTransactionReceipt` instead */
381
- waitForTransactionReceipt as waitForTransaction,
382
370
  } from '../actions/waitForTransactionReceipt.js'
383
- export {
384
- type WatchAccountParameters,
385
- type WatchAccountReturnType,
386
- watchAccount,
387
- } from '../actions/watchAccount.js'
371
+
388
372
  export {
389
373
  type WatchAssetParameters,
390
374
  type WatchAssetReturnType,
@@ -396,41 +380,61 @@ export {
396
380
  type WatchBlockNumberReturnType,
397
381
  watchBlockNumber,
398
382
  } from '../actions/watchBlockNumber.js'
383
+
399
384
  export {
400
385
  type WatchBlocksParameters,
401
386
  type WatchBlocksReturnType,
402
387
  watchBlocks,
403
388
  } from '../actions/watchBlocks.js'
389
+
404
390
  export {
405
391
  type WatchChainIdParameters,
406
392
  type WatchChainIdReturnType,
407
393
  watchChainId,
408
394
  } from '../actions/watchChainId.js'
395
+
409
396
  export {
410
397
  type WatchClientParameters,
411
398
  type WatchClientReturnType,
412
399
  watchClient,
413
400
  } from '../actions/watchClient.js'
401
+
402
+ export {
403
+ /** @deprecated use `WatchConnectionParameters` instead */
404
+ type WatchConnectionParameters as WatchAccountParameters,
405
+ type WatchConnectionParameters,
406
+ /** @deprecated use `WatchConnectionReturnType` instead */
407
+ type WatchConnectionReturnType as WatchAccountReturnType,
408
+ type WatchConnectionReturnType,
409
+ /** @deprecated use `watchConnection` instead */
410
+ watchConnection as watchAccount,
411
+ watchConnection,
412
+ } from '../actions/watchConnection.js'
413
+
414
414
  export {
415
415
  type WatchConnectionsParameters,
416
416
  type WatchConnectionsReturnType,
417
417
  watchConnections,
418
418
  } from '../actions/watchConnections.js'
419
+
419
420
  export {
420
421
  type WatchConnectorsParameters,
421
422
  type WatchConnectorsReturnType,
422
423
  watchConnectors,
423
424
  } from '../actions/watchConnectors.js'
425
+
424
426
  export {
425
427
  type WatchContractEventParameters,
426
428
  type WatchContractEventReturnType,
427
429
  watchContractEvent,
428
430
  } from '../actions/watchContractEvent.js'
431
+
429
432
  export {
430
433
  type WatchPendingTransactionsParameters,
431
434
  type WatchPendingTransactionsReturnType,
432
435
  watchPendingTransactions,
433
436
  } from '../actions/watchPendingTransactions.js'
437
+
434
438
  export {
435
439
  type WatchPublicClientParameters,
436
440
  type WatchPublicClientReturnType,
@@ -30,12 +30,14 @@ export {
30
30
  type DisconnectReturnType,
31
31
  disconnect,
32
32
  } from '../actions/disconnect.js'
33
+
33
34
  export {
34
35
  type EstimateFeesPerGasErrorType,
35
36
  type EstimateFeesPerGasParameters,
36
37
  type EstimateFeesPerGasReturnType,
37
38
  estimateFeesPerGas,
38
39
  } from '../actions/estimateFeesPerGas.js'
40
+
39
41
  export {
40
42
  type EstimateGasErrorType,
41
43
  type EstimateGasParameters,
@@ -50,18 +52,11 @@ export {
50
52
  estimateMaxPriorityFeePerGas,
51
53
  } from '../actions/estimateMaxPriorityFeePerGas.js'
52
54
 
53
- export {
54
- type GetAccountReturnType,
55
- getAccount,
56
- } from '../actions/getAccount.js'
57
-
58
55
  export {
59
56
  type GetBalanceErrorType,
60
57
  type GetBalanceParameters,
61
58
  type GetBalanceReturnType,
62
59
  getBalance,
63
- /** @deprecated use `getBalance` instead */
64
- getBalance as fetchBalance,
65
60
  } from '../actions/getBalance.js'
66
61
 
67
62
  export {
@@ -76,8 +71,6 @@ export {
76
71
  type GetBlockNumberParameters,
77
72
  type GetBlockNumberReturnType,
78
73
  getBlockNumber,
79
- /** @deprecated use `getBlockNumber` instead */
80
- getBlockNumber as fetchBlockNumber,
81
74
  } from '../actions/getBlockNumber.js'
82
75
 
83
76
  export {
@@ -124,16 +117,27 @@ export {
124
117
  getClient,
125
118
  } from '../actions/getClient.js'
126
119
 
120
+ export {
121
+ /** @deprecated use `GetConnectionReturnType` instead */
122
+ type GetConnectionReturnType as GetAccountReturnType,
123
+ type GetConnectionReturnType,
124
+ /** @deprecated use `getConnection` instead */
125
+ getConnection as getAccount,
126
+ getConnection,
127
+ } from '../actions/getConnection.js'
128
+
127
129
  export {
128
130
  type GetConnectionsReturnType,
129
131
  getConnections,
130
132
  } from '../actions/getConnections.js'
133
+
131
134
  export {
132
135
  type GetConnectorClientErrorType,
133
136
  type GetConnectorClientParameters,
134
137
  type GetConnectorClientReturnType,
135
138
  getConnectorClient,
136
139
  } from '../actions/getConnectorClient.js'
140
+
137
141
  export {
138
142
  type GetConnectorsReturnType,
139
143
  getConnectors,
@@ -144,8 +148,6 @@ export {
144
148
  type GetEnsAddressParameters,
145
149
  type GetEnsAddressReturnType,
146
150
  getEnsAddress,
147
- /** @deprecated use `getEnsAddress` instead */
148
- getEnsAddress as fetchEnsAddress,
149
151
  } from '../actions/getEnsAddress.js'
150
152
 
151
153
  export {
@@ -153,8 +155,6 @@ export {
153
155
  type GetEnsAvatarParameters,
154
156
  type GetEnsAvatarReturnType,
155
157
  getEnsAvatar,
156
- /** @deprecated use `getEnsAvatar` instead */
157
- getEnsAvatar as fetchEnsAvatar,
158
158
  } from '../actions/getEnsAvatar.js'
159
159
 
160
160
  export {
@@ -162,8 +162,6 @@ export {
162
162
  type GetEnsNameParameters,
163
163
  type GetEnsNameReturnType,
164
164
  getEnsName,
165
- /** @deprecated */
166
- getEnsName as fetchEnsName,
167
165
  } from '../actions/getEnsName.js'
168
166
 
169
167
  export {
@@ -171,8 +169,6 @@ export {
171
169
  type GetEnsResolverParameters,
172
170
  type GetEnsResolverReturnType,
173
171
  getEnsResolver,
174
- /** @deprecated use `getEnsResolver` instead */
175
- getEnsResolver as fetchEnsResolver,
176
172
  } from '../actions/getEnsResolver.js'
177
173
 
178
174
  export {
@@ -216,22 +212,11 @@ export {
216
212
  getStorageAt,
217
213
  } from '../actions/getStorageAt.js'
218
214
 
219
- export {
220
- type GetTokenErrorType,
221
- type GetTokenParameters,
222
- type GetTokenReturnType,
223
- getToken,
224
- /** @deprecated use `getToken` instead */
225
- getToken as fetchToken,
226
- } from '../actions/getToken.js'
227
-
228
215
  export {
229
216
  type GetTransactionErrorType,
230
217
  type GetTransactionParameters,
231
218
  type GetTransactionReturnType,
232
219
  getTransaction,
233
- /** @deprecated use `getTransaction` instead */
234
- getTransaction as fetchTransaction,
235
220
  } from '../actions/getTransaction.js'
236
221
 
237
222
  export {
@@ -352,22 +337,28 @@ export {
352
337
  simulateContract,
353
338
  } from '../actions/simulateContract.js'
354
339
 
355
- export {
356
- type SwitchAccountErrorType,
357
- type SwitchAccountParameters,
358
- type SwitchAccountReturnType,
359
- switchAccount,
360
- } from '../actions/switchAccount.js'
361
-
362
340
  export {
363
341
  type SwitchChainErrorType,
364
342
  type SwitchChainParameters,
365
343
  type SwitchChainReturnType,
366
344
  switchChain,
367
- /** @deprecated use `switchChain` instead */
368
- switchChain as switchNetwork,
369
345
  } from '../actions/switchChain.js'
370
346
 
347
+ export {
348
+ /** @deprecated use `SwitchConnectionErrorType` instead */
349
+ type SwitchConnectionErrorType as SwitchAccountErrorType,
350
+ type SwitchConnectionErrorType,
351
+ /** @deprecated use `SwitchConnectionParameters` instead */
352
+ type SwitchConnectionParameters as SwitchAccountParameters,
353
+ type SwitchConnectionParameters,
354
+ /** @deprecated use `SwitchConnectionReturnType` instead */
355
+ type SwitchConnectionReturnType as SwitchAccountReturnType,
356
+ type SwitchConnectionReturnType,
357
+ /** @deprecated use `switchConnection` instead */
358
+ switchConnection as switchAccount,
359
+ switchConnection,
360
+ } from '../actions/switchConnection.js'
361
+
371
362
  export {
372
363
  type VerifyMessageErrorType,
373
364
  type VerifyMessageParameters,
@@ -388,19 +379,14 @@ export {
388
379
  type WaitForCallsStatusReturnType,
389
380
  waitForCallsStatus,
390
381
  } from '../actions/waitForCallsStatus.js'
382
+
391
383
  export {
392
384
  type WaitForTransactionReceiptErrorType,
393
385
  type WaitForTransactionReceiptParameters,
394
386
  type WaitForTransactionReceiptReturnType,
395
387
  waitForTransactionReceipt,
396
- /** @deprecated use `waitForTransactionReceipt` instead */
397
- waitForTransactionReceipt as waitForTransaction,
398
388
  } from '../actions/waitForTransactionReceipt.js'
399
- export {
400
- type WatchAccountParameters,
401
- type WatchAccountReturnType,
402
- watchAccount,
403
- } from '../actions/watchAccount.js'
389
+
404
390
  export {
405
391
  type WatchAssetErrorType,
406
392
  type WatchAssetParameters,
@@ -413,41 +399,61 @@ export {
413
399
  type WatchBlockNumberReturnType,
414
400
  watchBlockNumber,
415
401
  } from '../actions/watchBlockNumber.js'
402
+
416
403
  export {
417
404
  type WatchBlocksParameters,
418
405
  type WatchBlocksReturnType,
419
406
  watchBlocks,
420
407
  } from '../actions/watchBlocks.js'
408
+
421
409
  export {
422
410
  type WatchChainIdParameters,
423
411
  type WatchChainIdReturnType,
424
412
  watchChainId,
425
413
  } from '../actions/watchChainId.js'
414
+
426
415
  export {
427
416
  type WatchClientParameters,
428
417
  type WatchClientReturnType,
429
418
  watchClient,
430
419
  } from '../actions/watchClient.js'
420
+
421
+ export {
422
+ /** @deprecated use `WatchConnectionParameters` instead */
423
+ type WatchConnectionParameters as WatchAccountParameters,
424
+ type WatchConnectionParameters,
425
+ /** @deprecated use `WatchConnectionReturnType` instead */
426
+ type WatchConnectionReturnType as WatchAccountReturnType,
427
+ type WatchConnectionReturnType,
428
+ /** @deprecated use `watchConnection` instead */
429
+ watchConnection as watchAccount,
430
+ watchConnection,
431
+ } from '../actions/watchConnection.js'
432
+
431
433
  export {
432
434
  type WatchConnectionsParameters,
433
435
  type WatchConnectionsReturnType,
434
436
  watchConnections,
435
437
  } from '../actions/watchConnections.js'
438
+
436
439
  export {
437
440
  type WatchConnectorsParameters,
438
441
  type WatchConnectorsReturnType,
439
442
  watchConnectors,
440
443
  } from '../actions/watchConnectors.js'
444
+
441
445
  export {
442
446
  type WatchContractEventParameters,
443
447
  type WatchContractEventReturnType,
444
448
  watchContractEvent,
445
449
  } from '../actions/watchContractEvent.js'
450
+
446
451
  export {
447
452
  type WatchPendingTransactionsParameters,
448
453
  type WatchPendingTransactionsReturnType,
449
454
  watchPendingTransactions,
450
455
  } from '../actions/watchPendingTransactions.js'
456
+
451
457
  export {
452
458
  type WatchPublicClientParameters,
453
459
  type WatchPublicClientReturnType,
@@ -582,8 +588,6 @@ export { deserialize } from '../utils/deserialize.js'
582
588
 
583
589
  export { extractRpcUrls } from '../utils/extractRpcUrls.js'
584
590
 
585
- export { normalizeChainId } from '../utils/normalizeChainId.js'
586
-
587
591
  export { serialize } from '../utils/serialize.js'
588
592
 
589
593
  ////////////////////////////////////////////////////////////////////////////////