// Copyright (c) Mysten Labs, Inc. // SPDX-License-Identifier: Apache-2.0 // @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck // @generated from protobuf file "sui/rpc/v2/move_package_service.proto" (package "sui.rpc.v2", syntax proto3) // tslint:disable // @ts-nocheck // // Copyright (c) Mysten Labs, Inc. // SPDX-License-Identifier: Apache-2.0 // import type { RpcTransport } from '@protobuf-ts/runtime-rpc'; import type { ServiceInfo } from '@protobuf-ts/runtime-rpc'; import { MovePackageService } from './move_package_service.js'; import type { ListPackageVersionsResponse } from './move_package_service.js'; import type { ListPackageVersionsRequest } from './move_package_service.js'; import type { GetFunctionResponse } from './move_package_service.js'; import type { GetFunctionRequest } from './move_package_service.js'; import type { GetDatatypeResponse } from './move_package_service.js'; import type { GetDatatypeRequest } from './move_package_service.js'; import { stackIntercept } from '@protobuf-ts/runtime-rpc'; import type { GetPackageResponse } from './move_package_service.js'; import type { GetPackageRequest } from './move_package_service.js'; import type { UnaryCall } from '@protobuf-ts/runtime-rpc'; import type { RpcOptions } from '@protobuf-ts/runtime-rpc'; /** * @generated from protobuf service sui.rpc.v2.MovePackageService */ export interface IMovePackageServiceClient { /** * @generated from protobuf rpc: GetPackage(sui.rpc.v2.GetPackageRequest) returns (sui.rpc.v2.GetPackageResponse); */ getPackage( input: GetPackageRequest, options?: RpcOptions, ): UnaryCall; /** * @generated from protobuf rpc: GetDatatype(sui.rpc.v2.GetDatatypeRequest) returns (sui.rpc.v2.GetDatatypeResponse); */ getDatatype( input: GetDatatypeRequest, options?: RpcOptions, ): UnaryCall; /** * @generated from protobuf rpc: GetFunction(sui.rpc.v2.GetFunctionRequest) returns (sui.rpc.v2.GetFunctionResponse); */ getFunction( input: GetFunctionRequest, options?: RpcOptions, ): UnaryCall; /** * @generated from protobuf rpc: ListPackageVersions(sui.rpc.v2.ListPackageVersionsRequest) returns (sui.rpc.v2.ListPackageVersionsResponse); */ listPackageVersions( input: ListPackageVersionsRequest, options?: RpcOptions, ): UnaryCall; } /** * @generated from protobuf service sui.rpc.v2.MovePackageService */ export class MovePackageServiceClient implements IMovePackageServiceClient, ServiceInfo { typeName = MovePackageService.typeName; methods = MovePackageService.methods; options = MovePackageService.options; constructor(private readonly _transport: RpcTransport) {} /** * @generated from protobuf rpc: GetPackage(sui.rpc.v2.GetPackageRequest) returns (sui.rpc.v2.GetPackageResponse); */ getPackage( input: GetPackageRequest, options?: RpcOptions, ): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept( 'unary', this._transport, method, opt, input, ); } /** * @generated from protobuf rpc: GetDatatype(sui.rpc.v2.GetDatatypeRequest) returns (sui.rpc.v2.GetDatatypeResponse); */ getDatatype( input: GetDatatypeRequest, options?: RpcOptions, ): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept( 'unary', this._transport, method, opt, input, ); } /** * @generated from protobuf rpc: GetFunction(sui.rpc.v2.GetFunctionRequest) returns (sui.rpc.v2.GetFunctionResponse); */ getFunction( input: GetFunctionRequest, options?: RpcOptions, ): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept( 'unary', this._transport, method, opt, input, ); } /** * @generated from protobuf rpc: ListPackageVersions(sui.rpc.v2.ListPackageVersionsRequest) returns (sui.rpc.v2.ListPackageVersionsResponse); */ listPackageVersions( input: ListPackageVersionsRequest, options?: RpcOptions, ): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept( 'unary', this._transport, method, opt, input, ); } }