@poolzfinance/api4 1.13.8 → 1.14.0

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.
@@ -40,12 +40,14 @@ type Documents = {
40
40
  "\n mutation AddNonEvmWallet($chainName: String!, $wallet: String!) {\n addNonEvmWallet(chainName: $chainName, wallet: $wallet) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n EvmWallet\n }\n}": typeof types.AddNonEvmWalletDocument;
41
41
  "\n mutation DeleteNonEvmWallet($chainName: String!) {\n deleteNonEvmWallet(chainName: $chainName) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n }\n}": typeof types.DeleteNonEvmWalletDocument;
42
42
  "\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
- "\n query MyInvest {\n myInvest {\n ProjectId\n PoolId\n ChainId\n Token\n Amount\n TokenName\n }\n }\n": typeof types.MyInvestDocument;
43
+ "\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
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
45
  "\n query KYC {\n myProxyKYC {\n Proxy\n RequestStatus\n Status\n }\n}": typeof types.KycDocument;
46
46
  "\n query MyRoles {\n myRoles\n }": typeof types.MyRolesDocument;
47
47
  "\n query PoolxPrice {\n poolxPrice {\n Price\n Timestamp\n }\n }": typeof types.PoolxPriceDocument;
48
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
+ "\n query PoolxTokenomicsV2_Simple {\n poolxTokenomicsV2 {\n CirculatingSupply\n Locked\n }\n }\n": typeof types.PoolxTokenomicsV2_SimpleDocument;
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;
49
51
  "\n query ProjectIdToPoolzBackId($projectId: String!) {\n projectIdToPoolzBackId(projectId: $projectId)\n }\n": typeof types.ProjectIdToPoolzBackIdDocument;
50
52
  "\n query MySignUpV3($projectIDs: [String!]!) {\n mySignUpV3(projectIDs: $projectIDs) {\n ProjectId\n SignedUp\n }\n }\n": typeof types.MySignUpV3Document;
51
53
  "\n query AdminSignUpV3($projectId: String!, $minPoolxAmount: Int!) {\n adminSignUpV3(projectId: $projectId, minPoolxAmount: $minPoolxAmount) {\n Address\n Amount\n }\n }\n": typeof types.AdminSignUpV3Document;
@@ -182,7 +184,7 @@ export declare function gql(source: "\n mutation UpdateNonEvmWallet($chainName:
182
184
  /**
183
185
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
184
186
  */
185
- export declare function gql(source: "\n query MyInvest {\n myInvest {\n ProjectId\n PoolId\n ChainId\n Token\n Amount\n TokenName\n }\n }\n"): (typeof documents)["\n query MyInvest {\n myInvest {\n ProjectId\n PoolId\n ChainId\n Token\n Amount\n TokenName\n }\n }\n"];
187
+ 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"];
186
188
  /**
187
189
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
188
190
  */
@@ -203,6 +205,14 @@ export declare function gql(source: "\n query PoolxPrice {\n poolxPrice {\n
203
205
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
204
206
  */
205
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
+ /**
209
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
210
+ */
211
+ export declare function gql(source: "\n query PoolxTokenomicsV2_Simple {\n poolxTokenomicsV2 {\n CirculatingSupply\n Locked\n }\n }\n"): (typeof documents)["\n query PoolxTokenomicsV2_Simple {\n poolxTokenomicsV2 {\n CirculatingSupply\n Locked\n }\n }\n"];
212
+ /**
213
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
214
+ */
215
+ export declare function gql(source: "\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 documents)["\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"];
206
216
  /**
207
217
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
208
218
  */
@@ -80,6 +80,11 @@ export type AdminSignUpV3 = {
80
80
  Address: Scalars['String']['output'];
81
81
  Amount: Scalars['Float']['output'];
82
82
  };
83
+ export type AdminUsersTotalSpents = {
84
+ __typename?: 'AdminUsersTotalSpents';
85
+ User: Scalars['String']['output'];
86
+ WeiTotalSpent: Scalars['String']['output'];
87
+ };
83
88
  export type AdminWriteAllocation = {
84
89
  PhaseId: Scalars['String']['input'];
85
90
  ProjectId: Scalars['String']['input'];
@@ -95,6 +100,14 @@ export type ApprovedContracts = {
95
100
  ContractAddress: Scalars['String']['output'];
96
101
  Status: Scalars['Boolean']['output'];
97
102
  };
103
+ export type ApprovedContractsV2 = {
104
+ __typename?: 'ApprovedContractsV2';
105
+ BlockNumber: Scalars['Int']['output'];
106
+ BlockTimestamp: Scalars['Int']['output'];
107
+ ContractAddress: Scalars['String']['output'];
108
+ Status: Scalars['Boolean']['output'];
109
+ TransactionHash: Scalars['String']['output'];
110
+ };
98
111
  export type BoostProxy = {
99
112
  __typename?: 'BoostProxy';
100
113
  Actions: Scalars['Int']['output'];
@@ -321,6 +334,7 @@ export type MyInvest = {
321
334
  ProjectId: Scalars['String']['output'];
322
335
  Token: Scalars['String']['output'];
323
336
  TokenName: Scalars['String']['output'];
337
+ TokenSymbol: Scalars['String']['output'];
324
338
  };
325
339
  export type MyInvestmentsEth = {
326
340
  __typename?: 'MyInvestmentsETH';
@@ -386,6 +400,20 @@ export type PoolxTokenomicsTrade = {
386
400
  PancakeSwapV3_01: Scalars['Float']['output'];
387
401
  Sum: Scalars['Float']['output'];
388
402
  };
403
+ export type PoolxTokenomicsV2 = {
404
+ __typename?: 'PoolxTokenomicsV2';
405
+ CirculatingSupply: Scalars['Float']['output'];
406
+ External: Array<PoolxTokenomicsV2_Balance>;
407
+ ExternalSum: Scalars['Float']['output'];
408
+ Internal: Array<PoolxTokenomicsV2_Balance>;
409
+ InternalSum: Scalars['Float']['output'];
410
+ Locked: Scalars['Float']['output'];
411
+ };
412
+ export type PoolxTokenomicsV2_Balance = {
413
+ __typename?: 'PoolxTokenomicsV2_Balance';
414
+ Balance: Scalars['Float']['output'];
415
+ Name: Scalars['String']['output'];
416
+ };
389
417
  export type ProjectSignUpV3 = {
390
418
  __typename?: 'ProjectSignUpV3';
391
419
  JoinedTime: Scalars['Int']['output'];
@@ -405,8 +433,10 @@ export type Query = {
405
433
  adminReadAssets: ReadAssetsResponse;
406
434
  adminRpcWallets: Array<RpcWallet>;
407
435
  adminSignUpV3: Array<AdminSignUpV3>;
436
+ adminUsersTotalSpents: Array<AdminUsersTotalSpents>;
408
437
  /** Will be updated in new endoint. */
409
438
  approvedContracts: Array<ApprovedContracts>;
439
+ approvedContractsV2: Array<ApprovedContractsV2>;
410
440
  boostProxy: Array<BoostProxy>;
411
441
  /** Will be updated in new endoint. */
412
442
  daoSenderHistory: DaoSenderHistoryPage;
@@ -426,7 +456,9 @@ export type Query = {
426
456
  mySignUpV3: Array<MySignUpV3>;
427
457
  myUpcomingAllocation: Array<MyUpcomingAllocation>;
428
458
  poolxPrice: PoolxPrice;
459
+ /** @deprecated Use new `poolxTokenomicsV2` endpoint. */
429
460
  poolxTokenomics: PoolxTokenomics;
461
+ poolxTokenomicsV2: PoolxTokenomicsV2;
430
462
  projectIdToPoolzBackId: Scalars['Int']['output'];
431
463
  retrieveSignature: RetrieveSignatureResponse;
432
464
  /** @deprecated Will be removed */
@@ -436,8 +468,10 @@ export type Query = {
436
468
  tokenInfo?: Maybe<TokenInfo>;
437
469
  /** @deprecated Need to fix */
438
470
  unlocks: Array<Unlocks>;
471
+ unlocksV2: Array<UnlocksV2>;
439
472
  /** The 'fetchBalance' will be deprecated & Will be updated in new endoint. */
440
473
  vaults: Array<Vaults>;
474
+ vaultsV2: Array<VaultsV2>;
441
475
  };
442
476
  export type QueryAdminGetAllocationArgs = {
443
477
  projectId: Scalars['String']['input'];
@@ -462,6 +496,10 @@ export type QueryAdminSignUpV3Args = {
462
496
  export type QueryApprovedContractsArgs = {
463
497
  onlyApproved: Scalars['Boolean']['input'];
464
498
  };
499
+ export type QueryApprovedContractsV2Args = {
500
+ chainId: Scalars['Int']['input'];
501
+ onlyApproved: Scalars['Boolean']['input'];
502
+ };
465
503
  export type QueryBoostProxyArgs = {
466
504
  campaignCodes: Array<Scalars['String']['input']>;
467
505
  };
@@ -512,12 +550,18 @@ export type QueryTokenInfoArgs = {
512
550
  export type QueryUnlocksArgs = {
513
551
  address: Scalars['String']['input'];
514
552
  };
553
+ export type QueryUnlocksV2Args = {
554
+ chainId: Scalars['Int']['input'];
555
+ };
515
556
  export type QueryVaultsArgs = {
516
557
  chainId?: InputMaybe<Scalars['Int']['input']>;
517
558
  fetchBalance?: InputMaybe<Scalars['Boolean']['input']>;
518
559
  tokenAddress?: InputMaybe<Scalars['String']['input']>;
519
560
  updateTotalSupply?: InputMaybe<Scalars['Boolean']['input']>;
520
561
  };
562
+ export type QueryVaultsV2Args = {
563
+ chainId: Scalars['Int']['input'];
564
+ };
521
565
  export type ReadAssetResponse_Asset = {
522
566
  __typename?: 'ReadAssetResponse_Asset';
523
567
  ChainId: Scalars['Int']['output'];
@@ -601,6 +645,14 @@ export type Unlocks = {
601
645
  Timespan: Scalars['Int']['output'];
602
646
  Total: Scalars['Float']['output'];
603
647
  };
648
+ export type UnlocksV2 = {
649
+ __typename?: 'UnlocksV2';
650
+ CreatedAt: Scalars['Int']['output'];
651
+ Owner: Scalars['String']['output'];
652
+ PoolId: Scalars['Int']['output'];
653
+ UnlocksAt: Scalars['Int']['output'];
654
+ WeiAmount: Scalars['String']['output'];
655
+ };
604
656
  export type UserData = {
605
657
  __typename?: 'UserData';
606
658
  Agree: Scalars['Boolean']['output'];
@@ -629,6 +681,17 @@ export type VaultsDataBalance = {
629
681
  BalanceOfToken: Scalars['Float']['output'];
630
682
  FetchTime: Scalars['Int']['output'];
631
683
  };
684
+ export type VaultsV2 = {
685
+ __typename?: 'VaultsV2';
686
+ DepositStatus: Scalars['Boolean']['output'];
687
+ RoyaltyFeeNumerator: Scalars['Int']['output'];
688
+ RoyaltyReceiver: Scalars['String']['output'];
689
+ Token: Scalars['String']['output'];
690
+ VaultAddress: Scalars['String']['output'];
691
+ VaultId: Scalars['Int']['output'];
692
+ WeiBalance: Scalars['String']['output'];
693
+ WithdrawStatus: Scalars['Boolean']['output'];
694
+ };
632
695
  export type AdminCreatePoolzBackIdMutationVariables = Exact<{
633
696
  projectId: Scalars['String']['input'];
634
697
  poolzBackId: Scalars['Int']['input'];
@@ -1043,6 +1106,7 @@ export type MyInvestQuery = {
1043
1106
  Token: string;
1044
1107
  Amount: number;
1045
1108
  TokenName: string;
1109
+ TokenSymbol: string;
1046
1110
  }>;
1047
1111
  };
1048
1112
  export type MyInvestedQueryVariables = Exact<{
@@ -1127,6 +1191,40 @@ export type GetPoolxTokenomicsQuery = {
1127
1191
  };
1128
1192
  };
1129
1193
  };
1194
+ export type PoolxTokenomicsV2_SimpleQueryVariables = Exact<{
1195
+ [key: string]: never;
1196
+ }>;
1197
+ export type PoolxTokenomicsV2_SimpleQuery = {
1198
+ __typename?: 'Query';
1199
+ poolxTokenomicsV2: {
1200
+ __typename?: 'PoolxTokenomicsV2';
1201
+ CirculatingSupply: number;
1202
+ Locked: number;
1203
+ };
1204
+ };
1205
+ export type PoolxTokenomicsV2_FullQueryVariables = Exact<{
1206
+ [key: string]: never;
1207
+ }>;
1208
+ export type PoolxTokenomicsV2_FullQuery = {
1209
+ __typename?: 'Query';
1210
+ poolxTokenomicsV2: {
1211
+ __typename?: 'PoolxTokenomicsV2';
1212
+ CirculatingSupply: number;
1213
+ Locked: number;
1214
+ InternalSum: number;
1215
+ ExternalSum: number;
1216
+ External: Array<{
1217
+ __typename?: 'PoolxTokenomicsV2_Balance';
1218
+ Name: string;
1219
+ Balance: number;
1220
+ }>;
1221
+ Internal: Array<{
1222
+ __typename?: 'PoolxTokenomicsV2_Balance';
1223
+ Name: string;
1224
+ Balance: number;
1225
+ }>;
1226
+ };
1227
+ };
1130
1228
  export type ProjectIdToPoolzBackIdQueryVariables = Exact<{
1131
1229
  projectId: Scalars['String']['input'];
1132
1230
  }>;
@@ -1245,6 +1343,8 @@ export declare const KycDocument: DocumentNode<KycQuery, KycQueryVariables>;
1245
1343
  export declare const MyRolesDocument: DocumentNode<MyRolesQuery, MyRolesQueryVariables>;
1246
1344
  export declare const PoolxPriceDocument: DocumentNode<PoolxPriceQuery, PoolxPriceQueryVariables>;
1247
1345
  export declare const GetPoolxTokenomicsDocument: DocumentNode<GetPoolxTokenomicsQuery, GetPoolxTokenomicsQueryVariables>;
1346
+ export declare const PoolxTokenomicsV2_SimpleDocument: DocumentNode<PoolxTokenomicsV2_SimpleQuery, PoolxTokenomicsV2_SimpleQueryVariables>;
1347
+ export declare const PoolxTokenomicsV2_FullDocument: DocumentNode<PoolxTokenomicsV2_FullQuery, PoolxTokenomicsV2_FullQueryVariables>;
1248
1348
  export declare const ProjectIdToPoolzBackIdDocument: DocumentNode<ProjectIdToPoolzBackIdQuery, ProjectIdToPoolzBackIdQueryVariables>;
1249
1349
  export declare const MySignUpV3Document: DocumentNode<MySignUpV3Query, MySignUpV3QueryVariables>;
1250
1350
  export declare const AdminSignUpV3Document: DocumentNode<AdminSignUpV3Query, AdminSignUpV3QueryVariables>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolzfinance/api4",
3
- "version": "1.13.8",
3
+ "version": "1.14.0",
4
4
  "description": "Bridge between front and back",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",