@quicknode/sdk 1.1.0 → 1.1.2
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/cjs/index.js +129 -192
- package/esm/package.json.js +1 -1
- package/esm/src/api/api.js +0 -2
- package/esm/src/api/controllers/contracts.js +6 -8
- package/esm/src/api/controllers/events.js +23 -31
- package/esm/src/api/controllers/nfts.js +44 -61
- package/esm/src/api/controllers/tokens.js +10 -15
- package/esm/src/api/controllers/transactions.js +26 -31
- package/esm/src/api/controllers/utils.js +6 -8
- package/esm/src/api/graphql/generatedTypes.js +1 -41
- package/esm/src/api/graphql/modifyQueryForChain.js +27 -0
- package/esm/src/api/index.d.ts +44 -41
- package/index.d.ts +56 -41
- package/package.json +3 -4
- package/esm/src/api/graphql/schema.json.js +0 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Kind } from 'graphql';
|
|
2
|
+
|
|
3
|
+
// Takes the generated query document and modifies the chain name to the one passed in
|
|
4
|
+
function modifyQueryForChain(chainName, documentNode) {
|
|
5
|
+
documentNode.definitions = documentNode.definitions.map((doc) => {
|
|
6
|
+
if (doc.kind === Kind.OPERATION_DEFINITION) {
|
|
7
|
+
doc.selectionSet.selections = doc.selectionSet.selections.map((selection) => {
|
|
8
|
+
if (selection.kind === Kind.FIELD &&
|
|
9
|
+
selection.name.kind == Kind.NAME &&
|
|
10
|
+
selection.name.value === 'ethereum') {
|
|
11
|
+
const updatedChainSelection = {
|
|
12
|
+
...selection,
|
|
13
|
+
...{
|
|
14
|
+
name: { ...selection.name, value: chainName },
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
return updatedChainSelection;
|
|
18
|
+
}
|
|
19
|
+
return selection;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return doc;
|
|
23
|
+
});
|
|
24
|
+
return documentNode;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { modifyQueryForChain };
|
package/esm/src/api/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Client, GraphQLRequestParams } from '@urql/core';
|
|
2
|
-
import * as _urql_core_dist_urql_core_chunk from '@urql/core/dist/urql-core-chunk';
|
|
3
2
|
import { z } from 'zod';
|
|
4
3
|
|
|
5
4
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
@@ -302,7 +301,16 @@ type CodegenContractInfo_CodegenTokenContract_CodegenFragment = {
|
|
|
302
301
|
supportedErcInterfaces?: Array<string> | null;
|
|
303
302
|
symbol?: string | null;
|
|
304
303
|
};
|
|
305
|
-
type
|
|
304
|
+
type CodegenContractInfo_CodegenUnclassifiedContract_CodegenFragment = {
|
|
305
|
+
__typename: 'UnclassifiedContract';
|
|
306
|
+
abi?: any | null;
|
|
307
|
+
address: string;
|
|
308
|
+
isVerified?: boolean | null;
|
|
309
|
+
name?: string | null;
|
|
310
|
+
supportedErcInterfaces?: Array<string> | null;
|
|
311
|
+
symbol?: string | null;
|
|
312
|
+
};
|
|
313
|
+
type CodegenContractInfoFragment = CodegenContractInfo_CodegenNFTContract_CodegenFragment | CodegenContractInfo_CodegenTokenContract_CodegenFragment | CodegenContractInfo_CodegenUnclassifiedContract_CodegenFragment;
|
|
306
314
|
type CodegenTokenBalanceNodeFragment = {
|
|
307
315
|
totalBalance: any;
|
|
308
316
|
contract?: {
|
|
@@ -385,13 +393,8 @@ type ResultOutput = Record<string | number | symbol, any>;
|
|
|
385
393
|
declare class CustomUrqlClient {
|
|
386
394
|
urqlClient: Client;
|
|
387
395
|
constructor(urqlClient: Client);
|
|
388
|
-
query<TVariables extends Record<string,
|
|
389
|
-
data:
|
|
390
|
-
operation: _urql_core_dist_urql_core_chunk.Operation<any, Record<string, any> | TVariables>;
|
|
391
|
-
error?: _urql_core_dist_urql_core_chunk.CombinedError | undefined;
|
|
392
|
-
extensions?: Record<string, any> | undefined;
|
|
393
|
-
stale: boolean;
|
|
394
|
-
hasNext: boolean;
|
|
396
|
+
query<TVariables extends Record<string, unknown>, KResults extends Record<string, unknown>, KResultsOutput extends ResultOutput>(options: GraphQLRequestParams<any, TVariables>): Promise<{
|
|
397
|
+
data: KResultsOutput | undefined;
|
|
395
398
|
}>;
|
|
396
399
|
}
|
|
397
400
|
|
|
@@ -450,7 +453,7 @@ declare const walletByAddressValidator: z.ZodObject<{
|
|
|
450
453
|
before?: string | null | undefined;
|
|
451
454
|
after?: string | null | undefined;
|
|
452
455
|
first?: number | null | undefined;
|
|
453
|
-
chain?: "ethereum" | "
|
|
456
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
454
457
|
}, {
|
|
455
458
|
address: string;
|
|
456
459
|
filter?: {
|
|
@@ -465,7 +468,7 @@ declare const walletByAddressValidator: z.ZodObject<{
|
|
|
465
468
|
before?: string | null | undefined;
|
|
466
469
|
after?: string | null | undefined;
|
|
467
470
|
first?: number | null | undefined;
|
|
468
|
-
chain?: "ethereum" | "
|
|
471
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
469
472
|
}>;
|
|
470
473
|
type WalletNFTsByAddressInput = z.infer<typeof walletByAddressValidator>;
|
|
471
474
|
type WalletNFTsByAddressResult = SimplifyType<{
|
|
@@ -482,11 +485,11 @@ declare const nftDetailsValidator: z.ZodObject<{
|
|
|
482
485
|
}, "strict", z.ZodTypeAny, {
|
|
483
486
|
contractAddress: string;
|
|
484
487
|
tokenId: string;
|
|
485
|
-
chain?: "ethereum" | "
|
|
488
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
486
489
|
}, {
|
|
487
490
|
contractAddress: string;
|
|
488
491
|
tokenId: string;
|
|
489
|
-
chain?: "ethereum" | "
|
|
492
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
490
493
|
}>;
|
|
491
494
|
type NFTDetailsInput = z.infer<typeof nftDetailsValidator>;
|
|
492
495
|
type NFTDetailsResult = SimplifyType<{
|
|
@@ -498,10 +501,10 @@ declare const nftCollectionDetailsValidator: z.ZodObject<{
|
|
|
498
501
|
chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
|
|
499
502
|
}, "strict", z.ZodTypeAny, {
|
|
500
503
|
contractAddress: string;
|
|
501
|
-
chain?: "ethereum" | "
|
|
504
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
502
505
|
}, {
|
|
503
506
|
contractAddress: string;
|
|
504
|
-
chain?: "ethereum" | "
|
|
507
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
505
508
|
}>;
|
|
506
509
|
type NftCollectionDetailsInput = z.infer<typeof nftCollectionDetailsValidator>;
|
|
507
510
|
type NftCollectionDetailsResult = SimplifyType<{
|
|
@@ -517,12 +520,12 @@ declare const nftTrendingCollectionsValidator: z.ZodObject<{
|
|
|
517
520
|
before?: string | null | undefined;
|
|
518
521
|
after?: string | null | undefined;
|
|
519
522
|
first?: number | null | undefined;
|
|
520
|
-
chain?: "ethereum" | "
|
|
523
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
521
524
|
}, {
|
|
522
525
|
before?: string | null | undefined;
|
|
523
526
|
after?: string | null | undefined;
|
|
524
527
|
first?: number | null | undefined;
|
|
525
|
-
chain?: "ethereum" | "
|
|
528
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
526
529
|
}>;
|
|
527
530
|
type NFTTrendingCollectionsInput = z.infer<typeof nftTrendingCollectionsValidator>;
|
|
528
531
|
type NFTTrendingCollectionResult = SimplifyType<{
|
|
@@ -543,13 +546,13 @@ declare const nftsByContractAddressValidator: z.ZodObject<{
|
|
|
543
546
|
before?: string | null | undefined;
|
|
544
547
|
after?: string | null | undefined;
|
|
545
548
|
first?: number | null | undefined;
|
|
546
|
-
chain?: "ethereum" | "
|
|
549
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
547
550
|
}, {
|
|
548
551
|
contractAddress: string;
|
|
549
552
|
before?: string | null | undefined;
|
|
550
553
|
after?: string | null | undefined;
|
|
551
554
|
first?: number | null | undefined;
|
|
552
|
-
chain?: "ethereum" | "
|
|
555
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
553
556
|
}>;
|
|
554
557
|
type NFTsByContractAddressInput = z.infer<typeof nftsByContractAddressValidator>;
|
|
555
558
|
type NFTsByContractAddressResult = SimplifyType<{
|
|
@@ -580,7 +583,7 @@ declare const verifyOwnershipValidator: z.ZodObject<{
|
|
|
580
583
|
contractAddress: string;
|
|
581
584
|
tokenId?: string | undefined;
|
|
582
585
|
}[]];
|
|
583
|
-
chain?: "ethereum" | "
|
|
586
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
584
587
|
}, {
|
|
585
588
|
address: string;
|
|
586
589
|
nfts: [{
|
|
@@ -590,7 +593,7 @@ declare const verifyOwnershipValidator: z.ZodObject<{
|
|
|
590
593
|
contractAddress: string;
|
|
591
594
|
tokenId?: string | undefined;
|
|
592
595
|
}[]];
|
|
593
|
-
chain?: "ethereum" | "
|
|
596
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
594
597
|
}>;
|
|
595
598
|
type VerifyOwnershipByAddressInput = z.infer<typeof verifyOwnershipValidator>;
|
|
596
599
|
|
|
@@ -628,13 +631,13 @@ declare const balancesByWalletAddressValidator$1: z.ZodObject<{
|
|
|
628
631
|
before?: string | null | undefined;
|
|
629
632
|
after?: string | null | undefined;
|
|
630
633
|
first?: number | null | undefined;
|
|
631
|
-
chain?: "ethereum" | "
|
|
634
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
632
635
|
}, {
|
|
633
636
|
address: string;
|
|
634
637
|
before?: string | null | undefined;
|
|
635
638
|
after?: string | null | undefined;
|
|
636
639
|
first?: number | null | undefined;
|
|
637
|
-
chain?: "ethereum" | "
|
|
640
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
638
641
|
}>;
|
|
639
642
|
type BalancesByWalletAddressInput = z.infer<typeof balancesByWalletAddressValidator$1>;
|
|
640
643
|
|
|
@@ -711,7 +714,7 @@ declare const gasPricesValidator: z.ZodObject<{
|
|
|
711
714
|
} | null | undefined;
|
|
712
715
|
} | null | undefined;
|
|
713
716
|
returnInGwei?: boolean | null | undefined;
|
|
714
|
-
chain?: "ethereum" | "
|
|
717
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
715
718
|
}, {
|
|
716
719
|
filter?: {
|
|
717
720
|
blockNumber?: {
|
|
@@ -725,7 +728,7 @@ declare const gasPricesValidator: z.ZodObject<{
|
|
|
725
728
|
} | null | undefined;
|
|
726
729
|
} | null | undefined;
|
|
727
730
|
returnInGwei?: boolean | null | undefined;
|
|
728
|
-
chain?: "ethereum" | "
|
|
731
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
729
732
|
}>;
|
|
730
733
|
type GasPricesInput = z.infer<typeof gasPricesValidator>;
|
|
731
734
|
type GasPricesResult = SimplifyType<{
|
|
@@ -744,10 +747,10 @@ declare const contractDetailsValidator: z.ZodObject<{
|
|
|
744
747
|
chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
|
|
745
748
|
}, "strict", z.ZodTypeAny, {
|
|
746
749
|
contractAddress: string;
|
|
747
|
-
chain?: "ethereum" | "
|
|
750
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
748
751
|
}, {
|
|
749
752
|
contractAddress: string;
|
|
750
|
-
chain?: "ethereum" | "
|
|
753
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
751
754
|
}>;
|
|
752
755
|
type ContractDetailsInput = z.infer<typeof contractDetailsValidator>;
|
|
753
756
|
type ContractDetailsResult = SimplifyType<{
|
|
@@ -1106,7 +1109,7 @@ declare const contractEventsValidator: z.ZodObject<{
|
|
|
1106
1109
|
before?: string | null | undefined;
|
|
1107
1110
|
after?: string | null | undefined;
|
|
1108
1111
|
first?: number | null | undefined;
|
|
1109
|
-
chain?: "ethereum" | "
|
|
1112
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
1110
1113
|
}, {
|
|
1111
1114
|
contractAddress: string;
|
|
1112
1115
|
filter?: {
|
|
@@ -1172,7 +1175,7 @@ declare const contractEventsValidator: z.ZodObject<{
|
|
|
1172
1175
|
before?: string | null | undefined;
|
|
1173
1176
|
after?: string | null | undefined;
|
|
1174
1177
|
first?: number | null | undefined;
|
|
1175
|
-
chain?: "ethereum" | "
|
|
1178
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
1176
1179
|
}>;
|
|
1177
1180
|
type ContractEventsInput = z.infer<typeof contractEventsValidator>;
|
|
1178
1181
|
type ContractEventsResult = SimplifyType<{
|
|
@@ -1525,7 +1528,7 @@ declare const collectionEventsValidator: z.ZodObject<{
|
|
|
1525
1528
|
before?: string | null | undefined;
|
|
1526
1529
|
after?: string | null | undefined;
|
|
1527
1530
|
first?: number | null | undefined;
|
|
1528
|
-
chain?: "ethereum" | "
|
|
1531
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
1529
1532
|
}, {
|
|
1530
1533
|
contractAddress: string;
|
|
1531
1534
|
filter?: {
|
|
@@ -1591,7 +1594,7 @@ declare const collectionEventsValidator: z.ZodObject<{
|
|
|
1591
1594
|
before?: string | null | undefined;
|
|
1592
1595
|
after?: string | null | undefined;
|
|
1593
1596
|
first?: number | null | undefined;
|
|
1594
|
-
chain?: "ethereum" | "
|
|
1597
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
1595
1598
|
}>;
|
|
1596
1599
|
type CollectionEventsInput = z.infer<typeof collectionEventsValidator>;
|
|
1597
1600
|
type CollectionEventsResult = SimplifyType<{
|
|
@@ -1946,7 +1949,7 @@ declare const nftEventsValidator: z.ZodObject<{
|
|
|
1946
1949
|
before?: string | null | undefined;
|
|
1947
1950
|
after?: string | null | undefined;
|
|
1948
1951
|
first?: number | null | undefined;
|
|
1949
|
-
chain?: "ethereum" | "
|
|
1952
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
1950
1953
|
}, {
|
|
1951
1954
|
contractAddress: string;
|
|
1952
1955
|
tokenId: string;
|
|
@@ -2013,7 +2016,7 @@ declare const nftEventsValidator: z.ZodObject<{
|
|
|
2013
2016
|
before?: string | null | undefined;
|
|
2014
2017
|
after?: string | null | undefined;
|
|
2015
2018
|
first?: number | null | undefined;
|
|
2016
|
-
chain?: "ethereum" | "
|
|
2019
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2017
2020
|
}>;
|
|
2018
2021
|
type NFTEventsInput = z.infer<typeof nftEventsValidator>;
|
|
2019
2022
|
type NFTEventsResult = SimplifyType<{
|
|
@@ -2364,7 +2367,7 @@ declare const allEventsValidator: z.ZodObject<{
|
|
|
2364
2367
|
before?: string | null | undefined;
|
|
2365
2368
|
after?: string | null | undefined;
|
|
2366
2369
|
first?: number | null | undefined;
|
|
2367
|
-
chain?: "ethereum" | "
|
|
2370
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2368
2371
|
}, {
|
|
2369
2372
|
filter?: {
|
|
2370
2373
|
blockNumber?: {
|
|
@@ -2429,7 +2432,7 @@ declare const allEventsValidator: z.ZodObject<{
|
|
|
2429
2432
|
before?: string | null | undefined;
|
|
2430
2433
|
after?: string | null | undefined;
|
|
2431
2434
|
first?: number | null | undefined;
|
|
2432
|
-
chain?: "ethereum" | "
|
|
2435
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2433
2436
|
}>;
|
|
2434
2437
|
type AllEventsInput = z.infer<typeof allEventsValidator>;
|
|
2435
2438
|
type AllEventsResult = SimplifyType<{
|
|
@@ -2458,13 +2461,13 @@ declare const balancesByWalletAddressValidator: z.ZodObject<{
|
|
|
2458
2461
|
before?: string | null | undefined;
|
|
2459
2462
|
after?: string | null | undefined;
|
|
2460
2463
|
first?: number | null | undefined;
|
|
2461
|
-
chain?: "ethereum" | "
|
|
2464
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2462
2465
|
}, {
|
|
2463
2466
|
address: string;
|
|
2464
2467
|
before?: string | null | undefined;
|
|
2465
2468
|
after?: string | null | undefined;
|
|
2466
2469
|
first?: number | null | undefined;
|
|
2467
|
-
chain?: "ethereum" | "
|
|
2470
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2468
2471
|
}>;
|
|
2469
2472
|
type TransactionsByWalletAddressInput = z.infer<typeof balancesByWalletAddressValidator>;
|
|
2470
2473
|
type TransactionsByWalletAddressResult = SimplifyType<{
|
|
@@ -2601,7 +2604,7 @@ declare const transactionsBySearchValidator: z.ZodObject<{
|
|
|
2601
2604
|
before?: string | null | undefined;
|
|
2602
2605
|
after?: string | null | undefined;
|
|
2603
2606
|
first?: number | null | undefined;
|
|
2604
|
-
chain?: "ethereum" | "
|
|
2607
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2605
2608
|
}, {
|
|
2606
2609
|
filter?: {
|
|
2607
2610
|
blockNumber?: {
|
|
@@ -2628,7 +2631,7 @@ declare const transactionsBySearchValidator: z.ZodObject<{
|
|
|
2628
2631
|
before?: string | null | undefined;
|
|
2629
2632
|
after?: string | null | undefined;
|
|
2630
2633
|
first?: number | null | undefined;
|
|
2631
|
-
chain?: "ethereum" | "
|
|
2634
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2632
2635
|
}>;
|
|
2633
2636
|
type TransactionsBySearchInput = z.infer<typeof transactionsBySearchValidator>;
|
|
2634
2637
|
type TransactionsBySearchResult = SimplifyType<{
|
|
@@ -2641,10 +2644,10 @@ declare const transactionsByHashValidator: z.ZodObject<{
|
|
|
2641
2644
|
chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
|
|
2642
2645
|
}, "strict", z.ZodTypeAny, {
|
|
2643
2646
|
hash: string;
|
|
2644
|
-
chain?: "ethereum" | "
|
|
2647
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2645
2648
|
}, {
|
|
2646
2649
|
hash: string;
|
|
2647
|
-
chain?: "ethereum" | "
|
|
2650
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2648
2651
|
}>;
|
|
2649
2652
|
type TransactionsByHashInput = z.infer<typeof transactionsByHashValidator>;
|
|
2650
2653
|
type TransactionsByHashResult = SimplifyType<{
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Client, GraphQLRequestParams } from '@urql/core';
|
|
2
2
|
export { gql } from '@urql/core';
|
|
3
|
-
import * as _urql_core_dist_urql_core_chunk from '@urql/core/dist/urql-core-chunk';
|
|
4
3
|
import { z, ZodError } from 'zod';
|
|
5
4
|
import { Chain, PublicClient } from 'viem';
|
|
6
5
|
import * as viem from 'viem';
|
|
@@ -42,6 +41,16 @@ type CodegenGasPrice = {
|
|
|
42
41
|
};
|
|
43
42
|
/** Marketplace where the token was sold */
|
|
44
43
|
type CodegenMarketplace = 'BLUR' | 'CRYPTOPUNKS' | 'LOOKSRARE' | 'NIFTY_GATEWAY' | 'OPENSEA' | 'SEAPORT' | 'X2Y2' | 'ZEROX';
|
|
44
|
+
type CodegenStringInput = {
|
|
45
|
+
/** Contains */
|
|
46
|
+
contains?: InputMaybe<Scalars['String']>;
|
|
47
|
+
/** Equal to */
|
|
48
|
+
eq?: InputMaybe<Scalars['String']>;
|
|
49
|
+
/** In */
|
|
50
|
+
in?: InputMaybe<Array<Scalars['String']>>;
|
|
51
|
+
/** Not In */
|
|
52
|
+
notIn?: InputMaybe<Array<Scalars['String']>>;
|
|
53
|
+
};
|
|
45
54
|
type CodegenTokenTransferType = 'BURN' | 'MINT' | 'SALE' | 'SWAP' | 'TRANSFER';
|
|
46
55
|
/** Filter of nfts in a wallet by contract address and optional token id. Results are returned if any of the conditions are matched. */
|
|
47
56
|
type CodegenWalletNFTsContractTokenFilterInput = {
|
|
@@ -51,6 +60,8 @@ type CodegenWalletNFTsContractTokenFilterInput = {
|
|
|
51
60
|
/** Filter of nfts in a wallet */
|
|
52
61
|
type CodegenWalletNFTsFilterInput = {
|
|
53
62
|
contractTokens?: InputMaybe<Array<CodegenWalletNFTsContractTokenFilterInput>>;
|
|
63
|
+
/** The name of the nft */
|
|
64
|
+
nftName?: InputMaybe<CodegenStringInput>;
|
|
54
65
|
};
|
|
55
66
|
type CodegenEthMainnetWalletNFTsByEnsQueryVariables = Exact<{
|
|
56
67
|
ensName: Scalars['String'];
|
|
@@ -341,7 +352,16 @@ type CodegenContractInfo_CodegenTokenContract_CodegenFragment = {
|
|
|
341
352
|
supportedErcInterfaces?: Array<string> | null;
|
|
342
353
|
symbol?: string | null;
|
|
343
354
|
};
|
|
344
|
-
type
|
|
355
|
+
type CodegenContractInfo_CodegenUnclassifiedContract_CodegenFragment = {
|
|
356
|
+
__typename: 'UnclassifiedContract';
|
|
357
|
+
abi?: any | null;
|
|
358
|
+
address: string;
|
|
359
|
+
isVerified?: boolean | null;
|
|
360
|
+
name?: string | null;
|
|
361
|
+
supportedErcInterfaces?: Array<string> | null;
|
|
362
|
+
symbol?: string | null;
|
|
363
|
+
};
|
|
364
|
+
type CodegenContractInfoFragment = CodegenContractInfo_CodegenNFTContract_CodegenFragment | CodegenContractInfo_CodegenTokenContract_CodegenFragment | CodegenContractInfo_CodegenUnclassifiedContract_CodegenFragment;
|
|
345
365
|
type CodegenTokenBalanceNodeFragment = {
|
|
346
366
|
totalBalance: any;
|
|
347
367
|
contract?: {
|
|
@@ -424,13 +444,8 @@ type ResultOutput = Record<string | number | symbol, any>;
|
|
|
424
444
|
declare class CustomUrqlClient {
|
|
425
445
|
urqlClient: Client;
|
|
426
446
|
constructor(urqlClient: Client);
|
|
427
|
-
query<TVariables extends Record<string,
|
|
428
|
-
data:
|
|
429
|
-
operation: _urql_core_dist_urql_core_chunk.Operation<any, Record<string, any> | TVariables>;
|
|
430
|
-
error?: _urql_core_dist_urql_core_chunk.CombinedError | undefined;
|
|
431
|
-
extensions?: Record<string, any> | undefined;
|
|
432
|
-
stale: boolean;
|
|
433
|
-
hasNext: boolean;
|
|
447
|
+
query<TVariables extends Record<string, unknown>, KResults extends Record<string, unknown>, KResultsOutput extends ResultOutput>(options: GraphQLRequestParams<any, TVariables>): Promise<{
|
|
448
|
+
data: KResultsOutput | undefined;
|
|
434
449
|
}>;
|
|
435
450
|
}
|
|
436
451
|
|
|
@@ -489,7 +504,7 @@ declare const walletByAddressValidator: z.ZodObject<{
|
|
|
489
504
|
before?: string | null | undefined;
|
|
490
505
|
after?: string | null | undefined;
|
|
491
506
|
first?: number | null | undefined;
|
|
492
|
-
chain?: "ethereum" | "
|
|
507
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
493
508
|
}, {
|
|
494
509
|
address: string;
|
|
495
510
|
filter?: {
|
|
@@ -504,7 +519,7 @@ declare const walletByAddressValidator: z.ZodObject<{
|
|
|
504
519
|
before?: string | null | undefined;
|
|
505
520
|
after?: string | null | undefined;
|
|
506
521
|
first?: number | null | undefined;
|
|
507
|
-
chain?: "ethereum" | "
|
|
522
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
508
523
|
}>;
|
|
509
524
|
type WalletNFTsByAddressInput = z.infer<typeof walletByAddressValidator>;
|
|
510
525
|
type WalletNFTsByAddressResult = SimplifyType<{
|
|
@@ -521,11 +536,11 @@ declare const nftDetailsValidator: z.ZodObject<{
|
|
|
521
536
|
}, "strict", z.ZodTypeAny, {
|
|
522
537
|
contractAddress: string;
|
|
523
538
|
tokenId: string;
|
|
524
|
-
chain?: "ethereum" | "
|
|
539
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
525
540
|
}, {
|
|
526
541
|
contractAddress: string;
|
|
527
542
|
tokenId: string;
|
|
528
|
-
chain?: "ethereum" | "
|
|
543
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
529
544
|
}>;
|
|
530
545
|
type NFTDetailsInput = z.infer<typeof nftDetailsValidator>;
|
|
531
546
|
type NFTDetailsResult = SimplifyType<{
|
|
@@ -537,10 +552,10 @@ declare const nftCollectionDetailsValidator: z.ZodObject<{
|
|
|
537
552
|
chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
|
|
538
553
|
}, "strict", z.ZodTypeAny, {
|
|
539
554
|
contractAddress: string;
|
|
540
|
-
chain?: "ethereum" | "
|
|
555
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
541
556
|
}, {
|
|
542
557
|
contractAddress: string;
|
|
543
|
-
chain?: "ethereum" | "
|
|
558
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
544
559
|
}>;
|
|
545
560
|
type NftCollectionDetailsInput = z.infer<typeof nftCollectionDetailsValidator>;
|
|
546
561
|
type NftCollectionDetailsResult = SimplifyType<{
|
|
@@ -556,12 +571,12 @@ declare const nftTrendingCollectionsValidator: z.ZodObject<{
|
|
|
556
571
|
before?: string | null | undefined;
|
|
557
572
|
after?: string | null | undefined;
|
|
558
573
|
first?: number | null | undefined;
|
|
559
|
-
chain?: "ethereum" | "
|
|
574
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
560
575
|
}, {
|
|
561
576
|
before?: string | null | undefined;
|
|
562
577
|
after?: string | null | undefined;
|
|
563
578
|
first?: number | null | undefined;
|
|
564
|
-
chain?: "ethereum" | "
|
|
579
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
565
580
|
}>;
|
|
566
581
|
type NFTTrendingCollectionsInput = z.infer<typeof nftTrendingCollectionsValidator>;
|
|
567
582
|
type NFTTrendingCollectionResult = SimplifyType<{
|
|
@@ -582,13 +597,13 @@ declare const nftsByContractAddressValidator: z.ZodObject<{
|
|
|
582
597
|
before?: string | null | undefined;
|
|
583
598
|
after?: string | null | undefined;
|
|
584
599
|
first?: number | null | undefined;
|
|
585
|
-
chain?: "ethereum" | "
|
|
600
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
586
601
|
}, {
|
|
587
602
|
contractAddress: string;
|
|
588
603
|
before?: string | null | undefined;
|
|
589
604
|
after?: string | null | undefined;
|
|
590
605
|
first?: number | null | undefined;
|
|
591
|
-
chain?: "ethereum" | "
|
|
606
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
592
607
|
}>;
|
|
593
608
|
type NFTsByContractAddressInput = z.infer<typeof nftsByContractAddressValidator>;
|
|
594
609
|
type NFTsByContractAddressResult = SimplifyType<{
|
|
@@ -619,7 +634,7 @@ declare const verifyOwnershipValidator: z.ZodObject<{
|
|
|
619
634
|
contractAddress: string;
|
|
620
635
|
tokenId?: string | undefined;
|
|
621
636
|
}[]];
|
|
622
|
-
chain?: "ethereum" | "
|
|
637
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
623
638
|
}, {
|
|
624
639
|
address: string;
|
|
625
640
|
nfts: [{
|
|
@@ -629,7 +644,7 @@ declare const verifyOwnershipValidator: z.ZodObject<{
|
|
|
629
644
|
contractAddress: string;
|
|
630
645
|
tokenId?: string | undefined;
|
|
631
646
|
}[]];
|
|
632
|
-
chain?: "ethereum" | "
|
|
647
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
633
648
|
}>;
|
|
634
649
|
type VerifyOwnershipByAddressInput = z.infer<typeof verifyOwnershipValidator>;
|
|
635
650
|
|
|
@@ -672,13 +687,13 @@ declare const balancesByWalletAddressValidator$1: z.ZodObject<{
|
|
|
672
687
|
before?: string | null | undefined;
|
|
673
688
|
after?: string | null | undefined;
|
|
674
689
|
first?: number | null | undefined;
|
|
675
|
-
chain?: "ethereum" | "
|
|
690
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
676
691
|
}, {
|
|
677
692
|
address: string;
|
|
678
693
|
before?: string | null | undefined;
|
|
679
694
|
after?: string | null | undefined;
|
|
680
695
|
first?: number | null | undefined;
|
|
681
|
-
chain?: "ethereum" | "
|
|
696
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
682
697
|
}>;
|
|
683
698
|
type BalancesByWalletAddressInput = z.infer<typeof balancesByWalletAddressValidator$1>;
|
|
684
699
|
type BalancesByWalletAddressResult = SimplifyType<{
|
|
@@ -761,7 +776,7 @@ declare const gasPricesValidator: z.ZodObject<{
|
|
|
761
776
|
} | null | undefined;
|
|
762
777
|
} | null | undefined;
|
|
763
778
|
returnInGwei?: boolean | null | undefined;
|
|
764
|
-
chain?: "ethereum" | "
|
|
779
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
765
780
|
}, {
|
|
766
781
|
filter?: {
|
|
767
782
|
blockNumber?: {
|
|
@@ -775,7 +790,7 @@ declare const gasPricesValidator: z.ZodObject<{
|
|
|
775
790
|
} | null | undefined;
|
|
776
791
|
} | null | undefined;
|
|
777
792
|
returnInGwei?: boolean | null | undefined;
|
|
778
|
-
chain?: "ethereum" | "
|
|
793
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
779
794
|
}>;
|
|
780
795
|
type GasPricesInput = z.infer<typeof gasPricesValidator>;
|
|
781
796
|
type GasPricesResult = SimplifyType<{
|
|
@@ -794,10 +809,10 @@ declare const contractDetailsValidator: z.ZodObject<{
|
|
|
794
809
|
chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
|
|
795
810
|
}, "strict", z.ZodTypeAny, {
|
|
796
811
|
contractAddress: string;
|
|
797
|
-
chain?: "ethereum" | "
|
|
812
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
798
813
|
}, {
|
|
799
814
|
contractAddress: string;
|
|
800
|
-
chain?: "ethereum" | "
|
|
815
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
801
816
|
}>;
|
|
802
817
|
type ContractDetailsInput = z.infer<typeof contractDetailsValidator>;
|
|
803
818
|
type ContractDetailsResult = SimplifyType<{
|
|
@@ -1156,7 +1171,7 @@ declare const contractEventsValidator: z.ZodObject<{
|
|
|
1156
1171
|
before?: string | null | undefined;
|
|
1157
1172
|
after?: string | null | undefined;
|
|
1158
1173
|
first?: number | null | undefined;
|
|
1159
|
-
chain?: "ethereum" | "
|
|
1174
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
1160
1175
|
}, {
|
|
1161
1176
|
contractAddress: string;
|
|
1162
1177
|
filter?: {
|
|
@@ -1222,7 +1237,7 @@ declare const contractEventsValidator: z.ZodObject<{
|
|
|
1222
1237
|
before?: string | null | undefined;
|
|
1223
1238
|
after?: string | null | undefined;
|
|
1224
1239
|
first?: number | null | undefined;
|
|
1225
|
-
chain?: "ethereum" | "
|
|
1240
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
1226
1241
|
}>;
|
|
1227
1242
|
type ContractEventsInput = z.infer<typeof contractEventsValidator>;
|
|
1228
1243
|
type ContractEventsResult = SimplifyType<{
|
|
@@ -1575,7 +1590,7 @@ declare const collectionEventsValidator: z.ZodObject<{
|
|
|
1575
1590
|
before?: string | null | undefined;
|
|
1576
1591
|
after?: string | null | undefined;
|
|
1577
1592
|
first?: number | null | undefined;
|
|
1578
|
-
chain?: "ethereum" | "
|
|
1593
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
1579
1594
|
}, {
|
|
1580
1595
|
contractAddress: string;
|
|
1581
1596
|
filter?: {
|
|
@@ -1641,7 +1656,7 @@ declare const collectionEventsValidator: z.ZodObject<{
|
|
|
1641
1656
|
before?: string | null | undefined;
|
|
1642
1657
|
after?: string | null | undefined;
|
|
1643
1658
|
first?: number | null | undefined;
|
|
1644
|
-
chain?: "ethereum" | "
|
|
1659
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
1645
1660
|
}>;
|
|
1646
1661
|
type CollectionEventsInput = z.infer<typeof collectionEventsValidator>;
|
|
1647
1662
|
type CollectionEventsResult = SimplifyType<{
|
|
@@ -1996,7 +2011,7 @@ declare const nftEventsValidator: z.ZodObject<{
|
|
|
1996
2011
|
before?: string | null | undefined;
|
|
1997
2012
|
after?: string | null | undefined;
|
|
1998
2013
|
first?: number | null | undefined;
|
|
1999
|
-
chain?: "ethereum" | "
|
|
2014
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2000
2015
|
}, {
|
|
2001
2016
|
contractAddress: string;
|
|
2002
2017
|
tokenId: string;
|
|
@@ -2063,7 +2078,7 @@ declare const nftEventsValidator: z.ZodObject<{
|
|
|
2063
2078
|
before?: string | null | undefined;
|
|
2064
2079
|
after?: string | null | undefined;
|
|
2065
2080
|
first?: number | null | undefined;
|
|
2066
|
-
chain?: "ethereum" | "
|
|
2081
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2067
2082
|
}>;
|
|
2068
2083
|
type NFTEventsInput = z.infer<typeof nftEventsValidator>;
|
|
2069
2084
|
type NFTEventsResult = SimplifyType<{
|
|
@@ -2414,7 +2429,7 @@ declare const allEventsValidator: z.ZodObject<{
|
|
|
2414
2429
|
before?: string | null | undefined;
|
|
2415
2430
|
after?: string | null | undefined;
|
|
2416
2431
|
first?: number | null | undefined;
|
|
2417
|
-
chain?: "ethereum" | "
|
|
2432
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2418
2433
|
}, {
|
|
2419
2434
|
filter?: {
|
|
2420
2435
|
blockNumber?: {
|
|
@@ -2479,7 +2494,7 @@ declare const allEventsValidator: z.ZodObject<{
|
|
|
2479
2494
|
before?: string | null | undefined;
|
|
2480
2495
|
after?: string | null | undefined;
|
|
2481
2496
|
first?: number | null | undefined;
|
|
2482
|
-
chain?: "ethereum" | "
|
|
2497
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2483
2498
|
}>;
|
|
2484
2499
|
type AllEventsInput = z.infer<typeof allEventsValidator>;
|
|
2485
2500
|
type AllEventsResult = SimplifyType<{
|
|
@@ -2508,13 +2523,13 @@ declare const balancesByWalletAddressValidator: z.ZodObject<{
|
|
|
2508
2523
|
before?: string | null | undefined;
|
|
2509
2524
|
after?: string | null | undefined;
|
|
2510
2525
|
first?: number | null | undefined;
|
|
2511
|
-
chain?: "ethereum" | "
|
|
2526
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2512
2527
|
}, {
|
|
2513
2528
|
address: string;
|
|
2514
2529
|
before?: string | null | undefined;
|
|
2515
2530
|
after?: string | null | undefined;
|
|
2516
2531
|
first?: number | null | undefined;
|
|
2517
|
-
chain?: "ethereum" | "
|
|
2532
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2518
2533
|
}>;
|
|
2519
2534
|
type TransactionsByWalletAddressInput = z.infer<typeof balancesByWalletAddressValidator>;
|
|
2520
2535
|
type TransactionsByWalletAddressResult = SimplifyType<{
|
|
@@ -2651,7 +2666,7 @@ declare const transactionsBySearchValidator: z.ZodObject<{
|
|
|
2651
2666
|
before?: string | null | undefined;
|
|
2652
2667
|
after?: string | null | undefined;
|
|
2653
2668
|
first?: number | null | undefined;
|
|
2654
|
-
chain?: "ethereum" | "
|
|
2669
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2655
2670
|
}, {
|
|
2656
2671
|
filter?: {
|
|
2657
2672
|
blockNumber?: {
|
|
@@ -2678,7 +2693,7 @@ declare const transactionsBySearchValidator: z.ZodObject<{
|
|
|
2678
2693
|
before?: string | null | undefined;
|
|
2679
2694
|
after?: string | null | undefined;
|
|
2680
2695
|
first?: number | null | undefined;
|
|
2681
|
-
chain?: "ethereum" | "
|
|
2696
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2682
2697
|
}>;
|
|
2683
2698
|
type TransactionsBySearchInput = z.infer<typeof transactionsBySearchValidator>;
|
|
2684
2699
|
type TransactionsBySearchResult = SimplifyType<{
|
|
@@ -2691,10 +2706,10 @@ declare const transactionsByHashValidator: z.ZodObject<{
|
|
|
2691
2706
|
chain: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ethereum", "polygon", "ethereumSepolia"]>>>;
|
|
2692
2707
|
}, "strict", z.ZodTypeAny, {
|
|
2693
2708
|
hash: string;
|
|
2694
|
-
chain?: "ethereum" | "
|
|
2709
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2695
2710
|
}, {
|
|
2696
2711
|
hash: string;
|
|
2697
|
-
chain?: "ethereum" | "
|
|
2712
|
+
chain?: "ethereum" | "polygon" | "ethereumSepolia" | null | undefined;
|
|
2698
2713
|
}>;
|
|
2699
2714
|
type TransactionsByHashInput = z.infer<typeof transactionsByHashValidator>;
|
|
2700
2715
|
type TransactionsByHashResult = SimplifyType<{
|