// Since: cosmos-sdk 0.46 // @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/group/v1/genesis.proto (package cosmos.group.v1, 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 { GroupInfo, GroupMember, GroupPolicyInfo, Proposal, Vote } from "./types_pb.js"; /** * GenesisState defines the group module's genesis state. * * @generated from message cosmos.group.v1.GenesisState */ export class GenesisState extends Message { /** * group_seq is the group table orm.Sequence, * it is used to get the next group ID. * * @generated from field: uint64 group_seq = 1; */ groupSeq = protoInt64.zero; /** * groups is the list of groups info. * * @generated from field: repeated cosmos.group.v1.GroupInfo groups = 2; */ groups: GroupInfo[] = []; /** * group_members is the list of groups members. * * @generated from field: repeated cosmos.group.v1.GroupMember group_members = 3; */ groupMembers: GroupMember[] = []; /** * group_policy_seq is the group policy table orm.Sequence, * it is used to generate the next group policy account address. * * @generated from field: uint64 group_policy_seq = 4; */ groupPolicySeq = protoInt64.zero; /** * group_policies is the list of group policies info. * * @generated from field: repeated cosmos.group.v1.GroupPolicyInfo group_policies = 5; */ groupPolicies: GroupPolicyInfo[] = []; /** * proposal_seq is the proposal table orm.Sequence, * it is used to get the next proposal ID. * * @generated from field: uint64 proposal_seq = 6; */ proposalSeq = protoInt64.zero; /** * proposals is the list of proposals. * * @generated from field: repeated cosmos.group.v1.Proposal proposals = 7; */ proposals: Proposal[] = []; /** * votes is the list of votes. * * @generated from field: repeated cosmos.group.v1.Vote votes = 8; */ votes: Vote[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.GenesisState"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "group_seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "groups", kind: "message", T: GroupInfo, repeated: true }, { no: 3, name: "group_members", kind: "message", T: GroupMember, repeated: true }, { no: 4, name: "group_policy_seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 5, name: "group_policies", kind: "message", T: GroupPolicyInfo, repeated: true }, { no: 6, name: "proposal_seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 7, name: "proposals", kind: "message", T: Proposal, repeated: true }, { no: 8, name: "votes", kind: "message", T: Vote, repeated: true }, ]); 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); } }