@quicknode/sdk 0.5.2 → 1.0.0-beta.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.
@@ -1 +0,0 @@
1
- export * from './nft';
@@ -1,4 +0,0 @@
1
- export declare const getCollectionDetailsRawQuery: import("graphql/language/ast").DocumentNode;
2
- export interface CollectionDetailsQueryVariables {
3
- address: string;
4
- }
@@ -1,7 +0,0 @@
1
- import { ContractEventLogFragment, ContractEventsLogsQuery, PageInfo } from '../../../graphql/types';
2
- export interface ContractEventLogsQueryResponse {
3
- contract: ContractEventsLogsQuery['contract'] & {
4
- logsPageInfo: Pick<PageInfo, 'endCursor' | 'hasNextPage'>;
5
- logs: Omit<ContractEventLogFragment, '__typename'>[];
6
- };
7
- }
@@ -1,5 +0,0 @@
1
- export declare const getNFTDetailsRawQuery: import("graphql/language/ast").DocumentNode;
2
- export interface NFTDetailsQueryVariables {
3
- contractAddress: string;
4
- tokenId: string;
5
- }
@@ -1,7 +0,0 @@
1
- import { LogType } from '../../../graphql/types';
2
- import { PaginationArgs } from '../sharedTypes';
3
- export interface EventLogsQueryVariables extends PaginationArgs {
4
- address: string;
5
- tokenId: string;
6
- types?: LogType[];
7
- }
@@ -1,5 +0,0 @@
1
- import { PaginationArgs } from '../sharedTypes';
2
- export declare const getContractAddressNFTsRawQuery: import("graphql/language/ast").DocumentNode;
3
- export interface ContractAddressNFTsQueryVariables extends PaginationArgs {
4
- address: string;
5
- }
@@ -1,5 +0,0 @@
1
- import { PaginationArgs } from '../sharedTypes';
2
- export interface NFTsByWalletAndContractsVariables extends PaginationArgs {
3
- address: string;
4
- contracts: string[];
5
- }
@@ -1,5 +0,0 @@
1
- import { PaginationArgs } from '../sharedTypes';
2
- export declare const getWalletENSNFTsRawQuery: import("graphql/language/ast").DocumentNode;
3
- export interface WalletENSNFTsQueryVariables extends PaginationArgs {
4
- ensName: string;
5
- }
@@ -1,5 +0,0 @@
1
- import { NftCollection_Erc721Contract_Fragment, PageInfo } from '../../../graphql/types';
2
- export interface TrendingNFTCollection {
3
- trendingCollectionsPageInfo: Pick<PageInfo, 'endCursor' | 'hasNextPage'>;
4
- trendingCollections: NftCollection_Erc721Contract_Fragment[];
5
- }
@@ -1,2 +0,0 @@
1
- export * from './getNFTsByWalletENS/getNFTsByWalletENS';
2
- export * from './getNFTsByContractAddress/getNFTsByContractAddress';
@@ -1,90 +0,0 @@
1
- import { CustomApolloClient } from '../../client/customApolloClient';
2
- import { WalletENSNFTsQueryVariables } from './getNFTsByWalletENS/getNFTsByWalletENS';
3
- import { ContractAddressNFTsQueryVariables } from './getNFTsByContractAddress/getNFTsByContractAddress';
4
- import { CollectionDetailsQueryVariables } from './getCollectionDetails/getCollectionDetails';
5
- import { EventLogsQueryVariables } from './getNFTEventLogs/getNFTEventLogs';
6
- import { NFTDetailsQueryVariables } from './getNFTDetails/getNFTDetails';
7
- import { ContractEventLogsQueryResponse } from './getContractEventLogs/getContractEventLogs';
8
- import { ContractNFTsQueryResponse, WalletNFTsQueryResponse, CollectionDetailsQueryResponse, NFTDetailsQueryResponse, EventLogsQueryResponse, PaginationArgs } from './sharedTypes';
9
- import { TrendingNftCollectionsQueryVariables, WalletNfTsQueryVariables, LogType } from '../../graphql/types';
10
- import { TrendingNFTCollection } from './getTrendingNFTCollections/getTrendingNFTCollections';
11
- import { NFTsByWalletAndContractsVariables } from './getNFTsByWalletAndContracts/getNFTsByWalletAndContracts';
12
- export declare class NFTQueries {
13
- private client;
14
- constructor(client: CustomApolloClient);
15
- getNFTsByWalletAddress(variables: WalletNfTsQueryVariables): Promise<{
16
- data: WalletNFTsQueryResponse;
17
- errors?: readonly import("graphql").GraphQLError[] | undefined;
18
- error?: import("@apollo/client").ApolloError | undefined;
19
- loading: boolean;
20
- networkStatus: import("@apollo/client").NetworkStatus;
21
- partial?: boolean | undefined;
22
- }>;
23
- getNFTsByWalletENS(variables: WalletENSNFTsQueryVariables): Promise<{
24
- data: WalletNFTsQueryResponse;
25
- errors?: readonly import("graphql").GraphQLError[] | undefined;
26
- error?: import("@apollo/client").ApolloError | undefined;
27
- loading: boolean;
28
- networkStatus: import("@apollo/client").NetworkStatus;
29
- partial?: boolean | undefined;
30
- }>;
31
- getNFTsByContractAddress(variables: ContractAddressNFTsQueryVariables): Promise<{
32
- data: ContractNFTsQueryResponse;
33
- errors?: readonly import("graphql").GraphQLError[] | undefined;
34
- error?: import("@apollo/client").ApolloError | undefined;
35
- loading: boolean;
36
- networkStatus: import("@apollo/client").NetworkStatus;
37
- partial?: boolean | undefined;
38
- }>;
39
- getCollectionDetails(variables: CollectionDetailsQueryVariables): Promise<{
40
- data: CollectionDetailsQueryResponse;
41
- errors?: readonly import("graphql").GraphQLError[] | undefined;
42
- error?: import("@apollo/client").ApolloError | undefined;
43
- loading: boolean;
44
- networkStatus: import("@apollo/client").NetworkStatus;
45
- partial?: boolean | undefined;
46
- }>;
47
- getNFTEventLogs(variables: EventLogsQueryVariables): Promise<{
48
- data: EventLogsQueryResponse;
49
- errors?: readonly import("graphql").GraphQLError[] | undefined;
50
- error?: import("@apollo/client").ApolloError | undefined;
51
- loading: boolean;
52
- networkStatus: import("@apollo/client").NetworkStatus;
53
- partial?: boolean | undefined;
54
- }>;
55
- getNFTDetails(variables: NFTDetailsQueryVariables): Promise<{
56
- data: NFTDetailsQueryResponse;
57
- errors?: readonly import("graphql").GraphQLError[] | undefined;
58
- error?: import("@apollo/client").ApolloError | undefined;
59
- loading: boolean;
60
- networkStatus: import("@apollo/client").NetworkStatus;
61
- partial?: boolean | undefined;
62
- }>;
63
- getContractEventLogs(variables: {
64
- address: string;
65
- types?: LogType[];
66
- } & PaginationArgs): Promise<{
67
- data: ContractEventLogsQueryResponse;
68
- errors?: readonly import("graphql").GraphQLError[] | undefined;
69
- error?: import("@apollo/client").ApolloError | undefined;
70
- loading: boolean;
71
- networkStatus: import("@apollo/client").NetworkStatus;
72
- partial?: boolean | undefined;
73
- }>;
74
- getNFTsByWalletAndContracts(variables: NFTsByWalletAndContractsVariables): Promise<{
75
- data: WalletNFTsQueryResponse;
76
- errors?: readonly import("graphql").GraphQLError[] | undefined;
77
- error?: import("@apollo/client").ApolloError | undefined;
78
- loading: boolean;
79
- networkStatus: import("@apollo/client").NetworkStatus;
80
- partial?: boolean | undefined;
81
- }>;
82
- getTrendingNFTCollections(variables?: TrendingNftCollectionsQueryVariables): Promise<{
83
- data: TrendingNFTCollection;
84
- errors?: readonly import("graphql").GraphQLError[] | undefined;
85
- error?: import("@apollo/client").ApolloError | undefined;
86
- loading: boolean;
87
- networkStatus: import("@apollo/client").NetworkStatus;
88
- partial?: boolean | undefined;
89
- }>;
90
- }
@@ -1,151 +0,0 @@
1
- /**
2
- * @todo replace this with graphql automatic schema generation
3
- */
4
- /**** Graphql interface *****/
5
- export interface Connection<T> {
6
- pageInfo: PageInfo;
7
- edges: {
8
- node: T;
9
- }[];
10
- }
11
- export interface PageInfo {
12
- hasNextPage: boolean;
13
- endCursor: string | null;
14
- }
15
- export interface PaginationArgs {
16
- first?: number;
17
- after?: string;
18
- }
19
- export declare type Scalar = string | number | boolean;
20
- /*** Wallet ***/
21
- export interface Wallet {
22
- ensName: string;
23
- address: string;
24
- tokens: Connection<NFT>;
25
- }
26
- /*** Contracts ***/
27
- export interface ContractWithTokens extends ContractBase {
28
- tokenSupply: number;
29
- tokens: Connection<NFTWithBasicImages>;
30
- }
31
- export interface ContractDetails extends ContractBase {
32
- circulatingBase: number;
33
- stats: ContractStats;
34
- attributes: ContractAttribute[];
35
- }
36
- interface ContractAttribute {
37
- name: string;
38
- rarity: number;
39
- value: string;
40
- valueCount: number;
41
- }
42
- interface ContractStats {
43
- average: number;
44
- ceiling: number;
45
- floor: number;
46
- totalSales: number;
47
- volume: number;
48
- }
49
- export interface ContractBase {
50
- address: string;
51
- isVerified: boolean;
52
- tokenStandard: string;
53
- name: string;
54
- symbol: string;
55
- }
56
- /*** NFT/Tokens ***/
57
- interface NFTDetails extends NFTBase {
58
- tokenId: string;
59
- attributes?: NFTAttribute[];
60
- images?: NFTImageFull[];
61
- contract: ContractBase;
62
- name: string;
63
- symbol: string;
64
- metadata?: NFTMetadata;
65
- }
66
- export interface NFT extends NFTWithBasicImages {
67
- contract: {
68
- address: string;
69
- symbol: string;
70
- name: string;
71
- };
72
- }
73
- export interface NFTWithBasicImages extends NFTBase {
74
- images: NFTImageBase[];
75
- }
76
- export interface NFTBase {
77
- tokenId: string;
78
- }
79
- interface NFTAttribute {
80
- name: string;
81
- value: string;
82
- }
83
- interface NFTImageFull extends NFTImageBase {
84
- height: number;
85
- width: number;
86
- mimeType: string;
87
- url: string;
88
- }
89
- interface NFTImageBase {
90
- url: string;
91
- }
92
- interface NFTMetadata {
93
- animation_url: string;
94
- background_color: string;
95
- description: string;
96
- external_url: string;
97
- image: string;
98
- image_data: string;
99
- name: string;
100
- youtube_url: string;
101
- }
102
- /*** Logs ***/
103
- interface OrderEvents {
104
- marketplace: string;
105
- priceInEth: number;
106
- }
107
- interface BaseEventLog {
108
- blockNumber: number;
109
- type: string;
110
- fromAddress: string;
111
- toAddress: string;
112
- estimatedConfirmedAt: string;
113
- transactionHash: string;
114
- }
115
- interface TokenEventLogs {
116
- contract: {
117
- address: string;
118
- };
119
- token: {
120
- tokenId: string;
121
- logs: BaseEventLog | (BaseEventLog & OrderEvents);
122
- };
123
- }
124
- /*** Pagination ***/
125
- export interface PaginationDetails {
126
- endCursor: string;
127
- hasNextPage: string;
128
- }
129
- export interface TokenPaginationInfo {
130
- tokensPageInfo: PaginationDetails;
131
- }
132
- export interface LogPaginationInfo {
133
- logsPageInfo: PaginationDetails;
134
- }
135
- /*** Query Responses ***/
136
- export interface WalletNFTsQueryResponse {
137
- wallet: (Wallet & TokenPaginationInfo) | null;
138
- }
139
- export interface ContractNFTsQueryResponse {
140
- contract: (ContractWithTokens & TokenPaginationInfo) | null;
141
- }
142
- export interface CollectionDetailsQueryResponse {
143
- contract: ContractDetails | null;
144
- }
145
- export interface EventLogsQueryResponse {
146
- Token: (TokenEventLogs & LogPaginationInfo) | null;
147
- }
148
- export interface NFTDetailsQueryResponse {
149
- token: NFTDetails | null;
150
- }
151
- export {};
@@ -1,19 +0,0 @@
1
- import { PageInfo } from '../graphql/types';
2
- interface Edge {
3
- __typename?: 'TokenEdge';
4
- cursor?: string;
5
- node?: Record<string | number | symbol, ResultInput>;
6
- }
7
- interface Connection {
8
- pageInfo?: PageInfo;
9
- edges?: Edge[];
10
- total?: number;
11
- breadcrumbs?: string;
12
- viewport?: string;
13
- }
14
- interface ResultInput {
15
- [index: string | number | symbol]: Connection | ResultInput | unknown;
16
- }
17
- export declare type ResultOutput = Record<string | number | symbol, any>;
18
- export declare function removeNodesAndEdges<TInput extends ResultInput, TResultOutput extends ResultOutput>(data: TInput): TResultOutput;
19
- export {};