wowok
Version:
Wowok Blockchain TypeScript API
44 lines (43 loc) • 3.34 kB
TypeScript
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import type { GetEpochResponse } from "./ledger_service.js";
import type { GetEpochRequest } from "./ledger_service.js";
import type { GetCheckpointResponse } from "./ledger_service.js";
import type { GetCheckpointRequest } from "./ledger_service.js";
import type { BatchGetTransactionsResponse } from "./ledger_service.js";
import type { BatchGetTransactionsRequest } from "./ledger_service.js";
import type { GetTransactionResponse } from "./ledger_service.js";
import type { GetTransactionRequest } from "./ledger_service.js";
import type { BatchGetObjectsResponse } from "./ledger_service.js";
import type { BatchGetObjectsRequest } from "./ledger_service.js";
import type { GetObjectResponse } from "./ledger_service.js";
import type { GetObjectRequest } from "./ledger_service.js";
import type { GetServiceInfoResponse } from "./ledger_service.js";
import type { GetServiceInfoRequest } from "./ledger_service.js";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
export interface ILedgerServiceClient {
getServiceInfo(input: GetServiceInfoRequest, options?: RpcOptions): UnaryCall<GetServiceInfoRequest, GetServiceInfoResponse>;
getObject(input: GetObjectRequest, options?: RpcOptions): UnaryCall<GetObjectRequest, GetObjectResponse>;
batchGetObjects(input: BatchGetObjectsRequest, options?: RpcOptions): UnaryCall<BatchGetObjectsRequest, BatchGetObjectsResponse>;
getTransaction(input: GetTransactionRequest, options?: RpcOptions): UnaryCall<GetTransactionRequest, GetTransactionResponse>;
batchGetTransactions(input: BatchGetTransactionsRequest, options?: RpcOptions): UnaryCall<BatchGetTransactionsRequest, BatchGetTransactionsResponse>;
getCheckpoint(input: GetCheckpointRequest, options?: RpcOptions): UnaryCall<GetCheckpointRequest, GetCheckpointResponse>;
getEpoch(input: GetEpochRequest, options?: RpcOptions): UnaryCall<GetEpochRequest, GetEpochResponse>;
}
export declare class LedgerServiceClient implements ILedgerServiceClient, ServiceInfo {
private readonly _transport;
typeName: string;
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
options: {
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
};
constructor(_transport: RpcTransport);
getServiceInfo(input: GetServiceInfoRequest, options?: RpcOptions): UnaryCall<GetServiceInfoRequest, GetServiceInfoResponse>;
getObject(input: GetObjectRequest, options?: RpcOptions): UnaryCall<GetObjectRequest, GetObjectResponse>;
batchGetObjects(input: BatchGetObjectsRequest, options?: RpcOptions): UnaryCall<BatchGetObjectsRequest, BatchGetObjectsResponse>;
getTransaction(input: GetTransactionRequest, options?: RpcOptions): UnaryCall<GetTransactionRequest, GetTransactionResponse>;
batchGetTransactions(input: BatchGetTransactionsRequest, options?: RpcOptions): UnaryCall<BatchGetTransactionsRequest, BatchGetTransactionsResponse>;
getCheckpoint(input: GetCheckpointRequest, options?: RpcOptions): UnaryCall<GetCheckpointRequest, GetCheckpointResponse>;
getEpoch(input: GetEpochRequest, options?: RpcOptions): UnaryCall<GetEpochRequest, GetEpochResponse>;
}