@@ -38,6 +38,10 @@ export interface UploadSnapshotRequest {
3838 shardIndexes : number [ ] ;
3939}
4040
41+ export interface RunOnchainEventsMigrationRequest {
42+ shardId : number ;
43+ }
44+
4145function createBaseEmpty ( ) : Empty {
4246 return { } ;
4347}
@@ -369,6 +373,66 @@ export const UploadSnapshotRequest = {
369373 } ,
370374} ;
371375
376+ function createBaseRunOnchainEventsMigrationRequest ( ) : RunOnchainEventsMigrationRequest {
377+ return { shardId : 0 } ;
378+ }
379+
380+ export const RunOnchainEventsMigrationRequest = {
381+ encode ( message : RunOnchainEventsMigrationRequest , writer : _m0 . Writer = _m0 . Writer . create ( ) ) : _m0 . Writer {
382+ if ( message . shardId !== 0 ) {
383+ writer . uint32 ( 8 ) . uint64 ( message . shardId ) ;
384+ }
385+ return writer ;
386+ } ,
387+
388+ decode ( input : _m0 . Reader | Uint8Array , length ?: number ) : RunOnchainEventsMigrationRequest {
389+ const reader = input instanceof _m0 . Reader ? input : _m0 . Reader . create ( input ) ;
390+ let end = length === undefined ? reader . len : reader . pos + length ;
391+ const message = createBaseRunOnchainEventsMigrationRequest ( ) ;
392+ while ( reader . pos < end ) {
393+ const tag = reader . uint32 ( ) ;
394+ switch ( tag >>> 3 ) {
395+ case 1 :
396+ if ( tag != 8 ) {
397+ break ;
398+ }
399+
400+ message . shardId = longToNumber ( reader . uint64 ( ) as Long ) ;
401+ continue ;
402+ }
403+ if ( ( tag & 7 ) == 4 || tag == 0 ) {
404+ break ;
405+ }
406+ reader . skipType ( tag & 7 ) ;
407+ }
408+ return message ;
409+ } ,
410+
411+ fromJSON ( object : any ) : RunOnchainEventsMigrationRequest {
412+ return { shardId : isSet ( object . shardId ) ? Number ( object . shardId ) : 0 } ;
413+ } ,
414+
415+ toJSON ( message : RunOnchainEventsMigrationRequest ) : unknown {
416+ const obj : any = { } ;
417+ message . shardId !== undefined && ( obj . shardId = Math . round ( message . shardId ) ) ;
418+ return obj ;
419+ } ,
420+
421+ create < I extends Exact < DeepPartial < RunOnchainEventsMigrationRequest > , I > > (
422+ base ?: I ,
423+ ) : RunOnchainEventsMigrationRequest {
424+ return RunOnchainEventsMigrationRequest . fromPartial ( base ?? { } ) ;
425+ } ,
426+
427+ fromPartial < I extends Exact < DeepPartial < RunOnchainEventsMigrationRequest > , I > > (
428+ object : I ,
429+ ) : RunOnchainEventsMigrationRequest {
430+ const message = createBaseRunOnchainEventsMigrationRequest ( ) ;
431+ message . shardId = object . shardId ?? 0 ;
432+ return message ;
433+ } ,
434+ } ;
435+
372436export type AdminServiceService = typeof AdminServiceService ;
373437export const AdminServiceService = {
374438 submitOnChainEvent : {
@@ -417,6 +481,16 @@ export const AdminServiceService = {
417481 responseSerialize : ( value : Empty ) => Buffer . from ( Empty . encode ( value ) . finish ( ) ) ,
418482 responseDeserialize : ( value : Buffer ) => Empty . decode ( value ) ,
419483 } ,
484+ runOnchainEventsMigration : {
485+ path : "/AdminService/RunOnchainEventsMigration" ,
486+ requestStream : false ,
487+ responseStream : false ,
488+ requestSerialize : ( value : RunOnchainEventsMigrationRequest ) =>
489+ Buffer . from ( RunOnchainEventsMigrationRequest . encode ( value ) . finish ( ) ) ,
490+ requestDeserialize : ( value : Buffer ) => RunOnchainEventsMigrationRequest . decode ( value ) ,
491+ responseSerialize : ( value : Empty ) => Buffer . from ( Empty . encode ( value ) . finish ( ) ) ,
492+ responseDeserialize : ( value : Buffer ) => Empty . decode ( value ) ,
493+ } ,
420494} as const ;
421495
422496export interface AdminServiceServer extends UntypedServiceImplementation {
@@ -425,6 +499,7 @@ export interface AdminServiceServer extends UntypedServiceImplementation {
425499 uploadSnapshot : handleUnaryCall < UploadSnapshotRequest , Empty > ;
426500 retryOnchainEvents : handleUnaryCall < RetryOnchainEventsRequest , Empty > ;
427501 retryFnameEvents : handleUnaryCall < RetryFnameRequest , Empty > ;
502+ runOnchainEventsMigration : handleUnaryCall < RunOnchainEventsMigrationRequest , Empty > ;
428503}
429504
430505export interface AdminServiceClient extends Client {
@@ -503,6 +578,21 @@ export interface AdminServiceClient extends Client {
503578 options : Partial < CallOptions > ,
504579 callback : ( error : ServiceError | null , response : Empty ) => void ,
505580 ) : ClientUnaryCall ;
581+ runOnchainEventsMigration (
582+ request : RunOnchainEventsMigrationRequest ,
583+ callback : ( error : ServiceError | null , response : Empty ) => void ,
584+ ) : ClientUnaryCall ;
585+ runOnchainEventsMigration (
586+ request : RunOnchainEventsMigrationRequest ,
587+ metadata : Metadata ,
588+ callback : ( error : ServiceError | null , response : Empty ) => void ,
589+ ) : ClientUnaryCall ;
590+ runOnchainEventsMigration (
591+ request : RunOnchainEventsMigrationRequest ,
592+ metadata : Metadata ,
593+ options : Partial < CallOptions > ,
594+ callback : ( error : ServiceError | null , response : Empty ) => void ,
595+ ) : ClientUnaryCall ;
506596}
507597
508598export const AdminServiceClient = makeGenericClientConstructor ( AdminServiceService , "AdminService" ) as unknown as {
0 commit comments