// package: cosmos.gov.v1beta1 // file: cosmos/gov/v1beta1/tx.proto /* tslint:disable */ /* eslint-disable */ import * as grpc from "grpc"; import * as cosmos_gov_v1beta1_tx_pb from "../../../cosmos/gov/v1beta1/tx_pb"; import * as cosmos_base_v1beta1_coin_pb from "../../../cosmos/base/v1beta1/coin_pb"; import * as cosmos_gov_v1beta1_gov_pb from "../../../cosmos/gov/v1beta1/gov_pb"; import * as cosmos_proto_cosmos_pb from "../../../cosmos_proto/cosmos_pb"; import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb"; import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb"; interface IMsgService extends grpc.ServiceDefinition { submitProposal: IMsgService_ISubmitProposal; vote: IMsgService_IVote; voteWeighted: IMsgService_IVoteWeighted; deposit: IMsgService_IDeposit; } interface IMsgService_ISubmitProposal extends grpc.MethodDefinition { path: "/cosmos.gov.v1beta1.Msg/SubmitProposal"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IMsgService_IVote extends grpc.MethodDefinition { path: "/cosmos.gov.v1beta1.Msg/Vote"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IMsgService_IVoteWeighted extends grpc.MethodDefinition { path: "/cosmos.gov.v1beta1.Msg/VoteWeighted"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IMsgService_IDeposit extends grpc.MethodDefinition { path: "/cosmos.gov.v1beta1.Msg/Deposit"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } export const MsgService: IMsgService; export interface IMsgServer { submitProposal: grpc.handleUnaryCall; vote: grpc.handleUnaryCall; voteWeighted: grpc.handleUnaryCall; deposit: grpc.handleUnaryCall; } export interface IMsgClient { submitProposal(request: cosmos_gov_v1beta1_tx_pb.MsgSubmitProposal, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgSubmitProposalResponse) => void): grpc.ClientUnaryCall; submitProposal(request: cosmos_gov_v1beta1_tx_pb.MsgSubmitProposal, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgSubmitProposalResponse) => void): grpc.ClientUnaryCall; submitProposal(request: cosmos_gov_v1beta1_tx_pb.MsgSubmitProposal, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgSubmitProposalResponse) => void): grpc.ClientUnaryCall; vote(request: cosmos_gov_v1beta1_tx_pb.MsgVote, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgVoteResponse) => void): grpc.ClientUnaryCall; vote(request: cosmos_gov_v1beta1_tx_pb.MsgVote, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgVoteResponse) => void): grpc.ClientUnaryCall; vote(request: cosmos_gov_v1beta1_tx_pb.MsgVote, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgVoteResponse) => void): grpc.ClientUnaryCall; voteWeighted(request: cosmos_gov_v1beta1_tx_pb.MsgVoteWeighted, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgVoteWeightedResponse) => void): grpc.ClientUnaryCall; voteWeighted(request: cosmos_gov_v1beta1_tx_pb.MsgVoteWeighted, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgVoteWeightedResponse) => void): grpc.ClientUnaryCall; voteWeighted(request: cosmos_gov_v1beta1_tx_pb.MsgVoteWeighted, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgVoteWeightedResponse) => void): grpc.ClientUnaryCall; deposit(request: cosmos_gov_v1beta1_tx_pb.MsgDeposit, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgDepositResponse) => void): grpc.ClientUnaryCall; deposit(request: cosmos_gov_v1beta1_tx_pb.MsgDeposit, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgDepositResponse) => void): grpc.ClientUnaryCall; deposit(request: cosmos_gov_v1beta1_tx_pb.MsgDeposit, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgDepositResponse) => void): grpc.ClientUnaryCall; } export class MsgClient extends grpc.Client implements IMsgClient { constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); public submitProposal(request: cosmos_gov_v1beta1_tx_pb.MsgSubmitProposal, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgSubmitProposalResponse) => void): grpc.ClientUnaryCall; public submitProposal(request: cosmos_gov_v1beta1_tx_pb.MsgSubmitProposal, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgSubmitProposalResponse) => void): grpc.ClientUnaryCall; public submitProposal(request: cosmos_gov_v1beta1_tx_pb.MsgSubmitProposal, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgSubmitProposalResponse) => void): grpc.ClientUnaryCall; public vote(request: cosmos_gov_v1beta1_tx_pb.MsgVote, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgVoteResponse) => void): grpc.ClientUnaryCall; public vote(request: cosmos_gov_v1beta1_tx_pb.MsgVote, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgVoteResponse) => void): grpc.ClientUnaryCall; public vote(request: cosmos_gov_v1beta1_tx_pb.MsgVote, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgVoteResponse) => void): grpc.ClientUnaryCall; public voteWeighted(request: cosmos_gov_v1beta1_tx_pb.MsgVoteWeighted, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgVoteWeightedResponse) => void): grpc.ClientUnaryCall; public voteWeighted(request: cosmos_gov_v1beta1_tx_pb.MsgVoteWeighted, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgVoteWeightedResponse) => void): grpc.ClientUnaryCall; public voteWeighted(request: cosmos_gov_v1beta1_tx_pb.MsgVoteWeighted, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgVoteWeightedResponse) => void): grpc.ClientUnaryCall; public deposit(request: cosmos_gov_v1beta1_tx_pb.MsgDeposit, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgDepositResponse) => void): grpc.ClientUnaryCall; public deposit(request: cosmos_gov_v1beta1_tx_pb.MsgDeposit, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgDepositResponse) => void): grpc.ClientUnaryCall; public deposit(request: cosmos_gov_v1beta1_tx_pb.MsgDeposit, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: cosmos_gov_v1beta1_tx_pb.MsgDepositResponse) => void): grpc.ClientUnaryCall; }