@poolzfinance/api4 1.14.2 → 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/vaults.d.ts +3 -13
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -2
- 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 +2 -7
- package/dist/types/graphql/graphql.d.ts +19 -39
- package/package.json +1 -1
- package/dist/endpoints/vaultsV2.d.ts +0 -4
|
@@ -17,7 +17,6 @@ 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 GetApprovedContracts($onlyApproved: Boolean!) {\n approvedContracts(onlyApproved: $onlyApproved) {\n ContractAddress\n Status\n }\n }": typeof types.GetApprovedContractsDocument;
|
|
21
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;
|
|
22
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;
|
|
23
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;
|
|
@@ -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
|
/**
|
|
@@ -90,10 +89,6 @@ export declare function gql(source: "\n query AdminReadAssets($request: [ReadAs
|
|
|
90
89
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
91
90
|
*/
|
|
92
91
|
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"];
|
|
93
|
-
/**
|
|
94
|
-
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
95
|
-
*/
|
|
96
|
-
export declare function gql(source: "\n query GetApprovedContracts($onlyApproved: Boolean!) {\n approvedContracts(onlyApproved: $onlyApproved) {\n ContractAddress\n Status\n }\n }"): (typeof documents)["\n query GetApprovedContracts($onlyApproved: Boolean!) {\n approvedContracts(onlyApproved: $onlyApproved) {\n ContractAddress\n Status\n }\n }"];
|
|
97
92
|
/**
|
|
98
93
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
99
94
|
*/
|
|
@@ -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 {};
|
|
@@ -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,17 +766,6 @@ export type AdminWriteAllocationMutation = {
|
|
|
764
766
|
__typename?: 'Mutation';
|
|
765
767
|
adminWriteAllocation: number;
|
|
766
768
|
};
|
|
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
769
|
export type GetApprovedContractsV2QueryVariables = Exact<{
|
|
779
770
|
chainId: Scalars['Int']['input'];
|
|
780
771
|
onlyApproved: Scalars['Boolean']['input'];
|
|
@@ -1297,31 +1288,21 @@ export type TokenInfoQuery = {
|
|
|
1297
1288
|
TotalSupply: number;
|
|
1298
1289
|
} | null;
|
|
1299
1290
|
};
|
|
1300
|
-
export type
|
|
1301
|
-
chainId
|
|
1302
|
-
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
1303
|
-
fetchBalance?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1291
|
+
export type VaultsV2QueryVariables = Exact<{
|
|
1292
|
+
chainId: Scalars['Int']['input'];
|
|
1304
1293
|
}>;
|
|
1305
|
-
export type
|
|
1294
|
+
export type VaultsV2Query = {
|
|
1306
1295
|
__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
|
-
}>;
|
|
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;
|
|
1325
1306
|
}>;
|
|
1326
1307
|
};
|
|
1327
1308
|
export declare const AdminCreatePoolzBackIdDocument: DocumentNode<AdminCreatePoolzBackIdMutation, AdminCreatePoolzBackIdMutationVariables>;
|
|
@@ -1329,7 +1310,6 @@ export declare const AdminGetAllocationDocument: DocumentNode<AdminGetAllocation
|
|
|
1329
1310
|
export declare const AdminListOfPoolzBackIdDocument: DocumentNode<AdminListOfPoolzBackIdQuery, AdminListOfPoolzBackIdQueryVariables>;
|
|
1330
1311
|
export declare const AdminReadAssetsDocument: DocumentNode<AdminReadAssetsQuery, AdminReadAssetsQueryVariables>;
|
|
1331
1312
|
export declare const AdminWriteAllocationDocument: DocumentNode<AdminWriteAllocationMutation, AdminWriteAllocationMutationVariables>;
|
|
1332
|
-
export declare const GetApprovedContractsDocument: DocumentNode<GetApprovedContractsQuery, GetApprovedContractsQueryVariables>;
|
|
1333
1313
|
export declare const GetApprovedContractsV2Document: DocumentNode<GetApprovedContractsV2Query, GetApprovedContractsV2QueryVariables>;
|
|
1334
1314
|
export declare const BoostProxyDataDocument: DocumentNode<BoostProxyDataQuery, BoostProxyDataQueryVariables>;
|
|
1335
1315
|
export declare const BoostProxyUsersDocument: DocumentNode<BoostProxyUsersQuery, BoostProxyUsersQueryVariables>;
|
|
@@ -1366,4 +1346,4 @@ export declare const MySignUpV3Document: DocumentNode<MySignUpV3Query, MySignUpV
|
|
|
1366
1346
|
export declare const AdminSignUpV3Document: DocumentNode<AdminSignUpV3Query, AdminSignUpV3QueryVariables>;
|
|
1367
1347
|
export declare const ProjectSignUpV3Document: DocumentNode<ProjectSignUpV3Mutation, ProjectSignUpV3MutationVariables>;
|
|
1368
1348
|
export declare const TokenInfoDocument: DocumentNode<TokenInfoQuery, TokenInfoQueryVariables>;
|
|
1369
|
-
export declare const
|
|
1349
|
+
export declare const VaultsV2Document: DocumentNode<VaultsV2Query, VaultsV2QueryVariables>;
|
package/package.json
CHANGED
|
@@ -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 {};
|