@dojima-wallet/operator-gateway
Version:
Operator gateway client involving dojima stack
14 lines (13 loc) • 698 B
TypeScript
import { AddChainClientParam, GRPCClientParams } from "./types";
import { ServiceError } from "@grpc/grpc-js";
import { AddChainClientResponse } from "./proto/operator_pb";
export interface OperatorClient {
addChainClient(params: AddChainClientParam, callback: (error: ServiceError | null, response: AddChainClientResponse) => void): void;
}
export declare const noop: () => void;
declare class OperatorGatewayClient implements OperatorClient {
private client;
constructor({ server }: GRPCClientParams);
addChainClient(params: AddChainClientParam, callback: (error: ServiceError | null, response: AddChainClientResponse) => void): Promise<void>;
}
export { OperatorGatewayClient };