@b3dotfun/sdk 0.0.18 → 0.0.19-alpha.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/README.md +29 -51
- package/dist/cjs/anyspend/react/components/AnySpend.js +21 -3
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +0 -1
- package/dist/cjs/anyspend/react/components/common/FiatPaymentMethod.js +2 -2
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +0 -1
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +0 -1
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +0 -1
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +0 -4
- package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +1 -1
- package/dist/cjs/anyspend/react/hooks/useStripeSupport.d.ts +1 -1
- package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +4 -4
- package/dist/cjs/anyspend/react/providers/AnyspendProvider.d.ts +1 -2
- package/dist/cjs/anyspend/react/providers/AnyspendProvider.js +2 -3
- package/dist/cjs/anyspend/services/anyspend.d.ts +1 -1
- package/dist/cjs/anyspend/services/anyspend.js +1 -2
- package/dist/cjs/anyspend/types/api.d.ts +1 -16
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +3 -1
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +2 -2
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.js +3 -1
- package/dist/cjs/global-account/react/components/index.d.ts +1 -0
- package/dist/cjs/global-account/react/components/index.js +4 -2
- package/dist/cjs/global-account/react/components/ui/Loading.js +1 -1
- package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +4 -4
- package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.js +360 -313
- package/dist/cjs/shared/thirdweb/generated/client.gen.d.ts +2 -2
- package/dist/cjs/shared/thirdweb/generated/sdk.gen.d.ts +2 -2
- package/dist/cjs/shared/thirdweb/generated/sdk.gen.js +398 -398
- package/dist/cjs/shared/thirdweb/generated/types.gen.d.ts +135 -135
- package/dist/esm/anyspend/react/components/AnySpend.js +21 -3
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +0 -1
- package/dist/esm/anyspend/react/components/common/FiatPaymentMethod.js +2 -2
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +0 -1
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +0 -1
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +0 -1
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +0 -4
- package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +1 -1
- package/dist/esm/anyspend/react/hooks/useStripeSupport.d.ts +1 -1
- package/dist/esm/anyspend/react/hooks/useStripeSupport.js +4 -4
- package/dist/esm/anyspend/react/providers/AnyspendProvider.d.ts +1 -2
- package/dist/esm/anyspend/react/providers/AnyspendProvider.js +2 -3
- package/dist/esm/anyspend/services/anyspend.d.ts +1 -1
- package/dist/esm/anyspend/services/anyspend.js +1 -2
- package/dist/esm/anyspend/types/api.d.ts +1 -16
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +3 -1
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +3 -3
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.js +3 -1
- package/dist/esm/global-account/react/components/index.d.ts +1 -0
- package/dist/esm/global-account/react/components/index.js +1 -0
- package/dist/esm/global-account/react/components/ui/Loading.js +1 -1
- package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +4 -4
- package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.js +363 -316
- package/dist/esm/shared/thirdweb/generated/client.gen.d.ts +2 -2
- package/dist/esm/shared/thirdweb/generated/client.gen.js +1 -1
- package/dist/esm/shared/thirdweb/generated/sdk.gen.d.ts +2 -2
- package/dist/esm/shared/thirdweb/generated/sdk.gen.js +399 -399
- package/dist/esm/shared/thirdweb/generated/types.gen.d.ts +135 -135
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +0 -1
- package/dist/types/anyspend/react/hooks/useStripeSupport.d.ts +1 -1
- package/dist/types/anyspend/react/providers/AnyspendProvider.d.ts +1 -2
- package/dist/types/anyspend/services/anyspend.d.ts +1 -1
- package/dist/types/anyspend/types/api.d.ts +1 -16
- package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +3 -1
- package/dist/types/global-account/react/components/index.d.ts +1 -0
- package/dist/types/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +4 -4
- package/dist/types/shared/thirdweb/generated/client.gen.d.ts +2 -2
- package/dist/types/shared/thirdweb/generated/sdk.gen.d.ts +2 -2
- package/dist/types/shared/thirdweb/generated/types.gen.d.ts +135 -135
- package/package.json +2 -2
- package/src/anyspend/react/components/AnySpend.tsx +25 -7
- package/src/anyspend/react/components/AnySpendCustom.tsx +0 -1
- package/src/anyspend/react/components/common/FiatPaymentMethod.tsx +2 -2
- package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +0 -1
- package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +0 -1
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +0 -6
- package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +0 -1
- package/src/anyspend/react/hooks/useStripeSupport.ts +3 -4
- package/src/anyspend/react/providers/AnyspendProvider.tsx +5 -9
- package/src/anyspend/services/anyspend.ts +0 -2
- package/src/anyspend/types/api.ts +1 -16
- package/src/global-account/react/components/B3Provider/B3Provider.native.tsx +1 -0
- package/src/global-account/react/components/B3Provider/B3Provider.tsx +11 -5
- package/src/global-account/react/components/index.ts +1 -0
- package/src/global-account/react/components/ui/Loading.tsx +1 -1
- package/src/shared/thirdweb/generated/@tanstack/react-query.gen.ts +1886 -1220
- package/src/shared/thirdweb/generated/client.gen.ts +11 -4
- package/src/shared/thirdweb/generated/sdk.gen.ts +1083 -809
- package/src/shared/thirdweb/generated/types.gen.ts +3953 -3862
- /package/dist/cjs/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.d.ts +0 -0
- /package/dist/cjs/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.js +0 -0
- /package/dist/esm/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.d.ts +0 -0
- /package/dist/esm/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.js +0 -0
- /package/dist/types/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.d.ts +0 -0
- /package/src/{anyspend/react/providers → global-account/react/components/B3Provider}/RelayKitProviderWrapper.tsx +0 -0
|
@@ -8,7 +8,10 @@ const sdk_gen_1 = require("../sdk.gen");
|
|
|
8
8
|
const react_query_1 = require("@tanstack/react-query");
|
|
9
9
|
const client_gen_1 = require("../client.gen");
|
|
10
10
|
const createQueryKey = (id, options, infinite) => {
|
|
11
|
-
const params = {
|
|
11
|
+
const params = {
|
|
12
|
+
_id: id,
|
|
13
|
+
baseUrl: (options?.client ?? client_gen_1.client).getConfig().baseUrl,
|
|
14
|
+
};
|
|
12
15
|
if (infinite) {
|
|
13
16
|
params._infinite = infinite;
|
|
14
17
|
}
|
|
@@ -24,11 +27,9 @@ const createQueryKey = (id, options, infinite) => {
|
|
|
24
27
|
if (options?.query) {
|
|
25
28
|
params.query = options.query;
|
|
26
29
|
}
|
|
27
|
-
return [
|
|
28
|
-
params
|
|
29
|
-
];
|
|
30
|
+
return [params];
|
|
30
31
|
};
|
|
31
|
-
const getV1WebhooksQueryKey = (options) => createQueryKey(
|
|
32
|
+
const getV1WebhooksQueryKey = (options) => createQueryKey("getV1Webhooks", options);
|
|
32
33
|
exports.getV1WebhooksQueryKey = getV1WebhooksQueryKey;
|
|
33
34
|
const getV1WebhooksOptions = (options) => {
|
|
34
35
|
return (0, react_query_1.queryOptions)({
|
|
@@ -37,15 +38,15 @@ const getV1WebhooksOptions = (options) => {
|
|
|
37
38
|
...options,
|
|
38
39
|
...queryKey[0],
|
|
39
40
|
signal,
|
|
40
|
-
throwOnError: true
|
|
41
|
+
throwOnError: true,
|
|
41
42
|
});
|
|
42
43
|
return data;
|
|
43
44
|
},
|
|
44
|
-
queryKey: (0, exports.getV1WebhooksQueryKey)(options)
|
|
45
|
+
queryKey: (0, exports.getV1WebhooksQueryKey)(options),
|
|
45
46
|
});
|
|
46
47
|
};
|
|
47
48
|
exports.getV1WebhooksOptions = getV1WebhooksOptions;
|
|
48
|
-
const postV1WebhooksQueryKey = (options) => createQueryKey(
|
|
49
|
+
const postV1WebhooksQueryKey = (options) => createQueryKey("postV1Webhooks", options);
|
|
49
50
|
exports.postV1WebhooksQueryKey = postV1WebhooksQueryKey;
|
|
50
51
|
const postV1WebhooksOptions = (options) => {
|
|
51
52
|
return (0, react_query_1.queryOptions)({
|
|
@@ -54,11 +55,11 @@ const postV1WebhooksOptions = (options) => {
|
|
|
54
55
|
...options,
|
|
55
56
|
...queryKey[0],
|
|
56
57
|
signal,
|
|
57
|
-
throwOnError: true
|
|
58
|
+
throwOnError: true,
|
|
58
59
|
});
|
|
59
60
|
return data;
|
|
60
61
|
},
|
|
61
|
-
queryKey: (0, exports.postV1WebhooksQueryKey)(options)
|
|
62
|
+
queryKey: (0, exports.postV1WebhooksQueryKey)(options),
|
|
62
63
|
});
|
|
63
64
|
};
|
|
64
65
|
exports.postV1WebhooksOptions = postV1WebhooksOptions;
|
|
@@ -68,10 +69,10 @@ const postV1WebhooksMutation = (options) => {
|
|
|
68
69
|
const { data } = await (0, sdk_gen_1.postV1Webhooks)({
|
|
69
70
|
...options,
|
|
70
71
|
...localOptions,
|
|
71
|
-
throwOnError: true
|
|
72
|
+
throwOnError: true,
|
|
72
73
|
});
|
|
73
74
|
return data;
|
|
74
|
-
}
|
|
75
|
+
},
|
|
75
76
|
};
|
|
76
77
|
return mutationOptions;
|
|
77
78
|
};
|
|
@@ -82,10 +83,10 @@ const deleteV1WebhooksByWebhookIdMutation = (options) => {
|
|
|
82
83
|
const { data } = await (0, sdk_gen_1.deleteV1WebhooksByWebhookId)({
|
|
83
84
|
...options,
|
|
84
85
|
...localOptions,
|
|
85
|
-
throwOnError: true
|
|
86
|
+
throwOnError: true,
|
|
86
87
|
});
|
|
87
88
|
return data;
|
|
88
|
-
}
|
|
89
|
+
},
|
|
89
90
|
};
|
|
90
91
|
return mutationOptions;
|
|
91
92
|
};
|
|
@@ -96,15 +97,15 @@ const patchV1WebhooksByWebhookIdMutation = (options) => {
|
|
|
96
97
|
const { data } = await (0, sdk_gen_1.patchV1WebhooksByWebhookId)({
|
|
97
98
|
...options,
|
|
98
99
|
...localOptions,
|
|
99
|
-
throwOnError: true
|
|
100
|
+
throwOnError: true,
|
|
100
101
|
});
|
|
101
102
|
return data;
|
|
102
|
-
}
|
|
103
|
+
},
|
|
103
104
|
};
|
|
104
105
|
return mutationOptions;
|
|
105
106
|
};
|
|
106
107
|
exports.patchV1WebhooksByWebhookIdMutation = patchV1WebhooksByWebhookIdMutation;
|
|
107
|
-
const postV1WebhooksTestQueryKey = (options) => createQueryKey(
|
|
108
|
+
const postV1WebhooksTestQueryKey = (options) => createQueryKey("postV1WebhooksTest", options);
|
|
108
109
|
exports.postV1WebhooksTestQueryKey = postV1WebhooksTestQueryKey;
|
|
109
110
|
const postV1WebhooksTestOptions = (options) => {
|
|
110
111
|
return (0, react_query_1.queryOptions)({
|
|
@@ -113,11 +114,11 @@ const postV1WebhooksTestOptions = (options) => {
|
|
|
113
114
|
...options,
|
|
114
115
|
...queryKey[0],
|
|
115
116
|
signal,
|
|
116
|
-
throwOnError: true
|
|
117
|
+
throwOnError: true,
|
|
117
118
|
});
|
|
118
119
|
return data;
|
|
119
120
|
},
|
|
120
|
-
queryKey: (0, exports.postV1WebhooksTestQueryKey)(options)
|
|
121
|
+
queryKey: (0, exports.postV1WebhooksTestQueryKey)(options),
|
|
121
122
|
});
|
|
122
123
|
};
|
|
123
124
|
exports.postV1WebhooksTestOptions = postV1WebhooksTestOptions;
|
|
@@ -127,15 +128,15 @@ const postV1WebhooksTestMutation = (options) => {
|
|
|
127
128
|
const { data } = await (0, sdk_gen_1.postV1WebhooksTest)({
|
|
128
129
|
...options,
|
|
129
130
|
...localOptions,
|
|
130
|
-
throwOnError: true
|
|
131
|
+
throwOnError: true,
|
|
131
132
|
});
|
|
132
133
|
return data;
|
|
133
|
-
}
|
|
134
|
+
},
|
|
134
135
|
};
|
|
135
136
|
return mutationOptions;
|
|
136
137
|
};
|
|
137
138
|
exports.postV1WebhooksTestMutation = postV1WebhooksTestMutation;
|
|
138
|
-
const getV1EventsQueryKey = (options) => createQueryKey(
|
|
139
|
+
const getV1EventsQueryKey = (options) => createQueryKey("getV1Events", options);
|
|
139
140
|
exports.getV1EventsQueryKey = getV1EventsQueryKey;
|
|
140
141
|
const getV1EventsOptions = (options) => {
|
|
141
142
|
return (0, react_query_1.queryOptions)({
|
|
@@ -144,11 +145,11 @@ const getV1EventsOptions = (options) => {
|
|
|
144
145
|
...options,
|
|
145
146
|
...queryKey[0],
|
|
146
147
|
signal,
|
|
147
|
-
throwOnError: true
|
|
148
|
+
throwOnError: true,
|
|
148
149
|
});
|
|
149
150
|
return data;
|
|
150
151
|
},
|
|
151
|
-
queryKey: (0, exports.getV1EventsQueryKey)(options)
|
|
152
|
+
queryKey: (0, exports.getV1EventsQueryKey)(options),
|
|
152
153
|
});
|
|
153
154
|
};
|
|
154
155
|
exports.getV1EventsOptions = getV1EventsOptions;
|
|
@@ -157,30 +158,30 @@ const createInfiniteParams = (queryKey, page) => {
|
|
|
157
158
|
if (page.body) {
|
|
158
159
|
params.body = {
|
|
159
160
|
...queryKey[0].body,
|
|
160
|
-
...page.body
|
|
161
|
+
...page.body,
|
|
161
162
|
};
|
|
162
163
|
}
|
|
163
164
|
if (page.headers) {
|
|
164
165
|
params.headers = {
|
|
165
166
|
...queryKey[0].headers,
|
|
166
|
-
...page.headers
|
|
167
|
+
...page.headers,
|
|
167
168
|
};
|
|
168
169
|
}
|
|
169
170
|
if (page.path) {
|
|
170
171
|
params.path = {
|
|
171
172
|
...queryKey[0].path,
|
|
172
|
-
...page.path
|
|
173
|
+
...page.path,
|
|
173
174
|
};
|
|
174
175
|
}
|
|
175
176
|
if (page.query) {
|
|
176
177
|
params.query = {
|
|
177
178
|
...queryKey[0].query,
|
|
178
|
-
...page.query
|
|
179
|
+
...page.query,
|
|
179
180
|
};
|
|
180
181
|
}
|
|
181
182
|
return params;
|
|
182
183
|
};
|
|
183
|
-
const getV1EventsInfiniteQueryKey = (options) => createQueryKey(
|
|
184
|
+
const getV1EventsInfiniteQueryKey = (options) => createQueryKey("getV1Events", options, true);
|
|
184
185
|
exports.getV1EventsInfiniteQueryKey = getV1EventsInfiniteQueryKey;
|
|
185
186
|
const getV1EventsInfiniteOptions = (options) => {
|
|
186
187
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -188,25 +189,27 @@ const getV1EventsInfiniteOptions = (options) => {
|
|
|
188
189
|
{
|
|
189
190
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
190
191
|
// @ts-ignore
|
|
191
|
-
const page = typeof pageParam ===
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
const page = typeof pageParam === "object"
|
|
193
|
+
? pageParam
|
|
194
|
+
: {
|
|
195
|
+
query: {
|
|
196
|
+
page: pageParam,
|
|
197
|
+
},
|
|
198
|
+
};
|
|
196
199
|
const params = createInfiniteParams(queryKey, page);
|
|
197
200
|
const { data } = await (0, sdk_gen_1.getV1Events)({
|
|
198
201
|
...options,
|
|
199
202
|
...params,
|
|
200
203
|
signal,
|
|
201
|
-
throwOnError: true
|
|
204
|
+
throwOnError: true,
|
|
202
205
|
});
|
|
203
206
|
return data;
|
|
204
207
|
},
|
|
205
|
-
queryKey: (0, exports.getV1EventsInfiniteQueryKey)(options)
|
|
208
|
+
queryKey: (0, exports.getV1EventsInfiniteQueryKey)(options),
|
|
206
209
|
});
|
|
207
210
|
};
|
|
208
211
|
exports.getV1EventsInfiniteOptions = getV1EventsInfiniteOptions;
|
|
209
|
-
const getV1EventsByContractAddressQueryKey = (options) => createQueryKey(
|
|
212
|
+
const getV1EventsByContractAddressQueryKey = (options) => createQueryKey("getV1EventsByContractAddress", options);
|
|
210
213
|
exports.getV1EventsByContractAddressQueryKey = getV1EventsByContractAddressQueryKey;
|
|
211
214
|
const getV1EventsByContractAddressOptions = (options) => {
|
|
212
215
|
return (0, react_query_1.queryOptions)({
|
|
@@ -215,15 +218,15 @@ const getV1EventsByContractAddressOptions = (options) => {
|
|
|
215
218
|
...options,
|
|
216
219
|
...queryKey[0],
|
|
217
220
|
signal,
|
|
218
|
-
throwOnError: true
|
|
221
|
+
throwOnError: true,
|
|
219
222
|
});
|
|
220
223
|
return data;
|
|
221
224
|
},
|
|
222
|
-
queryKey: (0, exports.getV1EventsByContractAddressQueryKey)(options)
|
|
225
|
+
queryKey: (0, exports.getV1EventsByContractAddressQueryKey)(options),
|
|
223
226
|
});
|
|
224
227
|
};
|
|
225
228
|
exports.getV1EventsByContractAddressOptions = getV1EventsByContractAddressOptions;
|
|
226
|
-
const getV1EventsByContractAddressInfiniteQueryKey = (options) => createQueryKey(
|
|
229
|
+
const getV1EventsByContractAddressInfiniteQueryKey = (options) => createQueryKey("getV1EventsByContractAddress", options, true);
|
|
227
230
|
exports.getV1EventsByContractAddressInfiniteQueryKey = getV1EventsByContractAddressInfiniteQueryKey;
|
|
228
231
|
const getV1EventsByContractAddressInfiniteOptions = (options) => {
|
|
229
232
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -231,25 +234,27 @@ const getV1EventsByContractAddressInfiniteOptions = (options) => {
|
|
|
231
234
|
{
|
|
232
235
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
233
236
|
// @ts-ignore
|
|
234
|
-
const page = typeof pageParam ===
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
const page = typeof pageParam === "object"
|
|
238
|
+
? pageParam
|
|
239
|
+
: {
|
|
240
|
+
query: {
|
|
241
|
+
page: pageParam,
|
|
242
|
+
},
|
|
243
|
+
};
|
|
239
244
|
const params = createInfiniteParams(queryKey, page);
|
|
240
245
|
const { data } = await (0, sdk_gen_1.getV1EventsByContractAddress)({
|
|
241
246
|
...options,
|
|
242
247
|
...params,
|
|
243
248
|
signal,
|
|
244
|
-
throwOnError: true
|
|
249
|
+
throwOnError: true,
|
|
245
250
|
});
|
|
246
251
|
return data;
|
|
247
252
|
},
|
|
248
|
-
queryKey: (0, exports.getV1EventsByContractAddressInfiniteQueryKey)(options)
|
|
253
|
+
queryKey: (0, exports.getV1EventsByContractAddressInfiniteQueryKey)(options),
|
|
249
254
|
});
|
|
250
255
|
};
|
|
251
256
|
exports.getV1EventsByContractAddressInfiniteOptions = getV1EventsByContractAddressInfiniteOptions;
|
|
252
|
-
const getV1EventsByContractAddressBySignatureQueryKey = (options) => createQueryKey(
|
|
257
|
+
const getV1EventsByContractAddressBySignatureQueryKey = (options) => createQueryKey("getV1EventsByContractAddressBySignature", options);
|
|
253
258
|
exports.getV1EventsByContractAddressBySignatureQueryKey = getV1EventsByContractAddressBySignatureQueryKey;
|
|
254
259
|
const getV1EventsByContractAddressBySignatureOptions = (options) => {
|
|
255
260
|
return (0, react_query_1.queryOptions)({
|
|
@@ -258,15 +263,15 @@ const getV1EventsByContractAddressBySignatureOptions = (options) => {
|
|
|
258
263
|
...options,
|
|
259
264
|
...queryKey[0],
|
|
260
265
|
signal,
|
|
261
|
-
throwOnError: true
|
|
266
|
+
throwOnError: true,
|
|
262
267
|
});
|
|
263
268
|
return data;
|
|
264
269
|
},
|
|
265
|
-
queryKey: (0, exports.getV1EventsByContractAddressBySignatureQueryKey)(options)
|
|
270
|
+
queryKey: (0, exports.getV1EventsByContractAddressBySignatureQueryKey)(options),
|
|
266
271
|
});
|
|
267
272
|
};
|
|
268
273
|
exports.getV1EventsByContractAddressBySignatureOptions = getV1EventsByContractAddressBySignatureOptions;
|
|
269
|
-
const getV1EventsByContractAddressBySignatureInfiniteQueryKey = (options) => createQueryKey(
|
|
274
|
+
const getV1EventsByContractAddressBySignatureInfiniteQueryKey = (options) => createQueryKey("getV1EventsByContractAddressBySignature", options, true);
|
|
270
275
|
exports.getV1EventsByContractAddressBySignatureInfiniteQueryKey = getV1EventsByContractAddressBySignatureInfiniteQueryKey;
|
|
271
276
|
const getV1EventsByContractAddressBySignatureInfiniteOptions = (options) => {
|
|
272
277
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -274,25 +279,27 @@ const getV1EventsByContractAddressBySignatureInfiniteOptions = (options) => {
|
|
|
274
279
|
{
|
|
275
280
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
276
281
|
// @ts-ignore
|
|
277
|
-
const page = typeof pageParam ===
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
+
const page = typeof pageParam === "object"
|
|
283
|
+
? pageParam
|
|
284
|
+
: {
|
|
285
|
+
query: {
|
|
286
|
+
page: pageParam,
|
|
287
|
+
},
|
|
288
|
+
};
|
|
282
289
|
const params = createInfiniteParams(queryKey, page);
|
|
283
290
|
const { data } = await (0, sdk_gen_1.getV1EventsByContractAddressBySignature)({
|
|
284
291
|
...options,
|
|
285
292
|
...params,
|
|
286
293
|
signal,
|
|
287
|
-
throwOnError: true
|
|
294
|
+
throwOnError: true,
|
|
288
295
|
});
|
|
289
296
|
return data;
|
|
290
297
|
},
|
|
291
|
-
queryKey: (0, exports.getV1EventsByContractAddressBySignatureInfiniteQueryKey)(options)
|
|
298
|
+
queryKey: (0, exports.getV1EventsByContractAddressBySignatureInfiniteQueryKey)(options),
|
|
292
299
|
});
|
|
293
300
|
};
|
|
294
301
|
exports.getV1EventsByContractAddressBySignatureInfiniteOptions = getV1EventsByContractAddressBySignatureInfiniteOptions;
|
|
295
|
-
const getV1TransactionsQueryKey = (options) => createQueryKey(
|
|
302
|
+
const getV1TransactionsQueryKey = (options) => createQueryKey("getV1Transactions", options);
|
|
296
303
|
exports.getV1TransactionsQueryKey = getV1TransactionsQueryKey;
|
|
297
304
|
const getV1TransactionsOptions = (options) => {
|
|
298
305
|
return (0, react_query_1.queryOptions)({
|
|
@@ -301,15 +308,15 @@ const getV1TransactionsOptions = (options) => {
|
|
|
301
308
|
...options,
|
|
302
309
|
...queryKey[0],
|
|
303
310
|
signal,
|
|
304
|
-
throwOnError: true
|
|
311
|
+
throwOnError: true,
|
|
305
312
|
});
|
|
306
313
|
return data;
|
|
307
314
|
},
|
|
308
|
-
queryKey: (0, exports.getV1TransactionsQueryKey)(options)
|
|
315
|
+
queryKey: (0, exports.getV1TransactionsQueryKey)(options),
|
|
309
316
|
});
|
|
310
317
|
};
|
|
311
318
|
exports.getV1TransactionsOptions = getV1TransactionsOptions;
|
|
312
|
-
const getV1TransactionsInfiniteQueryKey = (options) => createQueryKey(
|
|
319
|
+
const getV1TransactionsInfiniteQueryKey = (options) => createQueryKey("getV1Transactions", options, true);
|
|
313
320
|
exports.getV1TransactionsInfiniteQueryKey = getV1TransactionsInfiniteQueryKey;
|
|
314
321
|
const getV1TransactionsInfiniteOptions = (options) => {
|
|
315
322
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -317,25 +324,27 @@ const getV1TransactionsInfiniteOptions = (options) => {
|
|
|
317
324
|
{
|
|
318
325
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
319
326
|
// @ts-ignore
|
|
320
|
-
const page = typeof pageParam ===
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
327
|
+
const page = typeof pageParam === "object"
|
|
328
|
+
? pageParam
|
|
329
|
+
: {
|
|
330
|
+
query: {
|
|
331
|
+
page: pageParam,
|
|
332
|
+
},
|
|
333
|
+
};
|
|
325
334
|
const params = createInfiniteParams(queryKey, page);
|
|
326
335
|
const { data } = await (0, sdk_gen_1.getV1Transactions)({
|
|
327
336
|
...options,
|
|
328
337
|
...params,
|
|
329
338
|
signal,
|
|
330
|
-
throwOnError: true
|
|
339
|
+
throwOnError: true,
|
|
331
340
|
});
|
|
332
341
|
return data;
|
|
333
342
|
},
|
|
334
|
-
queryKey: (0, exports.getV1TransactionsInfiniteQueryKey)(options)
|
|
343
|
+
queryKey: (0, exports.getV1TransactionsInfiniteQueryKey)(options),
|
|
335
344
|
});
|
|
336
345
|
};
|
|
337
346
|
exports.getV1TransactionsInfiniteOptions = getV1TransactionsInfiniteOptions;
|
|
338
|
-
const getV1TransactionsByContractAddressQueryKey = (options) => createQueryKey(
|
|
347
|
+
const getV1TransactionsByContractAddressQueryKey = (options) => createQueryKey("getV1TransactionsByContractAddress", options);
|
|
339
348
|
exports.getV1TransactionsByContractAddressQueryKey = getV1TransactionsByContractAddressQueryKey;
|
|
340
349
|
const getV1TransactionsByContractAddressOptions = (options) => {
|
|
341
350
|
return (0, react_query_1.queryOptions)({
|
|
@@ -344,15 +353,15 @@ const getV1TransactionsByContractAddressOptions = (options) => {
|
|
|
344
353
|
...options,
|
|
345
354
|
...queryKey[0],
|
|
346
355
|
signal,
|
|
347
|
-
throwOnError: true
|
|
356
|
+
throwOnError: true,
|
|
348
357
|
});
|
|
349
358
|
return data;
|
|
350
359
|
},
|
|
351
|
-
queryKey: (0, exports.getV1TransactionsByContractAddressQueryKey)(options)
|
|
360
|
+
queryKey: (0, exports.getV1TransactionsByContractAddressQueryKey)(options),
|
|
352
361
|
});
|
|
353
362
|
};
|
|
354
363
|
exports.getV1TransactionsByContractAddressOptions = getV1TransactionsByContractAddressOptions;
|
|
355
|
-
const getV1TransactionsByContractAddressInfiniteQueryKey = (options) => createQueryKey(
|
|
364
|
+
const getV1TransactionsByContractAddressInfiniteQueryKey = (options) => createQueryKey("getV1TransactionsByContractAddress", options, true);
|
|
356
365
|
exports.getV1TransactionsByContractAddressInfiniteQueryKey = getV1TransactionsByContractAddressInfiniteQueryKey;
|
|
357
366
|
const getV1TransactionsByContractAddressInfiniteOptions = (options) => {
|
|
358
367
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -360,25 +369,27 @@ const getV1TransactionsByContractAddressInfiniteOptions = (options) => {
|
|
|
360
369
|
{
|
|
361
370
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
362
371
|
// @ts-ignore
|
|
363
|
-
const page = typeof pageParam ===
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
372
|
+
const page = typeof pageParam === "object"
|
|
373
|
+
? pageParam
|
|
374
|
+
: {
|
|
375
|
+
query: {
|
|
376
|
+
page: pageParam,
|
|
377
|
+
},
|
|
378
|
+
};
|
|
368
379
|
const params = createInfiniteParams(queryKey, page);
|
|
369
380
|
const { data } = await (0, sdk_gen_1.getV1TransactionsByContractAddress)({
|
|
370
381
|
...options,
|
|
371
382
|
...params,
|
|
372
383
|
signal,
|
|
373
|
-
throwOnError: true
|
|
384
|
+
throwOnError: true,
|
|
374
385
|
});
|
|
375
386
|
return data;
|
|
376
387
|
},
|
|
377
|
-
queryKey: (0, exports.getV1TransactionsByContractAddressInfiniteQueryKey)(options)
|
|
388
|
+
queryKey: (0, exports.getV1TransactionsByContractAddressInfiniteQueryKey)(options),
|
|
378
389
|
});
|
|
379
390
|
};
|
|
380
391
|
exports.getV1TransactionsByContractAddressInfiniteOptions = getV1TransactionsByContractAddressInfiniteOptions;
|
|
381
|
-
const getV1TransactionsByContractAddressBySignatureQueryKey = (options) => createQueryKey(
|
|
392
|
+
const getV1TransactionsByContractAddressBySignatureQueryKey = (options) => createQueryKey("getV1TransactionsByContractAddressBySignature", options);
|
|
382
393
|
exports.getV1TransactionsByContractAddressBySignatureQueryKey = getV1TransactionsByContractAddressBySignatureQueryKey;
|
|
383
394
|
const getV1TransactionsByContractAddressBySignatureOptions = (options) => {
|
|
384
395
|
return (0, react_query_1.queryOptions)({
|
|
@@ -387,15 +398,15 @@ const getV1TransactionsByContractAddressBySignatureOptions = (options) => {
|
|
|
387
398
|
...options,
|
|
388
399
|
...queryKey[0],
|
|
389
400
|
signal,
|
|
390
|
-
throwOnError: true
|
|
401
|
+
throwOnError: true,
|
|
391
402
|
});
|
|
392
403
|
return data;
|
|
393
404
|
},
|
|
394
|
-
queryKey: (0, exports.getV1TransactionsByContractAddressBySignatureQueryKey)(options)
|
|
405
|
+
queryKey: (0, exports.getV1TransactionsByContractAddressBySignatureQueryKey)(options),
|
|
395
406
|
});
|
|
396
407
|
};
|
|
397
408
|
exports.getV1TransactionsByContractAddressBySignatureOptions = getV1TransactionsByContractAddressBySignatureOptions;
|
|
398
|
-
const getV1TransactionsByContractAddressBySignatureInfiniteQueryKey = (options) => createQueryKey(
|
|
409
|
+
const getV1TransactionsByContractAddressBySignatureInfiniteQueryKey = (options) => createQueryKey("getV1TransactionsByContractAddressBySignature", options, true);
|
|
399
410
|
exports.getV1TransactionsByContractAddressBySignatureInfiniteQueryKey = getV1TransactionsByContractAddressBySignatureInfiniteQueryKey;
|
|
400
411
|
const getV1TransactionsByContractAddressBySignatureInfiniteOptions = (options) => {
|
|
401
412
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -403,25 +414,27 @@ const getV1TransactionsByContractAddressBySignatureInfiniteOptions = (options) =
|
|
|
403
414
|
{
|
|
404
415
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
405
416
|
// @ts-ignore
|
|
406
|
-
const page = typeof pageParam ===
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
417
|
+
const page = typeof pageParam === "object"
|
|
418
|
+
? pageParam
|
|
419
|
+
: {
|
|
420
|
+
query: {
|
|
421
|
+
page: pageParam,
|
|
422
|
+
},
|
|
423
|
+
};
|
|
411
424
|
const params = createInfiniteParams(queryKey, page);
|
|
412
425
|
const { data } = await (0, sdk_gen_1.getV1TransactionsByContractAddressBySignature)({
|
|
413
426
|
...options,
|
|
414
427
|
...params,
|
|
415
428
|
signal,
|
|
416
|
-
throwOnError: true
|
|
429
|
+
throwOnError: true,
|
|
417
430
|
});
|
|
418
431
|
return data;
|
|
419
432
|
},
|
|
420
|
-
queryKey: (0, exports.getV1TransactionsByContractAddressBySignatureInfiniteQueryKey)(options)
|
|
433
|
+
queryKey: (0, exports.getV1TransactionsByContractAddressBySignatureInfiniteQueryKey)(options),
|
|
421
434
|
});
|
|
422
435
|
};
|
|
423
436
|
exports.getV1TransactionsByContractAddressBySignatureInfiniteOptions = getV1TransactionsByContractAddressBySignatureInfiniteOptions;
|
|
424
|
-
const getV1TokensTransfersTransactionByTransactionHashQueryKey = (options) => createQueryKey(
|
|
437
|
+
const getV1TokensTransfersTransactionByTransactionHashQueryKey = (options) => createQueryKey("getV1TokensTransfersTransactionByTransactionHash", options);
|
|
425
438
|
exports.getV1TokensTransfersTransactionByTransactionHashQueryKey = getV1TokensTransfersTransactionByTransactionHashQueryKey;
|
|
426
439
|
const getV1TokensTransfersTransactionByTransactionHashOptions = (options) => {
|
|
427
440
|
return (0, react_query_1.queryOptions)({
|
|
@@ -430,15 +443,15 @@ const getV1TokensTransfersTransactionByTransactionHashOptions = (options) => {
|
|
|
430
443
|
...options,
|
|
431
444
|
...queryKey[0],
|
|
432
445
|
signal,
|
|
433
|
-
throwOnError: true
|
|
446
|
+
throwOnError: true,
|
|
434
447
|
});
|
|
435
448
|
return data;
|
|
436
449
|
},
|
|
437
|
-
queryKey: (0, exports.getV1TokensTransfersTransactionByTransactionHashQueryKey)(options)
|
|
450
|
+
queryKey: (0, exports.getV1TokensTransfersTransactionByTransactionHashQueryKey)(options),
|
|
438
451
|
});
|
|
439
452
|
};
|
|
440
453
|
exports.getV1TokensTransfersTransactionByTransactionHashOptions = getV1TokensTransfersTransactionByTransactionHashOptions;
|
|
441
|
-
const getV1TokensTransfersTransactionByTransactionHashInfiniteQueryKey = (options) => createQueryKey(
|
|
454
|
+
const getV1TokensTransfersTransactionByTransactionHashInfiniteQueryKey = (options) => createQueryKey("getV1TokensTransfersTransactionByTransactionHash", options, true);
|
|
442
455
|
exports.getV1TokensTransfersTransactionByTransactionHashInfiniteQueryKey = getV1TokensTransfersTransactionByTransactionHashInfiniteQueryKey;
|
|
443
456
|
const getV1TokensTransfersTransactionByTransactionHashInfiniteOptions = (options) => {
|
|
444
457
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -446,25 +459,27 @@ const getV1TokensTransfersTransactionByTransactionHashInfiniteOptions = (options
|
|
|
446
459
|
{
|
|
447
460
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
448
461
|
// @ts-ignore
|
|
449
|
-
const page = typeof pageParam ===
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
462
|
+
const page = typeof pageParam === "object"
|
|
463
|
+
? pageParam
|
|
464
|
+
: {
|
|
465
|
+
query: {
|
|
466
|
+
page: pageParam,
|
|
467
|
+
},
|
|
468
|
+
};
|
|
454
469
|
const params = createInfiniteParams(queryKey, page);
|
|
455
470
|
const { data } = await (0, sdk_gen_1.getV1TokensTransfersTransactionByTransactionHash)({
|
|
456
471
|
...options,
|
|
457
472
|
...params,
|
|
458
473
|
signal,
|
|
459
|
-
throwOnError: true
|
|
474
|
+
throwOnError: true,
|
|
460
475
|
});
|
|
461
476
|
return data;
|
|
462
477
|
},
|
|
463
|
-
queryKey: (0, exports.getV1TokensTransfersTransactionByTransactionHashInfiniteQueryKey)(options)
|
|
478
|
+
queryKey: (0, exports.getV1TokensTransfersTransactionByTransactionHashInfiniteQueryKey)(options),
|
|
464
479
|
});
|
|
465
480
|
};
|
|
466
481
|
exports.getV1TokensTransfersTransactionByTransactionHashInfiniteOptions = getV1TokensTransfersTransactionByTransactionHashInfiniteOptions;
|
|
467
|
-
const getV1TokensTransfersByContractAddressQueryKey = (options) => createQueryKey(
|
|
482
|
+
const getV1TokensTransfersByContractAddressQueryKey = (options) => createQueryKey("getV1TokensTransfersByContractAddress", options);
|
|
468
483
|
exports.getV1TokensTransfersByContractAddressQueryKey = getV1TokensTransfersByContractAddressQueryKey;
|
|
469
484
|
const getV1TokensTransfersByContractAddressOptions = (options) => {
|
|
470
485
|
return (0, react_query_1.queryOptions)({
|
|
@@ -473,15 +488,15 @@ const getV1TokensTransfersByContractAddressOptions = (options) => {
|
|
|
473
488
|
...options,
|
|
474
489
|
...queryKey[0],
|
|
475
490
|
signal,
|
|
476
|
-
throwOnError: true
|
|
491
|
+
throwOnError: true,
|
|
477
492
|
});
|
|
478
493
|
return data;
|
|
479
494
|
},
|
|
480
|
-
queryKey: (0, exports.getV1TokensTransfersByContractAddressQueryKey)(options)
|
|
495
|
+
queryKey: (0, exports.getV1TokensTransfersByContractAddressQueryKey)(options),
|
|
481
496
|
});
|
|
482
497
|
};
|
|
483
498
|
exports.getV1TokensTransfersByContractAddressOptions = getV1TokensTransfersByContractAddressOptions;
|
|
484
|
-
const getV1TokensTransfersByContractAddressInfiniteQueryKey = (options) => createQueryKey(
|
|
499
|
+
const getV1TokensTransfersByContractAddressInfiniteQueryKey = (options) => createQueryKey("getV1TokensTransfersByContractAddress", options, true);
|
|
485
500
|
exports.getV1TokensTransfersByContractAddressInfiniteQueryKey = getV1TokensTransfersByContractAddressInfiniteQueryKey;
|
|
486
501
|
const getV1TokensTransfersByContractAddressInfiniteOptions = (options) => {
|
|
487
502
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -489,25 +504,27 @@ const getV1TokensTransfersByContractAddressInfiniteOptions = (options) => {
|
|
|
489
504
|
{
|
|
490
505
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
491
506
|
// @ts-ignore
|
|
492
|
-
const page = typeof pageParam ===
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
507
|
+
const page = typeof pageParam === "object"
|
|
508
|
+
? pageParam
|
|
509
|
+
: {
|
|
510
|
+
query: {
|
|
511
|
+
page: pageParam,
|
|
512
|
+
},
|
|
513
|
+
};
|
|
497
514
|
const params = createInfiniteParams(queryKey, page);
|
|
498
515
|
const { data } = await (0, sdk_gen_1.getV1TokensTransfersByContractAddress)({
|
|
499
516
|
...options,
|
|
500
517
|
...params,
|
|
501
518
|
signal,
|
|
502
|
-
throwOnError: true
|
|
519
|
+
throwOnError: true,
|
|
503
520
|
});
|
|
504
521
|
return data;
|
|
505
522
|
},
|
|
506
|
-
queryKey: (0, exports.getV1TokensTransfersByContractAddressInfiniteQueryKey)(options)
|
|
523
|
+
queryKey: (0, exports.getV1TokensTransfersByContractAddressInfiniteQueryKey)(options),
|
|
507
524
|
});
|
|
508
525
|
};
|
|
509
526
|
exports.getV1TokensTransfersByContractAddressInfiniteOptions = getV1TokensTransfersByContractAddressInfiniteOptions;
|
|
510
|
-
const getV1TokensTransfersQueryKey = (options) => createQueryKey(
|
|
527
|
+
const getV1TokensTransfersQueryKey = (options) => createQueryKey("getV1TokensTransfers", options);
|
|
511
528
|
exports.getV1TokensTransfersQueryKey = getV1TokensTransfersQueryKey;
|
|
512
529
|
const getV1TokensTransfersOptions = (options) => {
|
|
513
530
|
return (0, react_query_1.queryOptions)({
|
|
@@ -516,15 +533,15 @@ const getV1TokensTransfersOptions = (options) => {
|
|
|
516
533
|
...options,
|
|
517
534
|
...queryKey[0],
|
|
518
535
|
signal,
|
|
519
|
-
throwOnError: true
|
|
536
|
+
throwOnError: true,
|
|
520
537
|
});
|
|
521
538
|
return data;
|
|
522
539
|
},
|
|
523
|
-
queryKey: (0, exports.getV1TokensTransfersQueryKey)(options)
|
|
540
|
+
queryKey: (0, exports.getV1TokensTransfersQueryKey)(options),
|
|
524
541
|
});
|
|
525
542
|
};
|
|
526
543
|
exports.getV1TokensTransfersOptions = getV1TokensTransfersOptions;
|
|
527
|
-
const getV1TokensTransfersInfiniteQueryKey = (options) => createQueryKey(
|
|
544
|
+
const getV1TokensTransfersInfiniteQueryKey = (options) => createQueryKey("getV1TokensTransfers", options, true);
|
|
528
545
|
exports.getV1TokensTransfersInfiniteQueryKey = getV1TokensTransfersInfiniteQueryKey;
|
|
529
546
|
const getV1TokensTransfersInfiniteOptions = (options) => {
|
|
530
547
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -532,25 +549,27 @@ const getV1TokensTransfersInfiniteOptions = (options) => {
|
|
|
532
549
|
{
|
|
533
550
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
534
551
|
// @ts-ignore
|
|
535
|
-
const page = typeof pageParam ===
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
552
|
+
const page = typeof pageParam === "object"
|
|
553
|
+
? pageParam
|
|
554
|
+
: {
|
|
555
|
+
query: {
|
|
556
|
+
page: pageParam,
|
|
557
|
+
},
|
|
558
|
+
};
|
|
540
559
|
const params = createInfiniteParams(queryKey, page);
|
|
541
560
|
const { data } = await (0, sdk_gen_1.getV1TokensTransfers)({
|
|
542
561
|
...options,
|
|
543
562
|
...params,
|
|
544
563
|
signal,
|
|
545
|
-
throwOnError: true
|
|
564
|
+
throwOnError: true,
|
|
546
565
|
});
|
|
547
566
|
return data;
|
|
548
567
|
},
|
|
549
|
-
queryKey: (0, exports.getV1TokensTransfersInfiniteQueryKey)(options)
|
|
568
|
+
queryKey: (0, exports.getV1TokensTransfersInfiniteQueryKey)(options),
|
|
550
569
|
});
|
|
551
570
|
};
|
|
552
571
|
exports.getV1TokensTransfersInfiniteOptions = getV1TokensTransfersInfiniteOptions;
|
|
553
|
-
const getV1TokensErc20ByOwnerAddressQueryKey = (options) => createQueryKey(
|
|
572
|
+
const getV1TokensErc20ByOwnerAddressQueryKey = (options) => createQueryKey("getV1TokensErc20ByOwnerAddress", options);
|
|
554
573
|
exports.getV1TokensErc20ByOwnerAddressQueryKey = getV1TokensErc20ByOwnerAddressQueryKey;
|
|
555
574
|
const getV1TokensErc20ByOwnerAddressOptions = (options) => {
|
|
556
575
|
return (0, react_query_1.queryOptions)({
|
|
@@ -559,15 +578,15 @@ const getV1TokensErc20ByOwnerAddressOptions = (options) => {
|
|
|
559
578
|
...options,
|
|
560
579
|
...queryKey[0],
|
|
561
580
|
signal,
|
|
562
|
-
throwOnError: true
|
|
581
|
+
throwOnError: true,
|
|
563
582
|
});
|
|
564
583
|
return data;
|
|
565
584
|
},
|
|
566
|
-
queryKey: (0, exports.getV1TokensErc20ByOwnerAddressQueryKey)(options)
|
|
585
|
+
queryKey: (0, exports.getV1TokensErc20ByOwnerAddressQueryKey)(options),
|
|
567
586
|
});
|
|
568
587
|
};
|
|
569
588
|
exports.getV1TokensErc20ByOwnerAddressOptions = getV1TokensErc20ByOwnerAddressOptions;
|
|
570
|
-
const getV1TokensErc20ByOwnerAddressInfiniteQueryKey = (options) => createQueryKey(
|
|
589
|
+
const getV1TokensErc20ByOwnerAddressInfiniteQueryKey = (options) => createQueryKey("getV1TokensErc20ByOwnerAddress", options, true);
|
|
571
590
|
exports.getV1TokensErc20ByOwnerAddressInfiniteQueryKey = getV1TokensErc20ByOwnerAddressInfiniteQueryKey;
|
|
572
591
|
const getV1TokensErc20ByOwnerAddressInfiniteOptions = (options) => {
|
|
573
592
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -575,25 +594,27 @@ const getV1TokensErc20ByOwnerAddressInfiniteOptions = (options) => {
|
|
|
575
594
|
{
|
|
576
595
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
577
596
|
// @ts-ignore
|
|
578
|
-
const page = typeof pageParam ===
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
597
|
+
const page = typeof pageParam === "object"
|
|
598
|
+
? pageParam
|
|
599
|
+
: {
|
|
600
|
+
query: {
|
|
601
|
+
page: pageParam,
|
|
602
|
+
},
|
|
603
|
+
};
|
|
583
604
|
const params = createInfiniteParams(queryKey, page);
|
|
584
605
|
const { data } = await (0, sdk_gen_1.getV1TokensErc20ByOwnerAddress)({
|
|
585
606
|
...options,
|
|
586
607
|
...params,
|
|
587
608
|
signal,
|
|
588
|
-
throwOnError: true
|
|
609
|
+
throwOnError: true,
|
|
589
610
|
});
|
|
590
611
|
return data;
|
|
591
612
|
},
|
|
592
|
-
queryKey: (0, exports.getV1TokensErc20ByOwnerAddressInfiniteQueryKey)(options)
|
|
613
|
+
queryKey: (0, exports.getV1TokensErc20ByOwnerAddressInfiniteQueryKey)(options),
|
|
593
614
|
});
|
|
594
615
|
};
|
|
595
616
|
exports.getV1TokensErc20ByOwnerAddressInfiniteOptions = getV1TokensErc20ByOwnerAddressInfiniteOptions;
|
|
596
|
-
const getV1TokensErc721ByOwnerAddressQueryKey = (options) => createQueryKey(
|
|
617
|
+
const getV1TokensErc721ByOwnerAddressQueryKey = (options) => createQueryKey("getV1TokensErc721ByOwnerAddress", options);
|
|
597
618
|
exports.getV1TokensErc721ByOwnerAddressQueryKey = getV1TokensErc721ByOwnerAddressQueryKey;
|
|
598
619
|
const getV1TokensErc721ByOwnerAddressOptions = (options) => {
|
|
599
620
|
return (0, react_query_1.queryOptions)({
|
|
@@ -602,15 +623,15 @@ const getV1TokensErc721ByOwnerAddressOptions = (options) => {
|
|
|
602
623
|
...options,
|
|
603
624
|
...queryKey[0],
|
|
604
625
|
signal,
|
|
605
|
-
throwOnError: true
|
|
626
|
+
throwOnError: true,
|
|
606
627
|
});
|
|
607
628
|
return data;
|
|
608
629
|
},
|
|
609
|
-
queryKey: (0, exports.getV1TokensErc721ByOwnerAddressQueryKey)(options)
|
|
630
|
+
queryKey: (0, exports.getV1TokensErc721ByOwnerAddressQueryKey)(options),
|
|
610
631
|
});
|
|
611
632
|
};
|
|
612
633
|
exports.getV1TokensErc721ByOwnerAddressOptions = getV1TokensErc721ByOwnerAddressOptions;
|
|
613
|
-
const getV1TokensErc721ByOwnerAddressInfiniteQueryKey = (options) => createQueryKey(
|
|
634
|
+
const getV1TokensErc721ByOwnerAddressInfiniteQueryKey = (options) => createQueryKey("getV1TokensErc721ByOwnerAddress", options, true);
|
|
614
635
|
exports.getV1TokensErc721ByOwnerAddressInfiniteQueryKey = getV1TokensErc721ByOwnerAddressInfiniteQueryKey;
|
|
615
636
|
const getV1TokensErc721ByOwnerAddressInfiniteOptions = (options) => {
|
|
616
637
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -618,25 +639,27 @@ const getV1TokensErc721ByOwnerAddressInfiniteOptions = (options) => {
|
|
|
618
639
|
{
|
|
619
640
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
620
641
|
// @ts-ignore
|
|
621
|
-
const page = typeof pageParam ===
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
642
|
+
const page = typeof pageParam === "object"
|
|
643
|
+
? pageParam
|
|
644
|
+
: {
|
|
645
|
+
query: {
|
|
646
|
+
page: pageParam,
|
|
647
|
+
},
|
|
648
|
+
};
|
|
626
649
|
const params = createInfiniteParams(queryKey, page);
|
|
627
650
|
const { data } = await (0, sdk_gen_1.getV1TokensErc721ByOwnerAddress)({
|
|
628
651
|
...options,
|
|
629
652
|
...params,
|
|
630
653
|
signal,
|
|
631
|
-
throwOnError: true
|
|
654
|
+
throwOnError: true,
|
|
632
655
|
});
|
|
633
656
|
return data;
|
|
634
657
|
},
|
|
635
|
-
queryKey: (0, exports.getV1TokensErc721ByOwnerAddressInfiniteQueryKey)(options)
|
|
658
|
+
queryKey: (0, exports.getV1TokensErc721ByOwnerAddressInfiniteQueryKey)(options),
|
|
636
659
|
});
|
|
637
660
|
};
|
|
638
661
|
exports.getV1TokensErc721ByOwnerAddressInfiniteOptions = getV1TokensErc721ByOwnerAddressInfiniteOptions;
|
|
639
|
-
const getV1TokensErc1155ByOwnerAddressQueryKey = (options) => createQueryKey(
|
|
662
|
+
const getV1TokensErc1155ByOwnerAddressQueryKey = (options) => createQueryKey("getV1TokensErc1155ByOwnerAddress", options);
|
|
640
663
|
exports.getV1TokensErc1155ByOwnerAddressQueryKey = getV1TokensErc1155ByOwnerAddressQueryKey;
|
|
641
664
|
const getV1TokensErc1155ByOwnerAddressOptions = (options) => {
|
|
642
665
|
return (0, react_query_1.queryOptions)({
|
|
@@ -645,15 +668,15 @@ const getV1TokensErc1155ByOwnerAddressOptions = (options) => {
|
|
|
645
668
|
...options,
|
|
646
669
|
...queryKey[0],
|
|
647
670
|
signal,
|
|
648
|
-
throwOnError: true
|
|
671
|
+
throwOnError: true,
|
|
649
672
|
});
|
|
650
673
|
return data;
|
|
651
674
|
},
|
|
652
|
-
queryKey: (0, exports.getV1TokensErc1155ByOwnerAddressQueryKey)(options)
|
|
675
|
+
queryKey: (0, exports.getV1TokensErc1155ByOwnerAddressQueryKey)(options),
|
|
653
676
|
});
|
|
654
677
|
};
|
|
655
678
|
exports.getV1TokensErc1155ByOwnerAddressOptions = getV1TokensErc1155ByOwnerAddressOptions;
|
|
656
|
-
const getV1TokensErc1155ByOwnerAddressInfiniteQueryKey = (options) => createQueryKey(
|
|
679
|
+
const getV1TokensErc1155ByOwnerAddressInfiniteQueryKey = (options) => createQueryKey("getV1TokensErc1155ByOwnerAddress", options, true);
|
|
657
680
|
exports.getV1TokensErc1155ByOwnerAddressInfiniteQueryKey = getV1TokensErc1155ByOwnerAddressInfiniteQueryKey;
|
|
658
681
|
const getV1TokensErc1155ByOwnerAddressInfiniteOptions = (options) => {
|
|
659
682
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -661,25 +684,27 @@ const getV1TokensErc1155ByOwnerAddressInfiniteOptions = (options) => {
|
|
|
661
684
|
{
|
|
662
685
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
663
686
|
// @ts-ignore
|
|
664
|
-
const page = typeof pageParam ===
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
687
|
+
const page = typeof pageParam === "object"
|
|
688
|
+
? pageParam
|
|
689
|
+
: {
|
|
690
|
+
query: {
|
|
691
|
+
page: pageParam,
|
|
692
|
+
},
|
|
693
|
+
};
|
|
669
694
|
const params = createInfiniteParams(queryKey, page);
|
|
670
695
|
const { data } = await (0, sdk_gen_1.getV1TokensErc1155ByOwnerAddress)({
|
|
671
696
|
...options,
|
|
672
697
|
...params,
|
|
673
698
|
signal,
|
|
674
|
-
throwOnError: true
|
|
699
|
+
throwOnError: true,
|
|
675
700
|
});
|
|
676
701
|
return data;
|
|
677
702
|
},
|
|
678
|
-
queryKey: (0, exports.getV1TokensErc1155ByOwnerAddressInfiniteQueryKey)(options)
|
|
703
|
+
queryKey: (0, exports.getV1TokensErc1155ByOwnerAddressInfiniteQueryKey)(options),
|
|
679
704
|
});
|
|
680
705
|
};
|
|
681
706
|
exports.getV1TokensErc1155ByOwnerAddressInfiniteOptions = getV1TokensErc1155ByOwnerAddressInfiniteOptions;
|
|
682
|
-
const getV1TokensPriceSupportedQueryKey = (options) => createQueryKey(
|
|
707
|
+
const getV1TokensPriceSupportedQueryKey = (options) => createQueryKey("getV1TokensPriceSupported", options);
|
|
683
708
|
exports.getV1TokensPriceSupportedQueryKey = getV1TokensPriceSupportedQueryKey;
|
|
684
709
|
const getV1TokensPriceSupportedOptions = (options) => {
|
|
685
710
|
return (0, react_query_1.queryOptions)({
|
|
@@ -688,15 +713,15 @@ const getV1TokensPriceSupportedOptions = (options) => {
|
|
|
688
713
|
...options,
|
|
689
714
|
...queryKey[0],
|
|
690
715
|
signal,
|
|
691
|
-
throwOnError: true
|
|
716
|
+
throwOnError: true,
|
|
692
717
|
});
|
|
693
718
|
return data;
|
|
694
719
|
},
|
|
695
|
-
queryKey: (0, exports.getV1TokensPriceSupportedQueryKey)(options)
|
|
720
|
+
queryKey: (0, exports.getV1TokensPriceSupportedQueryKey)(options),
|
|
696
721
|
});
|
|
697
722
|
};
|
|
698
723
|
exports.getV1TokensPriceSupportedOptions = getV1TokensPriceSupportedOptions;
|
|
699
|
-
const getV1TokensPriceQueryKey = (options) => createQueryKey(
|
|
724
|
+
const getV1TokensPriceQueryKey = (options) => createQueryKey("getV1TokensPrice", options);
|
|
700
725
|
exports.getV1TokensPriceQueryKey = getV1TokensPriceQueryKey;
|
|
701
726
|
const getV1TokensPriceOptions = (options) => {
|
|
702
727
|
return (0, react_query_1.queryOptions)({
|
|
@@ -705,15 +730,15 @@ const getV1TokensPriceOptions = (options) => {
|
|
|
705
730
|
...options,
|
|
706
731
|
...queryKey[0],
|
|
707
732
|
signal,
|
|
708
|
-
throwOnError: true
|
|
733
|
+
throwOnError: true,
|
|
709
734
|
});
|
|
710
735
|
return data;
|
|
711
736
|
},
|
|
712
|
-
queryKey: (0, exports.getV1TokensPriceQueryKey)(options)
|
|
737
|
+
queryKey: (0, exports.getV1TokensPriceQueryKey)(options),
|
|
713
738
|
});
|
|
714
739
|
};
|
|
715
740
|
exports.getV1TokensPriceOptions = getV1TokensPriceOptions;
|
|
716
|
-
const getV1TokensLookupQueryKey = (options) => createQueryKey(
|
|
741
|
+
const getV1TokensLookupQueryKey = (options) => createQueryKey("getV1TokensLookup", options);
|
|
717
742
|
exports.getV1TokensLookupQueryKey = getV1TokensLookupQueryKey;
|
|
718
743
|
const getV1TokensLookupOptions = (options) => {
|
|
719
744
|
return (0, react_query_1.queryOptions)({
|
|
@@ -722,15 +747,15 @@ const getV1TokensLookupOptions = (options) => {
|
|
|
722
747
|
...options,
|
|
723
748
|
...queryKey[0],
|
|
724
749
|
signal,
|
|
725
|
-
throwOnError: true
|
|
750
|
+
throwOnError: true,
|
|
726
751
|
});
|
|
727
752
|
return data;
|
|
728
753
|
},
|
|
729
|
-
queryKey: (0, exports.getV1TokensLookupQueryKey)(options)
|
|
754
|
+
queryKey: (0, exports.getV1TokensLookupQueryKey)(options),
|
|
730
755
|
});
|
|
731
756
|
};
|
|
732
757
|
exports.getV1TokensLookupOptions = getV1TokensLookupOptions;
|
|
733
|
-
const getV1ResolveByInputQueryKey = (options) => createQueryKey(
|
|
758
|
+
const getV1ResolveByInputQueryKey = (options) => createQueryKey("getV1ResolveByInput", options);
|
|
734
759
|
exports.getV1ResolveByInputQueryKey = getV1ResolveByInputQueryKey;
|
|
735
760
|
const getV1ResolveByInputOptions = (options) => {
|
|
736
761
|
return (0, react_query_1.queryOptions)({
|
|
@@ -739,15 +764,15 @@ const getV1ResolveByInputOptions = (options) => {
|
|
|
739
764
|
...options,
|
|
740
765
|
...queryKey[0],
|
|
741
766
|
signal,
|
|
742
|
-
throwOnError: true
|
|
767
|
+
throwOnError: true,
|
|
743
768
|
});
|
|
744
769
|
return data;
|
|
745
770
|
},
|
|
746
|
-
queryKey: (0, exports.getV1ResolveByInputQueryKey)(options)
|
|
771
|
+
queryKey: (0, exports.getV1ResolveByInputQueryKey)(options),
|
|
747
772
|
});
|
|
748
773
|
};
|
|
749
774
|
exports.getV1ResolveByInputOptions = getV1ResolveByInputOptions;
|
|
750
|
-
const getV1BlocksQueryKey = (options) => createQueryKey(
|
|
775
|
+
const getV1BlocksQueryKey = (options) => createQueryKey("getV1Blocks", options);
|
|
751
776
|
exports.getV1BlocksQueryKey = getV1BlocksQueryKey;
|
|
752
777
|
const getV1BlocksOptions = (options) => {
|
|
753
778
|
return (0, react_query_1.queryOptions)({
|
|
@@ -756,15 +781,15 @@ const getV1BlocksOptions = (options) => {
|
|
|
756
781
|
...options,
|
|
757
782
|
...queryKey[0],
|
|
758
783
|
signal,
|
|
759
|
-
throwOnError: true
|
|
784
|
+
throwOnError: true,
|
|
760
785
|
});
|
|
761
786
|
return data;
|
|
762
787
|
},
|
|
763
|
-
queryKey: (0, exports.getV1BlocksQueryKey)(options)
|
|
788
|
+
queryKey: (0, exports.getV1BlocksQueryKey)(options),
|
|
764
789
|
});
|
|
765
790
|
};
|
|
766
791
|
exports.getV1BlocksOptions = getV1BlocksOptions;
|
|
767
|
-
const getV1BlocksInfiniteQueryKey = (options) => createQueryKey(
|
|
792
|
+
const getV1BlocksInfiniteQueryKey = (options) => createQueryKey("getV1Blocks", options, true);
|
|
768
793
|
exports.getV1BlocksInfiniteQueryKey = getV1BlocksInfiniteQueryKey;
|
|
769
794
|
const getV1BlocksInfiniteOptions = (options) => {
|
|
770
795
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -772,25 +797,27 @@ const getV1BlocksInfiniteOptions = (options) => {
|
|
|
772
797
|
{
|
|
773
798
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
774
799
|
// @ts-ignore
|
|
775
|
-
const page = typeof pageParam ===
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
800
|
+
const page = typeof pageParam === "object"
|
|
801
|
+
? pageParam
|
|
802
|
+
: {
|
|
803
|
+
query: {
|
|
804
|
+
page: pageParam,
|
|
805
|
+
},
|
|
806
|
+
};
|
|
780
807
|
const params = createInfiniteParams(queryKey, page);
|
|
781
808
|
const { data } = await (0, sdk_gen_1.getV1Blocks)({
|
|
782
809
|
...options,
|
|
783
810
|
...params,
|
|
784
811
|
signal,
|
|
785
|
-
throwOnError: true
|
|
812
|
+
throwOnError: true,
|
|
786
813
|
});
|
|
787
814
|
return data;
|
|
788
815
|
},
|
|
789
|
-
queryKey: (0, exports.getV1BlocksInfiniteQueryKey)(options)
|
|
816
|
+
queryKey: (0, exports.getV1BlocksInfiniteQueryKey)(options),
|
|
790
817
|
});
|
|
791
818
|
};
|
|
792
819
|
exports.getV1BlocksInfiniteOptions = getV1BlocksInfiniteOptions;
|
|
793
|
-
const getV1ContractsAbiByContractAddressQueryKey = (options) => createQueryKey(
|
|
820
|
+
const getV1ContractsAbiByContractAddressQueryKey = (options) => createQueryKey("getV1ContractsAbiByContractAddress", options);
|
|
794
821
|
exports.getV1ContractsAbiByContractAddressQueryKey = getV1ContractsAbiByContractAddressQueryKey;
|
|
795
822
|
const getV1ContractsAbiByContractAddressOptions = (options) => {
|
|
796
823
|
return (0, react_query_1.queryOptions)({
|
|
@@ -799,15 +826,15 @@ const getV1ContractsAbiByContractAddressOptions = (options) => {
|
|
|
799
826
|
...options,
|
|
800
827
|
...queryKey[0],
|
|
801
828
|
signal,
|
|
802
|
-
throwOnError: true
|
|
829
|
+
throwOnError: true,
|
|
803
830
|
});
|
|
804
831
|
return data;
|
|
805
832
|
},
|
|
806
|
-
queryKey: (0, exports.getV1ContractsAbiByContractAddressQueryKey)(options)
|
|
833
|
+
queryKey: (0, exports.getV1ContractsAbiByContractAddressQueryKey)(options),
|
|
807
834
|
});
|
|
808
835
|
};
|
|
809
836
|
exports.getV1ContractsAbiByContractAddressOptions = getV1ContractsAbiByContractAddressOptions;
|
|
810
|
-
const getV1ContractsMetadataByContractAddressQueryKey = (options) => createQueryKey(
|
|
837
|
+
const getV1ContractsMetadataByContractAddressQueryKey = (options) => createQueryKey("getV1ContractsMetadataByContractAddress", options);
|
|
811
838
|
exports.getV1ContractsMetadataByContractAddressQueryKey = getV1ContractsMetadataByContractAddressQueryKey;
|
|
812
839
|
const getV1ContractsMetadataByContractAddressOptions = (options) => {
|
|
813
840
|
return (0, react_query_1.queryOptions)({
|
|
@@ -816,15 +843,15 @@ const getV1ContractsMetadataByContractAddressOptions = (options) => {
|
|
|
816
843
|
...options,
|
|
817
844
|
...queryKey[0],
|
|
818
845
|
signal,
|
|
819
|
-
throwOnError: true
|
|
846
|
+
throwOnError: true,
|
|
820
847
|
});
|
|
821
848
|
return data;
|
|
822
849
|
},
|
|
823
|
-
queryKey: (0, exports.getV1ContractsMetadataByContractAddressQueryKey)(options)
|
|
850
|
+
queryKey: (0, exports.getV1ContractsMetadataByContractAddressQueryKey)(options),
|
|
824
851
|
});
|
|
825
852
|
};
|
|
826
853
|
exports.getV1ContractsMetadataByContractAddressOptions = getV1ContractsMetadataByContractAddressOptions;
|
|
827
|
-
const postV1DecodeByContractAddressQueryKey = (options) => createQueryKey(
|
|
854
|
+
const postV1DecodeByContractAddressQueryKey = (options) => createQueryKey("postV1DecodeByContractAddress", options);
|
|
828
855
|
exports.postV1DecodeByContractAddressQueryKey = postV1DecodeByContractAddressQueryKey;
|
|
829
856
|
const postV1DecodeByContractAddressOptions = (options) => {
|
|
830
857
|
return (0, react_query_1.queryOptions)({
|
|
@@ -833,11 +860,11 @@ const postV1DecodeByContractAddressOptions = (options) => {
|
|
|
833
860
|
...options,
|
|
834
861
|
...queryKey[0],
|
|
835
862
|
signal,
|
|
836
|
-
throwOnError: true
|
|
863
|
+
throwOnError: true,
|
|
837
864
|
});
|
|
838
865
|
return data;
|
|
839
866
|
},
|
|
840
|
-
queryKey: (0, exports.postV1DecodeByContractAddressQueryKey)(options)
|
|
867
|
+
queryKey: (0, exports.postV1DecodeByContractAddressQueryKey)(options),
|
|
841
868
|
});
|
|
842
869
|
};
|
|
843
870
|
exports.postV1DecodeByContractAddressOptions = postV1DecodeByContractAddressOptions;
|
|
@@ -847,15 +874,15 @@ const postV1DecodeByContractAddressMutation = (options) => {
|
|
|
847
874
|
const { data } = await (0, sdk_gen_1.postV1DecodeByContractAddress)({
|
|
848
875
|
...options,
|
|
849
876
|
...localOptions,
|
|
850
|
-
throwOnError: true
|
|
877
|
+
throwOnError: true,
|
|
851
878
|
});
|
|
852
879
|
return data;
|
|
853
|
-
}
|
|
880
|
+
},
|
|
854
881
|
};
|
|
855
882
|
return mutationOptions;
|
|
856
883
|
};
|
|
857
884
|
exports.postV1DecodeByContractAddressMutation = postV1DecodeByContractAddressMutation;
|
|
858
|
-
const getV1NftsBalanceByOwnerAddressQueryKey = (options) => createQueryKey(
|
|
885
|
+
const getV1NftsBalanceByOwnerAddressQueryKey = (options) => createQueryKey("getV1NftsBalanceByOwnerAddress", options);
|
|
859
886
|
exports.getV1NftsBalanceByOwnerAddressQueryKey = getV1NftsBalanceByOwnerAddressQueryKey;
|
|
860
887
|
const getV1NftsBalanceByOwnerAddressOptions = (options) => {
|
|
861
888
|
return (0, react_query_1.queryOptions)({
|
|
@@ -864,15 +891,15 @@ const getV1NftsBalanceByOwnerAddressOptions = (options) => {
|
|
|
864
891
|
...options,
|
|
865
892
|
...queryKey[0],
|
|
866
893
|
signal,
|
|
867
|
-
throwOnError: true
|
|
894
|
+
throwOnError: true,
|
|
868
895
|
});
|
|
869
896
|
return data;
|
|
870
897
|
},
|
|
871
|
-
queryKey: (0, exports.getV1NftsBalanceByOwnerAddressQueryKey)(options)
|
|
898
|
+
queryKey: (0, exports.getV1NftsBalanceByOwnerAddressQueryKey)(options),
|
|
872
899
|
});
|
|
873
900
|
};
|
|
874
901
|
exports.getV1NftsBalanceByOwnerAddressOptions = getV1NftsBalanceByOwnerAddressOptions;
|
|
875
|
-
const getV1NftsBalanceByOwnerAddressInfiniteQueryKey = (options) => createQueryKey(
|
|
902
|
+
const getV1NftsBalanceByOwnerAddressInfiniteQueryKey = (options) => createQueryKey("getV1NftsBalanceByOwnerAddress", options, true);
|
|
876
903
|
exports.getV1NftsBalanceByOwnerAddressInfiniteQueryKey = getV1NftsBalanceByOwnerAddressInfiniteQueryKey;
|
|
877
904
|
const getV1NftsBalanceByOwnerAddressInfiniteOptions = (options) => {
|
|
878
905
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -880,25 +907,27 @@ const getV1NftsBalanceByOwnerAddressInfiniteOptions = (options) => {
|
|
|
880
907
|
{
|
|
881
908
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
882
909
|
// @ts-ignore
|
|
883
|
-
const page = typeof pageParam ===
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
910
|
+
const page = typeof pageParam === "object"
|
|
911
|
+
? pageParam
|
|
912
|
+
: {
|
|
913
|
+
query: {
|
|
914
|
+
page: pageParam,
|
|
915
|
+
},
|
|
916
|
+
};
|
|
888
917
|
const params = createInfiniteParams(queryKey, page);
|
|
889
918
|
const { data } = await (0, sdk_gen_1.getV1NftsBalanceByOwnerAddress)({
|
|
890
919
|
...options,
|
|
891
920
|
...params,
|
|
892
921
|
signal,
|
|
893
|
-
throwOnError: true
|
|
922
|
+
throwOnError: true,
|
|
894
923
|
});
|
|
895
924
|
return data;
|
|
896
925
|
},
|
|
897
|
-
queryKey: (0, exports.getV1NftsBalanceByOwnerAddressInfiniteQueryKey)(options)
|
|
926
|
+
queryKey: (0, exports.getV1NftsBalanceByOwnerAddressInfiniteQueryKey)(options),
|
|
898
927
|
});
|
|
899
928
|
};
|
|
900
929
|
exports.getV1NftsBalanceByOwnerAddressInfiniteOptions = getV1NftsBalanceByOwnerAddressInfiniteOptions;
|
|
901
|
-
const getV1NftsCollectionsByContractAddressQueryKey = (options) => createQueryKey(
|
|
930
|
+
const getV1NftsCollectionsByContractAddressQueryKey = (options) => createQueryKey("getV1NftsCollectionsByContractAddress", options);
|
|
902
931
|
exports.getV1NftsCollectionsByContractAddressQueryKey = getV1NftsCollectionsByContractAddressQueryKey;
|
|
903
932
|
const getV1NftsCollectionsByContractAddressOptions = (options) => {
|
|
904
933
|
return (0, react_query_1.queryOptions)({
|
|
@@ -907,15 +936,15 @@ const getV1NftsCollectionsByContractAddressOptions = (options) => {
|
|
|
907
936
|
...options,
|
|
908
937
|
...queryKey[0],
|
|
909
938
|
signal,
|
|
910
|
-
throwOnError: true
|
|
939
|
+
throwOnError: true,
|
|
911
940
|
});
|
|
912
941
|
return data;
|
|
913
942
|
},
|
|
914
|
-
queryKey: (0, exports.getV1NftsCollectionsByContractAddressQueryKey)(options)
|
|
943
|
+
queryKey: (0, exports.getV1NftsCollectionsByContractAddressQueryKey)(options),
|
|
915
944
|
});
|
|
916
945
|
};
|
|
917
946
|
exports.getV1NftsCollectionsByContractAddressOptions = getV1NftsCollectionsByContractAddressOptions;
|
|
918
|
-
const getV1NftsQueryKey = (options) => createQueryKey(
|
|
947
|
+
const getV1NftsQueryKey = (options) => createQueryKey("getV1Nfts", options);
|
|
919
948
|
exports.getV1NftsQueryKey = getV1NftsQueryKey;
|
|
920
949
|
const getV1NftsOptions = (options) => {
|
|
921
950
|
return (0, react_query_1.queryOptions)({
|
|
@@ -924,15 +953,15 @@ const getV1NftsOptions = (options) => {
|
|
|
924
953
|
...options,
|
|
925
954
|
...queryKey[0],
|
|
926
955
|
signal,
|
|
927
|
-
throwOnError: true
|
|
956
|
+
throwOnError: true,
|
|
928
957
|
});
|
|
929
958
|
return data;
|
|
930
959
|
},
|
|
931
|
-
queryKey: (0, exports.getV1NftsQueryKey)(options)
|
|
960
|
+
queryKey: (0, exports.getV1NftsQueryKey)(options),
|
|
932
961
|
});
|
|
933
962
|
};
|
|
934
963
|
exports.getV1NftsOptions = getV1NftsOptions;
|
|
935
|
-
const getV1NftsInfiniteQueryKey = (options) => createQueryKey(
|
|
964
|
+
const getV1NftsInfiniteQueryKey = (options) => createQueryKey("getV1Nfts", options, true);
|
|
936
965
|
exports.getV1NftsInfiniteQueryKey = getV1NftsInfiniteQueryKey;
|
|
937
966
|
const getV1NftsInfiniteOptions = (options) => {
|
|
938
967
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -940,25 +969,27 @@ const getV1NftsInfiniteOptions = (options) => {
|
|
|
940
969
|
{
|
|
941
970
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
942
971
|
// @ts-ignore
|
|
943
|
-
const page = typeof pageParam ===
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
972
|
+
const page = typeof pageParam === "object"
|
|
973
|
+
? pageParam
|
|
974
|
+
: {
|
|
975
|
+
query: {
|
|
976
|
+
page: pageParam,
|
|
977
|
+
},
|
|
978
|
+
};
|
|
948
979
|
const params = createInfiniteParams(queryKey, page);
|
|
949
980
|
const { data } = await (0, sdk_gen_1.getV1Nfts)({
|
|
950
981
|
...options,
|
|
951
982
|
...params,
|
|
952
983
|
signal,
|
|
953
|
-
throwOnError: true
|
|
984
|
+
throwOnError: true,
|
|
954
985
|
});
|
|
955
986
|
return data;
|
|
956
987
|
},
|
|
957
|
-
queryKey: (0, exports.getV1NftsInfiniteQueryKey)(options)
|
|
988
|
+
queryKey: (0, exports.getV1NftsInfiniteQueryKey)(options),
|
|
958
989
|
});
|
|
959
990
|
};
|
|
960
991
|
exports.getV1NftsInfiniteOptions = getV1NftsInfiniteOptions;
|
|
961
|
-
const getV1NftsOwnersByContractAddressQueryKey = (options) => createQueryKey(
|
|
992
|
+
const getV1NftsOwnersByContractAddressQueryKey = (options) => createQueryKey("getV1NftsOwnersByContractAddress", options);
|
|
962
993
|
exports.getV1NftsOwnersByContractAddressQueryKey = getV1NftsOwnersByContractAddressQueryKey;
|
|
963
994
|
const getV1NftsOwnersByContractAddressOptions = (options) => {
|
|
964
995
|
return (0, react_query_1.queryOptions)({
|
|
@@ -967,15 +998,15 @@ const getV1NftsOwnersByContractAddressOptions = (options) => {
|
|
|
967
998
|
...options,
|
|
968
999
|
...queryKey[0],
|
|
969
1000
|
signal,
|
|
970
|
-
throwOnError: true
|
|
1001
|
+
throwOnError: true,
|
|
971
1002
|
});
|
|
972
1003
|
return data;
|
|
973
1004
|
},
|
|
974
|
-
queryKey: (0, exports.getV1NftsOwnersByContractAddressQueryKey)(options)
|
|
1005
|
+
queryKey: (0, exports.getV1NftsOwnersByContractAddressQueryKey)(options),
|
|
975
1006
|
});
|
|
976
1007
|
};
|
|
977
1008
|
exports.getV1NftsOwnersByContractAddressOptions = getV1NftsOwnersByContractAddressOptions;
|
|
978
|
-
const getV1NftsOwnersByContractAddressInfiniteQueryKey = (options) => createQueryKey(
|
|
1009
|
+
const getV1NftsOwnersByContractAddressInfiniteQueryKey = (options) => createQueryKey("getV1NftsOwnersByContractAddress", options, true);
|
|
979
1010
|
exports.getV1NftsOwnersByContractAddressInfiniteQueryKey = getV1NftsOwnersByContractAddressInfiniteQueryKey;
|
|
980
1011
|
const getV1NftsOwnersByContractAddressInfiniteOptions = (options) => {
|
|
981
1012
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -983,25 +1014,27 @@ const getV1NftsOwnersByContractAddressInfiniteOptions = (options) => {
|
|
|
983
1014
|
{
|
|
984
1015
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
985
1016
|
// @ts-ignore
|
|
986
|
-
const page = typeof pageParam ===
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
1017
|
+
const page = typeof pageParam === "object"
|
|
1018
|
+
? pageParam
|
|
1019
|
+
: {
|
|
1020
|
+
query: {
|
|
1021
|
+
page: pageParam,
|
|
1022
|
+
},
|
|
1023
|
+
};
|
|
991
1024
|
const params = createInfiniteParams(queryKey, page);
|
|
992
1025
|
const { data } = await (0, sdk_gen_1.getV1NftsOwnersByContractAddress)({
|
|
993
1026
|
...options,
|
|
994
1027
|
...params,
|
|
995
1028
|
signal,
|
|
996
|
-
throwOnError: true
|
|
1029
|
+
throwOnError: true,
|
|
997
1030
|
});
|
|
998
1031
|
return data;
|
|
999
1032
|
},
|
|
1000
|
-
queryKey: (0, exports.getV1NftsOwnersByContractAddressInfiniteQueryKey)(options)
|
|
1033
|
+
queryKey: (0, exports.getV1NftsOwnersByContractAddressInfiniteQueryKey)(options),
|
|
1001
1034
|
});
|
|
1002
1035
|
};
|
|
1003
1036
|
exports.getV1NftsOwnersByContractAddressInfiniteOptions = getV1NftsOwnersByContractAddressInfiniteOptions;
|
|
1004
|
-
const getV1NftsOwnersByContractAddressByTokenIdQueryKey = (options) => createQueryKey(
|
|
1037
|
+
const getV1NftsOwnersByContractAddressByTokenIdQueryKey = (options) => createQueryKey("getV1NftsOwnersByContractAddressByTokenId", options);
|
|
1005
1038
|
exports.getV1NftsOwnersByContractAddressByTokenIdQueryKey = getV1NftsOwnersByContractAddressByTokenIdQueryKey;
|
|
1006
1039
|
const getV1NftsOwnersByContractAddressByTokenIdOptions = (options) => {
|
|
1007
1040
|
return (0, react_query_1.queryOptions)({
|
|
@@ -1010,15 +1043,15 @@ const getV1NftsOwnersByContractAddressByTokenIdOptions = (options) => {
|
|
|
1010
1043
|
...options,
|
|
1011
1044
|
...queryKey[0],
|
|
1012
1045
|
signal,
|
|
1013
|
-
throwOnError: true
|
|
1046
|
+
throwOnError: true,
|
|
1014
1047
|
});
|
|
1015
1048
|
return data;
|
|
1016
1049
|
},
|
|
1017
|
-
queryKey: (0, exports.getV1NftsOwnersByContractAddressByTokenIdQueryKey)(options)
|
|
1050
|
+
queryKey: (0, exports.getV1NftsOwnersByContractAddressByTokenIdQueryKey)(options),
|
|
1018
1051
|
});
|
|
1019
1052
|
};
|
|
1020
1053
|
exports.getV1NftsOwnersByContractAddressByTokenIdOptions = getV1NftsOwnersByContractAddressByTokenIdOptions;
|
|
1021
|
-
const getV1NftsOwnersByContractAddressByTokenIdInfiniteQueryKey = (options) => createQueryKey(
|
|
1054
|
+
const getV1NftsOwnersByContractAddressByTokenIdInfiniteQueryKey = (options) => createQueryKey("getV1NftsOwnersByContractAddressByTokenId", options, true);
|
|
1022
1055
|
exports.getV1NftsOwnersByContractAddressByTokenIdInfiniteQueryKey = getV1NftsOwnersByContractAddressByTokenIdInfiniteQueryKey;
|
|
1023
1056
|
const getV1NftsOwnersByContractAddressByTokenIdInfiniteOptions = (options) => {
|
|
1024
1057
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -1026,25 +1059,27 @@ const getV1NftsOwnersByContractAddressByTokenIdInfiniteOptions = (options) => {
|
|
|
1026
1059
|
{
|
|
1027
1060
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1028
1061
|
// @ts-ignore
|
|
1029
|
-
const page = typeof pageParam ===
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1062
|
+
const page = typeof pageParam === "object"
|
|
1063
|
+
? pageParam
|
|
1064
|
+
: {
|
|
1065
|
+
query: {
|
|
1066
|
+
page: pageParam,
|
|
1067
|
+
},
|
|
1068
|
+
};
|
|
1034
1069
|
const params = createInfiniteParams(queryKey, page);
|
|
1035
1070
|
const { data } = await (0, sdk_gen_1.getV1NftsOwnersByContractAddressByTokenId)({
|
|
1036
1071
|
...options,
|
|
1037
1072
|
...params,
|
|
1038
1073
|
signal,
|
|
1039
|
-
throwOnError: true
|
|
1074
|
+
throwOnError: true,
|
|
1040
1075
|
});
|
|
1041
1076
|
return data;
|
|
1042
1077
|
},
|
|
1043
|
-
queryKey: (0, exports.getV1NftsOwnersByContractAddressByTokenIdInfiniteQueryKey)(options)
|
|
1078
|
+
queryKey: (0, exports.getV1NftsOwnersByContractAddressByTokenIdInfiniteQueryKey)(options),
|
|
1044
1079
|
});
|
|
1045
1080
|
};
|
|
1046
1081
|
exports.getV1NftsOwnersByContractAddressByTokenIdInfiniteOptions = getV1NftsOwnersByContractAddressByTokenIdInfiniteOptions;
|
|
1047
|
-
const getV1NftsTransfersQueryKey = (options) => createQueryKey(
|
|
1082
|
+
const getV1NftsTransfersQueryKey = (options) => createQueryKey("getV1NftsTransfers", options);
|
|
1048
1083
|
exports.getV1NftsTransfersQueryKey = getV1NftsTransfersQueryKey;
|
|
1049
1084
|
const getV1NftsTransfersOptions = (options) => {
|
|
1050
1085
|
return (0, react_query_1.queryOptions)({
|
|
@@ -1053,15 +1088,15 @@ const getV1NftsTransfersOptions = (options) => {
|
|
|
1053
1088
|
...options,
|
|
1054
1089
|
...queryKey[0],
|
|
1055
1090
|
signal,
|
|
1056
|
-
throwOnError: true
|
|
1091
|
+
throwOnError: true,
|
|
1057
1092
|
});
|
|
1058
1093
|
return data;
|
|
1059
1094
|
},
|
|
1060
|
-
queryKey: (0, exports.getV1NftsTransfersQueryKey)(options)
|
|
1095
|
+
queryKey: (0, exports.getV1NftsTransfersQueryKey)(options),
|
|
1061
1096
|
});
|
|
1062
1097
|
};
|
|
1063
1098
|
exports.getV1NftsTransfersOptions = getV1NftsTransfersOptions;
|
|
1064
|
-
const getV1NftsTransfersInfiniteQueryKey = (options) => createQueryKey(
|
|
1099
|
+
const getV1NftsTransfersInfiniteQueryKey = (options) => createQueryKey("getV1NftsTransfers", options, true);
|
|
1065
1100
|
exports.getV1NftsTransfersInfiniteQueryKey = getV1NftsTransfersInfiniteQueryKey;
|
|
1066
1101
|
const getV1NftsTransfersInfiniteOptions = (options) => {
|
|
1067
1102
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -1069,25 +1104,27 @@ const getV1NftsTransfersInfiniteOptions = (options) => {
|
|
|
1069
1104
|
{
|
|
1070
1105
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1071
1106
|
// @ts-ignore
|
|
1072
|
-
const page = typeof pageParam ===
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1107
|
+
const page = typeof pageParam === "object"
|
|
1108
|
+
? pageParam
|
|
1109
|
+
: {
|
|
1110
|
+
query: {
|
|
1111
|
+
page: pageParam,
|
|
1112
|
+
},
|
|
1113
|
+
};
|
|
1077
1114
|
const params = createInfiniteParams(queryKey, page);
|
|
1078
1115
|
const { data } = await (0, sdk_gen_1.getV1NftsTransfers)({
|
|
1079
1116
|
...options,
|
|
1080
1117
|
...params,
|
|
1081
1118
|
signal,
|
|
1082
|
-
throwOnError: true
|
|
1119
|
+
throwOnError: true,
|
|
1083
1120
|
});
|
|
1084
1121
|
return data;
|
|
1085
1122
|
},
|
|
1086
|
-
queryKey: (0, exports.getV1NftsTransfersInfiniteQueryKey)(options)
|
|
1123
|
+
queryKey: (0, exports.getV1NftsTransfersInfiniteQueryKey)(options),
|
|
1087
1124
|
});
|
|
1088
1125
|
};
|
|
1089
1126
|
exports.getV1NftsTransfersInfiniteOptions = getV1NftsTransfersInfiniteOptions;
|
|
1090
|
-
const getV1NftsTransfersTransactionByTransactionHashQueryKey = (options) => createQueryKey(
|
|
1127
|
+
const getV1NftsTransfersTransactionByTransactionHashQueryKey = (options) => createQueryKey("getV1NftsTransfersTransactionByTransactionHash", options);
|
|
1091
1128
|
exports.getV1NftsTransfersTransactionByTransactionHashQueryKey = getV1NftsTransfersTransactionByTransactionHashQueryKey;
|
|
1092
1129
|
const getV1NftsTransfersTransactionByTransactionHashOptions = (options) => {
|
|
1093
1130
|
return (0, react_query_1.queryOptions)({
|
|
@@ -1096,15 +1133,15 @@ const getV1NftsTransfersTransactionByTransactionHashOptions = (options) => {
|
|
|
1096
1133
|
...options,
|
|
1097
1134
|
...queryKey[0],
|
|
1098
1135
|
signal,
|
|
1099
|
-
throwOnError: true
|
|
1136
|
+
throwOnError: true,
|
|
1100
1137
|
});
|
|
1101
1138
|
return data;
|
|
1102
1139
|
},
|
|
1103
|
-
queryKey: (0, exports.getV1NftsTransfersTransactionByTransactionHashQueryKey)(options)
|
|
1140
|
+
queryKey: (0, exports.getV1NftsTransfersTransactionByTransactionHashQueryKey)(options),
|
|
1104
1141
|
});
|
|
1105
1142
|
};
|
|
1106
1143
|
exports.getV1NftsTransfersTransactionByTransactionHashOptions = getV1NftsTransfersTransactionByTransactionHashOptions;
|
|
1107
|
-
const getV1NftsTransfersTransactionByTransactionHashInfiniteQueryKey = (options) => createQueryKey(
|
|
1144
|
+
const getV1NftsTransfersTransactionByTransactionHashInfiniteQueryKey = (options) => createQueryKey("getV1NftsTransfersTransactionByTransactionHash", options, true);
|
|
1108
1145
|
exports.getV1NftsTransfersTransactionByTransactionHashInfiniteQueryKey = getV1NftsTransfersTransactionByTransactionHashInfiniteQueryKey;
|
|
1109
1146
|
const getV1NftsTransfersTransactionByTransactionHashInfiniteOptions = (options) => {
|
|
1110
1147
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -1112,25 +1149,27 @@ const getV1NftsTransfersTransactionByTransactionHashInfiniteOptions = (options)
|
|
|
1112
1149
|
{
|
|
1113
1150
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1114
1151
|
// @ts-ignore
|
|
1115
|
-
const page = typeof pageParam ===
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1152
|
+
const page = typeof pageParam === "object"
|
|
1153
|
+
? pageParam
|
|
1154
|
+
: {
|
|
1155
|
+
query: {
|
|
1156
|
+
page: pageParam,
|
|
1157
|
+
},
|
|
1158
|
+
};
|
|
1120
1159
|
const params = createInfiniteParams(queryKey, page);
|
|
1121
1160
|
const { data } = await (0, sdk_gen_1.getV1NftsTransfersTransactionByTransactionHash)({
|
|
1122
1161
|
...options,
|
|
1123
1162
|
...params,
|
|
1124
1163
|
signal,
|
|
1125
|
-
throwOnError: true
|
|
1164
|
+
throwOnError: true,
|
|
1126
1165
|
});
|
|
1127
1166
|
return data;
|
|
1128
1167
|
},
|
|
1129
|
-
queryKey: (0, exports.getV1NftsTransfersTransactionByTransactionHashInfiniteQueryKey)(options)
|
|
1168
|
+
queryKey: (0, exports.getV1NftsTransfersTransactionByTransactionHashInfiniteQueryKey)(options),
|
|
1130
1169
|
});
|
|
1131
1170
|
};
|
|
1132
1171
|
exports.getV1NftsTransfersTransactionByTransactionHashInfiniteOptions = getV1NftsTransfersTransactionByTransactionHashInfiniteOptions;
|
|
1133
|
-
const getV1NftsTransfersByContractAddressQueryKey = (options) => createQueryKey(
|
|
1172
|
+
const getV1NftsTransfersByContractAddressQueryKey = (options) => createQueryKey("getV1NftsTransfersByContractAddress", options);
|
|
1134
1173
|
exports.getV1NftsTransfersByContractAddressQueryKey = getV1NftsTransfersByContractAddressQueryKey;
|
|
1135
1174
|
const getV1NftsTransfersByContractAddressOptions = (options) => {
|
|
1136
1175
|
return (0, react_query_1.queryOptions)({
|
|
@@ -1139,15 +1178,15 @@ const getV1NftsTransfersByContractAddressOptions = (options) => {
|
|
|
1139
1178
|
...options,
|
|
1140
1179
|
...queryKey[0],
|
|
1141
1180
|
signal,
|
|
1142
|
-
throwOnError: true
|
|
1181
|
+
throwOnError: true,
|
|
1143
1182
|
});
|
|
1144
1183
|
return data;
|
|
1145
1184
|
},
|
|
1146
|
-
queryKey: (0, exports.getV1NftsTransfersByContractAddressQueryKey)(options)
|
|
1185
|
+
queryKey: (0, exports.getV1NftsTransfersByContractAddressQueryKey)(options),
|
|
1147
1186
|
});
|
|
1148
1187
|
};
|
|
1149
1188
|
exports.getV1NftsTransfersByContractAddressOptions = getV1NftsTransfersByContractAddressOptions;
|
|
1150
|
-
const getV1NftsTransfersByContractAddressInfiniteQueryKey = (options) => createQueryKey(
|
|
1189
|
+
const getV1NftsTransfersByContractAddressInfiniteQueryKey = (options) => createQueryKey("getV1NftsTransfersByContractAddress", options, true);
|
|
1151
1190
|
exports.getV1NftsTransfersByContractAddressInfiniteQueryKey = getV1NftsTransfersByContractAddressInfiniteQueryKey;
|
|
1152
1191
|
const getV1NftsTransfersByContractAddressInfiniteOptions = (options) => {
|
|
1153
1192
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -1155,25 +1194,27 @@ const getV1NftsTransfersByContractAddressInfiniteOptions = (options) => {
|
|
|
1155
1194
|
{
|
|
1156
1195
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1157
1196
|
// @ts-ignore
|
|
1158
|
-
const page = typeof pageParam ===
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1197
|
+
const page = typeof pageParam === "object"
|
|
1198
|
+
? pageParam
|
|
1199
|
+
: {
|
|
1200
|
+
query: {
|
|
1201
|
+
page: pageParam,
|
|
1202
|
+
},
|
|
1203
|
+
};
|
|
1163
1204
|
const params = createInfiniteParams(queryKey, page);
|
|
1164
1205
|
const { data } = await (0, sdk_gen_1.getV1NftsTransfersByContractAddress)({
|
|
1165
1206
|
...options,
|
|
1166
1207
|
...params,
|
|
1167
1208
|
signal,
|
|
1168
|
-
throwOnError: true
|
|
1209
|
+
throwOnError: true,
|
|
1169
1210
|
});
|
|
1170
1211
|
return data;
|
|
1171
1212
|
},
|
|
1172
|
-
queryKey: (0, exports.getV1NftsTransfersByContractAddressInfiniteQueryKey)(options)
|
|
1213
|
+
queryKey: (0, exports.getV1NftsTransfersByContractAddressInfiniteQueryKey)(options),
|
|
1173
1214
|
});
|
|
1174
1215
|
};
|
|
1175
1216
|
exports.getV1NftsTransfersByContractAddressInfiniteOptions = getV1NftsTransfersByContractAddressInfiniteOptions;
|
|
1176
|
-
const getV1NftsByContractAddressQueryKey = (options) => createQueryKey(
|
|
1217
|
+
const getV1NftsByContractAddressQueryKey = (options) => createQueryKey("getV1NftsByContractAddress", options);
|
|
1177
1218
|
exports.getV1NftsByContractAddressQueryKey = getV1NftsByContractAddressQueryKey;
|
|
1178
1219
|
const getV1NftsByContractAddressOptions = (options) => {
|
|
1179
1220
|
return (0, react_query_1.queryOptions)({
|
|
@@ -1182,15 +1223,15 @@ const getV1NftsByContractAddressOptions = (options) => {
|
|
|
1182
1223
|
...options,
|
|
1183
1224
|
...queryKey[0],
|
|
1184
1225
|
signal,
|
|
1185
|
-
throwOnError: true
|
|
1226
|
+
throwOnError: true,
|
|
1186
1227
|
});
|
|
1187
1228
|
return data;
|
|
1188
1229
|
},
|
|
1189
|
-
queryKey: (0, exports.getV1NftsByContractAddressQueryKey)(options)
|
|
1230
|
+
queryKey: (0, exports.getV1NftsByContractAddressQueryKey)(options),
|
|
1190
1231
|
});
|
|
1191
1232
|
};
|
|
1192
1233
|
exports.getV1NftsByContractAddressOptions = getV1NftsByContractAddressOptions;
|
|
1193
|
-
const getV1NftsByContractAddressInfiniteQueryKey = (options) => createQueryKey(
|
|
1234
|
+
const getV1NftsByContractAddressInfiniteQueryKey = (options) => createQueryKey("getV1NftsByContractAddress", options, true);
|
|
1194
1235
|
exports.getV1NftsByContractAddressInfiniteQueryKey = getV1NftsByContractAddressInfiniteQueryKey;
|
|
1195
1236
|
const getV1NftsByContractAddressInfiniteOptions = (options) => {
|
|
1196
1237
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -1198,25 +1239,27 @@ const getV1NftsByContractAddressInfiniteOptions = (options) => {
|
|
|
1198
1239
|
{
|
|
1199
1240
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1200
1241
|
// @ts-ignore
|
|
1201
|
-
const page = typeof pageParam ===
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1242
|
+
const page = typeof pageParam === "object"
|
|
1243
|
+
? pageParam
|
|
1244
|
+
: {
|
|
1245
|
+
query: {
|
|
1246
|
+
page: pageParam,
|
|
1247
|
+
},
|
|
1248
|
+
};
|
|
1206
1249
|
const params = createInfiniteParams(queryKey, page);
|
|
1207
1250
|
const { data } = await (0, sdk_gen_1.getV1NftsByContractAddress)({
|
|
1208
1251
|
...options,
|
|
1209
1252
|
...params,
|
|
1210
1253
|
signal,
|
|
1211
|
-
throwOnError: true
|
|
1254
|
+
throwOnError: true,
|
|
1212
1255
|
});
|
|
1213
1256
|
return data;
|
|
1214
1257
|
},
|
|
1215
|
-
queryKey: (0, exports.getV1NftsByContractAddressInfiniteQueryKey)(options)
|
|
1258
|
+
queryKey: (0, exports.getV1NftsByContractAddressInfiniteQueryKey)(options),
|
|
1216
1259
|
});
|
|
1217
1260
|
};
|
|
1218
1261
|
exports.getV1NftsByContractAddressInfiniteOptions = getV1NftsByContractAddressInfiniteOptions;
|
|
1219
|
-
const getV1NftsTransfersByContractAddressByTokenIdQueryKey = (options) => createQueryKey(
|
|
1262
|
+
const getV1NftsTransfersByContractAddressByTokenIdQueryKey = (options) => createQueryKey("getV1NftsTransfersByContractAddressByTokenId", options);
|
|
1220
1263
|
exports.getV1NftsTransfersByContractAddressByTokenIdQueryKey = getV1NftsTransfersByContractAddressByTokenIdQueryKey;
|
|
1221
1264
|
const getV1NftsTransfersByContractAddressByTokenIdOptions = (options) => {
|
|
1222
1265
|
return (0, react_query_1.queryOptions)({
|
|
@@ -1225,15 +1268,15 @@ const getV1NftsTransfersByContractAddressByTokenIdOptions = (options) => {
|
|
|
1225
1268
|
...options,
|
|
1226
1269
|
...queryKey[0],
|
|
1227
1270
|
signal,
|
|
1228
|
-
throwOnError: true
|
|
1271
|
+
throwOnError: true,
|
|
1229
1272
|
});
|
|
1230
1273
|
return data;
|
|
1231
1274
|
},
|
|
1232
|
-
queryKey: (0, exports.getV1NftsTransfersByContractAddressByTokenIdQueryKey)(options)
|
|
1275
|
+
queryKey: (0, exports.getV1NftsTransfersByContractAddressByTokenIdQueryKey)(options),
|
|
1233
1276
|
});
|
|
1234
1277
|
};
|
|
1235
1278
|
exports.getV1NftsTransfersByContractAddressByTokenIdOptions = getV1NftsTransfersByContractAddressByTokenIdOptions;
|
|
1236
|
-
const getV1NftsTransfersByContractAddressByTokenIdInfiniteQueryKey = (options) => createQueryKey(
|
|
1279
|
+
const getV1NftsTransfersByContractAddressByTokenIdInfiniteQueryKey = (options) => createQueryKey("getV1NftsTransfersByContractAddressByTokenId", options, true);
|
|
1237
1280
|
exports.getV1NftsTransfersByContractAddressByTokenIdInfiniteQueryKey = getV1NftsTransfersByContractAddressByTokenIdInfiniteQueryKey;
|
|
1238
1281
|
const getV1NftsTransfersByContractAddressByTokenIdInfiniteOptions = (options) => {
|
|
1239
1282
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -1241,25 +1284,27 @@ const getV1NftsTransfersByContractAddressByTokenIdInfiniteOptions = (options) =>
|
|
|
1241
1284
|
{
|
|
1242
1285
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1243
1286
|
// @ts-ignore
|
|
1244
|
-
const page = typeof pageParam ===
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1287
|
+
const page = typeof pageParam === "object"
|
|
1288
|
+
? pageParam
|
|
1289
|
+
: {
|
|
1290
|
+
query: {
|
|
1291
|
+
page: pageParam,
|
|
1292
|
+
},
|
|
1293
|
+
};
|
|
1249
1294
|
const params = createInfiniteParams(queryKey, page);
|
|
1250
1295
|
const { data } = await (0, sdk_gen_1.getV1NftsTransfersByContractAddressByTokenId)({
|
|
1251
1296
|
...options,
|
|
1252
1297
|
...params,
|
|
1253
1298
|
signal,
|
|
1254
|
-
throwOnError: true
|
|
1299
|
+
throwOnError: true,
|
|
1255
1300
|
});
|
|
1256
1301
|
return data;
|
|
1257
1302
|
},
|
|
1258
|
-
queryKey: (0, exports.getV1NftsTransfersByContractAddressByTokenIdInfiniteQueryKey)(options)
|
|
1303
|
+
queryKey: (0, exports.getV1NftsTransfersByContractAddressByTokenIdInfiniteQueryKey)(options),
|
|
1259
1304
|
});
|
|
1260
1305
|
};
|
|
1261
1306
|
exports.getV1NftsTransfersByContractAddressByTokenIdInfiniteOptions = getV1NftsTransfersByContractAddressByTokenIdInfiniteOptions;
|
|
1262
|
-
const getV1NftsByContractAddressByTokenIdQueryKey = (options) => createQueryKey(
|
|
1307
|
+
const getV1NftsByContractAddressByTokenIdQueryKey = (options) => createQueryKey("getV1NftsByContractAddressByTokenId", options);
|
|
1263
1308
|
exports.getV1NftsByContractAddressByTokenIdQueryKey = getV1NftsByContractAddressByTokenIdQueryKey;
|
|
1264
1309
|
const getV1NftsByContractAddressByTokenIdOptions = (options) => {
|
|
1265
1310
|
return (0, react_query_1.queryOptions)({
|
|
@@ -1268,15 +1313,15 @@ const getV1NftsByContractAddressByTokenIdOptions = (options) => {
|
|
|
1268
1313
|
...options,
|
|
1269
1314
|
...queryKey[0],
|
|
1270
1315
|
signal,
|
|
1271
|
-
throwOnError: true
|
|
1316
|
+
throwOnError: true,
|
|
1272
1317
|
});
|
|
1273
1318
|
return data;
|
|
1274
1319
|
},
|
|
1275
|
-
queryKey: (0, exports.getV1NftsByContractAddressByTokenIdQueryKey)(options)
|
|
1320
|
+
queryKey: (0, exports.getV1NftsByContractAddressByTokenIdQueryKey)(options),
|
|
1276
1321
|
});
|
|
1277
1322
|
};
|
|
1278
1323
|
exports.getV1NftsByContractAddressByTokenIdOptions = getV1NftsByContractAddressByTokenIdOptions;
|
|
1279
|
-
const getV1NftsMetadataRefreshByContractAddressQueryKey = (options) => createQueryKey(
|
|
1324
|
+
const getV1NftsMetadataRefreshByContractAddressQueryKey = (options) => createQueryKey("getV1NftsMetadataRefreshByContractAddress", options);
|
|
1280
1325
|
exports.getV1NftsMetadataRefreshByContractAddressQueryKey = getV1NftsMetadataRefreshByContractAddressQueryKey;
|
|
1281
1326
|
const getV1NftsMetadataRefreshByContractAddressOptions = (options) => {
|
|
1282
1327
|
return (0, react_query_1.queryOptions)({
|
|
@@ -1285,15 +1330,15 @@ const getV1NftsMetadataRefreshByContractAddressOptions = (options) => {
|
|
|
1285
1330
|
...options,
|
|
1286
1331
|
...queryKey[0],
|
|
1287
1332
|
signal,
|
|
1288
|
-
throwOnError: true
|
|
1333
|
+
throwOnError: true,
|
|
1289
1334
|
});
|
|
1290
1335
|
return data;
|
|
1291
1336
|
},
|
|
1292
|
-
queryKey: (0, exports.getV1NftsMetadataRefreshByContractAddressQueryKey)(options)
|
|
1337
|
+
queryKey: (0, exports.getV1NftsMetadataRefreshByContractAddressQueryKey)(options),
|
|
1293
1338
|
});
|
|
1294
1339
|
};
|
|
1295
1340
|
exports.getV1NftsMetadataRefreshByContractAddressOptions = getV1NftsMetadataRefreshByContractAddressOptions;
|
|
1296
|
-
const getV1NftsMetadataRefreshByContractAddressByTokenIdQueryKey = (options) => createQueryKey(
|
|
1341
|
+
const getV1NftsMetadataRefreshByContractAddressByTokenIdQueryKey = (options) => createQueryKey("getV1NftsMetadataRefreshByContractAddressByTokenId", options);
|
|
1297
1342
|
exports.getV1NftsMetadataRefreshByContractAddressByTokenIdQueryKey = getV1NftsMetadataRefreshByContractAddressByTokenIdQueryKey;
|
|
1298
1343
|
const getV1NftsMetadataRefreshByContractAddressByTokenIdOptions = (options) => {
|
|
1299
1344
|
return (0, react_query_1.queryOptions)({
|
|
@@ -1302,15 +1347,15 @@ const getV1NftsMetadataRefreshByContractAddressByTokenIdOptions = (options) => {
|
|
|
1302
1347
|
...options,
|
|
1303
1348
|
...queryKey[0],
|
|
1304
1349
|
signal,
|
|
1305
|
-
throwOnError: true
|
|
1350
|
+
throwOnError: true,
|
|
1306
1351
|
});
|
|
1307
1352
|
return data;
|
|
1308
1353
|
},
|
|
1309
|
-
queryKey: (0, exports.getV1NftsMetadataRefreshByContractAddressByTokenIdQueryKey)(options)
|
|
1354
|
+
queryKey: (0, exports.getV1NftsMetadataRefreshByContractAddressByTokenIdQueryKey)(options),
|
|
1310
1355
|
});
|
|
1311
1356
|
};
|
|
1312
1357
|
exports.getV1NftsMetadataRefreshByContractAddressByTokenIdOptions = getV1NftsMetadataRefreshByContractAddressByTokenIdOptions;
|
|
1313
|
-
const getV1WalletsByWalletAddressTransactionsQueryKey = (options) => createQueryKey(
|
|
1358
|
+
const getV1WalletsByWalletAddressTransactionsQueryKey = (options) => createQueryKey("getV1WalletsByWalletAddressTransactions", options);
|
|
1314
1359
|
exports.getV1WalletsByWalletAddressTransactionsQueryKey = getV1WalletsByWalletAddressTransactionsQueryKey;
|
|
1315
1360
|
const getV1WalletsByWalletAddressTransactionsOptions = (options) => {
|
|
1316
1361
|
return (0, react_query_1.queryOptions)({
|
|
@@ -1319,15 +1364,15 @@ const getV1WalletsByWalletAddressTransactionsOptions = (options) => {
|
|
|
1319
1364
|
...options,
|
|
1320
1365
|
...queryKey[0],
|
|
1321
1366
|
signal,
|
|
1322
|
-
throwOnError: true
|
|
1367
|
+
throwOnError: true,
|
|
1323
1368
|
});
|
|
1324
1369
|
return data;
|
|
1325
1370
|
},
|
|
1326
|
-
queryKey: (0, exports.getV1WalletsByWalletAddressTransactionsQueryKey)(options)
|
|
1371
|
+
queryKey: (0, exports.getV1WalletsByWalletAddressTransactionsQueryKey)(options),
|
|
1327
1372
|
});
|
|
1328
1373
|
};
|
|
1329
1374
|
exports.getV1WalletsByWalletAddressTransactionsOptions = getV1WalletsByWalletAddressTransactionsOptions;
|
|
1330
|
-
const getV1WalletsByWalletAddressTransactionsInfiniteQueryKey = (options) => createQueryKey(
|
|
1375
|
+
const getV1WalletsByWalletAddressTransactionsInfiniteQueryKey = (options) => createQueryKey("getV1WalletsByWalletAddressTransactions", options, true);
|
|
1331
1376
|
exports.getV1WalletsByWalletAddressTransactionsInfiniteQueryKey = getV1WalletsByWalletAddressTransactionsInfiniteQueryKey;
|
|
1332
1377
|
const getV1WalletsByWalletAddressTransactionsInfiniteOptions = (options) => {
|
|
1333
1378
|
return (0, react_query_1.infiniteQueryOptions)(
|
|
@@ -1335,21 +1380,23 @@ const getV1WalletsByWalletAddressTransactionsInfiniteOptions = (options) => {
|
|
|
1335
1380
|
{
|
|
1336
1381
|
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1337
1382
|
// @ts-ignore
|
|
1338
|
-
const page = typeof pageParam ===
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1383
|
+
const page = typeof pageParam === "object"
|
|
1384
|
+
? pageParam
|
|
1385
|
+
: {
|
|
1386
|
+
query: {
|
|
1387
|
+
page: pageParam,
|
|
1388
|
+
},
|
|
1389
|
+
};
|
|
1343
1390
|
const params = createInfiniteParams(queryKey, page);
|
|
1344
1391
|
const { data } = await (0, sdk_gen_1.getV1WalletsByWalletAddressTransactions)({
|
|
1345
1392
|
...options,
|
|
1346
1393
|
...params,
|
|
1347
1394
|
signal,
|
|
1348
|
-
throwOnError: true
|
|
1395
|
+
throwOnError: true,
|
|
1349
1396
|
});
|
|
1350
1397
|
return data;
|
|
1351
1398
|
},
|
|
1352
|
-
queryKey: (0, exports.getV1WalletsByWalletAddressTransactionsInfiniteQueryKey)(options)
|
|
1399
|
+
queryKey: (0, exports.getV1WalletsByWalletAddressTransactionsInfiniteQueryKey)(options),
|
|
1353
1400
|
});
|
|
1354
1401
|
};
|
|
1355
1402
|
exports.getV1WalletsByWalletAddressTransactionsInfiniteOptions = getV1WalletsByWalletAddressTransactionsInfiniteOptions;
|