@quicknode/sdk 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +2 -0
  2. package/cjs/index.js +443 -190
  3. package/esm/package.json +2 -1
  4. package/esm/package.json.js +3 -0
  5. package/esm/src/api/api.js +85 -0
  6. package/esm/src/api/controllers/contracts.js +34 -0
  7. package/esm/src/api/controllers/events.js +113 -0
  8. package/esm/src/api/controllers/nfts.js +227 -0
  9. package/esm/src/api/controllers/tokens.js +93 -0
  10. package/esm/src/api/controllers/transactions.js +120 -0
  11. package/esm/src/api/controllers/utils.js +53 -0
  12. package/esm/src/api/graphql/customUrqlClient.js +23 -0
  13. package/esm/src/api/graphql/generatedTypes.js +22 -0
  14. package/esm/src/api/graphql/modifyQueryForChain.js +27 -0
  15. package/esm/src/api/graphql/schema.json.js +3 -0
  16. package/esm/src/api/index.d.ts +2681 -0
  17. package/esm/src/api/index.js +2 -0
  18. package/esm/src/api/types/chains.js +7 -0
  19. package/esm/src/api/types/contracts/getContractDetails.js +12 -0
  20. package/esm/src/api/types/events/getAll.js +7 -0
  21. package/esm/src/api/types/events/getByContract.js +12 -0
  22. package/esm/src/api/types/nfts/getByContractAddress.js +10 -0
  23. package/esm/src/api/types/nfts/getByWalletAddress.js +18 -0
  24. package/esm/src/api/types/nfts/getCollectionDetails.js +11 -0
  25. package/esm/src/api/types/nfts/getCollectionEvents.js +12 -0
  26. package/esm/src/api/types/nfts/getNFTDetails.js +9 -0
  27. package/esm/src/api/types/nfts/getNFTEvents.js +13 -0
  28. package/esm/src/api/types/nfts/getTrendingCollections.js +7 -0
  29. package/esm/src/api/types/nfts/verifyOwnershipByAddress.js +12 -0
  30. package/esm/src/api/types/tokens/getBalancesByWalletAddress.js +12 -0
  31. package/esm/src/api/types/transactions/getByHash.js +11 -0
  32. package/esm/src/api/types/transactions/getBySearch.js +7 -0
  33. package/esm/src/api/types/utils/gasPrices.js +12 -0
  34. package/esm/src/api/utils/constants.js +3 -0
  35. package/esm/src/api/utils/helpers.js +11 -0
  36. package/esm/src/api/utils/isValidENSAddress.js +21 -0
  37. package/esm/src/api/utils/postQueryFormatter.js +24 -0
  38. package/esm/src/api/utils/removeNodesAndEdges.js +51 -0
  39. package/esm/src/client/client.js +9 -0
  40. package/esm/src/client/index.js +2 -0
  41. package/esm/src/core/addOns/nftTokenV2/actions.js +107 -0
  42. package/esm/src/core/addOns/nftTokenV2/types/qn_fetchNFTCollectionDetails.js +10 -0
  43. package/esm/src/core/addOns/nftTokenV2/types/qn_fetchNFTs.js +13 -0
  44. package/esm/src/core/addOns/nftTokenV2/types/qn_fetchNFTsByCollection.js +13 -0
  45. package/esm/src/core/addOns/nftTokenV2/types/qn_getTokenMetadataByContractAddress.js +10 -0
  46. package/esm/src/core/addOns/nftTokenV2/types/qn_getTokenMetadataBySymbol.js +11 -0
  47. package/esm/src/core/addOns/nftTokenV2/types/qn_getTransactionsByAddress.js +18 -0
  48. package/esm/src/core/addOns/nftTokenV2/types/qn_getTransfersByNFT.js +12 -0
  49. package/esm/src/core/addOns/nftTokenV2/types/qn_getWalletTokenBalance.js +12 -0
  50. package/esm/src/core/addOns/nftTokenV2/types/qn_getWalletTokenTransactions.js +14 -0
  51. package/esm/src/core/addOns/nftTokenV2/types/qn_verifyNFTsOwner.js +11 -0
  52. package/esm/src/core/addOns/shared/helpers.js +10 -0
  53. package/esm/src/core/chains.js +60 -0
  54. package/esm/src/core/core.js +24 -0
  55. package/esm/src/core/index.d.ts +555 -0
  56. package/esm/src/core/index.js +2 -0
  57. package/esm/src/index.js +10 -0
  58. package/esm/src/lib/errors/QNChainNotSupported.js +7 -0
  59. package/esm/src/lib/errors/QNInputValidationError.js +10 -0
  60. package/esm/src/lib/errors/QNInvalidEnpointUrl.js +7 -0
  61. package/esm/src/lib/helpers/globalFetch.js +13 -0
  62. package/esm/src/lib/validation/ValidateInput.js +35 -0
  63. package/esm/src/lib/validation/codegenDerivedValidators.js +28 -0
  64. package/esm/src/lib/validation/validators.js +105 -0
  65. package/index.d.ts +594 -41
  66. package/package.json +26 -4
  67. package/esm/index.js +0 -1160
@@ -0,0 +1,2681 @@
1
+ import { Client, GraphQLRequestParams } from '@urql/core';
2
+ import { z } from 'zod';
3
+
4
+ /** All built-in and custom scalars, mapped to their actual values */
5
+ type Scalars = {
6
+ ID: string;
7
+ String: string;
8
+ Boolean: boolean;
9
+ Int: number;
10
+ Float: number;
11
+ BigInt: any;
12
+ DateTime: any;
13
+ JSON: any;
14
+ JSONObject: any;
15
+ };
16
+ /** Gas Prices for a given block. Gas values are returned in Wei. */
17
+ type CodegenGasPrice = {
18
+ /** The average gas price */
19
+ average: Scalars['Float'];
20
+ /** The block number */
21
+ blockNumber: Scalars['Int'];
22
+ /** The highest gas price */
23
+ ceiling: Scalars['Float'];
24
+ /** The lowest gas price */
25
+ floor: Scalars['Float'];
26
+ /** The median gas price */
27
+ median: Scalars['Float'];
28
+ /** The total gas price */
29
+ total: Scalars['Float'];
30
+ };
31
+ /** Marketplace where the token was sold */
32
+ type CodegenMarketplace = 'BLUR' | 'CRYPTOPUNKS' | 'LOOKSRARE' | 'NIFTY_GATEWAY' | 'OPENSEA' | 'SEAPORT' | 'X2Y2' | 'ZEROX';
33
+ type CodegenTokenTransferType = 'BURN' | 'MINT' | 'SALE' | 'SWAP' | 'TRANSFER';
34
+ type CodegenNftCollectionInfoFragment = {
35
+ collection?: {
36
+ address: string;
37
+ baseTokenUri?: string | null;
38
+ circulatingSupply?: any | null;
39
+ description?: string | null;
40
+ externalUrl?: string | null;
41
+ name?: string | null;
42
+ slug?: string | null;
43
+ symbol?: string | null;
44
+ totalSupply?: any | null;
45
+ twitterUsername?: string | null;
46
+ bannerImage?: Array<{
47
+ height?: number | null;
48
+ mimeType?: string | null;
49
+ url: string;
50
+ width?: number | null;
51
+ }> | null;
52
+ contract?: {
53
+ address: string;
54
+ isVerified?: boolean | null;
55
+ name?: string | null;
56
+ symbol?: string | null;
57
+ supportedErcInterfaces?: Array<string> | null;
58
+ } | null;
59
+ image?: Array<{
60
+ height?: number | null;
61
+ mimeType?: string | null;
62
+ url: string;
63
+ width?: number | null;
64
+ }> | null;
65
+ ohlcvChart?: Array<{
66
+ average?: number | null;
67
+ close?: number | null;
68
+ count: number;
69
+ high?: number | null;
70
+ low?: number | null;
71
+ open?: number | null;
72
+ volume?: number | null;
73
+ timestamp: any;
74
+ }> | null;
75
+ openseaMetadata?: {
76
+ isHidden?: boolean | null;
77
+ isVerified?: boolean | null;
78
+ unsafeSlug?: string | null;
79
+ } | null;
80
+ } | {
81
+ address: string;
82
+ baseTokenUri?: string | null;
83
+ circulatingSupply?: any | null;
84
+ description?: string | null;
85
+ externalUrl?: string | null;
86
+ name?: string | null;
87
+ slug?: string | null;
88
+ symbol?: string | null;
89
+ totalSupply?: any | null;
90
+ twitterUsername?: string | null;
91
+ bannerImage?: Array<{
92
+ height?: number | null;
93
+ mimeType?: string | null;
94
+ url: string;
95
+ width?: number | null;
96
+ }> | null;
97
+ contract?: {
98
+ address: string;
99
+ isVerified?: boolean | null;
100
+ name?: string | null;
101
+ symbol?: string | null;
102
+ supportedErcInterfaces?: Array<string> | null;
103
+ } | null;
104
+ image?: Array<{
105
+ height?: number | null;
106
+ mimeType?: string | null;
107
+ url: string;
108
+ width?: number | null;
109
+ }> | null;
110
+ ohlcvChart?: Array<{
111
+ average?: number | null;
112
+ close?: number | null;
113
+ count: number;
114
+ high?: number | null;
115
+ low?: number | null;
116
+ open?: number | null;
117
+ volume?: number | null;
118
+ timestamp: any;
119
+ }> | null;
120
+ openseaMetadata?: {
121
+ isHidden?: boolean | null;
122
+ isVerified?: boolean | null;
123
+ unsafeSlug?: string | null;
124
+ } | null;
125
+ } | null;
126
+ };
127
+ type CodegenNftDetailsFragment = {
128
+ nft?: {
129
+ __typename: 'ERC721NFT';
130
+ animationUrl?: string | null;
131
+ collectionSlug?: string | null;
132
+ contractAddress: string;
133
+ description?: string | null;
134
+ externalUrl?: string | null;
135
+ metadata?: any | null;
136
+ name?: string | null;
137
+ tokenId: any;
138
+ wallet?: {
139
+ address: string;
140
+ ensName?: string | null;
141
+ } | null;
142
+ } | {
143
+ __typename: 'ERC1155NFT';
144
+ animationUrl?: string | null;
145
+ collectionSlug?: string | null;
146
+ contractAddress: string;
147
+ description?: string | null;
148
+ externalUrl?: string | null;
149
+ metadata?: any | null;
150
+ name?: string | null;
151
+ tokenId: any;
152
+ wallets: {
153
+ edges: Array<{
154
+ node: {
155
+ address: string;
156
+ ensName?: string | null;
157
+ };
158
+ }>;
159
+ };
160
+ } | null;
161
+ };
162
+ type CodegenERC1155NFTNodeFragment = {
163
+ __typename: 'ERC1155NFT';
164
+ animationUrl?: string | null;
165
+ collectionSlug?: string | null;
166
+ contractAddress: string;
167
+ description?: string | null;
168
+ externalUrl?: string | null;
169
+ metadata?: any | null;
170
+ name?: string | null;
171
+ tokenId: any;
172
+ wallets: {
173
+ edges: Array<{
174
+ node: {
175
+ address: string;
176
+ ensName?: string | null;
177
+ };
178
+ }>;
179
+ };
180
+ };
181
+ type CodegenERC721NFTNodeFragment = {
182
+ __typename: 'ERC721NFT';
183
+ animationUrl?: string | null;
184
+ collectionSlug?: string | null;
185
+ contractAddress: string;
186
+ description?: string | null;
187
+ externalUrl?: string | null;
188
+ metadata?: any | null;
189
+ name?: string | null;
190
+ tokenId: any;
191
+ attributes?: Array<{
192
+ name: string;
193
+ value: string;
194
+ }> | null;
195
+ wallet?: {
196
+ address: string;
197
+ ensName?: string | null;
198
+ } | null;
199
+ };
200
+ type CodegenTransactionsNodeFragment = {
201
+ blockNumber: number;
202
+ blockTimestamp: any;
203
+ contractAddress?: string | null;
204
+ fromAddress: string;
205
+ cumulativeGasUsed: any;
206
+ effectiveGasPrice?: any | null;
207
+ gas?: any | null;
208
+ gasPrice?: any | null;
209
+ gasUsed: any;
210
+ hash: string;
211
+ maxFeePerGas?: any | null;
212
+ maxPriorityFeePerGas?: any | null;
213
+ toAddress?: string | null;
214
+ type?: string | null;
215
+ input?: string | null;
216
+ transactionIndex: number;
217
+ value?: any | null;
218
+ };
219
+ type CodegenTrendingCollectionInfo_CodegenERC721Collection_CodegenFragment = {
220
+ address: string;
221
+ baseTokenUri?: string | null;
222
+ circulatingSupply?: any | null;
223
+ description?: string | null;
224
+ externalUrl?: string | null;
225
+ name?: string | null;
226
+ symbol?: string | null;
227
+ totalSupply?: any | null;
228
+ twitterUsername?: string | null;
229
+ image?: Array<{
230
+ height?: number | null;
231
+ mimeType?: string | null;
232
+ url: string;
233
+ width?: number | null;
234
+ }> | null;
235
+ openseaMetadata?: {
236
+ isHidden?: boolean | null;
237
+ isVerified?: boolean | null;
238
+ unsafeSlug?: string | null;
239
+ } | null;
240
+ };
241
+ type CodegenTrendingCollectionInfo_CodegenERC1155Collection_CodegenFragment = {
242
+ address: string;
243
+ baseTokenUri?: string | null;
244
+ circulatingSupply?: any | null;
245
+ description?: string | null;
246
+ externalUrl?: string | null;
247
+ name?: string | null;
248
+ symbol?: string | null;
249
+ totalSupply?: any | null;
250
+ twitterUsername?: string | null;
251
+ image?: Array<{
252
+ height?: number | null;
253
+ mimeType?: string | null;
254
+ url: string;
255
+ width?: number | null;
256
+ }> | null;
257
+ openseaMetadata?: {
258
+ isHidden?: boolean | null;
259
+ isVerified?: boolean | null;
260
+ unsafeSlug?: string | null;
261
+ } | null;
262
+ };
263
+ type CodegenTrendingCollectionInfoFragment = CodegenTrendingCollectionInfo_CodegenERC721Collection_CodegenFragment | CodegenTrendingCollectionInfo_CodegenERC1155Collection_CodegenFragment;
264
+ type CodegenWalletNFTNodeFragment = {
265
+ nft?: {
266
+ animationUrl?: string | null;
267
+ collectionSlug?: string | null;
268
+ contractAddress: string;
269
+ description?: string | null;
270
+ externalUrl?: string | null;
271
+ metadata?: any | null;
272
+ name?: string | null;
273
+ tokenId: any;
274
+ } | {
275
+ animationUrl?: string | null;
276
+ collectionSlug?: string | null;
277
+ contractAddress: string;
278
+ description?: string | null;
279
+ externalUrl?: string | null;
280
+ metadata?: any | null;
281
+ name?: string | null;
282
+ tokenId: any;
283
+ } | null;
284
+ };
285
+ type CodegenContractInfo_CodegenNFTContract_CodegenFragment = {
286
+ __typename: 'NFTContract';
287
+ abi?: any | null;
288
+ address: string;
289
+ isVerified?: boolean | null;
290
+ name?: string | null;
291
+ supportedErcInterfaces?: Array<string> | null;
292
+ symbol?: string | null;
293
+ };
294
+ type CodegenContractInfo_CodegenTokenContract_CodegenFragment = {
295
+ __typename: 'TokenContract';
296
+ decimals?: any | null;
297
+ abi?: any | null;
298
+ address: string;
299
+ isVerified?: boolean | null;
300
+ name?: string | null;
301
+ supportedErcInterfaces?: Array<string> | null;
302
+ symbol?: string | null;
303
+ };
304
+ type CodegenContractInfoFragment = CodegenContractInfo_CodegenNFTContract_CodegenFragment | CodegenContractInfo_CodegenTokenContract_CodegenFragment;
305
+ type CodegenTokenBalanceNodeFragment = {
306
+ totalBalance: any;
307
+ contract?: {
308
+ address: string;
309
+ decimals?: any | null;
310
+ name?: string | null;
311
+ symbol?: string | null;
312
+ } | null;
313
+ };
314
+ type CodegenTokenEventInfo_CodegenTokenBurnEvent_CodegenFragment = {
315
+ __typename: 'TokenBurnEvent';
316
+ tokenId?: any | null;
317
+ tokenQuantity: any;
318
+ blockNumber: number;
319
+ fromAddress: string;
320
+ timestamp: any;
321
+ toAddress: string;
322
+ transactionHash?: string | null;
323
+ transferIndex: number;
324
+ type: CodegenTokenTransferType;
325
+ };
326
+ type CodegenTokenEventInfo_CodegenTokenMintEvent_CodegenFragment = {
327
+ __typename: 'TokenMintEvent';
328
+ tokenQuantity: any;
329
+ blockNumber: number;
330
+ fromAddress: string;
331
+ timestamp: any;
332
+ toAddress: string;
333
+ transactionHash?: string | null;
334
+ transferIndex: number;
335
+ type: CodegenTokenTransferType;
336
+ };
337
+ type CodegenTokenEventInfo_CodegenTokenSaleEvent_CodegenFragment = {
338
+ __typename: 'TokenSaleEvent';
339
+ marketplace?: CodegenMarketplace | null;
340
+ receivedTokenContractAddress?: string | null;
341
+ receivedTokenId?: any | null;
342
+ sentTokenId?: any | null;
343
+ blockNumber: number;
344
+ fromAddress: string;
345
+ timestamp: any;
346
+ toAddress: string;
347
+ transactionHash?: string | null;
348
+ transferIndex: number;
349
+ type: CodegenTokenTransferType;
350
+ };
351
+ type CodegenTokenEventInfo_CodegenTokenSwapEvent_CodegenFragment = {
352
+ __typename: 'TokenSwapEvent';
353
+ blockNumber: number;
354
+ fromAddress: string;
355
+ timestamp: any;
356
+ toAddress: string;
357
+ transactionHash?: string | null;
358
+ transferIndex: number;
359
+ type: CodegenTokenTransferType;
360
+ };
361
+ type CodegenTokenEventInfo_CodegenTokenTransferEvent_CodegenFragment = {
362
+ __typename: 'TokenTransferEvent';
363
+ tokenId?: any | null;
364
+ contractAddress: string;
365
+ tokenQuantity: any;
366
+ blockNumber: number;
367
+ fromAddress: string;
368
+ timestamp: any;
369
+ toAddress: string;
370
+ transactionHash?: string | null;
371
+ transferIndex: number;
372
+ type: CodegenTokenTransferType;
373
+ };
374
+ type CodegenTokenEventInfoFragment = CodegenTokenEventInfo_CodegenTokenBurnEvent_CodegenFragment | CodegenTokenEventInfo_CodegenTokenMintEvent_CodegenFragment | CodegenTokenEventInfo_CodegenTokenSaleEvent_CodegenFragment | CodegenTokenEventInfo_CodegenTokenSwapEvent_CodegenFragment | CodegenTokenEventInfo_CodegenTokenTransferEvent_CodegenFragment;
375
+ type CodegenPaginationFragment = {
376
+ endCursor?: string | null;
377
+ hasNextPage: boolean;
378
+ hasPreviousPage: boolean;
379
+ startCursor?: string | null;
380
+ };
381
+
382
+ type ResultOutput = Record<string | number | symbol, any>;
383
+
384
+ declare class CustomUrqlClient {
385
+ urqlClient: Client;
386
+ constructor(urqlClient: Client);
387
+ query<TVariables extends Record<string, unknown>, KResults extends Record<string, unknown>, KResultsOutput extends ResultOutput>(options: GraphQLRequestParams<any, TVariables>): Promise<{
388
+ data: KResultsOutput | undefined;
389
+ }>;
390
+ }
391
+
392
+ declare const supportedChains: readonly ["ethereum", "polygon", "ethereumSepolia"];
393
+ type ChainName = (typeof supportedChains)[number];
394
+
395
+ type SimplifyType<T> = T extends object ? {
396
+ [K in keyof T]: SimplifyType<T[K]>;
397
+ } : T;
398
+
399
+ declare const walletByAddressValidator: z.ZodObject<{
400
+ filter: z.ZodOptional<z.ZodObject<{
401
+ contractTokens: z.ZodArray<z.ZodObject<{
402
+ contractAddress: z.ZodString;
403
+ tokenId: z.ZodOptional<z.ZodString>;
404
+ }, "strict", z.ZodTypeAny, {
405
+ contractAddress: string;
406
+ tokenId?: string | undefined;
407
+ }, {
408
+ contractAddress: string;
409
+ tokenId?: string | undefined;
410
+ }>, "atleastone">;
411
+ }, "strict", z.ZodTypeAny, {
412
+ contractTokens: [{
413
+ contractAddress: string;
414
+ tokenId?: string | undefined;
415
+ }, ...{
416
+ contractAddress: string;
417
+ tokenId?: string | undefined;
418
+ }[]];
419
+ }, {
420
+ contractTokens: [{
421
+ contractAddress: string;
422
+ tokenId?: string | undefined;
423
+ }, ...{
424
+ contractAddress: string;
425
+ tokenId?: string | undefined;
426
+ }[]];
427
+ }>>;
428
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
429
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
430
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
431
+ address: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodString]>;
432
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
433
+ }, "strict", z.ZodTypeAny, {
434
+ address: string;
435
+ filter?: {
436
+ contractTokens: [{
437
+ contractAddress: string;
438
+ tokenId?: string | undefined;
439
+ }, ...{
440
+ contractAddress: string;
441
+ tokenId?: string | undefined;
442
+ }[]];
443
+ } | undefined;
444
+ before?: string | null | undefined;
445
+ after?: string | null | undefined;
446
+ first?: number | null | undefined;
447
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
448
+ }, {
449
+ address: string;
450
+ filter?: {
451
+ contractTokens: [{
452
+ contractAddress: string;
453
+ tokenId?: string | undefined;
454
+ }, ...{
455
+ contractAddress: string;
456
+ tokenId?: string | undefined;
457
+ }[]];
458
+ } | undefined;
459
+ before?: string | null | undefined;
460
+ after?: string | null | undefined;
461
+ first?: number | null | undefined;
462
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
463
+ }>;
464
+ type WalletNFTsByAddressInput = z.infer<typeof walletByAddressValidator>;
465
+ type WalletNFTsByAddressResult = SimplifyType<{
466
+ address: string;
467
+ ensName: string;
468
+ results: CodegenWalletNFTNodeFragment['nft'][];
469
+ pageInfo: CodegenPaginationFragment;
470
+ }>;
471
+
472
+ declare const nftDetailsValidator: z.ZodObject<{
473
+ contractAddress: z.ZodString;
474
+ tokenId: z.ZodString;
475
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
476
+ }, "strict", z.ZodTypeAny, {
477
+ contractAddress: string;
478
+ tokenId: string;
479
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
480
+ }, {
481
+ contractAddress: string;
482
+ tokenId: string;
483
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
484
+ }>;
485
+ type NFTDetailsInput = z.infer<typeof nftDetailsValidator>;
486
+ type NFTDetailsResult = SimplifyType<{
487
+ nft: CodegenNftDetailsFragment['nft'];
488
+ }>;
489
+
490
+ declare const nftCollectionDetailsValidator: z.ZodObject<{
491
+ contractAddress: z.ZodString;
492
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
493
+ }, "strict", z.ZodTypeAny, {
494
+ contractAddress: string;
495
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
496
+ }, {
497
+ contractAddress: string;
498
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
499
+ }>;
500
+ type NftCollectionDetailsInput = z.infer<typeof nftCollectionDetailsValidator>;
501
+ type NftCollectionDetailsResult = SimplifyType<{
502
+ collection: CodegenNftCollectionInfoFragment['collection'];
503
+ }>;
504
+
505
+ declare const nftTrendingCollectionsValidator: z.ZodObject<{
506
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
507
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
508
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
509
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
510
+ }, "strict", z.ZodTypeAny, {
511
+ before?: string | null | undefined;
512
+ after?: string | null | undefined;
513
+ first?: number | null | undefined;
514
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
515
+ }, {
516
+ before?: string | null | undefined;
517
+ after?: string | null | undefined;
518
+ first?: number | null | undefined;
519
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
520
+ }>;
521
+ type NFTTrendingCollectionsInput = z.infer<typeof nftTrendingCollectionsValidator>;
522
+ type NFTTrendingCollectionResult = SimplifyType<{
523
+ results: CodegenTrendingCollectionInfoFragment[];
524
+ pageInfo: CodegenPaginationFragment;
525
+ }>;
526
+
527
+ type NftErcStandards = 'ERC721' | 'ERC1155';
528
+
529
+ declare const nftsByContractAddressValidator: z.ZodObject<{
530
+ contractAddress: z.ZodString;
531
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
532
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
533
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
534
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
535
+ }, "strict", z.ZodTypeAny, {
536
+ contractAddress: string;
537
+ before?: string | null | undefined;
538
+ after?: string | null | undefined;
539
+ first?: number | null | undefined;
540
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
541
+ }, {
542
+ contractAddress: string;
543
+ before?: string | null | undefined;
544
+ after?: string | null | undefined;
545
+ first?: number | null | undefined;
546
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
547
+ }>;
548
+ type NFTsByContractAddressInput = z.infer<typeof nftsByContractAddressValidator>;
549
+ type NFTsByContractAddressResult = SimplifyType<{
550
+ standard: NftErcStandards | null;
551
+ results: [CodegenERC721NFTNodeFragment | CodegenERC1155NFTNodeFragment][];
552
+ pageInfo: CodegenPaginationFragment;
553
+ }>;
554
+
555
+ declare const verifyOwnershipValidator: z.ZodObject<{
556
+ address: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodString]>;
557
+ nfts: z.ZodArray<z.ZodObject<{
558
+ contractAddress: z.ZodString;
559
+ tokenId: z.ZodOptional<z.ZodString>;
560
+ }, "strict", z.ZodTypeAny, {
561
+ contractAddress: string;
562
+ tokenId?: string | undefined;
563
+ }, {
564
+ contractAddress: string;
565
+ tokenId?: string | undefined;
566
+ }>, "atleastone">;
567
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
568
+ }, "strict", z.ZodTypeAny, {
569
+ address: string;
570
+ nfts: [{
571
+ contractAddress: string;
572
+ tokenId?: string | undefined;
573
+ }, ...{
574
+ contractAddress: string;
575
+ tokenId?: string | undefined;
576
+ }[]];
577
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
578
+ }, {
579
+ address: string;
580
+ nfts: [{
581
+ contractAddress: string;
582
+ tokenId?: string | undefined;
583
+ }, ...{
584
+ contractAddress: string;
585
+ tokenId?: string | undefined;
586
+ }[]];
587
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
588
+ }>;
589
+ type VerifyOwnershipByAddressInput = z.infer<typeof verifyOwnershipValidator>;
590
+
591
+ declare class NftsController {
592
+ private client;
593
+ private defaultChain;
594
+ constructor(client: CustomUrqlClient, defaultChain?: ChainName);
595
+ getByWallet(variables: WalletNFTsByAddressInput): Promise<WalletNFTsByAddressResult>;
596
+ private getByWalletENS;
597
+ private getByWalletAddress;
598
+ getTrendingCollections(variables: NFTTrendingCollectionsInput): Promise<NFTTrendingCollectionResult>;
599
+ getByContractAddress(variables: NFTsByContractAddressInput): Promise<NFTsByContractAddressResult>;
600
+ getNFTDetails(variables: NFTDetailsInput): Promise<NFTDetailsResult>;
601
+ getCollectionDetails(variables: NftCollectionDetailsInput): Promise<NftCollectionDetailsResult>;
602
+ verifyOwnership(variables: VerifyOwnershipByAddressInput): Promise<boolean>;
603
+ private verifyOwnershipByAddress;
604
+ private verifyOwnershipByENS;
605
+ }
606
+
607
+ type BalancesByWalletENSResult = SimplifyType<{
608
+ address: string;
609
+ ensName: string;
610
+ results: CodegenTokenBalanceNodeFragment[];
611
+ pageInfo: CodegenPaginationFragment;
612
+ }>;
613
+
614
+ declare const balancesByWalletAddressValidator$1: z.ZodObject<{
615
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
617
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
618
+ address: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodString]>;
619
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
620
+ }, "strict", z.ZodTypeAny, {
621
+ address: string;
622
+ before?: string | null | undefined;
623
+ after?: string | null | undefined;
624
+ first?: number | null | undefined;
625
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
626
+ }, {
627
+ address: string;
628
+ before?: string | null | undefined;
629
+ after?: string | null | undefined;
630
+ first?: number | null | undefined;
631
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
632
+ }>;
633
+ type BalancesByWalletAddressInput = z.infer<typeof balancesByWalletAddressValidator$1>;
634
+
635
+ declare class TokensController {
636
+ private client;
637
+ private defaultChain;
638
+ constructor(client: CustomUrqlClient, defaultChain?: ChainName);
639
+ getBalancesByWallet(variables: BalancesByWalletAddressInput): Promise<BalancesByWalletENSResult>;
640
+ private getBalancesByWalletENS;
641
+ private getBalancesByWalletAddress;
642
+ private flattenBalanceResponses;
643
+ }
644
+
645
+ declare const gasPricesValidator: z.ZodObject<{
646
+ filter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
647
+ blockNumber: z.ZodOptional<z.ZodNullable<z.ZodObject<{
648
+ eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
649
+ gt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
650
+ gte: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
651
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
652
+ lt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
653
+ lte: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
654
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
655
+ }, "strict", z.ZodTypeAny, {
656
+ eq?: number | null | undefined;
657
+ gt?: number | null | undefined;
658
+ gte?: number | null | undefined;
659
+ in?: number[] | null | undefined;
660
+ lt?: number | null | undefined;
661
+ lte?: number | null | undefined;
662
+ notIn?: number[] | null | undefined;
663
+ }, {
664
+ eq?: number | null | undefined;
665
+ gt?: number | null | undefined;
666
+ gte?: number | null | undefined;
667
+ in?: number[] | null | undefined;
668
+ lt?: number | null | undefined;
669
+ lte?: number | null | undefined;
670
+ notIn?: number[] | null | undefined;
671
+ }>>>;
672
+ }, "strict", z.ZodTypeAny, {
673
+ blockNumber?: {
674
+ eq?: number | null | undefined;
675
+ gt?: number | null | undefined;
676
+ gte?: number | null | undefined;
677
+ in?: number[] | null | undefined;
678
+ lt?: number | null | undefined;
679
+ lte?: number | null | undefined;
680
+ notIn?: number[] | null | undefined;
681
+ } | null | undefined;
682
+ }, {
683
+ blockNumber?: {
684
+ eq?: number | null | undefined;
685
+ gt?: number | null | undefined;
686
+ gte?: number | null | undefined;
687
+ in?: number[] | null | undefined;
688
+ lt?: number | null | undefined;
689
+ lte?: number | null | undefined;
690
+ notIn?: number[] | null | undefined;
691
+ } | null | undefined;
692
+ }>>>;
693
+ returnInGwei: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
694
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
695
+ }, "strict", z.ZodTypeAny, {
696
+ filter?: {
697
+ blockNumber?: {
698
+ eq?: number | null | undefined;
699
+ gt?: number | null | undefined;
700
+ gte?: number | null | undefined;
701
+ in?: number[] | null | undefined;
702
+ lt?: number | null | undefined;
703
+ lte?: number | null | undefined;
704
+ notIn?: number[] | null | undefined;
705
+ } | null | undefined;
706
+ } | null | undefined;
707
+ returnInGwei?: boolean | null | undefined;
708
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
709
+ }, {
710
+ filter?: {
711
+ blockNumber?: {
712
+ eq?: number | null | undefined;
713
+ gt?: number | null | undefined;
714
+ gte?: number | null | undefined;
715
+ in?: number[] | null | undefined;
716
+ lt?: number | null | undefined;
717
+ lte?: number | null | undefined;
718
+ notIn?: number[] | null | undefined;
719
+ } | null | undefined;
720
+ } | null | undefined;
721
+ returnInGwei?: boolean | null | undefined;
722
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
723
+ }>;
724
+ type GasPricesInput = z.infer<typeof gasPricesValidator>;
725
+ type GasPricesResult = SimplifyType<{
726
+ gasPrices: CodegenGasPrice[];
727
+ }>;
728
+
729
+ declare class UtilsController {
730
+ private client;
731
+ private defaultChain;
732
+ constructor(client: CustomUrqlClient, defaultChain?: ChainName);
733
+ getGasPrices(variables: GasPricesInput): Promise<GasPricesResult>;
734
+ }
735
+
736
+ declare const contractDetailsValidator: z.ZodObject<{
737
+ contractAddress: z.ZodString;
738
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
739
+ }, "strict", z.ZodTypeAny, {
740
+ contractAddress: string;
741
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
742
+ }, {
743
+ contractAddress: string;
744
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
745
+ }>;
746
+ type ContractDetailsInput = z.infer<typeof contractDetailsValidator>;
747
+ type ContractDetailsResult = SimplifyType<{
748
+ contract: CodegenContractInfoFragment | null;
749
+ }>;
750
+
751
+ declare class ContractsController {
752
+ private client;
753
+ private defaultChain;
754
+ constructor(client: CustomUrqlClient, defaultChain?: ChainName);
755
+ getDetails(variables: ContractDetailsInput): Promise<ContractDetailsResult>;
756
+ }
757
+
758
+ declare const contractEventsValidator: z.ZodObject<{
759
+ contractAddress: z.ZodString;
760
+ filter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
761
+ blockNumber: z.ZodOptional<z.ZodNullable<z.ZodObject<{
762
+ eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
763
+ gt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
764
+ gte: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
765
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
766
+ lt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
767
+ lte: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
768
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
769
+ }, "strict", z.ZodTypeAny, {
770
+ eq?: number | null | undefined;
771
+ gt?: number | null | undefined;
772
+ gte?: number | null | undefined;
773
+ in?: number[] | null | undefined;
774
+ lt?: number | null | undefined;
775
+ lte?: number | null | undefined;
776
+ notIn?: number[] | null | undefined;
777
+ }, {
778
+ eq?: number | null | undefined;
779
+ gt?: number | null | undefined;
780
+ gte?: number | null | undefined;
781
+ in?: number[] | null | undefined;
782
+ lt?: number | null | undefined;
783
+ lte?: number | null | undefined;
784
+ notIn?: number[] | null | undefined;
785
+ }>>>;
786
+ contractAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
787
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
788
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
789
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
790
+ }, "strict", z.ZodTypeAny, {
791
+ eq?: string | null | undefined;
792
+ in?: string[] | null | undefined;
793
+ notIn?: string[] | null | undefined;
794
+ }, {
795
+ eq?: string | null | undefined;
796
+ in?: string[] | null | undefined;
797
+ notIn?: string[] | null | undefined;
798
+ }>>>;
799
+ contractStandard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
800
+ eq: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ERC20", "ERC721", "ERC1155"]>>>;
801
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["ERC20", "ERC721", "ERC1155"]>, "many">>>;
802
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["ERC20", "ERC721", "ERC1155"]>, "many">>>;
803
+ }, "strict", z.ZodTypeAny, {
804
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
805
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
806
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
807
+ }, {
808
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
809
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
810
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
811
+ }>>>;
812
+ fromAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
813
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
814
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
815
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
816
+ }, "strict", z.ZodTypeAny, {
817
+ eq?: string | null | undefined;
818
+ in?: string[] | null | undefined;
819
+ notIn?: string[] | null | undefined;
820
+ }, {
821
+ eq?: string | null | undefined;
822
+ in?: string[] | null | undefined;
823
+ notIn?: string[] | null | undefined;
824
+ }>>>;
825
+ marketplace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
826
+ eq: z.ZodOptional<z.ZodNullable<z.ZodEnum<["BLUR", "CRYPTOPUNKS", "LOOKSRARE", "NIFTY_GATEWAY", "OPENSEA", "SEAPORT", "X2Y2", "ZEROX"]>>>;
827
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["BLUR", "CRYPTOPUNKS", "LOOKSRARE", "NIFTY_GATEWAY", "OPENSEA", "SEAPORT", "X2Y2", "ZEROX"]>, "many">>>;
828
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["BLUR", "CRYPTOPUNKS", "LOOKSRARE", "NIFTY_GATEWAY", "OPENSEA", "SEAPORT", "X2Y2", "ZEROX"]>, "many">>>;
829
+ }, "strict", z.ZodTypeAny, {
830
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
831
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
832
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
833
+ }, {
834
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
835
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
836
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
837
+ }>>>;
838
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
839
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
840
+ gt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
841
+ gte: z.ZodOptional<z.ZodNullable<z.ZodString>>;
842
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
843
+ lt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
844
+ lte: z.ZodOptional<z.ZodNullable<z.ZodString>>;
845
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
846
+ }, "strict", z.ZodTypeAny, {
847
+ eq?: string | null | undefined;
848
+ gt?: string | null | undefined;
849
+ gte?: string | null | undefined;
850
+ in?: string[] | null | undefined;
851
+ lt?: string | null | undefined;
852
+ lte?: string | null | undefined;
853
+ notIn?: string[] | null | undefined;
854
+ }, {
855
+ eq?: string | null | undefined;
856
+ gt?: string | null | undefined;
857
+ gte?: string | null | undefined;
858
+ in?: string[] | null | undefined;
859
+ lt?: string | null | undefined;
860
+ lte?: string | null | undefined;
861
+ notIn?: string[] | null | undefined;
862
+ }>>>;
863
+ toAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
864
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
865
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
866
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
867
+ }, "strict", z.ZodTypeAny, {
868
+ eq?: string | null | undefined;
869
+ in?: string[] | null | undefined;
870
+ notIn?: string[] | null | undefined;
871
+ }, {
872
+ eq?: string | null | undefined;
873
+ in?: string[] | null | undefined;
874
+ notIn?: string[] | null | undefined;
875
+ }>>>;
876
+ transactionHash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
877
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
878
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
879
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
880
+ }, "strict", z.ZodTypeAny, {
881
+ eq?: string | null | undefined;
882
+ in?: string[] | null | undefined;
883
+ notIn?: string[] | null | undefined;
884
+ }, {
885
+ eq?: string | null | undefined;
886
+ in?: string[] | null | undefined;
887
+ notIn?: string[] | null | undefined;
888
+ }>>>;
889
+ type: z.ZodOptional<z.ZodNullable<z.ZodObject<{
890
+ eq: z.ZodOptional<z.ZodNullable<z.ZodEnum<["TRANSFER", "MINT", "SALE", "SWAP", "BURN"]>>>;
891
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["TRANSFER", "MINT", "SALE", "SWAP", "BURN"]>, "many">>>;
892
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["TRANSFER", "MINT", "SALE", "SWAP", "BURN"]>, "many">>>;
893
+ }, "strict", z.ZodTypeAny, {
894
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
895
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
896
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
897
+ }, {
898
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
899
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
900
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
901
+ }>>>;
902
+ walletAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
903
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
904
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
905
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
906
+ }, "strict", z.ZodTypeAny, {
907
+ eq?: string | null | undefined;
908
+ in?: string[] | null | undefined;
909
+ notIn?: string[] | null | undefined;
910
+ }, {
911
+ eq?: string | null | undefined;
912
+ in?: string[] | null | undefined;
913
+ notIn?: string[] | null | undefined;
914
+ }>>>;
915
+ }, "strict", z.ZodTypeAny, {
916
+ blockNumber?: {
917
+ eq?: number | null | undefined;
918
+ gt?: number | null | undefined;
919
+ gte?: number | null | undefined;
920
+ in?: number[] | null | undefined;
921
+ lt?: number | null | undefined;
922
+ lte?: number | null | undefined;
923
+ notIn?: number[] | null | undefined;
924
+ } | null | undefined;
925
+ contractAddress?: {
926
+ eq?: string | null | undefined;
927
+ in?: string[] | null | undefined;
928
+ notIn?: string[] | null | undefined;
929
+ } | null | undefined;
930
+ contractStandard?: {
931
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
932
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
933
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
934
+ } | null | undefined;
935
+ fromAddress?: {
936
+ eq?: string | null | undefined;
937
+ in?: string[] | null | undefined;
938
+ notIn?: string[] | null | undefined;
939
+ } | null | undefined;
940
+ marketplace?: {
941
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
942
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
943
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
944
+ } | null | undefined;
945
+ timestamp?: {
946
+ eq?: string | null | undefined;
947
+ gt?: string | null | undefined;
948
+ gte?: string | null | undefined;
949
+ in?: string[] | null | undefined;
950
+ lt?: string | null | undefined;
951
+ lte?: string | null | undefined;
952
+ notIn?: string[] | null | undefined;
953
+ } | null | undefined;
954
+ toAddress?: {
955
+ eq?: string | null | undefined;
956
+ in?: string[] | null | undefined;
957
+ notIn?: string[] | null | undefined;
958
+ } | null | undefined;
959
+ transactionHash?: {
960
+ eq?: string | null | undefined;
961
+ in?: string[] | null | undefined;
962
+ notIn?: string[] | null | undefined;
963
+ } | null | undefined;
964
+ type?: {
965
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
966
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
967
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
968
+ } | null | undefined;
969
+ walletAddress?: {
970
+ eq?: string | null | undefined;
971
+ in?: string[] | null | undefined;
972
+ notIn?: string[] | null | undefined;
973
+ } | null | undefined;
974
+ }, {
975
+ blockNumber?: {
976
+ eq?: number | null | undefined;
977
+ gt?: number | null | undefined;
978
+ gte?: number | null | undefined;
979
+ in?: number[] | null | undefined;
980
+ lt?: number | null | undefined;
981
+ lte?: number | null | undefined;
982
+ notIn?: number[] | null | undefined;
983
+ } | null | undefined;
984
+ contractAddress?: {
985
+ eq?: string | null | undefined;
986
+ in?: string[] | null | undefined;
987
+ notIn?: string[] | null | undefined;
988
+ } | null | undefined;
989
+ contractStandard?: {
990
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
991
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
992
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
993
+ } | null | undefined;
994
+ fromAddress?: {
995
+ eq?: string | null | undefined;
996
+ in?: string[] | null | undefined;
997
+ notIn?: string[] | null | undefined;
998
+ } | null | undefined;
999
+ marketplace?: {
1000
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1001
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1002
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1003
+ } | null | undefined;
1004
+ timestamp?: {
1005
+ eq?: string | null | undefined;
1006
+ gt?: string | null | undefined;
1007
+ gte?: string | null | undefined;
1008
+ in?: string[] | null | undefined;
1009
+ lt?: string | null | undefined;
1010
+ lte?: string | null | undefined;
1011
+ notIn?: string[] | null | undefined;
1012
+ } | null | undefined;
1013
+ toAddress?: {
1014
+ eq?: string | null | undefined;
1015
+ in?: string[] | null | undefined;
1016
+ notIn?: string[] | null | undefined;
1017
+ } | null | undefined;
1018
+ transactionHash?: {
1019
+ eq?: string | null | undefined;
1020
+ in?: string[] | null | undefined;
1021
+ notIn?: string[] | null | undefined;
1022
+ } | null | undefined;
1023
+ type?: {
1024
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1025
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1026
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1027
+ } | null | undefined;
1028
+ walletAddress?: {
1029
+ eq?: string | null | undefined;
1030
+ in?: string[] | null | undefined;
1031
+ notIn?: string[] | null | undefined;
1032
+ } | null | undefined;
1033
+ }>>>;
1034
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1035
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1036
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1037
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
1038
+ }, "strict", z.ZodTypeAny, {
1039
+ contractAddress: string;
1040
+ filter?: {
1041
+ blockNumber?: {
1042
+ eq?: number | null | undefined;
1043
+ gt?: number | null | undefined;
1044
+ gte?: number | null | undefined;
1045
+ in?: number[] | null | undefined;
1046
+ lt?: number | null | undefined;
1047
+ lte?: number | null | undefined;
1048
+ notIn?: number[] | null | undefined;
1049
+ } | null | undefined;
1050
+ contractAddress?: {
1051
+ eq?: string | null | undefined;
1052
+ in?: string[] | null | undefined;
1053
+ notIn?: string[] | null | undefined;
1054
+ } | null | undefined;
1055
+ contractStandard?: {
1056
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1057
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1058
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1059
+ } | null | undefined;
1060
+ fromAddress?: {
1061
+ eq?: string | null | undefined;
1062
+ in?: string[] | null | undefined;
1063
+ notIn?: string[] | null | undefined;
1064
+ } | null | undefined;
1065
+ marketplace?: {
1066
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1067
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1068
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1069
+ } | null | undefined;
1070
+ timestamp?: {
1071
+ eq?: string | null | undefined;
1072
+ gt?: string | null | undefined;
1073
+ gte?: string | null | undefined;
1074
+ in?: string[] | null | undefined;
1075
+ lt?: string | null | undefined;
1076
+ lte?: string | null | undefined;
1077
+ notIn?: string[] | null | undefined;
1078
+ } | null | undefined;
1079
+ toAddress?: {
1080
+ eq?: string | null | undefined;
1081
+ in?: string[] | null | undefined;
1082
+ notIn?: string[] | null | undefined;
1083
+ } | null | undefined;
1084
+ transactionHash?: {
1085
+ eq?: string | null | undefined;
1086
+ in?: string[] | null | undefined;
1087
+ notIn?: string[] | null | undefined;
1088
+ } | null | undefined;
1089
+ type?: {
1090
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1091
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1092
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1093
+ } | null | undefined;
1094
+ walletAddress?: {
1095
+ eq?: string | null | undefined;
1096
+ in?: string[] | null | undefined;
1097
+ notIn?: string[] | null | undefined;
1098
+ } | null | undefined;
1099
+ } | null | undefined;
1100
+ before?: string | null | undefined;
1101
+ after?: string | null | undefined;
1102
+ first?: number | null | undefined;
1103
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
1104
+ }, {
1105
+ contractAddress: string;
1106
+ filter?: {
1107
+ blockNumber?: {
1108
+ eq?: number | null | undefined;
1109
+ gt?: number | null | undefined;
1110
+ gte?: number | null | undefined;
1111
+ in?: number[] | null | undefined;
1112
+ lt?: number | null | undefined;
1113
+ lte?: number | null | undefined;
1114
+ notIn?: number[] | null | undefined;
1115
+ } | null | undefined;
1116
+ contractAddress?: {
1117
+ eq?: string | null | undefined;
1118
+ in?: string[] | null | undefined;
1119
+ notIn?: string[] | null | undefined;
1120
+ } | null | undefined;
1121
+ contractStandard?: {
1122
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1123
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1124
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1125
+ } | null | undefined;
1126
+ fromAddress?: {
1127
+ eq?: string | null | undefined;
1128
+ in?: string[] | null | undefined;
1129
+ notIn?: string[] | null | undefined;
1130
+ } | null | undefined;
1131
+ marketplace?: {
1132
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1133
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1134
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1135
+ } | null | undefined;
1136
+ timestamp?: {
1137
+ eq?: string | null | undefined;
1138
+ gt?: string | null | undefined;
1139
+ gte?: string | null | undefined;
1140
+ in?: string[] | null | undefined;
1141
+ lt?: string | null | undefined;
1142
+ lte?: string | null | undefined;
1143
+ notIn?: string[] | null | undefined;
1144
+ } | null | undefined;
1145
+ toAddress?: {
1146
+ eq?: string | null | undefined;
1147
+ in?: string[] | null | undefined;
1148
+ notIn?: string[] | null | undefined;
1149
+ } | null | undefined;
1150
+ transactionHash?: {
1151
+ eq?: string | null | undefined;
1152
+ in?: string[] | null | undefined;
1153
+ notIn?: string[] | null | undefined;
1154
+ } | null | undefined;
1155
+ type?: {
1156
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1157
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1158
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1159
+ } | null | undefined;
1160
+ walletAddress?: {
1161
+ eq?: string | null | undefined;
1162
+ in?: string[] | null | undefined;
1163
+ notIn?: string[] | null | undefined;
1164
+ } | null | undefined;
1165
+ } | null | undefined;
1166
+ before?: string | null | undefined;
1167
+ after?: string | null | undefined;
1168
+ first?: number | null | undefined;
1169
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
1170
+ }>;
1171
+ type ContractEventsInput = z.infer<typeof contractEventsValidator>;
1172
+ type ContractEventsResult = SimplifyType<{
1173
+ results: CodegenTokenEventInfoFragment[];
1174
+ pageInfo: CodegenPaginationFragment;
1175
+ }>;
1176
+
1177
+ declare const collectionEventsValidator: z.ZodObject<{
1178
+ contractAddress: z.ZodString;
1179
+ filter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1180
+ blockNumber: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1181
+ eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1182
+ gt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1183
+ gte: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1184
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1185
+ lt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1186
+ lte: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1187
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1188
+ }, "strict", z.ZodTypeAny, {
1189
+ eq?: number | null | undefined;
1190
+ gt?: number | null | undefined;
1191
+ gte?: number | null | undefined;
1192
+ in?: number[] | null | undefined;
1193
+ lt?: number | null | undefined;
1194
+ lte?: number | null | undefined;
1195
+ notIn?: number[] | null | undefined;
1196
+ }, {
1197
+ eq?: number | null | undefined;
1198
+ gt?: number | null | undefined;
1199
+ gte?: number | null | undefined;
1200
+ in?: number[] | null | undefined;
1201
+ lt?: number | null | undefined;
1202
+ lte?: number | null | undefined;
1203
+ notIn?: number[] | null | undefined;
1204
+ }>>>;
1205
+ contractAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1206
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1207
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1208
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1209
+ }, "strict", z.ZodTypeAny, {
1210
+ eq?: string | null | undefined;
1211
+ in?: string[] | null | undefined;
1212
+ notIn?: string[] | null | undefined;
1213
+ }, {
1214
+ eq?: string | null | undefined;
1215
+ in?: string[] | null | undefined;
1216
+ notIn?: string[] | null | undefined;
1217
+ }>>>;
1218
+ contractStandard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1219
+ eq: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ERC20", "ERC721", "ERC1155"]>>>;
1220
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["ERC20", "ERC721", "ERC1155"]>, "many">>>;
1221
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["ERC20", "ERC721", "ERC1155"]>, "many">>>;
1222
+ }, "strict", z.ZodTypeAny, {
1223
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1224
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1225
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1226
+ }, {
1227
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1228
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1229
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1230
+ }>>>;
1231
+ fromAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1232
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1233
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1234
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1235
+ }, "strict", z.ZodTypeAny, {
1236
+ eq?: string | null | undefined;
1237
+ in?: string[] | null | undefined;
1238
+ notIn?: string[] | null | undefined;
1239
+ }, {
1240
+ eq?: string | null | undefined;
1241
+ in?: string[] | null | undefined;
1242
+ notIn?: string[] | null | undefined;
1243
+ }>>>;
1244
+ marketplace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1245
+ eq: z.ZodOptional<z.ZodNullable<z.ZodEnum<["BLUR", "CRYPTOPUNKS", "LOOKSRARE", "NIFTY_GATEWAY", "OPENSEA", "SEAPORT", "X2Y2", "ZEROX"]>>>;
1246
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["BLUR", "CRYPTOPUNKS", "LOOKSRARE", "NIFTY_GATEWAY", "OPENSEA", "SEAPORT", "X2Y2", "ZEROX"]>, "many">>>;
1247
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["BLUR", "CRYPTOPUNKS", "LOOKSRARE", "NIFTY_GATEWAY", "OPENSEA", "SEAPORT", "X2Y2", "ZEROX"]>, "many">>>;
1248
+ }, "strict", z.ZodTypeAny, {
1249
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1250
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1251
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1252
+ }, {
1253
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1254
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1255
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1256
+ }>>>;
1257
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1258
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1259
+ gt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1260
+ gte: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1261
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1262
+ lt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1263
+ lte: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1264
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1265
+ }, "strict", z.ZodTypeAny, {
1266
+ eq?: string | null | undefined;
1267
+ gt?: string | null | undefined;
1268
+ gte?: string | null | undefined;
1269
+ in?: string[] | null | undefined;
1270
+ lt?: string | null | undefined;
1271
+ lte?: string | null | undefined;
1272
+ notIn?: string[] | null | undefined;
1273
+ }, {
1274
+ eq?: string | null | undefined;
1275
+ gt?: string | null | undefined;
1276
+ gte?: string | null | undefined;
1277
+ in?: string[] | null | undefined;
1278
+ lt?: string | null | undefined;
1279
+ lte?: string | null | undefined;
1280
+ notIn?: string[] | null | undefined;
1281
+ }>>>;
1282
+ toAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1283
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1284
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1285
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1286
+ }, "strict", z.ZodTypeAny, {
1287
+ eq?: string | null | undefined;
1288
+ in?: string[] | null | undefined;
1289
+ notIn?: string[] | null | undefined;
1290
+ }, {
1291
+ eq?: string | null | undefined;
1292
+ in?: string[] | null | undefined;
1293
+ notIn?: string[] | null | undefined;
1294
+ }>>>;
1295
+ transactionHash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1296
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1297
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1298
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1299
+ }, "strict", z.ZodTypeAny, {
1300
+ eq?: string | null | undefined;
1301
+ in?: string[] | null | undefined;
1302
+ notIn?: string[] | null | undefined;
1303
+ }, {
1304
+ eq?: string | null | undefined;
1305
+ in?: string[] | null | undefined;
1306
+ notIn?: string[] | null | undefined;
1307
+ }>>>;
1308
+ type: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1309
+ eq: z.ZodOptional<z.ZodNullable<z.ZodEnum<["TRANSFER", "MINT", "SALE", "SWAP", "BURN"]>>>;
1310
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["TRANSFER", "MINT", "SALE", "SWAP", "BURN"]>, "many">>>;
1311
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["TRANSFER", "MINT", "SALE", "SWAP", "BURN"]>, "many">>>;
1312
+ }, "strict", z.ZodTypeAny, {
1313
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1314
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1315
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1316
+ }, {
1317
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1318
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1319
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1320
+ }>>>;
1321
+ walletAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1322
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1323
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1324
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1325
+ }, "strict", z.ZodTypeAny, {
1326
+ eq?: string | null | undefined;
1327
+ in?: string[] | null | undefined;
1328
+ notIn?: string[] | null | undefined;
1329
+ }, {
1330
+ eq?: string | null | undefined;
1331
+ in?: string[] | null | undefined;
1332
+ notIn?: string[] | null | undefined;
1333
+ }>>>;
1334
+ }, "strict", z.ZodTypeAny, {
1335
+ blockNumber?: {
1336
+ eq?: number | null | undefined;
1337
+ gt?: number | null | undefined;
1338
+ gte?: number | null | undefined;
1339
+ in?: number[] | null | undefined;
1340
+ lt?: number | null | undefined;
1341
+ lte?: number | null | undefined;
1342
+ notIn?: number[] | null | undefined;
1343
+ } | null | undefined;
1344
+ contractAddress?: {
1345
+ eq?: string | null | undefined;
1346
+ in?: string[] | null | undefined;
1347
+ notIn?: string[] | null | undefined;
1348
+ } | null | undefined;
1349
+ contractStandard?: {
1350
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1351
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1352
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1353
+ } | null | undefined;
1354
+ fromAddress?: {
1355
+ eq?: string | null | undefined;
1356
+ in?: string[] | null | undefined;
1357
+ notIn?: string[] | null | undefined;
1358
+ } | null | undefined;
1359
+ marketplace?: {
1360
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1361
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1362
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1363
+ } | null | undefined;
1364
+ timestamp?: {
1365
+ eq?: string | null | undefined;
1366
+ gt?: string | null | undefined;
1367
+ gte?: string | null | undefined;
1368
+ in?: string[] | null | undefined;
1369
+ lt?: string | null | undefined;
1370
+ lte?: string | null | undefined;
1371
+ notIn?: string[] | null | undefined;
1372
+ } | null | undefined;
1373
+ toAddress?: {
1374
+ eq?: string | null | undefined;
1375
+ in?: string[] | null | undefined;
1376
+ notIn?: string[] | null | undefined;
1377
+ } | null | undefined;
1378
+ transactionHash?: {
1379
+ eq?: string | null | undefined;
1380
+ in?: string[] | null | undefined;
1381
+ notIn?: string[] | null | undefined;
1382
+ } | null | undefined;
1383
+ type?: {
1384
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1385
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1386
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1387
+ } | null | undefined;
1388
+ walletAddress?: {
1389
+ eq?: string | null | undefined;
1390
+ in?: string[] | null | undefined;
1391
+ notIn?: string[] | null | undefined;
1392
+ } | null | undefined;
1393
+ }, {
1394
+ blockNumber?: {
1395
+ eq?: number | null | undefined;
1396
+ gt?: number | null | undefined;
1397
+ gte?: number | null | undefined;
1398
+ in?: number[] | null | undefined;
1399
+ lt?: number | null | undefined;
1400
+ lte?: number | null | undefined;
1401
+ notIn?: number[] | null | undefined;
1402
+ } | null | undefined;
1403
+ contractAddress?: {
1404
+ eq?: string | null | undefined;
1405
+ in?: string[] | null | undefined;
1406
+ notIn?: string[] | null | undefined;
1407
+ } | null | undefined;
1408
+ contractStandard?: {
1409
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1410
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1411
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1412
+ } | null | undefined;
1413
+ fromAddress?: {
1414
+ eq?: string | null | undefined;
1415
+ in?: string[] | null | undefined;
1416
+ notIn?: string[] | null | undefined;
1417
+ } | null | undefined;
1418
+ marketplace?: {
1419
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1420
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1421
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1422
+ } | null | undefined;
1423
+ timestamp?: {
1424
+ eq?: string | null | undefined;
1425
+ gt?: string | null | undefined;
1426
+ gte?: string | null | undefined;
1427
+ in?: string[] | null | undefined;
1428
+ lt?: string | null | undefined;
1429
+ lte?: string | null | undefined;
1430
+ notIn?: string[] | null | undefined;
1431
+ } | null | undefined;
1432
+ toAddress?: {
1433
+ eq?: string | null | undefined;
1434
+ in?: string[] | null | undefined;
1435
+ notIn?: string[] | null | undefined;
1436
+ } | null | undefined;
1437
+ transactionHash?: {
1438
+ eq?: string | null | undefined;
1439
+ in?: string[] | null | undefined;
1440
+ notIn?: string[] | null | undefined;
1441
+ } | null | undefined;
1442
+ type?: {
1443
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1444
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1445
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1446
+ } | null | undefined;
1447
+ walletAddress?: {
1448
+ eq?: string | null | undefined;
1449
+ in?: string[] | null | undefined;
1450
+ notIn?: string[] | null | undefined;
1451
+ } | null | undefined;
1452
+ }>>>;
1453
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1454
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1455
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1456
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
1457
+ }, "strict", z.ZodTypeAny, {
1458
+ contractAddress: string;
1459
+ filter?: {
1460
+ blockNumber?: {
1461
+ eq?: number | null | undefined;
1462
+ gt?: number | null | undefined;
1463
+ gte?: number | null | undefined;
1464
+ in?: number[] | null | undefined;
1465
+ lt?: number | null | undefined;
1466
+ lte?: number | null | undefined;
1467
+ notIn?: number[] | null | undefined;
1468
+ } | null | undefined;
1469
+ contractAddress?: {
1470
+ eq?: string | null | undefined;
1471
+ in?: string[] | null | undefined;
1472
+ notIn?: string[] | null | undefined;
1473
+ } | null | undefined;
1474
+ contractStandard?: {
1475
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1476
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1477
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1478
+ } | null | undefined;
1479
+ fromAddress?: {
1480
+ eq?: string | null | undefined;
1481
+ in?: string[] | null | undefined;
1482
+ notIn?: string[] | null | undefined;
1483
+ } | null | undefined;
1484
+ marketplace?: {
1485
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1486
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1487
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1488
+ } | null | undefined;
1489
+ timestamp?: {
1490
+ eq?: string | null | undefined;
1491
+ gt?: string | null | undefined;
1492
+ gte?: string | null | undefined;
1493
+ in?: string[] | null | undefined;
1494
+ lt?: string | null | undefined;
1495
+ lte?: string | null | undefined;
1496
+ notIn?: string[] | null | undefined;
1497
+ } | null | undefined;
1498
+ toAddress?: {
1499
+ eq?: string | null | undefined;
1500
+ in?: string[] | null | undefined;
1501
+ notIn?: string[] | null | undefined;
1502
+ } | null | undefined;
1503
+ transactionHash?: {
1504
+ eq?: string | null | undefined;
1505
+ in?: string[] | null | undefined;
1506
+ notIn?: string[] | null | undefined;
1507
+ } | null | undefined;
1508
+ type?: {
1509
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1510
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1511
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1512
+ } | null | undefined;
1513
+ walletAddress?: {
1514
+ eq?: string | null | undefined;
1515
+ in?: string[] | null | undefined;
1516
+ notIn?: string[] | null | undefined;
1517
+ } | null | undefined;
1518
+ } | null | undefined;
1519
+ before?: string | null | undefined;
1520
+ after?: string | null | undefined;
1521
+ first?: number | null | undefined;
1522
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
1523
+ }, {
1524
+ contractAddress: string;
1525
+ filter?: {
1526
+ blockNumber?: {
1527
+ eq?: number | null | undefined;
1528
+ gt?: number | null | undefined;
1529
+ gte?: number | null | undefined;
1530
+ in?: number[] | null | undefined;
1531
+ lt?: number | null | undefined;
1532
+ lte?: number | null | undefined;
1533
+ notIn?: number[] | null | undefined;
1534
+ } | null | undefined;
1535
+ contractAddress?: {
1536
+ eq?: string | null | undefined;
1537
+ in?: string[] | null | undefined;
1538
+ notIn?: string[] | null | undefined;
1539
+ } | null | undefined;
1540
+ contractStandard?: {
1541
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1542
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1543
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1544
+ } | null | undefined;
1545
+ fromAddress?: {
1546
+ eq?: string | null | undefined;
1547
+ in?: string[] | null | undefined;
1548
+ notIn?: string[] | null | undefined;
1549
+ } | null | undefined;
1550
+ marketplace?: {
1551
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1552
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1553
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1554
+ } | null | undefined;
1555
+ timestamp?: {
1556
+ eq?: string | null | undefined;
1557
+ gt?: string | null | undefined;
1558
+ gte?: string | null | undefined;
1559
+ in?: string[] | null | undefined;
1560
+ lt?: string | null | undefined;
1561
+ lte?: string | null | undefined;
1562
+ notIn?: string[] | null | undefined;
1563
+ } | null | undefined;
1564
+ toAddress?: {
1565
+ eq?: string | null | undefined;
1566
+ in?: string[] | null | undefined;
1567
+ notIn?: string[] | null | undefined;
1568
+ } | null | undefined;
1569
+ transactionHash?: {
1570
+ eq?: string | null | undefined;
1571
+ in?: string[] | null | undefined;
1572
+ notIn?: string[] | null | undefined;
1573
+ } | null | undefined;
1574
+ type?: {
1575
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1576
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1577
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1578
+ } | null | undefined;
1579
+ walletAddress?: {
1580
+ eq?: string | null | undefined;
1581
+ in?: string[] | null | undefined;
1582
+ notIn?: string[] | null | undefined;
1583
+ } | null | undefined;
1584
+ } | null | undefined;
1585
+ before?: string | null | undefined;
1586
+ after?: string | null | undefined;
1587
+ first?: number | null | undefined;
1588
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
1589
+ }>;
1590
+ type CollectionEventsInput = z.infer<typeof collectionEventsValidator>;
1591
+ type CollectionEventsResult = SimplifyType<{
1592
+ results: CodegenTokenEventInfoFragment[];
1593
+ pageInfo: CodegenPaginationFragment;
1594
+ }>;
1595
+
1596
+ declare const nftEventsValidator: z.ZodObject<{
1597
+ contractAddress: z.ZodString;
1598
+ filter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1599
+ blockNumber: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1600
+ eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1601
+ gt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1602
+ gte: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1603
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1604
+ lt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1605
+ lte: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1606
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1607
+ }, "strict", z.ZodTypeAny, {
1608
+ eq?: number | null | undefined;
1609
+ gt?: number | null | undefined;
1610
+ gte?: number | null | undefined;
1611
+ in?: number[] | null | undefined;
1612
+ lt?: number | null | undefined;
1613
+ lte?: number | null | undefined;
1614
+ notIn?: number[] | null | undefined;
1615
+ }, {
1616
+ eq?: number | null | undefined;
1617
+ gt?: number | null | undefined;
1618
+ gte?: number | null | undefined;
1619
+ in?: number[] | null | undefined;
1620
+ lt?: number | null | undefined;
1621
+ lte?: number | null | undefined;
1622
+ notIn?: number[] | null | undefined;
1623
+ }>>>;
1624
+ contractAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1625
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1626
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1627
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1628
+ }, "strict", z.ZodTypeAny, {
1629
+ eq?: string | null | undefined;
1630
+ in?: string[] | null | undefined;
1631
+ notIn?: string[] | null | undefined;
1632
+ }, {
1633
+ eq?: string | null | undefined;
1634
+ in?: string[] | null | undefined;
1635
+ notIn?: string[] | null | undefined;
1636
+ }>>>;
1637
+ contractStandard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1638
+ eq: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ERC20", "ERC721", "ERC1155"]>>>;
1639
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["ERC20", "ERC721", "ERC1155"]>, "many">>>;
1640
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["ERC20", "ERC721", "ERC1155"]>, "many">>>;
1641
+ }, "strict", z.ZodTypeAny, {
1642
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1643
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1644
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1645
+ }, {
1646
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1647
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1648
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1649
+ }>>>;
1650
+ fromAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1651
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1652
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1653
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1654
+ }, "strict", z.ZodTypeAny, {
1655
+ eq?: string | null | undefined;
1656
+ in?: string[] | null | undefined;
1657
+ notIn?: string[] | null | undefined;
1658
+ }, {
1659
+ eq?: string | null | undefined;
1660
+ in?: string[] | null | undefined;
1661
+ notIn?: string[] | null | undefined;
1662
+ }>>>;
1663
+ marketplace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1664
+ eq: z.ZodOptional<z.ZodNullable<z.ZodEnum<["BLUR", "CRYPTOPUNKS", "LOOKSRARE", "NIFTY_GATEWAY", "OPENSEA", "SEAPORT", "X2Y2", "ZEROX"]>>>;
1665
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["BLUR", "CRYPTOPUNKS", "LOOKSRARE", "NIFTY_GATEWAY", "OPENSEA", "SEAPORT", "X2Y2", "ZEROX"]>, "many">>>;
1666
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["BLUR", "CRYPTOPUNKS", "LOOKSRARE", "NIFTY_GATEWAY", "OPENSEA", "SEAPORT", "X2Y2", "ZEROX"]>, "many">>>;
1667
+ }, "strict", z.ZodTypeAny, {
1668
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1669
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1670
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1671
+ }, {
1672
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1673
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1674
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1675
+ }>>>;
1676
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1677
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1678
+ gt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1679
+ gte: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1680
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1681
+ lt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1682
+ lte: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1683
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1684
+ }, "strict", z.ZodTypeAny, {
1685
+ eq?: string | null | undefined;
1686
+ gt?: string | null | undefined;
1687
+ gte?: string | null | undefined;
1688
+ in?: string[] | null | undefined;
1689
+ lt?: string | null | undefined;
1690
+ lte?: string | null | undefined;
1691
+ notIn?: string[] | null | undefined;
1692
+ }, {
1693
+ eq?: string | null | undefined;
1694
+ gt?: string | null | undefined;
1695
+ gte?: string | null | undefined;
1696
+ in?: string[] | null | undefined;
1697
+ lt?: string | null | undefined;
1698
+ lte?: string | null | undefined;
1699
+ notIn?: string[] | null | undefined;
1700
+ }>>>;
1701
+ toAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1702
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1703
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1704
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1705
+ }, "strict", z.ZodTypeAny, {
1706
+ eq?: string | null | undefined;
1707
+ in?: string[] | null | undefined;
1708
+ notIn?: string[] | null | undefined;
1709
+ }, {
1710
+ eq?: string | null | undefined;
1711
+ in?: string[] | null | undefined;
1712
+ notIn?: string[] | null | undefined;
1713
+ }>>>;
1714
+ transactionHash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1715
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1716
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1717
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1718
+ }, "strict", z.ZodTypeAny, {
1719
+ eq?: string | null | undefined;
1720
+ in?: string[] | null | undefined;
1721
+ notIn?: string[] | null | undefined;
1722
+ }, {
1723
+ eq?: string | null | undefined;
1724
+ in?: string[] | null | undefined;
1725
+ notIn?: string[] | null | undefined;
1726
+ }>>>;
1727
+ type: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1728
+ eq: z.ZodOptional<z.ZodNullable<z.ZodEnum<["TRANSFER", "MINT", "SALE", "SWAP", "BURN"]>>>;
1729
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["TRANSFER", "MINT", "SALE", "SWAP", "BURN"]>, "many">>>;
1730
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["TRANSFER", "MINT", "SALE", "SWAP", "BURN"]>, "many">>>;
1731
+ }, "strict", z.ZodTypeAny, {
1732
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1733
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1734
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1735
+ }, {
1736
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1737
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1738
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1739
+ }>>>;
1740
+ walletAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1741
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1742
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1743
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1744
+ }, "strict", z.ZodTypeAny, {
1745
+ eq?: string | null | undefined;
1746
+ in?: string[] | null | undefined;
1747
+ notIn?: string[] | null | undefined;
1748
+ }, {
1749
+ eq?: string | null | undefined;
1750
+ in?: string[] | null | undefined;
1751
+ notIn?: string[] | null | undefined;
1752
+ }>>>;
1753
+ }, "strict", z.ZodTypeAny, {
1754
+ blockNumber?: {
1755
+ eq?: number | null | undefined;
1756
+ gt?: number | null | undefined;
1757
+ gte?: number | null | undefined;
1758
+ in?: number[] | null | undefined;
1759
+ lt?: number | null | undefined;
1760
+ lte?: number | null | undefined;
1761
+ notIn?: number[] | null | undefined;
1762
+ } | null | undefined;
1763
+ contractAddress?: {
1764
+ eq?: string | null | undefined;
1765
+ in?: string[] | null | undefined;
1766
+ notIn?: string[] | null | undefined;
1767
+ } | null | undefined;
1768
+ contractStandard?: {
1769
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1770
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1771
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1772
+ } | null | undefined;
1773
+ fromAddress?: {
1774
+ eq?: string | null | undefined;
1775
+ in?: string[] | null | undefined;
1776
+ notIn?: string[] | null | undefined;
1777
+ } | null | undefined;
1778
+ marketplace?: {
1779
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1780
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1781
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1782
+ } | null | undefined;
1783
+ timestamp?: {
1784
+ eq?: string | null | undefined;
1785
+ gt?: string | null | undefined;
1786
+ gte?: string | null | undefined;
1787
+ in?: string[] | null | undefined;
1788
+ lt?: string | null | undefined;
1789
+ lte?: string | null | undefined;
1790
+ notIn?: string[] | null | undefined;
1791
+ } | null | undefined;
1792
+ toAddress?: {
1793
+ eq?: string | null | undefined;
1794
+ in?: string[] | null | undefined;
1795
+ notIn?: string[] | null | undefined;
1796
+ } | null | undefined;
1797
+ transactionHash?: {
1798
+ eq?: string | null | undefined;
1799
+ in?: string[] | null | undefined;
1800
+ notIn?: string[] | null | undefined;
1801
+ } | null | undefined;
1802
+ type?: {
1803
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1804
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1805
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1806
+ } | null | undefined;
1807
+ walletAddress?: {
1808
+ eq?: string | null | undefined;
1809
+ in?: string[] | null | undefined;
1810
+ notIn?: string[] | null | undefined;
1811
+ } | null | undefined;
1812
+ }, {
1813
+ blockNumber?: {
1814
+ eq?: number | null | undefined;
1815
+ gt?: number | null | undefined;
1816
+ gte?: number | null | undefined;
1817
+ in?: number[] | null | undefined;
1818
+ lt?: number | null | undefined;
1819
+ lte?: number | null | undefined;
1820
+ notIn?: number[] | null | undefined;
1821
+ } | null | undefined;
1822
+ contractAddress?: {
1823
+ eq?: string | null | undefined;
1824
+ in?: string[] | null | undefined;
1825
+ notIn?: string[] | null | undefined;
1826
+ } | null | undefined;
1827
+ contractStandard?: {
1828
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1829
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1830
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1831
+ } | null | undefined;
1832
+ fromAddress?: {
1833
+ eq?: string | null | undefined;
1834
+ in?: string[] | null | undefined;
1835
+ notIn?: string[] | null | undefined;
1836
+ } | null | undefined;
1837
+ marketplace?: {
1838
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1839
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1840
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1841
+ } | null | undefined;
1842
+ timestamp?: {
1843
+ eq?: string | null | undefined;
1844
+ gt?: string | null | undefined;
1845
+ gte?: string | null | undefined;
1846
+ in?: string[] | null | undefined;
1847
+ lt?: string | null | undefined;
1848
+ lte?: string | null | undefined;
1849
+ notIn?: string[] | null | undefined;
1850
+ } | null | undefined;
1851
+ toAddress?: {
1852
+ eq?: string | null | undefined;
1853
+ in?: string[] | null | undefined;
1854
+ notIn?: string[] | null | undefined;
1855
+ } | null | undefined;
1856
+ transactionHash?: {
1857
+ eq?: string | null | undefined;
1858
+ in?: string[] | null | undefined;
1859
+ notIn?: string[] | null | undefined;
1860
+ } | null | undefined;
1861
+ type?: {
1862
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1863
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1864
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1865
+ } | null | undefined;
1866
+ walletAddress?: {
1867
+ eq?: string | null | undefined;
1868
+ in?: string[] | null | undefined;
1869
+ notIn?: string[] | null | undefined;
1870
+ } | null | undefined;
1871
+ }>>>;
1872
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1873
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1874
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1875
+ tokenId: z.ZodString;
1876
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
1877
+ }, "strict", z.ZodTypeAny, {
1878
+ contractAddress: string;
1879
+ tokenId: string;
1880
+ filter?: {
1881
+ blockNumber?: {
1882
+ eq?: number | null | undefined;
1883
+ gt?: number | null | undefined;
1884
+ gte?: number | null | undefined;
1885
+ in?: number[] | null | undefined;
1886
+ lt?: number | null | undefined;
1887
+ lte?: number | null | undefined;
1888
+ notIn?: number[] | null | undefined;
1889
+ } | null | undefined;
1890
+ contractAddress?: {
1891
+ eq?: string | null | undefined;
1892
+ in?: string[] | null | undefined;
1893
+ notIn?: string[] | null | undefined;
1894
+ } | null | undefined;
1895
+ contractStandard?: {
1896
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1897
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1898
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1899
+ } | null | undefined;
1900
+ fromAddress?: {
1901
+ eq?: string | null | undefined;
1902
+ in?: string[] | null | undefined;
1903
+ notIn?: string[] | null | undefined;
1904
+ } | null | undefined;
1905
+ marketplace?: {
1906
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1907
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1908
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1909
+ } | null | undefined;
1910
+ timestamp?: {
1911
+ eq?: string | null | undefined;
1912
+ gt?: string | null | undefined;
1913
+ gte?: string | null | undefined;
1914
+ in?: string[] | null | undefined;
1915
+ lt?: string | null | undefined;
1916
+ lte?: string | null | undefined;
1917
+ notIn?: string[] | null | undefined;
1918
+ } | null | undefined;
1919
+ toAddress?: {
1920
+ eq?: string | null | undefined;
1921
+ in?: string[] | null | undefined;
1922
+ notIn?: string[] | null | undefined;
1923
+ } | null | undefined;
1924
+ transactionHash?: {
1925
+ eq?: string | null | undefined;
1926
+ in?: string[] | null | undefined;
1927
+ notIn?: string[] | null | undefined;
1928
+ } | null | undefined;
1929
+ type?: {
1930
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1931
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1932
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1933
+ } | null | undefined;
1934
+ walletAddress?: {
1935
+ eq?: string | null | undefined;
1936
+ in?: string[] | null | undefined;
1937
+ notIn?: string[] | null | undefined;
1938
+ } | null | undefined;
1939
+ } | null | undefined;
1940
+ before?: string | null | undefined;
1941
+ after?: string | null | undefined;
1942
+ first?: number | null | undefined;
1943
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
1944
+ }, {
1945
+ contractAddress: string;
1946
+ tokenId: string;
1947
+ filter?: {
1948
+ blockNumber?: {
1949
+ eq?: number | null | undefined;
1950
+ gt?: number | null | undefined;
1951
+ gte?: number | null | undefined;
1952
+ in?: number[] | null | undefined;
1953
+ lt?: number | null | undefined;
1954
+ lte?: number | null | undefined;
1955
+ notIn?: number[] | null | undefined;
1956
+ } | null | undefined;
1957
+ contractAddress?: {
1958
+ eq?: string | null | undefined;
1959
+ in?: string[] | null | undefined;
1960
+ notIn?: string[] | null | undefined;
1961
+ } | null | undefined;
1962
+ contractStandard?: {
1963
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
1964
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1965
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
1966
+ } | null | undefined;
1967
+ fromAddress?: {
1968
+ eq?: string | null | undefined;
1969
+ in?: string[] | null | undefined;
1970
+ notIn?: string[] | null | undefined;
1971
+ } | null | undefined;
1972
+ marketplace?: {
1973
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
1974
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1975
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
1976
+ } | null | undefined;
1977
+ timestamp?: {
1978
+ eq?: string | null | undefined;
1979
+ gt?: string | null | undefined;
1980
+ gte?: string | null | undefined;
1981
+ in?: string[] | null | undefined;
1982
+ lt?: string | null | undefined;
1983
+ lte?: string | null | undefined;
1984
+ notIn?: string[] | null | undefined;
1985
+ } | null | undefined;
1986
+ toAddress?: {
1987
+ eq?: string | null | undefined;
1988
+ in?: string[] | null | undefined;
1989
+ notIn?: string[] | null | undefined;
1990
+ } | null | undefined;
1991
+ transactionHash?: {
1992
+ eq?: string | null | undefined;
1993
+ in?: string[] | null | undefined;
1994
+ notIn?: string[] | null | undefined;
1995
+ } | null | undefined;
1996
+ type?: {
1997
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
1998
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
1999
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2000
+ } | null | undefined;
2001
+ walletAddress?: {
2002
+ eq?: string | null | undefined;
2003
+ in?: string[] | null | undefined;
2004
+ notIn?: string[] | null | undefined;
2005
+ } | null | undefined;
2006
+ } | null | undefined;
2007
+ before?: string | null | undefined;
2008
+ after?: string | null | undefined;
2009
+ first?: number | null | undefined;
2010
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
2011
+ }>;
2012
+ type NFTEventsInput = z.infer<typeof nftEventsValidator>;
2013
+ type NFTEventsResult = SimplifyType<{
2014
+ results: CodegenTokenEventInfoFragment[];
2015
+ pageInfo: CodegenPaginationFragment;
2016
+ }>;
2017
+
2018
+ declare const allEventsValidator: z.ZodObject<{
2019
+ filter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2020
+ blockNumber: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2021
+ eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2022
+ gt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2023
+ gte: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2024
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2025
+ lt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2026
+ lte: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2027
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2028
+ }, "strict", z.ZodTypeAny, {
2029
+ eq?: number | null | undefined;
2030
+ gt?: number | null | undefined;
2031
+ gte?: number | null | undefined;
2032
+ in?: number[] | null | undefined;
2033
+ lt?: number | null | undefined;
2034
+ lte?: number | null | undefined;
2035
+ notIn?: number[] | null | undefined;
2036
+ }, {
2037
+ eq?: number | null | undefined;
2038
+ gt?: number | null | undefined;
2039
+ gte?: number | null | undefined;
2040
+ in?: number[] | null | undefined;
2041
+ lt?: number | null | undefined;
2042
+ lte?: number | null | undefined;
2043
+ notIn?: number[] | null | undefined;
2044
+ }>>>;
2045
+ contractAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2046
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2047
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2048
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2049
+ }, "strict", z.ZodTypeAny, {
2050
+ eq?: string | null | undefined;
2051
+ in?: string[] | null | undefined;
2052
+ notIn?: string[] | null | undefined;
2053
+ }, {
2054
+ eq?: string | null | undefined;
2055
+ in?: string[] | null | undefined;
2056
+ notIn?: string[] | null | undefined;
2057
+ }>>>;
2058
+ contractStandard: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2059
+ eq: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ERC20", "ERC721", "ERC1155"]>>>;
2060
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["ERC20", "ERC721", "ERC1155"]>, "many">>>;
2061
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["ERC20", "ERC721", "ERC1155"]>, "many">>>;
2062
+ }, "strict", z.ZodTypeAny, {
2063
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
2064
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
2065
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
2066
+ }, {
2067
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
2068
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
2069
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
2070
+ }>>>;
2071
+ fromAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2072
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2073
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2074
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2075
+ }, "strict", z.ZodTypeAny, {
2076
+ eq?: string | null | undefined;
2077
+ in?: string[] | null | undefined;
2078
+ notIn?: string[] | null | undefined;
2079
+ }, {
2080
+ eq?: string | null | undefined;
2081
+ in?: string[] | null | undefined;
2082
+ notIn?: string[] | null | undefined;
2083
+ }>>>;
2084
+ marketplace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2085
+ eq: z.ZodOptional<z.ZodNullable<z.ZodEnum<["BLUR", "CRYPTOPUNKS", "LOOKSRARE", "NIFTY_GATEWAY", "OPENSEA", "SEAPORT", "X2Y2", "ZEROX"]>>>;
2086
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["BLUR", "CRYPTOPUNKS", "LOOKSRARE", "NIFTY_GATEWAY", "OPENSEA", "SEAPORT", "X2Y2", "ZEROX"]>, "many">>>;
2087
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["BLUR", "CRYPTOPUNKS", "LOOKSRARE", "NIFTY_GATEWAY", "OPENSEA", "SEAPORT", "X2Y2", "ZEROX"]>, "many">>>;
2088
+ }, "strict", z.ZodTypeAny, {
2089
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
2090
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
2091
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
2092
+ }, {
2093
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
2094
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
2095
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
2096
+ }>>>;
2097
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2098
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2099
+ gt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2100
+ gte: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2101
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2102
+ lt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2103
+ lte: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2104
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2105
+ }, "strict", z.ZodTypeAny, {
2106
+ eq?: string | null | undefined;
2107
+ gt?: string | null | undefined;
2108
+ gte?: string | null | undefined;
2109
+ in?: string[] | null | undefined;
2110
+ lt?: string | null | undefined;
2111
+ lte?: string | null | undefined;
2112
+ notIn?: string[] | null | undefined;
2113
+ }, {
2114
+ eq?: string | null | undefined;
2115
+ gt?: string | null | undefined;
2116
+ gte?: string | null | undefined;
2117
+ in?: string[] | null | undefined;
2118
+ lt?: string | null | undefined;
2119
+ lte?: string | null | undefined;
2120
+ notIn?: string[] | null | undefined;
2121
+ }>>>;
2122
+ toAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2123
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2124
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2125
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2126
+ }, "strict", z.ZodTypeAny, {
2127
+ eq?: string | null | undefined;
2128
+ in?: string[] | null | undefined;
2129
+ notIn?: string[] | null | undefined;
2130
+ }, {
2131
+ eq?: string | null | undefined;
2132
+ in?: string[] | null | undefined;
2133
+ notIn?: string[] | null | undefined;
2134
+ }>>>;
2135
+ transactionHash: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2136
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2137
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2138
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2139
+ }, "strict", z.ZodTypeAny, {
2140
+ eq?: string | null | undefined;
2141
+ in?: string[] | null | undefined;
2142
+ notIn?: string[] | null | undefined;
2143
+ }, {
2144
+ eq?: string | null | undefined;
2145
+ in?: string[] | null | undefined;
2146
+ notIn?: string[] | null | undefined;
2147
+ }>>>;
2148
+ type: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2149
+ eq: z.ZodOptional<z.ZodNullable<z.ZodEnum<["TRANSFER", "MINT", "SALE", "SWAP", "BURN"]>>>;
2150
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["TRANSFER", "MINT", "SALE", "SWAP", "BURN"]>, "many">>>;
2151
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["TRANSFER", "MINT", "SALE", "SWAP", "BURN"]>, "many">>>;
2152
+ }, "strict", z.ZodTypeAny, {
2153
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
2154
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2155
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2156
+ }, {
2157
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
2158
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2159
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2160
+ }>>>;
2161
+ walletAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2162
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2163
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2164
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2165
+ }, "strict", z.ZodTypeAny, {
2166
+ eq?: string | null | undefined;
2167
+ in?: string[] | null | undefined;
2168
+ notIn?: string[] | null | undefined;
2169
+ }, {
2170
+ eq?: string | null | undefined;
2171
+ in?: string[] | null | undefined;
2172
+ notIn?: string[] | null | undefined;
2173
+ }>>>;
2174
+ }, "strict", z.ZodTypeAny, {
2175
+ blockNumber?: {
2176
+ eq?: number | null | undefined;
2177
+ gt?: number | null | undefined;
2178
+ gte?: number | null | undefined;
2179
+ in?: number[] | null | undefined;
2180
+ lt?: number | null | undefined;
2181
+ lte?: number | null | undefined;
2182
+ notIn?: number[] | null | undefined;
2183
+ } | null | undefined;
2184
+ contractAddress?: {
2185
+ eq?: string | null | undefined;
2186
+ in?: string[] | null | undefined;
2187
+ notIn?: string[] | null | undefined;
2188
+ } | null | undefined;
2189
+ contractStandard?: {
2190
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
2191
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
2192
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
2193
+ } | null | undefined;
2194
+ fromAddress?: {
2195
+ eq?: string | null | undefined;
2196
+ in?: string[] | null | undefined;
2197
+ notIn?: string[] | null | undefined;
2198
+ } | null | undefined;
2199
+ marketplace?: {
2200
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
2201
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
2202
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
2203
+ } | null | undefined;
2204
+ timestamp?: {
2205
+ eq?: string | null | undefined;
2206
+ gt?: string | null | undefined;
2207
+ gte?: string | null | undefined;
2208
+ in?: string[] | null | undefined;
2209
+ lt?: string | null | undefined;
2210
+ lte?: string | null | undefined;
2211
+ notIn?: string[] | null | undefined;
2212
+ } | null | undefined;
2213
+ toAddress?: {
2214
+ eq?: string | null | undefined;
2215
+ in?: string[] | null | undefined;
2216
+ notIn?: string[] | null | undefined;
2217
+ } | null | undefined;
2218
+ transactionHash?: {
2219
+ eq?: string | null | undefined;
2220
+ in?: string[] | null | undefined;
2221
+ notIn?: string[] | null | undefined;
2222
+ } | null | undefined;
2223
+ type?: {
2224
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
2225
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2226
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2227
+ } | null | undefined;
2228
+ walletAddress?: {
2229
+ eq?: string | null | undefined;
2230
+ in?: string[] | null | undefined;
2231
+ notIn?: string[] | null | undefined;
2232
+ } | null | undefined;
2233
+ }, {
2234
+ blockNumber?: {
2235
+ eq?: number | null | undefined;
2236
+ gt?: number | null | undefined;
2237
+ gte?: number | null | undefined;
2238
+ in?: number[] | null | undefined;
2239
+ lt?: number | null | undefined;
2240
+ lte?: number | null | undefined;
2241
+ notIn?: number[] | null | undefined;
2242
+ } | null | undefined;
2243
+ contractAddress?: {
2244
+ eq?: string | null | undefined;
2245
+ in?: string[] | null | undefined;
2246
+ notIn?: string[] | null | undefined;
2247
+ } | null | undefined;
2248
+ contractStandard?: {
2249
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
2250
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
2251
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
2252
+ } | null | undefined;
2253
+ fromAddress?: {
2254
+ eq?: string | null | undefined;
2255
+ in?: string[] | null | undefined;
2256
+ notIn?: string[] | null | undefined;
2257
+ } | null | undefined;
2258
+ marketplace?: {
2259
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
2260
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
2261
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
2262
+ } | null | undefined;
2263
+ timestamp?: {
2264
+ eq?: string | null | undefined;
2265
+ gt?: string | null | undefined;
2266
+ gte?: string | null | undefined;
2267
+ in?: string[] | null | undefined;
2268
+ lt?: string | null | undefined;
2269
+ lte?: string | null | undefined;
2270
+ notIn?: string[] | null | undefined;
2271
+ } | null | undefined;
2272
+ toAddress?: {
2273
+ eq?: string | null | undefined;
2274
+ in?: string[] | null | undefined;
2275
+ notIn?: string[] | null | undefined;
2276
+ } | null | undefined;
2277
+ transactionHash?: {
2278
+ eq?: string | null | undefined;
2279
+ in?: string[] | null | undefined;
2280
+ notIn?: string[] | null | undefined;
2281
+ } | null | undefined;
2282
+ type?: {
2283
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
2284
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2285
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2286
+ } | null | undefined;
2287
+ walletAddress?: {
2288
+ eq?: string | null | undefined;
2289
+ in?: string[] | null | undefined;
2290
+ notIn?: string[] | null | undefined;
2291
+ } | null | undefined;
2292
+ }>>>;
2293
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2294
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2295
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2296
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
2297
+ }, "strict", z.ZodTypeAny, {
2298
+ filter?: {
2299
+ blockNumber?: {
2300
+ eq?: number | null | undefined;
2301
+ gt?: number | null | undefined;
2302
+ gte?: number | null | undefined;
2303
+ in?: number[] | null | undefined;
2304
+ lt?: number | null | undefined;
2305
+ lte?: number | null | undefined;
2306
+ notIn?: number[] | null | undefined;
2307
+ } | null | undefined;
2308
+ contractAddress?: {
2309
+ eq?: string | null | undefined;
2310
+ in?: string[] | null | undefined;
2311
+ notIn?: string[] | null | undefined;
2312
+ } | null | undefined;
2313
+ contractStandard?: {
2314
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
2315
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
2316
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
2317
+ } | null | undefined;
2318
+ fromAddress?: {
2319
+ eq?: string | null | undefined;
2320
+ in?: string[] | null | undefined;
2321
+ notIn?: string[] | null | undefined;
2322
+ } | null | undefined;
2323
+ marketplace?: {
2324
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
2325
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
2326
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
2327
+ } | null | undefined;
2328
+ timestamp?: {
2329
+ eq?: string | null | undefined;
2330
+ gt?: string | null | undefined;
2331
+ gte?: string | null | undefined;
2332
+ in?: string[] | null | undefined;
2333
+ lt?: string | null | undefined;
2334
+ lte?: string | null | undefined;
2335
+ notIn?: string[] | null | undefined;
2336
+ } | null | undefined;
2337
+ toAddress?: {
2338
+ eq?: string | null | undefined;
2339
+ in?: string[] | null | undefined;
2340
+ notIn?: string[] | null | undefined;
2341
+ } | null | undefined;
2342
+ transactionHash?: {
2343
+ eq?: string | null | undefined;
2344
+ in?: string[] | null | undefined;
2345
+ notIn?: string[] | null | undefined;
2346
+ } | null | undefined;
2347
+ type?: {
2348
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
2349
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2350
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2351
+ } | null | undefined;
2352
+ walletAddress?: {
2353
+ eq?: string | null | undefined;
2354
+ in?: string[] | null | undefined;
2355
+ notIn?: string[] | null | undefined;
2356
+ } | null | undefined;
2357
+ } | null | undefined;
2358
+ before?: string | null | undefined;
2359
+ after?: string | null | undefined;
2360
+ first?: number | null | undefined;
2361
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
2362
+ }, {
2363
+ filter?: {
2364
+ blockNumber?: {
2365
+ eq?: number | null | undefined;
2366
+ gt?: number | null | undefined;
2367
+ gte?: number | null | undefined;
2368
+ in?: number[] | null | undefined;
2369
+ lt?: number | null | undefined;
2370
+ lte?: number | null | undefined;
2371
+ notIn?: number[] | null | undefined;
2372
+ } | null | undefined;
2373
+ contractAddress?: {
2374
+ eq?: string | null | undefined;
2375
+ in?: string[] | null | undefined;
2376
+ notIn?: string[] | null | undefined;
2377
+ } | null | undefined;
2378
+ contractStandard?: {
2379
+ eq?: "ERC721" | "ERC1155" | "ERC20" | null | undefined;
2380
+ in?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
2381
+ notIn?: ("ERC721" | "ERC1155" | "ERC20")[] | null | undefined;
2382
+ } | null | undefined;
2383
+ fromAddress?: {
2384
+ eq?: string | null | undefined;
2385
+ in?: string[] | null | undefined;
2386
+ notIn?: string[] | null | undefined;
2387
+ } | null | undefined;
2388
+ marketplace?: {
2389
+ eq?: "BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX" | null | undefined;
2390
+ in?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
2391
+ notIn?: ("BLUR" | "CRYPTOPUNKS" | "LOOKSRARE" | "NIFTY_GATEWAY" | "OPENSEA" | "SEAPORT" | "X2Y2" | "ZEROX")[] | null | undefined;
2392
+ } | null | undefined;
2393
+ timestamp?: {
2394
+ eq?: string | null | undefined;
2395
+ gt?: string | null | undefined;
2396
+ gte?: string | null | undefined;
2397
+ in?: string[] | null | undefined;
2398
+ lt?: string | null | undefined;
2399
+ lte?: string | null | undefined;
2400
+ notIn?: string[] | null | undefined;
2401
+ } | null | undefined;
2402
+ toAddress?: {
2403
+ eq?: string | null | undefined;
2404
+ in?: string[] | null | undefined;
2405
+ notIn?: string[] | null | undefined;
2406
+ } | null | undefined;
2407
+ transactionHash?: {
2408
+ eq?: string | null | undefined;
2409
+ in?: string[] | null | undefined;
2410
+ notIn?: string[] | null | undefined;
2411
+ } | null | undefined;
2412
+ type?: {
2413
+ eq?: "BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER" | null | undefined;
2414
+ in?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2415
+ notIn?: ("BURN" | "MINT" | "SALE" | "SWAP" | "TRANSFER")[] | null | undefined;
2416
+ } | null | undefined;
2417
+ walletAddress?: {
2418
+ eq?: string | null | undefined;
2419
+ in?: string[] | null | undefined;
2420
+ notIn?: string[] | null | undefined;
2421
+ } | null | undefined;
2422
+ } | null | undefined;
2423
+ before?: string | null | undefined;
2424
+ after?: string | null | undefined;
2425
+ first?: number | null | undefined;
2426
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
2427
+ }>;
2428
+ type AllEventsInput = z.infer<typeof allEventsValidator>;
2429
+ type AllEventsResult = SimplifyType<{
2430
+ results: CodegenTokenEventInfoFragment[];
2431
+ pageInfo: CodegenPaginationFragment;
2432
+ }>;
2433
+
2434
+ declare class EventsController {
2435
+ private client;
2436
+ private defaultChain;
2437
+ constructor(client: CustomUrqlClient, defaultChain?: ChainName);
2438
+ getByContract(variables: ContractEventsInput): Promise<ContractEventsResult>;
2439
+ getByNFTCollection(variables: CollectionEventsInput): Promise<CollectionEventsResult>;
2440
+ getByNFT(variables: NFTEventsInput): Promise<NFTEventsResult>;
2441
+ getAll(variables: AllEventsInput): Promise<AllEventsResult>;
2442
+ }
2443
+
2444
+ declare const balancesByWalletAddressValidator: z.ZodObject<{
2445
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2446
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2447
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2448
+ address: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodString]>;
2449
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
2450
+ }, "strict", z.ZodTypeAny, {
2451
+ address: string;
2452
+ before?: string | null | undefined;
2453
+ after?: string | null | undefined;
2454
+ first?: number | null | undefined;
2455
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
2456
+ }, {
2457
+ address: string;
2458
+ before?: string | null | undefined;
2459
+ after?: string | null | undefined;
2460
+ first?: number | null | undefined;
2461
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
2462
+ }>;
2463
+ type TransactionsByWalletAddressInput = z.infer<typeof balancesByWalletAddressValidator>;
2464
+ type TransactionsByWalletAddressResult = SimplifyType<{
2465
+ address: string;
2466
+ ensName: string;
2467
+ results: CodegenTransactionsNodeFragment[];
2468
+ pageInfo: CodegenPaginationFragment;
2469
+ }>;
2470
+
2471
+ declare const transactionsBySearchValidator: z.ZodObject<{
2472
+ filter: z.ZodOptional<z.ZodObject<{
2473
+ blockNumber: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2474
+ eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2475
+ gt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2476
+ gte: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2477
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2478
+ lt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2479
+ lte: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2480
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2481
+ }, "strict", z.ZodTypeAny, {
2482
+ eq?: number | null | undefined;
2483
+ gt?: number | null | undefined;
2484
+ gte?: number | null | undefined;
2485
+ in?: number[] | null | undefined;
2486
+ lt?: number | null | undefined;
2487
+ lte?: number | null | undefined;
2488
+ notIn?: number[] | null | undefined;
2489
+ }, {
2490
+ eq?: number | null | undefined;
2491
+ gt?: number | null | undefined;
2492
+ gte?: number | null | undefined;
2493
+ in?: number[] | null | undefined;
2494
+ lt?: number | null | undefined;
2495
+ lte?: number | null | undefined;
2496
+ notIn?: number[] | null | undefined;
2497
+ }>>>;
2498
+ fromAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2499
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2500
+ eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2501
+ gt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2502
+ gte: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2503
+ in: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2504
+ lt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2505
+ lte: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2506
+ notIn: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2507
+ }, "strict", z.ZodTypeAny, {
2508
+ eq?: string | null | undefined;
2509
+ gt?: string | null | undefined;
2510
+ gte?: string | null | undefined;
2511
+ in?: string[] | null | undefined;
2512
+ lt?: string | null | undefined;
2513
+ lte?: string | null | undefined;
2514
+ notIn?: string[] | null | undefined;
2515
+ }, {
2516
+ eq?: string | null | undefined;
2517
+ gt?: string | null | undefined;
2518
+ gte?: string | null | undefined;
2519
+ in?: string[] | null | undefined;
2520
+ lt?: string | null | undefined;
2521
+ lte?: string | null | undefined;
2522
+ notIn?: string[] | null | undefined;
2523
+ }>>>;
2524
+ toAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2525
+ }, "strict", z.ZodTypeAny, {
2526
+ blockNumber?: {
2527
+ eq?: number | null | undefined;
2528
+ gt?: number | null | undefined;
2529
+ gte?: number | null | undefined;
2530
+ in?: number[] | null | undefined;
2531
+ lt?: number | null | undefined;
2532
+ lte?: number | null | undefined;
2533
+ notIn?: number[] | null | undefined;
2534
+ } | null | undefined;
2535
+ fromAddress?: string | null | undefined;
2536
+ timestamp?: {
2537
+ eq?: string | null | undefined;
2538
+ gt?: string | null | undefined;
2539
+ gte?: string | null | undefined;
2540
+ in?: string[] | null | undefined;
2541
+ lt?: string | null | undefined;
2542
+ lte?: string | null | undefined;
2543
+ notIn?: string[] | null | undefined;
2544
+ } | null | undefined;
2545
+ toAddress?: string | null | undefined;
2546
+ }, {
2547
+ blockNumber?: {
2548
+ eq?: number | null | undefined;
2549
+ gt?: number | null | undefined;
2550
+ gte?: number | null | undefined;
2551
+ in?: number[] | null | undefined;
2552
+ lt?: number | null | undefined;
2553
+ lte?: number | null | undefined;
2554
+ notIn?: number[] | null | undefined;
2555
+ } | null | undefined;
2556
+ fromAddress?: string | null | undefined;
2557
+ timestamp?: {
2558
+ eq?: string | null | undefined;
2559
+ gt?: string | null | undefined;
2560
+ gte?: string | null | undefined;
2561
+ in?: string[] | null | undefined;
2562
+ lt?: string | null | undefined;
2563
+ lte?: string | null | undefined;
2564
+ notIn?: string[] | null | undefined;
2565
+ } | null | undefined;
2566
+ toAddress?: string | null | undefined;
2567
+ }>>;
2568
+ before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2569
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2570
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2571
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
2572
+ }, "strict", z.ZodTypeAny, {
2573
+ filter?: {
2574
+ blockNumber?: {
2575
+ eq?: number | null | undefined;
2576
+ gt?: number | null | undefined;
2577
+ gte?: number | null | undefined;
2578
+ in?: number[] | null | undefined;
2579
+ lt?: number | null | undefined;
2580
+ lte?: number | null | undefined;
2581
+ notIn?: number[] | null | undefined;
2582
+ } | null | undefined;
2583
+ fromAddress?: string | null | undefined;
2584
+ timestamp?: {
2585
+ eq?: string | null | undefined;
2586
+ gt?: string | null | undefined;
2587
+ gte?: string | null | undefined;
2588
+ in?: string[] | null | undefined;
2589
+ lt?: string | null | undefined;
2590
+ lte?: string | null | undefined;
2591
+ notIn?: string[] | null | undefined;
2592
+ } | null | undefined;
2593
+ toAddress?: string | null | undefined;
2594
+ } | undefined;
2595
+ before?: string | null | undefined;
2596
+ after?: string | null | undefined;
2597
+ first?: number | null | undefined;
2598
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
2599
+ }, {
2600
+ filter?: {
2601
+ blockNumber?: {
2602
+ eq?: number | null | undefined;
2603
+ gt?: number | null | undefined;
2604
+ gte?: number | null | undefined;
2605
+ in?: number[] | null | undefined;
2606
+ lt?: number | null | undefined;
2607
+ lte?: number | null | undefined;
2608
+ notIn?: number[] | null | undefined;
2609
+ } | null | undefined;
2610
+ fromAddress?: string | null | undefined;
2611
+ timestamp?: {
2612
+ eq?: string | null | undefined;
2613
+ gt?: string | null | undefined;
2614
+ gte?: string | null | undefined;
2615
+ in?: string[] | null | undefined;
2616
+ lt?: string | null | undefined;
2617
+ lte?: string | null | undefined;
2618
+ notIn?: string[] | null | undefined;
2619
+ } | null | undefined;
2620
+ toAddress?: string | null | undefined;
2621
+ } | undefined;
2622
+ before?: string | null | undefined;
2623
+ after?: string | null | undefined;
2624
+ first?: number | null | undefined;
2625
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
2626
+ }>;
2627
+ type TransactionsBySearchInput = z.infer<typeof transactionsBySearchValidator>;
2628
+ type TransactionsBySearchResult = SimplifyType<{
2629
+ results: CodegenTransactionsNodeFragment[];
2630
+ pageInfo: CodegenPaginationFragment;
2631
+ }>;
2632
+
2633
+ declare const transactionsByHashValidator: z.ZodObject<{
2634
+ hash: z.ZodString;
2635
+ chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
2636
+ }, "strict", z.ZodTypeAny, {
2637
+ hash: string;
2638
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
2639
+ }, {
2640
+ hash: string;
2641
+ chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
2642
+ }>;
2643
+ type TransactionsByHashInput = z.infer<typeof transactionsByHashValidator>;
2644
+ type TransactionsByHashResult = SimplifyType<{
2645
+ transaction: CodegenTransactionsNodeFragment | null;
2646
+ }>;
2647
+
2648
+ declare class TransactionsController {
2649
+ private client;
2650
+ private defaultChain;
2651
+ constructor(client: CustomUrqlClient, defaultChain?: ChainName);
2652
+ getByWallet(variables: TransactionsByWalletAddressInput): Promise<TransactionsByWalletAddressResult>;
2653
+ private getByWalletAddress;
2654
+ private getByWalletENS;
2655
+ getAll(variables: TransactionsBySearchInput): Promise<TransactionsBySearchResult>;
2656
+ getByHash(variables: TransactionsByHashInput): Promise<TransactionsByHashResult>;
2657
+ }
2658
+
2659
+ interface ApiArguments {
2660
+ graphApiKey?: string;
2661
+ additionalHeaders?: Record<string, string>;
2662
+ defaultChain?: ChainName;
2663
+ }
2664
+ declare class API {
2665
+ readonly urqlClient: Client;
2666
+ private customUrqlClient;
2667
+ private graphApiKey?;
2668
+ private additionalHeaders?;
2669
+ readonly defaultChain: ChainName;
2670
+ readonly nfts: NftsController;
2671
+ readonly tokens: TokensController;
2672
+ readonly utils: UtilsController;
2673
+ readonly contracts: ContractsController;
2674
+ readonly transactions: TransactionsController;
2675
+ readonly events: EventsController;
2676
+ readonly graphApiClient: Client;
2677
+ constructor({ graphApiKey, additionalHeaders, defaultChain, }?: ApiArguments);
2678
+ private createUrqlClient;
2679
+ }
2680
+
2681
+ export { API as default };