@poolzfinance/api4 1.14.4 → 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.
@@ -16,6 +16,7 @@ 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
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;
21
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;
@@ -45,7 +46,6 @@ type Documents = {
45
46
  "\n query KYC {\n myProxyKYC {\n Proxy\n RequestStatus\n Status\n }\n}": typeof types.KycDocument;
46
47
  "\n query MyRoles {\n myRoles\n }": typeof types.MyRolesDocument;
47
48
  "\n query PoolxPrice {\n poolxPrice {\n Price\n Timestamp\n }\n }": typeof types.PoolxPriceDocument;
48
- "\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;
49
49
  "\n query PoolxTokenomicsV2_Simple {\n poolxTokenomicsV2 {\n CirculatingSupply\n Locked\n }\n }\n": typeof types.PoolxTokenomicsV2_SimpleDocument;
50
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;
51
51
  "\n query ProjectIdToPoolzBackId($projectId: String!) {\n projectIdToPoolzBackId(projectId: $projectId)\n }\n": typeof types.ProjectIdToPoolzBackIdDocument;
@@ -85,6 +85,10 @@ export declare function gql(source: "\n query AdminListOfPoolzBackId($projectID
85
85
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
86
86
  */
87
87
  export declare function gql(source: "\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 documents)["\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}"];
88
+ /**
89
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
90
+ */
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"];
88
92
  /**
89
93
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
90
94
  */
@@ -201,10 +205,6 @@ export declare function gql(source: "\n query MyRoles {\n myRoles\n }"): (t
201
205
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
202
206
  */
203
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 }"];
204
- /**
205
- * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
206
- */
207
- 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"];
208
208
  /**
209
209
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
210
210
  */
@@ -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
  };
@@ -375,32 +389,6 @@ export type PoolxPrice = {
375
389
  Price: Scalars['Float']['output'];
376
390
  Timestamp: Scalars['Int']['output'];
377
391
  };
378
- export type PoolxTokenomics = {
379
- __typename?: 'PoolxTokenomics';
380
- CirculatingSupply: Scalars['Float']['output'];
381
- Data: PoolxTokenomicsData;
382
- Locked: Scalars['Float']['output'];
383
- Trade: PoolxTokenomicsTrade;
384
- };
385
- export type PoolxTokenomicsData = {
386
- __typename?: 'PoolxTokenomicsData';
387
- BuyBack: Scalars['Float']['output'];
388
- DelayVault: Scalars['Float']['output'];
389
- DelayVaultV2: Scalars['Float']['output'];
390
- LockedDealV2: Scalars['Float']['output'];
391
- Reserved: Scalars['Float']['output'];
392
- TotalSupply: Scalars['Float']['output'];
393
- };
394
- export type PoolxTokenomicsTrade = {
395
- __typename?: 'PoolxTokenomicsTrade';
396
- GateIO: Scalars['Float']['output'];
397
- Huobi: Scalars['Float']['output'];
398
- Mexc: Scalars['Float']['output'];
399
- PancakeSwapV2: Scalars['Float']['output'];
400
- PancakeSwapV3: Scalars['Float']['output'];
401
- PancakeSwapV3_01: Scalars['Float']['output'];
402
- Sum: Scalars['Float']['output'];
403
- };
404
392
  export type PoolxTokenomicsV2 = {
405
393
  __typename?: 'PoolxTokenomicsV2';
406
394
  CirculatingSupply: Scalars['Float']['output'];
@@ -434,6 +422,7 @@ export type Query = {
434
422
  adminReadAssets: ReadAssetsResponse;
435
423
  adminRpcWallets: Array<RpcWallet>;
436
424
  adminSignUpV3: Array<AdminSignUpV3>;
425
+ adminUsersInvest: Array<AdminUsersInvest>;
437
426
  adminUsersTotalSpents: Array<AdminUsersTotalSpents>;
438
427
  /** @deprecated Use new `approvedContractsV2` endpoint. */
439
428
  approvedContracts: Array<ApprovedContracts>;
@@ -457,8 +446,6 @@ export type Query = {
457
446
  mySignUpV3: Array<MySignUpV3>;
458
447
  myUpcomingAllocation: Array<MyUpcomingAllocation>;
459
448
  poolxPrice: PoolxPrice;
460
- /** @deprecated Use new `poolxTokenomicsV2` endpoint. */
461
- poolxTokenomics: PoolxTokenomics;
462
449
  poolxTokenomicsV2: PoolxTokenomicsV2;
463
450
  projectIdToPoolzBackId: Scalars['Int']['output'];
464
451
  retrieveSignature: RetrieveSignatureResponse;
@@ -494,6 +481,11 @@ export type QueryAdminSignUpV3Args = {
494
481
  minPoolxAmount: Scalars['Int']['input'];
495
482
  projectId: Scalars['String']['input'];
496
483
  };
484
+ export type QueryAdminUsersInvestArgs = {
485
+ first: Scalars['Int']['input'];
486
+ poolId: Scalars['Int']['input'];
487
+ skip: Scalars['Int']['input'];
488
+ };
497
489
  export type QueryApprovedContractsArgs = {
498
490
  onlyApproved: Scalars['Boolean']['input'];
499
491
  };
@@ -759,6 +751,19 @@ export type AdminReadAssetsQuery = {
759
751
  }>;
760
752
  };
761
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
+ };
762
767
  export type AdminWriteAllocationMutationVariables = Exact<{
763
768
  input: AdminWriteAllocation;
764
769
  }>;
@@ -1168,35 +1173,6 @@ export type PoolxPriceQuery = {
1168
1173
  Timestamp: number;
1169
1174
  };
1170
1175
  };
1171
- export type GetPoolxTokenomicsQueryVariables = Exact<{
1172
- [key: string]: never;
1173
- }>;
1174
- export type GetPoolxTokenomicsQuery = {
1175
- __typename?: 'Query';
1176
- poolxTokenomics: {
1177
- __typename?: 'PoolxTokenomics';
1178
- CirculatingSupply: number;
1179
- Locked: number;
1180
- Data: {
1181
- __typename?: 'PoolxTokenomicsData';
1182
- TotalSupply: number;
1183
- BuyBack: number;
1184
- LockedDealV2: number;
1185
- DelayVault: number;
1186
- DelayVaultV2: number;
1187
- Reserved: number;
1188
- };
1189
- Trade: {
1190
- __typename?: 'PoolxTokenomicsTrade';
1191
- Sum: number;
1192
- Huobi: number;
1193
- GateIO: number;
1194
- PancakeSwapV3_01: number;
1195
- PancakeSwapV3: number;
1196
- Mexc: number;
1197
- };
1198
- };
1199
- };
1200
1176
  export type PoolxTokenomicsV2_SimpleQueryVariables = Exact<{
1201
1177
  [key: string]: never;
1202
1178
  }>;
@@ -1309,6 +1285,7 @@ export declare const AdminCreatePoolzBackIdDocument: DocumentNode<AdminCreatePoo
1309
1285
  export declare const AdminGetAllocationDocument: DocumentNode<AdminGetAllocationQuery, AdminGetAllocationQueryVariables>;
1310
1286
  export declare const AdminListOfPoolzBackIdDocument: DocumentNode<AdminListOfPoolzBackIdQuery, AdminListOfPoolzBackIdQueryVariables>;
1311
1287
  export declare const AdminReadAssetsDocument: DocumentNode<AdminReadAssetsQuery, AdminReadAssetsQueryVariables>;
1288
+ export declare const AdminUsersInvestDocument: DocumentNode<AdminUsersInvestQuery, AdminUsersInvestQueryVariables>;
1312
1289
  export declare const AdminWriteAllocationDocument: DocumentNode<AdminWriteAllocationMutation, AdminWriteAllocationMutationVariables>;
1313
1290
  export declare const GetApprovedContractsV2Document: DocumentNode<GetApprovedContractsV2Query, GetApprovedContractsV2QueryVariables>;
1314
1291
  export declare const BoostProxyDataDocument: DocumentNode<BoostProxyDataQuery, BoostProxyDataQueryVariables>;
@@ -1338,7 +1315,6 @@ export declare const MyInvestedDocument: DocumentNode<MyInvestedQuery, MyInveste
1338
1315
  export declare const KycDocument: DocumentNode<KycQuery, KycQueryVariables>;
1339
1316
  export declare const MyRolesDocument: DocumentNode<MyRolesQuery, MyRolesQueryVariables>;
1340
1317
  export declare const PoolxPriceDocument: DocumentNode<PoolxPriceQuery, PoolxPriceQueryVariables>;
1341
- export declare const GetPoolxTokenomicsDocument: DocumentNode<GetPoolxTokenomicsQuery, GetPoolxTokenomicsQueryVariables>;
1342
1318
  export declare const PoolxTokenomicsV2_SimpleDocument: DocumentNode<PoolxTokenomicsV2_SimpleQuery, PoolxTokenomicsV2_SimpleQueryVariables>;
1343
1319
  export declare const PoolxTokenomicsV2_FullDocument: DocumentNode<PoolxTokenomicsV2_FullQuery, PoolxTokenomicsV2_FullQueryVariables>;
1344
1320
  export declare const ProjectIdToPoolzBackIdDocument: DocumentNode<ProjectIdToPoolzBackIdQuery, ProjectIdToPoolzBackIdQueryVariables>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolzfinance/api4",
3
- "version": "1.14.4",
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
- "prebuild": "pnpm clean",
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,3 +0,0 @@
1
- export declare const usePoolxTokenomics: () => import("@apollo/client").QueryResult<import("../types/graphql/graphql").GetPoolxTokenomicsQuery, import("../types/graphql/graphql").Exact<{
2
- [key: string]: never;
3
- }>>;