@poolzfinance/api4 1.11.59 → 1.11.61

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.
@@ -71,6 +71,10 @@ declare const documents: {
71
71
  eip4361message: string;
72
72
  signature: string;
73
73
  }>>;
74
+ "\n query GenerateMyInvestSignature($phaseId: String!, $WeiAmount: String!) {\n generateMyInvestSignature(phaseId: $phaseId, WeiAmount: $WeiAmount) {\n Signature\n ValidUntil\n }\n }\n": DocumentNode<types.GenerateMyInvestSignatureQuery, types.Exact<{
75
+ phaseId: string;
76
+ WeiAmount: string;
77
+ }>>;
74
78
  "\n query InvestedErc20($investedErc20Id: Int!) {\n investedErc20(id: $investedErc20Id) {\n Wallet\n AmountIn\n TokenOut\n }\n}": DocumentNode<types.InvestedErc20Query, types.Exact<{
75
79
  investedErc20Id: number;
76
80
  }>>;
@@ -285,6 +289,10 @@ export declare function gql(source: "\n query MyQuery {\n time\n}"): (typeof
285
289
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
286
290
  */
287
291
  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}"];
292
+ /**
293
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
294
+ */
295
+ export declare function gql(source: "\n query GenerateMyInvestSignature($phaseId: String!, $WeiAmount: String!) {\n generateMyInvestSignature(phaseId: $phaseId, WeiAmount: $WeiAmount) {\n Signature\n ValidUntil\n }\n }\n"): (typeof documents)["\n query GenerateMyInvestSignature($phaseId: String!, $WeiAmount: String!) {\n generateMyInvestSignature(phaseId: $phaseId, WeiAmount: $WeiAmount) {\n Signature\n ValidUntil\n }\n }\n"];
288
296
  /**
289
297
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
290
298
  */
@@ -148,6 +148,7 @@ export type AdminUsers = {
148
148
  };
149
149
  export type ApprovedContracts = {
150
150
  __typename?: 'ApprovedContracts';
151
+ ChainId: Scalars['Int']['output'];
151
152
  ContractAddress: Scalars['String']['output'];
152
153
  Status: Scalars['Boolean']['output'];
153
154
  };
@@ -256,6 +257,11 @@ export type DeleteAssetResponse = {
256
257
  __typename?: 'DeleteAssetResponse';
257
258
  StatusCode: Scalars['Int']['output'];
258
259
  };
260
+ export type GenerateMyInvestSignature = {
261
+ __typename?: 'GenerateMyInvestSignature';
262
+ Signature: Scalars['String']['output'];
263
+ ValidUntil: Scalars['Int']['output'];
264
+ };
259
265
  export type GenerateSignatureRequest = {
260
266
  ChainId: Scalars['Int']['input'];
261
267
  PoolId: Scalars['Int']['input'];
@@ -456,6 +462,12 @@ export type MutationUpdateUserArgs = {
456
462
  roleId: Scalars['Int']['input'];
457
463
  wallet: Scalars['String']['input'];
458
464
  };
465
+ export type MyAllocation = {
466
+ __typename?: 'MyAllocation';
467
+ Amount: Scalars['Float']['output'];
468
+ EndTime: Scalars['String']['output'];
469
+ StartTime: Scalars['String']['output'];
470
+ };
459
471
  export type MyAssets = {
460
472
  __typename?: 'MyAssets';
461
473
  RefundDetail?: Maybe<MyAssets_TransactionDetail>;
@@ -644,9 +656,11 @@ export type Query = {
644
656
  approvedContracts: Array<ApprovedContracts>;
645
657
  boostProxy: Array<BoostProxy>;
646
658
  daoSenderHistory: DaoSenderHistoryPage;
659
+ generateMyInvestSignature: GenerateMyInvestSignature;
647
660
  investedErc20: Array<InvestedErc20>;
648
661
  kolInvestedErc20: Array<KolInvestedErc20>;
649
662
  leaderBoard: Array<LeaderBoard>;
663
+ myAllocation: MyAllocation;
650
664
  myAssets: MyAssetsResponse;
651
665
  myData?: Maybe<MyData>;
652
666
  /** @deprecated Right now isn't work. Will be deleted with new Invested contract/system. */
@@ -747,6 +761,10 @@ export type QueryDaoSenderHistoryArgs = {
747
761
  limit?: InputMaybe<Scalars['Int']['input']>;
748
762
  page: Scalars['Int']['input'];
749
763
  };
764
+ export type QueryGenerateMyInvestSignatureArgs = {
765
+ WeiAmount: Scalars['String']['input'];
766
+ phaseId: Scalars['String']['input'];
767
+ };
750
768
  export type QueryInvestedErc20Args = {
751
769
  id: Scalars['Int']['input'];
752
770
  };
@@ -757,6 +775,9 @@ export type QueryLeaderBoardArgs = {
757
775
  address?: InputMaybe<Scalars['String']['input']>;
758
776
  timestamp?: InputMaybe<Scalars['Int']['input']>;
759
777
  };
778
+ export type QueryMyAllocationArgs = {
779
+ phaseId: Scalars['String']['input'];
780
+ };
760
781
  export type QueryMyAssetsArgs = {
761
782
  limit: Scalars['Int']['input'];
762
783
  page: Scalars['Int']['input'];
@@ -1332,6 +1353,18 @@ export type GenerateTokenFromSignatureMutation = {
1332
1353
  validUntil: number;
1333
1354
  };
1334
1355
  };
1356
+ export type GenerateMyInvestSignatureQueryVariables = Exact<{
1357
+ phaseId: Scalars['String']['input'];
1358
+ WeiAmount: Scalars['String']['input'];
1359
+ }>;
1360
+ export type GenerateMyInvestSignatureQuery = {
1361
+ __typename?: 'Query';
1362
+ generateMyInvestSignature: {
1363
+ __typename?: 'GenerateMyInvestSignature';
1364
+ Signature: string;
1365
+ ValidUntil: number;
1366
+ };
1367
+ };
1335
1368
  export type InvestedErc20QueryVariables = Exact<{
1336
1369
  investedErc20Id: Scalars['Int']['input'];
1337
1370
  }>;
@@ -1919,6 +1952,10 @@ export declare const GenerateTokenFromSignatureDocument: DocumentNode<GenerateTo
1919
1952
  eip4361message: Scalars['String']['input'];
1920
1953
  signature: Scalars['String']['input'];
1921
1954
  }>>;
1955
+ export declare const GenerateMyInvestSignatureDocument: DocumentNode<GenerateMyInvestSignatureQuery, Exact<{
1956
+ phaseId: Scalars['String']['input'];
1957
+ WeiAmount: Scalars['String']['input'];
1958
+ }>>;
1922
1959
  export declare const InvestedErc20Document: DocumentNode<InvestedErc20Query, Exact<{
1923
1960
  investedErc20Id: Scalars['Int']['input'];
1924
1961
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolzfinance/api4",
3
- "version": "1.11.59",
3
+ "version": "1.11.61",
4
4
  "description": "Bridge between front and back",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",