@poolzfinance/api4 1.14.4 → 1.15.6

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;
@@ -27,6 +28,7 @@ type Documents = {
27
28
  "\n mutation GenerateSignature($request: GenerateSignatureRequest!) {\n generateSignature(request: $request) {\n ValidFrom\n CurrentTime\n }\n}": typeof types.GenerateSignatureDocument;
28
29
  "\n query MyQuery {\n time\n}": typeof types.MyQueryDocument;
29
30
  "\nmutation GenerateTokenFromSignature($eip4361message: String!, $signature: String!) {\n generateTokenFromSignature(eip4361message: $eip4361message, signature: $signature){\n token\n validUntil\n }\n}": typeof types.GenerateTokenFromSignatureDocument;
31
+ "\n query GetTokenBalances($userAddress: String!, $chainId: Int!, $limit: Int) {\n getTokenBalances(userAddress: $userAddress, chainId: $chainId, limit: $limit) {\n pagination {\n current_page\n next_page\n total_pages\n }\n data {\n contract\n value\n name\n symbol\n }\n }\n }\n": typeof types.GetTokenBalancesDocument;
30
32
  "\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;
31
33
  "\n query getLeaderboardByAddress($address: String) {\n leaderBoard(address: $address) {\n Amount\n Owner\n Rank\n }\n}": typeof types.GetLeaderboardByAddressDocument;
32
34
  "\n query getLeaderboard {\n leaderBoard {\n Rank\n Owner\n Amount\n }\n}": typeof types.GetLeaderboardDocument;
@@ -41,11 +43,9 @@ type Documents = {
41
43
  "\n mutation DeleteNonEvmWallet($chainName: String!) {\n deleteNonEvmWallet(chainName: $chainName) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n }\n}": typeof types.DeleteNonEvmWalletDocument;
42
44
  "\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;
43
45
  "\n query MyInvest {\n myInvest {\n ProjectId\n PoolId\n ChainId\n Token\n Amount\n TokenName\n TokenSymbol\n }\n }\n": typeof types.MyInvestDocument;
44
- "\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;
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
  */
@@ -129,6 +133,10 @@ export declare function gql(source: "\n query MyQuery {\n time\n}"): (typeof
129
133
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
130
134
  */
131
135
  export declare function gql(source: "\nmutation GenerateTokenFromSignature($eip4361message: String!, $signature: String!) {\n generateTokenFromSignature(eip4361message: $eip4361message, signature: $signature){\n token\n validUntil\n }\n}"): (typeof documents)["\nmutation GenerateTokenFromSignature($eip4361message: String!, $signature: String!) {\n generateTokenFromSignature(eip4361message: $eip4361message, signature: $signature){\n token\n validUntil\n }\n}"];
136
+ /**
137
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
138
+ */
139
+ export declare function gql(source: "\n query GetTokenBalances($userAddress: String!, $chainId: Int!, $limit: Int) {\n getTokenBalances(userAddress: $userAddress, chainId: $chainId, limit: $limit) {\n pagination {\n current_page\n next_page\n total_pages\n }\n data {\n contract\n value\n name\n symbol\n }\n }\n }\n"): (typeof documents)["\n query GetTokenBalances($userAddress: String!, $chainId: Int!, $limit: Int) {\n getTokenBalances(userAddress: $userAddress, chainId: $chainId, limit: $limit) {\n pagination {\n current_page\n next_page\n total_pages\n }\n data {\n contract\n value\n name\n symbol\n }\n }\n }\n"];
132
140
  /**
133
141
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
134
142
  */
@@ -185,10 +193,6 @@ export declare function gql(source: "\n mutation UpdateNonEvmWallet($chainName:
185
193
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
186
194
  */
187
195
  export declare function gql(source: "\n query MyInvest {\n myInvest {\n ProjectId\n PoolId\n ChainId\n Token\n Amount\n TokenName\n TokenSymbol\n }\n }\n"): (typeof documents)["\n query MyInvest {\n myInvest {\n ProjectId\n PoolId\n ChainId\n Token\n Amount\n TokenName\n TokenSymbol\n }\n }\n"];
188
- /**
189
- * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
190
- */
191
- export declare function gql(source: "\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 documents)["\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}"];
192
196
  /**
193
197
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
194
198
  */
@@ -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
  */
@@ -42,6 +42,11 @@ export type Scalars = {
42
42
  input: number;
43
43
  output: number;
44
44
  };
45
+ /** The `AWSDateTime` scalar type provided by AWS AppSync, represents a valid ***extended*** [ISO 8601 DateTime](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) string. In other words, this scalar type accepts datetime strings of the form `YYYY-MM-DDThh:mm:ss.SSSZ`. The scalar can also accept "negative years" of the form `-YYYY` which correspond to years before `0000`. For example, "**-2017-01-01T00:00Z**" and "**-9999-01-01T00:00Z**" are both valid datetime strings. The field after the two digit seconds field is a nanoseconds field. It can accept between 1 and 9 digits. So, for example, "**1970-01-01T12:00:00.2Z**", "**1970-01-01T12:00:00.277Z**" and "**1970-01-01T12:00:00.123456789Z**" are all valid datetime strings. The seconds and nanoseconds fields are optional (the seconds field must be specified if the nanoseconds field is to be used). The [time zone offset](https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators) is compulsory for this scalar. The time zone offset must either be `Z` (representing the UTC time zone) or be in the format `±hh:mm:ss`. The seconds field in the timezone offset will be considered valid even though it is not part of the ISO 8601 standard. */
46
+ AWSDateTime: {
47
+ input: any;
48
+ output: any;
49
+ };
45
50
  /** Long type */
46
51
  Long: {
47
52
  input: any;
@@ -80,6 +85,11 @@ export type AdminSignUpV3 = {
80
85
  Address: Scalars['String']['output'];
81
86
  Amount: Scalars['Float']['output'];
82
87
  };
88
+ export type AdminUsersInvest = {
89
+ __typename?: 'AdminUsersInvest';
90
+ UserAddress: Scalars['String']['output'];
91
+ WeiAmount: Scalars['String']['output'];
92
+ };
83
93
  export type AdminUsersTotalSpents = {
84
94
  __typename?: 'AdminUsersTotalSpents';
85
95
  User: Scalars['String']['output'];
@@ -94,12 +104,6 @@ export type AdminWriteAllocation_UserData = {
94
104
  Amount: Scalars['Float']['input'];
95
105
  UserAddress: Scalars['String']['input'];
96
106
  };
97
- export type ApprovedContracts = {
98
- __typename?: 'ApprovedContracts';
99
- ChainId: Scalars['Int']['output'];
100
- ContractAddress: Scalars['String']['output'];
101
- Status: Scalars['Boolean']['output'];
102
- };
103
107
  export type ApprovedContractsV2 = {
104
108
  __typename?: 'ApprovedContractsV2';
105
109
  BlockNumber: Scalars['Int']['output'];
@@ -108,6 +112,19 @@ export type ApprovedContractsV2 = {
108
112
  Status: Scalars['Boolean']['output'];
109
113
  TransactionHash: Scalars['String']['output'];
110
114
  };
115
+ /** --- your types --- */
116
+ export type BalanceResult = {
117
+ __typename?: 'BalanceResult';
118
+ amount: Scalars['String']['output'];
119
+ block_num: Scalars['Int']['output'];
120
+ contract: Scalars['String']['output'];
121
+ decimals: Scalars['Int']['output'];
122
+ last_balance_update: Scalars['AWSDateTime']['output'];
123
+ name: Scalars['String']['output'];
124
+ network_id: Scalars['String']['output'];
125
+ symbol: Scalars['String']['output'];
126
+ value: Scalars['Float']['output'];
127
+ };
111
128
  export type BoostProxy = {
112
129
  __typename?: 'BoostProxy';
113
130
  Actions: Scalars['Int']['output'];
@@ -203,6 +220,11 @@ export type GenerateTokenFromSignature = {
203
220
  token: Scalars['String']['output'];
204
221
  validUntil: Scalars['Int']['output'];
205
222
  };
223
+ export type GetOrAddTokenInfo = {
224
+ ChainId: Scalars['Int']['input'];
225
+ Tokens: Array<Scalars['String']['input']>;
226
+ UpdateTotalSupply: Scalars['Boolean']['input'];
227
+ };
206
228
  export type KycProxy = {
207
229
  __typename?: 'KycProxy';
208
230
  Proxy?: Maybe<Scalars['String']['output']>;
@@ -227,6 +249,7 @@ export type Mutation = {
227
249
  deleteNonEvmWallet: UserData;
228
250
  generateSignature: GenerateSignatureResponse;
229
251
  generateTokenFromSignature: GenerateTokenFromSignature;
252
+ getOrAddTokenInfo: Array<TokenInfo>;
230
253
  logout: Scalars['Boolean']['output'];
231
254
  projectSignUpV3: ProjectSignUpV3;
232
255
  sendToMonitor: Scalars['Int']['output'];
@@ -268,6 +291,9 @@ export type MutationGenerateTokenFromSignatureArgs = {
268
291
  eip4361message: Scalars['String']['input'];
269
292
  signature: Scalars['String']['input'];
270
293
  };
294
+ export type MutationGetOrAddTokenInfoArgs = {
295
+ input: Array<InputMaybe<GetOrAddTokenInfo>>;
296
+ };
271
297
  export type MutationProjectSignUpV3Args = {
272
298
  projectId: Scalars['String']['input'];
273
299
  };
@@ -330,29 +356,28 @@ export type MyInvest = {
330
356
  __typename?: 'MyInvest';
331
357
  Amount: Scalars['Float']['output'];
332
358
  ChainId: Scalars['Int']['output'];
359
+ ChainLogo: MyInvest_Logo;
333
360
  FinishTime: Scalars['Int']['output'];
361
+ OriginalLogo: MyInvest_Logo;
334
362
  PoolId: Scalars['Int']['output'];
335
363
  ProjectId: Scalars['String']['output'];
364
+ StartTime: Scalars['Int']['output'];
336
365
  Token: Scalars['String']['output'];
337
366
  TokenName: Scalars['String']['output'];
367
+ TokenObject: MyInvest_Token;
338
368
  TokenSymbol: Scalars['String']['output'];
339
369
  };
340
- export type MyInvestmentsEth = {
341
- __typename?: 'MyInvestmentsETH';
342
- Amount: Scalars['Float']['output'];
343
- BlockSignedAt: Scalars['Int']['output'];
344
- ChainId: Scalars['Int']['output'];
345
- Id: Scalars['Int']['output'];
346
- TxHash: Scalars['String']['output'];
370
+ export type MyInvest_Logo = {
371
+ __typename?: 'MyInvest_Logo';
372
+ Color?: Maybe<Scalars['String']['output']>;
373
+ DisplayText: Scalars['String']['output'];
374
+ Url: Scalars['String']['output'];
347
375
  };
348
- export type MyInvestmentsErc20 = {
349
- __typename?: 'MyInvestmentsErc20';
350
- Amount: Scalars['Float']['output'];
351
- BlockSignedAt: Scalars['Int']['output'];
352
- ChainId: Scalars['Int']['output'];
353
- Id: Scalars['Int']['output'];
354
- Token: Scalars['String']['output'];
355
- TxHash: Scalars['String']['output'];
376
+ export type MyInvest_Token = {
377
+ __typename?: 'MyInvest_Token';
378
+ Address: Scalars['String']['output'];
379
+ Name: Scalars['String']['output'];
380
+ Symbol: Scalars['String']['output'];
356
381
  };
357
382
  export type MySignUpV3 = {
358
383
  __typename?: 'MySignUpV3';
@@ -370,37 +395,18 @@ export type NonEvmWallet = {
370
395
  ChainName: Scalars['String']['output'];
371
396
  Wallet: Scalars['String']['output'];
372
397
  };
398
+ export type Pagination = {
399
+ __typename?: 'Pagination';
400
+ current_page: Scalars['Int']['output'];
401
+ next_page?: Maybe<Scalars['Int']['output']>;
402
+ previous_page: Scalars['Int']['output'];
403
+ total_pages: Scalars['Int']['output'];
404
+ };
373
405
  export type PoolxPrice = {
374
406
  __typename?: 'PoolxPrice';
375
407
  Price: Scalars['Float']['output'];
376
408
  Timestamp: Scalars['Int']['output'];
377
409
  };
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
410
  export type PoolxTokenomicsV2 = {
405
411
  __typename?: 'PoolxTokenomicsV2';
406
412
  CirculatingSupply: Scalars['Float']['output'];
@@ -425,6 +431,7 @@ export type PutMyDataNonEvmWallet = {
425
431
  ChainName: Scalars['String']['input'];
426
432
  NonEvmWallet: Scalars['String']['input'];
427
433
  };
434
+ /** --- your entry point --- */
428
435
  export type Query = {
429
436
  __typename?: 'Query';
430
437
  adminGetAllocation: Array<AdminGetAllocation>;
@@ -434,132 +441,140 @@ export type Query = {
434
441
  adminReadAssets: ReadAssetsResponse;
435
442
  adminRpcWallets: Array<RpcWallet>;
436
443
  adminSignUpV3: Array<AdminSignUpV3>;
444
+ adminUsersInvest: Array<AdminUsersInvest>;
437
445
  adminUsersTotalSpents: Array<AdminUsersTotalSpents>;
438
- /** @deprecated Use new `approvedContractsV2` endpoint. */
439
- approvedContracts: Array<ApprovedContracts>;
440
446
  approvedContractsV2: Array<ApprovedContractsV2>;
441
447
  boostProxy: Array<BoostProxy>;
442
448
  /** Will be updated in new endoint. */
443
449
  daoSenderHistory: DaoSenderHistoryPage;
444
450
  generateMyInvestSignature: GenerateMyInvestSignature;
451
+ getTokenBalances?: Maybe<TokenBalances>;
445
452
  leaderBoard: Array<LeaderBoard>;
446
453
  myAllocation: MyAllocation;
447
454
  myAssets: MyAssetsResponse;
448
455
  myData?: Maybe<MyData>;
449
456
  /** Returns archived and new investments data */
450
457
  myInvest: Array<MyInvest>;
451
- /** @deprecated Use new `myInvest` endpoint */
452
- myInvestmentsETH: Array<MyInvestmentsEth>;
453
- /** @deprecated Use new `myInvest` endpoint */
454
- myInvestmentsErc20: Array<MyInvestmentsErc20>;
455
458
  myProxyKYC: KycProxy;
456
459
  myRoles: Array<Scalars['String']['output']>;
457
460
  mySignUpV3: Array<MySignUpV3>;
458
461
  myUpcomingAllocation: Array<MyUpcomingAllocation>;
459
462
  poolxPrice: PoolxPrice;
460
- /** @deprecated Use new `poolxTokenomicsV2` endpoint. */
461
- poolxTokenomics: PoolxTokenomics;
462
463
  poolxTokenomicsV2: PoolxTokenomicsV2;
463
464
  projectIdToPoolzBackId: Scalars['Int']['output'];
464
465
  retrieveSignature: RetrieveSignatureResponse;
465
- /** @deprecated Will be removed */
466
- simpleUrlShortener?: Maybe<SimpleUrlShortener>;
467
466
  splitDataEncoder: Scalars['String']['output'];
468
467
  time: Scalars['Int']['output'];
469
468
  tokenInfo?: Maybe<TokenInfo>;
470
- /** @deprecated Use new `unlocksV2` endpoint. */
471
- unlocks: Array<Unlocks>;
472
469
  unlocksV2: Array<UnlocksV2>;
473
- /** @deprecated Use new `vaultsV2` endpoint. */
474
- vaults: Array<Vaults>;
475
470
  vaultsV2: Array<VaultsV2>;
476
471
  };
472
+ /** --- your entry point --- */
477
473
  export type QueryAdminGetAllocationArgs = {
478
474
  projectId: Scalars['String']['input'];
479
475
  };
476
+ /** --- your entry point --- */
480
477
  export type QueryAdminListOfPoolzBackIdArgs = {
481
478
  projectIDs: Array<Scalars['String']['input']>;
482
479
  };
480
+ /** --- your entry point --- */
483
481
  export type QueryAdminNonEvmInvestedArgs = {
484
482
  chainName: Scalars['String']['input'];
485
483
  poolId: Scalars['Long']['input'];
486
484
  };
485
+ /** --- your entry point --- */
487
486
  export type QueryAdminReadAssetsArgs = {
488
487
  request: Array<ReadAssetsRequest>;
489
488
  };
489
+ /** --- your entry point --- */
490
490
  export type QueryAdminRpcWalletsArgs = {
491
491
  IDs: Array<InputMaybe<Scalars['Int']['input']>>;
492
492
  };
493
+ /** --- your entry point --- */
493
494
  export type QueryAdminSignUpV3Args = {
494
495
  minPoolxAmount: Scalars['Int']['input'];
495
496
  projectId: Scalars['String']['input'];
496
497
  };
497
- export type QueryApprovedContractsArgs = {
498
- onlyApproved: Scalars['Boolean']['input'];
498
+ /** --- your entry point --- */
499
+ export type QueryAdminUsersInvestArgs = {
500
+ first: Scalars['Int']['input'];
501
+ poolId: Scalars['Int']['input'];
502
+ skip: Scalars['Int']['input'];
499
503
  };
504
+ /** --- your entry point --- */
500
505
  export type QueryApprovedContractsV2Args = {
501
506
  chainId: Scalars['Int']['input'];
502
507
  onlyApproved: Scalars['Boolean']['input'];
503
508
  };
509
+ /** --- your entry point --- */
504
510
  export type QueryBoostProxyArgs = {
505
511
  campaignCodes: Array<Scalars['String']['input']>;
506
512
  };
513
+ /** --- your entry point --- */
507
514
  export type QueryDaoSenderHistoryArgs = {
508
515
  limit?: InputMaybe<Scalars['Int']['input']>;
509
516
  page: Scalars['Int']['input'];
510
517
  };
518
+ /** --- your entry point --- */
511
519
  export type QueryGenerateMyInvestSignatureArgs = {
512
520
  projectId: Scalars['String']['input'];
513
521
  weiAmount: Scalars['String']['input'];
514
522
  };
523
+ /** --- your entry point --- */
524
+ export type QueryGetTokenBalancesArgs = {
525
+ chainId: Scalars['Int']['input'];
526
+ limit?: InputMaybe<Scalars['Int']['input']>;
527
+ page?: InputMaybe<Scalars['Int']['input']>;
528
+ userAddress: Scalars['String']['input'];
529
+ };
530
+ /** --- your entry point --- */
515
531
  export type QueryLeaderBoardArgs = {
516
532
  address?: InputMaybe<Scalars['String']['input']>;
517
533
  timestamp?: InputMaybe<Scalars['Int']['input']>;
518
534
  };
535
+ /** --- your entry point --- */
519
536
  export type QueryMyAllocationArgs = {
520
537
  projectId: Scalars['String']['input'];
521
538
  };
539
+ /** --- your entry point --- */
522
540
  export type QueryMyAssetsArgs = {
523
541
  limit: Scalars['Int']['input'];
524
542
  page: Scalars['Int']['input'];
525
543
  };
544
+ /** --- your entry point --- */
526
545
  export type QueryMyDataArgs = {
527
546
  chainNames?: InputMaybe<Array<Scalars['String']['input']>>;
528
547
  };
548
+ /** --- your entry point --- */
529
549
  export type QueryMySignUpV3Args = {
530
550
  projectIDs: Array<Scalars['String']['input']>;
531
551
  };
552
+ /** --- your entry point --- */
532
553
  export type QueryMyUpcomingAllocationArgs = {
533
554
  projectIDs: Array<Scalars['String']['input']>;
534
555
  };
556
+ /** --- your entry point --- */
535
557
  export type QueryProjectIdToPoolzBackIdArgs = {
536
558
  projectId: Scalars['String']['input'];
537
559
  };
560
+ /** --- your entry point --- */
538
561
  export type QueryRetrieveSignatureArgs = {
539
562
  request: RetrieveSignatureRequest;
540
563
  };
541
- export type QuerySimpleUrlShortenerArgs = {
542
- input: TxHashChainIdInput;
543
- };
564
+ /** --- your entry point --- */
544
565
  export type QuerySplitDataEncoderArgs = {
545
566
  address: Scalars['String']['input'];
546
567
  ratio: Scalars['Float']['input'];
547
568
  };
569
+ /** --- your entry point --- */
548
570
  export type QueryTokenInfoArgs = {
549
571
  hashKey: Scalars['String']['input'];
550
572
  };
551
- export type QueryUnlocksArgs = {
552
- address: Scalars['String']['input'];
553
- };
573
+ /** --- your entry point --- */
554
574
  export type QueryUnlocksV2Args = {
555
575
  chainId: Scalars['Int']['input'];
556
576
  };
557
- export type QueryVaultsArgs = {
558
- chainId?: InputMaybe<Scalars['Int']['input']>;
559
- fetchBalance?: InputMaybe<Scalars['Boolean']['input']>;
560
- tokenAddress?: InputMaybe<Scalars['String']['input']>;
561
- updateTotalSupply?: InputMaybe<Scalars['Boolean']['input']>;
562
- };
577
+ /** --- your entry point --- */
563
578
  export type QueryVaultsV2Args = {
564
579
  chainId: Scalars['Int']['input'];
565
580
  tokenAddress?: InputMaybe<Scalars['String']['input']>;
@@ -622,12 +637,21 @@ export type RpcWallet = {
622
637
  Id: Scalars['Int']['output'];
623
638
  Wallet: Scalars['String']['output'];
624
639
  };
625
- export type SimpleUrlShortener = {
626
- __typename?: 'SimpleUrlShortener';
627
- ContainerText: Scalars['String']['output'];
628
- ShortUrl: Scalars['String']['output'];
629
- UrlToScan: Scalars['String']['output'];
630
- XPostText: Scalars['String']['output'];
640
+ export type Statistics = {
641
+ __typename?: 'Statistics';
642
+ bytes_read: Scalars['Int']['output'];
643
+ elapsed: Scalars['Float']['output'];
644
+ rows_read: Scalars['Int']['output'];
645
+ };
646
+ export type TokenBalances = {
647
+ __typename?: 'TokenBalances';
648
+ data: Array<BalanceResult>;
649
+ duration_ms: Scalars['Int']['output'];
650
+ pagination: Pagination;
651
+ request_time: Scalars['AWSDateTime']['output'];
652
+ results: Scalars['Int']['output'];
653
+ statistics: Statistics;
654
+ total_results: Scalars['Int']['output'];
631
655
  };
632
656
  export type TokenInfo = {
633
657
  __typename?: 'TokenInfo';
@@ -642,11 +666,6 @@ export type TxHashChainIdInput = {
642
666
  ChainId: Scalars['Int']['input'];
643
667
  TxHash: Scalars['String']['input'];
644
668
  };
645
- export type Unlocks = {
646
- __typename?: 'Unlocks';
647
- Timespan: Scalars['Int']['output'];
648
- Total: Scalars['Float']['output'];
649
- };
650
669
  export type UnlocksV2 = {
651
670
  __typename?: 'UnlocksV2';
652
671
  CreatedAt: Scalars['Int']['output'];
@@ -661,28 +680,6 @@ export type UserData = {
661
680
  EvmWallet: Array<Scalars['String']['output']>;
662
681
  NonEvmWallet: Array<NonEvmWallet>;
663
682
  };
664
- export type Vaults = {
665
- __typename?: 'Vaults';
666
- ChainId: Scalars['Int']['output'];
667
- Data: Array<VaultsData>;
668
- };
669
- export type VaultsData = {
670
- __typename?: 'VaultsData';
671
- Balance?: Maybe<VaultsDataBalance>;
672
- TokenAddress: Scalars['String']['output'];
673
- TokenDecimals: Scalars['Int']['output'];
674
- TokenName: Scalars['String']['output'];
675
- TokenSymbol: Scalars['String']['output'];
676
- TotalSupply: Scalars['Float']['output'];
677
- VaultAddress: Scalars['String']['output'];
678
- VaultCreationTx: Scalars['String']['output'];
679
- VaultId: Scalars['Int']['output'];
680
- };
681
- export type VaultsDataBalance = {
682
- __typename?: 'VaultsDataBalance';
683
- BalanceOfToken: Scalars['Float']['output'];
684
- FetchTime: Scalars['Int']['output'];
685
- };
686
683
  export type VaultsV2 = {
687
684
  __typename?: 'VaultsV2';
688
685
  DepositStatus: Scalars['Boolean']['output'];
@@ -759,6 +756,19 @@ export type AdminReadAssetsQuery = {
759
756
  }>;
760
757
  };
761
758
  };
759
+ export type AdminUsersInvestQueryVariables = Exact<{
760
+ poolId: Scalars['Int']['input'];
761
+ first: Scalars['Int']['input'];
762
+ skip: Scalars['Int']['input'];
763
+ }>;
764
+ export type AdminUsersInvestQuery = {
765
+ __typename?: 'Query';
766
+ adminUsersInvest: Array<{
767
+ __typename?: 'AdminUsersInvest';
768
+ UserAddress: string;
769
+ WeiAmount: string;
770
+ }>;
771
+ };
762
772
  export type AdminWriteAllocationMutationVariables = Exact<{
763
773
  input: AdminWriteAllocation;
764
774
  }>;
@@ -939,6 +949,30 @@ export type GenerateTokenFromSignatureMutation = {
939
949
  validUntil: number;
940
950
  };
941
951
  };
952
+ export type GetTokenBalancesQueryVariables = Exact<{
953
+ userAddress: Scalars['String']['input'];
954
+ chainId: Scalars['Int']['input'];
955
+ limit?: InputMaybe<Scalars['Int']['input']>;
956
+ }>;
957
+ export type GetTokenBalancesQuery = {
958
+ __typename?: 'Query';
959
+ getTokenBalances?: {
960
+ __typename?: 'TokenBalances';
961
+ pagination: {
962
+ __typename?: 'Pagination';
963
+ current_page: number;
964
+ next_page?: number | null;
965
+ total_pages: number;
966
+ };
967
+ data: Array<{
968
+ __typename?: 'BalanceResult';
969
+ contract: string;
970
+ value: number;
971
+ name: string;
972
+ symbol: string;
973
+ }>;
974
+ } | null;
975
+ };
942
976
  export type GenerateMyInvestSignatureQueryVariables = Exact<{
943
977
  projectId: Scalars['String']['input'];
944
978
  weiAmount: Scalars['String']['input'];
@@ -1115,29 +1149,6 @@ export type MyInvestQuery = {
1115
1149
  TokenSymbol: string;
1116
1150
  }>;
1117
1151
  };
1118
- export type MyInvestedQueryVariables = Exact<{
1119
- [key: string]: never;
1120
- }>;
1121
- export type MyInvestedQuery = {
1122
- __typename?: 'Query';
1123
- myInvestmentsErc20: Array<{
1124
- __typename?: 'MyInvestmentsErc20';
1125
- ChainId: number;
1126
- TxHash: string;
1127
- BlockSignedAt: number;
1128
- Amount: number;
1129
- Token: string;
1130
- Id: number;
1131
- }>;
1132
- myInvestmentsETH: Array<{
1133
- __typename?: 'MyInvestmentsETH';
1134
- ChainId: number;
1135
- TxHash: string;
1136
- BlockSignedAt: number;
1137
- Amount: number;
1138
- Id: number;
1139
- }>;
1140
- };
1141
1152
  export type KycQueryVariables = Exact<{
1142
1153
  [key: string]: never;
1143
1154
  }>;
@@ -1168,35 +1179,6 @@ export type PoolxPriceQuery = {
1168
1179
  Timestamp: number;
1169
1180
  };
1170
1181
  };
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
1182
  export type PoolxTokenomicsV2_SimpleQueryVariables = Exact<{
1201
1183
  [key: string]: never;
1202
1184
  }>;
@@ -1309,6 +1291,7 @@ export declare const AdminCreatePoolzBackIdDocument: DocumentNode<AdminCreatePoo
1309
1291
  export declare const AdminGetAllocationDocument: DocumentNode<AdminGetAllocationQuery, AdminGetAllocationQueryVariables>;
1310
1292
  export declare const AdminListOfPoolzBackIdDocument: DocumentNode<AdminListOfPoolzBackIdQuery, AdminListOfPoolzBackIdQueryVariables>;
1311
1293
  export declare const AdminReadAssetsDocument: DocumentNode<AdminReadAssetsQuery, AdminReadAssetsQueryVariables>;
1294
+ export declare const AdminUsersInvestDocument: DocumentNode<AdminUsersInvestQuery, AdminUsersInvestQueryVariables>;
1312
1295
  export declare const AdminWriteAllocationDocument: DocumentNode<AdminWriteAllocationMutation, AdminWriteAllocationMutationVariables>;
1313
1296
  export declare const GetApprovedContractsV2Document: DocumentNode<GetApprovedContractsV2Query, GetApprovedContractsV2QueryVariables>;
1314
1297
  export declare const BoostProxyDataDocument: DocumentNode<BoostProxyDataQuery, BoostProxyDataQueryVariables>;
@@ -1320,6 +1303,7 @@ export declare const RetrieveSignatureDocument: DocumentNode<RetrieveSignatureQu
1320
1303
  export declare const GenerateSignatureDocument: DocumentNode<GenerateSignatureMutation, GenerateSignatureMutationVariables>;
1321
1304
  export declare const MyQueryDocument: DocumentNode<MyQueryQuery, MyQueryQueryVariables>;
1322
1305
  export declare const GenerateTokenFromSignatureDocument: DocumentNode<GenerateTokenFromSignatureMutation, GenerateTokenFromSignatureMutationVariables>;
1306
+ export declare const GetTokenBalancesDocument: DocumentNode<GetTokenBalancesQuery, GetTokenBalancesQueryVariables>;
1323
1307
  export declare const GenerateMyInvestSignatureDocument: DocumentNode<GenerateMyInvestSignatureQuery, GenerateMyInvestSignatureQueryVariables>;
1324
1308
  export declare const GetLeaderboardByAddressDocument: DocumentNode<GetLeaderboardByAddressQuery, GetLeaderboardByAddressQueryVariables>;
1325
1309
  export declare const GetLeaderboardDocument: DocumentNode<GetLeaderboardQuery, GetLeaderboardQueryVariables>;
@@ -1334,11 +1318,9 @@ export declare const AddNonEvmWalletDocument: DocumentNode<AddNonEvmWalletMutati
1334
1318
  export declare const DeleteNonEvmWalletDocument: DocumentNode<DeleteNonEvmWalletMutation, DeleteNonEvmWalletMutationVariables>;
1335
1319
  export declare const UpdateNonEvmWalletDocument: DocumentNode<UpdateNonEvmWalletMutation, UpdateNonEvmWalletMutationVariables>;
1336
1320
  export declare const MyInvestDocument: DocumentNode<MyInvestQuery, MyInvestQueryVariables>;
1337
- export declare const MyInvestedDocument: DocumentNode<MyInvestedQuery, MyInvestedQueryVariables>;
1338
1321
  export declare const KycDocument: DocumentNode<KycQuery, KycQueryVariables>;
1339
1322
  export declare const MyRolesDocument: DocumentNode<MyRolesQuery, MyRolesQueryVariables>;
1340
1323
  export declare const PoolxPriceDocument: DocumentNode<PoolxPriceQuery, PoolxPriceQueryVariables>;
1341
- export declare const GetPoolxTokenomicsDocument: DocumentNode<GetPoolxTokenomicsQuery, GetPoolxTokenomicsQueryVariables>;
1342
1324
  export declare const PoolxTokenomicsV2_SimpleDocument: DocumentNode<PoolxTokenomicsV2_SimpleQuery, PoolxTokenomicsV2_SimpleQueryVariables>;
1343
1325
  export declare const PoolxTokenomicsV2_FullDocument: DocumentNode<PoolxTokenomicsV2_FullQuery, PoolxTokenomicsV2_FullQueryVariables>;
1344
1326
  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.6",
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
  }