@b3dotfun/sdk 0.0.18 → 0.0.19-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -51
- package/dist/cjs/anyspend/react/components/AnySpend.js +21 -2
- package/dist/cjs/anyspend/react/components/common/FiatPaymentMethod.js +2 -2
- package/dist/cjs/anyspend/react/providers/AnyspendProvider.d.ts +1 -2
- package/dist/cjs/anyspend/react/providers/AnyspendProvider.js +2 -3
- 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 -2
- package/dist/esm/anyspend/react/components/common/FiatPaymentMethod.js +2 -2
- package/dist/esm/anyspend/react/providers/AnyspendProvider.d.ts +1 -2
- package/dist/esm/anyspend/react/providers/AnyspendProvider.js +2 -3
- 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/providers/AnyspendProvider.d.ts +1 -2
- 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 -6
- package/src/anyspend/react/components/common/FiatPaymentMethod.tsx +2 -2
- package/src/anyspend/react/providers/AnyspendProvider.tsx +5 -9
- 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
|
@@ -1,1363 +1,2029 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import {
|
|
4
|
+
type Options,
|
|
5
|
+
getV1Webhooks,
|
|
6
|
+
postV1Webhooks,
|
|
7
|
+
deleteV1WebhooksByWebhookId,
|
|
8
|
+
patchV1WebhooksByWebhookId,
|
|
9
|
+
postV1WebhooksTest,
|
|
10
|
+
getV1Events,
|
|
11
|
+
getV1EventsByContractAddress,
|
|
12
|
+
getV1EventsByContractAddressBySignature,
|
|
13
|
+
getV1Transactions,
|
|
14
|
+
getV1TransactionsByContractAddress,
|
|
15
|
+
getV1TransactionsByContractAddressBySignature,
|
|
16
|
+
getV1TokensTransfersTransactionByTransactionHash,
|
|
17
|
+
getV1TokensTransfersByContractAddress,
|
|
18
|
+
getV1TokensTransfers,
|
|
19
|
+
getV1TokensErc20ByOwnerAddress,
|
|
20
|
+
getV1TokensErc721ByOwnerAddress,
|
|
21
|
+
getV1TokensErc1155ByOwnerAddress,
|
|
22
|
+
getV1TokensPriceSupported,
|
|
23
|
+
getV1TokensPrice,
|
|
24
|
+
getV1TokensLookup,
|
|
25
|
+
getV1ResolveByInput,
|
|
26
|
+
getV1Blocks,
|
|
27
|
+
getV1ContractsAbiByContractAddress,
|
|
28
|
+
getV1ContractsMetadataByContractAddress,
|
|
29
|
+
postV1DecodeByContractAddress,
|
|
30
|
+
getV1NftsBalanceByOwnerAddress,
|
|
31
|
+
getV1NftsCollectionsByContractAddress,
|
|
32
|
+
getV1Nfts,
|
|
33
|
+
getV1NftsOwnersByContractAddress,
|
|
34
|
+
getV1NftsOwnersByContractAddressByTokenId,
|
|
35
|
+
getV1NftsTransfers,
|
|
36
|
+
getV1NftsTransfersTransactionByTransactionHash,
|
|
37
|
+
getV1NftsTransfersByContractAddress,
|
|
38
|
+
getV1NftsByContractAddress,
|
|
39
|
+
getV1NftsTransfersByContractAddressByTokenId,
|
|
40
|
+
getV1NftsByContractAddressByTokenId,
|
|
41
|
+
getV1NftsMetadataRefreshByContractAddress,
|
|
42
|
+
getV1NftsMetadataRefreshByContractAddressByTokenId,
|
|
43
|
+
getV1WalletsByWalletAddressTransactions,
|
|
44
|
+
} from "../sdk.gen";
|
|
45
|
+
import {
|
|
46
|
+
queryOptions,
|
|
47
|
+
type UseMutationOptions,
|
|
48
|
+
infiniteQueryOptions,
|
|
49
|
+
type InfiniteData,
|
|
50
|
+
type DefaultError,
|
|
51
|
+
} from "@tanstack/react-query";
|
|
52
|
+
import type {
|
|
53
|
+
GetV1WebhooksData,
|
|
54
|
+
PostV1WebhooksData,
|
|
55
|
+
PostV1WebhooksError,
|
|
56
|
+
PostV1WebhooksResponse,
|
|
57
|
+
DeleteV1WebhooksByWebhookIdData,
|
|
58
|
+
DeleteV1WebhooksByWebhookIdError,
|
|
59
|
+
DeleteV1WebhooksByWebhookIdResponse,
|
|
60
|
+
PatchV1WebhooksByWebhookIdData,
|
|
61
|
+
PatchV1WebhooksByWebhookIdError,
|
|
62
|
+
PatchV1WebhooksByWebhookIdResponse,
|
|
63
|
+
PostV1WebhooksTestData,
|
|
64
|
+
PostV1WebhooksTestError,
|
|
65
|
+
PostV1WebhooksTestResponse,
|
|
66
|
+
GetV1EventsData,
|
|
67
|
+
GetV1EventsError,
|
|
68
|
+
GetV1EventsResponse,
|
|
69
|
+
GetV1EventsByContractAddressData,
|
|
70
|
+
GetV1EventsByContractAddressError,
|
|
71
|
+
GetV1EventsByContractAddressResponse,
|
|
72
|
+
GetV1EventsByContractAddressBySignatureData,
|
|
73
|
+
GetV1EventsByContractAddressBySignatureError,
|
|
74
|
+
GetV1EventsByContractAddressBySignatureResponse,
|
|
75
|
+
GetV1TransactionsData,
|
|
76
|
+
GetV1TransactionsError,
|
|
77
|
+
GetV1TransactionsResponse,
|
|
78
|
+
GetV1TransactionsByContractAddressData,
|
|
79
|
+
GetV1TransactionsByContractAddressError,
|
|
80
|
+
GetV1TransactionsByContractAddressResponse,
|
|
81
|
+
GetV1TransactionsByContractAddressBySignatureData,
|
|
82
|
+
GetV1TransactionsByContractAddressBySignatureError,
|
|
83
|
+
GetV1TransactionsByContractAddressBySignatureResponse,
|
|
84
|
+
GetV1TokensTransfersTransactionByTransactionHashData,
|
|
85
|
+
GetV1TokensTransfersTransactionByTransactionHashError,
|
|
86
|
+
GetV1TokensTransfersTransactionByTransactionHashResponse,
|
|
87
|
+
GetV1TokensTransfersByContractAddressData,
|
|
88
|
+
GetV1TokensTransfersByContractAddressError,
|
|
89
|
+
GetV1TokensTransfersByContractAddressResponse,
|
|
90
|
+
GetV1TokensTransfersData,
|
|
91
|
+
GetV1TokensTransfersError,
|
|
92
|
+
GetV1TokensTransfersResponse,
|
|
93
|
+
GetV1TokensErc20ByOwnerAddressData,
|
|
94
|
+
GetV1TokensErc20ByOwnerAddressResponse,
|
|
95
|
+
GetV1TokensErc721ByOwnerAddressData,
|
|
96
|
+
GetV1TokensErc721ByOwnerAddressResponse,
|
|
97
|
+
GetV1TokensErc1155ByOwnerAddressData,
|
|
98
|
+
GetV1TokensErc1155ByOwnerAddressResponse,
|
|
99
|
+
GetV1TokensPriceSupportedData,
|
|
100
|
+
GetV1TokensPriceData,
|
|
101
|
+
GetV1TokensLookupData,
|
|
102
|
+
GetV1ResolveByInputData,
|
|
103
|
+
GetV1BlocksData,
|
|
104
|
+
GetV1BlocksError,
|
|
105
|
+
GetV1BlocksResponse,
|
|
106
|
+
GetV1ContractsAbiByContractAddressData,
|
|
107
|
+
GetV1ContractsMetadataByContractAddressData,
|
|
108
|
+
PostV1DecodeByContractAddressData,
|
|
109
|
+
PostV1DecodeByContractAddressError,
|
|
110
|
+
PostV1DecodeByContractAddressResponse,
|
|
111
|
+
GetV1NftsBalanceByOwnerAddressData,
|
|
112
|
+
GetV1NftsBalanceByOwnerAddressResponse,
|
|
113
|
+
GetV1NftsCollectionsByContractAddressData,
|
|
114
|
+
GetV1NftsData,
|
|
115
|
+
GetV1NftsError,
|
|
116
|
+
GetV1NftsResponse,
|
|
117
|
+
GetV1NftsOwnersByContractAddressData,
|
|
118
|
+
GetV1NftsOwnersByContractAddressError,
|
|
119
|
+
GetV1NftsOwnersByContractAddressResponse,
|
|
120
|
+
GetV1NftsOwnersByContractAddressByTokenIdData,
|
|
121
|
+
GetV1NftsOwnersByContractAddressByTokenIdError,
|
|
122
|
+
GetV1NftsOwnersByContractAddressByTokenIdResponse,
|
|
123
|
+
GetV1NftsTransfersData,
|
|
124
|
+
GetV1NftsTransfersError,
|
|
125
|
+
GetV1NftsTransfersResponse,
|
|
126
|
+
GetV1NftsTransfersTransactionByTransactionHashData,
|
|
127
|
+
GetV1NftsTransfersTransactionByTransactionHashError,
|
|
128
|
+
GetV1NftsTransfersTransactionByTransactionHashResponse,
|
|
129
|
+
GetV1NftsTransfersByContractAddressData,
|
|
130
|
+
GetV1NftsTransfersByContractAddressError,
|
|
131
|
+
GetV1NftsTransfersByContractAddressResponse,
|
|
132
|
+
GetV1NftsByContractAddressData,
|
|
133
|
+
GetV1NftsByContractAddressError,
|
|
134
|
+
GetV1NftsByContractAddressResponse,
|
|
135
|
+
GetV1NftsTransfersByContractAddressByTokenIdData,
|
|
136
|
+
GetV1NftsTransfersByContractAddressByTokenIdError,
|
|
137
|
+
GetV1NftsTransfersByContractAddressByTokenIdResponse,
|
|
138
|
+
GetV1NftsByContractAddressByTokenIdData,
|
|
139
|
+
GetV1NftsMetadataRefreshByContractAddressData,
|
|
140
|
+
GetV1NftsMetadataRefreshByContractAddressByTokenIdData,
|
|
141
|
+
GetV1WalletsByWalletAddressTransactionsData,
|
|
142
|
+
GetV1WalletsByWalletAddressTransactionsError,
|
|
143
|
+
GetV1WalletsByWalletAddressTransactionsResponse,
|
|
144
|
+
} from "../types.gen";
|
|
145
|
+
import { client as _heyApiClient } from "../client.gen";
|
|
7
146
|
|
|
8
147
|
export type QueryKey<TOptions extends Options> = [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
148
|
+
Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
149
|
+
_id: string;
|
|
150
|
+
_infinite?: boolean;
|
|
151
|
+
},
|
|
13
152
|
];
|
|
14
153
|
|
|
15
|
-
const createQueryKey = <TOptions extends Options>(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
154
|
+
const createQueryKey = <TOptions extends Options>(
|
|
155
|
+
id: string,
|
|
156
|
+
options?: TOptions,
|
|
157
|
+
infinite?: boolean,
|
|
158
|
+
): [QueryKey<TOptions>[0]] => {
|
|
159
|
+
const params: QueryKey<TOptions>[0] = {
|
|
160
|
+
_id: id,
|
|
161
|
+
baseUrl: (options?.client ?? _heyApiClient).getConfig().baseUrl,
|
|
162
|
+
} as QueryKey<TOptions>[0];
|
|
163
|
+
if (infinite) {
|
|
164
|
+
params._infinite = infinite;
|
|
165
|
+
}
|
|
166
|
+
if (options?.body) {
|
|
167
|
+
params.body = options.body;
|
|
168
|
+
}
|
|
169
|
+
if (options?.headers) {
|
|
170
|
+
params.headers = options.headers;
|
|
171
|
+
}
|
|
172
|
+
if (options?.path) {
|
|
173
|
+
params.path = options.path;
|
|
174
|
+
}
|
|
175
|
+
if (options?.query) {
|
|
176
|
+
params.query = options.query;
|
|
177
|
+
}
|
|
178
|
+
return [params];
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export const getV1WebhooksQueryKey = (options?: Options<GetV1WebhooksData>) => createQueryKey("getV1Webhooks", options);
|
|
40
182
|
|
|
41
183
|
export const getV1WebhooksOptions = (options?: Options<GetV1WebhooksData>) => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const postV1WebhooksQueryKey = (options?: Options<PostV1WebhooksData>) =>
|
|
184
|
+
return queryOptions({
|
|
185
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
186
|
+
const { data } = await getV1Webhooks({
|
|
187
|
+
...options,
|
|
188
|
+
...queryKey[0],
|
|
189
|
+
signal,
|
|
190
|
+
throwOnError: true,
|
|
191
|
+
});
|
|
192
|
+
return data;
|
|
193
|
+
},
|
|
194
|
+
queryKey: getV1WebhooksQueryKey(options),
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export const postV1WebhooksQueryKey = (options?: Options<PostV1WebhooksData>) =>
|
|
199
|
+
createQueryKey("postV1Webhooks", options);
|
|
57
200
|
|
|
58
201
|
export const postV1WebhooksOptions = (options?: Options<PostV1WebhooksData>) => {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
export const postV1WebhooksMutation = (
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
202
|
+
return queryOptions({
|
|
203
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
204
|
+
const { data } = await postV1Webhooks({
|
|
205
|
+
...options,
|
|
206
|
+
...queryKey[0],
|
|
207
|
+
signal,
|
|
208
|
+
throwOnError: true,
|
|
209
|
+
});
|
|
210
|
+
return data;
|
|
211
|
+
},
|
|
212
|
+
queryKey: postV1WebhooksQueryKey(options),
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export const postV1WebhooksMutation = (
|
|
217
|
+
options?: Partial<Options<PostV1WebhooksData>>,
|
|
218
|
+
): UseMutationOptions<PostV1WebhooksResponse, PostV1WebhooksError, Options<PostV1WebhooksData>> => {
|
|
219
|
+
const mutationOptions: UseMutationOptions<
|
|
220
|
+
PostV1WebhooksResponse,
|
|
221
|
+
PostV1WebhooksError,
|
|
222
|
+
Options<PostV1WebhooksData>
|
|
223
|
+
> = {
|
|
224
|
+
mutationFn: async localOptions => {
|
|
225
|
+
const { data } = await postV1Webhooks({
|
|
226
|
+
...options,
|
|
227
|
+
...localOptions,
|
|
228
|
+
throwOnError: true,
|
|
229
|
+
});
|
|
230
|
+
return data;
|
|
231
|
+
},
|
|
232
|
+
};
|
|
233
|
+
return mutationOptions;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
export const deleteV1WebhooksByWebhookIdMutation = (
|
|
237
|
+
options?: Partial<Options<DeleteV1WebhooksByWebhookIdData>>,
|
|
238
|
+
): UseMutationOptions<
|
|
239
|
+
DeleteV1WebhooksByWebhookIdResponse,
|
|
240
|
+
DeleteV1WebhooksByWebhookIdError,
|
|
241
|
+
Options<DeleteV1WebhooksByWebhookIdData>
|
|
242
|
+
> => {
|
|
243
|
+
const mutationOptions: UseMutationOptions<
|
|
244
|
+
DeleteV1WebhooksByWebhookIdResponse,
|
|
245
|
+
DeleteV1WebhooksByWebhookIdError,
|
|
246
|
+
Options<DeleteV1WebhooksByWebhookIdData>
|
|
247
|
+
> = {
|
|
248
|
+
mutationFn: async localOptions => {
|
|
249
|
+
const { data } = await deleteV1WebhooksByWebhookId({
|
|
250
|
+
...options,
|
|
251
|
+
...localOptions,
|
|
252
|
+
throwOnError: true,
|
|
253
|
+
});
|
|
254
|
+
return data;
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
return mutationOptions;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
export const patchV1WebhooksByWebhookIdMutation = (
|
|
261
|
+
options?: Partial<Options<PatchV1WebhooksByWebhookIdData>>,
|
|
262
|
+
): UseMutationOptions<
|
|
263
|
+
PatchV1WebhooksByWebhookIdResponse,
|
|
264
|
+
PatchV1WebhooksByWebhookIdError,
|
|
265
|
+
Options<PatchV1WebhooksByWebhookIdData>
|
|
266
|
+
> => {
|
|
267
|
+
const mutationOptions: UseMutationOptions<
|
|
268
|
+
PatchV1WebhooksByWebhookIdResponse,
|
|
269
|
+
PatchV1WebhooksByWebhookIdError,
|
|
270
|
+
Options<PatchV1WebhooksByWebhookIdData>
|
|
271
|
+
> = {
|
|
272
|
+
mutationFn: async localOptions => {
|
|
273
|
+
const { data } = await patchV1WebhooksByWebhookId({
|
|
274
|
+
...options,
|
|
275
|
+
...localOptions,
|
|
276
|
+
throwOnError: true,
|
|
277
|
+
});
|
|
278
|
+
return data;
|
|
279
|
+
},
|
|
280
|
+
};
|
|
281
|
+
return mutationOptions;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export const postV1WebhooksTestQueryKey = (options?: Options<PostV1WebhooksTestData>) =>
|
|
285
|
+
createQueryKey("postV1WebhooksTest", options);
|
|
286
|
+
|
|
287
|
+
export const postV1WebhooksTestOptions = (options?: Options<PostV1WebhooksTestData>) => {
|
|
288
|
+
return queryOptions({
|
|
289
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
290
|
+
const { data } = await postV1WebhooksTest({
|
|
291
|
+
...options,
|
|
292
|
+
...queryKey[0],
|
|
293
|
+
signal,
|
|
294
|
+
throwOnError: true,
|
|
295
|
+
});
|
|
296
|
+
return data;
|
|
297
|
+
},
|
|
298
|
+
queryKey: postV1WebhooksTestQueryKey(options),
|
|
299
|
+
});
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
export const postV1WebhooksTestMutation = (
|
|
303
|
+
options?: Partial<Options<PostV1WebhooksTestData>>,
|
|
304
|
+
): UseMutationOptions<PostV1WebhooksTestResponse, PostV1WebhooksTestError, Options<PostV1WebhooksTestData>> => {
|
|
305
|
+
const mutationOptions: UseMutationOptions<
|
|
306
|
+
PostV1WebhooksTestResponse,
|
|
307
|
+
PostV1WebhooksTestError,
|
|
308
|
+
Options<PostV1WebhooksTestData>
|
|
309
|
+
> = {
|
|
310
|
+
mutationFn: async localOptions => {
|
|
311
|
+
const { data } = await postV1WebhooksTest({
|
|
312
|
+
...options,
|
|
313
|
+
...localOptions,
|
|
314
|
+
throwOnError: true,
|
|
315
|
+
});
|
|
316
|
+
return data;
|
|
317
|
+
},
|
|
318
|
+
};
|
|
319
|
+
return mutationOptions;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
export const getV1EventsQueryKey = (options?: Options<GetV1EventsData>) => createQueryKey("getV1Events", options);
|
|
323
|
+
|
|
324
|
+
export const getV1EventsOptions = (options?: Options<GetV1EventsData>) => {
|
|
325
|
+
return queryOptions({
|
|
326
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
327
|
+
const { data } = await getV1Events({
|
|
328
|
+
...options,
|
|
329
|
+
...queryKey[0],
|
|
330
|
+
signal,
|
|
331
|
+
throwOnError: true,
|
|
332
|
+
});
|
|
333
|
+
return data;
|
|
334
|
+
},
|
|
335
|
+
queryKey: getV1EventsQueryKey(options),
|
|
336
|
+
});
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
const createInfiniteParams = <K extends Pick<QueryKey<Options>[0], "body" | "headers" | "path" | "query">>(
|
|
340
|
+
queryKey: QueryKey<Options>,
|
|
341
|
+
page: K,
|
|
342
|
+
) => {
|
|
343
|
+
const params = queryKey[0];
|
|
344
|
+
if (page.body) {
|
|
345
|
+
params.body = {
|
|
346
|
+
...(queryKey[0].body as any),
|
|
347
|
+
...(page.body as any),
|
|
83
348
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
mutationFn: async (localOptions) => {
|
|
90
|
-
const { data } = await deleteV1WebhooksByWebhookId({
|
|
91
|
-
...options,
|
|
92
|
-
...localOptions,
|
|
93
|
-
throwOnError: true
|
|
94
|
-
});
|
|
95
|
-
return data;
|
|
96
|
-
}
|
|
349
|
+
}
|
|
350
|
+
if (page.headers) {
|
|
351
|
+
params.headers = {
|
|
352
|
+
...queryKey[0].headers,
|
|
353
|
+
...page.headers,
|
|
97
354
|
};
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
mutationFn: async (localOptions) => {
|
|
104
|
-
const { data } = await patchV1WebhooksByWebhookId({
|
|
105
|
-
...options,
|
|
106
|
-
...localOptions,
|
|
107
|
-
throwOnError: true
|
|
108
|
-
});
|
|
109
|
-
return data;
|
|
110
|
-
}
|
|
355
|
+
}
|
|
356
|
+
if (page.path) {
|
|
357
|
+
params.path = {
|
|
358
|
+
...(queryKey[0].path as any),
|
|
359
|
+
...(page.path as any),
|
|
111
360
|
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
export const postV1WebhooksTestOptions = (options?: Options<PostV1WebhooksTestData>) => {
|
|
118
|
-
return queryOptions({
|
|
119
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
120
|
-
const { data } = await postV1WebhooksTest({
|
|
121
|
-
...options,
|
|
122
|
-
...queryKey[0],
|
|
123
|
-
signal,
|
|
124
|
-
throwOnError: true
|
|
125
|
-
});
|
|
126
|
-
return data;
|
|
127
|
-
},
|
|
128
|
-
queryKey: postV1WebhooksTestQueryKey(options)
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
export const postV1WebhooksTestMutation = (options?: Partial<Options<PostV1WebhooksTestData>>): UseMutationOptions<PostV1WebhooksTestResponse, PostV1WebhooksTestError, Options<PostV1WebhooksTestData>> => {
|
|
133
|
-
const mutationOptions: UseMutationOptions<PostV1WebhooksTestResponse, PostV1WebhooksTestError, Options<PostV1WebhooksTestData>> = {
|
|
134
|
-
mutationFn: async (localOptions) => {
|
|
135
|
-
const { data } = await postV1WebhooksTest({
|
|
136
|
-
...options,
|
|
137
|
-
...localOptions,
|
|
138
|
-
throwOnError: true
|
|
139
|
-
});
|
|
140
|
-
return data;
|
|
141
|
-
}
|
|
361
|
+
}
|
|
362
|
+
if (page.query) {
|
|
363
|
+
params.query = {
|
|
364
|
+
...(queryKey[0].query as any),
|
|
365
|
+
...(page.query as any),
|
|
142
366
|
};
|
|
143
|
-
|
|
367
|
+
}
|
|
368
|
+
return params as unknown as typeof page;
|
|
144
369
|
};
|
|
145
370
|
|
|
146
|
-
export const
|
|
147
|
-
|
|
148
|
-
export const getV1EventsOptions = (options?: Options<GetV1EventsData>) => {
|
|
149
|
-
return queryOptions({
|
|
150
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
151
|
-
const { data } = await getV1Events({
|
|
152
|
-
...options,
|
|
153
|
-
...queryKey[0],
|
|
154
|
-
signal,
|
|
155
|
-
throwOnError: true
|
|
156
|
-
});
|
|
157
|
-
return data;
|
|
158
|
-
},
|
|
159
|
-
queryKey: getV1EventsQueryKey(options)
|
|
160
|
-
});
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
const createInfiniteParams = <K extends Pick<QueryKey<Options>[0], 'body' | 'headers' | 'path' | 'query'>>(queryKey: QueryKey<Options>, page: K) => {
|
|
164
|
-
const params = queryKey[0];
|
|
165
|
-
if (page.body) {
|
|
166
|
-
params.body = {
|
|
167
|
-
...queryKey[0].body as any,
|
|
168
|
-
...page.body as any
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
if (page.headers) {
|
|
172
|
-
params.headers = {
|
|
173
|
-
...queryKey[0].headers,
|
|
174
|
-
...page.headers
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
if (page.path) {
|
|
178
|
-
params.path = {
|
|
179
|
-
...queryKey[0].path as any,
|
|
180
|
-
...page.path as any
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
if (page.query) {
|
|
184
|
-
params.query = {
|
|
185
|
-
...queryKey[0].query as any,
|
|
186
|
-
...page.query as any
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
return params as unknown as typeof page;
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
export const getV1EventsInfiniteQueryKey = (options?: Options<GetV1EventsData>): QueryKey<Options<GetV1EventsData>> => createQueryKey('getV1Events', options, true);
|
|
371
|
+
export const getV1EventsInfiniteQueryKey = (options?: Options<GetV1EventsData>): QueryKey<Options<GetV1EventsData>> =>
|
|
372
|
+
createQueryKey("getV1Events", options, true);
|
|
193
373
|
|
|
194
374
|
export const getV1EventsInfiniteOptions = (options?: Options<GetV1EventsData>) => {
|
|
195
|
-
|
|
375
|
+
return infiniteQueryOptions<
|
|
376
|
+
GetV1EventsResponse,
|
|
377
|
+
GetV1EventsError,
|
|
378
|
+
InfiniteData<GetV1EventsResponse>,
|
|
379
|
+
QueryKey<Options<GetV1EventsData>>,
|
|
380
|
+
number | null | Pick<QueryKey<Options<GetV1EventsData>>[0], "body" | "headers" | "path" | "query">
|
|
381
|
+
>(
|
|
196
382
|
// @ts-ignore
|
|
197
383
|
{
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
384
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
385
|
+
// @ts-ignore
|
|
386
|
+
const page: Pick<QueryKey<Options<GetV1EventsData>>[0], "body" | "headers" | "path" | "query"> =
|
|
387
|
+
typeof pageParam === "object"
|
|
388
|
+
? pageParam
|
|
389
|
+
: {
|
|
201
390
|
query: {
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
391
|
+
page: pageParam,
|
|
392
|
+
},
|
|
393
|
+
};
|
|
394
|
+
const params = createInfiniteParams(queryKey, page);
|
|
395
|
+
const { data } = await getV1Events({
|
|
396
|
+
...options,
|
|
397
|
+
...params,
|
|
398
|
+
signal,
|
|
399
|
+
throwOnError: true,
|
|
400
|
+
});
|
|
401
|
+
return data;
|
|
402
|
+
},
|
|
403
|
+
queryKey: getV1EventsInfiniteQueryKey(options),
|
|
404
|
+
},
|
|
405
|
+
);
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
export const getV1EventsByContractAddressQueryKey = (options: Options<GetV1EventsByContractAddressData>) =>
|
|
409
|
+
createQueryKey("getV1EventsByContractAddress", options);
|
|
219
410
|
|
|
220
411
|
export const getV1EventsByContractAddressOptions = (options: Options<GetV1EventsByContractAddressData>) => {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
export const getV1EventsByContractAddressInfiniteQueryKey = (
|
|
412
|
+
return queryOptions({
|
|
413
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
414
|
+
const { data } = await getV1EventsByContractAddress({
|
|
415
|
+
...options,
|
|
416
|
+
...queryKey[0],
|
|
417
|
+
signal,
|
|
418
|
+
throwOnError: true,
|
|
419
|
+
});
|
|
420
|
+
return data;
|
|
421
|
+
},
|
|
422
|
+
queryKey: getV1EventsByContractAddressQueryKey(options),
|
|
423
|
+
});
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
export const getV1EventsByContractAddressInfiniteQueryKey = (
|
|
427
|
+
options: Options<GetV1EventsByContractAddressData>,
|
|
428
|
+
): QueryKey<Options<GetV1EventsByContractAddressData>> => createQueryKey("getV1EventsByContractAddress", options, true);
|
|
236
429
|
|
|
237
430
|
export const getV1EventsByContractAddressInfiniteOptions = (options: Options<GetV1EventsByContractAddressData>) => {
|
|
238
|
-
|
|
431
|
+
return infiniteQueryOptions<
|
|
432
|
+
GetV1EventsByContractAddressResponse,
|
|
433
|
+
GetV1EventsByContractAddressError,
|
|
434
|
+
InfiniteData<GetV1EventsByContractAddressResponse>,
|
|
435
|
+
QueryKey<Options<GetV1EventsByContractAddressData>>,
|
|
436
|
+
number | null | Pick<QueryKey<Options<GetV1EventsByContractAddressData>>[0], "body" | "headers" | "path" | "query">
|
|
437
|
+
>(
|
|
239
438
|
// @ts-ignore
|
|
240
439
|
{
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
440
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
441
|
+
// @ts-ignore
|
|
442
|
+
const page: Pick<
|
|
443
|
+
QueryKey<Options<GetV1EventsByContractAddressData>>[0],
|
|
444
|
+
"body" | "headers" | "path" | "query"
|
|
445
|
+
> =
|
|
446
|
+
typeof pageParam === "object"
|
|
447
|
+
? pageParam
|
|
448
|
+
: {
|
|
244
449
|
query: {
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
450
|
+
page: pageParam,
|
|
451
|
+
},
|
|
452
|
+
};
|
|
453
|
+
const params = createInfiniteParams(queryKey, page);
|
|
454
|
+
const { data } = await getV1EventsByContractAddress({
|
|
455
|
+
...options,
|
|
456
|
+
...params,
|
|
457
|
+
signal,
|
|
458
|
+
throwOnError: true,
|
|
459
|
+
});
|
|
460
|
+
return data;
|
|
461
|
+
},
|
|
462
|
+
queryKey: getV1EventsByContractAddressInfiniteQueryKey(options),
|
|
463
|
+
},
|
|
464
|
+
);
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
export const getV1EventsByContractAddressBySignatureQueryKey = (
|
|
468
|
+
options: Options<GetV1EventsByContractAddressBySignatureData>,
|
|
469
|
+
) => createQueryKey("getV1EventsByContractAddressBySignature", options);
|
|
470
|
+
|
|
471
|
+
export const getV1EventsByContractAddressBySignatureOptions = (
|
|
472
|
+
options: Options<GetV1EventsByContractAddressBySignatureData>,
|
|
473
|
+
) => {
|
|
474
|
+
return queryOptions({
|
|
475
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
476
|
+
const { data } = await getV1EventsByContractAddressBySignature({
|
|
477
|
+
...options,
|
|
478
|
+
...queryKey[0],
|
|
479
|
+
signal,
|
|
480
|
+
throwOnError: true,
|
|
481
|
+
});
|
|
482
|
+
return data;
|
|
483
|
+
},
|
|
484
|
+
queryKey: getV1EventsByContractAddressBySignatureQueryKey(options),
|
|
485
|
+
});
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
export const getV1EventsByContractAddressBySignatureInfiniteQueryKey = (
|
|
489
|
+
options: Options<GetV1EventsByContractAddressBySignatureData>,
|
|
490
|
+
): QueryKey<Options<GetV1EventsByContractAddressBySignatureData>> =>
|
|
491
|
+
createQueryKey("getV1EventsByContractAddressBySignature", options, true);
|
|
492
|
+
|
|
493
|
+
export const getV1EventsByContractAddressBySignatureInfiniteOptions = (
|
|
494
|
+
options: Options<GetV1EventsByContractAddressBySignatureData>,
|
|
495
|
+
) => {
|
|
496
|
+
return infiniteQueryOptions<
|
|
497
|
+
GetV1EventsByContractAddressBySignatureResponse,
|
|
498
|
+
GetV1EventsByContractAddressBySignatureError,
|
|
499
|
+
InfiniteData<GetV1EventsByContractAddressBySignatureResponse>,
|
|
500
|
+
QueryKey<Options<GetV1EventsByContractAddressBySignatureData>>,
|
|
501
|
+
| number
|
|
502
|
+
| null
|
|
503
|
+
| Pick<QueryKey<Options<GetV1EventsByContractAddressBySignatureData>>[0], "body" | "headers" | "path" | "query">
|
|
504
|
+
>(
|
|
282
505
|
// @ts-ignore
|
|
283
506
|
{
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
507
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
508
|
+
// @ts-ignore
|
|
509
|
+
const page: Pick<
|
|
510
|
+
QueryKey<Options<GetV1EventsByContractAddressBySignatureData>>[0],
|
|
511
|
+
"body" | "headers" | "path" | "query"
|
|
512
|
+
> =
|
|
513
|
+
typeof pageParam === "object"
|
|
514
|
+
? pageParam
|
|
515
|
+
: {
|
|
287
516
|
query: {
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
517
|
+
page: pageParam,
|
|
518
|
+
},
|
|
519
|
+
};
|
|
520
|
+
const params = createInfiniteParams(queryKey, page);
|
|
521
|
+
const { data } = await getV1EventsByContractAddressBySignature({
|
|
522
|
+
...options,
|
|
523
|
+
...params,
|
|
524
|
+
signal,
|
|
525
|
+
throwOnError: true,
|
|
526
|
+
});
|
|
527
|
+
return data;
|
|
528
|
+
},
|
|
529
|
+
queryKey: getV1EventsByContractAddressBySignatureInfiniteQueryKey(options),
|
|
530
|
+
},
|
|
531
|
+
);
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
export const getV1TransactionsQueryKey = (options?: Options<GetV1TransactionsData>) =>
|
|
535
|
+
createQueryKey("getV1Transactions", options);
|
|
305
536
|
|
|
306
537
|
export const getV1TransactionsOptions = (options?: Options<GetV1TransactionsData>) => {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
export const getV1TransactionsInfiniteQueryKey = (
|
|
538
|
+
return queryOptions({
|
|
539
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
540
|
+
const { data } = await getV1Transactions({
|
|
541
|
+
...options,
|
|
542
|
+
...queryKey[0],
|
|
543
|
+
signal,
|
|
544
|
+
throwOnError: true,
|
|
545
|
+
});
|
|
546
|
+
return data;
|
|
547
|
+
},
|
|
548
|
+
queryKey: getV1TransactionsQueryKey(options),
|
|
549
|
+
});
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
export const getV1TransactionsInfiniteQueryKey = (
|
|
553
|
+
options?: Options<GetV1TransactionsData>,
|
|
554
|
+
): QueryKey<Options<GetV1TransactionsData>> => createQueryKey("getV1Transactions", options, true);
|
|
322
555
|
|
|
323
556
|
export const getV1TransactionsInfiniteOptions = (options?: Options<GetV1TransactionsData>) => {
|
|
324
|
-
|
|
557
|
+
return infiniteQueryOptions<
|
|
558
|
+
GetV1TransactionsResponse,
|
|
559
|
+
GetV1TransactionsError,
|
|
560
|
+
InfiniteData<GetV1TransactionsResponse>,
|
|
561
|
+
QueryKey<Options<GetV1TransactionsData>>,
|
|
562
|
+
number | null | Pick<QueryKey<Options<GetV1TransactionsData>>[0], "body" | "headers" | "path" | "query">
|
|
563
|
+
>(
|
|
325
564
|
// @ts-ignore
|
|
326
565
|
{
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
566
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
567
|
+
// @ts-ignore
|
|
568
|
+
const page: Pick<QueryKey<Options<GetV1TransactionsData>>[0], "body" | "headers" | "path" | "query"> =
|
|
569
|
+
typeof pageParam === "object"
|
|
570
|
+
? pageParam
|
|
571
|
+
: {
|
|
330
572
|
query: {
|
|
331
|
-
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
573
|
+
page: pageParam,
|
|
574
|
+
},
|
|
575
|
+
};
|
|
576
|
+
const params = createInfiniteParams(queryKey, page);
|
|
577
|
+
const { data } = await getV1Transactions({
|
|
578
|
+
...options,
|
|
579
|
+
...params,
|
|
580
|
+
signal,
|
|
581
|
+
throwOnError: true,
|
|
582
|
+
});
|
|
583
|
+
return data;
|
|
584
|
+
},
|
|
585
|
+
queryKey: getV1TransactionsInfiniteQueryKey(options),
|
|
586
|
+
},
|
|
587
|
+
);
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
export const getV1TransactionsByContractAddressQueryKey = (options: Options<GetV1TransactionsByContractAddressData>) =>
|
|
591
|
+
createQueryKey("getV1TransactionsByContractAddress", options);
|
|
348
592
|
|
|
349
593
|
export const getV1TransactionsByContractAddressOptions = (options: Options<GetV1TransactionsByContractAddressData>) => {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
};
|
|
363
|
-
|
|
364
|
-
export const getV1TransactionsByContractAddressInfiniteQueryKey = (
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
594
|
+
return queryOptions({
|
|
595
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
596
|
+
const { data } = await getV1TransactionsByContractAddress({
|
|
597
|
+
...options,
|
|
598
|
+
...queryKey[0],
|
|
599
|
+
signal,
|
|
600
|
+
throwOnError: true,
|
|
601
|
+
});
|
|
602
|
+
return data;
|
|
603
|
+
},
|
|
604
|
+
queryKey: getV1TransactionsByContractAddressQueryKey(options),
|
|
605
|
+
});
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
export const getV1TransactionsByContractAddressInfiniteQueryKey = (
|
|
609
|
+
options: Options<GetV1TransactionsByContractAddressData>,
|
|
610
|
+
): QueryKey<Options<GetV1TransactionsByContractAddressData>> =>
|
|
611
|
+
createQueryKey("getV1TransactionsByContractAddress", options, true);
|
|
612
|
+
|
|
613
|
+
export const getV1TransactionsByContractAddressInfiniteOptions = (
|
|
614
|
+
options: Options<GetV1TransactionsByContractAddressData>,
|
|
615
|
+
) => {
|
|
616
|
+
return infiniteQueryOptions<
|
|
617
|
+
GetV1TransactionsByContractAddressResponse,
|
|
618
|
+
GetV1TransactionsByContractAddressError,
|
|
619
|
+
InfiniteData<GetV1TransactionsByContractAddressResponse>,
|
|
620
|
+
QueryKey<Options<GetV1TransactionsByContractAddressData>>,
|
|
621
|
+
| number
|
|
622
|
+
| null
|
|
623
|
+
| Pick<QueryKey<Options<GetV1TransactionsByContractAddressData>>[0], "body" | "headers" | "path" | "query">
|
|
624
|
+
>(
|
|
368
625
|
// @ts-ignore
|
|
369
626
|
{
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
627
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
628
|
+
// @ts-ignore
|
|
629
|
+
const page: Pick<
|
|
630
|
+
QueryKey<Options<GetV1TransactionsByContractAddressData>>[0],
|
|
631
|
+
"body" | "headers" | "path" | "query"
|
|
632
|
+
> =
|
|
633
|
+
typeof pageParam === "object"
|
|
634
|
+
? pageParam
|
|
635
|
+
: {
|
|
373
636
|
query: {
|
|
374
|
-
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
};
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
637
|
+
page: pageParam,
|
|
638
|
+
},
|
|
639
|
+
};
|
|
640
|
+
const params = createInfiniteParams(queryKey, page);
|
|
641
|
+
const { data } = await getV1TransactionsByContractAddress({
|
|
642
|
+
...options,
|
|
643
|
+
...params,
|
|
644
|
+
signal,
|
|
645
|
+
throwOnError: true,
|
|
646
|
+
});
|
|
647
|
+
return data;
|
|
648
|
+
},
|
|
649
|
+
queryKey: getV1TransactionsByContractAddressInfiniteQueryKey(options),
|
|
650
|
+
},
|
|
651
|
+
);
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
export const getV1TransactionsByContractAddressBySignatureQueryKey = (
|
|
655
|
+
options: Options<GetV1TransactionsByContractAddressBySignatureData>,
|
|
656
|
+
) => createQueryKey("getV1TransactionsByContractAddressBySignature", options);
|
|
657
|
+
|
|
658
|
+
export const getV1TransactionsByContractAddressBySignatureOptions = (
|
|
659
|
+
options: Options<GetV1TransactionsByContractAddressBySignatureData>,
|
|
660
|
+
) => {
|
|
661
|
+
return queryOptions({
|
|
662
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
663
|
+
const { data } = await getV1TransactionsByContractAddressBySignature({
|
|
664
|
+
...options,
|
|
665
|
+
...queryKey[0],
|
|
666
|
+
signal,
|
|
667
|
+
throwOnError: true,
|
|
668
|
+
});
|
|
669
|
+
return data;
|
|
670
|
+
},
|
|
671
|
+
queryKey: getV1TransactionsByContractAddressBySignatureQueryKey(options),
|
|
672
|
+
});
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
export const getV1TransactionsByContractAddressBySignatureInfiniteQueryKey = (
|
|
676
|
+
options: Options<GetV1TransactionsByContractAddressBySignatureData>,
|
|
677
|
+
): QueryKey<Options<GetV1TransactionsByContractAddressBySignatureData>> =>
|
|
678
|
+
createQueryKey("getV1TransactionsByContractAddressBySignature", options, true);
|
|
679
|
+
|
|
680
|
+
export const getV1TransactionsByContractAddressBySignatureInfiniteOptions = (
|
|
681
|
+
options: Options<GetV1TransactionsByContractAddressBySignatureData>,
|
|
682
|
+
) => {
|
|
683
|
+
return infiniteQueryOptions<
|
|
684
|
+
GetV1TransactionsByContractAddressBySignatureResponse,
|
|
685
|
+
GetV1TransactionsByContractAddressBySignatureError,
|
|
686
|
+
InfiniteData<GetV1TransactionsByContractAddressBySignatureResponse>,
|
|
687
|
+
QueryKey<Options<GetV1TransactionsByContractAddressBySignatureData>>,
|
|
688
|
+
| number
|
|
689
|
+
| null
|
|
690
|
+
| Pick<
|
|
691
|
+
QueryKey<Options<GetV1TransactionsByContractAddressBySignatureData>>[0],
|
|
692
|
+
"body" | "headers" | "path" | "query"
|
|
693
|
+
>
|
|
694
|
+
>(
|
|
411
695
|
// @ts-ignore
|
|
412
696
|
{
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
697
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
698
|
+
// @ts-ignore
|
|
699
|
+
const page: Pick<
|
|
700
|
+
QueryKey<Options<GetV1TransactionsByContractAddressBySignatureData>>[0],
|
|
701
|
+
"body" | "headers" | "path" | "query"
|
|
702
|
+
> =
|
|
703
|
+
typeof pageParam === "object"
|
|
704
|
+
? pageParam
|
|
705
|
+
: {
|
|
416
706
|
query: {
|
|
417
|
-
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
};
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
707
|
+
page: pageParam,
|
|
708
|
+
},
|
|
709
|
+
};
|
|
710
|
+
const params = createInfiniteParams(queryKey, page);
|
|
711
|
+
const { data } = await getV1TransactionsByContractAddressBySignature({
|
|
712
|
+
...options,
|
|
713
|
+
...params,
|
|
714
|
+
signal,
|
|
715
|
+
throwOnError: true,
|
|
716
|
+
});
|
|
717
|
+
return data;
|
|
718
|
+
},
|
|
719
|
+
queryKey: getV1TransactionsByContractAddressBySignatureInfiniteQueryKey(options),
|
|
720
|
+
},
|
|
721
|
+
);
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
export const getV1TokensTransfersTransactionByTransactionHashQueryKey = (
|
|
725
|
+
options: Options<GetV1TokensTransfersTransactionByTransactionHashData>,
|
|
726
|
+
) => createQueryKey("getV1TokensTransfersTransactionByTransactionHash", options);
|
|
727
|
+
|
|
728
|
+
export const getV1TokensTransfersTransactionByTransactionHashOptions = (
|
|
729
|
+
options: Options<GetV1TokensTransfersTransactionByTransactionHashData>,
|
|
730
|
+
) => {
|
|
731
|
+
return queryOptions({
|
|
732
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
733
|
+
const { data } = await getV1TokensTransfersTransactionByTransactionHash({
|
|
734
|
+
...options,
|
|
735
|
+
...queryKey[0],
|
|
736
|
+
signal,
|
|
737
|
+
throwOnError: true,
|
|
738
|
+
});
|
|
739
|
+
return data;
|
|
740
|
+
},
|
|
741
|
+
queryKey: getV1TokensTransfersTransactionByTransactionHashQueryKey(options),
|
|
742
|
+
});
|
|
743
|
+
};
|
|
744
|
+
|
|
745
|
+
export const getV1TokensTransfersTransactionByTransactionHashInfiniteQueryKey = (
|
|
746
|
+
options: Options<GetV1TokensTransfersTransactionByTransactionHashData>,
|
|
747
|
+
): QueryKey<Options<GetV1TokensTransfersTransactionByTransactionHashData>> =>
|
|
748
|
+
createQueryKey("getV1TokensTransfersTransactionByTransactionHash", options, true);
|
|
749
|
+
|
|
750
|
+
export const getV1TokensTransfersTransactionByTransactionHashInfiniteOptions = (
|
|
751
|
+
options: Options<GetV1TokensTransfersTransactionByTransactionHashData>,
|
|
752
|
+
) => {
|
|
753
|
+
return infiniteQueryOptions<
|
|
754
|
+
GetV1TokensTransfersTransactionByTransactionHashResponse,
|
|
755
|
+
GetV1TokensTransfersTransactionByTransactionHashError,
|
|
756
|
+
InfiniteData<GetV1TokensTransfersTransactionByTransactionHashResponse>,
|
|
757
|
+
QueryKey<Options<GetV1TokensTransfersTransactionByTransactionHashData>>,
|
|
758
|
+
| number
|
|
759
|
+
| null
|
|
760
|
+
| Pick<
|
|
761
|
+
QueryKey<Options<GetV1TokensTransfersTransactionByTransactionHashData>>[0],
|
|
762
|
+
"body" | "headers" | "path" | "query"
|
|
763
|
+
>
|
|
764
|
+
>(
|
|
454
765
|
// @ts-ignore
|
|
455
766
|
{
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
767
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
768
|
+
// @ts-ignore
|
|
769
|
+
const page: Pick<
|
|
770
|
+
QueryKey<Options<GetV1TokensTransfersTransactionByTransactionHashData>>[0],
|
|
771
|
+
"body" | "headers" | "path" | "query"
|
|
772
|
+
> =
|
|
773
|
+
typeof pageParam === "object"
|
|
774
|
+
? pageParam
|
|
775
|
+
: {
|
|
459
776
|
query: {
|
|
460
|
-
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
777
|
+
page: pageParam,
|
|
778
|
+
},
|
|
779
|
+
};
|
|
780
|
+
const params = createInfiniteParams(queryKey, page);
|
|
781
|
+
const { data } = await getV1TokensTransfersTransactionByTransactionHash({
|
|
782
|
+
...options,
|
|
783
|
+
...params,
|
|
784
|
+
signal,
|
|
785
|
+
throwOnError: true,
|
|
786
|
+
});
|
|
787
|
+
return data;
|
|
788
|
+
},
|
|
789
|
+
queryKey: getV1TokensTransfersTransactionByTransactionHashInfiniteQueryKey(options),
|
|
790
|
+
},
|
|
791
|
+
);
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
export const getV1TokensTransfersByContractAddressQueryKey = (
|
|
795
|
+
options: Options<GetV1TokensTransfersByContractAddressData>,
|
|
796
|
+
) => createQueryKey("getV1TokensTransfersByContractAddress", options);
|
|
797
|
+
|
|
798
|
+
export const getV1TokensTransfersByContractAddressOptions = (
|
|
799
|
+
options: Options<GetV1TokensTransfersByContractAddressData>,
|
|
800
|
+
) => {
|
|
801
|
+
return queryOptions({
|
|
802
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
803
|
+
const { data } = await getV1TokensTransfersByContractAddress({
|
|
804
|
+
...options,
|
|
805
|
+
...queryKey[0],
|
|
806
|
+
signal,
|
|
807
|
+
throwOnError: true,
|
|
808
|
+
});
|
|
809
|
+
return data;
|
|
810
|
+
},
|
|
811
|
+
queryKey: getV1TokensTransfersByContractAddressQueryKey(options),
|
|
812
|
+
});
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
export const getV1TokensTransfersByContractAddressInfiniteQueryKey = (
|
|
816
|
+
options: Options<GetV1TokensTransfersByContractAddressData>,
|
|
817
|
+
): QueryKey<Options<GetV1TokensTransfersByContractAddressData>> =>
|
|
818
|
+
createQueryKey("getV1TokensTransfersByContractAddress", options, true);
|
|
819
|
+
|
|
820
|
+
export const getV1TokensTransfersByContractAddressInfiniteOptions = (
|
|
821
|
+
options: Options<GetV1TokensTransfersByContractAddressData>,
|
|
822
|
+
) => {
|
|
823
|
+
return infiniteQueryOptions<
|
|
824
|
+
GetV1TokensTransfersByContractAddressResponse,
|
|
825
|
+
GetV1TokensTransfersByContractAddressError,
|
|
826
|
+
InfiniteData<GetV1TokensTransfersByContractAddressResponse>,
|
|
827
|
+
QueryKey<Options<GetV1TokensTransfersByContractAddressData>>,
|
|
828
|
+
| number
|
|
829
|
+
| null
|
|
830
|
+
| Pick<QueryKey<Options<GetV1TokensTransfersByContractAddressData>>[0], "body" | "headers" | "path" | "query">
|
|
831
|
+
>(
|
|
497
832
|
// @ts-ignore
|
|
498
833
|
{
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
834
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
835
|
+
// @ts-ignore
|
|
836
|
+
const page: Pick<
|
|
837
|
+
QueryKey<Options<GetV1TokensTransfersByContractAddressData>>[0],
|
|
838
|
+
"body" | "headers" | "path" | "query"
|
|
839
|
+
> =
|
|
840
|
+
typeof pageParam === "object"
|
|
841
|
+
? pageParam
|
|
842
|
+
: {
|
|
502
843
|
query: {
|
|
503
|
-
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
844
|
+
page: pageParam,
|
|
845
|
+
},
|
|
846
|
+
};
|
|
847
|
+
const params = createInfiniteParams(queryKey, page);
|
|
848
|
+
const { data } = await getV1TokensTransfersByContractAddress({
|
|
849
|
+
...options,
|
|
850
|
+
...params,
|
|
851
|
+
signal,
|
|
852
|
+
throwOnError: true,
|
|
853
|
+
});
|
|
854
|
+
return data;
|
|
855
|
+
},
|
|
856
|
+
queryKey: getV1TokensTransfersByContractAddressInfiniteQueryKey(options),
|
|
857
|
+
},
|
|
858
|
+
);
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
export const getV1TokensTransfersQueryKey = (options?: Options<GetV1TokensTransfersData>) =>
|
|
862
|
+
createQueryKey("getV1TokensTransfers", options);
|
|
520
863
|
|
|
521
864
|
export const getV1TokensTransfersOptions = (options?: Options<GetV1TokensTransfersData>) => {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
};
|
|
535
|
-
|
|
536
|
-
export const getV1TokensTransfersInfiniteQueryKey = (
|
|
865
|
+
return queryOptions({
|
|
866
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
867
|
+
const { data } = await getV1TokensTransfers({
|
|
868
|
+
...options,
|
|
869
|
+
...queryKey[0],
|
|
870
|
+
signal,
|
|
871
|
+
throwOnError: true,
|
|
872
|
+
});
|
|
873
|
+
return data;
|
|
874
|
+
},
|
|
875
|
+
queryKey: getV1TokensTransfersQueryKey(options),
|
|
876
|
+
});
|
|
877
|
+
};
|
|
878
|
+
|
|
879
|
+
export const getV1TokensTransfersInfiniteQueryKey = (
|
|
880
|
+
options?: Options<GetV1TokensTransfersData>,
|
|
881
|
+
): QueryKey<Options<GetV1TokensTransfersData>> => createQueryKey("getV1TokensTransfers", options, true);
|
|
537
882
|
|
|
538
883
|
export const getV1TokensTransfersInfiniteOptions = (options?: Options<GetV1TokensTransfersData>) => {
|
|
539
|
-
|
|
884
|
+
return infiniteQueryOptions<
|
|
885
|
+
GetV1TokensTransfersResponse,
|
|
886
|
+
GetV1TokensTransfersError,
|
|
887
|
+
InfiniteData<GetV1TokensTransfersResponse>,
|
|
888
|
+
QueryKey<Options<GetV1TokensTransfersData>>,
|
|
889
|
+
number | null | Pick<QueryKey<Options<GetV1TokensTransfersData>>[0], "body" | "headers" | "path" | "query">
|
|
890
|
+
>(
|
|
540
891
|
// @ts-ignore
|
|
541
892
|
{
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
893
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
894
|
+
// @ts-ignore
|
|
895
|
+
const page: Pick<QueryKey<Options<GetV1TokensTransfersData>>[0], "body" | "headers" | "path" | "query"> =
|
|
896
|
+
typeof pageParam === "object"
|
|
897
|
+
? pageParam
|
|
898
|
+
: {
|
|
545
899
|
query: {
|
|
546
|
-
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
900
|
+
page: pageParam,
|
|
901
|
+
},
|
|
902
|
+
};
|
|
903
|
+
const params = createInfiniteParams(queryKey, page);
|
|
904
|
+
const { data } = await getV1TokensTransfers({
|
|
905
|
+
...options,
|
|
906
|
+
...params,
|
|
907
|
+
signal,
|
|
908
|
+
throwOnError: true,
|
|
909
|
+
});
|
|
910
|
+
return data;
|
|
911
|
+
},
|
|
912
|
+
queryKey: getV1TokensTransfersInfiniteQueryKey(options),
|
|
913
|
+
},
|
|
914
|
+
);
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
export const getV1TokensErc20ByOwnerAddressQueryKey = (options: Options<GetV1TokensErc20ByOwnerAddressData>) =>
|
|
918
|
+
createQueryKey("getV1TokensErc20ByOwnerAddress", options);
|
|
563
919
|
|
|
564
920
|
export const getV1TokensErc20ByOwnerAddressOptions = (options: Options<GetV1TokensErc20ByOwnerAddressData>) => {
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
};
|
|
578
|
-
|
|
579
|
-
export const getV1TokensErc20ByOwnerAddressInfiniteQueryKey = (
|
|
921
|
+
return queryOptions({
|
|
922
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
923
|
+
const { data } = await getV1TokensErc20ByOwnerAddress({
|
|
924
|
+
...options,
|
|
925
|
+
...queryKey[0],
|
|
926
|
+
signal,
|
|
927
|
+
throwOnError: true,
|
|
928
|
+
});
|
|
929
|
+
return data;
|
|
930
|
+
},
|
|
931
|
+
queryKey: getV1TokensErc20ByOwnerAddressQueryKey(options),
|
|
932
|
+
});
|
|
933
|
+
};
|
|
934
|
+
|
|
935
|
+
export const getV1TokensErc20ByOwnerAddressInfiniteQueryKey = (
|
|
936
|
+
options: Options<GetV1TokensErc20ByOwnerAddressData>,
|
|
937
|
+
): QueryKey<Options<GetV1TokensErc20ByOwnerAddressData>> =>
|
|
938
|
+
createQueryKey("getV1TokensErc20ByOwnerAddress", options, true);
|
|
580
939
|
|
|
581
940
|
export const getV1TokensErc20ByOwnerAddressInfiniteOptions = (options: Options<GetV1TokensErc20ByOwnerAddressData>) => {
|
|
582
|
-
|
|
941
|
+
return infiniteQueryOptions<
|
|
942
|
+
GetV1TokensErc20ByOwnerAddressResponse,
|
|
943
|
+
DefaultError,
|
|
944
|
+
InfiniteData<GetV1TokensErc20ByOwnerAddressResponse>,
|
|
945
|
+
QueryKey<Options<GetV1TokensErc20ByOwnerAddressData>>,
|
|
946
|
+
| number
|
|
947
|
+
| null
|
|
948
|
+
| Pick<QueryKey<Options<GetV1TokensErc20ByOwnerAddressData>>[0], "body" | "headers" | "path" | "query">
|
|
949
|
+
>(
|
|
583
950
|
// @ts-ignore
|
|
584
951
|
{
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
952
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
953
|
+
// @ts-ignore
|
|
954
|
+
const page: Pick<
|
|
955
|
+
QueryKey<Options<GetV1TokensErc20ByOwnerAddressData>>[0],
|
|
956
|
+
"body" | "headers" | "path" | "query"
|
|
957
|
+
> =
|
|
958
|
+
typeof pageParam === "object"
|
|
959
|
+
? pageParam
|
|
960
|
+
: {
|
|
588
961
|
query: {
|
|
589
|
-
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
962
|
+
page: pageParam,
|
|
963
|
+
},
|
|
964
|
+
};
|
|
965
|
+
const params = createInfiniteParams(queryKey, page);
|
|
966
|
+
const { data } = await getV1TokensErc20ByOwnerAddress({
|
|
967
|
+
...options,
|
|
968
|
+
...params,
|
|
969
|
+
signal,
|
|
970
|
+
throwOnError: true,
|
|
971
|
+
});
|
|
972
|
+
return data;
|
|
973
|
+
},
|
|
974
|
+
queryKey: getV1TokensErc20ByOwnerAddressInfiniteQueryKey(options),
|
|
975
|
+
},
|
|
976
|
+
);
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
export const getV1TokensErc721ByOwnerAddressQueryKey = (options: Options<GetV1TokensErc721ByOwnerAddressData>) =>
|
|
980
|
+
createQueryKey("getV1TokensErc721ByOwnerAddress", options);
|
|
606
981
|
|
|
607
982
|
export const getV1TokensErc721ByOwnerAddressOptions = (options: Options<GetV1TokensErc721ByOwnerAddressData>) => {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
};
|
|
621
|
-
|
|
622
|
-
export const getV1TokensErc721ByOwnerAddressInfiniteQueryKey = (
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
983
|
+
return queryOptions({
|
|
984
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
985
|
+
const { data } = await getV1TokensErc721ByOwnerAddress({
|
|
986
|
+
...options,
|
|
987
|
+
...queryKey[0],
|
|
988
|
+
signal,
|
|
989
|
+
throwOnError: true,
|
|
990
|
+
});
|
|
991
|
+
return data;
|
|
992
|
+
},
|
|
993
|
+
queryKey: getV1TokensErc721ByOwnerAddressQueryKey(options),
|
|
994
|
+
});
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
export const getV1TokensErc721ByOwnerAddressInfiniteQueryKey = (
|
|
998
|
+
options: Options<GetV1TokensErc721ByOwnerAddressData>,
|
|
999
|
+
): QueryKey<Options<GetV1TokensErc721ByOwnerAddressData>> =>
|
|
1000
|
+
createQueryKey("getV1TokensErc721ByOwnerAddress", options, true);
|
|
1001
|
+
|
|
1002
|
+
export const getV1TokensErc721ByOwnerAddressInfiniteOptions = (
|
|
1003
|
+
options: Options<GetV1TokensErc721ByOwnerAddressData>,
|
|
1004
|
+
) => {
|
|
1005
|
+
return infiniteQueryOptions<
|
|
1006
|
+
GetV1TokensErc721ByOwnerAddressResponse,
|
|
1007
|
+
DefaultError,
|
|
1008
|
+
InfiniteData<GetV1TokensErc721ByOwnerAddressResponse>,
|
|
1009
|
+
QueryKey<Options<GetV1TokensErc721ByOwnerAddressData>>,
|
|
1010
|
+
| number
|
|
1011
|
+
| null
|
|
1012
|
+
| Pick<QueryKey<Options<GetV1TokensErc721ByOwnerAddressData>>[0], "body" | "headers" | "path" | "query">
|
|
1013
|
+
>(
|
|
626
1014
|
// @ts-ignore
|
|
627
1015
|
{
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
1016
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1017
|
+
// @ts-ignore
|
|
1018
|
+
const page: Pick<
|
|
1019
|
+
QueryKey<Options<GetV1TokensErc721ByOwnerAddressData>>[0],
|
|
1020
|
+
"body" | "headers" | "path" | "query"
|
|
1021
|
+
> =
|
|
1022
|
+
typeof pageParam === "object"
|
|
1023
|
+
? pageParam
|
|
1024
|
+
: {
|
|
631
1025
|
query: {
|
|
632
|
-
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
1026
|
+
page: pageParam,
|
|
1027
|
+
},
|
|
1028
|
+
};
|
|
1029
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1030
|
+
const { data } = await getV1TokensErc721ByOwnerAddress({
|
|
1031
|
+
...options,
|
|
1032
|
+
...params,
|
|
1033
|
+
signal,
|
|
1034
|
+
throwOnError: true,
|
|
1035
|
+
});
|
|
1036
|
+
return data;
|
|
1037
|
+
},
|
|
1038
|
+
queryKey: getV1TokensErc721ByOwnerAddressInfiniteQueryKey(options),
|
|
1039
|
+
},
|
|
1040
|
+
);
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
export const getV1TokensErc1155ByOwnerAddressQueryKey = (options: Options<GetV1TokensErc1155ByOwnerAddressData>) =>
|
|
1044
|
+
createQueryKey("getV1TokensErc1155ByOwnerAddress", options);
|
|
649
1045
|
|
|
650
1046
|
export const getV1TokensErc1155ByOwnerAddressOptions = (options: Options<GetV1TokensErc1155ByOwnerAddressData>) => {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
};
|
|
664
|
-
|
|
665
|
-
export const getV1TokensErc1155ByOwnerAddressInfiniteQueryKey = (
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
1047
|
+
return queryOptions({
|
|
1048
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1049
|
+
const { data } = await getV1TokensErc1155ByOwnerAddress({
|
|
1050
|
+
...options,
|
|
1051
|
+
...queryKey[0],
|
|
1052
|
+
signal,
|
|
1053
|
+
throwOnError: true,
|
|
1054
|
+
});
|
|
1055
|
+
return data;
|
|
1056
|
+
},
|
|
1057
|
+
queryKey: getV1TokensErc1155ByOwnerAddressQueryKey(options),
|
|
1058
|
+
});
|
|
1059
|
+
};
|
|
1060
|
+
|
|
1061
|
+
export const getV1TokensErc1155ByOwnerAddressInfiniteQueryKey = (
|
|
1062
|
+
options: Options<GetV1TokensErc1155ByOwnerAddressData>,
|
|
1063
|
+
): QueryKey<Options<GetV1TokensErc1155ByOwnerAddressData>> =>
|
|
1064
|
+
createQueryKey("getV1TokensErc1155ByOwnerAddress", options, true);
|
|
1065
|
+
|
|
1066
|
+
export const getV1TokensErc1155ByOwnerAddressInfiniteOptions = (
|
|
1067
|
+
options: Options<GetV1TokensErc1155ByOwnerAddressData>,
|
|
1068
|
+
) => {
|
|
1069
|
+
return infiniteQueryOptions<
|
|
1070
|
+
GetV1TokensErc1155ByOwnerAddressResponse,
|
|
1071
|
+
DefaultError,
|
|
1072
|
+
InfiniteData<GetV1TokensErc1155ByOwnerAddressResponse>,
|
|
1073
|
+
QueryKey<Options<GetV1TokensErc1155ByOwnerAddressData>>,
|
|
1074
|
+
| number
|
|
1075
|
+
| null
|
|
1076
|
+
| Pick<QueryKey<Options<GetV1TokensErc1155ByOwnerAddressData>>[0], "body" | "headers" | "path" | "query">
|
|
1077
|
+
>(
|
|
669
1078
|
// @ts-ignore
|
|
670
1079
|
{
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
1080
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1081
|
+
// @ts-ignore
|
|
1082
|
+
const page: Pick<
|
|
1083
|
+
QueryKey<Options<GetV1TokensErc1155ByOwnerAddressData>>[0],
|
|
1084
|
+
"body" | "headers" | "path" | "query"
|
|
1085
|
+
> =
|
|
1086
|
+
typeof pageParam === "object"
|
|
1087
|
+
? pageParam
|
|
1088
|
+
: {
|
|
674
1089
|
query: {
|
|
675
|
-
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
1090
|
+
page: pageParam,
|
|
1091
|
+
},
|
|
1092
|
+
};
|
|
1093
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1094
|
+
const { data } = await getV1TokensErc1155ByOwnerAddress({
|
|
1095
|
+
...options,
|
|
1096
|
+
...params,
|
|
1097
|
+
signal,
|
|
1098
|
+
throwOnError: true,
|
|
1099
|
+
});
|
|
1100
|
+
return data;
|
|
1101
|
+
},
|
|
1102
|
+
queryKey: getV1TokensErc1155ByOwnerAddressInfiniteQueryKey(options),
|
|
1103
|
+
},
|
|
1104
|
+
);
|
|
1105
|
+
};
|
|
1106
|
+
|
|
1107
|
+
export const getV1TokensPriceSupportedQueryKey = (options?: Options<GetV1TokensPriceSupportedData>) =>
|
|
1108
|
+
createQueryKey("getV1TokensPriceSupported", options);
|
|
692
1109
|
|
|
693
1110
|
export const getV1TokensPriceSupportedOptions = (options?: Options<GetV1TokensPriceSupportedData>) => {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
};
|
|
707
|
-
|
|
708
|
-
export const getV1TokensPriceQueryKey = (options?: Options<GetV1TokensPriceData>) =>
|
|
1111
|
+
return queryOptions({
|
|
1112
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1113
|
+
const { data } = await getV1TokensPriceSupported({
|
|
1114
|
+
...options,
|
|
1115
|
+
...queryKey[0],
|
|
1116
|
+
signal,
|
|
1117
|
+
throwOnError: true,
|
|
1118
|
+
});
|
|
1119
|
+
return data;
|
|
1120
|
+
},
|
|
1121
|
+
queryKey: getV1TokensPriceSupportedQueryKey(options),
|
|
1122
|
+
});
|
|
1123
|
+
};
|
|
1124
|
+
|
|
1125
|
+
export const getV1TokensPriceQueryKey = (options?: Options<GetV1TokensPriceData>) =>
|
|
1126
|
+
createQueryKey("getV1TokensPrice", options);
|
|
709
1127
|
|
|
710
1128
|
export const getV1TokensPriceOptions = (options?: Options<GetV1TokensPriceData>) => {
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
};
|
|
724
|
-
|
|
725
|
-
export const getV1TokensLookupQueryKey = (options: Options<GetV1TokensLookupData>) =>
|
|
1129
|
+
return queryOptions({
|
|
1130
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1131
|
+
const { data } = await getV1TokensPrice({
|
|
1132
|
+
...options,
|
|
1133
|
+
...queryKey[0],
|
|
1134
|
+
signal,
|
|
1135
|
+
throwOnError: true,
|
|
1136
|
+
});
|
|
1137
|
+
return data;
|
|
1138
|
+
},
|
|
1139
|
+
queryKey: getV1TokensPriceQueryKey(options),
|
|
1140
|
+
});
|
|
1141
|
+
};
|
|
1142
|
+
|
|
1143
|
+
export const getV1TokensLookupQueryKey = (options: Options<GetV1TokensLookupData>) =>
|
|
1144
|
+
createQueryKey("getV1TokensLookup", options);
|
|
726
1145
|
|
|
727
1146
|
export const getV1TokensLookupOptions = (options: Options<GetV1TokensLookupData>) => {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
};
|
|
741
|
-
|
|
742
|
-
export const getV1ResolveByInputQueryKey = (options: Options<GetV1ResolveByInputData>) =>
|
|
1147
|
+
return queryOptions({
|
|
1148
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1149
|
+
const { data } = await getV1TokensLookup({
|
|
1150
|
+
...options,
|
|
1151
|
+
...queryKey[0],
|
|
1152
|
+
signal,
|
|
1153
|
+
throwOnError: true,
|
|
1154
|
+
});
|
|
1155
|
+
return data;
|
|
1156
|
+
},
|
|
1157
|
+
queryKey: getV1TokensLookupQueryKey(options),
|
|
1158
|
+
});
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
export const getV1ResolveByInputQueryKey = (options: Options<GetV1ResolveByInputData>) =>
|
|
1162
|
+
createQueryKey("getV1ResolveByInput", options);
|
|
743
1163
|
|
|
744
1164
|
export const getV1ResolveByInputOptions = (options: Options<GetV1ResolveByInputData>) => {
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
};
|
|
758
|
-
|
|
759
|
-
export const getV1BlocksQueryKey = (options?: Options<GetV1BlocksData>) => createQueryKey(
|
|
1165
|
+
return queryOptions({
|
|
1166
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1167
|
+
const { data } = await getV1ResolveByInput({
|
|
1168
|
+
...options,
|
|
1169
|
+
...queryKey[0],
|
|
1170
|
+
signal,
|
|
1171
|
+
throwOnError: true,
|
|
1172
|
+
});
|
|
1173
|
+
return data;
|
|
1174
|
+
},
|
|
1175
|
+
queryKey: getV1ResolveByInputQueryKey(options),
|
|
1176
|
+
});
|
|
1177
|
+
};
|
|
1178
|
+
|
|
1179
|
+
export const getV1BlocksQueryKey = (options?: Options<GetV1BlocksData>) => createQueryKey("getV1Blocks", options);
|
|
760
1180
|
|
|
761
1181
|
export const getV1BlocksOptions = (options?: Options<GetV1BlocksData>) => {
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
};
|
|
775
|
-
|
|
776
|
-
export const getV1BlocksInfiniteQueryKey = (options?: Options<GetV1BlocksData>): QueryKey<Options<GetV1BlocksData>> =>
|
|
1182
|
+
return queryOptions({
|
|
1183
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1184
|
+
const { data } = await getV1Blocks({
|
|
1185
|
+
...options,
|
|
1186
|
+
...queryKey[0],
|
|
1187
|
+
signal,
|
|
1188
|
+
throwOnError: true,
|
|
1189
|
+
});
|
|
1190
|
+
return data;
|
|
1191
|
+
},
|
|
1192
|
+
queryKey: getV1BlocksQueryKey(options),
|
|
1193
|
+
});
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
export const getV1BlocksInfiniteQueryKey = (options?: Options<GetV1BlocksData>): QueryKey<Options<GetV1BlocksData>> =>
|
|
1197
|
+
createQueryKey("getV1Blocks", options, true);
|
|
777
1198
|
|
|
778
1199
|
export const getV1BlocksInfiniteOptions = (options?: Options<GetV1BlocksData>) => {
|
|
779
|
-
|
|
1200
|
+
return infiniteQueryOptions<
|
|
1201
|
+
GetV1BlocksResponse,
|
|
1202
|
+
GetV1BlocksError,
|
|
1203
|
+
InfiniteData<GetV1BlocksResponse>,
|
|
1204
|
+
QueryKey<Options<GetV1BlocksData>>,
|
|
1205
|
+
number | null | Pick<QueryKey<Options<GetV1BlocksData>>[0], "body" | "headers" | "path" | "query">
|
|
1206
|
+
>(
|
|
780
1207
|
// @ts-ignore
|
|
781
1208
|
{
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
1209
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1210
|
+
// @ts-ignore
|
|
1211
|
+
const page: Pick<QueryKey<Options<GetV1BlocksData>>[0], "body" | "headers" | "path" | "query"> =
|
|
1212
|
+
typeof pageParam === "object"
|
|
1213
|
+
? pageParam
|
|
1214
|
+
: {
|
|
785
1215
|
query: {
|
|
786
|
-
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
1216
|
+
page: pageParam,
|
|
1217
|
+
},
|
|
1218
|
+
};
|
|
1219
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1220
|
+
const { data } = await getV1Blocks({
|
|
1221
|
+
...options,
|
|
1222
|
+
...params,
|
|
1223
|
+
signal,
|
|
1224
|
+
throwOnError: true,
|
|
1225
|
+
});
|
|
1226
|
+
return data;
|
|
1227
|
+
},
|
|
1228
|
+
queryKey: getV1BlocksInfiniteQueryKey(options),
|
|
1229
|
+
},
|
|
1230
|
+
);
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1233
|
+
export const getV1ContractsAbiByContractAddressQueryKey = (options: Options<GetV1ContractsAbiByContractAddressData>) =>
|
|
1234
|
+
createQueryKey("getV1ContractsAbiByContractAddress", options);
|
|
803
1235
|
|
|
804
1236
|
export const getV1ContractsAbiByContractAddressOptions = (options: Options<GetV1ContractsAbiByContractAddressData>) => {
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
};
|
|
818
|
-
|
|
819
|
-
export const getV1ContractsMetadataByContractAddressQueryKey = (
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
1237
|
+
return queryOptions({
|
|
1238
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1239
|
+
const { data } = await getV1ContractsAbiByContractAddress({
|
|
1240
|
+
...options,
|
|
1241
|
+
...queryKey[0],
|
|
1242
|
+
signal,
|
|
1243
|
+
throwOnError: true,
|
|
1244
|
+
});
|
|
1245
|
+
return data;
|
|
1246
|
+
},
|
|
1247
|
+
queryKey: getV1ContractsAbiByContractAddressQueryKey(options),
|
|
1248
|
+
});
|
|
1249
|
+
};
|
|
1250
|
+
|
|
1251
|
+
export const getV1ContractsMetadataByContractAddressQueryKey = (
|
|
1252
|
+
options: Options<GetV1ContractsMetadataByContractAddressData>,
|
|
1253
|
+
) => createQueryKey("getV1ContractsMetadataByContractAddress", options);
|
|
1254
|
+
|
|
1255
|
+
export const getV1ContractsMetadataByContractAddressOptions = (
|
|
1256
|
+
options: Options<GetV1ContractsMetadataByContractAddressData>,
|
|
1257
|
+
) => {
|
|
1258
|
+
return queryOptions({
|
|
1259
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1260
|
+
const { data } = await getV1ContractsMetadataByContractAddress({
|
|
1261
|
+
...options,
|
|
1262
|
+
...queryKey[0],
|
|
1263
|
+
signal,
|
|
1264
|
+
throwOnError: true,
|
|
1265
|
+
});
|
|
1266
|
+
return data;
|
|
1267
|
+
},
|
|
1268
|
+
queryKey: getV1ContractsMetadataByContractAddressQueryKey(options),
|
|
1269
|
+
});
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1272
|
+
export const postV1DecodeByContractAddressQueryKey = (options: Options<PostV1DecodeByContractAddressData>) =>
|
|
1273
|
+
createQueryKey("postV1DecodeByContractAddress", options);
|
|
837
1274
|
|
|
838
1275
|
export const postV1DecodeByContractAddressOptions = (options: Options<PostV1DecodeByContractAddressData>) => {
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
};
|
|
852
|
-
|
|
853
|
-
export const postV1DecodeByContractAddressMutation = (
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
1276
|
+
return queryOptions({
|
|
1277
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1278
|
+
const { data } = await postV1DecodeByContractAddress({
|
|
1279
|
+
...options,
|
|
1280
|
+
...queryKey[0],
|
|
1281
|
+
signal,
|
|
1282
|
+
throwOnError: true,
|
|
1283
|
+
});
|
|
1284
|
+
return data;
|
|
1285
|
+
},
|
|
1286
|
+
queryKey: postV1DecodeByContractAddressQueryKey(options),
|
|
1287
|
+
});
|
|
1288
|
+
};
|
|
1289
|
+
|
|
1290
|
+
export const postV1DecodeByContractAddressMutation = (
|
|
1291
|
+
options?: Partial<Options<PostV1DecodeByContractAddressData>>,
|
|
1292
|
+
): UseMutationOptions<
|
|
1293
|
+
PostV1DecodeByContractAddressResponse,
|
|
1294
|
+
PostV1DecodeByContractAddressError,
|
|
1295
|
+
Options<PostV1DecodeByContractAddressData>
|
|
1296
|
+
> => {
|
|
1297
|
+
const mutationOptions: UseMutationOptions<
|
|
1298
|
+
PostV1DecodeByContractAddressResponse,
|
|
1299
|
+
PostV1DecodeByContractAddressError,
|
|
1300
|
+
Options<PostV1DecodeByContractAddressData>
|
|
1301
|
+
> = {
|
|
1302
|
+
mutationFn: async localOptions => {
|
|
1303
|
+
const { data } = await postV1DecodeByContractAddress({
|
|
1304
|
+
...options,
|
|
1305
|
+
...localOptions,
|
|
1306
|
+
throwOnError: true,
|
|
1307
|
+
});
|
|
1308
|
+
return data;
|
|
1309
|
+
},
|
|
1310
|
+
};
|
|
1311
|
+
return mutationOptions;
|
|
1312
|
+
};
|
|
1313
|
+
|
|
1314
|
+
export const getV1NftsBalanceByOwnerAddressQueryKey = (options: Options<GetV1NftsBalanceByOwnerAddressData>) =>
|
|
1315
|
+
createQueryKey("getV1NftsBalanceByOwnerAddress", options);
|
|
868
1316
|
|
|
869
1317
|
export const getV1NftsBalanceByOwnerAddressOptions = (options: Options<GetV1NftsBalanceByOwnerAddressData>) => {
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
};
|
|
883
|
-
|
|
884
|
-
export const getV1NftsBalanceByOwnerAddressInfiniteQueryKey = (
|
|
1318
|
+
return queryOptions({
|
|
1319
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1320
|
+
const { data } = await getV1NftsBalanceByOwnerAddress({
|
|
1321
|
+
...options,
|
|
1322
|
+
...queryKey[0],
|
|
1323
|
+
signal,
|
|
1324
|
+
throwOnError: true,
|
|
1325
|
+
});
|
|
1326
|
+
return data;
|
|
1327
|
+
},
|
|
1328
|
+
queryKey: getV1NftsBalanceByOwnerAddressQueryKey(options),
|
|
1329
|
+
});
|
|
1330
|
+
};
|
|
1331
|
+
|
|
1332
|
+
export const getV1NftsBalanceByOwnerAddressInfiniteQueryKey = (
|
|
1333
|
+
options: Options<GetV1NftsBalanceByOwnerAddressData>,
|
|
1334
|
+
): QueryKey<Options<GetV1NftsBalanceByOwnerAddressData>> =>
|
|
1335
|
+
createQueryKey("getV1NftsBalanceByOwnerAddress", options, true);
|
|
885
1336
|
|
|
886
1337
|
export const getV1NftsBalanceByOwnerAddressInfiniteOptions = (options: Options<GetV1NftsBalanceByOwnerAddressData>) => {
|
|
887
|
-
|
|
1338
|
+
return infiniteQueryOptions<
|
|
1339
|
+
GetV1NftsBalanceByOwnerAddressResponse,
|
|
1340
|
+
DefaultError,
|
|
1341
|
+
InfiniteData<GetV1NftsBalanceByOwnerAddressResponse>,
|
|
1342
|
+
QueryKey<Options<GetV1NftsBalanceByOwnerAddressData>>,
|
|
1343
|
+
| number
|
|
1344
|
+
| null
|
|
1345
|
+
| Pick<QueryKey<Options<GetV1NftsBalanceByOwnerAddressData>>[0], "body" | "headers" | "path" | "query">
|
|
1346
|
+
>(
|
|
888
1347
|
// @ts-ignore
|
|
889
1348
|
{
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
1349
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1350
|
+
// @ts-ignore
|
|
1351
|
+
const page: Pick<
|
|
1352
|
+
QueryKey<Options<GetV1NftsBalanceByOwnerAddressData>>[0],
|
|
1353
|
+
"body" | "headers" | "path" | "query"
|
|
1354
|
+
> =
|
|
1355
|
+
typeof pageParam === "object"
|
|
1356
|
+
? pageParam
|
|
1357
|
+
: {
|
|
893
1358
|
query: {
|
|
894
|
-
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
};
|
|
926
|
-
|
|
927
|
-
|
|
1359
|
+
page: pageParam,
|
|
1360
|
+
},
|
|
1361
|
+
};
|
|
1362
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1363
|
+
const { data } = await getV1NftsBalanceByOwnerAddress({
|
|
1364
|
+
...options,
|
|
1365
|
+
...params,
|
|
1366
|
+
signal,
|
|
1367
|
+
throwOnError: true,
|
|
1368
|
+
});
|
|
1369
|
+
return data;
|
|
1370
|
+
},
|
|
1371
|
+
queryKey: getV1NftsBalanceByOwnerAddressInfiniteQueryKey(options),
|
|
1372
|
+
},
|
|
1373
|
+
);
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
export const getV1NftsCollectionsByContractAddressQueryKey = (
|
|
1377
|
+
options: Options<GetV1NftsCollectionsByContractAddressData>,
|
|
1378
|
+
) => createQueryKey("getV1NftsCollectionsByContractAddress", options);
|
|
1379
|
+
|
|
1380
|
+
export const getV1NftsCollectionsByContractAddressOptions = (
|
|
1381
|
+
options: Options<GetV1NftsCollectionsByContractAddressData>,
|
|
1382
|
+
) => {
|
|
1383
|
+
return queryOptions({
|
|
1384
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1385
|
+
const { data } = await getV1NftsCollectionsByContractAddress({
|
|
1386
|
+
...options,
|
|
1387
|
+
...queryKey[0],
|
|
1388
|
+
signal,
|
|
1389
|
+
throwOnError: true,
|
|
1390
|
+
});
|
|
1391
|
+
return data;
|
|
1392
|
+
},
|
|
1393
|
+
queryKey: getV1NftsCollectionsByContractAddressQueryKey(options),
|
|
1394
|
+
});
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
export const getV1NftsQueryKey = (options: Options<GetV1NftsData>) => createQueryKey("getV1Nfts", options);
|
|
928
1398
|
|
|
929
1399
|
export const getV1NftsOptions = (options: Options<GetV1NftsData>) => {
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
};
|
|
943
|
-
|
|
944
|
-
export const getV1NftsInfiniteQueryKey = (options: Options<GetV1NftsData>): QueryKey<Options<GetV1NftsData>> =>
|
|
1400
|
+
return queryOptions({
|
|
1401
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1402
|
+
const { data } = await getV1Nfts({
|
|
1403
|
+
...options,
|
|
1404
|
+
...queryKey[0],
|
|
1405
|
+
signal,
|
|
1406
|
+
throwOnError: true,
|
|
1407
|
+
});
|
|
1408
|
+
return data;
|
|
1409
|
+
},
|
|
1410
|
+
queryKey: getV1NftsQueryKey(options),
|
|
1411
|
+
});
|
|
1412
|
+
};
|
|
1413
|
+
|
|
1414
|
+
export const getV1NftsInfiniteQueryKey = (options: Options<GetV1NftsData>): QueryKey<Options<GetV1NftsData>> =>
|
|
1415
|
+
createQueryKey("getV1Nfts", options, true);
|
|
945
1416
|
|
|
946
1417
|
export const getV1NftsInfiniteOptions = (options: Options<GetV1NftsData>) => {
|
|
947
|
-
|
|
1418
|
+
return infiniteQueryOptions<
|
|
1419
|
+
GetV1NftsResponse,
|
|
1420
|
+
GetV1NftsError,
|
|
1421
|
+
InfiniteData<GetV1NftsResponse>,
|
|
1422
|
+
QueryKey<Options<GetV1NftsData>>,
|
|
1423
|
+
number | null | Pick<QueryKey<Options<GetV1NftsData>>[0], "body" | "headers" | "path" | "query">
|
|
1424
|
+
>(
|
|
948
1425
|
// @ts-ignore
|
|
949
1426
|
{
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
1427
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1428
|
+
// @ts-ignore
|
|
1429
|
+
const page: Pick<QueryKey<Options<GetV1NftsData>>[0], "body" | "headers" | "path" | "query"> =
|
|
1430
|
+
typeof pageParam === "object"
|
|
1431
|
+
? pageParam
|
|
1432
|
+
: {
|
|
953
1433
|
query: {
|
|
954
|
-
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
1434
|
+
page: pageParam,
|
|
1435
|
+
},
|
|
1436
|
+
};
|
|
1437
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1438
|
+
const { data } = await getV1Nfts({
|
|
1439
|
+
...options,
|
|
1440
|
+
...params,
|
|
1441
|
+
signal,
|
|
1442
|
+
throwOnError: true,
|
|
1443
|
+
});
|
|
1444
|
+
return data;
|
|
1445
|
+
},
|
|
1446
|
+
queryKey: getV1NftsInfiniteQueryKey(options),
|
|
1447
|
+
},
|
|
1448
|
+
);
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1451
|
+
export const getV1NftsOwnersByContractAddressQueryKey = (options: Options<GetV1NftsOwnersByContractAddressData>) =>
|
|
1452
|
+
createQueryKey("getV1NftsOwnersByContractAddress", options);
|
|
971
1453
|
|
|
972
1454
|
export const getV1NftsOwnersByContractAddressOptions = (options: Options<GetV1NftsOwnersByContractAddressData>) => {
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
};
|
|
986
|
-
|
|
987
|
-
export const getV1NftsOwnersByContractAddressInfiniteQueryKey = (
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
1455
|
+
return queryOptions({
|
|
1456
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1457
|
+
const { data } = await getV1NftsOwnersByContractAddress({
|
|
1458
|
+
...options,
|
|
1459
|
+
...queryKey[0],
|
|
1460
|
+
signal,
|
|
1461
|
+
throwOnError: true,
|
|
1462
|
+
});
|
|
1463
|
+
return data;
|
|
1464
|
+
},
|
|
1465
|
+
queryKey: getV1NftsOwnersByContractAddressQueryKey(options),
|
|
1466
|
+
});
|
|
1467
|
+
};
|
|
1468
|
+
|
|
1469
|
+
export const getV1NftsOwnersByContractAddressInfiniteQueryKey = (
|
|
1470
|
+
options: Options<GetV1NftsOwnersByContractAddressData>,
|
|
1471
|
+
): QueryKey<Options<GetV1NftsOwnersByContractAddressData>> =>
|
|
1472
|
+
createQueryKey("getV1NftsOwnersByContractAddress", options, true);
|
|
1473
|
+
|
|
1474
|
+
export const getV1NftsOwnersByContractAddressInfiniteOptions = (
|
|
1475
|
+
options: Options<GetV1NftsOwnersByContractAddressData>,
|
|
1476
|
+
) => {
|
|
1477
|
+
return infiniteQueryOptions<
|
|
1478
|
+
GetV1NftsOwnersByContractAddressResponse,
|
|
1479
|
+
GetV1NftsOwnersByContractAddressError,
|
|
1480
|
+
InfiniteData<GetV1NftsOwnersByContractAddressResponse>,
|
|
1481
|
+
QueryKey<Options<GetV1NftsOwnersByContractAddressData>>,
|
|
1482
|
+
| number
|
|
1483
|
+
| null
|
|
1484
|
+
| Pick<QueryKey<Options<GetV1NftsOwnersByContractAddressData>>[0], "body" | "headers" | "path" | "query">
|
|
1485
|
+
>(
|
|
991
1486
|
// @ts-ignore
|
|
992
1487
|
{
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
1488
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1489
|
+
// @ts-ignore
|
|
1490
|
+
const page: Pick<
|
|
1491
|
+
QueryKey<Options<GetV1NftsOwnersByContractAddressData>>[0],
|
|
1492
|
+
"body" | "headers" | "path" | "query"
|
|
1493
|
+
> =
|
|
1494
|
+
typeof pageParam === "object"
|
|
1495
|
+
? pageParam
|
|
1496
|
+
: {
|
|
996
1497
|
query: {
|
|
997
|
-
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
};
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1498
|
+
page: pageParam,
|
|
1499
|
+
},
|
|
1500
|
+
};
|
|
1501
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1502
|
+
const { data } = await getV1NftsOwnersByContractAddress({
|
|
1503
|
+
...options,
|
|
1504
|
+
...params,
|
|
1505
|
+
signal,
|
|
1506
|
+
throwOnError: true,
|
|
1507
|
+
});
|
|
1508
|
+
return data;
|
|
1509
|
+
},
|
|
1510
|
+
queryKey: getV1NftsOwnersByContractAddressInfiniteQueryKey(options),
|
|
1511
|
+
},
|
|
1512
|
+
);
|
|
1513
|
+
};
|
|
1514
|
+
|
|
1515
|
+
export const getV1NftsOwnersByContractAddressByTokenIdQueryKey = (
|
|
1516
|
+
options: Options<GetV1NftsOwnersByContractAddressByTokenIdData>,
|
|
1517
|
+
) => createQueryKey("getV1NftsOwnersByContractAddressByTokenId", options);
|
|
1518
|
+
|
|
1519
|
+
export const getV1NftsOwnersByContractAddressByTokenIdOptions = (
|
|
1520
|
+
options: Options<GetV1NftsOwnersByContractAddressByTokenIdData>,
|
|
1521
|
+
) => {
|
|
1522
|
+
return queryOptions({
|
|
1523
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1524
|
+
const { data } = await getV1NftsOwnersByContractAddressByTokenId({
|
|
1525
|
+
...options,
|
|
1526
|
+
...queryKey[0],
|
|
1527
|
+
signal,
|
|
1528
|
+
throwOnError: true,
|
|
1529
|
+
});
|
|
1530
|
+
return data;
|
|
1531
|
+
},
|
|
1532
|
+
queryKey: getV1NftsOwnersByContractAddressByTokenIdQueryKey(options),
|
|
1533
|
+
});
|
|
1534
|
+
};
|
|
1535
|
+
|
|
1536
|
+
export const getV1NftsOwnersByContractAddressByTokenIdInfiniteQueryKey = (
|
|
1537
|
+
options: Options<GetV1NftsOwnersByContractAddressByTokenIdData>,
|
|
1538
|
+
): QueryKey<Options<GetV1NftsOwnersByContractAddressByTokenIdData>> =>
|
|
1539
|
+
createQueryKey("getV1NftsOwnersByContractAddressByTokenId", options, true);
|
|
1540
|
+
|
|
1541
|
+
export const getV1NftsOwnersByContractAddressByTokenIdInfiniteOptions = (
|
|
1542
|
+
options: Options<GetV1NftsOwnersByContractAddressByTokenIdData>,
|
|
1543
|
+
) => {
|
|
1544
|
+
return infiniteQueryOptions<
|
|
1545
|
+
GetV1NftsOwnersByContractAddressByTokenIdResponse,
|
|
1546
|
+
GetV1NftsOwnersByContractAddressByTokenIdError,
|
|
1547
|
+
InfiniteData<GetV1NftsOwnersByContractAddressByTokenIdResponse>,
|
|
1548
|
+
QueryKey<Options<GetV1NftsOwnersByContractAddressByTokenIdData>>,
|
|
1549
|
+
| number
|
|
1550
|
+
| null
|
|
1551
|
+
| Pick<QueryKey<Options<GetV1NftsOwnersByContractAddressByTokenIdData>>[0], "body" | "headers" | "path" | "query">
|
|
1552
|
+
>(
|
|
1034
1553
|
// @ts-ignore
|
|
1035
1554
|
{
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1555
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1556
|
+
// @ts-ignore
|
|
1557
|
+
const page: Pick<
|
|
1558
|
+
QueryKey<Options<GetV1NftsOwnersByContractAddressByTokenIdData>>[0],
|
|
1559
|
+
"body" | "headers" | "path" | "query"
|
|
1560
|
+
> =
|
|
1561
|
+
typeof pageParam === "object"
|
|
1562
|
+
? pageParam
|
|
1563
|
+
: {
|
|
1039
1564
|
query: {
|
|
1040
|
-
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1565
|
+
page: pageParam,
|
|
1566
|
+
},
|
|
1567
|
+
};
|
|
1568
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1569
|
+
const { data } = await getV1NftsOwnersByContractAddressByTokenId({
|
|
1570
|
+
...options,
|
|
1571
|
+
...params,
|
|
1572
|
+
signal,
|
|
1573
|
+
throwOnError: true,
|
|
1574
|
+
});
|
|
1575
|
+
return data;
|
|
1576
|
+
},
|
|
1577
|
+
queryKey: getV1NftsOwnersByContractAddressByTokenIdInfiniteQueryKey(options),
|
|
1578
|
+
},
|
|
1579
|
+
);
|
|
1580
|
+
};
|
|
1581
|
+
|
|
1582
|
+
export const getV1NftsTransfersQueryKey = (options?: Options<GetV1NftsTransfersData>) =>
|
|
1583
|
+
createQueryKey("getV1NftsTransfers", options);
|
|
1057
1584
|
|
|
1058
1585
|
export const getV1NftsTransfersOptions = (options?: Options<GetV1NftsTransfersData>) => {
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
};
|
|
1072
|
-
|
|
1073
|
-
export const getV1NftsTransfersInfiniteQueryKey = (
|
|
1586
|
+
return queryOptions({
|
|
1587
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1588
|
+
const { data } = await getV1NftsTransfers({
|
|
1589
|
+
...options,
|
|
1590
|
+
...queryKey[0],
|
|
1591
|
+
signal,
|
|
1592
|
+
throwOnError: true,
|
|
1593
|
+
});
|
|
1594
|
+
return data;
|
|
1595
|
+
},
|
|
1596
|
+
queryKey: getV1NftsTransfersQueryKey(options),
|
|
1597
|
+
});
|
|
1598
|
+
};
|
|
1599
|
+
|
|
1600
|
+
export const getV1NftsTransfersInfiniteQueryKey = (
|
|
1601
|
+
options?: Options<GetV1NftsTransfersData>,
|
|
1602
|
+
): QueryKey<Options<GetV1NftsTransfersData>> => createQueryKey("getV1NftsTransfers", options, true);
|
|
1074
1603
|
|
|
1075
1604
|
export const getV1NftsTransfersInfiniteOptions = (options?: Options<GetV1NftsTransfersData>) => {
|
|
1076
|
-
|
|
1605
|
+
return infiniteQueryOptions<
|
|
1606
|
+
GetV1NftsTransfersResponse,
|
|
1607
|
+
GetV1NftsTransfersError,
|
|
1608
|
+
InfiniteData<GetV1NftsTransfersResponse>,
|
|
1609
|
+
QueryKey<Options<GetV1NftsTransfersData>>,
|
|
1610
|
+
number | null | Pick<QueryKey<Options<GetV1NftsTransfersData>>[0], "body" | "headers" | "path" | "query">
|
|
1611
|
+
>(
|
|
1077
1612
|
// @ts-ignore
|
|
1078
1613
|
{
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1614
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1615
|
+
// @ts-ignore
|
|
1616
|
+
const page: Pick<QueryKey<Options<GetV1NftsTransfersData>>[0], "body" | "headers" | "path" | "query"> =
|
|
1617
|
+
typeof pageParam === "object"
|
|
1618
|
+
? pageParam
|
|
1619
|
+
: {
|
|
1082
1620
|
query: {
|
|
1083
|
-
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
};
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1621
|
+
page: pageParam,
|
|
1622
|
+
},
|
|
1623
|
+
};
|
|
1624
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1625
|
+
const { data } = await getV1NftsTransfers({
|
|
1626
|
+
...options,
|
|
1627
|
+
...params,
|
|
1628
|
+
signal,
|
|
1629
|
+
throwOnError: true,
|
|
1630
|
+
});
|
|
1631
|
+
return data;
|
|
1632
|
+
},
|
|
1633
|
+
queryKey: getV1NftsTransfersInfiniteQueryKey(options),
|
|
1634
|
+
},
|
|
1635
|
+
);
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
export const getV1NftsTransfersTransactionByTransactionHashQueryKey = (
|
|
1639
|
+
options: Options<GetV1NftsTransfersTransactionByTransactionHashData>,
|
|
1640
|
+
) => createQueryKey("getV1NftsTransfersTransactionByTransactionHash", options);
|
|
1641
|
+
|
|
1642
|
+
export const getV1NftsTransfersTransactionByTransactionHashOptions = (
|
|
1643
|
+
options: Options<GetV1NftsTransfersTransactionByTransactionHashData>,
|
|
1644
|
+
) => {
|
|
1645
|
+
return queryOptions({
|
|
1646
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1647
|
+
const { data } = await getV1NftsTransfersTransactionByTransactionHash({
|
|
1648
|
+
...options,
|
|
1649
|
+
...queryKey[0],
|
|
1650
|
+
signal,
|
|
1651
|
+
throwOnError: true,
|
|
1652
|
+
});
|
|
1653
|
+
return data;
|
|
1654
|
+
},
|
|
1655
|
+
queryKey: getV1NftsTransfersTransactionByTransactionHashQueryKey(options),
|
|
1656
|
+
});
|
|
1657
|
+
};
|
|
1658
|
+
|
|
1659
|
+
export const getV1NftsTransfersTransactionByTransactionHashInfiniteQueryKey = (
|
|
1660
|
+
options: Options<GetV1NftsTransfersTransactionByTransactionHashData>,
|
|
1661
|
+
): QueryKey<Options<GetV1NftsTransfersTransactionByTransactionHashData>> =>
|
|
1662
|
+
createQueryKey("getV1NftsTransfersTransactionByTransactionHash", options, true);
|
|
1663
|
+
|
|
1664
|
+
export const getV1NftsTransfersTransactionByTransactionHashInfiniteOptions = (
|
|
1665
|
+
options: Options<GetV1NftsTransfersTransactionByTransactionHashData>,
|
|
1666
|
+
) => {
|
|
1667
|
+
return infiniteQueryOptions<
|
|
1668
|
+
GetV1NftsTransfersTransactionByTransactionHashResponse,
|
|
1669
|
+
GetV1NftsTransfersTransactionByTransactionHashError,
|
|
1670
|
+
InfiniteData<GetV1NftsTransfersTransactionByTransactionHashResponse>,
|
|
1671
|
+
QueryKey<Options<GetV1NftsTransfersTransactionByTransactionHashData>>,
|
|
1672
|
+
| number
|
|
1673
|
+
| null
|
|
1674
|
+
| Pick<
|
|
1675
|
+
QueryKey<Options<GetV1NftsTransfersTransactionByTransactionHashData>>[0],
|
|
1676
|
+
"body" | "headers" | "path" | "query"
|
|
1677
|
+
>
|
|
1678
|
+
>(
|
|
1120
1679
|
// @ts-ignore
|
|
1121
1680
|
{
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1681
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1682
|
+
// @ts-ignore
|
|
1683
|
+
const page: Pick<
|
|
1684
|
+
QueryKey<Options<GetV1NftsTransfersTransactionByTransactionHashData>>[0],
|
|
1685
|
+
"body" | "headers" | "path" | "query"
|
|
1686
|
+
> =
|
|
1687
|
+
typeof pageParam === "object"
|
|
1688
|
+
? pageParam
|
|
1689
|
+
: {
|
|
1125
1690
|
query: {
|
|
1126
|
-
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
};
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1691
|
+
page: pageParam,
|
|
1692
|
+
},
|
|
1693
|
+
};
|
|
1694
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1695
|
+
const { data } = await getV1NftsTransfersTransactionByTransactionHash({
|
|
1696
|
+
...options,
|
|
1697
|
+
...params,
|
|
1698
|
+
signal,
|
|
1699
|
+
throwOnError: true,
|
|
1700
|
+
});
|
|
1701
|
+
return data;
|
|
1702
|
+
},
|
|
1703
|
+
queryKey: getV1NftsTransfersTransactionByTransactionHashInfiniteQueryKey(options),
|
|
1704
|
+
},
|
|
1705
|
+
);
|
|
1706
|
+
};
|
|
1707
|
+
|
|
1708
|
+
export const getV1NftsTransfersByContractAddressQueryKey = (
|
|
1709
|
+
options: Options<GetV1NftsTransfersByContractAddressData>,
|
|
1710
|
+
) => createQueryKey("getV1NftsTransfersByContractAddress", options);
|
|
1711
|
+
|
|
1712
|
+
export const getV1NftsTransfersByContractAddressOptions = (
|
|
1713
|
+
options: Options<GetV1NftsTransfersByContractAddressData>,
|
|
1714
|
+
) => {
|
|
1715
|
+
return queryOptions({
|
|
1716
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1717
|
+
const { data } = await getV1NftsTransfersByContractAddress({
|
|
1718
|
+
...options,
|
|
1719
|
+
...queryKey[0],
|
|
1720
|
+
signal,
|
|
1721
|
+
throwOnError: true,
|
|
1722
|
+
});
|
|
1723
|
+
return data;
|
|
1724
|
+
},
|
|
1725
|
+
queryKey: getV1NftsTransfersByContractAddressQueryKey(options),
|
|
1726
|
+
});
|
|
1727
|
+
};
|
|
1728
|
+
|
|
1729
|
+
export const getV1NftsTransfersByContractAddressInfiniteQueryKey = (
|
|
1730
|
+
options: Options<GetV1NftsTransfersByContractAddressData>,
|
|
1731
|
+
): QueryKey<Options<GetV1NftsTransfersByContractAddressData>> =>
|
|
1732
|
+
createQueryKey("getV1NftsTransfersByContractAddress", options, true);
|
|
1733
|
+
|
|
1734
|
+
export const getV1NftsTransfersByContractAddressInfiniteOptions = (
|
|
1735
|
+
options: Options<GetV1NftsTransfersByContractAddressData>,
|
|
1736
|
+
) => {
|
|
1737
|
+
return infiniteQueryOptions<
|
|
1738
|
+
GetV1NftsTransfersByContractAddressResponse,
|
|
1739
|
+
GetV1NftsTransfersByContractAddressError,
|
|
1740
|
+
InfiniteData<GetV1NftsTransfersByContractAddressResponse>,
|
|
1741
|
+
QueryKey<Options<GetV1NftsTransfersByContractAddressData>>,
|
|
1742
|
+
| number
|
|
1743
|
+
| null
|
|
1744
|
+
| Pick<QueryKey<Options<GetV1NftsTransfersByContractAddressData>>[0], "body" | "headers" | "path" | "query">
|
|
1745
|
+
>(
|
|
1163
1746
|
// @ts-ignore
|
|
1164
1747
|
{
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1748
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1749
|
+
// @ts-ignore
|
|
1750
|
+
const page: Pick<
|
|
1751
|
+
QueryKey<Options<GetV1NftsTransfersByContractAddressData>>[0],
|
|
1752
|
+
"body" | "headers" | "path" | "query"
|
|
1753
|
+
> =
|
|
1754
|
+
typeof pageParam === "object"
|
|
1755
|
+
? pageParam
|
|
1756
|
+
: {
|
|
1168
1757
|
query: {
|
|
1169
|
-
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1758
|
+
page: pageParam,
|
|
1759
|
+
},
|
|
1760
|
+
};
|
|
1761
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1762
|
+
const { data } = await getV1NftsTransfersByContractAddress({
|
|
1763
|
+
...options,
|
|
1764
|
+
...params,
|
|
1765
|
+
signal,
|
|
1766
|
+
throwOnError: true,
|
|
1767
|
+
});
|
|
1768
|
+
return data;
|
|
1769
|
+
},
|
|
1770
|
+
queryKey: getV1NftsTransfersByContractAddressInfiniteQueryKey(options),
|
|
1771
|
+
},
|
|
1772
|
+
);
|
|
1773
|
+
};
|
|
1774
|
+
|
|
1775
|
+
export const getV1NftsByContractAddressQueryKey = (options: Options<GetV1NftsByContractAddressData>) =>
|
|
1776
|
+
createQueryKey("getV1NftsByContractAddress", options);
|
|
1186
1777
|
|
|
1187
1778
|
export const getV1NftsByContractAddressOptions = (options: Options<GetV1NftsByContractAddressData>) => {
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
};
|
|
1201
|
-
|
|
1202
|
-
export const getV1NftsByContractAddressInfiniteQueryKey = (
|
|
1779
|
+
return queryOptions({
|
|
1780
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1781
|
+
const { data } = await getV1NftsByContractAddress({
|
|
1782
|
+
...options,
|
|
1783
|
+
...queryKey[0],
|
|
1784
|
+
signal,
|
|
1785
|
+
throwOnError: true,
|
|
1786
|
+
});
|
|
1787
|
+
return data;
|
|
1788
|
+
},
|
|
1789
|
+
queryKey: getV1NftsByContractAddressQueryKey(options),
|
|
1790
|
+
});
|
|
1791
|
+
};
|
|
1792
|
+
|
|
1793
|
+
export const getV1NftsByContractAddressInfiniteQueryKey = (
|
|
1794
|
+
options: Options<GetV1NftsByContractAddressData>,
|
|
1795
|
+
): QueryKey<Options<GetV1NftsByContractAddressData>> => createQueryKey("getV1NftsByContractAddress", options, true);
|
|
1203
1796
|
|
|
1204
1797
|
export const getV1NftsByContractAddressInfiniteOptions = (options: Options<GetV1NftsByContractAddressData>) => {
|
|
1205
|
-
|
|
1798
|
+
return infiniteQueryOptions<
|
|
1799
|
+
GetV1NftsByContractAddressResponse,
|
|
1800
|
+
GetV1NftsByContractAddressError,
|
|
1801
|
+
InfiniteData<GetV1NftsByContractAddressResponse>,
|
|
1802
|
+
QueryKey<Options<GetV1NftsByContractAddressData>>,
|
|
1803
|
+
number | null | Pick<QueryKey<Options<GetV1NftsByContractAddressData>>[0], "body" | "headers" | "path" | "query">
|
|
1804
|
+
>(
|
|
1206
1805
|
// @ts-ignore
|
|
1207
1806
|
{
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1807
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1808
|
+
// @ts-ignore
|
|
1809
|
+
const page: Pick<QueryKey<Options<GetV1NftsByContractAddressData>>[0], "body" | "headers" | "path" | "query"> =
|
|
1810
|
+
typeof pageParam === "object"
|
|
1811
|
+
? pageParam
|
|
1812
|
+
: {
|
|
1211
1813
|
query: {
|
|
1212
|
-
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
};
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1814
|
+
page: pageParam,
|
|
1815
|
+
},
|
|
1816
|
+
};
|
|
1817
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1818
|
+
const { data } = await getV1NftsByContractAddress({
|
|
1819
|
+
...options,
|
|
1820
|
+
...params,
|
|
1821
|
+
signal,
|
|
1822
|
+
throwOnError: true,
|
|
1823
|
+
});
|
|
1824
|
+
return data;
|
|
1825
|
+
},
|
|
1826
|
+
queryKey: getV1NftsByContractAddressInfiniteQueryKey(options),
|
|
1827
|
+
},
|
|
1828
|
+
);
|
|
1829
|
+
};
|
|
1830
|
+
|
|
1831
|
+
export const getV1NftsTransfersByContractAddressByTokenIdQueryKey = (
|
|
1832
|
+
options: Options<GetV1NftsTransfersByContractAddressByTokenIdData>,
|
|
1833
|
+
) => createQueryKey("getV1NftsTransfersByContractAddressByTokenId", options);
|
|
1834
|
+
|
|
1835
|
+
export const getV1NftsTransfersByContractAddressByTokenIdOptions = (
|
|
1836
|
+
options: Options<GetV1NftsTransfersByContractAddressByTokenIdData>,
|
|
1837
|
+
) => {
|
|
1838
|
+
return queryOptions({
|
|
1839
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1840
|
+
const { data } = await getV1NftsTransfersByContractAddressByTokenId({
|
|
1841
|
+
...options,
|
|
1842
|
+
...queryKey[0],
|
|
1843
|
+
signal,
|
|
1844
|
+
throwOnError: true,
|
|
1845
|
+
});
|
|
1846
|
+
return data;
|
|
1847
|
+
},
|
|
1848
|
+
queryKey: getV1NftsTransfersByContractAddressByTokenIdQueryKey(options),
|
|
1849
|
+
});
|
|
1850
|
+
};
|
|
1851
|
+
|
|
1852
|
+
export const getV1NftsTransfersByContractAddressByTokenIdInfiniteQueryKey = (
|
|
1853
|
+
options: Options<GetV1NftsTransfersByContractAddressByTokenIdData>,
|
|
1854
|
+
): QueryKey<Options<GetV1NftsTransfersByContractAddressByTokenIdData>> =>
|
|
1855
|
+
createQueryKey("getV1NftsTransfersByContractAddressByTokenId", options, true);
|
|
1856
|
+
|
|
1857
|
+
export const getV1NftsTransfersByContractAddressByTokenIdInfiniteOptions = (
|
|
1858
|
+
options: Options<GetV1NftsTransfersByContractAddressByTokenIdData>,
|
|
1859
|
+
) => {
|
|
1860
|
+
return infiniteQueryOptions<
|
|
1861
|
+
GetV1NftsTransfersByContractAddressByTokenIdResponse,
|
|
1862
|
+
GetV1NftsTransfersByContractAddressByTokenIdError,
|
|
1863
|
+
InfiniteData<GetV1NftsTransfersByContractAddressByTokenIdResponse>,
|
|
1864
|
+
QueryKey<Options<GetV1NftsTransfersByContractAddressByTokenIdData>>,
|
|
1865
|
+
| number
|
|
1866
|
+
| null
|
|
1867
|
+
| Pick<
|
|
1868
|
+
QueryKey<Options<GetV1NftsTransfersByContractAddressByTokenIdData>>[0],
|
|
1869
|
+
"body" | "headers" | "path" | "query"
|
|
1870
|
+
>
|
|
1871
|
+
>(
|
|
1249
1872
|
// @ts-ignore
|
|
1250
1873
|
{
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1874
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1875
|
+
// @ts-ignore
|
|
1876
|
+
const page: Pick<
|
|
1877
|
+
QueryKey<Options<GetV1NftsTransfersByContractAddressByTokenIdData>>[0],
|
|
1878
|
+
"body" | "headers" | "path" | "query"
|
|
1879
|
+
> =
|
|
1880
|
+
typeof pageParam === "object"
|
|
1881
|
+
? pageParam
|
|
1882
|
+
: {
|
|
1254
1883
|
query: {
|
|
1255
|
-
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
};
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
export const
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1884
|
+
page: pageParam,
|
|
1885
|
+
},
|
|
1886
|
+
};
|
|
1887
|
+
const params = createInfiniteParams(queryKey, page);
|
|
1888
|
+
const { data } = await getV1NftsTransfersByContractAddressByTokenId({
|
|
1889
|
+
...options,
|
|
1890
|
+
...params,
|
|
1891
|
+
signal,
|
|
1892
|
+
throwOnError: true,
|
|
1893
|
+
});
|
|
1894
|
+
return data;
|
|
1895
|
+
},
|
|
1896
|
+
queryKey: getV1NftsTransfersByContractAddressByTokenIdInfiniteQueryKey(options),
|
|
1897
|
+
},
|
|
1898
|
+
);
|
|
1899
|
+
};
|
|
1900
|
+
|
|
1901
|
+
export const getV1NftsByContractAddressByTokenIdQueryKey = (
|
|
1902
|
+
options: Options<GetV1NftsByContractAddressByTokenIdData>,
|
|
1903
|
+
) => createQueryKey("getV1NftsByContractAddressByTokenId", options);
|
|
1904
|
+
|
|
1905
|
+
export const getV1NftsByContractAddressByTokenIdOptions = (
|
|
1906
|
+
options: Options<GetV1NftsByContractAddressByTokenIdData>,
|
|
1907
|
+
) => {
|
|
1908
|
+
return queryOptions({
|
|
1909
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1910
|
+
const { data } = await getV1NftsByContractAddressByTokenId({
|
|
1911
|
+
...options,
|
|
1912
|
+
...queryKey[0],
|
|
1913
|
+
signal,
|
|
1914
|
+
throwOnError: true,
|
|
1915
|
+
});
|
|
1916
|
+
return data;
|
|
1917
|
+
},
|
|
1918
|
+
queryKey: getV1NftsByContractAddressByTokenIdQueryKey(options),
|
|
1919
|
+
});
|
|
1920
|
+
};
|
|
1921
|
+
|
|
1922
|
+
export const getV1NftsMetadataRefreshByContractAddressQueryKey = (
|
|
1923
|
+
options: Options<GetV1NftsMetadataRefreshByContractAddressData>,
|
|
1924
|
+
) => createQueryKey("getV1NftsMetadataRefreshByContractAddress", options);
|
|
1925
|
+
|
|
1926
|
+
export const getV1NftsMetadataRefreshByContractAddressOptions = (
|
|
1927
|
+
options: Options<GetV1NftsMetadataRefreshByContractAddressData>,
|
|
1928
|
+
) => {
|
|
1929
|
+
return queryOptions({
|
|
1930
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1931
|
+
const { data } = await getV1NftsMetadataRefreshByContractAddress({
|
|
1932
|
+
...options,
|
|
1933
|
+
...queryKey[0],
|
|
1934
|
+
signal,
|
|
1935
|
+
throwOnError: true,
|
|
1936
|
+
});
|
|
1937
|
+
return data;
|
|
1938
|
+
},
|
|
1939
|
+
queryKey: getV1NftsMetadataRefreshByContractAddressQueryKey(options),
|
|
1940
|
+
});
|
|
1941
|
+
};
|
|
1942
|
+
|
|
1943
|
+
export const getV1NftsMetadataRefreshByContractAddressByTokenIdQueryKey = (
|
|
1944
|
+
options: Options<GetV1NftsMetadataRefreshByContractAddressByTokenIdData>,
|
|
1945
|
+
) => createQueryKey("getV1NftsMetadataRefreshByContractAddressByTokenId", options);
|
|
1946
|
+
|
|
1947
|
+
export const getV1NftsMetadataRefreshByContractAddressByTokenIdOptions = (
|
|
1948
|
+
options: Options<GetV1NftsMetadataRefreshByContractAddressByTokenIdData>,
|
|
1949
|
+
) => {
|
|
1950
|
+
return queryOptions({
|
|
1951
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1952
|
+
const { data } = await getV1NftsMetadataRefreshByContractAddressByTokenId({
|
|
1953
|
+
...options,
|
|
1954
|
+
...queryKey[0],
|
|
1955
|
+
signal,
|
|
1956
|
+
throwOnError: true,
|
|
1957
|
+
});
|
|
1958
|
+
return data;
|
|
1959
|
+
},
|
|
1960
|
+
queryKey: getV1NftsMetadataRefreshByContractAddressByTokenIdQueryKey(options),
|
|
1961
|
+
});
|
|
1962
|
+
};
|
|
1963
|
+
|
|
1964
|
+
export const getV1WalletsByWalletAddressTransactionsQueryKey = (
|
|
1965
|
+
options: Options<GetV1WalletsByWalletAddressTransactionsData>,
|
|
1966
|
+
) => createQueryKey("getV1WalletsByWalletAddressTransactions", options);
|
|
1967
|
+
|
|
1968
|
+
export const getV1WalletsByWalletAddressTransactionsOptions = (
|
|
1969
|
+
options: Options<GetV1WalletsByWalletAddressTransactionsData>,
|
|
1970
|
+
) => {
|
|
1971
|
+
return queryOptions({
|
|
1972
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1973
|
+
const { data } = await getV1WalletsByWalletAddressTransactions({
|
|
1974
|
+
...options,
|
|
1975
|
+
...queryKey[0],
|
|
1976
|
+
signal,
|
|
1977
|
+
throwOnError: true,
|
|
1978
|
+
});
|
|
1979
|
+
return data;
|
|
1980
|
+
},
|
|
1981
|
+
queryKey: getV1WalletsByWalletAddressTransactionsQueryKey(options),
|
|
1982
|
+
});
|
|
1983
|
+
};
|
|
1984
|
+
|
|
1985
|
+
export const getV1WalletsByWalletAddressTransactionsInfiniteQueryKey = (
|
|
1986
|
+
options: Options<GetV1WalletsByWalletAddressTransactionsData>,
|
|
1987
|
+
): QueryKey<Options<GetV1WalletsByWalletAddressTransactionsData>> =>
|
|
1988
|
+
createQueryKey("getV1WalletsByWalletAddressTransactions", options, true);
|
|
1989
|
+
|
|
1990
|
+
export const getV1WalletsByWalletAddressTransactionsInfiniteOptions = (
|
|
1991
|
+
options: Options<GetV1WalletsByWalletAddressTransactionsData>,
|
|
1992
|
+
) => {
|
|
1993
|
+
return infiniteQueryOptions<
|
|
1994
|
+
GetV1WalletsByWalletAddressTransactionsResponse,
|
|
1995
|
+
GetV1WalletsByWalletAddressTransactionsError,
|
|
1996
|
+
InfiniteData<GetV1WalletsByWalletAddressTransactionsResponse>,
|
|
1997
|
+
QueryKey<Options<GetV1WalletsByWalletAddressTransactionsData>>,
|
|
1998
|
+
| number
|
|
1999
|
+
| null
|
|
2000
|
+
| Pick<QueryKey<Options<GetV1WalletsByWalletAddressTransactionsData>>[0], "body" | "headers" | "path" | "query">
|
|
2001
|
+
>(
|
|
1343
2002
|
// @ts-ignore
|
|
1344
2003
|
{
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
2004
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
2005
|
+
// @ts-ignore
|
|
2006
|
+
const page: Pick<
|
|
2007
|
+
QueryKey<Options<GetV1WalletsByWalletAddressTransactionsData>>[0],
|
|
2008
|
+
"body" | "headers" | "path" | "query"
|
|
2009
|
+
> =
|
|
2010
|
+
typeof pageParam === "object"
|
|
2011
|
+
? pageParam
|
|
2012
|
+
: {
|
|
1348
2013
|
query: {
|
|
1349
|
-
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
}
|
|
1363
|
-
|
|
2014
|
+
page: pageParam,
|
|
2015
|
+
},
|
|
2016
|
+
};
|
|
2017
|
+
const params = createInfiniteParams(queryKey, page);
|
|
2018
|
+
const { data } = await getV1WalletsByWalletAddressTransactions({
|
|
2019
|
+
...options,
|
|
2020
|
+
...params,
|
|
2021
|
+
signal,
|
|
2022
|
+
throwOnError: true,
|
|
2023
|
+
});
|
|
2024
|
+
return data;
|
|
2025
|
+
},
|
|
2026
|
+
queryKey: getV1WalletsByWalletAddressTransactionsInfiniteQueryKey(options),
|
|
2027
|
+
},
|
|
2028
|
+
);
|
|
2029
|
+
};
|