@wagmi/core 2.16.6 → 2.16.7
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/query/waitForCallsStatus.js +4 -2
- package/dist/esm/experimental/query/waitForCallsStatus.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/experimental/query/waitForCallsStatus.d.ts +11 -11
- package/dist/types/experimental/query/waitForCallsStatus.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/experimental/query/waitForCallsStatus.ts +5 -4
- package/src/version.ts +1 -1
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '2.16.
|
|
1
|
+
export const version = '2.16.7';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { Config } from '../../createConfig.js';
|
|
2
2
|
import type { ScopeKeyParameter } from '../../types/properties.js';
|
|
3
|
-
import type { Compute } from '../../types/utils.js';
|
|
3
|
+
import type { Compute, PartialBy } from '../../types/utils.js';
|
|
4
4
|
import { type WaitForCallsStatusParameters, type WaitForCallsStatusReturnType } from '../actions/waitForCallsStatus.js';
|
|
5
|
-
export type WaitForCallsStatusOptions = Compute<WaitForCallsStatusParameters & ScopeKeyParameter>;
|
|
5
|
+
export type WaitForCallsStatusOptions = Compute<PartialBy<WaitForCallsStatusParameters, 'id'> & ScopeKeyParameter>;
|
|
6
6
|
export declare function waitForCallsStatusQueryOptions<config extends Config>(config: config, options: WaitForCallsStatusOptions): {
|
|
7
7
|
readonly queryFn: ({ queryKey }: {
|
|
8
8
|
queryKey: readonly ["callsStatus", {
|
|
9
|
-
id
|
|
10
|
-
pollingInterval?: number | undefined;
|
|
9
|
+
id?: string | undefined;
|
|
11
10
|
status?: "CONFIRMED" | undefined;
|
|
12
|
-
|
|
11
|
+
pollingInterval?: number | undefined;
|
|
13
12
|
connector?: import("../../createConfig.js").Connector | undefined;
|
|
13
|
+
timeout?: number | undefined;
|
|
14
14
|
scopeKey?: string | undefined;
|
|
15
15
|
}];
|
|
16
16
|
signal: AbortSignal;
|
|
@@ -22,11 +22,11 @@ export declare function waitForCallsStatusQueryOptions<config extends Config>(co
|
|
|
22
22
|
receipts?: import("viem").WalletCallReceipt<bigint, "success" | "reverted">[] | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
readonly queryKey: readonly ["callsStatus", {
|
|
25
|
-
id
|
|
26
|
-
pollingInterval?: number | undefined;
|
|
25
|
+
id?: string | undefined;
|
|
27
26
|
status?: "CONFIRMED" | undefined;
|
|
28
|
-
|
|
27
|
+
pollingInterval?: number | undefined;
|
|
29
28
|
connector?: import("../../createConfig.js").Connector | undefined;
|
|
29
|
+
timeout?: number | undefined;
|
|
30
30
|
scopeKey?: string | undefined;
|
|
31
31
|
}];
|
|
32
32
|
readonly retry: (failureCount: number, error: import("viem/experimental").WaitForCallsStatusErrorType) => boolean;
|
|
@@ -34,11 +34,11 @@ export declare function waitForCallsStatusQueryOptions<config extends Config>(co
|
|
|
34
34
|
export type WaitForCallsStatusQueryFnData = WaitForCallsStatusReturnType;
|
|
35
35
|
export type WaitForCallsStatusData = WaitForCallsStatusQueryFnData;
|
|
36
36
|
export declare function waitForCallsStatusQueryKey(options: WaitForCallsStatusOptions): readonly ["callsStatus", {
|
|
37
|
-
id
|
|
38
|
-
pollingInterval?: number | undefined;
|
|
37
|
+
id?: string | undefined;
|
|
39
38
|
status?: "CONFIRMED" | undefined;
|
|
40
|
-
|
|
39
|
+
pollingInterval?: number | undefined;
|
|
41
40
|
connector?: import("../../createConfig.js").Connector | undefined;
|
|
41
|
+
timeout?: number | undefined;
|
|
42
42
|
scopeKey?: string | undefined;
|
|
43
43
|
}];
|
|
44
44
|
export type WaitForCallsStatusQueryKey = ReturnType<typeof waitForCallsStatusQueryKey>;
|
|
@@ -1 +1 @@
|
|
|
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,MAAM,sBAAsB,CAAA;
|
|
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"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.16.
|
|
1
|
+
export declare const version = "2.16.7";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import type { Config } from '../../createConfig.js'
|
|
|
4
4
|
import { ConnectorNotConnectedError } from '../../errors/config.js'
|
|
5
5
|
import { filterQueryOptions } from '../../query/utils.js'
|
|
6
6
|
import type { ScopeKeyParameter } from '../../types/properties.js'
|
|
7
|
-
import type { Compute } from '../../types/utils.js'
|
|
7
|
+
import type { Compute, PartialBy } from '../../types/utils.js'
|
|
8
8
|
import {
|
|
9
9
|
type WaitForCallsStatusErrorType,
|
|
10
10
|
type WaitForCallsStatusParameters,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from '../actions/waitForCallsStatus.js'
|
|
14
14
|
|
|
15
15
|
export type WaitForCallsStatusOptions = Compute<
|
|
16
|
-
WaitForCallsStatusParameters & ScopeKeyParameter
|
|
16
|
+
PartialBy<WaitForCallsStatusParameters, 'id'> & ScopeKeyParameter
|
|
17
17
|
>
|
|
18
18
|
|
|
19
19
|
export function waitForCallsStatusQueryOptions<config extends Config>(
|
|
@@ -22,8 +22,9 @@ export function waitForCallsStatusQueryOptions<config extends Config>(
|
|
|
22
22
|
) {
|
|
23
23
|
return {
|
|
24
24
|
async queryFn({ queryKey }) {
|
|
25
|
-
const { scopeKey: _, ...parameters } = queryKey[1]
|
|
26
|
-
|
|
25
|
+
const { scopeKey: _, id, ...parameters } = queryKey[1]
|
|
26
|
+
if (!id) throw new Error('id is required')
|
|
27
|
+
const status = await waitForCallsStatus(config, { ...parameters, id })
|
|
27
28
|
return status
|
|
28
29
|
},
|
|
29
30
|
queryKey: waitForCallsStatusQueryKey(options),
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.16.
|
|
1
|
+
export const version = '2.16.7'
|