UNPKG

xud

Version:
31 lines (30 loc) 1.08 kB
import grpc from 'grpc'; import InitService from '../service/InitService'; import * as xudrpc from '../proto/xudrpc_pb'; declare class GrpcInitService { private disabled; private initService?; constructor(); setInitService: (initService: InitService) => void; /** Disables the grpc initialization service once xud has been intialized. */ disable: () => void; /** * Checks whether this service is ready to handle calls and sends an error to the client * caller if not ready. * @returns `true` if the service is ready, otherwise `false` */ private isReady; /** * See [[InitService.createNode]] */ createNode: grpc.handleUnaryCall<xudrpc.CreateNodeRequest, xudrpc.CreateNodeResponse>; /** * See [[InitService.unlockNode]] */ unlockNode: grpc.handleUnaryCall<xudrpc.UnlockNodeRequest, xudrpc.UnlockNodeResponse>; /** * See [[InitService.restoreNode]] */ restoreNode: grpc.handleUnaryCall<xudrpc.RestoreNodeRequest, xudrpc.RestoreNodeResponse>; } export default GrpcInitService;