@nadohq/indexer-client 0.7.0 → 0.9.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.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  EIP712LeaderboardAuthenticationValues,
3
+ EIP712SocialAuthenticationValues,
3
4
  SignedTx,
4
5
  } from '@nadohq/shared';
5
6
  import { IndexerEventType } from './IndexerEventType';
@@ -21,6 +22,7 @@ import {
21
22
  IndexerServerProductPayment,
22
23
  IndexerServerProductSnapshot,
23
24
  IndexerServerSnapshotsInterval,
25
+ IndexerServerSocialAccount,
24
26
  IndexerServerTx,
25
27
  } from './serverModelTypes';
26
28
 
@@ -184,13 +186,13 @@ export interface IndexerServerLeaderboardRankParams {
184
186
  }
185
187
 
186
188
  export interface IndexerServerLeaderboardContestsParams {
187
- contest_ids: number[];
189
+ contest_ids?: number[];
188
190
  active?: boolean;
189
191
  }
190
192
 
191
193
  export interface IndexerServerLeaderboardRegistrationsParams {
192
194
  subaccount: string;
193
- contest_ids: number[];
195
+ contest_ids?: number[];
194
196
  active?: boolean;
195
197
  }
196
198
 
@@ -198,6 +200,17 @@ export interface IndexerServerLeaderboardRegisterParams {
198
200
  update_registration: SignedTx<EIP712LeaderboardAuthenticationValues>;
199
201
  }
200
202
 
203
+ export interface IndexerServerSocialConnectParams {
204
+ update_social_account: SignedTx<EIP712SocialAuthenticationValues>;
205
+ }
206
+
207
+ export interface IndexerServerListSocialAccountsParams {
208
+ address: string;
209
+ }
210
+
211
+ export type IndexerServerRevokeSocialAccountParams =
212
+ IndexerServerSocialConnectParams;
213
+
201
214
  export interface IndexerServerFastWithdrawalSignatureParams {
202
215
  /**
203
216
  * The submission index of the WithdrawCollateral tx to be used for fast withdraw.
@@ -255,6 +268,9 @@ export interface IndexerServerQueryRequestByType {
255
268
  nlp_snapshots: IndexerServerNlpSnapshotsParams;
256
269
  private_alpha_choice: IndexerServerPrivateAlphaChoiceParams;
257
270
  nado_points: IndexerServerPointsParams;
271
+ social_connect: IndexerServerSocialConnectParams;
272
+ list_social_accounts: IndexerServerListSocialAccountsParams;
273
+ revoke_social_account: IndexerServerRevokeSocialAccountParams;
258
274
  }
259
275
 
260
276
  export type IndexerServerQueryRequestType =
@@ -458,6 +474,14 @@ export interface IndexerServerPointsResponse {
458
474
  all_time_points: IndexerServerAllTimePoints;
459
475
  }
460
476
 
477
+ export interface IndexerServerSocialConnectResponse {
478
+ url: string;
479
+ }
480
+
481
+ export interface IndexerServerSocialAccountsResponse {
482
+ accounts: IndexerServerSocialAccount[];
483
+ }
484
+
461
485
  // Response
462
486
  export interface IndexerServerQueryResponseByType {
463
487
  account_snapshots: IndexerServerMultiSubaccountSnapshotsResponse;
@@ -492,6 +516,9 @@ export interface IndexerServerQueryResponseByType {
492
516
  nlp_snapshots: IndexerServerNlpSnapshotsResponse;
493
517
  private_alpha_choice: IndexerServerPrivateAlphaChoiceResponse;
494
518
  nado_points: IndexerServerPointsResponse;
519
+ social_connect: IndexerServerSocialConnectResponse;
520
+ list_social_accounts: IndexerServerSocialAccountsResponse;
521
+ revoke_social_account: IndexerServerSocialAccountsResponse;
495
522
  }
496
523
 
497
524
  /**