@ludo.ninja/api 2.8.63 → 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.
@@ -42,6 +42,16 @@ export type IAuditNftBalance = {
42
42
  totalNfts?: Maybe<Scalars['Int']>;
43
43
  collections?: Maybe<Array<IAuditBalanceCollection>>;
44
44
  };
45
+ export type ICheckTonProofRequest = {
46
+ address: Scalars['String'];
47
+ network?: Maybe<Scalars['String']>;
48
+ publicKey?: Maybe<Scalars['String']>;
49
+ proof: IProof;
50
+ };
51
+ export type IDomain = {
52
+ lengthBytes?: Maybe<Scalars['Long']>;
53
+ value?: Maybe<Scalars['String']>;
54
+ };
45
55
  export type IFollowingStatus = {
46
56
  userId: Scalars['ID'];
47
57
  following: Scalars['Boolean'];
@@ -90,13 +100,14 @@ export type IMultiversxAudit = {
90
100
  export type IMutation = {
91
101
  setDummy: Scalars['String'];
92
102
  createNonce: Scalars['String'];
103
+ createTonNonce: Scalars['String'];
93
104
  signInAdminMetamask: IIdentity;
94
105
  signInMetamask: IIdentity;
95
- signInTon: IIdentity;
96
106
  signInTezos: IIdentity;
97
107
  signInSolana: IIdentity;
98
108
  signInElrond: IIdentity;
99
109
  signInFlow: IIdentity;
110
+ signInTon: IIdentity;
100
111
  addWalletMetamask: Scalars['Boolean'];
101
112
  addWalletTezos: Scalars['Boolean'];
102
113
  addWalletSolana: Scalars['Boolean'];
@@ -129,11 +140,6 @@ export type IMutationSignInMetamaskArgs = {
129
140
  restore?: Maybe<Scalars['Boolean']>;
130
141
  inviteCode?: Maybe<Scalars['String']>;
131
142
  };
132
- export type IMutationSignInTonArgs = {
133
- signature: Scalars['String'];
134
- address: Scalars['String'];
135
- restore?: Maybe<Scalars['Boolean']>;
136
- };
137
143
  export type IMutationSignInTezosArgs = {
138
144
  signature: Scalars['String'];
139
145
  pubkey: Scalars['String'];
@@ -158,6 +164,10 @@ export type IMutationSignInFlowArgs = {
158
164
  restore?: Maybe<Scalars['Boolean']>;
159
165
  inviteCode?: Maybe<Scalars['String']>;
160
166
  };
167
+ export type IMutationSignInTonArgs = {
168
+ request: ICheckTonProofRequest;
169
+ restore?: Maybe<Scalars['Boolean']>;
170
+ };
161
171
  export type IMutationAddWalletMetamaskArgs = {
162
172
  signature: Scalars['String'];
163
173
  address: Scalars['String'];
@@ -180,8 +190,7 @@ export type IMutationAddWalletFlowArgs = {
180
190
  address: Scalars['String'];
181
191
  };
182
192
  export type IMutationAddWalletTonArgs = {
183
- signature: Scalars['String'];
184
- address: Scalars['String'];
193
+ request: ICheckTonProofRequest;
185
194
  };
186
195
  export type IMutationRemoveWalletArgs = {
187
196
  blockchain: Scalars['String'];
@@ -212,29 +221,6 @@ export type IMutationFollowProfileArgs = {
212
221
  export type IMutationUnfollowProfileArgs = {
213
222
  followingUserId: Scalars['ID'];
214
223
  };
215
- export type IMyProfile = {
216
- userId: Scalars['ID'];
217
- username?: Maybe<Scalars['String']>;
218
- about?: Maybe<Scalars['String']>;
219
- userpic?: Maybe<Scalars['String']>;
220
- following?: Maybe<Scalars['Boolean']>;
221
- followings?: Maybe<Scalars['Int']>;
222
- followers?: Maybe<Scalars['Int']>;
223
- social?: Maybe<ISocial>;
224
- views?: Maybe<Scalars['Int']>;
225
- createdAt?: Maybe<Scalars['Long']>;
226
- deletedAt?: Maybe<Scalars['Long']>;
227
- visible?: Maybe<Scalars['Boolean']>;
228
- deleted?: Maybe<Scalars['Boolean']>;
229
- showNsfw?: Maybe<Scalars['Boolean']>;
230
- rank?: Maybe<Scalars['Float']>;
231
- wallets?: Maybe<Array<Maybe<IWallet>>>;
232
- xps?: Maybe<Scalars['Int']>;
233
- level?: Maybe<Scalars['Int']>;
234
- levelMinXps?: Maybe<Scalars['Int']>;
235
- levelMaxXps?: Maybe<Scalars['Int']>;
236
- inviteCodes?: Maybe<Array<Maybe<IUserInviteCode>>>;
237
- };
238
224
  export type IMyProfileV2 = {
239
225
  userId: Scalars['ID'];
240
226
  username?: Maybe<Scalars['String']>;
@@ -278,14 +264,19 @@ export type IProfile = {
278
264
  xps?: Maybe<Scalars['Int']>;
279
265
  level?: Maybe<Scalars['Int']>;
280
266
  };
267
+ export type IProof = {
268
+ timestamp?: Maybe<Scalars['Long']>;
269
+ domain?: Maybe<IDomain>;
270
+ payload: Scalars['String'];
271
+ signature: Scalars['String'];
272
+ stateInit?: Maybe<Scalars['String']>;
273
+ };
281
274
  export type IQuery = {
282
275
  getDummy: Scalars['String'];
283
276
  fetchUserWallets: Array<Maybe<IWallet>>;
284
277
  fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
285
278
  isInviteCodeAvailable: Scalars['Boolean'];
286
- getMyInviteCodes: Array<IUserInviteCode>;
287
279
  fetchInviteCode: IInviteCode;
288
- fetchMyProfile: IMyProfile;
289
280
  fetchMyProfileV2: IMyProfileV2;
290
281
  fetchProfile: IProfile;
291
282
  fetchFollowingStatus: IFollowingStatus;
@@ -378,6 +369,8 @@ export type IResolversTypes = {
378
369
  AuditInterest: ResolverTypeWrapper<IAuditInterest>;
379
370
  Float: ResolverTypeWrapper<Scalars['Float']>;
380
371
  AuditNFTBalance: ResolverTypeWrapper<IAuditNftBalance>;
372
+ CheckTonProofRequest: ICheckTonProofRequest;
373
+ Domain: IDomain;
381
374
  FollowingStatus: ResolverTypeWrapper<IFollowingStatus>;
382
375
  ID: ResolverTypeWrapper<Scalars['ID']>;
383
376
  Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
@@ -389,9 +382,9 @@ export type IResolversTypes = {
389
382
  Long: ResolverTypeWrapper<Scalars['Long']>;
390
383
  MultiversxAudit: ResolverTypeWrapper<IMultiversxAudit>;
391
384
  Mutation: ResolverTypeWrapper<{}>;
392
- MyProfile: ResolverTypeWrapper<IMyProfile>;
393
385
  MyProfileV2: ResolverTypeWrapper<IMyProfileV2>;
394
386
  Profile: ResolverTypeWrapper<IProfile>;
387
+ Proof: IProof;
395
388
  Query: ResolverTypeWrapper<{}>;
396
389
  Role: IRole;
397
390
  Social: ResolverTypeWrapper<ISocial>;
@@ -408,6 +401,8 @@ export type IResolversParentTypes = {
408
401
  AuditInterest: IAuditInterest;
409
402
  Float: Scalars['Float'];
410
403
  AuditNFTBalance: IAuditNftBalance;
404
+ CheckTonProofRequest: ICheckTonProofRequest;
405
+ Domain: IDomain;
411
406
  FollowingStatus: IFollowingStatus;
412
407
  ID: Scalars['ID'];
413
408
  Boolean: Scalars['Boolean'];
@@ -419,9 +414,9 @@ export type IResolversParentTypes = {
419
414
  Long: Scalars['Long'];
420
415
  MultiversxAudit: IMultiversxAudit;
421
416
  Mutation: {};
422
- MyProfile: IMyProfile;
423
417
  MyProfileV2: IMyProfileV2;
424
418
  Profile: IProfile;
419
+ Proof: IProof;
425
420
  Query: {};
426
421
  Social: ISocial;
427
422
  TokenPair: ITokenPair;
@@ -514,19 +509,20 @@ export type IMultiversxAuditResolvers<ContextType = any, ParentType extends IRes
514
509
  export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
515
510
  setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
516
511
  createNonce?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationCreateNonceArgs, 'address' | 'blockchain'>>;
512
+ createTonNonce?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
517
513
  signInAdminMetamask?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInAdminMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
518
514
  signInMetamask?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
519
- signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'signature' | 'address'>>;
520
515
  signInTezos?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTezosArgs, 'signature' | 'pubkey'>>;
521
516
  signInSolana?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInSolanaArgs, 'signature' | 'pubkey'>>;
522
517
  signInElrond?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInElrondArgs, 'signature' | 'address'>>;
523
518
  signInFlow?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInFlowArgs, 'signature' | 'address'>>;
519
+ signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'request'>>;
524
520
  addWalletMetamask?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
525
521
  addWalletTezos?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTezosArgs, 'signature' | 'pubkey'>>;
526
522
  addWalletSolana?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletSolanaArgs, 'signature' | 'pubkey'>>;
527
523
  addWalletElrond?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletElrondArgs, 'signature' | 'address'>>;
528
524
  addWalletFlow?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletFlowArgs, 'signature' | 'address'>>;
529
- addWalletTon?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonArgs, 'signature' | 'address'>>;
525
+ addWalletTon?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonArgs, 'request'>>;
530
526
  removeWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveWalletArgs, 'blockchain' | 'address'>>;
531
527
  setMainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSetMainWalletArgs, 'blockchain' | 'address'>>;
532
528
  generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
@@ -536,30 +532,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
536
532
  followProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationFollowProfileArgs, 'followingUserId'>>;
537
533
  unfollowProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUnfollowProfileArgs, 'followingUserId'>>;
538
534
  };
539
- export type IMyProfileResolvers<ContextType = any, ParentType extends IResolversParentTypes['MyProfile'] = IResolversParentTypes['MyProfile']> = {
540
- userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
541
- username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
542
- about?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
543
- userpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
544
- following?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
545
- followings?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
546
- followers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
547
- social?: Resolver<Maybe<IResolversTypes['Social']>, ParentType, ContextType>;
548
- views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
549
- createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
550
- deletedAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
551
- visible?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
552
- deleted?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
553
- showNsfw?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
554
- rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
555
- wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
556
- xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
557
- level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
558
- levelMinXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
559
- levelMaxXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
560
- inviteCodes?: Resolver<Maybe<Array<Maybe<IResolversTypes['UserInviteCode']>>>, ParentType, ContextType>;
561
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
562
- };
563
535
  export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolversParentTypes['MyProfileV2'] = IResolversParentTypes['MyProfileV2']> = {
564
536
  userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
565
537
  username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
@@ -610,9 +582,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
610
582
  fetchUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchUserWalletsArgs, 'userId'>>;
611
583
  fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
612
584
  isInviteCodeAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryIsInviteCodeAvailableArgs, 'inviteCode'>>;
613
- getMyInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType>;
614
585
  fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
615
- fetchMyProfile?: Resolver<IResolversTypes['MyProfile'], ParentType, ContextType>;
616
586
  fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
617
587
  fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
618
588
  fetchFollowingStatus?: Resolver<IResolversTypes['FollowingStatus'], ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusArgs, 'userId'>>;
@@ -662,7 +632,6 @@ export type IResolvers<ContextType = any> = {
662
632
  Long?: GraphQLScalarType;
663
633
  MultiversxAudit?: IMultiversxAuditResolvers<ContextType>;
664
634
  Mutation?: IMutationResolvers<ContextType>;
665
- MyProfile?: IMyProfileResolvers<ContextType>;
666
635
  MyProfileV2?: IMyProfileV2Resolvers<ContextType>;
667
636
  Profile?: IProfileResolvers<ContextType>;
668
637
  Query?: IQueryResolvers<ContextType>;
@@ -705,12 +674,20 @@ export type IAddWalletTezosMutationVariables = Exact<{
705
674
  pubkey: Scalars['String'];
706
675
  }>;
707
676
  export type IAddWalletTezosMutation = Pick<IMutation, 'addWalletTezos'>;
677
+ export type IAddWalletTonMutationVariables = Exact<{
678
+ request: ICheckTonProofRequest;
679
+ }>;
680
+ export type IAddWalletTonMutation = Pick<IMutation, 'addWalletTon'>;
708
681
  export type ICreateNonceMutationVariables = Exact<{
709
682
  address: Scalars['String'];
710
683
  blockchain: Scalars['String'];
711
684
  chainId?: Maybe<Scalars['String']>;
712
685
  }>;
713
686
  export type ICreateNonceMutation = Pick<IMutation, 'createNonce'>;
687
+ export type ICreateTonNonceMutationVariables = Exact<{
688
+ [key: string]: never;
689
+ }>;
690
+ export type ICreateTonNonceMutation = Pick<IMutation, 'createTonNonce'>;
714
691
  export type IGenerateNewInviteCodesMutationVariables = Exact<{
715
692
  codesNum: Scalars['Int'];
716
693
  }>;
@@ -813,8 +790,7 @@ export type ISignInTezosMutation = {
813
790
  });
814
791
  };
815
792
  export type ISignInTonMutationVariables = Exact<{
816
- signature: Scalars['String'];
817
- address: Scalars['String'];
793
+ request: ICheckTonProofRequest;
818
794
  restore?: Maybe<Scalars['Boolean']>;
819
795
  }>;
820
796
  export type ISignInTonMutation = {
@@ -846,16 +822,6 @@ export type IFetchMultiversXAuditQuery = {
846
822
  })>;
847
823
  })>;
848
824
  };
849
- export type IFetchMyProfileQueryVariables = Exact<{
850
- [key: string]: never;
851
- }>;
852
- export type IFetchMyProfileQuery = {
853
- fetchMyProfile: (Pick<IMyProfile, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'> & {
854
- social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website'>>;
855
- wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>>;
856
- inviteCodes?: Maybe<Array<Maybe<Pick<IUserInviteCode, 'inviteCode' | 'inviteeId' | 'isUsed' | 'usedAt'>>>>;
857
- });
858
- };
859
825
  export type IFetchMyProfileV2QueryVariables = Exact<{
860
826
  [key: string]: never;
861
827
  }>;
@@ -883,12 +849,6 @@ export type IFetchUserWalletsQueryVariables = Exact<{
883
849
  export type IFetchUserWalletsQuery = {
884
850
  fetchUserWallets: Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>;
885
851
  };
886
- export type IGetMyInviteCodesQueryVariables = Exact<{
887
- [key: string]: never;
888
- }>;
889
- export type IGetMyInviteCodesQuery = {
890
- getMyInviteCodes: Array<Pick<IUserInviteCode, 'inviteCode' | 'inviteeId' | 'isUsed' | 'usedAt'>>;
891
- };
892
852
  export declare const AddWalletElrondDocument: Apollo.DocumentNode;
893
853
  export type IAddWalletElrondMutationFn = Apollo.MutationFunction<IAddWalletElrondMutation, IAddWalletElrondMutationVariables>;
894
854
  /**
@@ -1026,6 +986,31 @@ export declare function useAddWalletTezosMutation(baseOptions?: Apollo.MutationH
1026
986
  export type AddWalletTezosMutationHookResult = ReturnType<typeof useAddWalletTezosMutation>;
1027
987
  export type AddWalletTezosMutationResult = Apollo.MutationResult<IAddWalletTezosMutation>;
1028
988
  export type AddWalletTezosMutationOptions = Apollo.BaseMutationOptions<IAddWalletTezosMutation, IAddWalletTezosMutationVariables>;
989
+ export declare const AddWalletTonDocument: Apollo.DocumentNode;
990
+ export type IAddWalletTonMutationFn = Apollo.MutationFunction<IAddWalletTonMutation, IAddWalletTonMutationVariables>;
991
+ /**
992
+ * __useAddWalletTonMutation__
993
+ *
994
+ * To run a mutation, you first call `useAddWalletTonMutation` within a React component and pass it any options that fit your needs.
995
+ * When your component renders, `useAddWalletTonMutation` returns a tuple that includes:
996
+ * - A mutate function that you can call at any time to execute the mutation
997
+ * - An object with fields that represent the current status of the mutation's execution
998
+ *
999
+ * @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;
1000
+ *
1001
+ * @example
1002
+ * const [addWalletTonMutation, { data, loading, error }] = useAddWalletTonMutation({
1003
+ * variables: {
1004
+ * request: // value for 'request'
1005
+ * },
1006
+ * });
1007
+ */
1008
+ export declare function useAddWalletTonMutation(baseOptions?: Apollo.MutationHookOptions<IAddWalletTonMutation, IAddWalletTonMutationVariables>): Apollo.MutationTuple<IAddWalletTonMutation, Exact<{
1009
+ request: ICheckTonProofRequest;
1010
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1011
+ export type AddWalletTonMutationHookResult = ReturnType<typeof useAddWalletTonMutation>;
1012
+ export type AddWalletTonMutationResult = Apollo.MutationResult<IAddWalletTonMutation>;
1013
+ export type AddWalletTonMutationOptions = Apollo.BaseMutationOptions<IAddWalletTonMutation, IAddWalletTonMutationVariables>;
1029
1014
  export declare const CreateNonceDocument: Apollo.DocumentNode;
1030
1015
  export type ICreateNonceMutationFn = Apollo.MutationFunction<ICreateNonceMutation, ICreateNonceMutationVariables>;
1031
1016
  /**
@@ -1055,6 +1040,30 @@ export declare function useCreateNonceMutation(baseOptions?: Apollo.MutationHook
1055
1040
  export type CreateNonceMutationHookResult = ReturnType<typeof useCreateNonceMutation>;
1056
1041
  export type CreateNonceMutationResult = Apollo.MutationResult<ICreateNonceMutation>;
1057
1042
  export type CreateNonceMutationOptions = Apollo.BaseMutationOptions<ICreateNonceMutation, ICreateNonceMutationVariables>;
1043
+ export declare const CreateTonNonceDocument: Apollo.DocumentNode;
1044
+ export type ICreateTonNonceMutationFn = Apollo.MutationFunction<ICreateTonNonceMutation, ICreateTonNonceMutationVariables>;
1045
+ /**
1046
+ * __useCreateTonNonceMutation__
1047
+ *
1048
+ * To run a mutation, you first call `useCreateTonNonceMutation` within a React component and pass it any options that fit your needs.
1049
+ * When your component renders, `useCreateTonNonceMutation` returns a tuple that includes:
1050
+ * - A mutate function that you can call at any time to execute the mutation
1051
+ * - An object with fields that represent the current status of the mutation's execution
1052
+ *
1053
+ * @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;
1054
+ *
1055
+ * @example
1056
+ * const [createTonNonceMutation, { data, loading, error }] = useCreateTonNonceMutation({
1057
+ * variables: {
1058
+ * },
1059
+ * });
1060
+ */
1061
+ export declare function useCreateTonNonceMutation(baseOptions?: Apollo.MutationHookOptions<ICreateTonNonceMutation, ICreateTonNonceMutationVariables>): Apollo.MutationTuple<ICreateTonNonceMutation, Exact<{
1062
+ [key: string]: never;
1063
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1064
+ export type CreateTonNonceMutationHookResult = ReturnType<typeof useCreateTonNonceMutation>;
1065
+ export type CreateTonNonceMutationResult = Apollo.MutationResult<ICreateTonNonceMutation>;
1066
+ export type CreateTonNonceMutationOptions = Apollo.BaseMutationOptions<ICreateTonNonceMutation, ICreateTonNonceMutationVariables>;
1058
1067
  export declare const GenerateNewInviteCodesDocument: Apollo.DocumentNode;
1059
1068
  export type IGenerateNewInviteCodesMutationFn = Apollo.MutationFunction<IGenerateNewInviteCodesMutation, IGenerateNewInviteCodesMutationVariables>;
1060
1069
  /**
@@ -1371,15 +1380,13 @@ export type ISignInTonMutationFn = Apollo.MutationFunction<ISignInTonMutation, I
1371
1380
  * @example
1372
1381
  * const [signInTonMutation, { data, loading, error }] = useSignInTonMutation({
1373
1382
  * variables: {
1374
- * signature: // value for 'signature'
1375
- * address: // value for 'address'
1383
+ * request: // value for 'request'
1376
1384
  * restore: // value for 'restore'
1377
1385
  * },
1378
1386
  * });
1379
1387
  */
1380
1388
  export declare function useSignInTonMutation(baseOptions?: Apollo.MutationHookOptions<ISignInTonMutation, ISignInTonMutationVariables>): Apollo.MutationTuple<ISignInTonMutation, Exact<{
1381
- signature: string;
1382
- address: string;
1389
+ request: ICheckTonProofRequest;
1383
1390
  restore?: Maybe<boolean> | undefined;
1384
1391
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1385
1392
  export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation>;
@@ -1448,31 +1455,6 @@ export declare function useFetchMultiversXAuditLazyQuery(baseOptions?: Apollo.La
1448
1455
  export type FetchMultiversXAuditQueryHookResult = ReturnType<typeof useFetchMultiversXAuditQuery>;
1449
1456
  export type FetchMultiversXAuditLazyQueryHookResult = ReturnType<typeof useFetchMultiversXAuditLazyQuery>;
1450
1457
  export type FetchMultiversXAuditQueryResult = Apollo.QueryResult<IFetchMultiversXAuditQuery, IFetchMultiversXAuditQueryVariables>;
1451
- export declare const FetchMyProfileDocument: Apollo.DocumentNode;
1452
- /**
1453
- * __useFetchMyProfileQuery__
1454
- *
1455
- * To run a query within a React component, call `useFetchMyProfileQuery` and pass it any options that fit your needs.
1456
- * When your component renders, `useFetchMyProfileQuery` returns an object from Apollo Client that contains loading, error, and data properties
1457
- * you can use to render your UI.
1458
- *
1459
- * @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;
1460
- *
1461
- * @example
1462
- * const { data, loading, error } = useFetchMyProfileQuery({
1463
- * variables: {
1464
- * },
1465
- * });
1466
- */
1467
- export declare function useFetchMyProfileQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>): Apollo.QueryResult<IFetchMyProfileQuery, Exact<{
1468
- [key: string]: never;
1469
- }>>;
1470
- export declare function useFetchMyProfileLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>): Apollo.LazyQueryResultTuple<IFetchMyProfileQuery, Exact<{
1471
- [key: string]: never;
1472
- }>>;
1473
- export type FetchMyProfileQueryHookResult = ReturnType<typeof useFetchMyProfileQuery>;
1474
- export type FetchMyProfileLazyQueryHookResult = ReturnType<typeof useFetchMyProfileLazyQuery>;
1475
- export type FetchMyProfileQueryResult = Apollo.QueryResult<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>;
1476
1458
  export declare const FetchMyProfileV2Document: Apollo.DocumentNode;
1477
1459
  /**
1478
1460
  * __useFetchMyProfileV2Query__
@@ -1550,28 +1532,3 @@ export declare function useFetchUserWalletsLazyQuery(baseOptions?: Apollo.LazyQu
1550
1532
  export type FetchUserWalletsQueryHookResult = ReturnType<typeof useFetchUserWalletsQuery>;
1551
1533
  export type FetchUserWalletsLazyQueryHookResult = ReturnType<typeof useFetchUserWalletsLazyQuery>;
1552
1534
  export type FetchUserWalletsQueryResult = Apollo.QueryResult<IFetchUserWalletsQuery, IFetchUserWalletsQueryVariables>;
1553
- export declare const GetMyInviteCodesDocument: Apollo.DocumentNode;
1554
- /**
1555
- * __useGetMyInviteCodesQuery__
1556
- *
1557
- * To run a query within a React component, call `useGetMyInviteCodesQuery` and pass it any options that fit your needs.
1558
- * When your component renders, `useGetMyInviteCodesQuery` returns an object from Apollo Client that contains loading, error, and data properties
1559
- * you can use to render your UI.
1560
- *
1561
- * @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;
1562
- *
1563
- * @example
1564
- * const { data, loading, error } = useGetMyInviteCodesQuery({
1565
- * variables: {
1566
- * },
1567
- * });
1568
- */
1569
- export declare function useGetMyInviteCodesQuery(baseOptions?: Apollo.QueryHookOptions<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>): Apollo.QueryResult<IGetMyInviteCodesQuery, Exact<{
1570
- [key: string]: never;
1571
- }>>;
1572
- export declare function useGetMyInviteCodesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>): Apollo.LazyQueryResultTuple<IGetMyInviteCodesQuery, Exact<{
1573
- [key: string]: never;
1574
- }>>;
1575
- export type GetMyInviteCodesQueryHookResult = ReturnType<typeof useGetMyInviteCodesQuery>;
1576
- export type GetMyInviteCodesLazyQueryHookResult = ReturnType<typeof useGetMyInviteCodesLazyQuery>;
1577
- export type GetMyInviteCodesQueryResult = Apollo.QueryResult<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>;
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMyProfileLazyQuery = exports.useFetchMyProfileQuery = exports.FetchMyProfileDocument = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTonMutation = exports.SignInTonDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useSignInAdminMetamaskMutation = exports.SignInAdminMetamaskDocument = exports.useSetMainWalletMutation = exports.SetMainWalletDocument = exports.useSaveEmailOfJoinerMutation = exports.SaveEmailOfJoinerDocument = exports.useRemoveWalletMutation = exports.RemoveWalletDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.IRole = void 0;
27
- exports.useGetMyInviteCodesLazyQuery = exports.useGetMyInviteCodesQuery = exports.GetMyInviteCodesDocument = exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = void 0;
26
+ exports.FetchProfileDocument = exports.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTonMutation = exports.SignInTonDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useSignInAdminMetamaskMutation = exports.SignInAdminMetamaskDocument = exports.useSetMainWalletMutation = exports.SetMainWalletDocument = exports.useSaveEmailOfJoinerMutation = exports.SaveEmailOfJoinerDocument = exports.useRemoveWalletMutation = exports.RemoveWalletDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateTonNonceMutation = exports.CreateTonNonceDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useAddWalletTonMutation = exports.AddWalletTonDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.IRole = void 0;
27
+ exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = void 0;
28
28
  const client_1 = require("@apollo/client");
29
29
  const Apollo = __importStar(require("@apollo/client"));
30
30
  var IRole;
@@ -168,6 +168,32 @@ function useAddWalletTezosMutation(baseOptions) {
168
168
  return Apollo.useMutation(exports.AddWalletTezosDocument, baseOptions);
169
169
  }
170
170
  exports.useAddWalletTezosMutation = useAddWalletTezosMutation;
171
+ exports.AddWalletTonDocument = (0, client_1.gql) `
172
+ mutation AddWalletTon($request: CheckTonProofRequest!) {
173
+ addWalletTon(request: $request)
174
+ }
175
+ `;
176
+ /**
177
+ * __useAddWalletTonMutation__
178
+ *
179
+ * To run a mutation, you first call `useAddWalletTonMutation` within a React component and pass it any options that fit your needs.
180
+ * When your component renders, `useAddWalletTonMutation` returns a tuple that includes:
181
+ * - A mutate function that you can call at any time to execute the mutation
182
+ * - An object with fields that represent the current status of the mutation's execution
183
+ *
184
+ * @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;
185
+ *
186
+ * @example
187
+ * const [addWalletTonMutation, { data, loading, error }] = useAddWalletTonMutation({
188
+ * variables: {
189
+ * request: // value for 'request'
190
+ * },
191
+ * });
192
+ */
193
+ function useAddWalletTonMutation(baseOptions) {
194
+ return Apollo.useMutation(exports.AddWalletTonDocument, baseOptions);
195
+ }
196
+ exports.useAddWalletTonMutation = useAddWalletTonMutation;
171
197
  exports.CreateNonceDocument = (0, client_1.gql) `
172
198
  mutation CreateNonce($address: String!, $blockchain: String!, $chainId: String) {
173
199
  createNonce(address: $address, blockchain: $blockchain, chainId: $chainId)
@@ -196,6 +222,31 @@ function useCreateNonceMutation(baseOptions) {
196
222
  return Apollo.useMutation(exports.CreateNonceDocument, baseOptions);
197
223
  }
198
224
  exports.useCreateNonceMutation = useCreateNonceMutation;
225
+ exports.CreateTonNonceDocument = (0, client_1.gql) `
226
+ mutation CreateTonNonce {
227
+ createTonNonce
228
+ }
229
+ `;
230
+ /**
231
+ * __useCreateTonNonceMutation__
232
+ *
233
+ * To run a mutation, you first call `useCreateTonNonceMutation` within a React component and pass it any options that fit your needs.
234
+ * When your component renders, `useCreateTonNonceMutation` returns a tuple that includes:
235
+ * - A mutate function that you can call at any time to execute the mutation
236
+ * - An object with fields that represent the current status of the mutation's execution
237
+ *
238
+ * @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;
239
+ *
240
+ * @example
241
+ * const [createTonNonceMutation, { data, loading, error }] = useCreateTonNonceMutation({
242
+ * variables: {
243
+ * },
244
+ * });
245
+ */
246
+ function useCreateTonNonceMutation(baseOptions) {
247
+ return Apollo.useMutation(exports.CreateTonNonceDocument, baseOptions);
248
+ }
249
+ exports.useCreateTonNonceMutation = useCreateTonNonceMutation;
199
250
  exports.GenerateNewInviteCodesDocument = (0, client_1.gql) `
200
251
  mutation GenerateNewInviteCodes($codesNum: Int!) {
201
252
  generateNewInviteCodes(codesNum: $codesNum) {
@@ -597,8 +648,8 @@ function useSignInTezosMutation(baseOptions) {
597
648
  }
598
649
  exports.useSignInTezosMutation = useSignInTezosMutation;
599
650
  exports.SignInTonDocument = (0, client_1.gql) `
600
- mutation SignInTon($signature: String!, $address: String!, $restore: Boolean) {
601
- signInTon(signature: $signature, address: $address, restore: $restore) {
651
+ mutation SignInTon($request: CheckTonProofRequest!, $restore: Boolean) {
652
+ signInTon(request: $request, restore: $restore) {
602
653
  userId
603
654
  wallets
604
655
  tokens {
@@ -630,8 +681,7 @@ exports.SignInTonDocument = (0, client_1.gql) `
630
681
  * @example
631
682
  * const [signInTonMutation, { data, loading, error }] = useSignInTonMutation({
632
683
  * variables: {
633
- * signature: // value for 'signature'
634
- * address: // value for 'address'
684
+ * request: // value for 'request'
635
685
  * restore: // value for 'restore'
636
686
  * },
637
687
  * });
@@ -722,72 +772,6 @@ function useFetchMultiversXAuditLazyQuery(baseOptions) {
722
772
  return Apollo.useLazyQuery(exports.FetchMultiversXAuditDocument, baseOptions);
723
773
  }
724
774
  exports.useFetchMultiversXAuditLazyQuery = useFetchMultiversXAuditLazyQuery;
725
- exports.FetchMyProfileDocument = (0, client_1.gql) `
726
- query FetchMyProfile {
727
- fetchMyProfile {
728
- userId
729
- username
730
- about
731
- userpic
732
- following
733
- followings
734
- followers
735
- social {
736
- facebook
737
- twitter
738
- instagram
739
- website
740
- }
741
- views
742
- createdAt
743
- deletedAt
744
- visible
745
- deleted
746
- showNsfw
747
- rank
748
- wallets {
749
- userId
750
- address
751
- walletName
752
- blockchain
753
- chainId
754
- }
755
- xps
756
- level
757
- levelMinXps
758
- levelMaxXps
759
- inviteCodes {
760
- inviteCode
761
- inviteeId
762
- isUsed
763
- usedAt
764
- }
765
- }
766
- }
767
- `;
768
- /**
769
- * __useFetchMyProfileQuery__
770
- *
771
- * To run a query within a React component, call `useFetchMyProfileQuery` and pass it any options that fit your needs.
772
- * When your component renders, `useFetchMyProfileQuery` returns an object from Apollo Client that contains loading, error, and data properties
773
- * you can use to render your UI.
774
- *
775
- * @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;
776
- *
777
- * @example
778
- * const { data, loading, error } = useFetchMyProfileQuery({
779
- * variables: {
780
- * },
781
- * });
782
- */
783
- function useFetchMyProfileQuery(baseOptions) {
784
- return Apollo.useQuery(exports.FetchMyProfileDocument, baseOptions);
785
- }
786
- exports.useFetchMyProfileQuery = useFetchMyProfileQuery;
787
- function useFetchMyProfileLazyQuery(baseOptions) {
788
- return Apollo.useLazyQuery(exports.FetchMyProfileDocument, baseOptions);
789
- }
790
- exports.useFetchMyProfileLazyQuery = useFetchMyProfileLazyQuery;
791
775
  exports.FetchMyProfileV2Document = (0, client_1.gql) `
792
776
  query FetchMyProfileV2 {
793
777
  fetchMyProfileV2 {
@@ -951,36 +935,3 @@ function useFetchUserWalletsLazyQuery(baseOptions) {
951
935
  return Apollo.useLazyQuery(exports.FetchUserWalletsDocument, baseOptions);
952
936
  }
953
937
  exports.useFetchUserWalletsLazyQuery = useFetchUserWalletsLazyQuery;
954
- exports.GetMyInviteCodesDocument = (0, client_1.gql) `
955
- query GetMyInviteCodes {
956
- getMyInviteCodes {
957
- inviteCode
958
- inviteeId
959
- isUsed
960
- usedAt
961
- }
962
- }
963
- `;
964
- /**
965
- * __useGetMyInviteCodesQuery__
966
- *
967
- * To run a query within a React component, call `useGetMyInviteCodesQuery` and pass it any options that fit your needs.
968
- * When your component renders, `useGetMyInviteCodesQuery` returns an object from Apollo Client that contains loading, error, and data properties
969
- * you can use to render your UI.
970
- *
971
- * @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;
972
- *
973
- * @example
974
- * const { data, loading, error } = useGetMyInviteCodesQuery({
975
- * variables: {
976
- * },
977
- * });
978
- */
979
- function useGetMyInviteCodesQuery(baseOptions) {
980
- return Apollo.useQuery(exports.GetMyInviteCodesDocument, baseOptions);
981
- }
982
- exports.useGetMyInviteCodesQuery = useGetMyInviteCodesQuery;
983
- function useGetMyInviteCodesLazyQuery(baseOptions) {
984
- return Apollo.useLazyQuery(exports.GetMyInviteCodesDocument, baseOptions);
985
- }
986
- exports.useGetMyInviteCodesLazyQuery = useGetMyInviteCodesLazyQuery;