// Since: cosmos-sdk 0.46 // @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/group/v1/tx.proto (package cosmos.group.v1, 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 { MemberRequest, ProposalExecutorResult, VoteOption } from "./types_pb.js"; /** * Exec defines modes of execution of a proposal on creation or on new vote. * * @generated from enum cosmos.group.v1.Exec */ export enum Exec { /** * An empty value means that there should be a separate * MsgExec request for the proposal to execute. * * @generated from enum value: EXEC_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * Try to execute the proposal immediately. * If the proposal is not allowed per the DecisionPolicy, * the proposal will still be open and could * be executed at a later point. * * @generated from enum value: EXEC_TRY = 1; */ TRY = 1, } // Retrieve enum metadata with: proto3.getEnumType(Exec) proto3.util.setEnumType(Exec, "cosmos.group.v1.Exec", [ { no: 0, name: "EXEC_UNSPECIFIED" }, { no: 1, name: "EXEC_TRY" }, ]); /** * MsgCreateGroup is the Msg/CreateGroup request type. * * @generated from message cosmos.group.v1.MsgCreateGroup */ export class MsgCreateGroup extends Message { /** * admin is the account address of the group admin. * * @generated from field: string admin = 1; */ admin = ""; /** * members defines the group members. * * @generated from field: repeated cosmos.group.v1.MemberRequest members = 2; */ members: MemberRequest[] = []; /** * metadata is any arbitrary metadata to attached to the group. * * @generated from field: string metadata = 3; */ metadata = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgCreateGroup"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "members", kind: "message", T: MemberRequest, repeated: true }, { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroup { return new MsgCreateGroup().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroup { return new MsgCreateGroup().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroup { return new MsgCreateGroup().fromJsonString(jsonString, options); } static equals(a: MsgCreateGroup | PlainMessage | undefined, b: MsgCreateGroup | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateGroup, a, b); } } /** * MsgCreateGroupResponse is the Msg/CreateGroup response type. * * @generated from message cosmos.group.v1.MsgCreateGroupResponse */ export class MsgCreateGroupResponse extends Message { /** * group_id is the unique ID of the newly created group. * * @generated from field: uint64 group_id = 1; */ groupId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgCreateGroupResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroupResponse { return new MsgCreateGroupResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroupResponse { return new MsgCreateGroupResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroupResponse { return new MsgCreateGroupResponse().fromJsonString(jsonString, options); } static equals(a: MsgCreateGroupResponse | PlainMessage | undefined, b: MsgCreateGroupResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateGroupResponse, a, b); } } /** * MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. * * @generated from message cosmos.group.v1.MsgUpdateGroupMembers */ export class MsgUpdateGroupMembers extends Message { /** * admin is the account address of the group admin. * * @generated from field: string admin = 1; */ admin = ""; /** * group_id is the unique ID of the group. * * @generated from field: uint64 group_id = 2; */ groupId = protoInt64.zero; /** * member_updates is the list of members to update, * set weight to 0 to remove a member. * * @generated from field: repeated cosmos.group.v1.MemberRequest member_updates = 3; */ memberUpdates: MemberRequest[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgUpdateGroupMembers"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "member_updates", kind: "message", T: MemberRequest, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupMembers { return new MsgUpdateGroupMembers().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupMembers { return new MsgUpdateGroupMembers().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupMembers { return new MsgUpdateGroupMembers().fromJsonString(jsonString, options); } static equals(a: MsgUpdateGroupMembers | PlainMessage | undefined, b: MsgUpdateGroupMembers | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateGroupMembers, a, b); } } /** * MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. * * @generated from message cosmos.group.v1.MsgUpdateGroupMembersResponse */ export class MsgUpdateGroupMembersResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgUpdateGroupMembersResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupMembersResponse { return new MsgUpdateGroupMembersResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupMembersResponse { return new MsgUpdateGroupMembersResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupMembersResponse { return new MsgUpdateGroupMembersResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateGroupMembersResponse | PlainMessage | undefined, b: MsgUpdateGroupMembersResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateGroupMembersResponse, a, b); } } /** * MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. * * @generated from message cosmos.group.v1.MsgUpdateGroupAdmin */ export class MsgUpdateGroupAdmin extends Message { /** * admin is the current account address of the group admin. * * @generated from field: string admin = 1; */ admin = ""; /** * group_id is the unique ID of the group. * * @generated from field: uint64 group_id = 2; */ groupId = protoInt64.zero; /** * new_admin is the group new admin account address. * * @generated from field: string new_admin = 3; */ newAdmin = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgUpdateGroupAdmin"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupAdmin { return new MsgUpdateGroupAdmin().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupAdmin { return new MsgUpdateGroupAdmin().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupAdmin { return new MsgUpdateGroupAdmin().fromJsonString(jsonString, options); } static equals(a: MsgUpdateGroupAdmin | PlainMessage | undefined, b: MsgUpdateGroupAdmin | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateGroupAdmin, a, b); } } /** * MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. * * @generated from message cosmos.group.v1.MsgUpdateGroupAdminResponse */ export class MsgUpdateGroupAdminResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgUpdateGroupAdminResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupAdminResponse { return new MsgUpdateGroupAdminResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupAdminResponse { return new MsgUpdateGroupAdminResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupAdminResponse { return new MsgUpdateGroupAdminResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateGroupAdminResponse | PlainMessage | undefined, b: MsgUpdateGroupAdminResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateGroupAdminResponse, a, b); } } /** * MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. * * @generated from message cosmos.group.v1.MsgUpdateGroupMetadata */ export class MsgUpdateGroupMetadata extends Message { /** * admin is the account address of the group admin. * * @generated from field: string admin = 1; */ admin = ""; /** * group_id is the unique ID of the group. * * @generated from field: uint64 group_id = 2; */ groupId = protoInt64.zero; /** * metadata is the updated group's metadata. * * @generated from field: string metadata = 3; */ metadata = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgUpdateGroupMetadata"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupMetadata { return new MsgUpdateGroupMetadata().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupMetadata { return new MsgUpdateGroupMetadata().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupMetadata { return new MsgUpdateGroupMetadata().fromJsonString(jsonString, options); } static equals(a: MsgUpdateGroupMetadata | PlainMessage | undefined, b: MsgUpdateGroupMetadata | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateGroupMetadata, a, b); } } /** * MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. * * @generated from message cosmos.group.v1.MsgUpdateGroupMetadataResponse */ export class MsgUpdateGroupMetadataResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgUpdateGroupMetadataResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupMetadataResponse { return new MsgUpdateGroupMetadataResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupMetadataResponse { return new MsgUpdateGroupMetadataResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupMetadataResponse { return new MsgUpdateGroupMetadataResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateGroupMetadataResponse | PlainMessage | undefined, b: MsgUpdateGroupMetadataResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateGroupMetadataResponse, a, b); } } /** * MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. * * @generated from message cosmos.group.v1.MsgCreateGroupPolicy */ export class MsgCreateGroupPolicy extends Message { /** * admin is the account address of the group admin. * * @generated from field: string admin = 1; */ admin = ""; /** * group_id is the unique ID of the group. * * @generated from field: uint64 group_id = 2; */ groupId = protoInt64.zero; /** * metadata is any arbitrary metadata attached to the group policy. * * @generated from field: string metadata = 3; */ metadata = ""; /** * decision_policy specifies the group policy's decision policy. * * @generated from field: google.protobuf.Any decision_policy = 4; */ decisionPolicy?: Any; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgCreateGroupPolicy"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "decision_policy", kind: "message", T: Any }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroupPolicy { return new MsgCreateGroupPolicy().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroupPolicy { return new MsgCreateGroupPolicy().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroupPolicy { return new MsgCreateGroupPolicy().fromJsonString(jsonString, options); } static equals(a: MsgCreateGroupPolicy | PlainMessage | undefined, b: MsgCreateGroupPolicy | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateGroupPolicy, a, b); } } /** * MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. * * @generated from message cosmos.group.v1.MsgCreateGroupPolicyResponse */ export class MsgCreateGroupPolicyResponse extends Message { /** * address is the account address of the newly created group policy. * * @generated from field: string address = 1; */ address = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgCreateGroupPolicyResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroupPolicyResponse { return new MsgCreateGroupPolicyResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroupPolicyResponse { return new MsgCreateGroupPolicyResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroupPolicyResponse { return new MsgCreateGroupPolicyResponse().fromJsonString(jsonString, options); } static equals(a: MsgCreateGroupPolicyResponse | PlainMessage | undefined, b: MsgCreateGroupPolicyResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateGroupPolicyResponse, a, b); } } /** * MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. * * @generated from message cosmos.group.v1.MsgUpdateGroupPolicyAdmin */ export class MsgUpdateGroupPolicyAdmin extends Message { /** * admin is the account address of the group admin. * * @generated from field: string admin = 1; */ admin = ""; /** * group_policy_address is the account address of the group policy. * * @generated from field: string group_policy_address = 2; */ groupPolicyAddress = ""; /** * new_admin is the new group policy admin. * * @generated from field: string new_admin = 3; */ newAdmin = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgUpdateGroupPolicyAdmin"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "group_policy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupPolicyAdmin { return new MsgUpdateGroupPolicyAdmin().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupPolicyAdmin { return new MsgUpdateGroupPolicyAdmin().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupPolicyAdmin { return new MsgUpdateGroupPolicyAdmin().fromJsonString(jsonString, options); } static equals(a: MsgUpdateGroupPolicyAdmin | PlainMessage | undefined, b: MsgUpdateGroupPolicyAdmin | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateGroupPolicyAdmin, a, b); } } /** * MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. * * @generated from message cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse */ export class MsgUpdateGroupPolicyAdminResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupPolicyAdminResponse { return new MsgUpdateGroupPolicyAdminResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupPolicyAdminResponse { return new MsgUpdateGroupPolicyAdminResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupPolicyAdminResponse { return new MsgUpdateGroupPolicyAdminResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateGroupPolicyAdminResponse | PlainMessage | undefined, b: MsgUpdateGroupPolicyAdminResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateGroupPolicyAdminResponse, a, b); } } /** * MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. * * @generated from message cosmos.group.v1.MsgCreateGroupWithPolicy */ export class MsgCreateGroupWithPolicy extends Message { /** * admin is the account address of the group and group policy admin. * * @generated from field: string admin = 1; */ admin = ""; /** * members defines the group members. * * @generated from field: repeated cosmos.group.v1.MemberRequest members = 2; */ members: MemberRequest[] = []; /** * group_metadata is any arbitrary metadata attached to the group. * * @generated from field: string group_metadata = 3; */ groupMetadata = ""; /** * group_policy_metadata is any arbitrary metadata attached to the group policy. * * @generated from field: string group_policy_metadata = 4; */ groupPolicyMetadata = ""; /** * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group * and group policy admin. * * @generated from field: bool group_policy_as_admin = 5; */ groupPolicyAsAdmin = false; /** * decision_policy specifies the group policy's decision policy. * * @generated from field: google.protobuf.Any decision_policy = 6; */ decisionPolicy?: Any; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgCreateGroupWithPolicy"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "members", kind: "message", T: MemberRequest, repeated: true }, { no: 3, name: "group_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "group_policy_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "group_policy_as_admin", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 6, name: "decision_policy", kind: "message", T: Any }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroupWithPolicy { return new MsgCreateGroupWithPolicy().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroupWithPolicy { return new MsgCreateGroupWithPolicy().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroupWithPolicy { return new MsgCreateGroupWithPolicy().fromJsonString(jsonString, options); } static equals(a: MsgCreateGroupWithPolicy | PlainMessage | undefined, b: MsgCreateGroupWithPolicy | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateGroupWithPolicy, a, b); } } /** * MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. * * @generated from message cosmos.group.v1.MsgCreateGroupWithPolicyResponse */ export class MsgCreateGroupWithPolicyResponse extends Message { /** * group_id is the unique ID of the newly created group with policy. * * @generated from field: uint64 group_id = 1; */ groupId = protoInt64.zero; /** * group_policy_address is the account address of the newly created group policy. * * @generated from field: string group_policy_address = 2; */ groupPolicyAddress = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgCreateGroupWithPolicyResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "group_policy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroupWithPolicyResponse { return new MsgCreateGroupWithPolicyResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroupWithPolicyResponse { return new MsgCreateGroupWithPolicyResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroupWithPolicyResponse { return new MsgCreateGroupWithPolicyResponse().fromJsonString(jsonString, options); } static equals(a: MsgCreateGroupWithPolicyResponse | PlainMessage | undefined, b: MsgCreateGroupWithPolicyResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateGroupWithPolicyResponse, a, b); } } /** * MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. * * @generated from message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy */ export class MsgUpdateGroupPolicyDecisionPolicy extends Message { /** * admin is the account address of the group admin. * * @generated from field: string admin = 1; */ admin = ""; /** * group_policy_address is the account address of group policy. * * @generated from field: string group_policy_address = 2; */ groupPolicyAddress = ""; /** * decision_policy is the updated group policy's decision policy. * * @generated from field: google.protobuf.Any decision_policy = 3; */ decisionPolicy?: Any; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "group_policy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "decision_policy", kind: "message", T: Any }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupPolicyDecisionPolicy { return new MsgUpdateGroupPolicyDecisionPolicy().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupPolicyDecisionPolicy { return new MsgUpdateGroupPolicyDecisionPolicy().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupPolicyDecisionPolicy { return new MsgUpdateGroupPolicyDecisionPolicy().fromJsonString(jsonString, options); } static equals(a: MsgUpdateGroupPolicyDecisionPolicy | PlainMessage | undefined, b: MsgUpdateGroupPolicyDecisionPolicy | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateGroupPolicyDecisionPolicy, a, b); } } /** * MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. * * @generated from message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse */ export class MsgUpdateGroupPolicyDecisionPolicyResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupPolicyDecisionPolicyResponse { return new MsgUpdateGroupPolicyDecisionPolicyResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupPolicyDecisionPolicyResponse { return new MsgUpdateGroupPolicyDecisionPolicyResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupPolicyDecisionPolicyResponse { return new MsgUpdateGroupPolicyDecisionPolicyResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateGroupPolicyDecisionPolicyResponse | PlainMessage | undefined, b: MsgUpdateGroupPolicyDecisionPolicyResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateGroupPolicyDecisionPolicyResponse, a, b); } } /** * MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. * * @generated from message cosmos.group.v1.MsgUpdateGroupPolicyMetadata */ export class MsgUpdateGroupPolicyMetadata extends Message { /** * admin is the account address of the group admin. * * @generated from field: string admin = 1; */ admin = ""; /** * group_policy_address is the account address of group policy. * * @generated from field: string group_policy_address = 2; */ groupPolicyAddress = ""; /** * metadata is the group policy metadata to be updated. * * @generated from field: string metadata = 3; */ metadata = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgUpdateGroupPolicyMetadata"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "group_policy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupPolicyMetadata { return new MsgUpdateGroupPolicyMetadata().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupPolicyMetadata { return new MsgUpdateGroupPolicyMetadata().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupPolicyMetadata { return new MsgUpdateGroupPolicyMetadata().fromJsonString(jsonString, options); } static equals(a: MsgUpdateGroupPolicyMetadata | PlainMessage | undefined, b: MsgUpdateGroupPolicyMetadata | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateGroupPolicyMetadata, a, b); } } /** * MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. * * @generated from message cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse */ export class MsgUpdateGroupPolicyMetadataResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupPolicyMetadataResponse { return new MsgUpdateGroupPolicyMetadataResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupPolicyMetadataResponse { return new MsgUpdateGroupPolicyMetadataResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupPolicyMetadataResponse { return new MsgUpdateGroupPolicyMetadataResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateGroupPolicyMetadataResponse | PlainMessage | undefined, b: MsgUpdateGroupPolicyMetadataResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateGroupPolicyMetadataResponse, a, b); } } /** * MsgSubmitProposal is the Msg/SubmitProposal request type. * * @generated from message cosmos.group.v1.MsgSubmitProposal */ export class MsgSubmitProposal extends Message { /** * group_policy_address is the account address of group policy. * * @generated from field: string group_policy_address = 1; */ groupPolicyAddress = ""; /** * proposers are the account addresses of the proposers. * Proposers signatures will be counted as yes votes. * * @generated from field: repeated string proposers = 2; */ proposers: string[] = []; /** * metadata is any arbitrary metadata attached to the proposal. * * @generated from field: string metadata = 3; */ metadata = ""; /** * messages is a list of `sdk.Msg`s that will be executed if the proposal passes. * * @generated from field: repeated google.protobuf.Any messages = 4; */ messages: Any[] = []; /** * exec defines the mode of execution of the proposal, * whether it should be executed immediately on creation or not. * If so, proposers signatures are considered as Yes votes. * * @generated from field: cosmos.group.v1.Exec exec = 5; */ exec = Exec.UNSPECIFIED; /** * title is the title of the proposal. * * Since: cosmos-sdk 0.47 * * @generated from field: string title = 6; */ title = ""; /** * summary is the summary of the proposal. * * Since: cosmos-sdk 0.47 * * @generated from field: string summary = 7; */ summary = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgSubmitProposal"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "group_policy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "proposers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "messages", kind: "message", T: Any, repeated: true }, { no: 5, name: "exec", kind: "enum", T: proto3.getEnumType(Exec) }, { no: 6, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "summary", 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 is the Msg/SubmitProposal response type. * * @generated from message cosmos.group.v1.MsgSubmitProposalResponse */ export class MsgSubmitProposalResponse extends Message { /** * proposal is 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.group.v1.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); } } /** * MsgWithdrawProposal is the Msg/WithdrawProposal request type. * * @generated from message cosmos.group.v1.MsgWithdrawProposal */ export class MsgWithdrawProposal extends Message { /** * proposal is the unique ID of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId = protoInt64.zero; /** * address is the admin of the group policy or one of the proposer of the proposal. * * @generated from field: string address = 2; */ address = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgWithdrawProposal"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawProposal { return new MsgWithdrawProposal().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawProposal { return new MsgWithdrawProposal().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawProposal { return new MsgWithdrawProposal().fromJsonString(jsonString, options); } static equals(a: MsgWithdrawProposal | PlainMessage | undefined, b: MsgWithdrawProposal | PlainMessage | undefined): boolean { return proto3.util.equals(MsgWithdrawProposal, a, b); } } /** * MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. * * @generated from message cosmos.group.v1.MsgWithdrawProposalResponse */ export class MsgWithdrawProposalResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgWithdrawProposalResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawProposalResponse { return new MsgWithdrawProposalResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawProposalResponse { return new MsgWithdrawProposalResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawProposalResponse { return new MsgWithdrawProposalResponse().fromJsonString(jsonString, options); } static equals(a: MsgWithdrawProposalResponse | PlainMessage | undefined, b: MsgWithdrawProposalResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgWithdrawProposalResponse, a, b); } } /** * MsgVote is the Msg/Vote request type. * * @generated from message cosmos.group.v1.MsgVote */ export class MsgVote extends Message { /** * proposal is the unique ID of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId = protoInt64.zero; /** * voter is the voter account address. * * @generated from field: string voter = 2; */ voter = ""; /** * option is the voter's choice on the proposal. * * @generated from field: cosmos.group.v1.VoteOption option = 3; */ option = VoteOption.UNSPECIFIED; /** * metadata is any arbitrary metadata attached to the vote. * * @generated from field: string metadata = 4; */ metadata = ""; /** * exec defines whether the proposal should be executed * immediately after voting or not. * * @generated from field: cosmos.group.v1.Exec exec = 5; */ exec = Exec.UNSPECIFIED; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.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) }, { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "exec", kind: "enum", T: proto3.getEnumType(Exec) }, ]); 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 is the Msg/Vote response type. * * @generated from message cosmos.group.v1.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.group.v1.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); } } /** * MsgExec is the Msg/Exec request type. * * @generated from message cosmos.group.v1.MsgExec */ export class MsgExec extends Message { /** * proposal is the unique ID of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId = protoInt64.zero; /** * executor is the account address used to execute the proposal. * * @generated from field: string executor = 2; */ executor = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgExec"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "executor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgExec { return new MsgExec().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgExec { return new MsgExec().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgExec { return new MsgExec().fromJsonString(jsonString, options); } static equals(a: MsgExec | PlainMessage | undefined, b: MsgExec | PlainMessage | undefined): boolean { return proto3.util.equals(MsgExec, a, b); } } /** * MsgExecResponse is the Msg/Exec request type. * * @generated from message cosmos.group.v1.MsgExecResponse */ export class MsgExecResponse extends Message { /** * result is the final result of the proposal execution. * * @generated from field: cosmos.group.v1.ProposalExecutorResult result = 2; */ result = ProposalExecutorResult.UNSPECIFIED; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgExecResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 2, name: "result", kind: "enum", T: proto3.getEnumType(ProposalExecutorResult) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecResponse { return new MsgExecResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecResponse { return new MsgExecResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgExecResponse { return new MsgExecResponse().fromJsonString(jsonString, options); } static equals(a: MsgExecResponse | PlainMessage | undefined, b: MsgExecResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgExecResponse, a, b); } } /** * MsgLeaveGroup is the Msg/LeaveGroup request type. * * @generated from message cosmos.group.v1.MsgLeaveGroup */ export class MsgLeaveGroup extends Message { /** * address is the account address of the group member. * * @generated from field: string address = 1; */ address = ""; /** * group_id is the unique ID of the group. * * @generated from field: uint64 group_id = 2; */ groupId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgLeaveGroup"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgLeaveGroup { return new MsgLeaveGroup().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgLeaveGroup { return new MsgLeaveGroup().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgLeaveGroup { return new MsgLeaveGroup().fromJsonString(jsonString, options); } static equals(a: MsgLeaveGroup | PlainMessage | undefined, b: MsgLeaveGroup | PlainMessage | undefined): boolean { return proto3.util.equals(MsgLeaveGroup, a, b); } } /** * MsgLeaveGroupResponse is the Msg/LeaveGroup response type. * * @generated from message cosmos.group.v1.MsgLeaveGroupResponse */ export class MsgLeaveGroupResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.group.v1.MsgLeaveGroupResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgLeaveGroupResponse { return new MsgLeaveGroupResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgLeaveGroupResponse { return new MsgLeaveGroupResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgLeaveGroupResponse { return new MsgLeaveGroupResponse().fromJsonString(jsonString, options); } static equals(a: MsgLeaveGroupResponse | PlainMessage | undefined, b: MsgLeaveGroupResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgLeaveGroupResponse, a, b); } }