@poolzfinance/api4 1.12.8 → 1.13.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/README.md +55 -1
- package/dist/endpoints/adminGetAllocation.d.ts +3 -3
- package/dist/endpoints/approvedContracts.d.ts +3 -3
- package/dist/endpoints/boostProxy.d.ts +6 -6
- package/dist/endpoints/daoSenderHistory.d.ts +3 -3
- package/dist/endpoints/leaderboard.d.ts +3 -3
- package/dist/endpoints/myRoles.d.ts +6 -0
- package/dist/endpoints/simpleUrlShortener.d.ts +3 -6
- package/dist/endpoints/tokenInfo.d.ts +6 -6
- package/dist/endpoints/vaults.d.ts +5 -5
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -11
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/graphql/gql.d.ts +2 -27
- package/dist/types/graphql/graphql.d.ts +31 -69
- package/package.json +18 -13
- package/dist/endpoints/adminCleanCache.d.ts +0 -7
- package/dist/endpoints/adminListOfCollateral.d.ts +0 -6
- package/dist/endpoints/autoSignUp.d.ts +0 -31
- package/dist/endpoints/getDownloader.d.ts +0 -0
- package/dist/endpoints/investedERC20.d.ts +0 -6
- package/dist/endpoints/myRole.d.ts +0 -6
- package/dist/endpoints/mySignUpCheck.d.ts +0 -3
- package/dist/endpoints/seasonPass.d.ts +0 -31
- package/dist/endpoints/signupV2.d.ts +0 -17
- package/dist/endpoints/status.d.ts +0 -3
- package/dist/endpoints/tokenRefundsNFT.d.ts +0 -4
|
@@ -34,7 +34,6 @@ type Documents = {
|
|
|
34
34
|
"\n query MyQuery {\n time\n}": typeof types.MyQueryDocument;
|
|
35
35
|
"\nmutation GenerateTokenFromSignature($eip4361message: String!, $signature: String!) {\n generateTokenFromSignature(eip4361message: $eip4361message, signature: $signature){\n token\n validUntil\n }\n}": typeof types.GenerateTokenFromSignatureDocument;
|
|
36
36
|
"\n query GenerateMyInvestSignature($projectId: String!, $weiAmount: String!) {\n generateMyInvestSignature(projectId: $projectId, weiAmount: $weiAmount) {\n Signature\n ValidUntil\n PoolzBackId\n }\n }\n": typeof types.GenerateMyInvestSignatureDocument;
|
|
37
|
-
"\n query InvestedErc20($investedErc20Id: Int!) {\n investedErc20(id: $investedErc20Id) {\n Wallet\n AmountIn\n TokenOut\n }\n}": typeof types.InvestedErc20Document;
|
|
38
37
|
"\n query getLeaderboardByAddress($address: String) {\n leaderBoard(address: $address) {\n Amount\n Owner\n Rank\n }\n}": typeof types.GetLeaderboardByAddressDocument;
|
|
39
38
|
"\n query getLeaderboard {\n leaderBoard {\n Rank\n Owner\n Amount\n }\n}": typeof types.GetLeaderboardDocument;
|
|
40
39
|
"\n mutation Logout {\n logout\n }\n": typeof types.LogoutDocument;
|
|
@@ -49,17 +48,13 @@ type Documents = {
|
|
|
49
48
|
"\n mutation UpdateNonEvmWallet($chainName: String!, $wallet: String!) {\n updateNonEvmWallet(chainName: $chainName, wallet: $wallet) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n }\n}": typeof types.UpdateNonEvmWalletDocument;
|
|
50
49
|
"\n query MyInvested {\n myInvestmentsErc20 {\n ChainId\n TxHash\n BlockSignedAt\n Amount\n Token\n Id\n }\n myInvestmentsETH {\n ChainId\n TxHash\n BlockSignedAt\n Amount\n Id\n }\n}": typeof types.MyInvestedDocument;
|
|
51
50
|
"\n query KYC {\n myProxyKYC {\n Proxy\n RequestStatus\n Status\n }\n}": typeof types.KycDocument;
|
|
52
|
-
"\n query
|
|
53
|
-
"\n query SignUpCheck($poolIDs: [Int!]!) {\n mySignUpCheck(poolIDs: $poolIDs) {\n PoolId\n SignUp\n }\n }": typeof types.SignUpCheckDocument;
|
|
51
|
+
"\n query MyRoles {\n myRoles\n }": typeof types.MyRolesDocument;
|
|
54
52
|
"\n query PoolxPrice {\n poolxPrice {\n Price\n Timestamp\n }\n }": typeof types.PoolxPriceDocument;
|
|
55
53
|
"\n query GetPoolxTokenomics {\n poolxTokenomics {\n CirculatingSupply\n Locked\n Data {\n TotalSupply\n BuyBack\n LockedDealV2\n DelayVault\n DelayVaultV2\n Reserved\n }\n Trade {\n Sum\n Huobi\n GateIO\n PancakeSwapV3_01\n PancakeSwapV3\n Mexc\n }\n }\n }\n": typeof types.GetPoolxTokenomicsDocument;
|
|
56
54
|
"\n query SeasonPass {\n seasonPass {\n Owner\n Amount\n ValidUntil\n Note\n }\n }\n": typeof types.SeasonPassDocument;
|
|
57
55
|
"\n mutation CreateSeasonPass($Owner: String!, $Amount: Float!, $ValidUntil: Int!, $Note: String!) {\n createSeasonPass(\n seasonPass: { Owner: $Owner, Amount: $Amount, ValidUntil: $ValidUntil, Note: $Note }\n ) {\n Owner\n Amount\n ValidUntil\n Note\n }\n }\n": typeof types.CreateSeasonPassDocument;
|
|
58
56
|
"\n mutation UpdateSeasonPass($Owner: String!, $Amount: Float!, $ValidUntil: Int!, $Note: String!) {\n updateSeasonPass(\n seasonPass: { Owner: $Owner, Amount: $Amount, ValidUntil: $ValidUntil, Note: $Note }\n ) {\n Owner\n Amount\n ValidUntil\n Note\n }\n }\n": typeof types.UpdateSeasonPassDocument;
|
|
59
57
|
"\n mutation DeleteSeasonPass($owner: String!, $note: String!) {\n deleteSeasonPass(owner: $owner, note: $note) {\n Owner\n Amount\n ValidUntil\n Note\n }\n }\n": typeof types.DeleteSeasonPassDocument;
|
|
60
|
-
"\n query MySignUpV2($projectIDs: [Int!]!) {\n mySignUpV2(projectIDs: $projectIDs) {\n ProjectId\n SignedUp\n }\n }\n": typeof types.MySignUpV2Document;
|
|
61
|
-
"\n query AdminSignUpV2($projectId: Int!, $minPoolxAmount: Int!) {\n adminSignUpV2(projectId: $projectId, minPoolxAmount: $minPoolxAmount) {\n Address\n Amount\n }\n }\n": typeof types.AdminSignUpV2Document;
|
|
62
|
-
"\n mutation ProjectSignUpV2($projectId: Int!) {\n projectSignUpV2(projectId: $projectId) {\n ProjectId\n UserAddress\n JoinedTime\n }\n }\n": typeof types.ProjectSignUpV2Document;
|
|
63
58
|
"\n query MySignUpV3($projectIDs: [String!]!) {\n mySignUpV3(projectIDs: $projectIDs) {\n ProjectId\n SignedUp\n }\n }\n": typeof types.MySignUpV3Document;
|
|
64
59
|
"\n query AdminSignUpV3($projectId: String!, $minPoolxAmount: Int!) {\n adminSignUpV3(projectId: $projectId, minPoolxAmount: $minPoolxAmount) {\n Address\n Amount\n }\n }\n": typeof types.AdminSignUpV3Document;
|
|
65
60
|
"\n mutation ProjectSignUpV3($projectId: String!) {\n projectSignUpV3(projectId: $projectId) {\n ProjectId\n UserAddress\n JoinedTime\n }\n }\n": typeof types.ProjectSignUpV3Document;
|
|
@@ -171,10 +166,6 @@ export declare function gql(source: "\nmutation GenerateTokenFromSignature($eip4
|
|
|
171
166
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
172
167
|
*/
|
|
173
168
|
export declare function gql(source: "\n query GenerateMyInvestSignature($projectId: String!, $weiAmount: String!) {\n generateMyInvestSignature(projectId: $projectId, weiAmount: $weiAmount) {\n Signature\n ValidUntil\n PoolzBackId\n }\n }\n"): (typeof documents)["\n query GenerateMyInvestSignature($projectId: String!, $weiAmount: String!) {\n generateMyInvestSignature(projectId: $projectId, weiAmount: $weiAmount) {\n Signature\n ValidUntil\n PoolzBackId\n }\n }\n"];
|
|
174
|
-
/**
|
|
175
|
-
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
176
|
-
*/
|
|
177
|
-
export declare function gql(source: "\n query InvestedErc20($investedErc20Id: Int!) {\n investedErc20(id: $investedErc20Id) {\n Wallet\n AmountIn\n TokenOut\n }\n}"): (typeof documents)["\n query InvestedErc20($investedErc20Id: Int!) {\n investedErc20(id: $investedErc20Id) {\n Wallet\n AmountIn\n TokenOut\n }\n}"];
|
|
178
169
|
/**
|
|
179
170
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
180
171
|
*/
|
|
@@ -234,11 +225,7 @@ export declare function gql(source: "\n query KYC {\n myProxyKYC {\n Pr
|
|
|
234
225
|
/**
|
|
235
226
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
236
227
|
*/
|
|
237
|
-
export declare function gql(source: "\n query
|
|
238
|
-
/**
|
|
239
|
-
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
240
|
-
*/
|
|
241
|
-
export declare function gql(source: "\n query SignUpCheck($poolIDs: [Int!]!) {\n mySignUpCheck(poolIDs: $poolIDs) {\n PoolId\n SignUp\n }\n }"): (typeof documents)["\n query SignUpCheck($poolIDs: [Int!]!) {\n mySignUpCheck(poolIDs: $poolIDs) {\n PoolId\n SignUp\n }\n }"];
|
|
228
|
+
export declare function gql(source: "\n query MyRoles {\n myRoles\n }"): (typeof documents)["\n query MyRoles {\n myRoles\n }"];
|
|
242
229
|
/**
|
|
243
230
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
244
231
|
*/
|
|
@@ -263,18 +250,6 @@ export declare function gql(source: "\n mutation UpdateSeasonPass($Owner: Strin
|
|
|
263
250
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
264
251
|
*/
|
|
265
252
|
export declare function gql(source: "\n mutation DeleteSeasonPass($owner: String!, $note: String!) {\n deleteSeasonPass(owner: $owner, note: $note) {\n Owner\n Amount\n ValidUntil\n Note\n }\n }\n"): (typeof documents)["\n mutation DeleteSeasonPass($owner: String!, $note: String!) {\n deleteSeasonPass(owner: $owner, note: $note) {\n Owner\n Amount\n ValidUntil\n Note\n }\n }\n"];
|
|
266
|
-
/**
|
|
267
|
-
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
268
|
-
*/
|
|
269
|
-
export declare function gql(source: "\n query MySignUpV2($projectIDs: [Int!]!) {\n mySignUpV2(projectIDs: $projectIDs) {\n ProjectId\n SignedUp\n }\n }\n"): (typeof documents)["\n query MySignUpV2($projectIDs: [Int!]!) {\n mySignUpV2(projectIDs: $projectIDs) {\n ProjectId\n SignedUp\n }\n }\n"];
|
|
270
|
-
/**
|
|
271
|
-
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
272
|
-
*/
|
|
273
|
-
export declare function gql(source: "\n query AdminSignUpV2($projectId: Int!, $minPoolxAmount: Int!) {\n adminSignUpV2(projectId: $projectId, minPoolxAmount: $minPoolxAmount) {\n Address\n Amount\n }\n }\n"): (typeof documents)["\n query AdminSignUpV2($projectId: Int!, $minPoolxAmount: Int!) {\n adminSignUpV2(projectId: $projectId, minPoolxAmount: $minPoolxAmount) {\n Address\n Amount\n }\n }\n"];
|
|
274
|
-
/**
|
|
275
|
-
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
276
|
-
*/
|
|
277
|
-
export declare function gql(source: "\n mutation ProjectSignUpV2($projectId: Int!) {\n projectSignUpV2(projectId: $projectId) {\n ProjectId\n UserAddress\n JoinedTime\n }\n }\n"): (typeof documents)["\n mutation ProjectSignUpV2($projectId: Int!) {\n projectSignUpV2(projectId: $projectId) {\n ProjectId\n UserAddress\n JoinedTime\n }\n }\n"];
|
|
278
253
|
/**
|
|
279
254
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
280
255
|
*/
|
|
@@ -347,13 +347,18 @@ export type Mutation = {
|
|
|
347
347
|
addAutoSignUp: AdminAutoSignUp;
|
|
348
348
|
addEvmWallet: UserData;
|
|
349
349
|
addNonEvmWallet: UserData;
|
|
350
|
+
/** @deprecated Will be removed */
|
|
350
351
|
addUser: AdminUsers;
|
|
352
|
+
/** @deprecated Will be removed */
|
|
351
353
|
adminAddAction: AdminAction;
|
|
354
|
+
/** @deprecated Will be removed */
|
|
352
355
|
adminCleanCache: CleanCache;
|
|
353
356
|
adminCreateAsset: CreateAssetResponse;
|
|
354
357
|
adminCreatePoolzBackId: AdminCreatePoolzBackId;
|
|
358
|
+
/** @deprecated Will be removed */
|
|
355
359
|
adminDeleteAction: Scalars['Boolean']['output'];
|
|
356
360
|
adminDeleteAsset: DeleteAssetResponse;
|
|
361
|
+
/** @deprecated Will be removed */
|
|
357
362
|
adminUpdateAction: ActionSettings;
|
|
358
363
|
adminWriteAllocation: Scalars['Int']['output'];
|
|
359
364
|
createSeasonPass: SeasonPass;
|
|
@@ -362,6 +367,7 @@ export type Mutation = {
|
|
|
362
367
|
deleteEvmWallet: UserData;
|
|
363
368
|
deleteNonEvmWallet: UserData;
|
|
364
369
|
deleteSeasonPass: SeasonPass;
|
|
370
|
+
/** @deprecated Will be removed */
|
|
365
371
|
deleteUser: AdminUsers;
|
|
366
372
|
generateSignature: GenerateSignatureResponse;
|
|
367
373
|
generateTokenFromSignature: GenerateTokenFromSignature;
|
|
@@ -375,6 +381,7 @@ export type Mutation = {
|
|
|
375
381
|
updateEvmWallet: UserData;
|
|
376
382
|
updateNonEvmWallet: UserData;
|
|
377
383
|
updateSeasonPass: SeasonPass;
|
|
384
|
+
/** @deprecated Will be removed */
|
|
378
385
|
updateUser: AdminUsers;
|
|
379
386
|
};
|
|
380
387
|
export type MutationAddAutoSignUpArgs = {
|
|
@@ -623,10 +630,12 @@ export type PutMyDataNonEvmWallet = {
|
|
|
623
630
|
export type Query = {
|
|
624
631
|
__typename?: 'Query';
|
|
625
632
|
adminAutoSignUp: Array<AdminAutoSignUp>;
|
|
633
|
+
/** @deprecated Will be removed */
|
|
626
634
|
adminGetActions: Array<GetAction>;
|
|
627
635
|
adminGetAllocation: Array<AdminGetAllocation>;
|
|
628
636
|
adminKycProxy: Array<AdminKycProxy>;
|
|
629
637
|
adminListAssets: Array<AdminListAssetsResponse>;
|
|
638
|
+
/** @deprecated Will be removed */
|
|
630
639
|
adminListOfCollateral: Array<AdminListOfCollateral>;
|
|
631
640
|
/** Works with a maximum of 100 elements */
|
|
632
641
|
adminListOfPoolzBackId: Array<AdminListOfPoolzBackId>;
|
|
@@ -638,12 +647,15 @@ export type Query = {
|
|
|
638
647
|
/** @deprecated Use adminSignUpV3 */
|
|
639
648
|
adminSignUpV2: Array<AdminSignUpV2>;
|
|
640
649
|
adminSignUpV3: Array<AdminSignUpV3>;
|
|
650
|
+
/** @deprecated Will be removed */
|
|
641
651
|
adminUsers: Array<AdminUsers>;
|
|
642
652
|
approvedContracts: Array<ApprovedContracts>;
|
|
643
653
|
boostProxy: Array<BoostProxy>;
|
|
644
654
|
daoSenderHistory: DaoSenderHistoryPage;
|
|
645
655
|
generateMyInvestSignature: GenerateMyInvestSignature;
|
|
656
|
+
/** @deprecated Will be updated to myInvested (archive) */
|
|
646
657
|
investedErc20: Array<InvestedErc20>;
|
|
658
|
+
/** @deprecated Will be removed */
|
|
647
659
|
kolInvestedErc20: Array<KolInvestedErc20>;
|
|
648
660
|
leaderBoard: Array<LeaderBoard>;
|
|
649
661
|
myAllocation: MyAllocation;
|
|
@@ -651,11 +663,14 @@ export type Query = {
|
|
|
651
663
|
myData?: Maybe<MyData>;
|
|
652
664
|
/** @deprecated Right now isn't work. Will be deleted with new Invested contract/system. */
|
|
653
665
|
myInvestSum: MyInvestSum;
|
|
666
|
+
/** @deprecated Will be updated to myInvested (archive) */
|
|
654
667
|
myInvestmentsETH: Array<MyInvestmentsEth>;
|
|
668
|
+
/** @deprecated Will be updated to myInvested (archive) */
|
|
655
669
|
myInvestmentsErc20: Array<MyInvestmentsErc20>;
|
|
656
670
|
myProxyKYC: KycProxy;
|
|
657
671
|
/** @deprecated Use 'myRoles' endpoint. */
|
|
658
672
|
myRole: Scalars['String']['output'];
|
|
673
|
+
/** @deprecated Will be removed */
|
|
659
674
|
myRoles: Array<Scalars['String']['output']>;
|
|
660
675
|
/** @deprecated Old system. Please use new endpoints from API4.SignUp. */
|
|
661
676
|
mySignUpCheck: Array<SignUpCheck>;
|
|
@@ -679,20 +694,30 @@ export type Query = {
|
|
|
679
694
|
signUpList: Array<SignUpList>;
|
|
680
695
|
/** @deprecated Old system. Please use new endpoints from API4.SignUp. */
|
|
681
696
|
signUpsTimes: Array<SignUpsTimes>;
|
|
697
|
+
/** @deprecated Will be removed */
|
|
682
698
|
simpleUrlShortener?: Maybe<SimpleUrlShortener>;
|
|
683
699
|
splitDataEncoder: Scalars['String']['output'];
|
|
700
|
+
/** @deprecated Will be removed */
|
|
684
701
|
status: Array<Status>;
|
|
685
702
|
time: Scalars['Int']['output'];
|
|
686
703
|
tokenInfo?: Maybe<TokenInfo>;
|
|
687
704
|
/** @deprecated Old LockDealV2 system. */
|
|
688
705
|
tokenRefundsLDv2: Array<TokenRefundsLDv2>;
|
|
689
|
-
/**
|
|
706
|
+
/**
|
|
707
|
+
* # The 'poolId' must be a CollateralProvider
|
|
708
|
+
* @deprecated Will be archived in the new endpoint.
|
|
709
|
+
*/
|
|
690
710
|
tokenRefundsNFT: Array<TokenRefundsNft>;
|
|
711
|
+
/** @deprecated Will be updated to LdNftUniqueUsers */
|
|
691
712
|
uniqueUsers: UniqueUsers;
|
|
713
|
+
/** @deprecated Need to fix */
|
|
692
714
|
unlocks: Array<Unlocks>;
|
|
693
715
|
/** @deprecated This endpoint is deprecated. */
|
|
694
716
|
vaultOut: Array<VaultOut>;
|
|
695
|
-
/**
|
|
717
|
+
/**
|
|
718
|
+
* The 'fetchBalance' will be deprecated
|
|
719
|
+
* @deprecated Will be updated to vaultsV2
|
|
720
|
+
*/
|
|
696
721
|
vaults: Array<Vaults>;
|
|
697
722
|
};
|
|
698
723
|
export type QueryAdminAutoSignUpArgs = {
|
|
@@ -1400,18 +1425,6 @@ export type GenerateMyInvestSignatureQuery = {
|
|
|
1400
1425
|
PoolzBackId: number;
|
|
1401
1426
|
};
|
|
1402
1427
|
};
|
|
1403
|
-
export type InvestedErc20QueryVariables = Exact<{
|
|
1404
|
-
investedErc20Id: Scalars['Int']['input'];
|
|
1405
|
-
}>;
|
|
1406
|
-
export type InvestedErc20Query = {
|
|
1407
|
-
__typename?: 'Query';
|
|
1408
|
-
investedErc20: Array<{
|
|
1409
|
-
__typename?: 'InvestedErc20';
|
|
1410
|
-
Wallet: string;
|
|
1411
|
-
AmountIn: number;
|
|
1412
|
-
TokenOut: number;
|
|
1413
|
-
}>;
|
|
1414
|
-
};
|
|
1415
1428
|
export type GetLeaderboardByAddressQueryVariables = Exact<{
|
|
1416
1429
|
address?: InputMaybe<Scalars['String']['input']>;
|
|
1417
1430
|
}>;
|
|
@@ -1594,23 +1607,12 @@ export type KycQuery = {
|
|
|
1594
1607
|
Status?: string | null;
|
|
1595
1608
|
};
|
|
1596
1609
|
};
|
|
1597
|
-
export type
|
|
1610
|
+
export type MyRolesQueryVariables = Exact<{
|
|
1598
1611
|
[key: string]: never;
|
|
1599
1612
|
}>;
|
|
1600
|
-
export type
|
|
1613
|
+
export type MyRolesQuery = {
|
|
1601
1614
|
__typename?: 'Query';
|
|
1602
|
-
|
|
1603
|
-
};
|
|
1604
|
-
export type SignUpCheckQueryVariables = Exact<{
|
|
1605
|
-
poolIDs: Array<Scalars['Int']['input']> | Scalars['Int']['input'];
|
|
1606
|
-
}>;
|
|
1607
|
-
export type SignUpCheckQuery = {
|
|
1608
|
-
__typename?: 'Query';
|
|
1609
|
-
mySignUpCheck: Array<{
|
|
1610
|
-
__typename?: 'SignUpCheck';
|
|
1611
|
-
PoolId: number;
|
|
1612
|
-
SignUp?: boolean | null;
|
|
1613
|
-
}>;
|
|
1615
|
+
myRoles: Array<string>;
|
|
1614
1616
|
};
|
|
1615
1617
|
export type PoolxPriceQueryVariables = Exact<{
|
|
1616
1618
|
[key: string]: never;
|
|
@@ -1711,41 +1713,6 @@ export type DeleteSeasonPassMutation = {
|
|
|
1711
1713
|
Note: string;
|
|
1712
1714
|
};
|
|
1713
1715
|
};
|
|
1714
|
-
export type MySignUpV2QueryVariables = Exact<{
|
|
1715
|
-
projectIDs: Array<Scalars['Int']['input']> | Scalars['Int']['input'];
|
|
1716
|
-
}>;
|
|
1717
|
-
export type MySignUpV2Query = {
|
|
1718
|
-
__typename?: 'Query';
|
|
1719
|
-
mySignUpV2: Array<{
|
|
1720
|
-
__typename?: 'MySignUpV2';
|
|
1721
|
-
ProjectId: number;
|
|
1722
|
-
SignedUp: boolean;
|
|
1723
|
-
}>;
|
|
1724
|
-
};
|
|
1725
|
-
export type AdminSignUpV2QueryVariables = Exact<{
|
|
1726
|
-
projectId: Scalars['Int']['input'];
|
|
1727
|
-
minPoolxAmount: Scalars['Int']['input'];
|
|
1728
|
-
}>;
|
|
1729
|
-
export type AdminSignUpV2Query = {
|
|
1730
|
-
__typename?: 'Query';
|
|
1731
|
-
adminSignUpV2: Array<{
|
|
1732
|
-
__typename?: 'AdminSignUpV2';
|
|
1733
|
-
Address: string;
|
|
1734
|
-
Amount: number;
|
|
1735
|
-
}>;
|
|
1736
|
-
};
|
|
1737
|
-
export type ProjectSignUpV2MutationVariables = Exact<{
|
|
1738
|
-
projectId: Scalars['Int']['input'];
|
|
1739
|
-
}>;
|
|
1740
|
-
export type ProjectSignUpV2Mutation = {
|
|
1741
|
-
__typename?: 'Mutation';
|
|
1742
|
-
projectSignUpV2: {
|
|
1743
|
-
__typename?: 'ProjectSignUpV2';
|
|
1744
|
-
ProjectId: number;
|
|
1745
|
-
UserAddress: string;
|
|
1746
|
-
JoinedTime: number;
|
|
1747
|
-
};
|
|
1748
|
-
};
|
|
1749
1716
|
export type MySignUpV3QueryVariables = Exact<{
|
|
1750
1717
|
projectIDs: Array<Scalars['String']['input']> | Scalars['String']['input'];
|
|
1751
1718
|
}>;
|
|
@@ -1904,7 +1871,6 @@ export declare const GenerateSignatureDocument: DocumentNode<GenerateSignatureMu
|
|
|
1904
1871
|
export declare const MyQueryDocument: DocumentNode<MyQueryQuery, MyQueryQueryVariables>;
|
|
1905
1872
|
export declare const GenerateTokenFromSignatureDocument: DocumentNode<GenerateTokenFromSignatureMutation, GenerateTokenFromSignatureMutationVariables>;
|
|
1906
1873
|
export declare const GenerateMyInvestSignatureDocument: DocumentNode<GenerateMyInvestSignatureQuery, GenerateMyInvestSignatureQueryVariables>;
|
|
1907
|
-
export declare const InvestedErc20Document: DocumentNode<InvestedErc20Query, InvestedErc20QueryVariables>;
|
|
1908
1874
|
export declare const GetLeaderboardByAddressDocument: DocumentNode<GetLeaderboardByAddressQuery, GetLeaderboardByAddressQueryVariables>;
|
|
1909
1875
|
export declare const GetLeaderboardDocument: DocumentNode<GetLeaderboardQuery, GetLeaderboardQueryVariables>;
|
|
1910
1876
|
export declare const LogoutDocument: DocumentNode<LogoutMutation, LogoutMutationVariables>;
|
|
@@ -1919,17 +1885,13 @@ export declare const DeleteNonEvmWalletDocument: DocumentNode<DeleteNonEvmWallet
|
|
|
1919
1885
|
export declare const UpdateNonEvmWalletDocument: DocumentNode<UpdateNonEvmWalletMutation, UpdateNonEvmWalletMutationVariables>;
|
|
1920
1886
|
export declare const MyInvestedDocument: DocumentNode<MyInvestedQuery, MyInvestedQueryVariables>;
|
|
1921
1887
|
export declare const KycDocument: DocumentNode<KycQuery, KycQueryVariables>;
|
|
1922
|
-
export declare const
|
|
1923
|
-
export declare const SignUpCheckDocument: DocumentNode<SignUpCheckQuery, SignUpCheckQueryVariables>;
|
|
1888
|
+
export declare const MyRolesDocument: DocumentNode<MyRolesQuery, MyRolesQueryVariables>;
|
|
1924
1889
|
export declare const PoolxPriceDocument: DocumentNode<PoolxPriceQuery, PoolxPriceQueryVariables>;
|
|
1925
1890
|
export declare const GetPoolxTokenomicsDocument: DocumentNode<GetPoolxTokenomicsQuery, GetPoolxTokenomicsQueryVariables>;
|
|
1926
1891
|
export declare const SeasonPassDocument: DocumentNode<SeasonPassQuery, SeasonPassQueryVariables>;
|
|
1927
1892
|
export declare const CreateSeasonPassDocument: DocumentNode<CreateSeasonPassMutation, CreateSeasonPassMutationVariables>;
|
|
1928
1893
|
export declare const UpdateSeasonPassDocument: DocumentNode<UpdateSeasonPassMutation, UpdateSeasonPassMutationVariables>;
|
|
1929
1894
|
export declare const DeleteSeasonPassDocument: DocumentNode<DeleteSeasonPassMutation, DeleteSeasonPassMutationVariables>;
|
|
1930
|
-
export declare const MySignUpV2Document: DocumentNode<MySignUpV2Query, MySignUpV2QueryVariables>;
|
|
1931
|
-
export declare const AdminSignUpV2Document: DocumentNode<AdminSignUpV2Query, AdminSignUpV2QueryVariables>;
|
|
1932
|
-
export declare const ProjectSignUpV2Document: DocumentNode<ProjectSignUpV2Mutation, ProjectSignUpV2MutationVariables>;
|
|
1933
1895
|
export declare const MySignUpV3Document: DocumentNode<MySignUpV3Query, MySignUpV3QueryVariables>;
|
|
1934
1896
|
export declare const AdminSignUpV3Document: DocumentNode<AdminSignUpV3Query, AdminSignUpV3QueryVariables>;
|
|
1935
1897
|
export declare const ProjectSignUpV3Document: DocumentNode<ProjectSignUpV3Mutation, ProjectSignUpV3MutationVariables>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poolzfinance/api4",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Bridge between front and back",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -33,31 +33,36 @@
|
|
|
33
33
|
"bracketSameLine": true
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@graphql-codegen/cli": "^5.0.
|
|
37
|
-
"@graphql-codegen/client-preset": "^4.8.
|
|
36
|
+
"@graphql-codegen/cli": "^5.0.7",
|
|
37
|
+
"@graphql-codegen/client-preset": "^4.8.2",
|
|
38
38
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
39
|
+
"@testing-library/react": "^16.3.0",
|
|
40
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
39
41
|
"@types/crypto-js": "^4.2.2",
|
|
40
|
-
"@types/jest": "^29.5.
|
|
41
|
-
"@types/node": "^20.
|
|
42
|
-
"@types/react": "^18.
|
|
43
|
-
"
|
|
42
|
+
"@types/jest": "^29.5.14",
|
|
43
|
+
"@types/node": "^20.19.1",
|
|
44
|
+
"@types/react": "^18.3.23",
|
|
45
|
+
"@types/react-dom": "^19.1.6",
|
|
46
|
+
"jest": "^29.7.0",
|
|
47
|
+
"jest-environment-jsdom": "^30.0.2",
|
|
44
48
|
"microbundle": "^0.15.1",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"ts-
|
|
49
|
+
"react-dom": "^18.3.1",
|
|
50
|
+
"rimraf": "^5.0.10",
|
|
51
|
+
"ts-jest": "^29.4.0",
|
|
52
|
+
"ts-node": "^10.9.2",
|
|
48
53
|
"typescript": "^5.8.3"
|
|
49
54
|
},
|
|
50
55
|
"dependencies": {
|
|
51
|
-
"@apollo/client": "^3.
|
|
56
|
+
"@apollo/client": "^3.13.8",
|
|
52
57
|
"crypto-js": "^4.2.0",
|
|
53
58
|
"graphql": "^16.11.0",
|
|
54
|
-
"react": "^18.
|
|
59
|
+
"react": "^18.3.1"
|
|
55
60
|
},
|
|
56
61
|
"scripts": {
|
|
57
62
|
"prebuild": "pnpm clean",
|
|
58
63
|
"build": "pnpm prebuild && microbundle --jsx React.createElement",
|
|
59
64
|
"clean": "rm -rf dist",
|
|
60
65
|
"compile": "rimraf src/types/graphql && graphql-codegen",
|
|
61
|
-
"test": "jest"
|
|
66
|
+
"test": "jest --coverage"
|
|
62
67
|
}
|
|
63
68
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const useAdminCleanCache: () => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").AdminCleanCacheMutation, import("../types/graphql/graphql").Exact<{
|
|
2
|
-
[key: string]: never;
|
|
3
|
-
}>, {
|
|
4
|
-
headers: {
|
|
5
|
-
Authorization: string | null;
|
|
6
|
-
};
|
|
7
|
-
}, import("@apollo/client").ApolloCache<any>>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const useLazyAdminListOfCollateral: () => import("@apollo/client").LazyQueryResultTuple<import("../types/graphql/graphql").AdminListOfCollateralQuery, import("../types/graphql/graphql").Exact<{
|
|
2
|
-
chainId: import("../types/graphql/graphql").Scalars["Int"]["input"];
|
|
3
|
-
collateralAddress: import("../types/graphql/graphql").Scalars["String"]["input"];
|
|
4
|
-
limit: import("../types/graphql/graphql").Scalars["Int"]["input"];
|
|
5
|
-
page: import("../types/graphql/graphql").Scalars["Int"]["input"];
|
|
6
|
-
}>>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const useGetAutoSignUp: (note: string) => import("@apollo/client").QueryResult<import("../types/graphql/graphql").AdminAutoSignUpQuery, {
|
|
2
|
-
note: string;
|
|
3
|
-
}>;
|
|
4
|
-
export declare const useGetAutoSignUpAll: () => import("@apollo/client").QueryResult<import("../types/graphql/graphql").AdminAutoSignUpAllQuery, import("../types/graphql/graphql").Exact<{
|
|
5
|
-
[key: string]: never;
|
|
6
|
-
}>>;
|
|
7
|
-
export declare const useAddAutoSignUp: (address: string, poolzAmount: number, note: string) => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").AddAutoSignUpMutation, {
|
|
8
|
-
address: string;
|
|
9
|
-
poolzAmount: number;
|
|
10
|
-
note: string;
|
|
11
|
-
}, {
|
|
12
|
-
headers: {
|
|
13
|
-
Authorization: string | null;
|
|
14
|
-
};
|
|
15
|
-
}, import("@apollo/client").ApolloCache<any>>;
|
|
16
|
-
export declare const useUpdateAutoSignUp: (address: string, poolzAmount: number, note: string) => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").UpdateAutoSignUpMutation, {
|
|
17
|
-
address: string;
|
|
18
|
-
poolzAmount: number;
|
|
19
|
-
note: string;
|
|
20
|
-
}, {
|
|
21
|
-
headers: {
|
|
22
|
-
Authorization: string | null;
|
|
23
|
-
};
|
|
24
|
-
}, import("@apollo/client").ApolloCache<any>>;
|
|
25
|
-
export declare const useDeleteAutoSignUp: (address: string) => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").DeleteAutoSignUpMutation, {
|
|
26
|
-
address: string;
|
|
27
|
-
}, {
|
|
28
|
-
headers: {
|
|
29
|
-
Authorization: string | null;
|
|
30
|
-
};
|
|
31
|
-
}, import("@apollo/client").ApolloCache<any>>;
|
|
File without changes
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const useInvestedERC20: (investedErc20Id: number) => import("@apollo/client").QueryResult<import("../types/graphql/graphql").InvestedErc20Query, {
|
|
2
|
-
investedErc20Id: number;
|
|
3
|
-
}>;
|
|
4
|
-
export declare const useLazyInvestedERC20: () => import("@apollo/client").LazyQueryResultTuple<import("../types/graphql/graphql").InvestedErc20Query, import("../types/graphql/graphql").Exact<{
|
|
5
|
-
investedErc20Id: import("../types/graphql/graphql").Scalars["Int"]["input"];
|
|
6
|
-
}>>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const useMyRole: () => import("@apollo/client").QueryResult<import("../types/graphql/graphql").MyRoleQuery, import("../types/graphql/graphql").Exact<{
|
|
2
|
-
[key: string]: never;
|
|
3
|
-
}>>;
|
|
4
|
-
export declare const useLazyMyRole: () => import("@apollo/client").LazyQueryResultTuple<import("../types/graphql/graphql").MyRoleQuery, import("../types/graphql/graphql").Exact<{
|
|
5
|
-
[key: string]: never;
|
|
6
|
-
}>>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const useGetSeasonPass: () => import("@apollo/client").QueryResult<import("../types/graphql/graphql").SeasonPassQuery, import("../types/graphql/graphql").Exact<{
|
|
2
|
-
[key: string]: never;
|
|
3
|
-
}>>;
|
|
4
|
-
export declare const useCreateSeasonPass: () => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").CreateSeasonPassMutation, import("../types/graphql/graphql").Exact<{
|
|
5
|
-
Owner: import("../types/graphql/graphql").Scalars["String"]["input"];
|
|
6
|
-
Amount: import("../types/graphql/graphql").Scalars["Float"]["input"];
|
|
7
|
-
ValidUntil: import("../types/graphql/graphql").Scalars["Int"]["input"];
|
|
8
|
-
Note: import("../types/graphql/graphql").Scalars["String"]["input"];
|
|
9
|
-
}>, {
|
|
10
|
-
headers: {
|
|
11
|
-
Authorization: string | null | undefined;
|
|
12
|
-
};
|
|
13
|
-
}, import("@apollo/client").ApolloCache<any>>;
|
|
14
|
-
export declare const useUpdateSeasonPass: () => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").UpdateSeasonPassMutation, import("../types/graphql/graphql").Exact<{
|
|
15
|
-
Owner: import("../types/graphql/graphql").Scalars["String"]["input"];
|
|
16
|
-
Amount: import("../types/graphql/graphql").Scalars["Float"]["input"];
|
|
17
|
-
ValidUntil: import("../types/graphql/graphql").Scalars["Int"]["input"];
|
|
18
|
-
Note: import("../types/graphql/graphql").Scalars["String"]["input"];
|
|
19
|
-
}>, {
|
|
20
|
-
headers: {
|
|
21
|
-
Authorization: string | null | undefined;
|
|
22
|
-
};
|
|
23
|
-
}, import("@apollo/client").ApolloCache<any>>;
|
|
24
|
-
export declare const useDeleteSeasonPass: () => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").DeleteSeasonPassMutation, import("../types/graphql/graphql").Exact<{
|
|
25
|
-
owner: import("../types/graphql/graphql").Scalars["String"]["input"];
|
|
26
|
-
note: import("../types/graphql/graphql").Scalars["String"]["input"];
|
|
27
|
-
}>, {
|
|
28
|
-
headers: {
|
|
29
|
-
Authorization: string | null | undefined;
|
|
30
|
-
};
|
|
31
|
-
}, import("@apollo/client").ApolloCache<any>>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MutationTuple } from "@apollo/client";
|
|
2
|
-
import { types } from "../";
|
|
3
|
-
export declare const useLazyGetMySignUp: () => import("@apollo/client").LazyQueryResultTuple<types.MySignUpV2Query, types.Exact<{
|
|
4
|
-
projectIDs: Array<types.Scalars["Int"]["input"]> | types.Scalars["Int"]["input"];
|
|
5
|
-
}>>;
|
|
6
|
-
export declare const useLazyGetAdminSignUp: () => import("@apollo/client").LazyQueryResultTuple<types.AdminSignUpV2Query, types.Exact<{
|
|
7
|
-
projectId: types.Scalars["Int"]["input"];
|
|
8
|
-
minPoolxAmount: types.Scalars["Int"]["input"];
|
|
9
|
-
}>>;
|
|
10
|
-
export declare const useSetMySignUp: () => MutationTuple<types.ProjectSignUpV2Mutation, types.Exact<{
|
|
11
|
-
projectId: types.Scalars["Int"]["input"];
|
|
12
|
-
}>, {
|
|
13
|
-
headers: {
|
|
14
|
-
Authorization: string | null | undefined;
|
|
15
|
-
};
|
|
16
|
-
}, import("@apollo/client").ApolloCache<any>>;
|
|
17
|
-
export declare const useSetMySignUpBETA: () => MutationTuple<types.ProjectSignUpV2Mutation, types.ProjectSignUpV2MutationVariables>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const useLazyTokenRefundsNFT: () => import("@apollo/client").LazyQueryResultTuple<import("../types/graphql/graphql").TokenRefundsNftQuery, import("../types/graphql/graphql").Exact<{
|
|
2
|
-
chainId: import("../types/graphql/graphql").Scalars["Int"]["input"];
|
|
3
|
-
poolId: import("../types/graphql/graphql").Scalars["Int"]["input"];
|
|
4
|
-
}>>;
|