@wagmi/core 2.16.7 → 2.17.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/{experimental/actions → actions}/getCallsStatus.js +2 -2
- package/dist/esm/actions/getCallsStatus.js.map +1 -0
- package/dist/esm/actions/getCapabilities.js +12 -0
- package/dist/esm/actions/getCapabilities.js.map +1 -0
- package/dist/esm/{experimental/actions → actions}/sendCalls.js +2 -2
- package/dist/esm/actions/sendCalls.js.map +1 -0
- package/dist/esm/{experimental/actions → actions}/showCallsStatus.js +2 -2
- package/dist/esm/actions/showCallsStatus.js.map +1 -0
- package/dist/esm/{experimental/actions → actions}/waitForCallsStatus.js +2 -2
- package/dist/esm/actions/waitForCallsStatus.js.map +1 -0
- package/dist/esm/connectors/mock.js +27 -5
- package/dist/esm/connectors/mock.js.map +1 -1
- package/dist/esm/exports/actions.js +5 -0
- package/dist/esm/exports/actions.js.map +1 -1
- package/dist/esm/exports/experimental.js +42 -12
- package/dist/esm/exports/experimental.js.map +1 -1
- package/dist/esm/exports/index.js +5 -0
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/exports/query.js +5 -0
- package/dist/esm/exports/query.js.map +1 -1
- package/dist/esm/{experimental/query → query}/getCallsStatus.js +2 -2
- package/dist/esm/query/getCallsStatus.js.map +1 -0
- package/dist/esm/{experimental/query → query}/getCapabilities.js +2 -2
- package/dist/esm/query/getCapabilities.js.map +1 -0
- package/dist/esm/query/sendCalls.js.map +1 -0
- package/dist/esm/query/showCallsStatus.js.map +1 -0
- package/dist/esm/{experimental/query → query}/waitForCallsStatus.js +2 -2
- package/dist/esm/query/waitForCallsStatus.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/{experimental/actions → actions}/getCallsStatus.d.ts +3 -3
- package/dist/types/actions/getCallsStatus.d.ts.map +1 -0
- package/dist/types/actions/getCapabilities.d.ts +9 -0
- package/dist/types/actions/getCapabilities.d.ts.map +1 -0
- package/dist/types/{experimental/actions → actions}/sendCalls.d.ts +7 -7
- package/dist/types/actions/sendCalls.d.ts.map +1 -0
- package/dist/types/{experimental/actions → actions}/showCallsStatus.d.ts +3 -3
- package/dist/types/actions/showCallsStatus.d.ts.map +1 -0
- package/dist/types/{experimental/actions → actions}/waitForCallsStatus.d.ts +3 -3
- package/dist/types/actions/waitForCallsStatus.d.ts.map +1 -0
- package/dist/types/connectors/mock.d.ts.map +1 -1
- package/dist/types/exports/actions.d.ts +5 -0
- package/dist/types/exports/actions.d.ts.map +1 -1
- package/dist/types/exports/experimental.d.ts +126 -12
- package/dist/types/exports/experimental.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts +5 -0
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/exports/query.d.ts +5 -0
- package/dist/types/exports/query.d.ts.map +1 -1
- package/dist/types/{experimental/query → query}/getCallsStatus.d.ts +14 -8
- package/dist/types/query/getCallsStatus.d.ts.map +1 -0
- package/dist/types/query/getCapabilities.d.ts +36 -0
- package/dist/types/query/getCapabilities.d.ts.map +1 -0
- package/dist/types/query/getConnectorClient.d.ts +2 -2
- package/dist/types/query/getConnectorClient.d.ts.map +1 -1
- package/dist/types/query/getWalletClient.d.ts +207 -198
- package/dist/types/query/getWalletClient.d.ts.map +1 -1
- package/dist/types/{experimental/query → query}/sendCalls.d.ts +3 -3
- package/dist/types/query/sendCalls.d.ts.map +1 -0
- package/dist/types/{experimental/query → query}/showCallsStatus.d.ts +2 -2
- package/dist/types/query/showCallsStatus.d.ts.map +1 -0
- package/dist/types/query/signTypedData.d.ts +16 -16
- package/dist/types/{experimental/query → query}/waitForCallsStatus.d.ts +17 -11
- package/dist/types/query/waitForCallsStatus.d.ts.map +1 -0
- package/dist/types/query/watchAsset.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/{experimental/actions → actions}/getCallsStatus.ts +4 -4
- package/src/actions/getCapabilities.ts +39 -0
- package/src/{experimental/actions → actions}/sendCalls.ts +10 -10
- package/src/{experimental/actions → actions}/showCallsStatus.ts +4 -4
- package/src/{experimental/actions → actions}/waitForCallsStatus.ts +4 -4
- package/src/connectors/mock.ts +30 -5
- package/src/exports/actions.ts +35 -0
- package/src/exports/experimental.ts +67 -10
- package/src/exports/index.ts +35 -0
- package/src/exports/query.ts +43 -0
- package/src/{experimental/query → query}/getCallsStatus.ts +5 -5
- package/src/query/getCapabilities.ts +65 -0
- package/src/{experimental/query → query}/sendCalls.ts +2 -2
- package/src/{experimental/query → query}/showCallsStatus.ts +2 -2
- package/src/{experimental/query → query}/waitForCallsStatus.ts +5 -5
- package/src/version.ts +1 -1
- package/dist/esm/experimental/actions/getCallsStatus.js.map +0 -1
- package/dist/esm/experimental/actions/getCapabilities.js +0 -9
- package/dist/esm/experimental/actions/getCapabilities.js.map +0 -1
- package/dist/esm/experimental/actions/sendCalls.js.map +0 -1
- package/dist/esm/experimental/actions/showCallsStatus.js.map +0 -1
- package/dist/esm/experimental/actions/waitForCallsStatus.js.map +0 -1
- package/dist/esm/experimental/query/getCallsStatus.js.map +0 -1
- package/dist/esm/experimental/query/getCapabilities.js.map +0 -1
- package/dist/esm/experimental/query/sendCalls.js.map +0 -1
- package/dist/esm/experimental/query/showCallsStatus.js.map +0 -1
- package/dist/esm/experimental/query/waitForCallsStatus.js.map +0 -1
- package/dist/types/experimental/actions/getCallsStatus.d.ts.map +0 -1
- package/dist/types/experimental/actions/getCapabilities.d.ts +0 -9
- package/dist/types/experimental/actions/getCapabilities.d.ts.map +0 -1
- package/dist/types/experimental/actions/sendCalls.d.ts.map +0 -1
- package/dist/types/experimental/actions/showCallsStatus.d.ts.map +0 -1
- package/dist/types/experimental/actions/waitForCallsStatus.d.ts.map +0 -1
- package/dist/types/experimental/query/getCallsStatus.d.ts.map +0 -1
- package/dist/types/experimental/query/getCapabilities.d.ts +0 -35
- package/dist/types/experimental/query/getCapabilities.d.ts.map +0 -1
- package/dist/types/experimental/query/sendCalls.d.ts.map +0 -1
- package/dist/types/experimental/query/showCallsStatus.d.ts.map +0 -1
- package/dist/types/experimental/query/waitForCallsStatus.d.ts.map +0 -1
- package/src/experimental/actions/getCapabilities.ts +0 -28
- package/src/experimental/query/getCapabilities.ts +0 -50
- /package/dist/esm/{experimental/query → query}/sendCalls.js +0 -0
- /package/dist/esm/{experimental/query → query}/showCallsStatus.js +0 -0
|
@@ -4,44 +4,68 @@
|
|
|
4
4
|
|
|
5
5
|
// biome-ignore lint/performance/noBarrelFile: entrypoint module
|
|
6
6
|
export {
|
|
7
|
+
/** @deprecated This is no longer experimental – use `import type { GetCallsStatusErrorType } from '@wagmi/core'` instead. */
|
|
7
8
|
type GetCallsStatusErrorType,
|
|
9
|
+
/** @deprecated This is no longer experimental – use `import type { GetCallsStatusParameters } from '@wagmi/core'` instead. */
|
|
8
10
|
type GetCallsStatusParameters,
|
|
11
|
+
/** @deprecated This is no longer experimental – use `import type { GetCallsStatusReturnType } from '@wagmi/core'` instead. */
|
|
9
12
|
type GetCallsStatusReturnType,
|
|
13
|
+
/** @deprecated This is no longer experimental – use `import { getCallsStatus } from '@wagmi/core'` instead. */
|
|
10
14
|
getCallsStatus,
|
|
11
|
-
} from '../
|
|
15
|
+
} from '../actions/getCallsStatus.js'
|
|
12
16
|
|
|
13
17
|
export {
|
|
18
|
+
/** @deprecated This is no longer experimental – use `import type { GetCapabilitiesErrorType } from '@wagmi/core'` instead. */
|
|
14
19
|
type GetCapabilitiesErrorType,
|
|
20
|
+
/** @deprecated This is no longer experimental – use `import type { GetCapabilitiesParameters } from '@wagmi/core'` instead. */
|
|
15
21
|
type GetCapabilitiesParameters,
|
|
22
|
+
/** @deprecated This is no longer experimental – use `import type { GetCapabilitiesReturnType } from '@wagmi/core'` instead. */
|
|
16
23
|
type GetCapabilitiesReturnType,
|
|
24
|
+
/** @deprecated This is no longer experimental – use `import { getCapabilities } from '@wagmi/core'` instead. */
|
|
17
25
|
getCapabilities,
|
|
18
|
-
} from '../
|
|
26
|
+
} from '../actions/getCapabilities.js'
|
|
19
27
|
|
|
20
28
|
export {
|
|
29
|
+
/** @deprecated This is no longer experimental – use `import type { SendCallsErrorType } from '@wagmi/core'` instead. */
|
|
21
30
|
type SendCallsErrorType,
|
|
31
|
+
/** @deprecated This is no longer experimental – use `import type { SendCallsParameters } from '@wagmi/core'` instead. */
|
|
22
32
|
type SendCallsParameters,
|
|
33
|
+
/** @deprecated This is no longer experimental – use `import type { SendCallsReturnType } from '@wagmi/core'` instead. */
|
|
23
34
|
type SendCallsReturnType,
|
|
35
|
+
/** @deprecated This is no longer experimental – use `import { sendCalls } from '@wagmi/core'` instead. */
|
|
24
36
|
sendCalls,
|
|
25
|
-
} from '../
|
|
37
|
+
} from '../actions/sendCalls.js'
|
|
26
38
|
|
|
27
39
|
export {
|
|
40
|
+
/** @deprecated This is no longer experimental – use `import type { ShowCallsStatusErrorType } from '@wagmi/core'` instead. */
|
|
28
41
|
type ShowCallsStatusErrorType,
|
|
42
|
+
/** @deprecated This is no longer experimental – use `import type { ShowCallsStatusParameters } from '@wagmi/core'` instead. */
|
|
29
43
|
type ShowCallsStatusParameters,
|
|
44
|
+
/** @deprecated This is no longer experimental – use `import type { ShowCallsStatusReturnType } from '@wagmi/core'` instead. */
|
|
30
45
|
type ShowCallsStatusReturnType,
|
|
46
|
+
/** @deprecated This is no longer experimental – use `import { showCallsStatus } from '@wagmi/core'` instead. */
|
|
31
47
|
showCallsStatus,
|
|
32
|
-
} from '../
|
|
48
|
+
} from '../actions/showCallsStatus.js'
|
|
33
49
|
|
|
34
50
|
export {
|
|
51
|
+
/** @deprecated This is no longer experimental – use `import type { WaitForCallsStatusErrorType } from '@wagmi/core'` instead. */
|
|
35
52
|
type WaitForCallsStatusErrorType,
|
|
53
|
+
/** @deprecated This is no longer experimental – use `import type { WaitForCallsStatusParameters } from '@wagmi/core'` instead. */
|
|
36
54
|
type WaitForCallsStatusParameters,
|
|
55
|
+
/** @deprecated This is no longer experimental – use `import type { WaitForCallsStatusReturnType } from '@wagmi/core'` instead. */
|
|
37
56
|
type WaitForCallsStatusReturnType,
|
|
57
|
+
/** @deprecated This is no longer experimental – use `import { waitForCallsStatus } from '@wagmi/core'` instead. */
|
|
38
58
|
waitForCallsStatus,
|
|
39
|
-
} from '../
|
|
59
|
+
} from '../actions/waitForCallsStatus.js'
|
|
40
60
|
|
|
41
61
|
export {
|
|
62
|
+
/** @deprecated Use `SendCallsErrorType` instead. */
|
|
42
63
|
type WriteContractsErrorType,
|
|
64
|
+
/** @deprecated Use `SendCallsParameters` instead. */
|
|
43
65
|
type WriteContractsParameters,
|
|
66
|
+
/** @deprecated Use `SendCallsReturnType` instead. */
|
|
44
67
|
type WriteContractsReturnType,
|
|
68
|
+
/** @deprecated Use `sendCalls` instead. */
|
|
45
69
|
writeContracts,
|
|
46
70
|
} from '../experimental/actions/writeContracts.js'
|
|
47
71
|
|
|
@@ -50,52 +74,85 @@ export {
|
|
|
50
74
|
////////////////////////////////////////////////////////////////////////////////
|
|
51
75
|
|
|
52
76
|
export {
|
|
77
|
+
/** @deprecated This is no longer experimental – use `import type { GetCallsStatusData } from '@wagmi/core/query'` instead. */
|
|
53
78
|
type GetCallsStatusData,
|
|
79
|
+
/** @deprecated This is no longer experimental – use `import type { GetCallsStatusOptions } from '@wagmi/core/query'` instead. */
|
|
54
80
|
type GetCallsStatusOptions,
|
|
81
|
+
/** @deprecated This is no longer experimental – use `import type { GetCallsStatusQueryFnData } from '@wagmi/core/query'` instead. */
|
|
55
82
|
type GetCallsStatusQueryFnData,
|
|
83
|
+
/** @deprecated This is no longer experimental – use `import type { GetCallsStatusQueryKey } from '@wagmi/core/query'` instead. */
|
|
56
84
|
type GetCallsStatusQueryKey,
|
|
85
|
+
/** @deprecated This is no longer experimental – use `import { getCallsStatusQueryOptions } from '@wagmi/core/query'` instead. */
|
|
57
86
|
getCallsStatusQueryOptions,
|
|
87
|
+
/** @deprecated This is no longer experimental – use `import { getCallsStatusQueryKey } from '@wagmi/core/query'` instead. */
|
|
58
88
|
getCallsStatusQueryKey,
|
|
59
|
-
} from '../
|
|
89
|
+
} from '../query/getCallsStatus.js'
|
|
60
90
|
|
|
61
91
|
export {
|
|
92
|
+
/** @deprecated This is no longer experimental – use `import type { GetCapabilitiesData } from '@wagmi/core/query'` instead. */
|
|
62
93
|
type GetCapabilitiesData,
|
|
94
|
+
/** @deprecated This is no longer experimental – use `import type { GetCapabilitiesOptions } from '@wagmi/core/query'` instead. */
|
|
63
95
|
type GetCapabilitiesOptions,
|
|
96
|
+
/** @deprecated This is no longer experimental – use `import type { GetCapabilitiesQueryFnData } from '@wagmi/core/query'` instead. */
|
|
64
97
|
type GetCapabilitiesQueryFnData,
|
|
98
|
+
/** @deprecated This is no longer experimental – use `import type { GetCapabilitiesQueryKey } from '@wagmi/core/query'` instead. */
|
|
65
99
|
type GetCapabilitiesQueryKey,
|
|
100
|
+
/** @deprecated This is no longer experimental – use `import { getCapabilitiesQueryOptions } from '@wagmi/core/query'` instead. */
|
|
66
101
|
getCapabilitiesQueryOptions,
|
|
102
|
+
/** @deprecated This is no longer experimental – use `import { getCapabilitiesQueryKey } from '@wagmi/core/query'` instead. */
|
|
67
103
|
getCapabilitiesQueryKey,
|
|
68
|
-
} from '../
|
|
104
|
+
} from '../query/getCapabilities.js'
|
|
69
105
|
|
|
70
106
|
export {
|
|
107
|
+
/** @deprecated This is no longer experimental – use `import type { SendCallsData } from '@wagmi/core/query'` instead. */
|
|
71
108
|
type SendCallsData,
|
|
109
|
+
/** @deprecated This is no longer experimental – use `import type { SendCallsMutate } from '@wagmi/core/query'` instead. */
|
|
72
110
|
type SendCallsMutate,
|
|
111
|
+
/** @deprecated This is no longer experimental – use `import type { SendCallsMutateAsync } from '@wagmi/core/query'` instead. */
|
|
73
112
|
type SendCallsMutateAsync,
|
|
113
|
+
/** @deprecated This is no longer experimental – use `import type { SendCallsVariables } from '@wagmi/core/query'` instead. */
|
|
74
114
|
type SendCallsVariables,
|
|
115
|
+
/** @deprecated This is no longer experimental – use `import { sendCallsMutationOptions } from '@wagmi/core/query'` instead. */
|
|
75
116
|
sendCallsMutationOptions,
|
|
76
|
-
} from '../
|
|
117
|
+
} from '../query/sendCalls.js'
|
|
77
118
|
|
|
78
119
|
export {
|
|
120
|
+
/** @deprecated This is no longer experimental – use `import type { ShowCallsStatusData } from '@wagmi/core/query'` instead. */
|
|
79
121
|
type ShowCallsStatusData,
|
|
122
|
+
/** @deprecated This is no longer experimental – use `import type { ShowCallsStatusMutate } from '@wagmi/core/query'` instead. */
|
|
80
123
|
type ShowCallsStatusMutate,
|
|
124
|
+
/** @deprecated This is no longer experimental – use `import type { ShowCallsStatusMutateAsync } from '@wagmi/core/query'` instead. */
|
|
81
125
|
type ShowCallsStatusMutateAsync,
|
|
126
|
+
/** @deprecated This is no longer experimental – use `import type { ShowCallsStatusVariables } from '@wagmi/core/query'` instead. */
|
|
82
127
|
type ShowCallsStatusVariables,
|
|
128
|
+
/** @deprecated This is no longer experimental – use `import { showCallsStatusMutationOptions } from '@wagmi/core/query'` instead. */
|
|
83
129
|
showCallsStatusMutationOptions,
|
|
84
|
-
} from '../
|
|
130
|
+
} from '../query/showCallsStatus.js'
|
|
85
131
|
|
|
86
132
|
export {
|
|
133
|
+
/** @deprecated This is no longer experimental – use `import type { WaitForCallsStatusData } from '@wagmi/core/query'` instead. */
|
|
87
134
|
type WaitForCallsStatusData,
|
|
135
|
+
/** @deprecated This is no longer experimental – use `import type { WaitForCallsStatusOptions } from '@wagmi/core/query'` instead. */
|
|
88
136
|
type WaitForCallsStatusOptions,
|
|
137
|
+
/** @deprecated This is no longer experimental – use `import type { WaitForCallsStatusQueryFnData } from '@wagmi/core/query'` instead. */
|
|
89
138
|
type WaitForCallsStatusQueryFnData,
|
|
139
|
+
/** @deprecated This is no longer experimental – use `import type { WaitForCallsStatusQueryKey } from '@wagmi/core/query'` instead. */
|
|
90
140
|
type WaitForCallsStatusQueryKey,
|
|
141
|
+
/** @deprecated This is no longer experimental – use `import { waitForCallsStatusQueryKey } from '@wagmi/core/query'` instead. */
|
|
91
142
|
waitForCallsStatusQueryKey,
|
|
143
|
+
/** @deprecated This is no longer experimental – use `import { waitForCallsStatusQueryOptions } from '@wagmi/core/query'` instead. */
|
|
92
144
|
waitForCallsStatusQueryOptions,
|
|
93
|
-
} from '../
|
|
145
|
+
} from '../query/waitForCallsStatus.js'
|
|
94
146
|
|
|
95
147
|
export {
|
|
148
|
+
/** @deprecated Use `SendCallsData` instead. */
|
|
96
149
|
type WriteContractsData,
|
|
150
|
+
/** @deprecated Use `SendCallsMutate` instead. */
|
|
97
151
|
type WriteContractsMutate,
|
|
152
|
+
/** @deprecated Use `SendCallsMutateAsync` instead. */
|
|
98
153
|
type WriteContractsMutateAsync,
|
|
154
|
+
/** @deprecated Use `SendCallsVariables` instead. */
|
|
99
155
|
type WriteContractsVariables,
|
|
156
|
+
/** @deprecated Use `sendCallsMutationOptions` instead. */
|
|
100
157
|
writeContractsMutationOptions,
|
|
101
158
|
} from '../experimental/query/writeContracts.js'
|
package/src/exports/index.ts
CHANGED
|
@@ -96,6 +96,20 @@ export {
|
|
|
96
96
|
getBytecode,
|
|
97
97
|
} from '../actions/getBytecode.js'
|
|
98
98
|
|
|
99
|
+
export {
|
|
100
|
+
type GetCallsStatusErrorType,
|
|
101
|
+
type GetCallsStatusParameters,
|
|
102
|
+
type GetCallsStatusReturnType,
|
|
103
|
+
getCallsStatus,
|
|
104
|
+
} from '../actions/getCallsStatus.js'
|
|
105
|
+
|
|
106
|
+
export {
|
|
107
|
+
type GetCapabilitiesErrorType,
|
|
108
|
+
type GetCapabilitiesParameters,
|
|
109
|
+
type GetCapabilitiesReturnType,
|
|
110
|
+
getCapabilities,
|
|
111
|
+
} from '../actions/getCapabilities.js'
|
|
112
|
+
|
|
99
113
|
export {
|
|
100
114
|
type GetChainIdReturnType,
|
|
101
115
|
getChainId,
|
|
@@ -286,6 +300,13 @@ export {
|
|
|
286
300
|
reconnect,
|
|
287
301
|
} from '../actions/reconnect.js'
|
|
288
302
|
|
|
303
|
+
export {
|
|
304
|
+
type SendCallsErrorType,
|
|
305
|
+
type SendCallsParameters,
|
|
306
|
+
type SendCallsReturnType,
|
|
307
|
+
sendCalls,
|
|
308
|
+
} from '../actions/sendCalls.js'
|
|
309
|
+
|
|
289
310
|
export {
|
|
290
311
|
type SendTransactionErrorType,
|
|
291
312
|
type SendTransactionParameters,
|
|
@@ -293,6 +314,13 @@ export {
|
|
|
293
314
|
sendTransaction,
|
|
294
315
|
} from '../actions/sendTransaction.js'
|
|
295
316
|
|
|
317
|
+
export {
|
|
318
|
+
type ShowCallsStatusErrorType,
|
|
319
|
+
type ShowCallsStatusParameters,
|
|
320
|
+
type ShowCallsStatusReturnType,
|
|
321
|
+
showCallsStatus,
|
|
322
|
+
} from '../actions/showCallsStatus.js'
|
|
323
|
+
|
|
296
324
|
export {
|
|
297
325
|
type SignMessageErrorType,
|
|
298
326
|
type SignMessageParameters,
|
|
@@ -344,6 +372,13 @@ export {
|
|
|
344
372
|
verifyTypedData,
|
|
345
373
|
} from '../actions/verifyTypedData.js'
|
|
346
374
|
|
|
375
|
+
export {
|
|
376
|
+
type WaitForCallsStatusErrorType,
|
|
377
|
+
type WaitForCallsStatusParameters,
|
|
378
|
+
type WaitForCallsStatusReturnType,
|
|
379
|
+
waitForCallsStatus,
|
|
380
|
+
} from '../actions/waitForCallsStatus.js'
|
|
381
|
+
|
|
347
382
|
export {
|
|
348
383
|
type WatchAccountParameters,
|
|
349
384
|
type WatchAccountReturnType,
|
package/src/exports/query.ts
CHANGED
|
@@ -108,6 +108,24 @@ export {
|
|
|
108
108
|
getBytecodeQueryOptions,
|
|
109
109
|
} from '../query/getBytecode.js'
|
|
110
110
|
|
|
111
|
+
export {
|
|
112
|
+
type GetCallsStatusData,
|
|
113
|
+
type GetCallsStatusOptions,
|
|
114
|
+
type GetCallsStatusQueryFnData,
|
|
115
|
+
type GetCallsStatusQueryKey,
|
|
116
|
+
getCallsStatusQueryKey,
|
|
117
|
+
getCallsStatusQueryOptions,
|
|
118
|
+
} from '../query/getCallsStatus.js'
|
|
119
|
+
|
|
120
|
+
export {
|
|
121
|
+
type GetCapabilitiesData,
|
|
122
|
+
type GetCapabilitiesOptions,
|
|
123
|
+
type GetCapabilitiesQueryFnData,
|
|
124
|
+
type GetCapabilitiesQueryKey,
|
|
125
|
+
getCapabilitiesQueryKey,
|
|
126
|
+
getCapabilitiesQueryOptions,
|
|
127
|
+
} from '../query/getCapabilities.js'
|
|
128
|
+
|
|
111
129
|
export {
|
|
112
130
|
type GetConnectorClientData,
|
|
113
131
|
type GetConnectorClientOptions,
|
|
@@ -296,6 +314,22 @@ export {
|
|
|
296
314
|
reconnectMutationOptions,
|
|
297
315
|
} from '../query/reconnect.js'
|
|
298
316
|
|
|
317
|
+
export {
|
|
318
|
+
type SendCallsData,
|
|
319
|
+
type SendCallsVariables,
|
|
320
|
+
type SendCallsMutate,
|
|
321
|
+
type SendCallsMutateAsync,
|
|
322
|
+
sendCallsMutationOptions,
|
|
323
|
+
} from '../query/sendCalls.js'
|
|
324
|
+
|
|
325
|
+
export {
|
|
326
|
+
type ShowCallsStatusData,
|
|
327
|
+
type ShowCallsStatusVariables,
|
|
328
|
+
type ShowCallsStatusMutate,
|
|
329
|
+
type ShowCallsStatusMutateAsync,
|
|
330
|
+
showCallsStatusMutationOptions,
|
|
331
|
+
} from '../query/showCallsStatus.js'
|
|
332
|
+
|
|
299
333
|
export {
|
|
300
334
|
type SendTransactionData,
|
|
301
335
|
type SendTransactionVariables,
|
|
@@ -363,6 +397,15 @@ export {
|
|
|
363
397
|
verifyTypedDataQueryOptions,
|
|
364
398
|
} from '../query/verifyTypedData.js'
|
|
365
399
|
|
|
400
|
+
export {
|
|
401
|
+
type WaitForCallsStatusData,
|
|
402
|
+
type WaitForCallsStatusOptions,
|
|
403
|
+
type WaitForCallsStatusQueryFnData,
|
|
404
|
+
type WaitForCallsStatusQueryKey,
|
|
405
|
+
waitForCallsStatusQueryKey,
|
|
406
|
+
waitForCallsStatusQueryOptions,
|
|
407
|
+
} from '../query/waitForCallsStatus.js'
|
|
408
|
+
|
|
366
409
|
export {
|
|
367
410
|
type WaitForTransactionReceiptData,
|
|
368
411
|
type WaitForTransactionReceiptOptions,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { QueryOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
|
-
import type { Config } from '../../createConfig.js'
|
|
4
|
-
import { ConnectorNotConnectedError } from '../../errors/config.js'
|
|
5
|
-
import { filterQueryOptions } from '../../query/utils.js'
|
|
6
|
-
import type { ScopeKeyParameter } from '../../types/properties.js'
|
|
7
|
-
import type { Compute } from '../../types/utils.js'
|
|
8
3
|
import {
|
|
9
4
|
type GetCallsStatusErrorType,
|
|
10
5
|
type GetCallsStatusParameters,
|
|
11
6
|
type GetCallsStatusReturnType,
|
|
12
7
|
getCallsStatus,
|
|
13
8
|
} from '../actions/getCallsStatus.js'
|
|
9
|
+
import type { Config } from '../createConfig.js'
|
|
10
|
+
import { ConnectorNotConnectedError } from '../errors/config.js'
|
|
11
|
+
import { filterQueryOptions } from '../query/utils.js'
|
|
12
|
+
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
13
|
+
import type { Compute } from '../types/utils.js'
|
|
14
14
|
|
|
15
15
|
export type GetCallsStatusOptions = Compute<
|
|
16
16
|
GetCallsStatusParameters & ScopeKeyParameter
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { QueryOptions } from '@tanstack/query-core'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
type GetCapabilitiesErrorType,
|
|
5
|
+
type GetCapabilitiesParameters,
|
|
6
|
+
type GetCapabilitiesReturnType,
|
|
7
|
+
getCapabilities,
|
|
8
|
+
} from '../actions/getCapabilities.js'
|
|
9
|
+
import type { Config } from '../createConfig.js'
|
|
10
|
+
import { ConnectorNotConnectedError } from '../errors/config.js'
|
|
11
|
+
import { filterQueryOptions } from '../query/utils.js'
|
|
12
|
+
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
13
|
+
import type { Compute, ExactPartial } from '../types/utils.js'
|
|
14
|
+
|
|
15
|
+
export type GetCapabilitiesOptions<
|
|
16
|
+
config extends Config = Config,
|
|
17
|
+
chainId extends config['chains'][number]['id'] | undefined = undefined,
|
|
18
|
+
> = Compute<
|
|
19
|
+
ExactPartial<GetCapabilitiesParameters<config, chainId>> & ScopeKeyParameter
|
|
20
|
+
>
|
|
21
|
+
|
|
22
|
+
export function getCapabilitiesQueryOptions<
|
|
23
|
+
config extends Config,
|
|
24
|
+
chainId extends config['chains'][number]['id'] | undefined = undefined,
|
|
25
|
+
>(config: config, options: GetCapabilitiesOptions<config, chainId> = {}) {
|
|
26
|
+
return {
|
|
27
|
+
async queryFn({ queryKey }) {
|
|
28
|
+
const { scopeKey: _, ...parameters } = queryKey[1]
|
|
29
|
+
const capabilities = await getCapabilities(config, parameters)
|
|
30
|
+
return capabilities
|
|
31
|
+
},
|
|
32
|
+
queryKey: getCapabilitiesQueryKey(options),
|
|
33
|
+
retry(failureCount, error) {
|
|
34
|
+
if (error instanceof ConnectorNotConnectedError) return false
|
|
35
|
+
return failureCount < 3
|
|
36
|
+
},
|
|
37
|
+
} as const satisfies QueryOptions<
|
|
38
|
+
GetCapabilitiesQueryFnData<config, chainId>,
|
|
39
|
+
GetCapabilitiesErrorType,
|
|
40
|
+
GetCapabilitiesData<config, chainId>,
|
|
41
|
+
GetCapabilitiesQueryKey<config, chainId>
|
|
42
|
+
>
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type GetCapabilitiesQueryFnData<
|
|
46
|
+
config extends Config = Config,
|
|
47
|
+
chainId extends config['chains'][number]['id'] | undefined = undefined,
|
|
48
|
+
> = GetCapabilitiesReturnType<config, chainId>
|
|
49
|
+
|
|
50
|
+
export type GetCapabilitiesData<
|
|
51
|
+
config extends Config = Config,
|
|
52
|
+
chainId extends config['chains'][number]['id'] | undefined = undefined,
|
|
53
|
+
> = GetCapabilitiesQueryFnData<config, chainId>
|
|
54
|
+
|
|
55
|
+
export function getCapabilitiesQueryKey<
|
|
56
|
+
config extends Config,
|
|
57
|
+
chainId extends config['chains'][number]['id'] | undefined = undefined,
|
|
58
|
+
>(options: GetCapabilitiesOptions<config, chainId> = {}) {
|
|
59
|
+
return ['capabilities', filterQueryOptions(options)] as const
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type GetCapabilitiesQueryKey<
|
|
63
|
+
config extends Config,
|
|
64
|
+
chainId extends config['chains'][number]['id'] | undefined = undefined,
|
|
65
|
+
> = ReturnType<typeof getCapabilitiesQueryKey<config, chainId>>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { MutateOptions, MutationOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
|
-
import type { Config } from '../../createConfig.js'
|
|
4
|
-
import type { Compute } from '../../types/utils.js'
|
|
5
3
|
import {
|
|
6
4
|
type SendCallsErrorType,
|
|
7
5
|
type SendCallsParameters,
|
|
8
6
|
type SendCallsReturnType,
|
|
9
7
|
sendCalls,
|
|
10
8
|
} from '../actions/sendCalls.js'
|
|
9
|
+
import type { Config } from '../createConfig.js'
|
|
10
|
+
import type { Compute } from '../types/utils.js'
|
|
11
11
|
|
|
12
12
|
export function sendCallsMutationOptions<config extends Config>(
|
|
13
13
|
config: config,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { MutateOptions, MutationOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
|
-
import type { Config } from '../../createConfig.js'
|
|
4
|
-
import type { Compute } from '../../types/utils.js'
|
|
5
3
|
import {
|
|
6
4
|
type ShowCallsStatusErrorType,
|
|
7
5
|
type ShowCallsStatusParameters,
|
|
8
6
|
type ShowCallsStatusReturnType,
|
|
9
7
|
showCallsStatus,
|
|
10
8
|
} from '../actions/showCallsStatus.js'
|
|
9
|
+
import type { Config } from '../createConfig.js'
|
|
10
|
+
import type { Compute } from '../types/utils.js'
|
|
11
11
|
|
|
12
12
|
export function showCallsStatusMutationOptions<config extends Config>(
|
|
13
13
|
config: config,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { QueryOptions } from '@tanstack/query-core'
|
|
2
2
|
|
|
3
|
-
import type { Config } from '../../createConfig.js'
|
|
4
|
-
import { ConnectorNotConnectedError } from '../../errors/config.js'
|
|
5
|
-
import { filterQueryOptions } from '../../query/utils.js'
|
|
6
|
-
import type { ScopeKeyParameter } from '../../types/properties.js'
|
|
7
|
-
import type { Compute, PartialBy } from '../../types/utils.js'
|
|
8
3
|
import {
|
|
9
4
|
type WaitForCallsStatusErrorType,
|
|
10
5
|
type WaitForCallsStatusParameters,
|
|
11
6
|
type WaitForCallsStatusReturnType,
|
|
12
7
|
waitForCallsStatus,
|
|
13
8
|
} from '../actions/waitForCallsStatus.js'
|
|
9
|
+
import type { Config } from '../createConfig.js'
|
|
10
|
+
import { ConnectorNotConnectedError } from '../errors/config.js'
|
|
11
|
+
import { filterQueryOptions } from '../query/utils.js'
|
|
12
|
+
import type { ScopeKeyParameter } from '../types/properties.js'
|
|
13
|
+
import type { Compute, PartialBy } from '../types/utils.js'
|
|
14
14
|
|
|
15
15
|
export type WaitForCallsStatusOptions = Compute<
|
|
16
16
|
PartialBy<WaitForCallsStatusParameters, 'id'> & ScopeKeyParameter
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.17.1'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCallsStatus.js","sourceRoot":"","sources":["../../../../src/experimental/actions/getCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,cAAc,IAAI,mBAAmB,GACtC,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAWxE,uDAAuD;AACvD,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,MAAc,EACd,UAAoC;IAEpC,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,GAAG,UAAU,CAAA;IACpC,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,CAAA;IAC9D,OAAO,mBAAmB,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAA;AAC5C,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getCapabilities as viem_getCapabilities, } from 'viem/experimental';
|
|
2
|
-
import { getConnectorClient } from '../../actions/getConnectorClient.js';
|
|
3
|
-
/** https://wagmi.sh/core/api/actions/getCapabilities */
|
|
4
|
-
export async function getCapabilities(config, parameters = {}) {
|
|
5
|
-
const { account, connector } = parameters;
|
|
6
|
-
const client = await getConnectorClient(config, { account, connector });
|
|
7
|
-
return viem_getCapabilities(client, { account: account });
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=getCapabilities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCapabilities.js","sourceRoot":"","sources":["../../../../src/experimental/actions/getCapabilities.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,eAAe,IAAI,oBAAoB,GACxC,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAWxE,wDAAwD;AACxD,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,MAAc,EACd,aAAwC,EAAE;IAE1C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,UAAU,CAAA;IACzC,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAA;IACvE,OAAO,oBAAoB,CAAC,MAAa,EAAE,EAAE,OAAO,EAAE,OAAkB,EAAE,CAAC,CAAA;AAC7E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sendCalls.js","sourceRoot":"","sources":["../../../../src/experimental/actions/sendCalls.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,SAAS,IAAI,cAAc,GAC5B,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAEL,kBAAkB,GACnB,MAAM,qCAAqC,CAAA;AAmC5C,kDAAkD;AAClD,MAAM,CAAC,KAAK,UAAU,SAAS,CAI7B,MAAc,EACd,UAAgD;IAEhD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,UAAU,CAAA;IAElE,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE;QAC9C,OAAO;QACP,OAAO;QACP,SAAS;KACV,CAAC,CAAA;IAEF,OAAO,cAAc,CAAC,MAAM,EAAE;QAC5B,GAAI,IAAY;QAChB,GAAG,CAAC,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtD,KAAK;QACL,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS;KAC7C,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"showCallsStatus.js","sourceRoot":"","sources":["../../../../src/experimental/actions/showCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,eAAe,IAAI,oBAAoB,GACxC,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAWxE,wDAAwD;AACxD,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,MAAc,EACd,UAAqC;IAErC,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,GAAG,UAAU,CAAA;IACpC,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,CAAA;IAC9D,OAAO,oBAAoB,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAA;AAC7C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"waitForCallsStatus.js","sourceRoot":"","sources":["../../../../src/experimental/actions/waitForCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,kBAAkB,IAAI,uBAAuB,GAC9C,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAWxE,2DAA2D;AAC3D,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,MAAc,EACd,UAAwC;IAExC,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,GAAG,UAAU,CAAA;IACpC,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,CAAA;IAC9D,OAAO,uBAAuB,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAA;AAChD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCallsStatus.js","sourceRoot":"","sources":["../../../../src/experimental/query/getCallsStatus.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAA;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAGzD,OAAO,EAIL,cAAc,GACf,MAAM,8BAA8B,CAAA;AAMrC,MAAM,UAAU,0BAA0B,CACxC,MAAc,EACd,OAA8B;IAE9B,OAAO;QACL,KAAK,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE;YACxB,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,UAAU,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;YAClD,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;YACvD,OAAO,MAAM,CAAA;QACf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BAAkB,CAAC,OAAO,CAAC,CAAU,CAAA;AAC/D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sendCalls.js","sourceRoot":"","sources":["../../../../src/experimental/query/sendCalls.ts"],"names":[],"mappings":"AAIA,OAAO,EAIL,SAAS,GACV,MAAM,yBAAyB,CAAA;AAEhC,MAAM,UAAU,wBAAwB,CACtC,MAAc;IAEd,OAAO;QACL,UAAU,CAAC,SAAS;YAClB,OAAO,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;QACrC,CAAC;QACD,WAAW,EAAE,CAAC,WAAW,CAAC;KAK3B,CAAA;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"showCallsStatus.js","sourceRoot":"","sources":["../../../../src/experimental/query/showCallsStatus.ts"],"names":[],"mappings":"AAIA,OAAO,EAIL,eAAe,GAChB,MAAM,+BAA+B,CAAA;AAEtC,MAAM,UAAU,8BAA8B,CAC5C,MAAc;IAEd,OAAO;QACL,UAAU,CAAC,SAAS;YAClB,OAAO,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;QAC3C,CAAC;QACD,WAAW,EAAE,CAAC,iBAAiB,CAAC;KAKjC,CAAA;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"waitForCallsStatus.js","sourceRoot":"","sources":["../../../../src/experimental/query/waitForCallsStatus.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAA;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAGzD,OAAO,EAIL,kBAAkB,GACnB,MAAM,kCAAkC,CAAA;AAMzC,MAAM,UAAU,8BAA8B,CAC5C,MAAc,EACd,OAAkC;IAElC,OAAO;QACL,KAAK,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE;YACxB,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE,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AM,EAAE,MAAM,EACd,UAAU,EAAE,wBAAwB,GACnC,OAAO,CAAC,wBAAwB,CAAC,CAInC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type GetCapabilitiesErrorType as viem_GetCapabilitiesErrorType, type GetCapabilitiesParameters as viem_GetCapabilitiesParameters, type GetCapabilitiesReturnType as viem_GetCapabilitiesReturnType } from 'viem/experimental';
|
|
2
|
-
import type { Config } from '../../createConfig.js';
|
|
3
|
-
import type { ConnectorParameter } from '../../types/properties.js';
|
|
4
|
-
export type GetCapabilitiesParameters = viem_GetCapabilitiesParameters & ConnectorParameter;
|
|
5
|
-
export type GetCapabilitiesReturnType = viem_GetCapabilitiesReturnType;
|
|
6
|
-
export type GetCapabilitiesErrorType = viem_GetCapabilitiesErrorType;
|
|
7
|
-
/** https://wagmi.sh/core/api/actions/getCapabilities */
|
|
8
|
-
export declare function getCapabilities<config extends Config>(config: config, parameters?: GetCapabilitiesParameters): Promise<GetCapabilitiesReturnType>;
|
|
9
|
-
//# sourceMappingURL=getCapabilities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/experimental/actions/getCapabilities.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,wBAAwB,IAAI,6BAA6B,EAC9D,KAAK,yBAAyB,IAAI,8BAA8B,EAChE,KAAK,yBAAyB,IAAI,8BAA8B,EAEjE,MAAM,mBAAmB,CAAA;AAG1B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAEnE,MAAM,MAAM,yBAAyB,GAAG,8BAA8B,GACpE,kBAAkB,CAAA;AAEpB,MAAM,MAAM,yBAAyB,GAAG,8BAA8B,CAAA;AAEtE,MAAM,MAAM,wBAAwB,GAAG,6BAA6B,CAAA;AAEpE,wDAAwD;AACxD,wBAAsB,e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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"waitForCallsStatus.d.ts","sourceRoot":"","sources":["../../../../src/experimental/actions/waitForCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,2BAA2B,IAAI,gCAAgC,EACpE,KAAK,4BAA4B,IAAI,iCAAiC,EACtE,KAAK,4BAA4B,IAAI,iCAAiC,EAEvE,MAAM,mBAAmB,CAAA;AAG1B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAEnE,MAAM,MAAM,4BAA4B,GAAG,iCAAiC,GAC1E,kBAAkB,CAAA;AAEpB,MAAM,MAAM,4BAA4B,GAAG,iCAAiC,CAAA;AAE5E,MAAM,MAAM,2BAA2B,GAAG,gCAAgC,CAAA;AAE1E,2DAA2D;AAC3D,wBAAsB,kBAAkB,CAAC,MAAM,SAAS,MAAM,EAC5D,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,4BAA4B,GACvC,OAAO,CAAC,4BAA4B,CAAC,CAIvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCallsStatus.d.ts","sourceRoot":"","sources":["../../../../src/experimental/query/getCallsStatus.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAGnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAEL,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAE9B,MAAM,8BAA8B,CAAA;AAErC,MAAM,MAAM,qBAAqB,GAAG,OAAO,CACzC,wBAAwB,GAAG,iBAAiB,CAC7C,CAAA;AAED,wBAAgB,0BAA0B,CAAC,MAAM,SAAS,MAAM,EAC9D,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;EAmB/B;AAED,MAAM,MAAM,yBAAyB,GAAG,wBAAwB,CAAA;AAEhE,MAAM,MAAM,kBAAkB,GAAG,yBAAyB,CAAA;AAE1D,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,qBAAqB;;;;GAEpE;AAED,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { Config } from '../../createConfig.js';
|
|
2
|
-
import type { ScopeKeyParameter } from '../../types/properties.js';
|
|
3
|
-
import type { Compute, ExactPartial } from '../../types/utils.js';
|
|
4
|
-
import { type GetCapabilitiesParameters, type GetCapabilitiesReturnType } from '../actions/getCapabilities.js';
|
|
5
|
-
export type GetCapabilitiesOptions = Compute<ExactPartial<GetCapabilitiesParameters> & ScopeKeyParameter>;
|
|
6
|
-
export declare function getCapabilitiesQueryOptions<config extends Config>(config: config, options?: GetCapabilitiesOptions): {
|
|
7
|
-
readonly queryFn: ({ queryKey }: {
|
|
8
|
-
queryKey: readonly ["capabilities", {
|
|
9
|
-
account?: import("viem").Account | import("viem").Address | undefined;
|
|
10
|
-
connector?: import("../../createConfig.js").Connector | undefined;
|
|
11
|
-
scopeKey?: string | undefined;
|
|
12
|
-
}];
|
|
13
|
-
signal: AbortSignal;
|
|
14
|
-
meta: import("@tanstack/query-core").QueryMeta | undefined;
|
|
15
|
-
pageParam?: unknown;
|
|
16
|
-
direction?: unknown;
|
|
17
|
-
}) => Promise<{
|
|
18
|
-
[x: number]: import("viem").WalletCapabilities;
|
|
19
|
-
}>;
|
|
20
|
-
readonly queryKey: readonly ["capabilities", {
|
|
21
|
-
account?: import("viem").Account | import("viem").Address | undefined;
|
|
22
|
-
connector?: import("../../createConfig.js").Connector | undefined;
|
|
23
|
-
scopeKey?: string | undefined;
|
|
24
|
-
}];
|
|
25
|
-
readonly retry: (failureCount: number, error: import("viem/experimental").GetCapabilitiesErrorType) => boolean;
|
|
26
|
-
};
|
|
27
|
-
export type GetCapabilitiesQueryFnData = GetCapabilitiesReturnType;
|
|
28
|
-
export type GetCapabilitiesData = GetCapabilitiesQueryFnData;
|
|
29
|
-
export declare function getCapabilitiesQueryKey(options?: GetCapabilitiesOptions): readonly ["capabilities", {
|
|
30
|
-
account?: import("viem").Account | import("viem").Address | undefined;
|
|
31
|
-
connector?: import("../../createConfig.js").Connector | undefined;
|
|
32
|
-
scopeKey?: string | undefined;
|
|
33
|
-
}];
|
|
34
|
-
export type GetCapabilitiesQueryKey = ReturnType<typeof getCapabilitiesQueryKey>;
|
|
35
|
-
//# sourceMappingURL=getCapabilities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/experimental/query/getCapabilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAGnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAE/B,MAAM,+BAA+B,CAAA;AAEtC,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAC1C,YAAY,CAAC,yBAAyB,CAAC,GAAG,iBAAiB,CAC5D,CAAA;AAED,wBAAgB,2BAA2B,CAAC,MAAM,SAAS,MAAM,EAC/D,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,sBAA2B;;;;;;;;;;;;;;;;;;;;EAmBrC;AAED,MAAM,MAAM,0BAA0B,GAAG,yBAAyB,CAAA;AAElE,MAAM,MAAM,mBAAmB,GAAG,0BAA0B,CAAA;AAE5D,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,sBAA2B;;;;GAE3E;AAED,MAAM,MAAM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,OAAO,IAAI,CAC3E,OAAO,SAAS,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAE9C,SAAS,EAAE,kBAAkB,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9C,OAAO,CAAC,EACJ,OAAO,CACL,aAAa,CACX,aAAa,EACb,kBAAkB,EAClB,OAAO,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAC5C,OAAO,CACR,CACF,GACD,SAAS,KACV,OAAO,CAAC,aAAa,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"showCallsStatus.d.ts","sourceRoot":"","sources":["../../../../src/experimental/query/showCallsStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,sBAAsB,CAAA;AAE1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAE/B,MAAM,+BAA+B,CAAA;AAEtC,wBAAgB,8BAA8B,CAAC,MAAM,SAAS,MAAM,EAClE,MAAM,EAAE,MAAM;;;EAYf;AAED,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAA;AAEpE,MAAM,MAAM,wBAAwB,GAAG,yBAAyB,CAAA;AAEhE,MAAM,MAAM,qBAAqB,CAAC,OAAO,GAAG,OAAO,IAAI,CACrD,SAAS,EAAE,wBAAwB,EACnC,OAAO,CAAC,EACJ,OAAO,CACL,aAAa,CACX,mBAAmB,EACnB,wBAAwB,EACxB,OAAO,CAAC,wBAAwB,CAAC,EACjC,OAAO,CACR,CACF,GACD,SAAS,KACV,IAAI,CAAA;AAET,MAAM,MAAM,0BAA0B,CAAC,OAAO,GAAG,OAAO,IAAI,CAC1D,SAAS,EAAE,wBAAwB,EACnC,OAAO,CAAC,EACJ,OAAO,CACL,aAAa,CACX,mBAAmB,EACnB,wBAAwB,EACxB,OAAO,CAAC,wBAAwB,CAAC,EACjC,OAAO,CACR,CACF,GACD,SAAS,KACV,OAAO,CAAC,mBAAmB,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"waitForCallsStatus.d.ts","sourceRoot":"","sources":["../../../../src/experimental/query/waitForCallsStatus.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAGnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAEL,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EAElC,MAAM,kCAAkC,CAAA;AAEzC,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,SAAS,CAAC,4BAA4B,EAAE,IAAI,CAAC,GAAG,iBAAiB,CAClE,CAAA;AAED,wBAAgB,8BAA8B,CAAC,MAAM,SAAS,MAAM,EAClE,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBnC;AAED,MAAM,MAAM,6BAA6B,GAAG,4BAA4B,CAAA;AAExE,MAAM,MAAM,sBAAsB,GAAG,6BAA6B,CAAA;AAElE,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,yBAAyB;;;;;;;GAE5E;AAED,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,0BAA0B,CAClC,CAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Account } from 'viem'
|
|
2
|
-
import {
|
|
3
|
-
type GetCapabilitiesErrorType as viem_GetCapabilitiesErrorType,
|
|
4
|
-
type GetCapabilitiesParameters as viem_GetCapabilitiesParameters,
|
|
5
|
-
type GetCapabilitiesReturnType as viem_GetCapabilitiesReturnType,
|
|
6
|
-
getCapabilities as viem_getCapabilities,
|
|
7
|
-
} from 'viem/experimental'
|
|
8
|
-
|
|
9
|
-
import { getConnectorClient } from '../../actions/getConnectorClient.js'
|
|
10
|
-
import type { Config } from '../../createConfig.js'
|
|
11
|
-
import type { ConnectorParameter } from '../../types/properties.js'
|
|
12
|
-
|
|
13
|
-
export type GetCapabilitiesParameters = viem_GetCapabilitiesParameters &
|
|
14
|
-
ConnectorParameter
|
|
15
|
-
|
|
16
|
-
export type GetCapabilitiesReturnType = viem_GetCapabilitiesReturnType
|
|
17
|
-
|
|
18
|
-
export type GetCapabilitiesErrorType = viem_GetCapabilitiesErrorType
|
|
19
|
-
|
|
20
|
-
/** https://wagmi.sh/core/api/actions/getCapabilities */
|
|
21
|
-
export async function getCapabilities<config extends Config>(
|
|
22
|
-
config: config,
|
|
23
|
-
parameters: GetCapabilitiesParameters = {},
|
|
24
|
-
): Promise<GetCapabilitiesReturnType> {
|
|
25
|
-
const { account, connector } = parameters
|
|
26
|
-
const client = await getConnectorClient(config, { account, connector })
|
|
27
|
-
return viem_getCapabilities(client as any, { account: account as Account })
|
|
28
|
-
}
|