// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/gov/v1beta1/genesis.proto (package cosmos.gov.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Deposit, DepositParams, Proposal, TallyParams, Vote, VotingParams } from "./gov_pb.js"; /** * GenesisState defines the gov module's genesis state. * * @generated from message cosmos.gov.v1beta1.GenesisState */ export class GenesisState extends Message { /** * starting_proposal_id is the ID of the starting proposal. * * @generated from field: uint64 starting_proposal_id = 1; */ startingProposalId = protoInt64.zero; /** * deposits defines all the deposits present at genesis. * * @generated from field: repeated cosmos.gov.v1beta1.Deposit deposits = 2; */ deposits: Deposit[] = []; /** * votes defines all the votes present at genesis. * * @generated from field: repeated cosmos.gov.v1beta1.Vote votes = 3; */ votes: Vote[] = []; /** * proposals defines all the proposals present at genesis. * * @generated from field: repeated cosmos.gov.v1beta1.Proposal proposals = 4; */ proposals: Proposal[] = []; /** * params defines all the parameters of related to deposit. * * @generated from field: cosmos.gov.v1beta1.DepositParams deposit_params = 5; */ depositParams?: DepositParams; /** * params defines all the parameters of related to voting. * * @generated from field: cosmos.gov.v1beta1.VotingParams voting_params = 6; */ votingParams?: VotingParams; /** * params defines all the parameters of related to tally. * * @generated from field: cosmos.gov.v1beta1.TallyParams tally_params = 7; */ tallyParams?: TallyParams; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.gov.v1beta1.GenesisState"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "starting_proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "deposits", kind: "message", T: Deposit, repeated: true }, { no: 3, name: "votes", kind: "message", T: Vote, repeated: true }, { no: 4, name: "proposals", kind: "message", T: Proposal, repeated: true }, { no: 5, name: "deposit_params", kind: "message", T: DepositParams }, { no: 6, name: "voting_params", kind: "message", T: VotingParams }, { no: 7, name: "tally_params", kind: "message", T: TallyParams }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { return new GenesisState().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { return new GenesisState().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GenesisState { return new GenesisState().fromJsonString(jsonString, options); } static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { return proto3.util.equals(GenesisState, a, b); } }