@poolzfinance/api4 1.11.30 → 1.11.32

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.
@@ -20,6 +20,5 @@ export interface IAPI4ProviderInitionalState {
20
20
  account?: string;
21
21
  userDenied: boolean;
22
22
  privatTokenStatus: EPrivatTokenStatus;
23
- siweResult: TSiwe | null;
24
23
  }
25
24
  export {};
@@ -87,6 +87,9 @@ declare const documents: {
87
87
  chainName: string;
88
88
  wallet: string;
89
89
  }>>;
90
+ "\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}": DocumentNode<types.MyInvestedQuery, types.Exact<{
91
+ [key: string]: never;
92
+ }>>;
90
93
  "\n mutation MyLinkTelegram($dataOnAuth: DataOnAuth!) {\n myLinkTelegram(dataOnAuth: $dataOnAuth)\n}": DocumentNode<types.MyLinkTelegramMutation, types.Exact<{
91
94
  dataOnAuth: types.DataOnAuth;
92
95
  }>>;
@@ -250,6 +253,10 @@ export declare function gql(source: "\n mutation DeleteNonEvmWallet($chainName:
250
253
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
251
254
  */
252
255
  export declare function gql(source: "\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 documents)["\n mutation UpdateNonEvmWallet($chainName: String!, $wallet: String!) {\n updateNonEvmWallet(chainName: $chainName, wallet: $wallet) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n }\n}"];
256
+ /**
257
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
258
+ */
259
+ 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}"];
253
260
  /**
254
261
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
255
262
  */
@@ -69,6 +69,23 @@ export type ActionSettings = {
69
69
  SettingsId: Scalars['Int']['output'];
70
70
  StartingRunningTime: Scalars['String']['output'];
71
71
  };
72
+ export type AddChainInput = {
73
+ BlockPerSecond: Scalars['Float']['input'];
74
+ ChainId: Scalars['Int']['input'];
75
+ ChainName: Scalars['String']['input'];
76
+ DownloadTimeDelay: Scalars['Int']['input'];
77
+ RpcUrl: Scalars['String']['input'];
78
+ SecondsToError: Scalars['Int']['input'];
79
+ SecondsToWarning: Scalars['Int']['input'];
80
+ };
81
+ export type AddMappingInput = {
82
+ Converter: Scalars['String']['input'];
83
+ DownloaderSettingsChainId: Scalars['Int']['input'];
84
+ DownloaderSettingsContractAddress: Scalars['String']['input'];
85
+ DownloaderSettingsEventHash: Scalars['String']['input'];
86
+ Name: Scalars['String']['input'];
87
+ Path: Scalars['String']['input'];
88
+ };
72
89
  export type AdminAction = {
73
90
  __typename?: 'AdminAction';
74
91
  ActionRegistry: ActionRegistry;
@@ -106,6 +123,13 @@ export type AdminKycProxy = {
106
123
  SubmitCount?: Maybe<Scalars['Int']['output']>;
107
124
  WaitingDate?: Maybe<Scalars['String']['output']>;
108
125
  };
126
+ export type AdminNonEvmInvested = {
127
+ __typename?: 'AdminNonEvmInvested';
128
+ AmountIn: Scalars['Float']['output'];
129
+ EvmWallet: Scalars['String']['output'];
130
+ NonEvmWallet: Scalars['String']['output'];
131
+ TokenOut: Scalars['Float']['output'];
132
+ };
109
133
  export type AdminNonEvmWallet = {
110
134
  __typename?: 'AdminNonEvmWallet';
111
135
  EvmWallet: Scalars['String']['output'];
@@ -187,6 +211,7 @@ export type Downloader = {
187
211
  ChainId: Scalars['Int']['output'];
188
212
  ChainName: Scalars['String']['output'];
189
213
  CovalentLastBlock: Scalars['Int']['output'];
214
+ DownloadTimeDelay: Scalars['Int']['output'];
190
215
  Events?: Maybe<Array<DownloaderEvents>>;
191
216
  RpcUrl: Scalars['String']['output'];
192
217
  SecondsToError: Scalars['Int']['output'];
@@ -222,6 +247,25 @@ export type GenerateTokenFromSignature = {
222
247
  token: Scalars['String']['output'];
223
248
  validUntil: Scalars['Int']['output'];
224
249
  };
250
+ export type GetAction = {
251
+ __typename?: 'GetAction';
252
+ AccountId: Scalars['Int']['output'];
253
+ ActionId: Scalars['Int']['output'];
254
+ ActionType: Scalars['Int']['output'];
255
+ ChainId: Scalars['Int']['output'];
256
+ Data: Scalars['String']['output'];
257
+ Details_GasLimit?: Maybe<Scalars['Int']['output']>;
258
+ Details_MaxGasPriceGwei?: Maybe<Scalars['Int']['output']>;
259
+ Details_Value?: Maybe<Scalars['Float']['output']>;
260
+ FinishRunningTime: Scalars['String']['output'];
261
+ LastExecutionId?: Maybe<Scalars['Int']['output']>;
262
+ NextRunAfterExecution?: Maybe<Scalars['Int']['output']>;
263
+ RepeatCount: Scalars['Int']['output'];
264
+ Repeatable: Scalars['Boolean']['output'];
265
+ SettingsId: Scalars['Int']['output'];
266
+ StartingRunningTime: Scalars['String']['output'];
267
+ ToAddress: Scalars['String']['output'];
268
+ };
225
269
  export type InvestedErc20 = {
226
270
  __typename?: 'InvestedErc20';
227
271
  AmountIn: Scalars['Float']['output'];
@@ -278,11 +322,23 @@ export type MappingInput = {
278
322
  Name: Scalars['String']['input'];
279
323
  Path: Scalars['String']['input'];
280
324
  };
325
+ export type MappingMutation = {
326
+ __typename?: 'MappingMutation';
327
+ Converter: Scalars['String']['output'];
328
+ DownloaderSettingsChainId: Scalars['Int']['output'];
329
+ DownloaderSettingsContractAddress: Scalars['String']['output'];
330
+ DownloaderSettingsEventHash: Scalars['String']['output'];
331
+ Id: Scalars['Int']['output'];
332
+ Name: Scalars['String']['output'];
333
+ Path: Scalars['String']['output'];
334
+ };
281
335
  export type Mutation = {
282
336
  __typename?: 'Mutation';
283
337
  addAutoSignUp: AdminAutoSignUp;
284
- addDownloaderEvent?: Maybe<DownloaderEvents>;
338
+ addChain: Downloader;
339
+ addDownloaderEvent: Scalars['Boolean']['output'];
285
340
  addEvmWallet: UserData;
341
+ addMapping: Scalars['Boolean']['output'];
286
342
  addNonEvmWallet: UserData;
287
343
  addUser: AdminUsers;
288
344
  adminAddAction: AdminAction;
@@ -290,7 +346,9 @@ export type Mutation = {
290
346
  adminDeleteAction: Scalars['Boolean']['output'];
291
347
  adminUpdateAction: ActionSettings;
292
348
  deleteAutoSignUp: AdminAutoSignUp;
349
+ deleteDownloaderEvent: Scalars['Boolean']['output'];
293
350
  deleteEvmWallet: UserData;
351
+ deleteMapping: Scalars['Boolean']['output'];
294
352
  deleteNonEvmWallet: UserData;
295
353
  deleteUser: AdminUsers;
296
354
  generateTokenFromSignature: GenerateTokenFromSignature;
@@ -301,7 +359,9 @@ export type Mutation = {
301
359
  sendToMonitor: Scalars['Int']['output'];
302
360
  setMyAgree: Scalars['Boolean']['output'];
303
361
  updateAutoSignUp: AdminAutoSignUp;
362
+ updateDownloaderEvent: Scalars['Boolean']['output'];
304
363
  updateEvmWallet: UserData;
364
+ updateMapping: Scalars['Boolean']['output'];
305
365
  updateNonEvmWallet: UserData;
306
366
  updateUser: AdminUsers;
307
367
  };
@@ -310,6 +370,9 @@ export type MutationAddAutoSignUpArgs = {
310
370
  note: Scalars['String']['input'];
311
371
  poolzAmount: Scalars['Float']['input'];
312
372
  };
373
+ export type MutationAddChainArgs = {
374
+ addChainInput: AddChainInput;
375
+ };
313
376
  export type MutationAddDownloaderEventArgs = {
314
377
  chainId: Scalars['Int']['input'];
315
378
  eventData: DownloaderEventInput;
@@ -317,6 +380,9 @@ export type MutationAddDownloaderEventArgs = {
317
380
  export type MutationAddEvmWalletArgs = {
318
381
  wallet: Scalars['String']['input'];
319
382
  };
383
+ export type MutationAddMappingArgs = {
384
+ addMappingInput: AddMappingInput;
385
+ };
320
386
  export type MutationAddNonEvmWalletArgs = {
321
387
  chainName: Scalars['String']['input'];
322
388
  wallet: Scalars['String']['input'];
@@ -337,9 +403,17 @@ export type MutationAdminUpdateActionArgs = {
337
403
  export type MutationDeleteAutoSignUpArgs = {
338
404
  address: Scalars['String']['input'];
339
405
  };
406
+ export type MutationDeleteDownloaderEventArgs = {
407
+ chainId: Scalars['Int']['input'];
408
+ contractAddress: Scalars['String']['input'];
409
+ eventHash: Scalars['String']['input'];
410
+ };
340
411
  export type MutationDeleteEvmWalletArgs = {
341
412
  wallet: Scalars['String']['input'];
342
413
  };
414
+ export type MutationDeleteMappingArgs = {
415
+ id: Scalars['Int']['input'];
416
+ };
343
417
  export type MutationDeleteNonEvmWalletArgs = {
344
418
  chainName: Scalars['String']['input'];
345
419
  };
@@ -373,10 +447,18 @@ export type MutationUpdateAutoSignUpArgs = {
373
447
  note: Scalars['String']['input'];
374
448
  poolzAmount: Scalars['Float']['input'];
375
449
  };
450
+ export type MutationUpdateDownloaderEventArgs = {
451
+ chainId: Scalars['Int']['input'];
452
+ eventData: DownloaderEventInput;
453
+ };
376
454
  export type MutationUpdateEvmWalletArgs = {
377
455
  newWallet: Scalars['String']['input'];
378
456
  oldWallet: Scalars['String']['input'];
379
457
  };
458
+ export type MutationUpdateMappingArgs = {
459
+ id: Scalars['Int']['input'];
460
+ updateMapping: MappingInput;
461
+ };
380
462
  export type MutationUpdateNonEvmWalletArgs = {
381
463
  chainName: Scalars['String']['input'];
382
464
  wallet: Scalars['String']['input'];
@@ -402,6 +484,23 @@ export type MyInvestSum = {
402
484
  WithdrawnSum?: Maybe<Scalars['Float']['output']>;
403
485
  WithdrawnTx?: Maybe<Array<Scalars['String']['output']>>;
404
486
  };
487
+ export type MyInvestmentsEth = {
488
+ __typename?: 'MyInvestmentsETH';
489
+ Amount: Scalars['Float']['output'];
490
+ BlockSignedAt: Scalars['String']['output'];
491
+ ChainId: Scalars['Long']['output'];
492
+ Id: Scalars['Long']['output'];
493
+ TxHash: Scalars['String']['output'];
494
+ };
495
+ export type MyInvestmentsErc20 = {
496
+ __typename?: 'MyInvestmentsErc20';
497
+ Amount: Scalars['Float']['output'];
498
+ BlockSignedAt: Scalars['String']['output'];
499
+ ChainId: Scalars['Long']['output'];
500
+ Id: Scalars['Long']['output'];
501
+ Token: Scalars['String']['output'];
502
+ TxHash: Scalars['String']['output'];
503
+ };
405
504
  export type MySignUp = {
406
505
  __typename?: 'MySignUp';
407
506
  SignupId: Scalars['Int']['output'];
@@ -494,7 +593,11 @@ export type PutMyDataNonEvmWallet = {
494
593
  export type Query = {
495
594
  __typename?: 'Query';
496
595
  adminAutoSignUp: Array<AdminAutoSignUp>;
596
+ adminGetActions: Array<GetAction>;
597
+ /** @deprecated This endpoint is deprecated cause not working. */
497
598
  adminKycProxy: Array<AdminKycProxy>;
599
+ adminNonEvmInvested: Array<AdminNonEvmInvested>;
600
+ /** @deprecated Use a new query 'adminNonEvmInvested'. */
498
601
  adminNonEvmWallet: Array<AdminNonEvmWallet>;
499
602
  adminRpcWallets: Array<RpcWallet>;
500
603
  adminUsers: Array<AdminUsers>;
@@ -502,12 +605,13 @@ export type Query = {
502
605
  boostProxy: Array<BoostProxy>;
503
606
  daoSenderHistory: DaoSenderHistoryPage;
504
607
  downloader: Array<Downloader>;
505
- downloaderWithFilter?: Maybe<Array<Downloader>>;
506
608
  investedErc20: Array<InvestedErc20>;
507
609
  kolInvestedErc20: Array<KolInvestedErc20>;
508
610
  leaderBoard: Array<LeaderBoard>;
509
611
  myData?: Maybe<MyData>;
510
612
  myInvestSum: MyInvestSum;
613
+ myInvestmentsETH: Array<MyInvestmentsEth>;
614
+ myInvestmentsErc20: Array<MyInvestmentsErc20>;
511
615
  /** @deprecated Use a new query 'myProxyKYC'. */
512
616
  myKYC: Kyc;
513
617
  myProxyKYC: KycProxy;
@@ -541,6 +645,10 @@ export type QueryAdminAutoSignUpArgs = {
541
645
  export type QueryAdminKycProxyArgs = {
542
646
  status?: InputMaybe<Scalars['String']['input']>;
543
647
  };
648
+ export type QueryAdminNonEvmInvestedArgs = {
649
+ chainName: Scalars['String']['input'];
650
+ poolId: Scalars['Long']['input'];
651
+ };
544
652
  export type QueryAdminNonEvmWalletArgs = {
545
653
  chainName: Scalars['String']['input'];
546
654
  };
@@ -559,10 +667,6 @@ export type QueryBoostProxyArgs = {
559
667
  export type QueryDaoSenderHistoryArgs = {
560
668
  page: Scalars['Int']['input'];
561
669
  };
562
- export type QueryDownloaderWithFilterArgs = {
563
- chainId?: InputMaybe<Scalars['Int']['input']>;
564
- contractAddress?: InputMaybe<Scalars['String']['input']>;
565
- };
566
670
  export type QueryInvestedErc20Args = {
567
671
  id: Scalars['Int']['input'];
568
672
  };
@@ -1114,6 +1218,29 @@ export type UpdateNonEvmWalletMutation = {
1114
1218
  }>;
1115
1219
  };
1116
1220
  };
1221
+ export type MyInvestedQueryVariables = Exact<{
1222
+ [key: string]: never;
1223
+ }>;
1224
+ export type MyInvestedQuery = {
1225
+ __typename?: 'Query';
1226
+ myInvestmentsErc20: Array<{
1227
+ __typename?: 'MyInvestmentsErc20';
1228
+ ChainId: any;
1229
+ TxHash: string;
1230
+ BlockSignedAt: string;
1231
+ Amount: number;
1232
+ Token: string;
1233
+ Id: any;
1234
+ }>;
1235
+ myInvestmentsETH: Array<{
1236
+ __typename?: 'MyInvestmentsETH';
1237
+ ChainId: any;
1238
+ TxHash: string;
1239
+ BlockSignedAt: string;
1240
+ Amount: number;
1241
+ Id: any;
1242
+ }>;
1243
+ };
1117
1244
  export type MyLinkTelegramMutationVariables = Exact<{
1118
1245
  dataOnAuth: DataOnAuth;
1119
1246
  }>;
@@ -1429,6 +1556,9 @@ export declare const UpdateNonEvmWalletDocument: DocumentNode<UpdateNonEvmWallet
1429
1556
  chainName: Scalars['String']['input'];
1430
1557
  wallet: Scalars['String']['input'];
1431
1558
  }>>;
1559
+ export declare const MyInvestedDocument: DocumentNode<MyInvestedQuery, Exact<{
1560
+ [key: string]: never;
1561
+ }>>;
1432
1562
  export declare const MyLinkTelegramDocument: DocumentNode<MyLinkTelegramMutation, Exact<{
1433
1563
  dataOnAuth: DataOnAuth;
1434
1564
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolzfinance/api4",
3
- "version": "1.11.30",
3
+ "version": "1.11.32",
4
4
  "description": "Bridge between front and back",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- declare const API4Inner: ({ children }: {
3
- children: React.ReactNode;
4
- }) => React.JSX.Element;
5
- export default API4Inner;