@poolzfinance/api4 1.14.0 → 1.14.4
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/approvedContracts.d.ts +2 -1
- package/dist/endpoints/vaults.d.ts +3 -13
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +14 -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 +4 -4
- package/dist/types/graphql/graphql.d.ts +28 -32
- package/package.json +3 -1
|
@@ -17,7 +17,7 @@ type Documents = {
|
|
|
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
19
|
"\n mutation AdminWriteAllocation($input: AdminWriteAllocation!) {\n adminWriteAllocation(input: $input)\n }\n": typeof types.AdminWriteAllocationDocument;
|
|
20
|
-
"\n query
|
|
20
|
+
"\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;
|
|
21
21
|
"\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;
|
|
22
22
|
"\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;
|
|
23
23
|
"\n query DaoSenderHistory($page: Int!) {\n daoSenderHistory(page: $page) {\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n }\n currentPage\n totalPages\n }\n }\n": typeof types.DaoSenderHistoryDocument;
|
|
@@ -53,7 +53,7 @@ type Documents = {
|
|
|
53
53
|
"\n query AdminSignUpV3($projectId: String!, $minPoolxAmount: Int!) {\n adminSignUpV3(projectId: $projectId, minPoolxAmount: $minPoolxAmount) {\n Address\n Amount\n }\n }\n": typeof types.AdminSignUpV3Document;
|
|
54
54
|
"\n mutation ProjectSignUpV3($projectId: String!) {\n projectSignUpV3(projectId: $projectId) {\n ProjectId\n UserAddress\n JoinedTime\n }\n }\n": typeof types.ProjectSignUpV3Document;
|
|
55
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;
|
|
56
|
-
"\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;
|
|
57
57
|
};
|
|
58
58
|
declare const documents: Documents;
|
|
59
59
|
/**
|
|
@@ -92,7 +92,7 @@ export declare function gql(source: "\n mutation AdminWriteAllocation($input: A
|
|
|
92
92
|
/**
|
|
93
93
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
94
94
|
*/
|
|
95
|
-
export declare function gql(source: "\n query
|
|
95
|
+
export declare function gql(source: "\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 documents)["\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 }"];
|
|
96
96
|
/**
|
|
97
97
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
98
98
|
*/
|
|
@@ -236,6 +236,6 @@ export declare function gql(source: "\n query TokenInfo($hashKey: String!) {\n
|
|
|
236
236
|
/**
|
|
237
237
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
238
238
|
*/
|
|
239
|
-
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"];
|
|
240
240
|
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
|
|
241
241
|
export {};
|
|
@@ -330,6 +330,7 @@ export type MyInvest = {
|
|
|
330
330
|
__typename?: 'MyInvest';
|
|
331
331
|
Amount: Scalars['Float']['output'];
|
|
332
332
|
ChainId: Scalars['Int']['output'];
|
|
333
|
+
FinishTime: Scalars['Int']['output'];
|
|
333
334
|
PoolId: Scalars['Int']['output'];
|
|
334
335
|
ProjectId: Scalars['String']['output'];
|
|
335
336
|
Token: Scalars['String']['output'];
|
|
@@ -434,7 +435,7 @@ export type Query = {
|
|
|
434
435
|
adminRpcWallets: Array<RpcWallet>;
|
|
435
436
|
adminSignUpV3: Array<AdminSignUpV3>;
|
|
436
437
|
adminUsersTotalSpents: Array<AdminUsersTotalSpents>;
|
|
437
|
-
/**
|
|
438
|
+
/** @deprecated Use new `approvedContractsV2` endpoint. */
|
|
438
439
|
approvedContracts: Array<ApprovedContracts>;
|
|
439
440
|
approvedContractsV2: Array<ApprovedContractsV2>;
|
|
440
441
|
boostProxy: Array<BoostProxy>;
|
|
@@ -466,10 +467,10 @@ export type Query = {
|
|
|
466
467
|
splitDataEncoder: Scalars['String']['output'];
|
|
467
468
|
time: Scalars['Int']['output'];
|
|
468
469
|
tokenInfo?: Maybe<TokenInfo>;
|
|
469
|
-
/** @deprecated
|
|
470
|
+
/** @deprecated Use new `unlocksV2` endpoint. */
|
|
470
471
|
unlocks: Array<Unlocks>;
|
|
471
472
|
unlocksV2: Array<UnlocksV2>;
|
|
472
|
-
/**
|
|
473
|
+
/** @deprecated Use new `vaultsV2` endpoint. */
|
|
473
474
|
vaults: Array<Vaults>;
|
|
474
475
|
vaultsV2: Array<VaultsV2>;
|
|
475
476
|
};
|
|
@@ -561,6 +562,7 @@ export type QueryVaultsArgs = {
|
|
|
561
562
|
};
|
|
562
563
|
export type QueryVaultsV2Args = {
|
|
563
564
|
chainId: Scalars['Int']['input'];
|
|
565
|
+
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
564
566
|
};
|
|
565
567
|
export type ReadAssetResponse_Asset = {
|
|
566
568
|
__typename?: 'ReadAssetResponse_Asset';
|
|
@@ -764,15 +766,19 @@ export type AdminWriteAllocationMutation = {
|
|
|
764
766
|
__typename?: 'Mutation';
|
|
765
767
|
adminWriteAllocation: number;
|
|
766
768
|
};
|
|
767
|
-
export type
|
|
769
|
+
export type GetApprovedContractsV2QueryVariables = Exact<{
|
|
770
|
+
chainId: Scalars['Int']['input'];
|
|
768
771
|
onlyApproved: Scalars['Boolean']['input'];
|
|
769
772
|
}>;
|
|
770
|
-
export type
|
|
773
|
+
export type GetApprovedContractsV2Query = {
|
|
771
774
|
__typename?: 'Query';
|
|
772
|
-
|
|
773
|
-
__typename?: '
|
|
775
|
+
approvedContractsV2: Array<{
|
|
776
|
+
__typename?: 'ApprovedContractsV2';
|
|
774
777
|
ContractAddress: string;
|
|
775
778
|
Status: boolean;
|
|
779
|
+
BlockNumber: number;
|
|
780
|
+
BlockTimestamp: number;
|
|
781
|
+
TransactionHash: string;
|
|
776
782
|
}>;
|
|
777
783
|
};
|
|
778
784
|
export type BoostProxyDataQueryVariables = Exact<{
|
|
@@ -1282,31 +1288,21 @@ export type TokenInfoQuery = {
|
|
|
1282
1288
|
TotalSupply: number;
|
|
1283
1289
|
} | null;
|
|
1284
1290
|
};
|
|
1285
|
-
export type
|
|
1286
|
-
chainId
|
|
1287
|
-
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1288
|
-
fetchBalance?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1291
|
+
export type VaultsV2QueryVariables = Exact<{
|
|
1292
|
+
chainId: Scalars['Int']['input'];
|
|
1289
1293
|
}>;
|
|
1290
|
-
export type
|
|
1294
|
+
export type VaultsV2Query = {
|
|
1291
1295
|
__typename?: 'Query';
|
|
1292
|
-
|
|
1293
|
-
__typename?: '
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
TokenSymbol: string;
|
|
1303
|
-
TokenDecimals: number;
|
|
1304
|
-
Balance?: {
|
|
1305
|
-
__typename?: 'VaultsDataBalance';
|
|
1306
|
-
BalanceOfToken: number;
|
|
1307
|
-
FetchTime: number;
|
|
1308
|
-
} | null;
|
|
1309
|
-
}>;
|
|
1296
|
+
vaultsV2: Array<{
|
|
1297
|
+
__typename?: 'VaultsV2';
|
|
1298
|
+
VaultId: number;
|
|
1299
|
+
VaultAddress: string;
|
|
1300
|
+
Token: string;
|
|
1301
|
+
WeiBalance: string;
|
|
1302
|
+
DepositStatus: boolean;
|
|
1303
|
+
WithdrawStatus: boolean;
|
|
1304
|
+
RoyaltyReceiver: string;
|
|
1305
|
+
RoyaltyFeeNumerator: number;
|
|
1310
1306
|
}>;
|
|
1311
1307
|
};
|
|
1312
1308
|
export declare const AdminCreatePoolzBackIdDocument: DocumentNode<AdminCreatePoolzBackIdMutation, AdminCreatePoolzBackIdMutationVariables>;
|
|
@@ -1314,7 +1310,7 @@ export declare const AdminGetAllocationDocument: DocumentNode<AdminGetAllocation
|
|
|
1314
1310
|
export declare const AdminListOfPoolzBackIdDocument: DocumentNode<AdminListOfPoolzBackIdQuery, AdminListOfPoolzBackIdQueryVariables>;
|
|
1315
1311
|
export declare const AdminReadAssetsDocument: DocumentNode<AdminReadAssetsQuery, AdminReadAssetsQueryVariables>;
|
|
1316
1312
|
export declare const AdminWriteAllocationDocument: DocumentNode<AdminWriteAllocationMutation, AdminWriteAllocationMutationVariables>;
|
|
1317
|
-
export declare const
|
|
1313
|
+
export declare const GetApprovedContractsV2Document: DocumentNode<GetApprovedContractsV2Query, GetApprovedContractsV2QueryVariables>;
|
|
1318
1314
|
export declare const BoostProxyDataDocument: DocumentNode<BoostProxyDataQuery, BoostProxyDataQueryVariables>;
|
|
1319
1315
|
export declare const BoostProxyUsersDocument: DocumentNode<BoostProxyUsersQuery, BoostProxyUsersQueryVariables>;
|
|
1320
1316
|
export declare const DaoSenderHistoryDocument: DocumentNode<DaoSenderHistoryQuery, DaoSenderHistoryQueryVariables>;
|
|
@@ -1350,4 +1346,4 @@ export declare const MySignUpV3Document: DocumentNode<MySignUpV3Query, MySignUpV
|
|
|
1350
1346
|
export declare const AdminSignUpV3Document: DocumentNode<AdminSignUpV3Query, AdminSignUpV3QueryVariables>;
|
|
1351
1347
|
export declare const ProjectSignUpV3Document: DocumentNode<ProjectSignUpV3Mutation, ProjectSignUpV3MutationVariables>;
|
|
1352
1348
|
export declare const TokenInfoDocument: DocumentNode<TokenInfoQuery, TokenInfoQueryVariables>;
|
|
1353
|
-
export declare const
|
|
1349
|
+
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.14.
|
|
3
|
+
"version": "1.14.4",
|
|
4
4
|
"description": "Bridge between front and back",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"@graphql-codegen/cli": "^5.0.7",
|
|
37
37
|
"@graphql-codegen/client-preset": "^4.8.2",
|
|
38
38
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
39
|
+
"@testing-library/dom": "^10.4.0",
|
|
39
40
|
"@testing-library/react": "^16.3.0",
|
|
40
41
|
"@testing-library/react-hooks": "^8.0.1",
|
|
41
42
|
"@types/crypto-js": "^4.2.2",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
57
|
"@apollo/client": "^3.13.8",
|
|
58
|
+
"@testing-library/dom": "^10.4.0",
|
|
57
59
|
"crypto-js": "^4.2.0",
|
|
58
60
|
"graphql": "^16.11.0",
|
|
59
61
|
"react": "^18.3.1"
|