@ludo.ninja/api 2.8.62 → 2.8.64

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.
@@ -43,6 +43,18 @@ export type IAuditNftBalance = {
43
43
  collections?: Maybe<Array<IAuditBalanceCollection>>;
44
44
  };
45
45
 
46
+ export type ICheckTonProofRequest = {
47
+ address: Scalars['String'];
48
+ network?: Maybe<Scalars['String']>;
49
+ publicKey?: Maybe<Scalars['String']>;
50
+ proof: IProof;
51
+ };
52
+
53
+ export type IDomain = {
54
+ lengthBytes?: Maybe<Scalars['Long']>;
55
+ value?: Maybe<Scalars['String']>;
56
+ };
57
+
46
58
  export type IFollowingStatus = {
47
59
  userId: Scalars['ID'];
48
60
  following: Scalars['Boolean'];
@@ -99,17 +111,20 @@ export type IMultiversxAudit = {
99
111
  export type IMutation = {
100
112
  setDummy: Scalars['String'];
101
113
  createNonce: Scalars['String'];
114
+ createTonNonce: Scalars['String'];
102
115
  signInAdminMetamask: IIdentity;
103
116
  signInMetamask: IIdentity;
104
117
  signInTezos: IIdentity;
105
118
  signInSolana: IIdentity;
106
119
  signInElrond: IIdentity;
107
120
  signInFlow: IIdentity;
121
+ signInTon: IIdentity;
108
122
  addWalletMetamask: Scalars['Boolean'];
109
123
  addWalletTezos: Scalars['Boolean'];
110
124
  addWalletSolana: Scalars['Boolean'];
111
125
  addWalletElrond: Scalars['Boolean'];
112
126
  addWalletFlow: Scalars['Boolean'];
127
+ addWalletTon: Scalars['Boolean'];
113
128
  removeWallet: Scalars['Boolean'];
114
129
  setMainWallet: Scalars['Boolean'];
115
130
  generateNewInviteCodes: Array<IUserInviteCode>;
@@ -176,6 +191,12 @@ export type IMutationSignInFlowArgs = {
176
191
  };
177
192
 
178
193
 
194
+ export type IMutationSignInTonArgs = {
195
+ request: ICheckTonProofRequest;
196
+ restore?: Maybe<Scalars['Boolean']>;
197
+ };
198
+
199
+
179
200
  export type IMutationAddWalletMetamaskArgs = {
180
201
  signature: Scalars['String'];
181
202
  address: Scalars['String'];
@@ -207,6 +228,11 @@ export type IMutationAddWalletFlowArgs = {
207
228
  };
208
229
 
209
230
 
231
+ export type IMutationAddWalletTonArgs = {
232
+ request: ICheckTonProofRequest;
233
+ };
234
+
235
+
210
236
  export type IMutationRemoveWalletArgs = {
211
237
  blockchain: Scalars['String'];
212
238
  address: Scalars['String'];
@@ -251,30 +277,6 @@ export type IMutationUnfollowProfileArgs = {
251
277
  followingUserId: Scalars['ID'];
252
278
  };
253
279
 
254
- export type IMyProfile = {
255
- userId: Scalars['ID'];
256
- username?: Maybe<Scalars['String']>;
257
- about?: Maybe<Scalars['String']>;
258
- userpic?: Maybe<Scalars['String']>;
259
- following?: Maybe<Scalars['Boolean']>;
260
- followings?: Maybe<Scalars['Int']>;
261
- followers?: Maybe<Scalars['Int']>;
262
- social?: Maybe<ISocial>;
263
- views?: Maybe<Scalars['Int']>;
264
- createdAt?: Maybe<Scalars['Long']>;
265
- deletedAt?: Maybe<Scalars['Long']>;
266
- visible?: Maybe<Scalars['Boolean']>;
267
- deleted?: Maybe<Scalars['Boolean']>;
268
- showNsfw?: Maybe<Scalars['Boolean']>;
269
- rank?: Maybe<Scalars['Float']>;
270
- wallets?: Maybe<Array<Maybe<IWallet>>>;
271
- xps?: Maybe<Scalars['Int']>;
272
- level?: Maybe<Scalars['Int']>;
273
- levelMinXps?: Maybe<Scalars['Int']>;
274
- levelMaxXps?: Maybe<Scalars['Int']>;
275
- inviteCodes?: Maybe<Array<Maybe<IUserInviteCode>>>;
276
- };
277
-
278
280
  export type IMyProfileV2 = {
279
281
  userId: Scalars['ID'];
280
282
  username?: Maybe<Scalars['String']>;
@@ -320,14 +322,20 @@ export type IProfile = {
320
322
  level?: Maybe<Scalars['Int']>;
321
323
  };
322
324
 
325
+ export type IProof = {
326
+ timestamp?: Maybe<Scalars['Long']>;
327
+ domain?: Maybe<IDomain>;
328
+ payload: Scalars['String'];
329
+ signature: Scalars['String'];
330
+ stateInit?: Maybe<Scalars['String']>;
331
+ };
332
+
323
333
  export type IQuery = {
324
334
  getDummy: Scalars['String'];
325
335
  fetchUserWallets: Array<Maybe<IWallet>>;
326
336
  fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
327
337
  isInviteCodeAvailable: Scalars['Boolean'];
328
- getMyInviteCodes: Array<IUserInviteCode>;
329
338
  fetchInviteCode: IInviteCode;
330
- fetchMyProfile: IMyProfile;
331
339
  fetchMyProfileV2: IMyProfileV2;
332
340
  fetchProfile: IProfile;
333
341
  fetchFollowingStatus: IFollowingStatus;
@@ -482,6 +490,8 @@ export type IResolversTypes = {
482
490
  AuditInterest: ResolverTypeWrapper<IAuditInterest>;
483
491
  Float: ResolverTypeWrapper<Scalars['Float']>;
484
492
  AuditNFTBalance: ResolverTypeWrapper<IAuditNftBalance>;
493
+ CheckTonProofRequest: ICheckTonProofRequest;
494
+ Domain: IDomain;
485
495
  FollowingStatus: ResolverTypeWrapper<IFollowingStatus>;
486
496
  ID: ResolverTypeWrapper<Scalars['ID']>;
487
497
  Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
@@ -493,9 +503,9 @@ export type IResolversTypes = {
493
503
  Long: ResolverTypeWrapper<Scalars['Long']>;
494
504
  MultiversxAudit: ResolverTypeWrapper<IMultiversxAudit>;
495
505
  Mutation: ResolverTypeWrapper<{}>;
496
- MyProfile: ResolverTypeWrapper<IMyProfile>;
497
506
  MyProfileV2: ResolverTypeWrapper<IMyProfileV2>;
498
507
  Profile: ResolverTypeWrapper<IProfile>;
508
+ Proof: IProof;
499
509
  Query: ResolverTypeWrapper<{}>;
500
510
  Role: IRole;
501
511
  Social: ResolverTypeWrapper<ISocial>;
@@ -513,6 +523,8 @@ export type IResolversParentTypes = {
513
523
  AuditInterest: IAuditInterest;
514
524
  Float: Scalars['Float'];
515
525
  AuditNFTBalance: IAuditNftBalance;
526
+ CheckTonProofRequest: ICheckTonProofRequest;
527
+ Domain: IDomain;
516
528
  FollowingStatus: IFollowingStatus;
517
529
  ID: Scalars['ID'];
518
530
  Boolean: Scalars['Boolean'];
@@ -524,9 +536,9 @@ export type IResolversParentTypes = {
524
536
  Long: Scalars['Long'];
525
537
  MultiversxAudit: IMultiversxAudit;
526
538
  Mutation: {};
527
- MyProfile: IMyProfile;
528
539
  MyProfileV2: IMyProfileV2;
529
540
  Profile: IProfile;
541
+ Proof: IProof;
530
542
  Query: {};
531
543
  Social: ISocial;
532
544
  TokenPair: ITokenPair;
@@ -639,17 +651,20 @@ export type IMultiversxAuditResolvers<ContextType = any, ParentType extends IRes
639
651
  export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
640
652
  setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
641
653
  createNonce?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationCreateNonceArgs, 'address' | 'blockchain'>>;
654
+ createTonNonce?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
642
655
  signInAdminMetamask?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInAdminMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
643
656
  signInMetamask?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
644
657
  signInTezos?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTezosArgs, 'signature' | 'pubkey'>>;
645
658
  signInSolana?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInSolanaArgs, 'signature' | 'pubkey'>>;
646
659
  signInElrond?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInElrondArgs, 'signature' | 'address'>>;
647
660
  signInFlow?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInFlowArgs, 'signature' | 'address'>>;
661
+ signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'request'>>;
648
662
  addWalletMetamask?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
649
663
  addWalletTezos?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTezosArgs, 'signature' | 'pubkey'>>;
650
664
  addWalletSolana?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletSolanaArgs, 'signature' | 'pubkey'>>;
651
665
  addWalletElrond?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletElrondArgs, 'signature' | 'address'>>;
652
666
  addWalletFlow?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletFlowArgs, 'signature' | 'address'>>;
667
+ addWalletTon?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonArgs, 'request'>>;
653
668
  removeWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveWalletArgs, 'blockchain' | 'address'>>;
654
669
  setMainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSetMainWalletArgs, 'blockchain' | 'address'>>;
655
670
  generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
@@ -660,31 +675,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
660
675
  unfollowProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUnfollowProfileArgs, 'followingUserId'>>;
661
676
  };
662
677
 
663
- export type IMyProfileResolvers<ContextType = any, ParentType extends IResolversParentTypes['MyProfile'] = IResolversParentTypes['MyProfile']> = {
664
- userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
665
- username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
666
- about?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
667
- userpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
668
- following?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
669
- followings?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
670
- followers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
671
- social?: Resolver<Maybe<IResolversTypes['Social']>, ParentType, ContextType>;
672
- views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
673
- createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
674
- deletedAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
675
- visible?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
676
- deleted?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
677
- showNsfw?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
678
- rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
679
- wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
680
- xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
681
- level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
682
- levelMinXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
683
- levelMaxXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
684
- inviteCodes?: Resolver<Maybe<Array<Maybe<IResolversTypes['UserInviteCode']>>>, ParentType, ContextType>;
685
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
686
- };
687
-
688
678
  export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolversParentTypes['MyProfileV2'] = IResolversParentTypes['MyProfileV2']> = {
689
679
  userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
690
680
  username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
@@ -737,9 +727,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
737
727
  fetchUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchUserWalletsArgs, 'userId'>>;
738
728
  fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
739
729
  isInviteCodeAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryIsInviteCodeAvailableArgs, 'inviteCode'>>;
740
- getMyInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType>;
741
730
  fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
742
- fetchMyProfile?: Resolver<IResolversTypes['MyProfile'], ParentType, ContextType>;
743
731
  fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
744
732
  fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
745
733
  fetchFollowingStatus?: Resolver<IResolversTypes['FollowingStatus'], ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusArgs, 'userId'>>;
@@ -795,7 +783,6 @@ export type IResolvers<ContextType = any> = {
795
783
  Long?: GraphQLScalarType;
796
784
  MultiversxAudit?: IMultiversxAuditResolvers<ContextType>;
797
785
  Mutation?: IMutationResolvers<ContextType>;
798
- MyProfile?: IMyProfileResolvers<ContextType>;
799
786
  MyProfileV2?: IMyProfileV2Resolvers<ContextType>;
800
787
  Profile?: IProfileResolvers<ContextType>;
801
788
  Query?: IQueryResolvers<ContextType>;
@@ -855,6 +842,13 @@ export type IAddWalletTezosMutationVariables = Exact<{
855
842
 
856
843
  export type IAddWalletTezosMutation = Pick<IMutation, 'addWalletTezos'>;
857
844
 
845
+ export type IAddWalletTonMutationVariables = Exact<{
846
+ request: ICheckTonProofRequest;
847
+ }>;
848
+
849
+
850
+ export type IAddWalletTonMutation = Pick<IMutation, 'addWalletTon'>;
851
+
858
852
  export type ICreateNonceMutationVariables = Exact<{
859
853
  address: Scalars['String'];
860
854
  blockchain: Scalars['String'];
@@ -864,6 +858,11 @@ export type ICreateNonceMutationVariables = Exact<{
864
858
 
865
859
  export type ICreateNonceMutation = Pick<IMutation, 'createNonce'>;
866
860
 
861
+ export type ICreateTonNonceMutationVariables = Exact<{ [key: string]: never; }>;
862
+
863
+
864
+ export type ICreateTonNonceMutation = Pick<IMutation, 'createTonNonce'>;
865
+
867
866
  export type IGenerateNewInviteCodesMutationVariables = Exact<{
868
867
  codesNum: Scalars['Int'];
869
868
  }>;
@@ -972,6 +971,17 @@ export type ISignInTezosMutation = { signInTezos: (
972
971
  & { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
973
972
  ) };
974
973
 
974
+ export type ISignInTonMutationVariables = Exact<{
975
+ request: ICheckTonProofRequest;
976
+ restore?: Maybe<Scalars['Boolean']>;
977
+ }>;
978
+
979
+
980
+ export type ISignInTonMutation = { signInTon: (
981
+ Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role'>
982
+ & { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
983
+ ) };
984
+
975
985
  export type IUpdateProfileMutationVariables = Exact<{
976
986
  username?: Maybe<Scalars['String']>;
977
987
  about?: Maybe<Scalars['String']>;
@@ -998,14 +1008,6 @@ export type IFetchMultiversXAuditQuery = { fetchMultiversxAudit?: Maybe<(
998
1008
  )> }
999
1009
  )> };
1000
1010
 
1001
- export type IFetchMyProfileQueryVariables = Exact<{ [key: string]: never; }>;
1002
-
1003
-
1004
- export type IFetchMyProfileQuery = { fetchMyProfile: (
1005
- Pick<IMyProfile, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'>
1006
- & { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>>, inviteCodes?: Maybe<Array<Maybe<Pick<IUserInviteCode, 'inviteCode' | 'inviteeId' | 'isUsed' | 'usedAt'>>>> }
1007
- ) };
1008
-
1009
1011
  export type IFetchMyProfileV2QueryVariables = Exact<{ [key: string]: never; }>;
1010
1012
 
1011
1013
 
@@ -1034,11 +1036,6 @@ export type IFetchUserWalletsQueryVariables = Exact<{
1034
1036
 
1035
1037
  export type IFetchUserWalletsQuery = { fetchUserWallets: Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>> };
1036
1038
 
1037
- export type IGetMyInviteCodesQueryVariables = Exact<{ [key: string]: never; }>;
1038
-
1039
-
1040
- export type IGetMyInviteCodesQuery = { getMyInviteCodes: Array<Pick<IUserInviteCode, 'inviteCode' | 'inviteeId' | 'isUsed' | 'usedAt'>> };
1041
-
1042
1039
 
1043
1040
  export const AddWalletElrondDocument = gql`
1044
1041
  mutation AddWalletElrond($signature: String!, $address: String!) {
@@ -1196,6 +1193,36 @@ export function useAddWalletTezosMutation(baseOptions?: Apollo.MutationHookOptio
1196
1193
  export type AddWalletTezosMutationHookResult = ReturnType<typeof useAddWalletTezosMutation>;
1197
1194
  export type AddWalletTezosMutationResult = Apollo.MutationResult<IAddWalletTezosMutation>;
1198
1195
  export type AddWalletTezosMutationOptions = Apollo.BaseMutationOptions<IAddWalletTezosMutation, IAddWalletTezosMutationVariables>;
1196
+ export const AddWalletTonDocument = gql`
1197
+ mutation AddWalletTon($request: CheckTonProofRequest!) {
1198
+ addWalletTon(request: $request)
1199
+ }
1200
+ `;
1201
+ export type IAddWalletTonMutationFn = Apollo.MutationFunction<IAddWalletTonMutation, IAddWalletTonMutationVariables>;
1202
+
1203
+ /**
1204
+ * __useAddWalletTonMutation__
1205
+ *
1206
+ * To run a mutation, you first call `useAddWalletTonMutation` within a React component and pass it any options that fit your needs.
1207
+ * When your component renders, `useAddWalletTonMutation` returns a tuple that includes:
1208
+ * - A mutate function that you can call at any time to execute the mutation
1209
+ * - An object with fields that represent the current status of the mutation's execution
1210
+ *
1211
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1212
+ *
1213
+ * @example
1214
+ * const [addWalletTonMutation, { data, loading, error }] = useAddWalletTonMutation({
1215
+ * variables: {
1216
+ * request: // value for 'request'
1217
+ * },
1218
+ * });
1219
+ */
1220
+ export function useAddWalletTonMutation(baseOptions?: Apollo.MutationHookOptions<IAddWalletTonMutation, IAddWalletTonMutationVariables>) {
1221
+ return Apollo.useMutation<IAddWalletTonMutation, IAddWalletTonMutationVariables>(AddWalletTonDocument, baseOptions);
1222
+ }
1223
+ export type AddWalletTonMutationHookResult = ReturnType<typeof useAddWalletTonMutation>;
1224
+ export type AddWalletTonMutationResult = Apollo.MutationResult<IAddWalletTonMutation>;
1225
+ export type AddWalletTonMutationOptions = Apollo.BaseMutationOptions<IAddWalletTonMutation, IAddWalletTonMutationVariables>;
1199
1226
  export const CreateNonceDocument = gql`
1200
1227
  mutation CreateNonce($address: String!, $blockchain: String!, $chainId: String) {
1201
1228
  createNonce(address: $address, blockchain: $blockchain, chainId: $chainId)
@@ -1228,6 +1255,35 @@ export function useCreateNonceMutation(baseOptions?: Apollo.MutationHookOptions<
1228
1255
  export type CreateNonceMutationHookResult = ReturnType<typeof useCreateNonceMutation>;
1229
1256
  export type CreateNonceMutationResult = Apollo.MutationResult<ICreateNonceMutation>;
1230
1257
  export type CreateNonceMutationOptions = Apollo.BaseMutationOptions<ICreateNonceMutation, ICreateNonceMutationVariables>;
1258
+ export const CreateTonNonceDocument = gql`
1259
+ mutation CreateTonNonce {
1260
+ createTonNonce
1261
+ }
1262
+ `;
1263
+ export type ICreateTonNonceMutationFn = Apollo.MutationFunction<ICreateTonNonceMutation, ICreateTonNonceMutationVariables>;
1264
+
1265
+ /**
1266
+ * __useCreateTonNonceMutation__
1267
+ *
1268
+ * To run a mutation, you first call `useCreateTonNonceMutation` within a React component and pass it any options that fit your needs.
1269
+ * When your component renders, `useCreateTonNonceMutation` returns a tuple that includes:
1270
+ * - A mutate function that you can call at any time to execute the mutation
1271
+ * - An object with fields that represent the current status of the mutation's execution
1272
+ *
1273
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1274
+ *
1275
+ * @example
1276
+ * const [createTonNonceMutation, { data, loading, error }] = useCreateTonNonceMutation({
1277
+ * variables: {
1278
+ * },
1279
+ * });
1280
+ */
1281
+ export function useCreateTonNonceMutation(baseOptions?: Apollo.MutationHookOptions<ICreateTonNonceMutation, ICreateTonNonceMutationVariables>) {
1282
+ return Apollo.useMutation<ICreateTonNonceMutation, ICreateTonNonceMutationVariables>(CreateTonNonceDocument, baseOptions);
1283
+ }
1284
+ export type CreateTonNonceMutationHookResult = ReturnType<typeof useCreateTonNonceMutation>;
1285
+ export type CreateTonNonceMutationResult = Apollo.MutationResult<ICreateTonNonceMutation>;
1286
+ export type CreateTonNonceMutationOptions = Apollo.BaseMutationOptions<ICreateTonNonceMutation, ICreateTonNonceMutationVariables>;
1231
1287
  export const GenerateNewInviteCodesDocument = gql`
1232
1288
  mutation GenerateNewInviteCodes($codesNum: Int!) {
1233
1289
  generateNewInviteCodes(codesNum: $codesNum) {
@@ -1672,6 +1728,53 @@ export function useSignInTezosMutation(baseOptions?: Apollo.MutationHookOptions<
1672
1728
  export type SignInTezosMutationHookResult = ReturnType<typeof useSignInTezosMutation>;
1673
1729
  export type SignInTezosMutationResult = Apollo.MutationResult<ISignInTezosMutation>;
1674
1730
  export type SignInTezosMutationOptions = Apollo.BaseMutationOptions<ISignInTezosMutation, ISignInTezosMutationVariables>;
1731
+ export const SignInTonDocument = gql`
1732
+ mutation SignInTon($request: CheckTonProofRequest!, $restore: Boolean) {
1733
+ signInTon(request: $request, restore: $restore) {
1734
+ userId
1735
+ wallets
1736
+ tokens {
1737
+ portalTokenPair {
1738
+ authToken
1739
+ refreshToken
1740
+ }
1741
+ extensionTokenPair {
1742
+ authToken
1743
+ refreshToken
1744
+ }
1745
+ }
1746
+ newUser
1747
+ inviteCode
1748
+ role
1749
+ }
1750
+ }
1751
+ `;
1752
+ export type ISignInTonMutationFn = Apollo.MutationFunction<ISignInTonMutation, ISignInTonMutationVariables>;
1753
+
1754
+ /**
1755
+ * __useSignInTonMutation__
1756
+ *
1757
+ * To run a mutation, you first call `useSignInTonMutation` within a React component and pass it any options that fit your needs.
1758
+ * When your component renders, `useSignInTonMutation` returns a tuple that includes:
1759
+ * - A mutate function that you can call at any time to execute the mutation
1760
+ * - An object with fields that represent the current status of the mutation's execution
1761
+ *
1762
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1763
+ *
1764
+ * @example
1765
+ * const [signInTonMutation, { data, loading, error }] = useSignInTonMutation({
1766
+ * variables: {
1767
+ * request: // value for 'request'
1768
+ * restore: // value for 'restore'
1769
+ * },
1770
+ * });
1771
+ */
1772
+ export function useSignInTonMutation(baseOptions?: Apollo.MutationHookOptions<ISignInTonMutation, ISignInTonMutationVariables>) {
1773
+ return Apollo.useMutation<ISignInTonMutation, ISignInTonMutationVariables>(SignInTonDocument, baseOptions);
1774
+ }
1775
+ export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation>;
1776
+ export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
1777
+ export type SignInTonMutationOptions = Apollo.BaseMutationOptions<ISignInTonMutation, ISignInTonMutationVariables>;
1675
1778
  export const UpdateProfileDocument = gql`
1676
1779
  mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean) {
1677
1780
  updateProfile(
@@ -1760,74 +1863,6 @@ export function useFetchMultiversXAuditLazyQuery(baseOptions?: Apollo.LazyQueryH
1760
1863
  export type FetchMultiversXAuditQueryHookResult = ReturnType<typeof useFetchMultiversXAuditQuery>;
1761
1864
  export type FetchMultiversXAuditLazyQueryHookResult = ReturnType<typeof useFetchMultiversXAuditLazyQuery>;
1762
1865
  export type FetchMultiversXAuditQueryResult = Apollo.QueryResult<IFetchMultiversXAuditQuery, IFetchMultiversXAuditQueryVariables>;
1763
- export const FetchMyProfileDocument = gql`
1764
- query FetchMyProfile {
1765
- fetchMyProfile {
1766
- userId
1767
- username
1768
- about
1769
- userpic
1770
- following
1771
- followings
1772
- followers
1773
- social {
1774
- facebook
1775
- twitter
1776
- instagram
1777
- website
1778
- }
1779
- views
1780
- createdAt
1781
- deletedAt
1782
- visible
1783
- deleted
1784
- showNsfw
1785
- rank
1786
- wallets {
1787
- userId
1788
- address
1789
- walletName
1790
- blockchain
1791
- chainId
1792
- }
1793
- xps
1794
- level
1795
- levelMinXps
1796
- levelMaxXps
1797
- inviteCodes {
1798
- inviteCode
1799
- inviteeId
1800
- isUsed
1801
- usedAt
1802
- }
1803
- }
1804
- }
1805
- `;
1806
-
1807
- /**
1808
- * __useFetchMyProfileQuery__
1809
- *
1810
- * To run a query within a React component, call `useFetchMyProfileQuery` and pass it any options that fit your needs.
1811
- * When your component renders, `useFetchMyProfileQuery` returns an object from Apollo Client that contains loading, error, and data properties
1812
- * you can use to render your UI.
1813
- *
1814
- * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1815
- *
1816
- * @example
1817
- * const { data, loading, error } = useFetchMyProfileQuery({
1818
- * variables: {
1819
- * },
1820
- * });
1821
- */
1822
- export function useFetchMyProfileQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>) {
1823
- return Apollo.useQuery<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>(FetchMyProfileDocument, baseOptions);
1824
- }
1825
- export function useFetchMyProfileLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>) {
1826
- return Apollo.useLazyQuery<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>(FetchMyProfileDocument, baseOptions);
1827
- }
1828
- export type FetchMyProfileQueryHookResult = ReturnType<typeof useFetchMyProfileQuery>;
1829
- export type FetchMyProfileLazyQueryHookResult = ReturnType<typeof useFetchMyProfileLazyQuery>;
1830
- export type FetchMyProfileQueryResult = Apollo.QueryResult<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>;
1831
1866
  export const FetchMyProfileV2Document = gql`
1832
1867
  query FetchMyProfileV2 {
1833
1868
  fetchMyProfileV2 {
@@ -1996,39 +2031,4 @@ export function useFetchUserWalletsLazyQuery(baseOptions?: Apollo.LazyQueryHookO
1996
2031
  }
1997
2032
  export type FetchUserWalletsQueryHookResult = ReturnType<typeof useFetchUserWalletsQuery>;
1998
2033
  export type FetchUserWalletsLazyQueryHookResult = ReturnType<typeof useFetchUserWalletsLazyQuery>;
1999
- export type FetchUserWalletsQueryResult = Apollo.QueryResult<IFetchUserWalletsQuery, IFetchUserWalletsQueryVariables>;
2000
- export const GetMyInviteCodesDocument = gql`
2001
- query GetMyInviteCodes {
2002
- getMyInviteCodes {
2003
- inviteCode
2004
- inviteeId
2005
- isUsed
2006
- usedAt
2007
- }
2008
- }
2009
- `;
2010
-
2011
- /**
2012
- * __useGetMyInviteCodesQuery__
2013
- *
2014
- * To run a query within a React component, call `useGetMyInviteCodesQuery` and pass it any options that fit your needs.
2015
- * When your component renders, `useGetMyInviteCodesQuery` returns an object from Apollo Client that contains loading, error, and data properties
2016
- * you can use to render your UI.
2017
- *
2018
- * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
2019
- *
2020
- * @example
2021
- * const { data, loading, error } = useGetMyInviteCodesQuery({
2022
- * variables: {
2023
- * },
2024
- * });
2025
- */
2026
- export function useGetMyInviteCodesQuery(baseOptions?: Apollo.QueryHookOptions<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>) {
2027
- return Apollo.useQuery<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>(GetMyInviteCodesDocument, baseOptions);
2028
- }
2029
- export function useGetMyInviteCodesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>) {
2030
- return Apollo.useLazyQuery<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>(GetMyInviteCodesDocument, baseOptions);
2031
- }
2032
- export type GetMyInviteCodesQueryHookResult = ReturnType<typeof useGetMyInviteCodesQuery>;
2033
- export type GetMyInviteCodesLazyQueryHookResult = ReturnType<typeof useGetMyInviteCodesLazyQuery>;
2034
- export type GetMyInviteCodesQueryResult = Apollo.QueryResult<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>;
2034
+ export type FetchUserWalletsQueryResult = Apollo.QueryResult<IFetchUserWalletsQuery, IFetchUserWalletsQueryVariables>;