UNPKG

wowok

Version:

Wowok Blockchain TypeScript API

31 lines (30 loc) 1.61 kB
import type { GrpcWebOptions } from "@protobuf-ts/grpcweb-transport"; import { TransactionExecutionServiceClient } from "./proto/sui/rpc/v2/transaction_execution_service.client.js"; import { LedgerServiceClient } from "./proto/sui/rpc/v2/ledger_service.client.js"; import { MovePackageServiceClient } from "./proto/sui/rpc/v2/move_package_service.client.js"; import { SignatureVerificationServiceClient } from "./proto/sui/rpc/v2/signature_verification_service.client.js"; import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import { StateServiceClient } from "./proto/sui/rpc/v2/state_service.client.js"; import { SubscriptionServiceClient } from "./proto/sui/rpc/v2/subscription_service.client.js"; import { GrpcCoreClient } from "./core.js"; import type { Experimental_WowClientTypes } from "../experimental/index.js"; import { Experimental_BaseClient } from "../experimental/index.js"; interface WowGrpcTransportOptions extends GrpcWebOptions { transport?: never; } export type WowGrpcClientOptions = { network: Experimental_WowClientTypes.Network; } & ({ transport: RpcTransport; } | WowGrpcTransportOptions); export declare class WowGrpcClient extends Experimental_BaseClient { core: GrpcCoreClient; transactionExecutionService: TransactionExecutionServiceClient; ledgerService: LedgerServiceClient; stateService: StateServiceClient; subscriptionService: SubscriptionServiceClient; movePackageService: MovePackageServiceClient; signatureVerificationService: SignatureVerificationServiceClient; constructor(options: WowGrpcClientOptions); } export {};