@mysten/sui
Version:
Sui TypeScript API
86 lines (85 loc) • 5.08 kB
text/typescript
import { BatchGetObjectsRequest, BatchGetObjectsResponse, BatchGetTransactionsRequest, BatchGetTransactionsResponse, GetCheckpointRequest, GetCheckpointResponse, GetEpochRequest, GetEpochResponse, GetObjectRequest, GetObjectResponse, GetServiceInfoRequest, GetServiceInfoResponse, GetTransactionRequest, GetTransactionResponse } from "./ledger_service.mjs";
import * as _protobuf_ts_runtime0 from "@protobuf-ts/runtime";
import * as _protobuf_ts_runtime_rpc0 from "@protobuf-ts/runtime-rpc";
import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
//#region src/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts
/**
* @generated from protobuf service sui.rpc.v2.LedgerService
*/
interface ILedgerServiceClient {
/**
* Query the service for general information about its current state.
*
* @generated from protobuf rpc: GetServiceInfo(sui.rpc.v2.GetServiceInfoRequest) returns (sui.rpc.v2.GetServiceInfoResponse);
*/
getServiceInfo(input: GetServiceInfoRequest, options?: RpcOptions): UnaryCall<GetServiceInfoRequest, GetServiceInfoResponse>;
/**
* @generated from protobuf rpc: GetObject(sui.rpc.v2.GetObjectRequest) returns (sui.rpc.v2.GetObjectResponse);
*/
getObject(input: GetObjectRequest, options?: RpcOptions): UnaryCall<GetObjectRequest, GetObjectResponse>;
/**
* @generated from protobuf rpc: BatchGetObjects(sui.rpc.v2.BatchGetObjectsRequest) returns (sui.rpc.v2.BatchGetObjectsResponse);
*/
batchGetObjects(input: BatchGetObjectsRequest, options?: RpcOptions): UnaryCall<BatchGetObjectsRequest, BatchGetObjectsResponse>;
/**
* @generated from protobuf rpc: GetTransaction(sui.rpc.v2.GetTransactionRequest) returns (sui.rpc.v2.GetTransactionResponse);
*/
getTransaction(input: GetTransactionRequest, options?: RpcOptions): UnaryCall<GetTransactionRequest, GetTransactionResponse>;
/**
* @generated from protobuf rpc: BatchGetTransactions(sui.rpc.v2.BatchGetTransactionsRequest) returns (sui.rpc.v2.BatchGetTransactionsResponse);
*/
batchGetTransactions(input: BatchGetTransactionsRequest, options?: RpcOptions): UnaryCall<BatchGetTransactionsRequest, BatchGetTransactionsResponse>;
/**
* @generated from protobuf rpc: GetCheckpoint(sui.rpc.v2.GetCheckpointRequest) returns (sui.rpc.v2.GetCheckpointResponse);
*/
getCheckpoint(input: GetCheckpointRequest, options?: RpcOptions): UnaryCall<GetCheckpointRequest, GetCheckpointResponse>;
/**
* @generated from protobuf rpc: GetEpoch(sui.rpc.v2.GetEpochRequest) returns (sui.rpc.v2.GetEpochResponse);
*/
getEpoch(input: GetEpochRequest, options?: RpcOptions): UnaryCall<GetEpochRequest, GetEpochResponse>;
}
/**
* @generated from protobuf service sui.rpc.v2.LedgerService
*/
declare class LedgerServiceClient implements ILedgerServiceClient, ServiceInfo {
private readonly _transport;
typeName: string;
methods: _protobuf_ts_runtime_rpc0.MethodInfo<any, any>[];
options: {
[extensionName: string]: _protobuf_ts_runtime0.JsonValue;
};
constructor(_transport: RpcTransport);
/**
* Query the service for general information about its current state.
*
* @generated from protobuf rpc: GetServiceInfo(sui.rpc.v2.GetServiceInfoRequest) returns (sui.rpc.v2.GetServiceInfoResponse);
*/
getServiceInfo(input: GetServiceInfoRequest, options?: RpcOptions): UnaryCall<GetServiceInfoRequest, GetServiceInfoResponse>;
/**
* @generated from protobuf rpc: GetObject(sui.rpc.v2.GetObjectRequest) returns (sui.rpc.v2.GetObjectResponse);
*/
getObject(input: GetObjectRequest, options?: RpcOptions): UnaryCall<GetObjectRequest, GetObjectResponse>;
/**
* @generated from protobuf rpc: BatchGetObjects(sui.rpc.v2.BatchGetObjectsRequest) returns (sui.rpc.v2.BatchGetObjectsResponse);
*/
batchGetObjects(input: BatchGetObjectsRequest, options?: RpcOptions): UnaryCall<BatchGetObjectsRequest, BatchGetObjectsResponse>;
/**
* @generated from protobuf rpc: GetTransaction(sui.rpc.v2.GetTransactionRequest) returns (sui.rpc.v2.GetTransactionResponse);
*/
getTransaction(input: GetTransactionRequest, options?: RpcOptions): UnaryCall<GetTransactionRequest, GetTransactionResponse>;
/**
* @generated from protobuf rpc: BatchGetTransactions(sui.rpc.v2.BatchGetTransactionsRequest) returns (sui.rpc.v2.BatchGetTransactionsResponse);
*/
batchGetTransactions(input: BatchGetTransactionsRequest, options?: RpcOptions): UnaryCall<BatchGetTransactionsRequest, BatchGetTransactionsResponse>;
/**
* @generated from protobuf rpc: GetCheckpoint(sui.rpc.v2.GetCheckpointRequest) returns (sui.rpc.v2.GetCheckpointResponse);
*/
getCheckpoint(input: GetCheckpointRequest, options?: RpcOptions): UnaryCall<GetCheckpointRequest, GetCheckpointResponse>;
/**
* @generated from protobuf rpc: GetEpoch(sui.rpc.v2.GetEpochRequest) returns (sui.rpc.v2.GetEpochResponse);
*/
getEpoch(input: GetEpochRequest, options?: RpcOptions): UnaryCall<GetEpochRequest, GetEpochResponse>;
}
//#endregion
export { LedgerServiceClient };
//# sourceMappingURL=ledger_service.client.d.mts.map