@ludo.ninja/api 3.0.89 → 3.0.91
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/build/graphql_tools/__generated__/mintInfoHost/schema.d.ts +16 -0
- package/build/graphql_tools/__generated__/mintInfoHost/schema.js +12 -1
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +51 -1
- package/build/graphql_tools/__generated__/searchHost/schema.js +45 -1
- package/build/index.d.ts +16 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/mintInfoHost/schema.ts +19 -0
- package/src/graphql_tools/__generated__/searchHost/schema.ts +65 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -26,6 +26,16 @@ export type Scalars = {
|
|
|
26
26
|
Long: any;
|
|
27
27
|
Upload: any;
|
|
28
28
|
};
|
|
29
|
+
export declare enum IChains {
|
|
30
|
+
PolygonMainnet = "POLYGON_MAINNET",
|
|
31
|
+
PolygonAmoy = "POLYGON_AMOY",
|
|
32
|
+
EthereumMainnet = "ETHEREUM_MAINNET",
|
|
33
|
+
EthereumSepolia = "ETHEREUM_SEPOLIA",
|
|
34
|
+
BaseMainnet = "BASE_MAINNET",
|
|
35
|
+
BaseSepolia = "BASE_SEPOLIA",
|
|
36
|
+
BscMainnet = "BSC_MAINNET",
|
|
37
|
+
BscTestnet = "BSC_TESTNET"
|
|
38
|
+
}
|
|
29
39
|
export type IMintingInfo = {
|
|
30
40
|
rank: Scalars['Int'];
|
|
31
41
|
tier: ITier;
|
|
@@ -43,10 +53,14 @@ export type IMutation = {
|
|
|
43
53
|
export type IQuery = {
|
|
44
54
|
getDummy: Scalars['String'];
|
|
45
55
|
fetchMintingInfo: IMintingInfo;
|
|
56
|
+
fetchGasPrice: Scalars['Long'];
|
|
46
57
|
};
|
|
47
58
|
export type IQueryFetchMintingInfoArgs = {
|
|
48
59
|
input: IMintingInput;
|
|
49
60
|
};
|
|
61
|
+
export type IQueryFetchGasPriceArgs = {
|
|
62
|
+
chain: IChains;
|
|
63
|
+
};
|
|
50
64
|
export type ITier = {
|
|
51
65
|
id: Scalars['String'];
|
|
52
66
|
name: Scalars['String'];
|
|
@@ -81,6 +95,7 @@ export type NextResolverFn<T> = () => Promise<T>;
|
|
|
81
95
|
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
82
96
|
/** Mapping between all available schema types and the resolvers types */
|
|
83
97
|
export type IResolversTypes = {
|
|
98
|
+
Chains: IChains;
|
|
84
99
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
85
100
|
MintingInfo: ResolverTypeWrapper<IMintingInfo>;
|
|
86
101
|
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
@@ -124,6 +139,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
124
139
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
125
140
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
126
141
|
fetchMintingInfo?: Resolver<IResolversTypes['MintingInfo'], ParentType, ContextType, RequireFields<IQueryFetchMintingInfoArgs, 'input'>>;
|
|
142
|
+
fetchGasPrice?: Resolver<IResolversTypes['Long'], ParentType, ContextType, RequireFields<IQueryFetchGasPriceArgs, 'chain'>>;
|
|
127
143
|
};
|
|
128
144
|
export type ITierResolvers<ContextType = any, ParentType extends IResolversParentTypes['Tier'] = IResolversParentTypes['Tier']> = {
|
|
129
145
|
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
@@ -23,9 +23,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.useFetchMintingInfoLazyQuery = exports.useFetchMintingInfoQuery = exports.FetchMintingInfoDocument = void 0;
|
|
26
|
+
exports.useFetchMintingInfoLazyQuery = exports.useFetchMintingInfoQuery = exports.FetchMintingInfoDocument = exports.IChains = void 0;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
|
+
var IChains;
|
|
30
|
+
(function (IChains) {
|
|
31
|
+
IChains["PolygonMainnet"] = "POLYGON_MAINNET";
|
|
32
|
+
IChains["PolygonAmoy"] = "POLYGON_AMOY";
|
|
33
|
+
IChains["EthereumMainnet"] = "ETHEREUM_MAINNET";
|
|
34
|
+
IChains["EthereumSepolia"] = "ETHEREUM_SEPOLIA";
|
|
35
|
+
IChains["BaseMainnet"] = "BASE_MAINNET";
|
|
36
|
+
IChains["BaseSepolia"] = "BASE_SEPOLIA";
|
|
37
|
+
IChains["BscMainnet"] = "BSC_MAINNET";
|
|
38
|
+
IChains["BscTestnet"] = "BSC_TESTNET";
|
|
39
|
+
})(IChains || (exports.IChains = IChains = {}));
|
|
29
40
|
exports.FetchMintingInfoDocument = (0, client_1.gql) `
|
|
30
41
|
query FetchMintingInfo($input: MintingInput!) {
|
|
31
42
|
fetchMintingInfo(input: $input) {
|
|
@@ -225,6 +225,8 @@ export type IMedia = {
|
|
|
225
225
|
};
|
|
226
226
|
export type IMintingData = {
|
|
227
227
|
id: Scalars['ID'];
|
|
228
|
+
blockchain: Scalars['String'];
|
|
229
|
+
chainId?: Maybe<Scalars['String']>;
|
|
228
230
|
tokenId: Scalars['String'];
|
|
229
231
|
address: Scalars['String'];
|
|
230
232
|
nftIndexInCollection: Scalars['Int'];
|
|
@@ -235,6 +237,8 @@ export type IMintingData = {
|
|
|
235
237
|
ownersAddresses: Array<Scalars['String']>;
|
|
236
238
|
originalUrls: Array<Scalars['String']>;
|
|
237
239
|
medias?: Maybe<Array<Maybe<IMedia>>>;
|
|
240
|
+
txHash?: Maybe<Scalars['String']>;
|
|
241
|
+
explorer?: Maybe<Scalars['String']>;
|
|
238
242
|
};
|
|
239
243
|
export type IMutation = {
|
|
240
244
|
setDummy: Scalars['String'];
|
|
@@ -374,6 +378,7 @@ export type IQuery = {
|
|
|
374
378
|
fetchUserReferralsInfoPage: IUserReferralsInfoPage;
|
|
375
379
|
fetchUserReferralsInfoCsv: Scalars['String'];
|
|
376
380
|
fetchProjectsLeaderboard: IProjectsPage;
|
|
381
|
+
fetchProjectsByTerm: Array<IProject>;
|
|
377
382
|
fetchProjectsSlugs: Array<Scalars['String']>;
|
|
378
383
|
};
|
|
379
384
|
export type IQueryFetchUserPortfolioArgs = {
|
|
@@ -474,6 +479,10 @@ export type IQueryFetchProjectsLeaderboardArgs = {
|
|
|
474
479
|
sort: IProjectsLeaderboardSortInput;
|
|
475
480
|
page: IPageInput;
|
|
476
481
|
};
|
|
482
|
+
export type IQueryFetchProjectsByTermArgs = {
|
|
483
|
+
searchInput: Scalars['String'];
|
|
484
|
+
pageSize: Scalars['Int'];
|
|
485
|
+
};
|
|
477
486
|
export declare enum IReftypeColor {
|
|
478
487
|
Red = "RED",
|
|
479
488
|
Green = "GREEN",
|
|
@@ -863,6 +872,8 @@ export type IMediaResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
863
872
|
};
|
|
864
873
|
export type IMintingDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['MintingData'] = IResolversParentTypes['MintingData']> = {
|
|
865
874
|
id?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
875
|
+
blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
876
|
+
chainId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
866
877
|
tokenId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
867
878
|
address?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
868
879
|
nftIndexInCollection?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
@@ -873,6 +884,8 @@ export type IMintingDataResolvers<ContextType = any, ParentType extends IResolve
|
|
|
873
884
|
ownersAddresses?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
874
885
|
originalUrls?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
875
886
|
medias?: Resolver<Maybe<Array<Maybe<IResolversTypes['Media']>>>, ParentType, ContextType>;
|
|
887
|
+
txHash?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
888
|
+
explorer?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
876
889
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
877
890
|
};
|
|
878
891
|
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
@@ -988,6 +1001,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
988
1001
|
fetchUserReferralsInfoPage?: Resolver<IResolversTypes['UserReferralsInfoPage'], ParentType, ContextType, RequireFields<IQueryFetchUserReferralsInfoPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
989
1002
|
fetchUserReferralsInfoCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
990
1003
|
fetchProjectsLeaderboard?: Resolver<IResolversTypes['ProjectsPage'], ParentType, ContextType, RequireFields<IQueryFetchProjectsLeaderboardArgs, 'filter' | 'sort' | 'page'>>;
|
|
1004
|
+
fetchProjectsByTerm?: Resolver<Array<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectsByTermArgs, 'searchInput' | 'pageSize'>>;
|
|
991
1005
|
fetchProjectsSlugs?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
992
1006
|
};
|
|
993
1007
|
export type ITierResolvers<ContextType = any, ParentType extends IResolversParentTypes['Tier'] = IResolversParentTypes['Tier']> = {
|
|
@@ -1246,6 +1260,13 @@ export type IFetchUserPortfolioQueryVariables = Exact<{
|
|
|
1246
1260
|
export type IFetchUserPortfolioQuery = {
|
|
1247
1261
|
fetchUserPortfolio: Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>;
|
|
1248
1262
|
};
|
|
1263
|
+
export type IFetchProjectsByTermQueryVariables = Exact<{
|
|
1264
|
+
searchInput: Scalars['String'];
|
|
1265
|
+
pageSize: Scalars['Int'];
|
|
1266
|
+
}>;
|
|
1267
|
+
export type IFetchProjectsByTermQuery = {
|
|
1268
|
+
fetchProjectsByTerm: Array<Pick<IProject, 'id' | 'name' | 'slug' | 'type' | 'ludoRank' | 'ludoRankHourDifference' | 'ludoRankDayDifference' | 'ludoRankWeekDifference' | 'price'>>;
|
|
1269
|
+
};
|
|
1249
1270
|
export type IFetchProjectsLeaderboardQueryVariables = Exact<{
|
|
1250
1271
|
filter: IProjectsLeaderboardFilterInput;
|
|
1251
1272
|
sort: IProjectsLeaderboardSortInput;
|
|
@@ -1265,7 +1286,7 @@ export type IFetchUsedForMintingDataQueryVariables = Exact<{
|
|
|
1265
1286
|
ludoNftId: Scalars['String'];
|
|
1266
1287
|
}>;
|
|
1267
1288
|
export type IFetchUsedForMintingDataQuery = {
|
|
1268
|
-
fetchUsedForMintingData?: Maybe<(Pick<IMintingData, 'id' | 'tokenId' | 'address' | 'nftIndexInCollection' | 'rank' | 'userId' | 'refCode' | 'ownersAddresses' | 'originalUrls'> & {
|
|
1289
|
+
fetchUsedForMintingData?: Maybe<(Pick<IMintingData, 'id' | 'tokenId' | 'address' | 'nftIndexInCollection' | 'chainId' | 'blockchain' | 'explorer' | 'txHash' | 'rank' | 'userId' | 'refCode' | 'ownersAddresses' | 'originalUrls'> & {
|
|
1269
1290
|
tier?: Maybe<Pick<ITier, 'id' | 'name' | 'description' | 'fee'>>;
|
|
1270
1291
|
})>;
|
|
1271
1292
|
};
|
|
@@ -1775,6 +1796,35 @@ export declare function useFetchUserPortfolioLazyQuery(baseOptions?: Apollo.Lazy
|
|
|
1775
1796
|
export type FetchUserPortfolioQueryHookResult = ReturnType<typeof useFetchUserPortfolioQuery>;
|
|
1776
1797
|
export type FetchUserPortfolioLazyQueryHookResult = ReturnType<typeof useFetchUserPortfolioLazyQuery>;
|
|
1777
1798
|
export type FetchUserPortfolioQueryResult = Apollo.QueryResult<IFetchUserPortfolioQuery, IFetchUserPortfolioQueryVariables>;
|
|
1799
|
+
export declare const FetchProjectsByTermDocument: Apollo.DocumentNode;
|
|
1800
|
+
/**
|
|
1801
|
+
* __useFetchProjectsByTermQuery__
|
|
1802
|
+
*
|
|
1803
|
+
* To run a query within a React component, call `useFetchProjectsByTermQuery` and pass it any options that fit your needs.
|
|
1804
|
+
* When your component renders, `useFetchProjectsByTermQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1805
|
+
* you can use to render your UI.
|
|
1806
|
+
*
|
|
1807
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1808
|
+
*
|
|
1809
|
+
* @example
|
|
1810
|
+
* const { data, loading, error } = useFetchProjectsByTermQuery({
|
|
1811
|
+
* variables: {
|
|
1812
|
+
* searchInput: // value for 'searchInput'
|
|
1813
|
+
* pageSize: // value for 'pageSize'
|
|
1814
|
+
* },
|
|
1815
|
+
* });
|
|
1816
|
+
*/
|
|
1817
|
+
export declare function useFetchProjectsByTermQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectsByTermQuery, IFetchProjectsByTermQueryVariables>): Apollo.QueryResult<IFetchProjectsByTermQuery, Exact<{
|
|
1818
|
+
searchInput: string;
|
|
1819
|
+
pageSize: number;
|
|
1820
|
+
}>>;
|
|
1821
|
+
export declare function useFetchProjectsByTermLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectsByTermQuery, IFetchProjectsByTermQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProjectsByTermQuery, Exact<{
|
|
1822
|
+
searchInput: string;
|
|
1823
|
+
pageSize: number;
|
|
1824
|
+
}>>;
|
|
1825
|
+
export type FetchProjectsByTermQueryHookResult = ReturnType<typeof useFetchProjectsByTermQuery>;
|
|
1826
|
+
export type FetchProjectsByTermLazyQueryHookResult = ReturnType<typeof useFetchProjectsByTermLazyQuery>;
|
|
1827
|
+
export type FetchProjectsByTermQueryResult = Apollo.QueryResult<IFetchProjectsByTermQuery, IFetchProjectsByTermQueryVariables>;
|
|
1778
1828
|
export declare const FetchProjectsLeaderboardDocument: Apollo.DocumentNode;
|
|
1779
1829
|
/**
|
|
1780
1830
|
* __useFetchProjectsLeaderboardQuery__
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.FetchUserPortfolioDocument = exports.useFetchLudoNftsTonPageLazyQuery = exports.useFetchLudoNftsTonPageQuery = exports.FetchLudoNftsTonPageDocument = exports.useFindAllTopEntitiesByNameLazyQuery = exports.useFindAllTopEntitiesByNameQuery = exports.FindAllTopEntitiesByNameDocument = exports.useFetchDynamicCollectionsDataLazyQuery = exports.useFetchDynamicCollectionsDataQuery = exports.FetchDynamicCollectionsDataDocument = exports.useFetchDynamicCollectionDataLazyQuery = exports.useFetchDynamicCollectionDataQuery = exports.FetchDynamicCollectionDataDocument = exports.useFetchDynamicAssetsLikesLazyQuery = exports.useFetchDynamicAssetsLikesQuery = exports.FetchDynamicAssetsLikesDocument = exports.useFetchDynamicAssetLikesLazyQuery = exports.useFetchDynamicAssetLikesQuery = exports.FetchDynamicAssetLikesDocument = exports.useFetchCreationsByTypeLazyQuery = exports.useFetchCreationsByTypeQuery = exports.FetchCreationsByTypeDocument = exports.useFetchCollectionsByIdsLazyQuery = exports.useFetchCollectionsByIdsQuery = exports.FetchCollectionsByIdsDocument = exports.useFindCollectionsLazyQuery = exports.useFindCollectionsQuery = exports.FindCollectionsDocument = exports.useFetchCollectionLazyQuery = exports.useFetchCollectionQuery = exports.FetchCollectionDocument = exports.useFetchAvailableLeaderboardsLazyQuery = exports.useFetchAvailableLeaderboardsQuery = exports.FetchAvailableLeaderboardsDocument = exports.useFetchAssetsLazyQuery = exports.useFetchAssetsQuery = exports.FetchAssetsDocument = exports.useFetchAssetByBlockchainLazyQuery = exports.useFetchAssetByBlockchainQuery = exports.FetchAssetByBlockchainDocument = exports.useFetchAllCreationsLazyQuery = exports.useFetchAllCreationsQuery = exports.FetchAllCreationsDocument = exports.useFetchAirdropsLeaderboardLazyQuery = exports.useFetchAirdropsLeaderboardQuery = exports.FetchAirdropsLeaderboardDocument = exports.ISortDirection = exports.IReftypeColor = exports.IProjectType = exports.ILeaderboardType = void 0;
|
|
27
|
-
exports.useFindUserLudoCreationsLazyQuery = exports.useFindUserLudoCreationsQuery = exports.FindUserLudoCreationsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserReferralsInfoPageLazyQuery = exports.useFetchUserReferralsInfoPageQuery = exports.FetchUserReferralsInfoPageDocument = exports.useFetchUserReferralsInfoCsvLazyQuery = exports.useFetchUserReferralsInfoCsvQuery = exports.FetchUserReferralsInfoCsvDocument = exports.useFetchUsedForMintingRefCodeLazyQuery = exports.useFetchUsedForMintingRefCodeQuery = exports.FetchUsedForMintingRefCodeDocument = exports.useFetchUsedForMintingDataLazyQuery = exports.useFetchUsedForMintingDataQuery = exports.FetchUsedForMintingDataDocument = exports.useFetchProjectsSlugsLazyQuery = exports.useFetchProjectsSlugsQuery = exports.FetchProjectsSlugsDocument = exports.useFetchProjectsLeaderboardLazyQuery = exports.useFetchProjectsLeaderboardQuery = exports.FetchProjectsLeaderboardDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = void 0;
|
|
27
|
+
exports.useFindUserLudoCreationsLazyQuery = exports.useFindUserLudoCreationsQuery = exports.FindUserLudoCreationsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserReferralsInfoPageLazyQuery = exports.useFetchUserReferralsInfoPageQuery = exports.FetchUserReferralsInfoPageDocument = exports.useFetchUserReferralsInfoCsvLazyQuery = exports.useFetchUserReferralsInfoCsvQuery = exports.FetchUserReferralsInfoCsvDocument = exports.useFetchUsedForMintingRefCodeLazyQuery = exports.useFetchUsedForMintingRefCodeQuery = exports.FetchUsedForMintingRefCodeDocument = exports.useFetchUsedForMintingDataLazyQuery = exports.useFetchUsedForMintingDataQuery = exports.FetchUsedForMintingDataDocument = exports.useFetchProjectsSlugsLazyQuery = exports.useFetchProjectsSlugsQuery = exports.FetchProjectsSlugsDocument = exports.useFetchProjectsLeaderboardLazyQuery = exports.useFetchProjectsLeaderboardQuery = exports.FetchProjectsLeaderboardDocument = exports.useFetchProjectsByTermLazyQuery = exports.useFetchProjectsByTermQuery = exports.FetchProjectsByTermDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
var ILeaderboardType;
|
|
@@ -1206,6 +1206,46 @@ function useFetchUserPortfolioLazyQuery(baseOptions) {
|
|
|
1206
1206
|
return Apollo.useLazyQuery(exports.FetchUserPortfolioDocument, baseOptions);
|
|
1207
1207
|
}
|
|
1208
1208
|
exports.useFetchUserPortfolioLazyQuery = useFetchUserPortfolioLazyQuery;
|
|
1209
|
+
exports.FetchProjectsByTermDocument = (0, client_1.gql) `
|
|
1210
|
+
query FetchProjectsByTerm($searchInput: String!, $pageSize: Int!) {
|
|
1211
|
+
fetchProjectsByTerm(searchInput: $searchInput, pageSize: $pageSize) {
|
|
1212
|
+
id
|
|
1213
|
+
name
|
|
1214
|
+
slug
|
|
1215
|
+
type
|
|
1216
|
+
ludoRank
|
|
1217
|
+
ludoRankHourDifference
|
|
1218
|
+
ludoRankDayDifference
|
|
1219
|
+
ludoRankWeekDifference
|
|
1220
|
+
price
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
`;
|
|
1224
|
+
/**
|
|
1225
|
+
* __useFetchProjectsByTermQuery__
|
|
1226
|
+
*
|
|
1227
|
+
* To run a query within a React component, call `useFetchProjectsByTermQuery` and pass it any options that fit your needs.
|
|
1228
|
+
* When your component renders, `useFetchProjectsByTermQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1229
|
+
* you can use to render your UI.
|
|
1230
|
+
*
|
|
1231
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1232
|
+
*
|
|
1233
|
+
* @example
|
|
1234
|
+
* const { data, loading, error } = useFetchProjectsByTermQuery({
|
|
1235
|
+
* variables: {
|
|
1236
|
+
* searchInput: // value for 'searchInput'
|
|
1237
|
+
* pageSize: // value for 'pageSize'
|
|
1238
|
+
* },
|
|
1239
|
+
* });
|
|
1240
|
+
*/
|
|
1241
|
+
function useFetchProjectsByTermQuery(baseOptions) {
|
|
1242
|
+
return Apollo.useQuery(exports.FetchProjectsByTermDocument, baseOptions);
|
|
1243
|
+
}
|
|
1244
|
+
exports.useFetchProjectsByTermQuery = useFetchProjectsByTermQuery;
|
|
1245
|
+
function useFetchProjectsByTermLazyQuery(baseOptions) {
|
|
1246
|
+
return Apollo.useLazyQuery(exports.FetchProjectsByTermDocument, baseOptions);
|
|
1247
|
+
}
|
|
1248
|
+
exports.useFetchProjectsByTermLazyQuery = useFetchProjectsByTermLazyQuery;
|
|
1209
1249
|
exports.FetchProjectsLeaderboardDocument = (0, client_1.gql) `
|
|
1210
1250
|
query FetchProjectsLeaderboard($filter: ProjectsLeaderboardFilterInput!, $sort: ProjectsLeaderboardSortInput!, $page: PageInput!) {
|
|
1211
1251
|
fetchProjectsLeaderboard(filter: $filter, sort: $sort, page: $page) {
|
|
@@ -1291,6 +1331,10 @@ exports.FetchUsedForMintingDataDocument = (0, client_1.gql) `
|
|
|
1291
1331
|
tokenId
|
|
1292
1332
|
address
|
|
1293
1333
|
nftIndexInCollection
|
|
1334
|
+
chainId
|
|
1335
|
+
blockchain
|
|
1336
|
+
explorer
|
|
1337
|
+
txHash
|
|
1294
1338
|
rank
|
|
1295
1339
|
userId
|
|
1296
1340
|
tier {
|
package/build/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ declare const schema: {
|
|
|
28
28
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<mintInfoSchema.IFetchMintingInfoQuery, mintInfoSchema.Exact<{
|
|
29
29
|
input: mintInfoSchema.IMintingInput;
|
|
30
30
|
}>>;
|
|
31
|
+
IChains: typeof mintInfoSchema.IChains;
|
|
31
32
|
FetchMintingInfoDocument: import("graphql").DocumentNode;
|
|
32
33
|
useReadNotificationMutation(baseOptions?: import("@apollo/client").MutationHookOptions<notificationsSchema.IReadNotificationMutation, notificationsSchema.Exact<{
|
|
33
34
|
notificationId: string;
|
|
@@ -408,6 +409,20 @@ declare const schema: {
|
|
|
408
409
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchUserPortfolioQuery, searchSchema.Exact<{
|
|
409
410
|
ownerId: string;
|
|
410
411
|
}>>;
|
|
412
|
+
useFetchProjectsByTermQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchProjectsByTermQuery, searchSchema.Exact<{
|
|
413
|
+
searchInput: string;
|
|
414
|
+
pageSize: number;
|
|
415
|
+
}>>): import("@apollo/client").QueryResult<searchSchema.IFetchProjectsByTermQuery, searchSchema.Exact<{
|
|
416
|
+
searchInput: string;
|
|
417
|
+
pageSize: number;
|
|
418
|
+
}>>;
|
|
419
|
+
useFetchProjectsByTermLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<searchSchema.IFetchProjectsByTermQuery, searchSchema.Exact<{
|
|
420
|
+
searchInput: string;
|
|
421
|
+
pageSize: number;
|
|
422
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchProjectsByTermQuery, searchSchema.Exact<{
|
|
423
|
+
searchInput: string;
|
|
424
|
+
pageSize: number;
|
|
425
|
+
}>>;
|
|
411
426
|
useFetchProjectsLeaderboardQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchProjectsLeaderboardQuery, searchSchema.Exact<{
|
|
412
427
|
filter: searchSchema.IProjectsLeaderboardFilterInput;
|
|
413
428
|
sort: searchSchema.IProjectsLeaderboardSortInput;
|
|
@@ -568,6 +583,7 @@ declare const schema: {
|
|
|
568
583
|
FindAllTopEntitiesByNameDocument: import("graphql").DocumentNode;
|
|
569
584
|
FetchLudoNftsTonPageDocument: import("graphql").DocumentNode;
|
|
570
585
|
FetchUserPortfolioDocument: import("graphql").DocumentNode;
|
|
586
|
+
FetchProjectsByTermDocument: import("graphql").DocumentNode;
|
|
571
587
|
FetchProjectsLeaderboardDocument: import("graphql").DocumentNode;
|
|
572
588
|
FetchProjectsSlugsDocument: import("graphql").DocumentNode;
|
|
573
589
|
FetchUsedForMintingDataDocument: import("graphql").DocumentNode;
|
package/package.json
CHANGED
|
@@ -20,6 +20,17 @@ export type Scalars = {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
export enum IChains {
|
|
24
|
+
PolygonMainnet = 'POLYGON_MAINNET',
|
|
25
|
+
PolygonAmoy = 'POLYGON_AMOY',
|
|
26
|
+
EthereumMainnet = 'ETHEREUM_MAINNET',
|
|
27
|
+
EthereumSepolia = 'ETHEREUM_SEPOLIA',
|
|
28
|
+
BaseMainnet = 'BASE_MAINNET',
|
|
29
|
+
BaseSepolia = 'BASE_SEPOLIA',
|
|
30
|
+
BscMainnet = 'BSC_MAINNET',
|
|
31
|
+
BscTestnet = 'BSC_TESTNET'
|
|
32
|
+
}
|
|
33
|
+
|
|
23
34
|
|
|
24
35
|
export type IMintingInfo = {
|
|
25
36
|
rank: Scalars['Int'];
|
|
@@ -41,6 +52,7 @@ export type IMutation = {
|
|
|
41
52
|
export type IQuery = {
|
|
42
53
|
getDummy: Scalars['String'];
|
|
43
54
|
fetchMintingInfo: IMintingInfo;
|
|
55
|
+
fetchGasPrice: Scalars['Long'];
|
|
44
56
|
};
|
|
45
57
|
|
|
46
58
|
|
|
@@ -48,6 +60,11 @@ export type IQueryFetchMintingInfoArgs = {
|
|
|
48
60
|
input: IMintingInput;
|
|
49
61
|
};
|
|
50
62
|
|
|
63
|
+
|
|
64
|
+
export type IQueryFetchGasPriceArgs = {
|
|
65
|
+
chain: IChains;
|
|
66
|
+
};
|
|
67
|
+
|
|
51
68
|
export type ITier = {
|
|
52
69
|
id: Scalars['String'];
|
|
53
70
|
name: Scalars['String'];
|
|
@@ -125,6 +142,7 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
|
|
|
125
142
|
|
|
126
143
|
/** Mapping between all available schema types and the resolvers types */
|
|
127
144
|
export type IResolversTypes = {
|
|
145
|
+
Chains: IChains;
|
|
128
146
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
129
147
|
MintingInfo: ResolverTypeWrapper<IMintingInfo>;
|
|
130
148
|
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
@@ -175,6 +193,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
175
193
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
176
194
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
177
195
|
fetchMintingInfo?: Resolver<IResolversTypes['MintingInfo'], ParentType, ContextType, RequireFields<IQueryFetchMintingInfoArgs, 'input'>>;
|
|
196
|
+
fetchGasPrice?: Resolver<IResolversTypes['Long'], ParentType, ContextType, RequireFields<IQueryFetchGasPriceArgs, 'chain'>>;
|
|
178
197
|
};
|
|
179
198
|
|
|
180
199
|
export type ITierResolvers<ContextType = any, ParentType extends IResolversParentTypes['Tier'] = IResolversParentTypes['Tier']> = {
|
|
@@ -244,6 +244,7 @@ export type IMedia = {
|
|
|
244
244
|
export type IMintingData = {
|
|
245
245
|
id: Scalars['ID'];
|
|
246
246
|
blockchain: Scalars['String'];
|
|
247
|
+
chainId?: Maybe<Scalars['String']>;
|
|
247
248
|
tokenId: Scalars['String'];
|
|
248
249
|
address: Scalars['String'];
|
|
249
250
|
nftIndexInCollection: Scalars['Int'];
|
|
@@ -416,6 +417,7 @@ export type IQuery = {
|
|
|
416
417
|
fetchUserReferralsInfoPage: IUserReferralsInfoPage;
|
|
417
418
|
fetchUserReferralsInfoCsv: Scalars['String'];
|
|
418
419
|
fetchProjectsLeaderboard: IProjectsPage;
|
|
420
|
+
fetchProjectsByTerm: Array<IProject>;
|
|
419
421
|
fetchProjectsSlugs: Array<Scalars['String']>;
|
|
420
422
|
};
|
|
421
423
|
|
|
@@ -569,6 +571,12 @@ export type IQueryFetchProjectsLeaderboardArgs = {
|
|
|
569
571
|
page: IPageInput;
|
|
570
572
|
};
|
|
571
573
|
|
|
574
|
+
|
|
575
|
+
export type IQueryFetchProjectsByTermArgs = {
|
|
576
|
+
searchInput: Scalars['String'];
|
|
577
|
+
pageSize: Scalars['Int'];
|
|
578
|
+
};
|
|
579
|
+
|
|
572
580
|
export enum IReftypeColor {
|
|
573
581
|
Red = 'RED',
|
|
574
582
|
Green = 'GREEN',
|
|
@@ -1032,6 +1040,7 @@ export type IMediaResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1032
1040
|
export type IMintingDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['MintingData'] = IResolversParentTypes['MintingData']> = {
|
|
1033
1041
|
id?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
1034
1042
|
blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1043
|
+
chainId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1035
1044
|
tokenId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1036
1045
|
address?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1037
1046
|
nftIndexInCollection?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
@@ -1168,6 +1177,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1168
1177
|
fetchUserReferralsInfoPage?: Resolver<IResolversTypes['UserReferralsInfoPage'], ParentType, ContextType, RequireFields<IQueryFetchUserReferralsInfoPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1169
1178
|
fetchUserReferralsInfoCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1170
1179
|
fetchProjectsLeaderboard?: Resolver<IResolversTypes['ProjectsPage'], ParentType, ContextType, RequireFields<IQueryFetchProjectsLeaderboardArgs, 'filter' | 'sort' | 'page'>>;
|
|
1180
|
+
fetchProjectsByTerm?: Resolver<Array<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectsByTermArgs, 'searchInput' | 'pageSize'>>;
|
|
1171
1181
|
fetchProjectsSlugs?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1172
1182
|
};
|
|
1173
1183
|
|
|
@@ -1399,6 +1409,14 @@ export type IFetchUserPortfolioQueryVariables = Exact<{
|
|
|
1399
1409
|
|
|
1400
1410
|
export type IFetchUserPortfolioQuery = { fetchUserPortfolio: Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>> };
|
|
1401
1411
|
|
|
1412
|
+
export type IFetchProjectsByTermQueryVariables = Exact<{
|
|
1413
|
+
searchInput: Scalars['String'];
|
|
1414
|
+
pageSize: Scalars['Int'];
|
|
1415
|
+
}>;
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
export type IFetchProjectsByTermQuery = { fetchProjectsByTerm: Array<Pick<IProject, 'id' | 'name' | 'slug' | 'type' | 'ludoRank' | 'ludoRankHourDifference' | 'ludoRankDayDifference' | 'ludoRankWeekDifference' | 'price'>> };
|
|
1419
|
+
|
|
1402
1420
|
export type IFetchProjectsLeaderboardQueryVariables = Exact<{
|
|
1403
1421
|
filter: IProjectsLeaderboardFilterInput;
|
|
1404
1422
|
sort: IProjectsLeaderboardSortInput;
|
|
@@ -1419,7 +1437,7 @@ export type IFetchUsedForMintingDataQueryVariables = Exact<{
|
|
|
1419
1437
|
|
|
1420
1438
|
|
|
1421
1439
|
export type IFetchUsedForMintingDataQuery = { fetchUsedForMintingData?: Maybe<(
|
|
1422
|
-
Pick<IMintingData, 'id' | 'tokenId' | 'address' | 'nftIndexInCollection' | 'rank' | 'userId' | 'refCode' | 'ownersAddresses' | 'originalUrls'>
|
|
1440
|
+
Pick<IMintingData, 'id' | 'tokenId' | 'address' | 'nftIndexInCollection' | 'chainId' | 'blockchain' | 'explorer' | 'txHash' | 'rank' | 'userId' | 'refCode' | 'ownersAddresses' | 'originalUrls'>
|
|
1423
1441
|
& { tier?: Maybe<Pick<ITier, 'id' | 'name' | 'description' | 'fee'>> }
|
|
1424
1442
|
)> };
|
|
1425
1443
|
|
|
@@ -2660,6 +2678,48 @@ export function useFetchUserPortfolioLazyQuery(baseOptions?: Apollo.LazyQueryHoo
|
|
|
2660
2678
|
export type FetchUserPortfolioQueryHookResult = ReturnType<typeof useFetchUserPortfolioQuery>;
|
|
2661
2679
|
export type FetchUserPortfolioLazyQueryHookResult = ReturnType<typeof useFetchUserPortfolioLazyQuery>;
|
|
2662
2680
|
export type FetchUserPortfolioQueryResult = Apollo.QueryResult<IFetchUserPortfolioQuery, IFetchUserPortfolioQueryVariables>;
|
|
2681
|
+
export const FetchProjectsByTermDocument = gql`
|
|
2682
|
+
query FetchProjectsByTerm($searchInput: String!, $pageSize: Int!) {
|
|
2683
|
+
fetchProjectsByTerm(searchInput: $searchInput, pageSize: $pageSize) {
|
|
2684
|
+
id
|
|
2685
|
+
name
|
|
2686
|
+
slug
|
|
2687
|
+
type
|
|
2688
|
+
ludoRank
|
|
2689
|
+
ludoRankHourDifference
|
|
2690
|
+
ludoRankDayDifference
|
|
2691
|
+
ludoRankWeekDifference
|
|
2692
|
+
price
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
`;
|
|
2696
|
+
|
|
2697
|
+
/**
|
|
2698
|
+
* __useFetchProjectsByTermQuery__
|
|
2699
|
+
*
|
|
2700
|
+
* To run a query within a React component, call `useFetchProjectsByTermQuery` and pass it any options that fit your needs.
|
|
2701
|
+
* When your component renders, `useFetchProjectsByTermQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2702
|
+
* you can use to render your UI.
|
|
2703
|
+
*
|
|
2704
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2705
|
+
*
|
|
2706
|
+
* @example
|
|
2707
|
+
* const { data, loading, error } = useFetchProjectsByTermQuery({
|
|
2708
|
+
* variables: {
|
|
2709
|
+
* searchInput: // value for 'searchInput'
|
|
2710
|
+
* pageSize: // value for 'pageSize'
|
|
2711
|
+
* },
|
|
2712
|
+
* });
|
|
2713
|
+
*/
|
|
2714
|
+
export function useFetchProjectsByTermQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectsByTermQuery, IFetchProjectsByTermQueryVariables>) {
|
|
2715
|
+
return Apollo.useQuery<IFetchProjectsByTermQuery, IFetchProjectsByTermQueryVariables>(FetchProjectsByTermDocument, baseOptions);
|
|
2716
|
+
}
|
|
2717
|
+
export function useFetchProjectsByTermLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectsByTermQuery, IFetchProjectsByTermQueryVariables>) {
|
|
2718
|
+
return Apollo.useLazyQuery<IFetchProjectsByTermQuery, IFetchProjectsByTermQueryVariables>(FetchProjectsByTermDocument, baseOptions);
|
|
2719
|
+
}
|
|
2720
|
+
export type FetchProjectsByTermQueryHookResult = ReturnType<typeof useFetchProjectsByTermQuery>;
|
|
2721
|
+
export type FetchProjectsByTermLazyQueryHookResult = ReturnType<typeof useFetchProjectsByTermLazyQuery>;
|
|
2722
|
+
export type FetchProjectsByTermQueryResult = Apollo.QueryResult<IFetchProjectsByTermQuery, IFetchProjectsByTermQueryVariables>;
|
|
2663
2723
|
export const FetchProjectsLeaderboardDocument = gql`
|
|
2664
2724
|
query FetchProjectsLeaderboard($filter: ProjectsLeaderboardFilterInput!, $sort: ProjectsLeaderboardSortInput!, $page: PageInput!) {
|
|
2665
2725
|
fetchProjectsLeaderboard(filter: $filter, sort: $sort, page: $page) {
|
|
@@ -2749,6 +2809,10 @@ export const FetchUsedForMintingDataDocument = gql`
|
|
|
2749
2809
|
tokenId
|
|
2750
2810
|
address
|
|
2751
2811
|
nftIndexInCollection
|
|
2812
|
+
chainId
|
|
2813
|
+
blockchain
|
|
2814
|
+
explorer
|
|
2815
|
+
txHash
|
|
2752
2816
|
rank
|
|
2753
2817
|
userId
|
|
2754
2818
|
tier {
|