// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/gov/v1beta1/tx.proto (package cosmos.gov.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Coin } from "../../base/v1beta1/coin_pb.js"; import { VoteOption, WeightedVoteOption } from "./gov_pb.js"; /** * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary * proposal Content. * * @generated from message cosmos.gov.v1beta1.MsgSubmitProposal */ export class MsgSubmitProposal extends Message { /** * content is the proposal's content. * * @generated from field: google.protobuf.Any content = 1; */ content?: Any; /** * initial_deposit is the deposit value that must be paid at proposal submission. * * @generated from field: repeated cosmos.base.v1beta1.Coin initial_deposit = 2; */ initialDeposit: Coin[] = []; /** * proposer is the account address of the proposer. * * @generated from field: string proposer = 3; */ proposer = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.gov.v1beta1.MsgSubmitProposal"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "content", kind: "message", T: Any }, { no: 2, name: "initial_deposit", kind: "message", T: Coin, repeated: true }, { no: 3, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposal { return new MsgSubmitProposal().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposal { return new MsgSubmitProposal().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposal { return new MsgSubmitProposal().fromJsonString(jsonString, options); } static equals(a: MsgSubmitProposal | PlainMessage | undefined, b: MsgSubmitProposal | PlainMessage | undefined): boolean { return proto3.util.equals(MsgSubmitProposal, a, b); } } /** * MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. * * @generated from message cosmos.gov.v1beta1.MsgSubmitProposalResponse */ export class MsgSubmitProposalResponse extends Message { /** * proposal_id defines the unique id of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.gov.v1beta1.MsgSubmitProposalResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposalResponse { return new MsgSubmitProposalResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposalResponse { return new MsgSubmitProposalResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposalResponse { return new MsgSubmitProposalResponse().fromJsonString(jsonString, options); } static equals(a: MsgSubmitProposalResponse | PlainMessage | undefined, b: MsgSubmitProposalResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgSubmitProposalResponse, a, b); } } /** * MsgVote defines a message to cast a vote. * * @generated from message cosmos.gov.v1beta1.MsgVote */ export class MsgVote extends Message { /** * proposal_id defines the unique id of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId = protoInt64.zero; /** * voter is the voter address for the proposal. * * @generated from field: string voter = 2; */ voter = ""; /** * option defines the vote option. * * @generated from field: cosmos.gov.v1beta1.VoteOption option = 3; */ option = VoteOption.UNSPECIFIED; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.gov.v1beta1.MsgVote"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgVote { return new MsgVote().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgVote { return new MsgVote().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgVote { return new MsgVote().fromJsonString(jsonString, options); } static equals(a: MsgVote | PlainMessage | undefined, b: MsgVote | PlainMessage | undefined): boolean { return proto3.util.equals(MsgVote, a, b); } } /** * MsgVoteResponse defines the Msg/Vote response type. * * @generated from message cosmos.gov.v1beta1.MsgVoteResponse */ export class MsgVoteResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.gov.v1beta1.MsgVoteResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteResponse { return new MsgVoteResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteResponse { return new MsgVoteResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgVoteResponse { return new MsgVoteResponse().fromJsonString(jsonString, options); } static equals(a: MsgVoteResponse | PlainMessage | undefined, b: MsgVoteResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgVoteResponse, a, b); } } /** * MsgVoteWeighted defines a message to cast a vote. * * Since: cosmos-sdk 0.43 * * @generated from message cosmos.gov.v1beta1.MsgVoteWeighted */ export class MsgVoteWeighted extends Message { /** * proposal_id defines the unique id of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId = protoInt64.zero; /** * voter is the voter address for the proposal. * * @generated from field: string voter = 2; */ voter = ""; /** * options defines the weighted vote options. * * @generated from field: repeated cosmos.gov.v1beta1.WeightedVoteOption options = 3; */ options: WeightedVoteOption[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.gov.v1beta1.MsgVoteWeighted"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "options", kind: "message", T: WeightedVoteOption, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteWeighted { return new MsgVoteWeighted().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteWeighted { return new MsgVoteWeighted().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgVoteWeighted { return new MsgVoteWeighted().fromJsonString(jsonString, options); } static equals(a: MsgVoteWeighted | PlainMessage | undefined, b: MsgVoteWeighted | PlainMessage | undefined): boolean { return proto3.util.equals(MsgVoteWeighted, a, b); } } /** * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. * * Since: cosmos-sdk 0.43 * * @generated from message cosmos.gov.v1beta1.MsgVoteWeightedResponse */ export class MsgVoteWeightedResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.gov.v1beta1.MsgVoteWeightedResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteWeightedResponse { return new MsgVoteWeightedResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteWeightedResponse { return new MsgVoteWeightedResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgVoteWeightedResponse { return new MsgVoteWeightedResponse().fromJsonString(jsonString, options); } static equals(a: MsgVoteWeightedResponse | PlainMessage | undefined, b: MsgVoteWeightedResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgVoteWeightedResponse, a, b); } } /** * MsgDeposit defines a message to submit a deposit to an existing proposal. * * @generated from message cosmos.gov.v1beta1.MsgDeposit */ export class MsgDeposit extends Message { /** * proposal_id defines the unique id of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId = protoInt64.zero; /** * depositor defines the deposit addresses from the proposals. * * @generated from field: string depositor = 2; */ depositor = ""; /** * amount to be deposited by depositor. * * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; */ amount: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.gov.v1beta1.MsgDeposit"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { return new MsgDeposit().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { return new MsgDeposit().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { return new MsgDeposit().fromJsonString(jsonString, options); } static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { return proto3.util.equals(MsgDeposit, a, b); } } /** * MsgDepositResponse defines the Msg/Deposit response type. * * @generated from message cosmos.gov.v1beta1.MsgDepositResponse */ export class MsgDepositResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.gov.v1beta1.MsgDepositResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { return new MsgDepositResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { return new MsgDepositResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { return new MsgDepositResponse().fromJsonString(jsonString, options); } static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgDepositResponse, a, b); } }