@poolzfinance/api4 1.14.2 → 1.15.5
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/dist/endpoints/adminUsersInvest.d.ts +10 -0
- package/dist/endpoints/vaults.d.ts +3 -13
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.modern.js +2 -2
- 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 +5 -10
- package/dist/types/graphql/graphql.d.ts +53 -97
- package/package.json +4 -4
- package/dist/endpoints/poolxTokenomics.d.ts +0 -3
- package/dist/endpoints/vaultsV2.d.ts +0 -4
|
@@ -16,8 +16,8 @@ type Documents = {
|
|
|
16
16
|
"\n query AdminGetAllocation($projectId: String!) {\n adminGetAllocation(projectId: $projectId) {\n PhaseId\n WhiteList {\n UserAddress\n Amount\n }\n }\n }\n": typeof types.AdminGetAllocationDocument;
|
|
17
17
|
"\n query AdminListOfPoolzBackId($projectIDs: [String!]!) {\n adminListOfPoolzBackId(projectIDs: $projectIDs) {\n ProjectId\n PoolzBackId\n }\n}": typeof types.AdminListOfPoolzBackIdDocument;
|
|
18
18
|
"\n query AdminReadAssets($request: [ReadAssetsRequest!]!) {\n adminReadAssets(request: $request) {\n Assets {\n ChainId\n PoolId\n Dispensers {\n UserAddress\n Builders {\n WeiAmount\n }\n Taken {\n IsRefunded\n }\n }\n }\n }\n}": typeof types.AdminReadAssetsDocument;
|
|
19
|
+
"\n query AdminUsersInvest($poolId: Int!, $first: Int!, $skip: Int!) {\n adminUsersInvest(poolId: $poolId, first: $first, skip: $skip) {\n UserAddress\n WeiAmount\n }\n }\n": typeof types.AdminUsersInvestDocument;
|
|
19
20
|
"\n mutation AdminWriteAllocation($input: AdminWriteAllocation!) {\n adminWriteAllocation(input: $input)\n }\n": typeof types.AdminWriteAllocationDocument;
|
|
20
|
-
"\n query GetApprovedContracts($onlyApproved: Boolean!) {\n approvedContracts(onlyApproved: $onlyApproved) {\n ContractAddress\n Status\n }\n }": typeof types.GetApprovedContractsDocument;
|
|
21
21
|
"\n query GetApprovedContractsV2($chainId: Int!, $onlyApproved: Boolean!) {\n approvedContractsV2(chainId: $chainId, onlyApproved: $onlyApproved) {\n ContractAddress\n Status\n BlockNumber\n BlockTimestamp\n TransactionHash\n }\n }": typeof types.GetApprovedContractsV2Document;
|
|
22
22
|
"\n query BoostProxyData($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n DataKey\n CampaignName\n TotalEntries\n CampaignCode\n }\n}": typeof types.BoostProxyDataDocument;
|
|
23
23
|
"\n query BoostProxyUsers($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n CampaignName\n TotalEntries\n CampaignCode\n DataKey\n Users {\n Address\n Entries\n }\n }\n}": typeof types.BoostProxyUsersDocument;
|
|
@@ -46,7 +46,6 @@ type Documents = {
|
|
|
46
46
|
"\n query KYC {\n myProxyKYC {\n Proxy\n RequestStatus\n Status\n }\n}": typeof types.KycDocument;
|
|
47
47
|
"\n query MyRoles {\n myRoles\n }": typeof types.MyRolesDocument;
|
|
48
48
|
"\n query PoolxPrice {\n poolxPrice {\n Price\n Timestamp\n }\n }": typeof types.PoolxPriceDocument;
|
|
49
|
-
"\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;
|
|
50
49
|
"\n query PoolxTokenomicsV2_Simple {\n poolxTokenomicsV2 {\n CirculatingSupply\n Locked\n }\n }\n": typeof types.PoolxTokenomicsV2_SimpleDocument;
|
|
51
50
|
"\n query PoolxTokenomicsV2_Full {\n poolxTokenomicsV2 {\n CirculatingSupply\n Locked\n InternalSum\n ExternalSum\n External {\n Name\n Balance\n }\n Internal {\n Name\n Balance\n }\n }\n }\n": typeof types.PoolxTokenomicsV2_FullDocument;
|
|
52
51
|
"\n query ProjectIdToPoolzBackId($projectId: String!) {\n projectIdToPoolzBackId(projectId: $projectId)\n }\n": typeof types.ProjectIdToPoolzBackIdDocument;
|
|
@@ -54,7 +53,7 @@ type Documents = {
|
|
|
54
53
|
"\n query AdminSignUpV3($projectId: String!, $minPoolxAmount: Int!) {\n adminSignUpV3(projectId: $projectId, minPoolxAmount: $minPoolxAmount) {\n Address\n Amount\n }\n }\n": typeof types.AdminSignUpV3Document;
|
|
55
54
|
"\n mutation ProjectSignUpV3($projectId: String!) {\n projectSignUpV3(projectId: $projectId) {\n ProjectId\n UserAddress\n JoinedTime\n }\n }\n": typeof types.ProjectSignUpV3Document;
|
|
56
55
|
"\n query TokenInfo($hashKey: String!) {\n tokenInfo(hashKey: $hashKey) {\n Address\n ChainId\n Decimals\n Name\n Symbol\n TotalSupply\n }\n }\n": typeof types.TokenInfoDocument;
|
|
57
|
-
"\n query
|
|
56
|
+
"\n query VaultsV2($chainId: Int!) {\n vaultsV2(chainId: $chainId) {\n VaultId\n VaultAddress\n Token\n WeiBalance\n DepositStatus\n WithdrawStatus\n RoyaltyReceiver\n RoyaltyFeeNumerator\n }\n }\n": typeof types.VaultsV2Document;
|
|
58
57
|
};
|
|
59
58
|
declare const documents: Documents;
|
|
60
59
|
/**
|
|
@@ -89,11 +88,11 @@ export declare function gql(source: "\n query AdminReadAssets($request: [ReadAs
|
|
|
89
88
|
/**
|
|
90
89
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
91
90
|
*/
|
|
92
|
-
export declare function gql(source: "\n
|
|
91
|
+
export declare function gql(source: "\n query AdminUsersInvest($poolId: Int!, $first: Int!, $skip: Int!) {\n adminUsersInvest(poolId: $poolId, first: $first, skip: $skip) {\n UserAddress\n WeiAmount\n }\n }\n"): (typeof documents)["\n query AdminUsersInvest($poolId: Int!, $first: Int!, $skip: Int!) {\n adminUsersInvest(poolId: $poolId, first: $first, skip: $skip) {\n UserAddress\n WeiAmount\n }\n }\n"];
|
|
93
92
|
/**
|
|
94
93
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
95
94
|
*/
|
|
96
|
-
export declare function gql(source: "\n
|
|
95
|
+
export declare function gql(source: "\n mutation AdminWriteAllocation($input: AdminWriteAllocation!) {\n adminWriteAllocation(input: $input)\n }\n"): (typeof documents)["\n mutation AdminWriteAllocation($input: AdminWriteAllocation!) {\n adminWriteAllocation(input: $input)\n }\n"];
|
|
97
96
|
/**
|
|
98
97
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
99
98
|
*/
|
|
@@ -206,10 +205,6 @@ export declare function gql(source: "\n query MyRoles {\n myRoles\n }"): (t
|
|
|
206
205
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
207
206
|
*/
|
|
208
207
|
export declare function gql(source: "\n query PoolxPrice {\n poolxPrice {\n Price\n Timestamp\n }\n }"): (typeof documents)["\n query PoolxPrice {\n poolxPrice {\n Price\n Timestamp\n }\n }"];
|
|
209
|
-
/**
|
|
210
|
-
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
211
|
-
*/
|
|
212
|
-
export declare function gql(source: "\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 documents)["\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"];
|
|
213
208
|
/**
|
|
214
209
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
215
210
|
*/
|
|
@@ -241,6 +236,6 @@ export declare function gql(source: "\n query TokenInfo($hashKey: String!) {\n
|
|
|
241
236
|
/**
|
|
242
237
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
243
238
|
*/
|
|
244
|
-
export declare function gql(source: "\n query
|
|
239
|
+
export declare function gql(source: "\n query VaultsV2($chainId: Int!) {\n vaultsV2(chainId: $chainId) {\n VaultId\n VaultAddress\n Token\n WeiBalance\n DepositStatus\n WithdrawStatus\n RoyaltyReceiver\n RoyaltyFeeNumerator\n }\n }\n"): (typeof documents)["\n query VaultsV2($chainId: Int!) {\n vaultsV2(chainId: $chainId) {\n VaultId\n VaultAddress\n Token\n WeiBalance\n DepositStatus\n WithdrawStatus\n RoyaltyReceiver\n RoyaltyFeeNumerator\n }\n }\n"];
|
|
245
240
|
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
|
|
246
241
|
export {};
|
|
@@ -80,6 +80,11 @@ export type AdminSignUpV3 = {
|
|
|
80
80
|
Address: Scalars['String']['output'];
|
|
81
81
|
Amount: Scalars['Float']['output'];
|
|
82
82
|
};
|
|
83
|
+
export type AdminUsersInvest = {
|
|
84
|
+
__typename?: 'AdminUsersInvest';
|
|
85
|
+
UserAddress: Scalars['String']['output'];
|
|
86
|
+
WeiAmount: Scalars['String']['output'];
|
|
87
|
+
};
|
|
83
88
|
export type AdminUsersTotalSpents = {
|
|
84
89
|
__typename?: 'AdminUsersTotalSpents';
|
|
85
90
|
User: Scalars['String']['output'];
|
|
@@ -203,6 +208,11 @@ export type GenerateTokenFromSignature = {
|
|
|
203
208
|
token: Scalars['String']['output'];
|
|
204
209
|
validUntil: Scalars['Int']['output'];
|
|
205
210
|
};
|
|
211
|
+
export type GetOrAddTokenInfo = {
|
|
212
|
+
ChainId: Scalars['Int']['input'];
|
|
213
|
+
Tokens: Array<Scalars['String']['input']>;
|
|
214
|
+
UpdateTotalSupply: Scalars['Boolean']['input'];
|
|
215
|
+
};
|
|
206
216
|
export type KycProxy = {
|
|
207
217
|
__typename?: 'KycProxy';
|
|
208
218
|
Proxy?: Maybe<Scalars['String']['output']>;
|
|
@@ -227,6 +237,7 @@ export type Mutation = {
|
|
|
227
237
|
deleteNonEvmWallet: UserData;
|
|
228
238
|
generateSignature: GenerateSignatureResponse;
|
|
229
239
|
generateTokenFromSignature: GenerateTokenFromSignature;
|
|
240
|
+
getOrAddTokenInfo: Array<TokenInfo>;
|
|
230
241
|
logout: Scalars['Boolean']['output'];
|
|
231
242
|
projectSignUpV3: ProjectSignUpV3;
|
|
232
243
|
sendToMonitor: Scalars['Int']['output'];
|
|
@@ -268,6 +279,9 @@ export type MutationGenerateTokenFromSignatureArgs = {
|
|
|
268
279
|
eip4361message: Scalars['String']['input'];
|
|
269
280
|
signature: Scalars['String']['input'];
|
|
270
281
|
};
|
|
282
|
+
export type MutationGetOrAddTokenInfoArgs = {
|
|
283
|
+
input: Array<InputMaybe<GetOrAddTokenInfo>>;
|
|
284
|
+
};
|
|
271
285
|
export type MutationProjectSignUpV3Args = {
|
|
272
286
|
projectId: Scalars['String']['input'];
|
|
273
287
|
};
|
|
@@ -330,6 +344,7 @@ export type MyInvest = {
|
|
|
330
344
|
__typename?: 'MyInvest';
|
|
331
345
|
Amount: Scalars['Float']['output'];
|
|
332
346
|
ChainId: Scalars['Int']['output'];
|
|
347
|
+
FinishTime: Scalars['Int']['output'];
|
|
333
348
|
PoolId: Scalars['Int']['output'];
|
|
334
349
|
ProjectId: Scalars['String']['output'];
|
|
335
350
|
Token: Scalars['String']['output'];
|
|
@@ -374,32 +389,6 @@ export type PoolxPrice = {
|
|
|
374
389
|
Price: Scalars['Float']['output'];
|
|
375
390
|
Timestamp: Scalars['Int']['output'];
|
|
376
391
|
};
|
|
377
|
-
export type PoolxTokenomics = {
|
|
378
|
-
__typename?: 'PoolxTokenomics';
|
|
379
|
-
CirculatingSupply: Scalars['Float']['output'];
|
|
380
|
-
Data: PoolxTokenomicsData;
|
|
381
|
-
Locked: Scalars['Float']['output'];
|
|
382
|
-
Trade: PoolxTokenomicsTrade;
|
|
383
|
-
};
|
|
384
|
-
export type PoolxTokenomicsData = {
|
|
385
|
-
__typename?: 'PoolxTokenomicsData';
|
|
386
|
-
BuyBack: Scalars['Float']['output'];
|
|
387
|
-
DelayVault: Scalars['Float']['output'];
|
|
388
|
-
DelayVaultV2: Scalars['Float']['output'];
|
|
389
|
-
LockedDealV2: Scalars['Float']['output'];
|
|
390
|
-
Reserved: Scalars['Float']['output'];
|
|
391
|
-
TotalSupply: Scalars['Float']['output'];
|
|
392
|
-
};
|
|
393
|
-
export type PoolxTokenomicsTrade = {
|
|
394
|
-
__typename?: 'PoolxTokenomicsTrade';
|
|
395
|
-
GateIO: Scalars['Float']['output'];
|
|
396
|
-
Huobi: Scalars['Float']['output'];
|
|
397
|
-
Mexc: Scalars['Float']['output'];
|
|
398
|
-
PancakeSwapV2: Scalars['Float']['output'];
|
|
399
|
-
PancakeSwapV3: Scalars['Float']['output'];
|
|
400
|
-
PancakeSwapV3_01: Scalars['Float']['output'];
|
|
401
|
-
Sum: Scalars['Float']['output'];
|
|
402
|
-
};
|
|
403
392
|
export type PoolxTokenomicsV2 = {
|
|
404
393
|
__typename?: 'PoolxTokenomicsV2';
|
|
405
394
|
CirculatingSupply: Scalars['Float']['output'];
|
|
@@ -433,8 +422,9 @@ export type Query = {
|
|
|
433
422
|
adminReadAssets: ReadAssetsResponse;
|
|
434
423
|
adminRpcWallets: Array<RpcWallet>;
|
|
435
424
|
adminSignUpV3: Array<AdminSignUpV3>;
|
|
425
|
+
adminUsersInvest: Array<AdminUsersInvest>;
|
|
436
426
|
adminUsersTotalSpents: Array<AdminUsersTotalSpents>;
|
|
437
|
-
/**
|
|
427
|
+
/** @deprecated Use new `approvedContractsV2` endpoint. */
|
|
438
428
|
approvedContracts: Array<ApprovedContracts>;
|
|
439
429
|
approvedContractsV2: Array<ApprovedContractsV2>;
|
|
440
430
|
boostProxy: Array<BoostProxy>;
|
|
@@ -456,8 +446,6 @@ export type Query = {
|
|
|
456
446
|
mySignUpV3: Array<MySignUpV3>;
|
|
457
447
|
myUpcomingAllocation: Array<MyUpcomingAllocation>;
|
|
458
448
|
poolxPrice: PoolxPrice;
|
|
459
|
-
/** @deprecated Use new `poolxTokenomicsV2` endpoint. */
|
|
460
|
-
poolxTokenomics: PoolxTokenomics;
|
|
461
449
|
poolxTokenomicsV2: PoolxTokenomicsV2;
|
|
462
450
|
projectIdToPoolzBackId: Scalars['Int']['output'];
|
|
463
451
|
retrieveSignature: RetrieveSignatureResponse;
|
|
@@ -466,10 +454,10 @@ export type Query = {
|
|
|
466
454
|
splitDataEncoder: Scalars['String']['output'];
|
|
467
455
|
time: Scalars['Int']['output'];
|
|
468
456
|
tokenInfo?: Maybe<TokenInfo>;
|
|
469
|
-
/** @deprecated
|
|
457
|
+
/** @deprecated Use new `unlocksV2` endpoint. */
|
|
470
458
|
unlocks: Array<Unlocks>;
|
|
471
459
|
unlocksV2: Array<UnlocksV2>;
|
|
472
|
-
/**
|
|
460
|
+
/** @deprecated Use new `vaultsV2` endpoint. */
|
|
473
461
|
vaults: Array<Vaults>;
|
|
474
462
|
vaultsV2: Array<VaultsV2>;
|
|
475
463
|
};
|
|
@@ -493,6 +481,11 @@ export type QueryAdminSignUpV3Args = {
|
|
|
493
481
|
minPoolxAmount: Scalars['Int']['input'];
|
|
494
482
|
projectId: Scalars['String']['input'];
|
|
495
483
|
};
|
|
484
|
+
export type QueryAdminUsersInvestArgs = {
|
|
485
|
+
first: Scalars['Int']['input'];
|
|
486
|
+
poolId: Scalars['Int']['input'];
|
|
487
|
+
skip: Scalars['Int']['input'];
|
|
488
|
+
};
|
|
496
489
|
export type QueryApprovedContractsArgs = {
|
|
497
490
|
onlyApproved: Scalars['Boolean']['input'];
|
|
498
491
|
};
|
|
@@ -561,6 +554,7 @@ export type QueryVaultsArgs = {
|
|
|
561
554
|
};
|
|
562
555
|
export type QueryVaultsV2Args = {
|
|
563
556
|
chainId: Scalars['Int']['input'];
|
|
557
|
+
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
564
558
|
};
|
|
565
559
|
export type ReadAssetResponse_Asset = {
|
|
566
560
|
__typename?: 'ReadAssetResponse_Asset';
|
|
@@ -757,6 +751,19 @@ export type AdminReadAssetsQuery = {
|
|
|
757
751
|
}>;
|
|
758
752
|
};
|
|
759
753
|
};
|
|
754
|
+
export type AdminUsersInvestQueryVariables = Exact<{
|
|
755
|
+
poolId: Scalars['Int']['input'];
|
|
756
|
+
first: Scalars['Int']['input'];
|
|
757
|
+
skip: Scalars['Int']['input'];
|
|
758
|
+
}>;
|
|
759
|
+
export type AdminUsersInvestQuery = {
|
|
760
|
+
__typename?: 'Query';
|
|
761
|
+
adminUsersInvest: Array<{
|
|
762
|
+
__typename?: 'AdminUsersInvest';
|
|
763
|
+
UserAddress: string;
|
|
764
|
+
WeiAmount: string;
|
|
765
|
+
}>;
|
|
766
|
+
};
|
|
760
767
|
export type AdminWriteAllocationMutationVariables = Exact<{
|
|
761
768
|
input: AdminWriteAllocation;
|
|
762
769
|
}>;
|
|
@@ -764,17 +771,6 @@ export type AdminWriteAllocationMutation = {
|
|
|
764
771
|
__typename?: 'Mutation';
|
|
765
772
|
adminWriteAllocation: number;
|
|
766
773
|
};
|
|
767
|
-
export type GetApprovedContractsQueryVariables = Exact<{
|
|
768
|
-
onlyApproved: Scalars['Boolean']['input'];
|
|
769
|
-
}>;
|
|
770
|
-
export type GetApprovedContractsQuery = {
|
|
771
|
-
__typename?: 'Query';
|
|
772
|
-
approvedContracts: Array<{
|
|
773
|
-
__typename?: 'ApprovedContracts';
|
|
774
|
-
ContractAddress: string;
|
|
775
|
-
Status: boolean;
|
|
776
|
-
}>;
|
|
777
|
-
};
|
|
778
774
|
export type GetApprovedContractsV2QueryVariables = Exact<{
|
|
779
775
|
chainId: Scalars['Int']['input'];
|
|
780
776
|
onlyApproved: Scalars['Boolean']['input'];
|
|
@@ -1177,35 +1173,6 @@ export type PoolxPriceQuery = {
|
|
|
1177
1173
|
Timestamp: number;
|
|
1178
1174
|
};
|
|
1179
1175
|
};
|
|
1180
|
-
export type GetPoolxTokenomicsQueryVariables = Exact<{
|
|
1181
|
-
[key: string]: never;
|
|
1182
|
-
}>;
|
|
1183
|
-
export type GetPoolxTokenomicsQuery = {
|
|
1184
|
-
__typename?: 'Query';
|
|
1185
|
-
poolxTokenomics: {
|
|
1186
|
-
__typename?: 'PoolxTokenomics';
|
|
1187
|
-
CirculatingSupply: number;
|
|
1188
|
-
Locked: number;
|
|
1189
|
-
Data: {
|
|
1190
|
-
__typename?: 'PoolxTokenomicsData';
|
|
1191
|
-
TotalSupply: number;
|
|
1192
|
-
BuyBack: number;
|
|
1193
|
-
LockedDealV2: number;
|
|
1194
|
-
DelayVault: number;
|
|
1195
|
-
DelayVaultV2: number;
|
|
1196
|
-
Reserved: number;
|
|
1197
|
-
};
|
|
1198
|
-
Trade: {
|
|
1199
|
-
__typename?: 'PoolxTokenomicsTrade';
|
|
1200
|
-
Sum: number;
|
|
1201
|
-
Huobi: number;
|
|
1202
|
-
GateIO: number;
|
|
1203
|
-
PancakeSwapV3_01: number;
|
|
1204
|
-
PancakeSwapV3: number;
|
|
1205
|
-
Mexc: number;
|
|
1206
|
-
};
|
|
1207
|
-
};
|
|
1208
|
-
};
|
|
1209
1176
|
export type PoolxTokenomicsV2_SimpleQueryVariables = Exact<{
|
|
1210
1177
|
[key: string]: never;
|
|
1211
1178
|
}>;
|
|
@@ -1297,39 +1264,29 @@ export type TokenInfoQuery = {
|
|
|
1297
1264
|
TotalSupply: number;
|
|
1298
1265
|
} | null;
|
|
1299
1266
|
};
|
|
1300
|
-
export type
|
|
1301
|
-
chainId
|
|
1302
|
-
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1303
|
-
fetchBalance?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1267
|
+
export type VaultsV2QueryVariables = Exact<{
|
|
1268
|
+
chainId: Scalars['Int']['input'];
|
|
1304
1269
|
}>;
|
|
1305
|
-
export type
|
|
1270
|
+
export type VaultsV2Query = {
|
|
1306
1271
|
__typename?: 'Query';
|
|
1307
|
-
|
|
1308
|
-
__typename?: '
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
TokenSymbol: string;
|
|
1318
|
-
TokenDecimals: number;
|
|
1319
|
-
Balance?: {
|
|
1320
|
-
__typename?: 'VaultsDataBalance';
|
|
1321
|
-
BalanceOfToken: number;
|
|
1322
|
-
FetchTime: number;
|
|
1323
|
-
} | null;
|
|
1324
|
-
}>;
|
|
1272
|
+
vaultsV2: Array<{
|
|
1273
|
+
__typename?: 'VaultsV2';
|
|
1274
|
+
VaultId: number;
|
|
1275
|
+
VaultAddress: string;
|
|
1276
|
+
Token: string;
|
|
1277
|
+
WeiBalance: string;
|
|
1278
|
+
DepositStatus: boolean;
|
|
1279
|
+
WithdrawStatus: boolean;
|
|
1280
|
+
RoyaltyReceiver: string;
|
|
1281
|
+
RoyaltyFeeNumerator: number;
|
|
1325
1282
|
}>;
|
|
1326
1283
|
};
|
|
1327
1284
|
export declare const AdminCreatePoolzBackIdDocument: DocumentNode<AdminCreatePoolzBackIdMutation, AdminCreatePoolzBackIdMutationVariables>;
|
|
1328
1285
|
export declare const AdminGetAllocationDocument: DocumentNode<AdminGetAllocationQuery, AdminGetAllocationQueryVariables>;
|
|
1329
1286
|
export declare const AdminListOfPoolzBackIdDocument: DocumentNode<AdminListOfPoolzBackIdQuery, AdminListOfPoolzBackIdQueryVariables>;
|
|
1330
1287
|
export declare const AdminReadAssetsDocument: DocumentNode<AdminReadAssetsQuery, AdminReadAssetsQueryVariables>;
|
|
1288
|
+
export declare const AdminUsersInvestDocument: DocumentNode<AdminUsersInvestQuery, AdminUsersInvestQueryVariables>;
|
|
1331
1289
|
export declare const AdminWriteAllocationDocument: DocumentNode<AdminWriteAllocationMutation, AdminWriteAllocationMutationVariables>;
|
|
1332
|
-
export declare const GetApprovedContractsDocument: DocumentNode<GetApprovedContractsQuery, GetApprovedContractsQueryVariables>;
|
|
1333
1290
|
export declare const GetApprovedContractsV2Document: DocumentNode<GetApprovedContractsV2Query, GetApprovedContractsV2QueryVariables>;
|
|
1334
1291
|
export declare const BoostProxyDataDocument: DocumentNode<BoostProxyDataQuery, BoostProxyDataQueryVariables>;
|
|
1335
1292
|
export declare const BoostProxyUsersDocument: DocumentNode<BoostProxyUsersQuery, BoostProxyUsersQueryVariables>;
|
|
@@ -1358,7 +1315,6 @@ export declare const MyInvestedDocument: DocumentNode<MyInvestedQuery, MyInveste
|
|
|
1358
1315
|
export declare const KycDocument: DocumentNode<KycQuery, KycQueryVariables>;
|
|
1359
1316
|
export declare const MyRolesDocument: DocumentNode<MyRolesQuery, MyRolesQueryVariables>;
|
|
1360
1317
|
export declare const PoolxPriceDocument: DocumentNode<PoolxPriceQuery, PoolxPriceQueryVariables>;
|
|
1361
|
-
export declare const GetPoolxTokenomicsDocument: DocumentNode<GetPoolxTokenomicsQuery, GetPoolxTokenomicsQueryVariables>;
|
|
1362
1318
|
export declare const PoolxTokenomicsV2_SimpleDocument: DocumentNode<PoolxTokenomicsV2_SimpleQuery, PoolxTokenomicsV2_SimpleQueryVariables>;
|
|
1363
1319
|
export declare const PoolxTokenomicsV2_FullDocument: DocumentNode<PoolxTokenomicsV2_FullQuery, PoolxTokenomicsV2_FullQueryVariables>;
|
|
1364
1320
|
export declare const ProjectIdToPoolzBackIdDocument: DocumentNode<ProjectIdToPoolzBackIdQuery, ProjectIdToPoolzBackIdQueryVariables>;
|
|
@@ -1366,4 +1322,4 @@ export declare const MySignUpV3Document: DocumentNode<MySignUpV3Query, MySignUpV
|
|
|
1366
1322
|
export declare const AdminSignUpV3Document: DocumentNode<AdminSignUpV3Query, AdminSignUpV3QueryVariables>;
|
|
1367
1323
|
export declare const ProjectSignUpV3Document: DocumentNode<ProjectSignUpV3Mutation, ProjectSignUpV3MutationVariables>;
|
|
1368
1324
|
export declare const TokenInfoDocument: DocumentNode<TokenInfoQuery, TokenInfoQueryVariables>;
|
|
1369
|
-
export declare const
|
|
1325
|
+
export declare const VaultsV2Document: DocumentNode<VaultsV2Query, VaultsV2QueryVariables>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poolzfinance/api4",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.5",
|
|
4
4
|
"description": "Bridge between front and back",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"react": "^18.3.1"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
|
-
"
|
|
65
|
-
"build": "pnpm prebuild && microbundle --jsx React.createElement",
|
|
64
|
+
"build": "npm run compile && microbundle --jsx React.createElement",
|
|
66
65
|
"clean": "rm -rf dist",
|
|
67
66
|
"compile": "rimraf src/types/graphql && graphql-codegen",
|
|
68
|
-
"test": "jest --coverage"
|
|
67
|
+
"test": "npm run compile && jest --coverage",
|
|
68
|
+
"test:only": "jest --coverage"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
type ChainIdType = number | null | undefined;
|
|
2
|
-
export declare const useVaultsV2: (chainId: ChainIdType) => import("@apollo/client").QueryResult<any, import("@apollo/client").OperationVariables>;
|
|
3
|
-
export declare const useLazyGetVaultsV2: () => import("@apollo/client").LazyQueryResultTuple<any, import("@apollo/client").OperationVariables>;
|
|
4
|
-
export {};
|