@quicknode/sdk 1.0.0-beta.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -24,7 +24,6 @@ type Scalars = {
24
24
  };
25
25
  /** Gas Prices for a given block. Gas values are returned in Wei. */
26
26
  type CodegenGasPrice = {
27
- __typename?: 'GasPrice';
28
27
  /** The average gas price */
29
28
  average: Scalars['Float'];
30
29
  /** The block number */
@@ -70,9 +69,7 @@ type CodegenEthMainnetTransactionsByWalletENSQueryVariables = Exact<{
70
69
  after?: InputMaybe<Scalars['String']>;
71
70
  }>;
72
71
  type CodegenNftCollectionInfoFragment = {
73
- __typename?: 'EVMSchemaType';
74
72
  collection?: {
75
- __typename?: 'ERC721Collection';
76
73
  address: string;
77
74
  baseTokenUri?: string | null;
78
75
  circulatingSupply?: any | null;
@@ -84,14 +81,12 @@ type CodegenNftCollectionInfoFragment = {
84
81
  totalSupply?: any | null;
85
82
  twitterUsername?: string | null;
86
83
  bannerImage?: Array<{
87
- __typename?: 'TokenUpload';
88
84
  height?: number | null;
89
85
  mimeType?: string | null;
90
86
  url: string;
91
87
  width?: number | null;
92
88
  }> | null;
93
89
  contract?: {
94
- __typename?: 'NFTContract';
95
90
  address: string;
96
91
  isVerified?: boolean | null;
97
92
  name?: string | null;
@@ -99,14 +94,12 @@ type CodegenNftCollectionInfoFragment = {
99
94
  supportedErcInterfaces?: Array<string> | null;
100
95
  } | null;
101
96
  image?: Array<{
102
- __typename?: 'TokenUpload';
103
97
  height?: number | null;
104
98
  mimeType?: string | null;
105
99
  url: string;
106
100
  width?: number | null;
107
101
  }> | null;
108
102
  ohlcvChart?: Array<{
109
- __typename?: 'CollectionOHLCVChart';
110
103
  average?: number | null;
111
104
  close?: number | null;
112
105
  count: number;
@@ -117,13 +110,11 @@ type CodegenNftCollectionInfoFragment = {
117
110
  timestamp: any;
118
111
  }> | null;
119
112
  openseaMetadata?: {
120
- __typename?: 'OpenSeaMetadata';
121
113
  isHidden?: boolean | null;
122
114
  isVerified?: boolean | null;
123
115
  unsafeSlug?: string | null;
124
116
  } | null;
125
117
  } | {
126
- __typename?: 'ERC1155Collection';
127
118
  address: string;
128
119
  baseTokenUri?: string | null;
129
120
  circulatingSupply?: any | null;
@@ -135,14 +126,12 @@ type CodegenNftCollectionInfoFragment = {
135
126
  totalSupply?: any | null;
136
127
  twitterUsername?: string | null;
137
128
  bannerImage?: Array<{
138
- __typename?: 'TokenUpload';
139
129
  height?: number | null;
140
130
  mimeType?: string | null;
141
131
  url: string;
142
132
  width?: number | null;
143
133
  }> | null;
144
134
  contract?: {
145
- __typename?: 'NFTContract';
146
135
  address: string;
147
136
  isVerified?: boolean | null;
148
137
  name?: string | null;
@@ -150,14 +139,12 @@ type CodegenNftCollectionInfoFragment = {
150
139
  supportedErcInterfaces?: Array<string> | null;
151
140
  } | null;
152
141
  image?: Array<{
153
- __typename?: 'TokenUpload';
154
142
  height?: number | null;
155
143
  mimeType?: string | null;
156
144
  url: string;
157
145
  width?: number | null;
158
146
  }> | null;
159
147
  ohlcvChart?: Array<{
160
- __typename?: 'CollectionOHLCVChart';
161
148
  average?: number | null;
162
149
  close?: number | null;
163
150
  count: number;
@@ -168,7 +155,6 @@ type CodegenNftCollectionInfoFragment = {
168
155
  timestamp: any;
169
156
  }> | null;
170
157
  openseaMetadata?: {
171
- __typename?: 'OpenSeaMetadata';
172
158
  isHidden?: boolean | null;
173
159
  isVerified?: boolean | null;
174
160
  unsafeSlug?: string | null;
@@ -176,9 +162,8 @@ type CodegenNftCollectionInfoFragment = {
176
162
  } | null;
177
163
  };
178
164
  type CodegenNftDetailsFragment = {
179
- __typename?: 'EVMSchemaType';
180
165
  nft?: {
181
- __typename?: 'ERC721NFT';
166
+ __typename: 'ERC721NFT';
182
167
  animationUrl?: string | null;
183
168
  collectionSlug?: string | null;
184
169
  contractAddress: string;
@@ -188,12 +173,11 @@ type CodegenNftDetailsFragment = {
188
173
  name?: string | null;
189
174
  tokenId: any;
190
175
  wallet?: {
191
- __typename?: 'Wallet';
192
176
  address: string;
193
177
  ensName?: string | null;
194
178
  } | null;
195
179
  } | {
196
- __typename?: 'ERC1155NFT';
180
+ __typename: 'ERC1155NFT';
197
181
  animationUrl?: string | null;
198
182
  collectionSlug?: string | null;
199
183
  contractAddress: string;
@@ -203,11 +187,8 @@ type CodegenNftDetailsFragment = {
203
187
  name?: string | null;
204
188
  tokenId: any;
205
189
  wallets: {
206
- __typename?: 'ERC1155NFTWalletsConnection';
207
190
  edges: Array<{
208
- __typename?: 'ERC1155NFTWalletsConnectionEdge';
209
191
  node: {
210
- __typename?: 'Wallet';
211
192
  address: string;
212
193
  ensName?: string | null;
213
194
  };
@@ -216,7 +197,7 @@ type CodegenNftDetailsFragment = {
216
197
  } | null;
217
198
  };
218
199
  type CodegenERC1155NFTNodeFragment = {
219
- __typename?: 'ERC1155NFT';
200
+ __typename: 'ERC1155NFT';
220
201
  animationUrl?: string | null;
221
202
  collectionSlug?: string | null;
222
203
  contractAddress: string;
@@ -226,11 +207,8 @@ type CodegenERC1155NFTNodeFragment = {
226
207
  name?: string | null;
227
208
  tokenId: any;
228
209
  wallets: {
229
- __typename?: 'ERC1155NFTWalletsConnection';
230
210
  edges: Array<{
231
- __typename?: 'ERC1155NFTWalletsConnectionEdge';
232
211
  node: {
233
- __typename?: 'Wallet';
234
212
  address: string;
235
213
  ensName?: string | null;
236
214
  };
@@ -238,7 +216,7 @@ type CodegenERC1155NFTNodeFragment = {
238
216
  };
239
217
  };
240
218
  type CodegenERC721NFTNodeFragment = {
241
- __typename?: 'ERC721NFT';
219
+ __typename: 'ERC721NFT';
242
220
  animationUrl?: string | null;
243
221
  collectionSlug?: string | null;
244
222
  contractAddress: string;
@@ -248,18 +226,15 @@ type CodegenERC721NFTNodeFragment = {
248
226
  name?: string | null;
249
227
  tokenId: any;
250
228
  attributes?: Array<{
251
- __typename?: 'TokenAttribute';
252
229
  name: string;
253
230
  value: string;
254
231
  }> | null;
255
232
  wallet?: {
256
- __typename?: 'Wallet';
257
233
  address: string;
258
234
  ensName?: string | null;
259
235
  } | null;
260
236
  };
261
237
  type CodegenTransactionsNodeFragment = {
262
- __typename?: 'Transaction';
263
238
  blockNumber: number;
264
239
  blockTimestamp: any;
265
240
  contractAddress?: string | null;
@@ -279,7 +254,6 @@ type CodegenTransactionsNodeFragment = {
279
254
  value?: any | null;
280
255
  };
281
256
  type CodegenTrendingCollectionInfo_CodegenERC721Collection_CodegenFragment = {
282
- __typename?: 'ERC721Collection';
283
257
  address: string;
284
258
  baseTokenUri?: string | null;
285
259
  circulatingSupply?: any | null;
@@ -290,21 +264,18 @@ type CodegenTrendingCollectionInfo_CodegenERC721Collection_CodegenFragment = {
290
264
  totalSupply?: any | null;
291
265
  twitterUsername?: string | null;
292
266
  image?: Array<{
293
- __typename?: 'TokenUpload';
294
267
  height?: number | null;
295
268
  mimeType?: string | null;
296
269
  url: string;
297
270
  width?: number | null;
298
271
  }> | null;
299
272
  openseaMetadata?: {
300
- __typename?: 'OpenSeaMetadata';
301
273
  isHidden?: boolean | null;
302
274
  isVerified?: boolean | null;
303
275
  unsafeSlug?: string | null;
304
276
  } | null;
305
277
  };
306
278
  type CodegenTrendingCollectionInfo_CodegenERC1155Collection_CodegenFragment = {
307
- __typename?: 'ERC1155Collection';
308
279
  address: string;
309
280
  baseTokenUri?: string | null;
310
281
  circulatingSupply?: any | null;
@@ -315,14 +286,12 @@ type CodegenTrendingCollectionInfo_CodegenERC1155Collection_CodegenFragment = {
315
286
  totalSupply?: any | null;
316
287
  twitterUsername?: string | null;
317
288
  image?: Array<{
318
- __typename?: 'TokenUpload';
319
289
  height?: number | null;
320
290
  mimeType?: string | null;
321
291
  url: string;
322
292
  width?: number | null;
323
293
  }> | null;
324
294
  openseaMetadata?: {
325
- __typename?: 'OpenSeaMetadata';
326
295
  isHidden?: boolean | null;
327
296
  isVerified?: boolean | null;
328
297
  unsafeSlug?: string | null;
@@ -330,9 +299,7 @@ type CodegenTrendingCollectionInfo_CodegenERC1155Collection_CodegenFragment = {
330
299
  };
331
300
  type CodegenTrendingCollectionInfoFragment = CodegenTrendingCollectionInfo_CodegenERC721Collection_CodegenFragment | CodegenTrendingCollectionInfo_CodegenERC1155Collection_CodegenFragment;
332
301
  type CodegenWalletNFTNodeFragment = {
333
- __typename?: 'WalletNFT';
334
302
  nft?: {
335
- __typename?: 'ERC721NFT';
336
303
  animationUrl?: string | null;
337
304
  collectionSlug?: string | null;
338
305
  contractAddress: string;
@@ -342,7 +309,6 @@ type CodegenWalletNFTNodeFragment = {
342
309
  name?: string | null;
343
310
  tokenId: any;
344
311
  } | {
345
- __typename?: 'ERC1155NFT';
346
312
  animationUrl?: string | null;
347
313
  collectionSlug?: string | null;
348
314
  contractAddress: string;
@@ -354,7 +320,7 @@ type CodegenWalletNFTNodeFragment = {
354
320
  } | null;
355
321
  };
356
322
  type CodegenContractInfo_CodegenNFTContract_CodegenFragment = {
357
- __typename?: 'NFTContract';
323
+ __typename: 'NFTContract';
358
324
  abi?: any | null;
359
325
  address: string;
360
326
  isVerified?: boolean | null;
@@ -363,7 +329,7 @@ type CodegenContractInfo_CodegenNFTContract_CodegenFragment = {
363
329
  symbol?: string | null;
364
330
  };
365
331
  type CodegenContractInfo_CodegenTokenContract_CodegenFragment = {
366
- __typename?: 'TokenContract';
332
+ __typename: 'TokenContract';
367
333
  decimals?: any | null;
368
334
  abi?: any | null;
369
335
  address: string;
@@ -374,10 +340,8 @@ type CodegenContractInfo_CodegenTokenContract_CodegenFragment = {
374
340
  };
375
341
  type CodegenContractInfoFragment = CodegenContractInfo_CodegenNFTContract_CodegenFragment | CodegenContractInfo_CodegenTokenContract_CodegenFragment;
376
342
  type CodegenTokenBalanceNodeFragment = {
377
- __typename?: 'WalletTokenBalance';
378
343
  totalBalance: any;
379
344
  contract?: {
380
- __typename?: 'TokenContract';
381
345
  address: string;
382
346
  decimals?: any | null;
383
347
  name?: string | null;
@@ -385,7 +349,7 @@ type CodegenTokenBalanceNodeFragment = {
385
349
  } | null;
386
350
  };
387
351
  type CodegenTokenEventInfo_CodegenTokenBurnEvent_CodegenFragment = {
388
- __typename?: 'TokenBurnEvent';
352
+ __typename: 'TokenBurnEvent';
389
353
  tokenId?: any | null;
390
354
  tokenQuantity: any;
391
355
  blockNumber: number;
@@ -397,7 +361,7 @@ type CodegenTokenEventInfo_CodegenTokenBurnEvent_CodegenFragment = {
397
361
  type: CodegenTokenTransferType;
398
362
  };
399
363
  type CodegenTokenEventInfo_CodegenTokenMintEvent_CodegenFragment = {
400
- __typename?: 'TokenMintEvent';
364
+ __typename: 'TokenMintEvent';
401
365
  tokenQuantity: any;
402
366
  blockNumber: number;
403
367
  fromAddress: string;
@@ -408,7 +372,7 @@ type CodegenTokenEventInfo_CodegenTokenMintEvent_CodegenFragment = {
408
372
  type: CodegenTokenTransferType;
409
373
  };
410
374
  type CodegenTokenEventInfo_CodegenTokenSaleEvent_CodegenFragment = {
411
- __typename?: 'TokenSaleEvent';
375
+ __typename: 'TokenSaleEvent';
412
376
  marketplace?: CodegenMarketplace | null;
413
377
  receivedTokenContractAddress?: string | null;
414
378
  receivedTokenId?: any | null;
@@ -422,7 +386,7 @@ type CodegenTokenEventInfo_CodegenTokenSaleEvent_CodegenFragment = {
422
386
  type: CodegenTokenTransferType;
423
387
  };
424
388
  type CodegenTokenEventInfo_CodegenTokenSwapEvent_CodegenFragment = {
425
- __typename?: 'TokenSwapEvent';
389
+ __typename: 'TokenSwapEvent';
426
390
  blockNumber: number;
427
391
  fromAddress: string;
428
392
  timestamp: any;
@@ -432,7 +396,7 @@ type CodegenTokenEventInfo_CodegenTokenSwapEvent_CodegenFragment = {
432
396
  type: CodegenTokenTransferType;
433
397
  };
434
398
  type CodegenTokenEventInfo_CodegenTokenTransferEvent_CodegenFragment = {
435
- __typename?: 'TokenTransferEvent';
399
+ __typename: 'TokenTransferEvent';
436
400
  tokenId?: any | null;
437
401
  contractAddress: string;
438
402
  tokenQuantity: any;
@@ -446,7 +410,6 @@ type CodegenTokenEventInfo_CodegenTokenTransferEvent_CodegenFragment = {
446
410
  };
447
411
  type CodegenTokenEventInfoFragment = CodegenTokenEventInfo_CodegenTokenBurnEvent_CodegenFragment | CodegenTokenEventInfo_CodegenTokenMintEvent_CodegenFragment | CodegenTokenEventInfo_CodegenTokenSaleEvent_CodegenFragment | CodegenTokenEventInfo_CodegenTokenSwapEvent_CodegenFragment | CodegenTokenEventInfo_CodegenTokenTransferEvent_CodegenFragment;
448
412
  type CodegenPaginationFragment = {
449
- __typename?: 'PageInfo';
450
413
  endCursor?: string | null;
451
414
  hasNextPage: boolean;
452
415
  hasPreviousPage: boolean;
@@ -455,13 +418,10 @@ type CodegenPaginationFragment = {
455
418
 
456
419
  type ResultOutput = Record<string | number | symbol, any>;
457
420
 
458
- interface InternalOptions {
459
- keepTypename?: boolean;
460
- }
461
421
  declare class CustomUrqlClient {
462
422
  urqlClient: Client;
463
423
  constructor(urqlClient: Client);
464
- query<TVariables extends Record<string, any>, KResults extends Record<string, any>, KResultsOutput extends ResultOutput>(options: GraphQLRequestParams<any, TVariables> & InternalOptions): Promise<{
424
+ query<TVariables extends Record<string, any>, KResults extends Record<string, any>, KResultsOutput extends ResultOutput>(options: GraphQLRequestParams<any, TVariables>): Promise<{
465
425
  data: any;
466
426
  operation: _urql_core_dist_urql_core_chunk.Operation<any, Record<string, any> | TVariables>;
467
427
  error?: _urql_core_dist_urql_core_chunk.CombinedError | undefined;
@@ -474,6 +434,10 @@ declare class CustomUrqlClient {
474
434
  declare const supportedChains: readonly ["ethereum", "polygon", "ethereumSepolia"];
475
435
  type ChainName = (typeof supportedChains)[number];
476
436
 
437
+ type SimplifyType<T> = T extends object ? {
438
+ [K in keyof T]: SimplifyType<T[K]>;
439
+ } : T;
440
+
477
441
  declare const walletByAddressValidator: z.ZodObject<{
478
442
  filter: z.ZodOptional<z.ZodObject<{
479
443
  contractTokens: z.ZodArray<z.ZodObject<{
@@ -540,12 +504,12 @@ declare const walletByAddressValidator: z.ZodObject<{
540
504
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
541
505
  }>;
542
506
  type WalletNFTsByAddressInput = z.infer<typeof walletByAddressValidator>;
543
- type WalletNFTsByAddressResult = {
507
+ type WalletNFTsByAddressResult = SimplifyType<{
544
508
  address: string;
545
509
  ensName: string;
546
510
  results: CodegenWalletNFTNodeFragment['nft'][];
547
511
  pageInfo: CodegenPaginationFragment;
548
- };
512
+ }>;
549
513
 
550
514
  declare const nftDetailsValidator: z.ZodObject<{
551
515
  contractAddress: z.ZodString;
@@ -561,9 +525,9 @@ declare const nftDetailsValidator: z.ZodObject<{
561
525
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
562
526
  }>;
563
527
  type NFTDetailsInput = z.infer<typeof nftDetailsValidator>;
564
- type NFTDetailsResult = {
528
+ type NFTDetailsResult = SimplifyType<{
565
529
  nft: CodegenNftDetailsFragment['nft'];
566
- };
530
+ }>;
567
531
 
568
532
  declare const nftCollectionDetailsValidator: z.ZodObject<{
569
533
  contractAddress: z.ZodString;
@@ -576,9 +540,9 @@ declare const nftCollectionDetailsValidator: z.ZodObject<{
576
540
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
577
541
  }>;
578
542
  type NftCollectionDetailsInput = z.infer<typeof nftCollectionDetailsValidator>;
579
- type NftCollectionDetailsResult = {
543
+ type NftCollectionDetailsResult = SimplifyType<{
580
544
  collection: CodegenNftCollectionInfoFragment['collection'];
581
- };
545
+ }>;
582
546
 
583
547
  declare const nftTrendingCollectionsValidator: z.ZodObject<{
584
548
  before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -597,10 +561,10 @@ declare const nftTrendingCollectionsValidator: z.ZodObject<{
597
561
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
598
562
  }>;
599
563
  type NFTTrendingCollectionsInput = z.infer<typeof nftTrendingCollectionsValidator>;
600
- type NFTTrendingCollectionResult = {
564
+ type NFTTrendingCollectionResult = SimplifyType<{
601
565
  results: CodegenTrendingCollectionInfoFragment[];
602
566
  pageInfo: CodegenPaginationFragment;
603
- };
567
+ }>;
604
568
 
605
569
  type NftErcStandards = 'ERC721' | 'ERC1155';
606
570
 
@@ -624,11 +588,11 @@ declare const nftsByContractAddressValidator: z.ZodObject<{
624
588
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
625
589
  }>;
626
590
  type NFTsByContractAddressInput = z.infer<typeof nftsByContractAddressValidator>;
627
- type NFTsByContractAddressResult = {
591
+ type NFTsByContractAddressResult = SimplifyType<{
628
592
  standard: NftErcStandards | null;
629
593
  results: [CodegenERC721NFTNodeFragment | CodegenERC1155NFTNodeFragment][];
630
594
  pageInfo: CodegenPaginationFragment;
631
- };
595
+ }>;
632
596
 
633
597
  declare const verifyOwnershipValidator: z.ZodObject<{
634
598
  address: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodString]>;
@@ -687,12 +651,12 @@ type NonQueryInput = {
687
651
  };
688
652
 
689
653
  type BalancesByWalletENSInput = CodegenEthMainnetBalancesByWalletENSQueryVariables & NonQueryInput;
690
- type BalancesByWalletENSResult = {
654
+ type BalancesByWalletENSResult = SimplifyType<{
691
655
  address: string;
692
656
  ensName: string;
693
657
  results: CodegenTokenBalanceNodeFragment[];
694
658
  pageInfo: CodegenPaginationFragment;
695
- };
659
+ }>;
696
660
 
697
661
  declare const balancesByWalletAddressValidator$1: z.ZodObject<{
698
662
  before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -714,12 +678,12 @@ declare const balancesByWalletAddressValidator$1: z.ZodObject<{
714
678
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
715
679
  }>;
716
680
  type BalancesByWalletAddressInput = z.infer<typeof balancesByWalletAddressValidator$1>;
717
- type BalancesByWalletAddressResult = {
681
+ type BalancesByWalletAddressResult = SimplifyType<{
718
682
  address: string;
719
683
  ensName: string;
720
684
  results: CodegenTokenBalanceNodeFragment[];
721
685
  pageInfo: CodegenPaginationFragment;
722
- };
686
+ }>;
723
687
 
724
688
  declare class TokensController {
725
689
  private client;
@@ -811,9 +775,9 @@ declare const gasPricesValidator: z.ZodObject<{
811
775
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
812
776
  }>;
813
777
  type GasPricesInput = z.infer<typeof gasPricesValidator>;
814
- type GasPricesResult = {
778
+ type GasPricesResult = SimplifyType<{
815
779
  gasPrices: CodegenGasPrice[];
816
- };
780
+ }>;
817
781
 
818
782
  declare class UtilsController {
819
783
  private client;
@@ -833,9 +797,9 @@ declare const contractDetailsValidator: z.ZodObject<{
833
797
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
834
798
  }>;
835
799
  type ContractDetailsInput = z.infer<typeof contractDetailsValidator>;
836
- type ContractDetailsResult = {
800
+ type ContractDetailsResult = SimplifyType<{
837
801
  contract: CodegenContractInfoFragment | null;
838
- };
802
+ }>;
839
803
 
840
804
  declare class ContractsController {
841
805
  private client;
@@ -1258,10 +1222,10 @@ declare const contractEventsValidator: z.ZodObject<{
1258
1222
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
1259
1223
  }>;
1260
1224
  type ContractEventsInput = z.infer<typeof contractEventsValidator>;
1261
- type ContractEventsResult = {
1225
+ type ContractEventsResult = SimplifyType<{
1262
1226
  results: CodegenTokenEventInfoFragment[];
1263
1227
  pageInfo: CodegenPaginationFragment;
1264
- };
1228
+ }>;
1265
1229
 
1266
1230
  declare const collectionEventsValidator: z.ZodObject<{
1267
1231
  contractAddress: z.ZodString;
@@ -1677,10 +1641,10 @@ declare const collectionEventsValidator: z.ZodObject<{
1677
1641
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
1678
1642
  }>;
1679
1643
  type CollectionEventsInput = z.infer<typeof collectionEventsValidator>;
1680
- type CollectionEventsResult = {
1644
+ type CollectionEventsResult = SimplifyType<{
1681
1645
  results: CodegenTokenEventInfoFragment[];
1682
1646
  pageInfo: CodegenPaginationFragment;
1683
- };
1647
+ }>;
1684
1648
 
1685
1649
  declare const nftEventsValidator: z.ZodObject<{
1686
1650
  contractAddress: z.ZodString;
@@ -2099,10 +2063,10 @@ declare const nftEventsValidator: z.ZodObject<{
2099
2063
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
2100
2064
  }>;
2101
2065
  type NFTEventsInput = z.infer<typeof nftEventsValidator>;
2102
- type NFTEventsResult = {
2066
+ type NFTEventsResult = SimplifyType<{
2103
2067
  results: CodegenTokenEventInfoFragment[];
2104
2068
  pageInfo: CodegenPaginationFragment;
2105
- };
2069
+ }>;
2106
2070
 
2107
2071
  declare const allEventsValidator: z.ZodObject<{
2108
2072
  filter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -2515,10 +2479,10 @@ declare const allEventsValidator: z.ZodObject<{
2515
2479
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
2516
2480
  }>;
2517
2481
  type AllEventsInput = z.infer<typeof allEventsValidator>;
2518
- type AllEventsResult = {
2482
+ type AllEventsResult = SimplifyType<{
2519
2483
  results: CodegenTokenEventInfoFragment[];
2520
2484
  pageInfo: CodegenPaginationFragment;
2521
- };
2485
+ }>;
2522
2486
 
2523
2487
  declare class EventsController {
2524
2488
  private client;
@@ -2550,12 +2514,12 @@ declare const balancesByWalletAddressValidator: z.ZodObject<{
2550
2514
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
2551
2515
  }>;
2552
2516
  type TransactionsByWalletAddressInput = z.infer<typeof balancesByWalletAddressValidator>;
2553
- type TransactionsByWalletAddressResult = {
2517
+ type TransactionsByWalletAddressResult = SimplifyType<{
2554
2518
  address: string;
2555
2519
  ensName: string;
2556
2520
  results: CodegenTransactionsNodeFragment[];
2557
2521
  pageInfo: CodegenPaginationFragment;
2558
- };
2522
+ }>;
2559
2523
 
2560
2524
  declare const transactionsBySearchValidator: z.ZodObject<{
2561
2525
  filter: z.ZodOptional<z.ZodObject<{
@@ -2714,10 +2678,10 @@ declare const transactionsBySearchValidator: z.ZodObject<{
2714
2678
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
2715
2679
  }>;
2716
2680
  type TransactionsBySearchInput = z.infer<typeof transactionsBySearchValidator>;
2717
- type TransactionsBySearchResult = {
2681
+ type TransactionsBySearchResult = SimplifyType<{
2718
2682
  results: CodegenTransactionsNodeFragment[];
2719
2683
  pageInfo: CodegenPaginationFragment;
2720
- };
2684
+ }>;
2721
2685
 
2722
2686
  declare const transactionsByHashValidator: z.ZodObject<{
2723
2687
  hash: z.ZodString;
@@ -2730,9 +2694,9 @@ declare const transactionsByHashValidator: z.ZodObject<{
2730
2694
  chain?: "ethereum" | "ethereumSepolia" | "polygon" | null | undefined;
2731
2695
  }>;
2732
2696
  type TransactionsByHashInput = z.infer<typeof transactionsByHashValidator>;
2733
- type TransactionsByHashResult = {
2697
+ type TransactionsByHashResult = SimplifyType<{
2734
2698
  transaction: CodegenTransactionsNodeFragment | null;
2735
- };
2699
+ }>;
2736
2700
 
2737
2701
  declare class TransactionsController {
2738
2702
  private client;
@@ -2773,21 +2737,21 @@ declare const QuickNode: {
2773
2737
 
2774
2738
  type WalletNFTsByEnsQueryVariables = CodegenEthMainnetWalletNFTsByEnsQueryVariables;
2775
2739
  type WalletNFTsByEnsInput = WalletNFTsByEnsQueryVariables & NonQueryInput;
2776
- type WalletNFTsByEnsResult = {
2740
+ type WalletNFTsByEnsResult = SimplifyType<{
2777
2741
  address: string;
2778
2742
  ensName: string;
2779
2743
  results: CodegenWalletNFTNodeFragment['nft'][];
2780
2744
  pageInfo: CodegenPaginationFragment;
2781
- };
2745
+ }>;
2782
2746
 
2783
2747
  type TransactionsByWalletENSQueryVariables = CodegenEthMainnetTransactionsByWalletENSQueryVariables;
2784
2748
  type TransactionsByWalletENSInput = TransactionsByWalletENSQueryVariables & NonQueryInput;
2785
- type TransactionsByWalletENSResult = {
2749
+ type TransactionsByWalletENSResult = SimplifyType<{
2786
2750
  address: string;
2787
2751
  ensName: string;
2788
2752
  results: CodegenTransactionsNodeFragment[];
2789
2753
  pageInfo: CodegenPaginationFragment;
2790
- };
2754
+ }>;
2791
2755
 
2792
2756
  declare class QNInputValidationError extends Error {
2793
2757
  messages: string[];
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "directory": "packages/libs/sdk"
7
7
  },
8
8
  "license": "MIT",
9
- "version": "1.0.0-beta.1",
9
+ "version": "1.0.0",
10
10
  "main": "./cjs/index.js",
11
11
  "module": "./esm/index.js",
12
12
  "types": "./index.d.ts",