groupv1

package
v0.0.0-...-095f669 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_GroupInfo_FullMethodName              = "/cosmos.group.v1.Query/GroupInfo"
	Query_GroupPolicyInfo_FullMethodName        = "/cosmos.group.v1.Query/GroupPolicyInfo"
	Query_GroupMembers_FullMethodName           = "/cosmos.group.v1.Query/GroupMembers"
	Query_GroupsByAdmin_FullMethodName          = "/cosmos.group.v1.Query/GroupsByAdmin"
	Query_GroupPoliciesByGroup_FullMethodName   = "/cosmos.group.v1.Query/GroupPoliciesByGroup"
	Query_GroupPoliciesByAdmin_FullMethodName   = "/cosmos.group.v1.Query/GroupPoliciesByAdmin"
	Query_Proposal_FullMethodName               = "/cosmos.group.v1.Query/Proposal"
	Query_ProposalsByGroupPolicy_FullMethodName = "/cosmos.group.v1.Query/ProposalsByGroupPolicy"
	Query_VoteByProposalVoter_FullMethodName    = "/cosmos.group.v1.Query/VoteByProposalVoter"
	Query_VotesByProposal_FullMethodName        = "/cosmos.group.v1.Query/VotesByProposal"
	Query_VotesByVoter_FullMethodName           = "/cosmos.group.v1.Query/VotesByVoter"
	Query_GroupsByMember_FullMethodName         = "/cosmos.group.v1.Query/GroupsByMember"
	Query_TallyResult_FullMethodName            = "/cosmos.group.v1.Query/TallyResult"
	Query_Groups_FullMethodName                 = "/cosmos.group.v1.Query/Groups"
)
View Source
const (
	Msg_CreateGroup_FullMethodName                     = "/cosmos.group.v1.Msg/CreateGroup"
	Msg_UpdateGroupMembers_FullMethodName              = "/cosmos.group.v1.Msg/UpdateGroupMembers"
	Msg_UpdateGroupAdmin_FullMethodName                = "/cosmos.group.v1.Msg/UpdateGroupAdmin"
	Msg_UpdateGroupMetadata_FullMethodName             = "/cosmos.group.v1.Msg/UpdateGroupMetadata"
	Msg_CreateGroupPolicy_FullMethodName               = "/cosmos.group.v1.Msg/CreateGroupPolicy"
	Msg_CreateGroupWithPolicy_FullMethodName           = "/cosmos.group.v1.Msg/CreateGroupWithPolicy"
	Msg_UpdateGroupPolicyAdmin_FullMethodName          = "/cosmos.group.v1.Msg/UpdateGroupPolicyAdmin"
	Msg_UpdateGroupPolicyDecisionPolicy_FullMethodName = "/cosmos.group.v1.Msg/UpdateGroupPolicyDecisionPolicy"
	Msg_UpdateGroupPolicyMetadata_FullMethodName       = "/cosmos.group.v1.Msg/UpdateGroupPolicyMetadata"
	Msg_SubmitProposal_FullMethodName                  = "/cosmos.group.v1.Msg/SubmitProposal"
	Msg_WithdrawProposal_FullMethodName                = "/cosmos.group.v1.Msg/WithdrawProposal"
	Msg_Vote_FullMethodName                            = "/cosmos.group.v1.Msg/Vote"
	Msg_Exec_FullMethodName                            = "/cosmos.group.v1.Msg/Exec"
	Msg_LeaveGroup_FullMethodName                      = "/cosmos.group.v1.Msg/LeaveGroup"
)

Variables

View Source
var (
	Exec_name = map[int32]string{
		0: "EXEC_UNSPECIFIED",
		1: "EXEC_TRY",
	}
	Exec_value = map[string]int32{
		"EXEC_UNSPECIFIED": 0,
		"EXEC_TRY":         1,
	}
)

Enum value maps for Exec.

View Source
var (
	VoteOption_name = map[int32]string{
		0: "VOTE_OPTION_UNSPECIFIED",
		1: "VOTE_OPTION_YES",
		2: "VOTE_OPTION_ABSTAIN",
		3: "VOTE_OPTION_NO",
		4: "VOTE_OPTION_NO_WITH_VETO",
	}
	VoteOption_value = map[string]int32{
		"VOTE_OPTION_UNSPECIFIED":  0,
		"VOTE_OPTION_YES":          1,
		"VOTE_OPTION_ABSTAIN":      2,
		"VOTE_OPTION_NO":           3,
		"VOTE_OPTION_NO_WITH_VETO": 4,
	}
)

Enum value maps for VoteOption.

View Source
var (
	ProposalStatus_name = map[int32]string{
		0: "PROPOSAL_STATUS_UNSPECIFIED",
		1: "PROPOSAL_STATUS_SUBMITTED",
		2: "PROPOSAL_STATUS_ACCEPTED",
		3: "PROPOSAL_STATUS_REJECTED",
		4: "PROPOSAL_STATUS_ABORTED",
		5: "PROPOSAL_STATUS_WITHDRAWN",
	}
	ProposalStatus_value = map[string]int32{
		"PROPOSAL_STATUS_UNSPECIFIED": 0,
		"PROPOSAL_STATUS_SUBMITTED":   1,
		"PROPOSAL_STATUS_ACCEPTED":    2,
		"PROPOSAL_STATUS_REJECTED":    3,
		"PROPOSAL_STATUS_ABORTED":     4,
		"PROPOSAL_STATUS_WITHDRAWN":   5,
	}
)

Enum value maps for ProposalStatus.

View Source
var (
	ProposalExecutorResult_name = map[int32]string{
		0: "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED",
		1: "PROPOSAL_EXECUTOR_RESULT_NOT_RUN",
		2: "PROPOSAL_EXECUTOR_RESULT_SUCCESS",
		3: "PROPOSAL_EXECUTOR_RESULT_FAILURE",
	}
	ProposalExecutorResult_value = map[string]int32{
		"PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": 0,
		"PROPOSAL_EXECUTOR_RESULT_NOT_RUN":     1,
		"PROPOSAL_EXECUTOR_RESULT_SUCCESS":     2,
		"PROPOSAL_EXECUTOR_RESULT_FAILURE":     3,
	}
)

Enum value maps for ProposalExecutorResult.

View Source
var File_cosmos_group_v1_events_proto protoreflect.FileDescriptor
View Source
var File_cosmos_group_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_group_v1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_group_v1_tx_proto protoreflect.FileDescriptor
View Source
var File_cosmos_group_v1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.group.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateGroup",
			Handler:    _Msg_CreateGroup_Handler,
		},
		{
			MethodName: "UpdateGroupMembers",
			Handler:    _Msg_UpdateGroupMembers_Handler,
		},
		{
			MethodName: "UpdateGroupAdmin",
			Handler:    _Msg_UpdateGroupAdmin_Handler,
		},
		{
			MethodName: "UpdateGroupMetadata",
			Handler:    _Msg_UpdateGroupMetadata_Handler,
		},
		{
			MethodName: "CreateGroupPolicy",
			Handler:    _Msg_CreateGroupPolicy_Handler,
		},
		{
			MethodName: "CreateGroupWithPolicy",
			Handler:    _Msg_CreateGroupWithPolicy_Handler,
		},
		{
			MethodName: "UpdateGroupPolicyAdmin",
			Handler:    _Msg_UpdateGroupPolicyAdmin_Handler,
		},
		{
			MethodName: "UpdateGroupPolicyDecisionPolicy",
			Handler:    _Msg_UpdateGroupPolicyDecisionPolicy_Handler,
		},
		{
			MethodName: "UpdateGroupPolicyMetadata",
			Handler:    _Msg_UpdateGroupPolicyMetadata_Handler,
		},
		{
			MethodName: "SubmitProposal",
			Handler:    _Msg_SubmitProposal_Handler,
		},
		{
			MethodName: "WithdrawProposal",
			Handler:    _Msg_WithdrawProposal_Handler,
		},
		{
			MethodName: "Vote",
			Handler:    _Msg_Vote_Handler,
		},
		{
			MethodName: "Exec",
			Handler:    _Msg_Exec_Handler,
		},
		{
			MethodName: "LeaveGroup",
			Handler:    _Msg_LeaveGroup_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/group/v1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.group.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GroupInfo",
			Handler:    _Query_GroupInfo_Handler,
		},
		{
			MethodName: "GroupPolicyInfo",
			Handler:    _Query_GroupPolicyInfo_Handler,
		},
		{
			MethodName: "GroupMembers",
			Handler:    _Query_GroupMembers_Handler,
		},
		{
			MethodName: "GroupsByAdmin",
			Handler:    _Query_GroupsByAdmin_Handler,
		},
		{
			MethodName: "GroupPoliciesByGroup",
			Handler:    _Query_GroupPoliciesByGroup_Handler,
		},
		{
			MethodName: "GroupPoliciesByAdmin",
			Handler:    _Query_GroupPoliciesByAdmin_Handler,
		},
		{
			MethodName: "Proposal",
			Handler:    _Query_Proposal_Handler,
		},
		{
			MethodName: "ProposalsByGroupPolicy",
			Handler:    _Query_ProposalsByGroupPolicy_Handler,
		},
		{
			MethodName: "VoteByProposalVoter",
			Handler:    _Query_VoteByProposalVoter_Handler,
		},
		{
			MethodName: "VotesByProposal",
			Handler:    _Query_VotesByProposal_Handler,
		},
		{
			MethodName: "VotesByVoter",
			Handler:    _Query_VotesByVoter_Handler,
		},
		{
			MethodName: "GroupsByMember",
			Handler:    _Query_GroupsByMember_Handler,
		},
		{
			MethodName: "TallyResult",
			Handler:    _Query_TallyResult_Handler,
		},
		{
			MethodName: "Groups",
			Handler:    _Query_Groups_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/group/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type DecisionPolicyWindows

type DecisionPolicyWindows struct {

	// voting_period is the duration from submission of a proposal to the end of voting period
	// Within this times votes can be submitted with MsgVote.
	VotingPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=voting_period,json=votingPeriod,proto3" json:"voting_period,omitempty"`
	// min_execution_period is the minimum duration after the proposal submission
	// where members can start sending MsgExec. This means that the window for
	// sending a MsgExec transaction is:
	// `[ submission + min_execution_period ; submission + voting_period + max_execution_period]`
	// where max_execution_period is a app-specific config, defined in the keeper.
	// If not set, min_execution_period will default to 0.
	//
	// Please make sure to set a `min_execution_period` that is smaller than
	// `voting_period + max_execution_period`, or else the above execution window
	// is empty, meaning that all proposals created with this decision policy
	// won't be able to be executed.
	MinExecutionPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=min_execution_period,json=minExecutionPeriod,proto3" json:"min_execution_period,omitempty"`
	// contains filtered or unexported fields
}

DecisionPolicyWindows defines the different windows for voting and execution.

func (*DecisionPolicyWindows) Descriptor deprecated

func (*DecisionPolicyWindows) Descriptor() ([]byte, []int)

Deprecated: Use DecisionPolicyWindows.ProtoReflect.Descriptor instead.

func (*DecisionPolicyWindows) GetMinExecutionPeriod

func (x *DecisionPolicyWindows) GetMinExecutionPeriod() *durationpb.Duration

func (*DecisionPolicyWindows) GetVotingPeriod

func (x *DecisionPolicyWindows) GetVotingPeriod() *durationpb.Duration

func (*DecisionPolicyWindows) ProtoMessage

func (*DecisionPolicyWindows) ProtoMessage()

func (*DecisionPolicyWindows) ProtoReflect

func (x *DecisionPolicyWindows) ProtoReflect() protoreflect.Message

func (*DecisionPolicyWindows) Reset

func (x *DecisionPolicyWindows) Reset()

func (*DecisionPolicyWindows) String

func (x *DecisionPolicyWindows) String() string

type EventCreateGroup

type EventCreateGroup struct {

	// group_id is the unique ID of the group.
	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

EventCreateGroup is an event emitted when a group is created.

func (*EventCreateGroup) Descriptor deprecated

func (*EventCreateGroup) Descriptor() ([]byte, []int)

Deprecated: Use EventCreateGroup.ProtoReflect.Descriptor instead.

func (*EventCreateGroup) GetGroupId

func (x *EventCreateGroup) GetGroupId() uint64

func (*EventCreateGroup) ProtoMessage

func (*EventCreateGroup) ProtoMessage()

func (*EventCreateGroup) ProtoReflect

func (x *EventCreateGroup) ProtoReflect() protoreflect.Message

func (*EventCreateGroup) Reset

func (x *EventCreateGroup) Reset()

func (*EventCreateGroup) String

func (x *EventCreateGroup) String() string

type EventCreateGroupPolicy

type EventCreateGroupPolicy struct {

	// address is the account address of the group policy.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

EventCreateGroupPolicy is an event emitted when a group policy is created.

func (*EventCreateGroupPolicy) Descriptor deprecated

func (*EventCreateGroupPolicy) Descriptor() ([]byte, []int)

Deprecated: Use EventCreateGroupPolicy.ProtoReflect.Descriptor instead.

func (*EventCreateGroupPolicy) GetAddress

func (x *EventCreateGroupPolicy) GetAddress() string

func (*EventCreateGroupPolicy) ProtoMessage

func (*EventCreateGroupPolicy) ProtoMessage()

func (*EventCreateGroupPolicy) ProtoReflect

func (x *EventCreateGroupPolicy) ProtoReflect() protoreflect.Message

func (*EventCreateGroupPolicy) Reset

func (x *EventCreateGroupPolicy) Reset()

func (*EventCreateGroupPolicy) String

func (x *EventCreateGroupPolicy) String() string

type EventExec

type EventExec struct {

	// proposal_id is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// result is the proposal execution result.
	Result ProposalExecutorResult `protobuf:"varint,2,opt,name=result,proto3,enum=cosmos.group.v1.ProposalExecutorResult" json:"result,omitempty"`
	// logs contains error logs in case the execution result is FAILURE.
	Logs string `protobuf:"bytes,3,opt,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

EventExec is an event emitted when a proposal is executed.

func (*EventExec) Descriptor deprecated

func (*EventExec) Descriptor() ([]byte, []int)

Deprecated: Use EventExec.ProtoReflect.Descriptor instead.

func (*EventExec) GetLogs

func (x *EventExec) GetLogs() string

func (*EventExec) GetProposalId

func (x *EventExec) GetProposalId() uint64

func (*EventExec) GetResult

func (x *EventExec) GetResult() ProposalExecutorResult

func (*EventExec) ProtoMessage

func (*EventExec) ProtoMessage()

func (*EventExec) ProtoReflect

func (x *EventExec) ProtoReflect() protoreflect.Message

func (*EventExec) Reset

func (x *EventExec) Reset()

func (*EventExec) String

func (x *EventExec) String() string

type EventLeaveGroup

type EventLeaveGroup struct {

	// group_id is the unique ID of the group.
	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// address is the account address of the group member.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

EventLeaveGroup is an event emitted when group member leaves the group.

func (*EventLeaveGroup) Descriptor deprecated

func (*EventLeaveGroup) Descriptor() ([]byte, []int)

Deprecated: Use EventLeaveGroup.ProtoReflect.Descriptor instead.

func (*EventLeaveGroup) GetAddress

func (x *EventLeaveGroup) GetAddress() string

func (*EventLeaveGroup) GetGroupId

func (x *EventLeaveGroup) GetGroupId() uint64

func (*EventLeaveGroup) ProtoMessage

func (*EventLeaveGroup) ProtoMessage()

func (*EventLeaveGroup) ProtoReflect

func (x *EventLeaveGroup) ProtoReflect() protoreflect.Message

func (*EventLeaveGroup) Reset

func (x *EventLeaveGroup) Reset()

func (*EventLeaveGroup) String

func (x *EventLeaveGroup) String() string

type EventSubmitProposal

type EventSubmitProposal struct {

	// proposal_id is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

EventSubmitProposal is an event emitted when a proposal is created.

func (*EventSubmitProposal) Descriptor deprecated

func (*EventSubmitProposal) Descriptor() ([]byte, []int)

Deprecated: Use EventSubmitProposal.ProtoReflect.Descriptor instead.

func (*EventSubmitProposal) GetProposalId

func (x *EventSubmitProposal) GetProposalId() uint64

func (*EventSubmitProposal) ProtoMessage

func (*EventSubmitProposal) ProtoMessage()

func (*EventSubmitProposal) ProtoReflect

func (x *EventSubmitProposal) ProtoReflect() protoreflect.Message

func (*EventSubmitProposal) Reset

func (x *EventSubmitProposal) Reset()

func (*EventSubmitProposal) String

func (x *EventSubmitProposal) String() string

type EventUpdateGroup

type EventUpdateGroup struct {

	// group_id is the unique ID of the group.
	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

EventUpdateGroup is an event emitted when a group is updated.

func (*EventUpdateGroup) Descriptor deprecated

func (*EventUpdateGroup) Descriptor() ([]byte, []int)

Deprecated: Use EventUpdateGroup.ProtoReflect.Descriptor instead.

func (*EventUpdateGroup) GetGroupId

func (x *EventUpdateGroup) GetGroupId() uint64

func (*EventUpdateGroup) ProtoMessage

func (*EventUpdateGroup) ProtoMessage()

func (*EventUpdateGroup) ProtoReflect

func (x *EventUpdateGroup) ProtoReflect() protoreflect.Message

func (*EventUpdateGroup) Reset

func (x *EventUpdateGroup) Reset()

func (*EventUpdateGroup) String

func (x *EventUpdateGroup) String() string

type EventUpdateGroupPolicy

type EventUpdateGroupPolicy struct {

	// address is the account address of the group policy.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

EventUpdateGroupPolicy is an event emitted when a group policy is updated.

func (*EventUpdateGroupPolicy) Descriptor deprecated

func (*EventUpdateGroupPolicy) Descriptor() ([]byte, []int)

Deprecated: Use EventUpdateGroupPolicy.ProtoReflect.Descriptor instead.

func (*EventUpdateGroupPolicy) GetAddress

func (x *EventUpdateGroupPolicy) GetAddress() string

func (*EventUpdateGroupPolicy) ProtoMessage

func (*EventUpdateGroupPolicy) ProtoMessage()

func (*EventUpdateGroupPolicy) ProtoReflect

func (x *EventUpdateGroupPolicy) ProtoReflect() protoreflect.Message

func (*EventUpdateGroupPolicy) Reset

func (x *EventUpdateGroupPolicy) Reset()

func (*EventUpdateGroupPolicy) String

func (x *EventUpdateGroupPolicy) String() string

type EventVote

type EventVote struct {

	// proposal_id is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

EventVote is an event emitted when a voter votes on a proposal.

func (*EventVote) Descriptor deprecated

func (*EventVote) Descriptor() ([]byte, []int)

Deprecated: Use EventVote.ProtoReflect.Descriptor instead.

func (*EventVote) GetProposalId

func (x *EventVote) GetProposalId() uint64

func (*EventVote) ProtoMessage

func (*EventVote) ProtoMessage()

func (*EventVote) ProtoReflect

func (x *EventVote) ProtoReflect() protoreflect.Message

func (*EventVote) Reset

func (x *EventVote) Reset()

func (*EventVote) String

func (x *EventVote) String() string

type EventWithdrawProposal

type EventWithdrawProposal struct {

	// proposal_id is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

EventWithdrawProposal is an event emitted when a proposal is withdrawn.

func (*EventWithdrawProposal) Descriptor deprecated

func (*EventWithdrawProposal) Descriptor() ([]byte, []int)

Deprecated: Use EventWithdrawProposal.ProtoReflect.Descriptor instead.

func (*EventWithdrawProposal) GetProposalId

func (x *EventWithdrawProposal) GetProposalId() uint64

func (*EventWithdrawProposal) ProtoMessage

func (*EventWithdrawProposal) ProtoMessage()

func (*EventWithdrawProposal) ProtoReflect

func (x *EventWithdrawProposal) ProtoReflect() protoreflect.Message

func (*EventWithdrawProposal) Reset

func (x *EventWithdrawProposal) Reset()

func (*EventWithdrawProposal) String

func (x *EventWithdrawProposal) String() string

type Exec

type Exec int32

Exec defines modes of execution of a proposal on creation or on new vote.

const (
	// An empty value means that there should be a separate
	// MsgExec request for the proposal to execute.
	Exec_EXEC_UNSPECIFIED Exec = 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.
	Exec_EXEC_TRY Exec = 1
)

func (Exec) Descriptor

func (Exec) Descriptor() protoreflect.EnumDescriptor

func (Exec) Enum

func (x Exec) Enum() *Exec

func (Exec) EnumDescriptor deprecated

func (Exec) EnumDescriptor() ([]byte, []int)

Deprecated: Use Exec.Descriptor instead.

func (Exec) Number

func (x Exec) Number() protoreflect.EnumNumber

func (Exec) String

func (x Exec) String() string

func (Exec) Type

func (Exec) Type() protoreflect.EnumType

type GenesisState

type GenesisState struct {

	// group_seq is the group table orm.Sequence,
	// it is used to get the next group ID.
	GroupSeq uint64 `protobuf:"varint,1,opt,name=group_seq,json=groupSeq,proto3" json:"group_seq,omitempty"`
	// groups is the list of groups info.
	Groups []*GroupInfo `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"`
	// group_members is the list of groups members.
	GroupMembers []*GroupMember `protobuf:"bytes,3,rep,name=group_members,json=groupMembers,proto3" json:"group_members,omitempty"`
	// group_policy_seq is the group policy table orm.Sequence,
	// it is used to generate the next group policy account address.
	GroupPolicySeq uint64 `protobuf:"varint,4,opt,name=group_policy_seq,json=groupPolicySeq,proto3" json:"group_policy_seq,omitempty"`
	// group_policies is the list of group policies info.
	GroupPolicies []*GroupPolicyInfo `protobuf:"bytes,5,rep,name=group_policies,json=groupPolicies,proto3" json:"group_policies,omitempty"`
	// proposal_seq is the proposal table orm.Sequence,
	// it is used to get the next proposal ID.
	ProposalSeq uint64 `protobuf:"varint,6,opt,name=proposal_seq,json=proposalSeq,proto3" json:"proposal_seq,omitempty"`
	// proposals is the list of proposals.
	Proposals []*Proposal `protobuf:"bytes,7,rep,name=proposals,proto3" json:"proposals,omitempty"`
	// votes is the list of votes.
	Votes []*Vote `protobuf:"bytes,8,rep,name=votes,proto3" json:"votes,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the group module's genesis state.

func (*GenesisState) Descriptor deprecated

func (*GenesisState) Descriptor() ([]byte, []int)

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetGroupMembers

func (x *GenesisState) GetGroupMembers() []*GroupMember

func (*GenesisState) GetGroupPolicies

func (x *GenesisState) GetGroupPolicies() []*GroupPolicyInfo

func (*GenesisState) GetGroupPolicySeq

func (x *GenesisState) GetGroupPolicySeq() uint64

func (*GenesisState) GetGroupSeq

func (x *GenesisState) GetGroupSeq() uint64

func (*GenesisState) GetGroups

func (x *GenesisState) GetGroups() []*GroupInfo

func (*GenesisState) GetProposalSeq

func (x *GenesisState) GetProposalSeq() uint64

func (*GenesisState) GetProposals

func (x *GenesisState) GetProposals() []*Proposal

func (*GenesisState) GetVotes

func (x *GenesisState) GetVotes() []*Vote

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type GroupInfo

type GroupInfo struct {

	// id is the unique ID of the group.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// admin is the account address of the group's admin.
	Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"`
	// metadata is any arbitrary metadata to attached to the group.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// version is used to track changes to a group's membership structure that
	// would break existing proposals. Whenever any members weight is changed,
	// or any member is added or removed this version is incremented and will
	// cause proposals based on older versions of this group to fail
	Version uint64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	// total_weight is the sum of the group members' weights.
	TotalWeight string `protobuf:"bytes,5,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"`
	// created_at is a timestamp specifying when a group was created.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

GroupInfo represents the high-level on-chain information for a group.

func (*GroupInfo) Descriptor deprecated

func (*GroupInfo) Descriptor() ([]byte, []int)

Deprecated: Use GroupInfo.ProtoReflect.Descriptor instead.

func (*GroupInfo) GetAdmin

func (x *GroupInfo) GetAdmin() string

func (*GroupInfo) GetCreatedAt

func (x *GroupInfo) GetCreatedAt() *timestamppb.Timestamp

func (*GroupInfo) GetId

func (x *GroupInfo) GetId() uint64

func (*GroupInfo) GetMetadata

func (x *GroupInfo) GetMetadata() string

func (*GroupInfo) GetTotalWeight

func (x *GroupInfo) GetTotalWeight() string

func (*GroupInfo) GetVersion

func (x *GroupInfo) GetVersion() uint64

func (*GroupInfo) ProtoMessage

func (*GroupInfo) ProtoMessage()

func (*GroupInfo) ProtoReflect

func (x *GroupInfo) ProtoReflect() protoreflect.Message

func (*GroupInfo) Reset

func (x *GroupInfo) Reset()

func (*GroupInfo) String

func (x *GroupInfo) String() string

type GroupMember

type GroupMember struct {

	// group_id is the unique ID of the group.
	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// member is the member data.
	Member *Member `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"`
	// contains filtered or unexported fields
}

GroupMember represents the relationship between a group and a member.

func (*GroupMember) Descriptor deprecated

func (*GroupMember) Descriptor() ([]byte, []int)

Deprecated: Use GroupMember.ProtoReflect.Descriptor instead.

func (*GroupMember) GetGroupId

func (x *GroupMember) GetGroupId() uint64

func (*GroupMember) GetMember

func (x *GroupMember) GetMember() *Member

func (*GroupMember) ProtoMessage

func (*GroupMember) ProtoMessage()

func (*GroupMember) ProtoReflect

func (x *GroupMember) ProtoReflect() protoreflect.Message

func (*GroupMember) Reset

func (x *GroupMember) Reset()

func (*GroupMember) String

func (x *GroupMember) String() string

type GroupPolicyInfo

type GroupPolicyInfo struct {

	// address is the account address of group policy.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// group_id is the unique ID of the group.
	GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// admin is the account address of the group admin.
	Admin string `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"`
	// metadata is any arbitrary metadata attached to the group policy.
	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// version is used to track changes to a group's GroupPolicyInfo structure that
	// would create a different result on a running proposal.
	Version uint64 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"`
	// decision_policy specifies the group policy's decision policy.
	DecisionPolicy *anypb.Any `protobuf:"bytes,6,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
	// created_at is a timestamp specifying when a group policy was created.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

GroupPolicyInfo represents the high-level on-chain information for a group policy.

func (*GroupPolicyInfo) Descriptor deprecated

func (*GroupPolicyInfo) Descriptor() ([]byte, []int)

Deprecated: Use GroupPolicyInfo.ProtoReflect.Descriptor instead.

func (*GroupPolicyInfo) GetAddress

func (x *GroupPolicyInfo) GetAddress() string

func (*GroupPolicyInfo) GetAdmin

func (x *GroupPolicyInfo) GetAdmin() string

func (*GroupPolicyInfo) GetCreatedAt

func (x *GroupPolicyInfo) GetCreatedAt() *timestamppb.Timestamp

func (*GroupPolicyInfo) GetDecisionPolicy

func (x *GroupPolicyInfo) GetDecisionPolicy() *anypb.Any

func (*GroupPolicyInfo) GetGroupId

func (x *GroupPolicyInfo) GetGroupId() uint64

func (*GroupPolicyInfo) GetMetadata

func (x *GroupPolicyInfo) GetMetadata() string

func (*GroupPolicyInfo) GetVersion

func (x *GroupPolicyInfo) GetVersion() uint64

func (*GroupPolicyInfo) ProtoMessage

func (*GroupPolicyInfo) ProtoMessage()

func (*GroupPolicyInfo) ProtoReflect

func (x *GroupPolicyInfo) ProtoReflect() protoreflect.Message

func (*GroupPolicyInfo) Reset

func (x *GroupPolicyInfo) Reset()

func (*GroupPolicyInfo) String

func (x *GroupPolicyInfo) String() string

type Member

type Member struct {

	// address is the member's account address.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// weight is the member's voting weight that should be greater than 0.
	Weight string `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"`
	// metadata is any arbitrary metadata attached to the member.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// added_at is a timestamp specifying when a member was added.
	AddedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=added_at,json=addedAt,proto3" json:"added_at,omitempty"`
	// contains filtered or unexported fields
}

Member represents a group member with an account address, non-zero weight, metadata and added_at timestamp.

func (*Member) Descriptor deprecated

func (*Member) Descriptor() ([]byte, []int)

Deprecated: Use Member.ProtoReflect.Descriptor instead.

func (*Member) GetAddedAt

func (x *Member) GetAddedAt() *timestamppb.Timestamp

func (*Member) GetAddress

func (x *Member) GetAddress() string

func (*Member) GetMetadata

func (x *Member) GetMetadata() string

func (*Member) GetWeight

func (x *Member) GetWeight() string

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) ProtoReflect

func (x *Member) ProtoReflect() protoreflect.Message

func (*Member) Reset

func (x *Member) Reset()

func (*Member) String

func (x *Member) String() string

type MemberRequest

type MemberRequest struct {

	// address is the member's account address.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// weight is the member's voting weight that should be greater than 0.
	Weight string `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"`
	// metadata is any arbitrary metadata attached to the member.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

MemberRequest represents a group member to be used in Msg server requests. Contrary to `Member`, it doesn't have any `added_at` field since this field cannot be set as part of requests.

func (*MemberRequest) Descriptor deprecated

func (*MemberRequest) Descriptor() ([]byte, []int)

Deprecated: Use MemberRequest.ProtoReflect.Descriptor instead.

func (*MemberRequest) GetAddress

func (x *MemberRequest) GetAddress() string

func (*MemberRequest) GetMetadata

func (x *MemberRequest) GetMetadata() string

func (*MemberRequest) GetWeight

func (x *MemberRequest) GetWeight() string

func (*MemberRequest) ProtoMessage

func (*MemberRequest) ProtoMessage()

func (*MemberRequest) ProtoReflect

func (x *MemberRequest) ProtoReflect() protoreflect.Message

func (*MemberRequest) Reset

func (x *MemberRequest) Reset()

func (*MemberRequest) String

func (x *MemberRequest) String() string

type MsgClient

type MsgClient interface {
	// CreateGroup creates a new group with an admin account address, a list of members and some optional metadata.
	CreateGroup(ctx context.Context, in *MsgCreateGroup, opts ...grpc.CallOption) (*MsgCreateGroupResponse, error)
	// UpdateGroupMembers updates the group members with given group id and admin address.
	UpdateGroupMembers(ctx context.Context, in *MsgUpdateGroupMembers, opts ...grpc.CallOption) (*MsgUpdateGroupMembersResponse, error)
	// UpdateGroupAdmin updates the group admin with given group id and previous admin address.
	UpdateGroupAdmin(ctx context.Context, in *MsgUpdateGroupAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupAdminResponse, error)
	// UpdateGroupMetadata updates the group metadata with given group id and admin address.
	UpdateGroupMetadata(ctx context.Context, in *MsgUpdateGroupMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupMetadataResponse, error)
	// CreateGroupPolicy creates a new group policy using given DecisionPolicy.
	CreateGroupPolicy(ctx context.Context, in *MsgCreateGroupPolicy, opts ...grpc.CallOption) (*MsgCreateGroupPolicyResponse, error)
	// CreateGroupWithPolicy creates a new group with policy.
	CreateGroupWithPolicy(ctx context.Context, in *MsgCreateGroupWithPolicy, opts ...grpc.CallOption) (*MsgCreateGroupWithPolicyResponse, error)
	// UpdateGroupPolicyAdmin updates a group policy admin.
	UpdateGroupPolicyAdmin(ctx context.Context, in *MsgUpdateGroupPolicyAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyAdminResponse, error)
	// UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated.
	UpdateGroupPolicyDecisionPolicy(ctx context.Context, in *MsgUpdateGroupPolicyDecisionPolicy, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyDecisionPolicyResponse, error)
	// UpdateGroupPolicyMetadata updates a group policy metadata.
	UpdateGroupPolicyMetadata(ctx context.Context, in *MsgUpdateGroupPolicyMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupPolicyMetadataResponse, error)
	// SubmitProposal submits a new proposal.
	SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error)
	// WithdrawProposal withdraws a proposal.
	WithdrawProposal(ctx context.Context, in *MsgWithdrawProposal, opts ...grpc.CallOption) (*MsgWithdrawProposalResponse, error)
	// Vote allows a voter to vote on a proposal.
	Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error)
	// Exec executes a proposal.
	Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error)
	// LeaveGroup allows a group member to leave the group.
	LeaveGroup(ctx context.Context, in *MsgLeaveGroup, opts ...grpc.CallOption) (*MsgLeaveGroupResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgCreateGroup

type MsgCreateGroup struct {

	// admin is the account address of the group admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// members defines the group members.
	Members []*MemberRequest `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
	// metadata is any arbitrary metadata to attached to the group.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateGroup is the Msg/CreateGroup request type.

func (*MsgCreateGroup) Descriptor deprecated

func (*MsgCreateGroup) Descriptor() ([]byte, []int)

Deprecated: Use MsgCreateGroup.ProtoReflect.Descriptor instead.

func (*MsgCreateGroup) GetAdmin

func (x *MsgCreateGroup) GetAdmin() string

func (*MsgCreateGroup) GetMembers

func (x *MsgCreateGroup) GetMembers() []*MemberRequest

func (*MsgCreateGroup) GetMetadata

func (x *MsgCreateGroup) GetMetadata() string

func (*MsgCreateGroup) ProtoMessage

func (*MsgCreateGroup) ProtoMessage()

func (*MsgCreateGroup) ProtoReflect

func (x *MsgCreateGroup) ProtoReflect() protoreflect.Message

func (*MsgCreateGroup) Reset

func (x *MsgCreateGroup) Reset()

func (*MsgCreateGroup) String

func (x *MsgCreateGroup) String() string

type MsgCreateGroupPolicy

type MsgCreateGroupPolicy struct {

	// admin is the account address of the group admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// group_id is the unique ID of the group.
	GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// metadata is any arbitrary metadata attached to the group policy.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// decision_policy specifies the group policy's decision policy.
	DecisionPolicy *anypb.Any `protobuf:"bytes,4,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type.

func (*MsgCreateGroupPolicy) Descriptor deprecated

func (*MsgCreateGroupPolicy) Descriptor() ([]byte, []int)

Deprecated: Use MsgCreateGroupPolicy.ProtoReflect.Descriptor instead.

func (*MsgCreateGroupPolicy) GetAdmin

func (x *MsgCreateGroupPolicy) GetAdmin() string

func (*MsgCreateGroupPolicy) GetDecisionPolicy

func (x *MsgCreateGroupPolicy) GetDecisionPolicy() *anypb.Any

func (*MsgCreateGroupPolicy) GetGroupId

func (x *MsgCreateGroupPolicy) GetGroupId() uint64

func (*MsgCreateGroupPolicy) GetMetadata

func (x *MsgCreateGroupPolicy) GetMetadata() string

func (*MsgCreateGroupPolicy) ProtoMessage

func (*MsgCreateGroupPolicy) ProtoMessage()

func (*MsgCreateGroupPolicy) ProtoReflect

func (x *MsgCreateGroupPolicy) ProtoReflect() protoreflect.Message

func (*MsgCreateGroupPolicy) Reset

func (x *MsgCreateGroupPolicy) Reset()

func (*MsgCreateGroupPolicy) String

func (x *MsgCreateGroupPolicy) String() string

type MsgCreateGroupPolicyResponse

type MsgCreateGroupPolicyResponse struct {

	// address is the account address of the newly created group policy.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type.

func (*MsgCreateGroupPolicyResponse) Descriptor deprecated

func (*MsgCreateGroupPolicyResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgCreateGroupPolicyResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateGroupPolicyResponse) GetAddress

func (x *MsgCreateGroupPolicyResponse) GetAddress() string

func (*MsgCreateGroupPolicyResponse) ProtoMessage

func (*MsgCreateGroupPolicyResponse) ProtoMessage()

func (*MsgCreateGroupPolicyResponse) ProtoReflect

func (*MsgCreateGroupPolicyResponse) Reset

func (x *MsgCreateGroupPolicyResponse) Reset()

func (*MsgCreateGroupPolicyResponse) String

type MsgCreateGroupResponse

type MsgCreateGroupResponse struct {

	// group_id is the unique ID of the newly created group.
	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateGroupResponse is the Msg/CreateGroup response type.

func (*MsgCreateGroupResponse) Descriptor deprecated

func (*MsgCreateGroupResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgCreateGroupResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateGroupResponse) GetGroupId

func (x *MsgCreateGroupResponse) GetGroupId() uint64

func (*MsgCreateGroupResponse) ProtoMessage

func (*MsgCreateGroupResponse) ProtoMessage()

func (*MsgCreateGroupResponse) ProtoReflect

func (x *MsgCreateGroupResponse) ProtoReflect() protoreflect.Message

func (*MsgCreateGroupResponse) Reset

func (x *MsgCreateGroupResponse) Reset()

func (*MsgCreateGroupResponse) String

func (x *MsgCreateGroupResponse) String() string

type MsgCreateGroupWithPolicy

type MsgCreateGroupWithPolicy struct {

	// admin is the account address of the group and group policy admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// members defines the group members.
	Members []*MemberRequest `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
	// group_metadata is any arbitrary metadata attached to the group.
	GroupMetadata string `protobuf:"bytes,3,opt,name=group_metadata,json=groupMetadata,proto3" json:"group_metadata,omitempty"`
	// group_policy_metadata is any arbitrary metadata attached to the group policy.
	GroupPolicyMetadata string `protobuf:"bytes,4,opt,name=group_policy_metadata,json=groupPolicyMetadata,proto3" json:"group_policy_metadata,omitempty"`
	// 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.
	GroupPolicyAsAdmin bool `protobuf:"varint,5,opt,name=group_policy_as_admin,json=groupPolicyAsAdmin,proto3" json:"group_policy_as_admin,omitempty"`
	// decision_policy specifies the group policy's decision policy.
	DecisionPolicy *anypb.Any `protobuf:"bytes,6,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type.

func (*MsgCreateGroupWithPolicy) Descriptor deprecated

func (*MsgCreateGroupWithPolicy) Descriptor() ([]byte, []int)

Deprecated: Use MsgCreateGroupWithPolicy.ProtoReflect.Descriptor instead.

func (*MsgCreateGroupWithPolicy) GetAdmin

func (x *MsgCreateGroupWithPolicy) GetAdmin() string

func (*MsgCreateGroupWithPolicy) GetDecisionPolicy

func (x *MsgCreateGroupWithPolicy) GetDecisionPolicy() *anypb.Any

func (*MsgCreateGroupWithPolicy) GetGroupMetadata

func (x *MsgCreateGroupWithPolicy) GetGroupMetadata() string

func (*MsgCreateGroupWithPolicy) GetGroupPolicyAsAdmin

func (x *MsgCreateGroupWithPolicy) GetGroupPolicyAsAdmin() bool

func (*MsgCreateGroupWithPolicy) GetGroupPolicyMetadata

func (x *MsgCreateGroupWithPolicy) GetGroupPolicyMetadata() string

func (*MsgCreateGroupWithPolicy) GetMembers

func (x *MsgCreateGroupWithPolicy) GetMembers() []*MemberRequest

func (*MsgCreateGroupWithPolicy) ProtoMessage

func (*MsgCreateGroupWithPolicy) ProtoMessage()

func (*MsgCreateGroupWithPolicy) ProtoReflect

func (x *MsgCreateGroupWithPolicy) ProtoReflect() protoreflect.Message

func (*MsgCreateGroupWithPolicy) Reset

func (x *MsgCreateGroupWithPolicy) Reset()

func (*MsgCreateGroupWithPolicy) String

func (x *MsgCreateGroupWithPolicy) String() string

type MsgCreateGroupWithPolicyResponse

type MsgCreateGroupWithPolicyResponse struct {

	// group_id is the unique ID of the newly created group with policy.
	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// group_policy_address is the account address of the newly created group policy.
	GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type.

func (*MsgCreateGroupWithPolicyResponse) Descriptor deprecated

func (*MsgCreateGroupWithPolicyResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgCreateGroupWithPolicyResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateGroupWithPolicyResponse) GetGroupId

func (x *MsgCreateGroupWithPolicyResponse) GetGroupId() uint64

func (*MsgCreateGroupWithPolicyResponse) GetGroupPolicyAddress

func (x *MsgCreateGroupWithPolicyResponse) GetGroupPolicyAddress() string

func (*MsgCreateGroupWithPolicyResponse) ProtoMessage

func (*MsgCreateGroupWithPolicyResponse) ProtoMessage()

func (*MsgCreateGroupWithPolicyResponse) ProtoReflect

func (*MsgCreateGroupWithPolicyResponse) Reset

func (*MsgCreateGroupWithPolicyResponse) String

type MsgExec

type MsgExec struct {

	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// executor is the account address used to execute the proposal.
	Executor string `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"`
	// contains filtered or unexported fields
}

MsgExec is the Msg/Exec request type.

func (*MsgExec) Descriptor deprecated

func (*MsgExec) Descriptor() ([]byte, []int)

Deprecated: Use MsgExec.ProtoReflect.Descriptor instead.

func (*MsgExec) GetExecutor

func (x *MsgExec) GetExecutor() string

func (*MsgExec) GetProposalId

func (x *MsgExec) GetProposalId() uint64

func (*MsgExec) ProtoMessage

func (*MsgExec) ProtoMessage()

func (*MsgExec) ProtoReflect

func (x *MsgExec) ProtoReflect() protoreflect.Message

func (*MsgExec) Reset

func (x *MsgExec) Reset()

func (*MsgExec) String

func (x *MsgExec) String() string

type MsgExecResponse

type MsgExecResponse struct {

	// result is the final result of the proposal execution.
	Result ProposalExecutorResult `protobuf:"varint,2,opt,name=result,proto3,enum=cosmos.group.v1.ProposalExecutorResult" json:"result,omitempty"`
	// contains filtered or unexported fields
}

MsgExecResponse is the Msg/Exec request type.

func (*MsgExecResponse) Descriptor deprecated

func (*MsgExecResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgExecResponse.ProtoReflect.Descriptor instead.

func (*MsgExecResponse) GetResult

func (x *MsgExecResponse) GetResult() ProposalExecutorResult

func (*MsgExecResponse) ProtoMessage

func (*MsgExecResponse) ProtoMessage()

func (*MsgExecResponse) ProtoReflect

func (x *MsgExecResponse) ProtoReflect() protoreflect.Message

func (*MsgExecResponse) Reset

func (x *MsgExecResponse) Reset()

func (*MsgExecResponse) String

func (x *MsgExecResponse) String() string

type MsgLeaveGroup

type MsgLeaveGroup struct {

	// address is the account address of the group member.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// group_id is the unique ID of the group.
	GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

MsgLeaveGroup is the Msg/LeaveGroup request type.

func (*MsgLeaveGroup) Descriptor deprecated

func (*MsgLeaveGroup) Descriptor() ([]byte, []int)

Deprecated: Use MsgLeaveGroup.ProtoReflect.Descriptor instead.

func (*MsgLeaveGroup) GetAddress

func (x *MsgLeaveGroup) GetAddress() string

func (*MsgLeaveGroup) GetGroupId

func (x *MsgLeaveGroup) GetGroupId() uint64

func (*MsgLeaveGroup) ProtoMessage

func (*MsgLeaveGroup) ProtoMessage()

func (*MsgLeaveGroup) ProtoReflect

func (x *MsgLeaveGroup) ProtoReflect() protoreflect.Message

func (*MsgLeaveGroup) Reset

func (x *MsgLeaveGroup) Reset()

func (*MsgLeaveGroup) String

func (x *MsgLeaveGroup) String() string

type MsgLeaveGroupResponse

type MsgLeaveGroupResponse struct {
	// contains filtered or unexported fields
}

MsgLeaveGroupResponse is the Msg/LeaveGroup response type.

func (*MsgLeaveGroupResponse) Descriptor deprecated

func (*MsgLeaveGroupResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgLeaveGroupResponse.ProtoReflect.Descriptor instead.

func (*MsgLeaveGroupResponse) ProtoMessage

func (*MsgLeaveGroupResponse) ProtoMessage()

func (*MsgLeaveGroupResponse) ProtoReflect

func (x *MsgLeaveGroupResponse) ProtoReflect() protoreflect.Message

func (*MsgLeaveGroupResponse) Reset

func (x *MsgLeaveGroupResponse) Reset()

func (*MsgLeaveGroupResponse) String

func (x *MsgLeaveGroupResponse) String() string

type MsgServer

type MsgServer interface {
	// CreateGroup creates a new group with an admin account address, a list of members and some optional metadata.
	CreateGroup(context.Context, *MsgCreateGroup) (*MsgCreateGroupResponse, error)
	// UpdateGroupMembers updates the group members with given group id and admin address.
	UpdateGroupMembers(context.Context, *MsgUpdateGroupMembers) (*MsgUpdateGroupMembersResponse, error)
	// UpdateGroupAdmin updates the group admin with given group id and previous admin address.
	UpdateGroupAdmin(context.Context, *MsgUpdateGroupAdmin) (*MsgUpdateGroupAdminResponse, error)
	// UpdateGroupMetadata updates the group metadata with given group id and admin address.
	UpdateGroupMetadata(context.Context, *MsgUpdateGroupMetadata) (*MsgUpdateGroupMetadataResponse, error)
	// CreateGroupPolicy creates a new group policy using given DecisionPolicy.
	CreateGroupPolicy(context.Context, *MsgCreateGroupPolicy) (*MsgCreateGroupPolicyResponse, error)
	// CreateGroupWithPolicy creates a new group with policy.
	CreateGroupWithPolicy(context.Context, *MsgCreateGroupWithPolicy) (*MsgCreateGroupWithPolicyResponse, error)
	// UpdateGroupPolicyAdmin updates a group policy admin.
	UpdateGroupPolicyAdmin(context.Context, *MsgUpdateGroupPolicyAdmin) (*MsgUpdateGroupPolicyAdminResponse, error)
	// UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated.
	UpdateGroupPolicyDecisionPolicy(context.Context, *MsgUpdateGroupPolicyDecisionPolicy) (*MsgUpdateGroupPolicyDecisionPolicyResponse, error)
	// UpdateGroupPolicyMetadata updates a group policy metadata.
	UpdateGroupPolicyMetadata(context.Context, *MsgUpdateGroupPolicyMetadata) (*MsgUpdateGroupPolicyMetadataResponse, error)
	// SubmitProposal submits a new proposal.
	SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error)
	// WithdrawProposal withdraws a proposal.
	WithdrawProposal(context.Context, *MsgWithdrawProposal) (*MsgWithdrawProposalResponse, error)
	// Vote allows a voter to vote on a proposal.
	Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
	// Exec executes a proposal.
	Exec(context.Context, *MsgExec) (*MsgExecResponse, error)
	// LeaveGroup allows a group member to leave the group.
	LeaveGroup(context.Context, *MsgLeaveGroup) (*MsgLeaveGroupResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgSubmitProposal

type MsgSubmitProposal struct {

	// group_policy_address is the account address of group policy.
	GroupPolicyAddress string `protobuf:"bytes,1,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"`
	// proposers are the account addresses of the proposers.
	// Proposers signatures will be counted as yes votes.
	Proposers []string `protobuf:"bytes,2,rep,name=proposers,proto3" json:"proposers,omitempty"`
	// metadata is any arbitrary metadata attached to the proposal.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// messages is a list of `sdk.Msg`s that will be executed if the proposal passes.
	Messages []*anypb.Any `protobuf:"bytes,4,rep,name=messages,proto3" json:"messages,omitempty"`
	// 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.
	Exec Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=cosmos.group.v1.Exec" json:"exec,omitempty"`
	// title is the title of the proposal.
	//
	// Since: cosmos-sdk 0.47
	Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"`
	// summary is the summary of the proposal.
	//
	// Since: cosmos-sdk 0.47
	Summary string `protobuf:"bytes,7,opt,name=summary,proto3" json:"summary,omitempty"`
	// contains filtered or unexported fields
}

MsgSubmitProposal is the Msg/SubmitProposal request type.

func (*MsgSubmitProposal) Descriptor deprecated

func (*MsgSubmitProposal) Descriptor() ([]byte, []int)

Deprecated: Use MsgSubmitProposal.ProtoReflect.Descriptor instead.

func (*MsgSubmitProposal) GetExec

func (x *MsgSubmitProposal) GetExec() Exec

func (*MsgSubmitProposal) GetGroupPolicyAddress

func (x *MsgSubmitProposal) GetGroupPolicyAddress() string

func (*MsgSubmitProposal) GetMessages

func (x *MsgSubmitProposal) GetMessages() []*anypb.Any

func (*MsgSubmitProposal) GetMetadata

func (x *MsgSubmitProposal) GetMetadata() string

func (*MsgSubmitProposal) GetProposers

func (x *MsgSubmitProposal) GetProposers() []string

func (*MsgSubmitProposal) GetSummary

func (x *MsgSubmitProposal) GetSummary() string

func (*MsgSubmitProposal) GetTitle

func (x *MsgSubmitProposal) GetTitle() string

func (*MsgSubmitProposal) ProtoMessage

func (*MsgSubmitProposal) ProtoMessage()

func (*MsgSubmitProposal) ProtoReflect

func (x *MsgSubmitProposal) ProtoReflect() protoreflect.Message

func (*MsgSubmitProposal) Reset

func (x *MsgSubmitProposal) Reset()

func (*MsgSubmitProposal) String

func (x *MsgSubmitProposal) String() string

type MsgSubmitProposalResponse

type MsgSubmitProposalResponse struct {

	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

MsgSubmitProposalResponse is the Msg/SubmitProposal response type.

func (*MsgSubmitProposalResponse) Descriptor deprecated

func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgSubmitProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgSubmitProposalResponse) GetProposalId

func (x *MsgSubmitProposalResponse) GetProposalId() uint64

func (*MsgSubmitProposalResponse) ProtoMessage

func (*MsgSubmitProposalResponse) ProtoMessage()

func (*MsgSubmitProposalResponse) ProtoReflect

func (*MsgSubmitProposalResponse) Reset

func (x *MsgSubmitProposalResponse) Reset()

func (*MsgSubmitProposalResponse) String

func (x *MsgSubmitProposalResponse) String() string

type MsgUpdateGroupAdmin

type MsgUpdateGroupAdmin struct {

	// admin is the current account address of the group admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// group_id is the unique ID of the group.
	GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// new_admin is the group new admin account address.
	NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type.

func (*MsgUpdateGroupAdmin) Descriptor deprecated

func (*MsgUpdateGroupAdmin) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateGroupAdmin.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupAdmin) GetAdmin

func (x *MsgUpdateGroupAdmin) GetAdmin() string

func (*MsgUpdateGroupAdmin) GetGroupId

func (x *MsgUpdateGroupAdmin) GetGroupId() uint64

func (*MsgUpdateGroupAdmin) GetNewAdmin

func (x *MsgUpdateGroupAdmin) GetNewAdmin() string

func (*MsgUpdateGroupAdmin) ProtoMessage

func (*MsgUpdateGroupAdmin) ProtoMessage()

func (*MsgUpdateGroupAdmin) ProtoReflect

func (x *MsgUpdateGroupAdmin) ProtoReflect() protoreflect.Message

func (*MsgUpdateGroupAdmin) Reset

func (x *MsgUpdateGroupAdmin) Reset()

func (*MsgUpdateGroupAdmin) String

func (x *MsgUpdateGroupAdmin) String() string

type MsgUpdateGroupAdminResponse

type MsgUpdateGroupAdminResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type.

func (*MsgUpdateGroupAdminResponse) Descriptor deprecated

func (*MsgUpdateGroupAdminResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateGroupAdminResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupAdminResponse) ProtoMessage

func (*MsgUpdateGroupAdminResponse) ProtoMessage()

func (*MsgUpdateGroupAdminResponse) ProtoReflect

func (*MsgUpdateGroupAdminResponse) Reset

func (x *MsgUpdateGroupAdminResponse) Reset()

func (*MsgUpdateGroupAdminResponse) String

func (x *MsgUpdateGroupAdminResponse) String() string

type MsgUpdateGroupMembers

type MsgUpdateGroupMembers struct {

	// admin is the account address of the group admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// group_id is the unique ID of the group.
	GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// member_updates is the list of members to update,
	// set weight to 0 to remove a member.
	MemberUpdates []*MemberRequest `protobuf:"bytes,3,rep,name=member_updates,json=memberUpdates,proto3" json:"member_updates,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type.

func (*MsgUpdateGroupMembers) Descriptor deprecated

func (*MsgUpdateGroupMembers) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateGroupMembers.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupMembers) GetAdmin

func (x *MsgUpdateGroupMembers) GetAdmin() string

func (*MsgUpdateGroupMembers) GetGroupId

func (x *MsgUpdateGroupMembers) GetGroupId() uint64

func (*MsgUpdateGroupMembers) GetMemberUpdates

func (x *MsgUpdateGroupMembers) GetMemberUpdates() []*MemberRequest

func (*MsgUpdateGroupMembers) ProtoMessage

func (*MsgUpdateGroupMembers) ProtoMessage()

func (*MsgUpdateGroupMembers) ProtoReflect

func (x *MsgUpdateGroupMembers) ProtoReflect() protoreflect.Message

func (*MsgUpdateGroupMembers) Reset

func (x *MsgUpdateGroupMembers) Reset()

func (*MsgUpdateGroupMembers) String

func (x *MsgUpdateGroupMembers) String() string

type MsgUpdateGroupMembersResponse

type MsgUpdateGroupMembersResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type.

func (*MsgUpdateGroupMembersResponse) Descriptor deprecated

func (*MsgUpdateGroupMembersResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateGroupMembersResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupMembersResponse) ProtoMessage

func (*MsgUpdateGroupMembersResponse) ProtoMessage()

func (*MsgUpdateGroupMembersResponse) ProtoReflect

func (*MsgUpdateGroupMembersResponse) Reset

func (x *MsgUpdateGroupMembersResponse) Reset()

func (*MsgUpdateGroupMembersResponse) String

type MsgUpdateGroupMetadata

type MsgUpdateGroupMetadata struct {

	// admin is the account address of the group admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// group_id is the unique ID of the group.
	GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// metadata is the updated group's metadata.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type.

func (*MsgUpdateGroupMetadata) Descriptor deprecated

func (*MsgUpdateGroupMetadata) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateGroupMetadata.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupMetadata) GetAdmin

func (x *MsgUpdateGroupMetadata) GetAdmin() string

func (*MsgUpdateGroupMetadata) GetGroupId

func (x *MsgUpdateGroupMetadata) GetGroupId() uint64

func (*MsgUpdateGroupMetadata) GetMetadata

func (x *MsgUpdateGroupMetadata) GetMetadata() string

func (*MsgUpdateGroupMetadata) ProtoMessage

func (*MsgUpdateGroupMetadata) ProtoMessage()

func (*MsgUpdateGroupMetadata) ProtoReflect

func (x *MsgUpdateGroupMetadata) ProtoReflect() protoreflect.Message

func (*MsgUpdateGroupMetadata) Reset

func (x *MsgUpdateGroupMetadata) Reset()

func (*MsgUpdateGroupMetadata) String

func (x *MsgUpdateGroupMetadata) String() string

type MsgUpdateGroupMetadataResponse

type MsgUpdateGroupMetadataResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type.

func (*MsgUpdateGroupMetadataResponse) Descriptor deprecated

func (*MsgUpdateGroupMetadataResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateGroupMetadataResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupMetadataResponse) ProtoMessage

func (*MsgUpdateGroupMetadataResponse) ProtoMessage()

func (*MsgUpdateGroupMetadataResponse) ProtoReflect

func (*MsgUpdateGroupMetadataResponse) Reset

func (x *MsgUpdateGroupMetadataResponse) Reset()

func (*MsgUpdateGroupMetadataResponse) String

type MsgUpdateGroupPolicyAdmin

type MsgUpdateGroupPolicyAdmin struct {

	// admin is the account address of the group admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// group_policy_address is the account address of the group policy.
	GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"`
	// new_admin is the new group policy admin.
	NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type.

func (*MsgUpdateGroupPolicyAdmin) Descriptor deprecated

func (*MsgUpdateGroupPolicyAdmin) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateGroupPolicyAdmin.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupPolicyAdmin) GetAdmin

func (x *MsgUpdateGroupPolicyAdmin) GetAdmin() string

func (*MsgUpdateGroupPolicyAdmin) GetGroupPolicyAddress

func (x *MsgUpdateGroupPolicyAdmin) GetGroupPolicyAddress() string

func (*MsgUpdateGroupPolicyAdmin) GetNewAdmin

func (x *MsgUpdateGroupPolicyAdmin) GetNewAdmin() string

func (*MsgUpdateGroupPolicyAdmin) ProtoMessage

func (*MsgUpdateGroupPolicyAdmin) ProtoMessage()

func (*MsgUpdateGroupPolicyAdmin) ProtoReflect

func (*MsgUpdateGroupPolicyAdmin) Reset

func (x *MsgUpdateGroupPolicyAdmin) Reset()

func (*MsgUpdateGroupPolicyAdmin) String

func (x *MsgUpdateGroupPolicyAdmin) String() string

type MsgUpdateGroupPolicyAdminResponse

type MsgUpdateGroupPolicyAdminResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type.

func (*MsgUpdateGroupPolicyAdminResponse) Descriptor deprecated

func (*MsgUpdateGroupPolicyAdminResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateGroupPolicyAdminResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupPolicyAdminResponse) ProtoMessage

func (*MsgUpdateGroupPolicyAdminResponse) ProtoMessage()

func (*MsgUpdateGroupPolicyAdminResponse) ProtoReflect

func (*MsgUpdateGroupPolicyAdminResponse) Reset

func (*MsgUpdateGroupPolicyAdminResponse) String

type MsgUpdateGroupPolicyDecisionPolicy

type MsgUpdateGroupPolicyDecisionPolicy struct {

	// admin is the account address of the group admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// group_policy_address is the account address of group policy.
	GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"`
	// decision_policy is the updated group policy's decision policy.
	DecisionPolicy *anypb.Any `protobuf:"bytes,3,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type.

func (*MsgUpdateGroupPolicyDecisionPolicy) Descriptor deprecated

func (*MsgUpdateGroupPolicyDecisionPolicy) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateGroupPolicyDecisionPolicy.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupPolicyDecisionPolicy) GetAdmin

func (*MsgUpdateGroupPolicyDecisionPolicy) GetDecisionPolicy

func (x *MsgUpdateGroupPolicyDecisionPolicy) GetDecisionPolicy() *anypb.Any

func (*MsgUpdateGroupPolicyDecisionPolicy) GetGroupPolicyAddress

func (x *MsgUpdateGroupPolicyDecisionPolicy) GetGroupPolicyAddress() string

func (*MsgUpdateGroupPolicyDecisionPolicy) ProtoMessage

func (*MsgUpdateGroupPolicyDecisionPolicy) ProtoMessage()

func (*MsgUpdateGroupPolicyDecisionPolicy) ProtoReflect

func (*MsgUpdateGroupPolicyDecisionPolicy) Reset

func (*MsgUpdateGroupPolicyDecisionPolicy) String

type MsgUpdateGroupPolicyDecisionPolicyResponse

type MsgUpdateGroupPolicyDecisionPolicyResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type.

func (*MsgUpdateGroupPolicyDecisionPolicyResponse) Descriptor deprecated

Deprecated: Use MsgUpdateGroupPolicyDecisionPolicyResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupPolicyDecisionPolicyResponse) ProtoMessage

func (*MsgUpdateGroupPolicyDecisionPolicyResponse) ProtoReflect

func (*MsgUpdateGroupPolicyDecisionPolicyResponse) Reset

func (*MsgUpdateGroupPolicyDecisionPolicyResponse) String

type MsgUpdateGroupPolicyMetadata

type MsgUpdateGroupPolicyMetadata struct {

	// admin is the account address of the group admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// group_policy_address is the account address of group policy.
	GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"`
	// metadata is the group policy metadata to be updated.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type.

func (*MsgUpdateGroupPolicyMetadata) Descriptor deprecated

func (*MsgUpdateGroupPolicyMetadata) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateGroupPolicyMetadata.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupPolicyMetadata) GetAdmin

func (x *MsgUpdateGroupPolicyMetadata) GetAdmin() string

func (*MsgUpdateGroupPolicyMetadata) GetGroupPolicyAddress

func (x *MsgUpdateGroupPolicyMetadata) GetGroupPolicyAddress() string

func (*MsgUpdateGroupPolicyMetadata) GetMetadata

func (x *MsgUpdateGroupPolicyMetadata) GetMetadata() string

func (*MsgUpdateGroupPolicyMetadata) ProtoMessage

func (*MsgUpdateGroupPolicyMetadata) ProtoMessage()

func (*MsgUpdateGroupPolicyMetadata) ProtoReflect

func (*MsgUpdateGroupPolicyMetadata) Reset

func (x *MsgUpdateGroupPolicyMetadata) Reset()

func (*MsgUpdateGroupPolicyMetadata) String

type MsgUpdateGroupPolicyMetadataResponse

type MsgUpdateGroupPolicyMetadataResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type.

func (*MsgUpdateGroupPolicyMetadataResponse) Descriptor deprecated

func (*MsgUpdateGroupPolicyMetadataResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateGroupPolicyMetadataResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupPolicyMetadataResponse) ProtoMessage

func (*MsgUpdateGroupPolicyMetadataResponse) ProtoMessage()

func (*MsgUpdateGroupPolicyMetadataResponse) ProtoReflect

func (*MsgUpdateGroupPolicyMetadataResponse) Reset

func (*MsgUpdateGroupPolicyMetadataResponse) String

type MsgVote

type MsgVote struct {

	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// voter is the voter account address.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// option is the voter's choice on the proposal.
	Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1.VoteOption" json:"option,omitempty"`
	// metadata is any arbitrary metadata attached to the vote.
	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// exec defines whether the proposal should be executed
	// immediately after voting or not.
	Exec Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=cosmos.group.v1.Exec" json:"exec,omitempty"`
	// contains filtered or unexported fields
}

MsgVote is the Msg/Vote request type.

func (*MsgVote) Descriptor deprecated

func (*MsgVote) Descriptor() ([]byte, []int)

Deprecated: Use MsgVote.ProtoReflect.Descriptor instead.

func (*MsgVote) GetExec

func (x *MsgVote) GetExec() Exec

func (*MsgVote) GetMetadata

func (x *MsgVote) GetMetadata() string

func (*MsgVote) GetOption

func (x *MsgVote) GetOption() VoteOption

func (*MsgVote) GetProposalId

func (x *MsgVote) GetProposalId() uint64

func (*MsgVote) GetVoter

func (x *MsgVote) GetVoter() string

func (*MsgVote) ProtoMessage

func (*MsgVote) ProtoMessage()

func (*MsgVote) ProtoReflect

func (x *MsgVote) ProtoReflect() protoreflect.Message

func (*MsgVote) Reset

func (x *MsgVote) Reset()

func (*MsgVote) String

func (x *MsgVote) String() string

type MsgVoteResponse

type MsgVoteResponse struct {
	// contains filtered or unexported fields
}

MsgVoteResponse is the Msg/Vote response type.

func (*MsgVoteResponse) Descriptor deprecated

func (*MsgVoteResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgVoteResponse.ProtoReflect.Descriptor instead.

func (*MsgVoteResponse) ProtoMessage

func (*MsgVoteResponse) ProtoMessage()

func (*MsgVoteResponse) ProtoReflect

func (x *MsgVoteResponse) ProtoReflect() protoreflect.Message

func (*MsgVoteResponse) Reset

func (x *MsgVoteResponse) Reset()

func (*MsgVoteResponse) String

func (x *MsgVoteResponse) String() string

type MsgWithdrawProposal

type MsgWithdrawProposal struct {

	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// address is the admin of the group policy or one of the proposer of the proposal.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

MsgWithdrawProposal is the Msg/WithdrawProposal request type.

func (*MsgWithdrawProposal) Descriptor deprecated

func (*MsgWithdrawProposal) Descriptor() ([]byte, []int)

Deprecated: Use MsgWithdrawProposal.ProtoReflect.Descriptor instead.

func (*MsgWithdrawProposal) GetAddress

func (x *MsgWithdrawProposal) GetAddress() string

func (*MsgWithdrawProposal) GetProposalId

func (x *MsgWithdrawProposal) GetProposalId() uint64

func (*MsgWithdrawProposal) ProtoMessage

func (*MsgWithdrawProposal) ProtoMessage()

func (*MsgWithdrawProposal) ProtoReflect

func (x *MsgWithdrawProposal) ProtoReflect() protoreflect.Message

func (*MsgWithdrawProposal) Reset

func (x *MsgWithdrawProposal) Reset()

func (*MsgWithdrawProposal) String

func (x *MsgWithdrawProposal) String() string

type MsgWithdrawProposalResponse

type MsgWithdrawProposalResponse struct {
	// contains filtered or unexported fields
}

MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type.

func (*MsgWithdrawProposalResponse) Descriptor deprecated

func (*MsgWithdrawProposalResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgWithdrawProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgWithdrawProposalResponse) ProtoMessage

func (*MsgWithdrawProposalResponse) ProtoMessage()

func (*MsgWithdrawProposalResponse) ProtoReflect

func (*MsgWithdrawProposalResponse) Reset

func (x *MsgWithdrawProposalResponse) Reset()

func (*MsgWithdrawProposalResponse) String

func (x *MsgWithdrawProposalResponse) String() string

type PercentageDecisionPolicy

type PercentageDecisionPolicy struct {

	// percentage is the minimum percentage of the weighted sum of `YES` votes must
	// meet for a proposal to succeed.
	Percentage string `protobuf:"bytes,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// windows defines the different windows for voting and execution.
	Windows *DecisionPolicyWindows `protobuf:"bytes,2,opt,name=windows,proto3" json:"windows,omitempty"`
	// contains filtered or unexported fields
}

PercentageDecisionPolicy is a decision policy where a proposal passes when it satisfies the two following conditions:

  1. The percentage of all `YES` voters' weights out of the total group weight is greater or equal than the given `percentage`.
  2. The voting and execution periods of the proposal respect the parameters given by `windows`.

func (*PercentageDecisionPolicy) Descriptor deprecated

func (*PercentageDecisionPolicy) Descriptor() ([]byte, []int)

Deprecated: Use PercentageDecisionPolicy.ProtoReflect.Descriptor instead.

func (*PercentageDecisionPolicy) GetPercentage

func (x *PercentageDecisionPolicy) GetPercentage() string

func (*PercentageDecisionPolicy) GetWindows

func (*PercentageDecisionPolicy) ProtoMessage

func (*PercentageDecisionPolicy) ProtoMessage()

func (*PercentageDecisionPolicy) ProtoReflect

func (x *PercentageDecisionPolicy) ProtoReflect() protoreflect.Message

func (*PercentageDecisionPolicy) Reset

func (x *PercentageDecisionPolicy) Reset()

func (*PercentageDecisionPolicy) String

func (x *PercentageDecisionPolicy) String() string

type Proposal

type Proposal struct {

	// id is the unique id of the proposal.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// group_policy_address is the account address of group policy.
	GroupPolicyAddress string `protobuf:"bytes,2,opt,name=group_policy_address,json=groupPolicyAddress,proto3" json:"group_policy_address,omitempty"`
	// metadata is any arbitrary metadata attached to the proposal.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// proposers are the account addresses of the proposers.
	Proposers []string `protobuf:"bytes,4,rep,name=proposers,proto3" json:"proposers,omitempty"`
	// submit_time is a timestamp specifying when a proposal was submitted.
	SubmitTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
	// group_version tracks the version of the group at proposal submission.
	// This field is here for informational purposes only.
	GroupVersion uint64 `protobuf:"varint,6,opt,name=group_version,json=groupVersion,proto3" json:"group_version,omitempty"`
	// group_policy_version tracks the version of the group policy at proposal submission.
	// When a decision policy is changed, existing proposals from previous policy
	// versions will become invalid with the `ABORTED` status.
	// This field is here for informational purposes only.
	GroupPolicyVersion uint64 `protobuf:"varint,7,opt,name=group_policy_version,json=groupPolicyVersion,proto3" json:"group_policy_version,omitempty"`
	// status represents the high level position in the life cycle of the proposal. Initial value is Submitted.
	Status ProposalStatus `protobuf:"varint,8,opt,name=status,proto3,enum=cosmos.group.v1.ProposalStatus" json:"status,omitempty"`
	// final_tally_result contains the sums of all weighted votes for this
	// proposal for each vote option. It is empty at submission, and only
	// populated after tallying, at voting period end or at proposal execution,
	// whichever happens first.
	FinalTallyResult *TallyResult `protobuf:"bytes,9,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result,omitempty"`
	// voting_period_end is the timestamp before which voting must be done.
	// Unless a successful MsgExec is called before (to execute a proposal whose
	// tally is successful before the voting period ends), tallying will be done
	// at this point, and the `final_tally_result`and `status` fields will be
	// accordingly updated.
	VotingPeriodEnd *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=voting_period_end,json=votingPeriodEnd,proto3" json:"voting_period_end,omitempty"`
	// executor_result is the final result of the proposal execution. Initial value is NotRun.
	ExecutorResult ProposalExecutorResult `` /* 149-byte string literal not displayed */
	// messages is a list of `sdk.Msg`s that will be executed if the proposal passes.
	Messages []*anypb.Any `protobuf:"bytes,12,rep,name=messages,proto3" json:"messages,omitempty"`
	// title is the title of the proposal
	//
	// Since: cosmos-sdk 0.47
	Title string `protobuf:"bytes,13,opt,name=title,proto3" json:"title,omitempty"`
	// summary is a short summary of the proposal
	//
	// Since: cosmos-sdk 0.47
	Summary string `protobuf:"bytes,14,opt,name=summary,proto3" json:"summary,omitempty"`
	// contains filtered or unexported fields
}

Proposal defines a group proposal. Any member of a group can submit a proposal for a group policy to decide upon. A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal passes as well as some optional metadata associated with the proposal.

func (*Proposal) Descriptor deprecated

func (*Proposal) Descriptor() ([]byte, []int)

Deprecated: Use Proposal.ProtoReflect.Descriptor instead.

func (*Proposal) GetExecutorResult

func (x *Proposal) GetExecutorResult() ProposalExecutorResult

func (*Proposal) GetFinalTallyResult

func (x *Proposal) GetFinalTallyResult() *TallyResult

func (*Proposal) GetGroupPolicyAddress

func (x *Proposal) GetGroupPolicyAddress() string

func (*Proposal) GetGroupPolicyVersion

func (x *Proposal) GetGroupPolicyVersion() uint64

func (*Proposal) GetGroupVersion

func (x *Proposal) GetGroupVersion() uint64

func (*Proposal) GetId

func (x *Proposal) GetId() uint64

func (*Proposal) GetMessages

func (x *Proposal) GetMessages() []*anypb.Any

func (*Proposal) GetMetadata

func (x *Proposal) GetMetadata() string

func (*Proposal) GetProposers

func (x *Proposal) GetProposers() []string

func (*Proposal) GetStatus

func (x *Proposal) GetStatus() ProposalStatus

func (*Proposal) GetSubmitTime

func (x *Proposal) GetSubmitTime() *timestamppb.Timestamp

func (*Proposal) GetSummary

func (x *Proposal) GetSummary() string

func (*Proposal) GetTitle

func (x *Proposal) GetTitle() string

func (*Proposal) GetVotingPeriodEnd

func (x *Proposal) GetVotingPeriodEnd() *timestamppb.Timestamp

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) ProtoReflect

func (x *Proposal) ProtoReflect() protoreflect.Message

func (*Proposal) Reset

func (x *Proposal) Reset()

func (*Proposal) String

func (x *Proposal) String() string

type ProposalExecutorResult

type ProposalExecutorResult int32

ProposalExecutorResult defines types of proposal executor results.

const (
	// An empty value is not allowed.
	ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED ProposalExecutorResult = 0
	// We have not yet run the executor.
	ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_NOT_RUN ProposalExecutorResult = 1
	// The executor was successful and proposed action updated state.
	ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_SUCCESS ProposalExecutorResult = 2
	// The executor returned an error and proposed action didn't update state.
	ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_FAILURE ProposalExecutorResult = 3
)

func (ProposalExecutorResult) Descriptor

func (ProposalExecutorResult) Enum

func (ProposalExecutorResult) EnumDescriptor deprecated

func (ProposalExecutorResult) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProposalExecutorResult.Descriptor instead.

func (ProposalExecutorResult) Number

func (ProposalExecutorResult) String

func (x ProposalExecutorResult) String() string

func (ProposalExecutorResult) Type

type ProposalStatus

type ProposalStatus int32

ProposalStatus defines proposal statuses.

const (
	// An empty value is invalid and not allowed.
	ProposalStatus_PROPOSAL_STATUS_UNSPECIFIED ProposalStatus = 0
	// Initial status of a proposal when submitted.
	ProposalStatus_PROPOSAL_STATUS_SUBMITTED ProposalStatus = 1
	// Final status of a proposal when the final tally is done and the outcome
	// passes the group policy's decision policy.
	ProposalStatus_PROPOSAL_STATUS_ACCEPTED ProposalStatus = 2
	// Final status of a proposal when the final tally is done and the outcome
	// is rejected by the group policy's decision policy.
	ProposalStatus_PROPOSAL_STATUS_REJECTED ProposalStatus = 3
	// Final status of a proposal when the group policy is modified before the
	// final tally.
	ProposalStatus_PROPOSAL_STATUS_ABORTED ProposalStatus = 4
	// A proposal can be withdrawn before the voting start time by the owner.
	// When this happens the final status is Withdrawn.
	ProposalStatus_PROPOSAL_STATUS_WITHDRAWN ProposalStatus = 5
)

func (ProposalStatus) Descriptor

func (ProposalStatus) Enum

func (x ProposalStatus) Enum() *ProposalStatus

func (ProposalStatus) EnumDescriptor deprecated

func (ProposalStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProposalStatus.Descriptor instead.

func (ProposalStatus) Number

func (ProposalStatus) String

func (x ProposalStatus) String() string

func (ProposalStatus) Type

type QueryClient

type QueryClient interface {
	// GroupInfo queries group info based on group id.
	GroupInfo(ctx context.Context, in *QueryGroupInfoRequest, opts ...grpc.CallOption) (*QueryGroupInfoResponse, error)
	// GroupPolicyInfo queries group policy info based on account address of group policy.
	GroupPolicyInfo(ctx context.Context, in *QueryGroupPolicyInfoRequest, opts ...grpc.CallOption) (*QueryGroupPolicyInfoResponse, error)
	// GroupMembers queries members of a group by group id.
	GroupMembers(ctx context.Context, in *QueryGroupMembersRequest, opts ...grpc.CallOption) (*QueryGroupMembersResponse, error)
	// GroupsByAdmin queries groups by admin address.
	GroupsByAdmin(ctx context.Context, in *QueryGroupsByAdminRequest, opts ...grpc.CallOption) (*QueryGroupsByAdminResponse, error)
	// GroupPoliciesByGroup queries group policies by group id.
	GroupPoliciesByGroup(ctx context.Context, in *QueryGroupPoliciesByGroupRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByGroupResponse, error)
	// GroupPoliciesByAdmin queries group policies by admin address.
	GroupPoliciesByAdmin(ctx context.Context, in *QueryGroupPoliciesByAdminRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByAdminResponse, error)
	// Proposal queries a proposal based on proposal id.
	Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error)
	// ProposalsByGroupPolicy queries proposals based on account address of group policy.
	ProposalsByGroupPolicy(ctx context.Context, in *QueryProposalsByGroupPolicyRequest, opts ...grpc.CallOption) (*QueryProposalsByGroupPolicyResponse, error)
	// VoteByProposalVoter queries a vote by proposal id and voter.
	VoteByProposalVoter(ctx context.Context, in *QueryVoteByProposalVoterRequest, opts ...grpc.CallOption) (*QueryVoteByProposalVoterResponse, error)
	// VotesByProposal queries a vote by proposal id.
	VotesByProposal(ctx context.Context, in *QueryVotesByProposalRequest, opts ...grpc.CallOption) (*QueryVotesByProposalResponse, error)
	// VotesByVoter queries a vote by voter.
	VotesByVoter(ctx context.Context, in *QueryVotesByVoterRequest, opts ...grpc.CallOption) (*QueryVotesByVoterResponse, error)
	// GroupsByMember queries groups by member address.
	GroupsByMember(ctx context.Context, in *QueryGroupsByMemberRequest, opts ...grpc.CallOption) (*QueryGroupsByMemberResponse, error)
	// TallyResult returns the tally result of a proposal. If the proposal is
	// still in voting period, then this query computes the current tally state,
	// which might not be final. On the other hand, if the proposal is final,
	// then it simply returns the `final_tally_result` state stored in the
	// proposal itself.
	TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error)
	// Groups queries all groups in state.
	//
	// Since: cosmos-sdk 0.47.1
	Groups(ctx context.Context, in *QueryGroupsRequest, opts ...grpc.CallOption) (*QueryGroupsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryGroupInfoRequest

type QueryGroupInfoRequest struct {

	// group_id is the unique ID of the group.
	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupInfoRequest is the Query/GroupInfo request type.

func (*QueryGroupInfoRequest) Descriptor deprecated

func (*QueryGroupInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupInfoRequest.ProtoReflect.Descriptor instead.

func (*QueryGroupInfoRequest) GetGroupId

func (x *QueryGroupInfoRequest) GetGroupId() uint64

func (*QueryGroupInfoRequest) ProtoMessage

func (*QueryGroupInfoRequest) ProtoMessage()

func (*QueryGroupInfoRequest) ProtoReflect

func (x *QueryGroupInfoRequest) ProtoReflect() protoreflect.Message

func (*QueryGroupInfoRequest) Reset

func (x *QueryGroupInfoRequest) Reset()

func (*QueryGroupInfoRequest) String

func (x *QueryGroupInfoRequest) String() string

type QueryGroupInfoResponse

type QueryGroupInfoResponse struct {

	// info is the GroupInfo of the group.
	Info *GroupInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupInfoResponse is the Query/GroupInfo response type.

func (*QueryGroupInfoResponse) Descriptor deprecated

func (*QueryGroupInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupInfoResponse.ProtoReflect.Descriptor instead.

func (*QueryGroupInfoResponse) GetInfo

func (x *QueryGroupInfoResponse) GetInfo() *GroupInfo

func (*QueryGroupInfoResponse) ProtoMessage

func (*QueryGroupInfoResponse) ProtoMessage()

func (*QueryGroupInfoResponse) ProtoReflect

func (x *QueryGroupInfoResponse) ProtoReflect() protoreflect.Message

func (*QueryGroupInfoResponse) Reset

func (x *QueryGroupInfoResponse) Reset()

func (*QueryGroupInfoResponse) String

func (x *QueryGroupInfoResponse) String() string

type QueryGroupMembersRequest

type QueryGroupMembersRequest struct {

	// group_id is the unique ID of the group.
	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupMembersRequest is the Query/GroupMembers request type.

func (*QueryGroupMembersRequest) Descriptor deprecated

func (*QueryGroupMembersRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupMembersRequest.ProtoReflect.Descriptor instead.

func (*QueryGroupMembersRequest) GetGroupId

func (x *QueryGroupMembersRequest) GetGroupId() uint64

func (*QueryGroupMembersRequest) GetPagination

func (x *QueryGroupMembersRequest) GetPagination() *v1beta1.PageRequest

func (*QueryGroupMembersRequest) ProtoMessage

func (*QueryGroupMembersRequest) ProtoMessage()

func (*QueryGroupMembersRequest) ProtoReflect

func (x *QueryGroupMembersRequest) ProtoReflect() protoreflect.Message

func (*QueryGroupMembersRequest) Reset

func (x *QueryGroupMembersRequest) Reset()

func (*QueryGroupMembersRequest) String

func (x *QueryGroupMembersRequest) String() string

type QueryGroupMembersResponse

type QueryGroupMembersResponse struct {

	// members are the members of the group with given group_id.
	Members []*GroupMember `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupMembersResponse is the Query/GroupMembersResponse response type.

func (*QueryGroupMembersResponse) Descriptor deprecated

func (*QueryGroupMembersResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupMembersResponse.ProtoReflect.Descriptor instead.

func (*QueryGroupMembersResponse) GetMembers

func (x *QueryGroupMembersResponse) GetMembers() []*GroupMember

func (*QueryGroupMembersResponse) GetPagination

func (x *QueryGroupMembersResponse) GetPagination() *v1beta1.PageResponse

func (*QueryGroupMembersResponse) ProtoMessage

func (*QueryGroupMembersResponse) ProtoMessage()

func (*QueryGroupMembersResponse) ProtoReflect

func (*QueryGroupMembersResponse) Reset

func (x *QueryGroupMembersResponse) Reset()

func (*QueryGroupMembersResponse) String

func (x *QueryGroupMembersResponse) String() string

type QueryGroupPoliciesByAdminRequest

type QueryGroupPoliciesByAdminRequest struct {

	// admin is the admin address of the group policy.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type.

func (*QueryGroupPoliciesByAdminRequest) Descriptor deprecated

func (*QueryGroupPoliciesByAdminRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupPoliciesByAdminRequest.ProtoReflect.Descriptor instead.

func (*QueryGroupPoliciesByAdminRequest) GetAdmin

func (*QueryGroupPoliciesByAdminRequest) GetPagination

func (*QueryGroupPoliciesByAdminRequest) ProtoMessage

func (*QueryGroupPoliciesByAdminRequest) ProtoMessage()

func (*QueryGroupPoliciesByAdminRequest) ProtoReflect

func (*QueryGroupPoliciesByAdminRequest) Reset

func (*QueryGroupPoliciesByAdminRequest) String

type QueryGroupPoliciesByAdminResponse

type QueryGroupPoliciesByAdminResponse struct {

	// group_policies are the group policies info with provided admin.
	GroupPolicies []*GroupPolicyInfo `protobuf:"bytes,1,rep,name=group_policies,json=groupPolicies,proto3" json:"group_policies,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type.

func (*QueryGroupPoliciesByAdminResponse) Descriptor deprecated

func (*QueryGroupPoliciesByAdminResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupPoliciesByAdminResponse.ProtoReflect.Descriptor instead.

func (*QueryGroupPoliciesByAdminResponse) GetGroupPolicies

func (x *QueryGroupPoliciesByAdminResponse) GetGroupPolicies() []*GroupPolicyInfo

func (*QueryGroupPoliciesByAdminResponse) GetPagination

func (*QueryGroupPoliciesByAdminResponse) ProtoMessage

func (*QueryGroupPoliciesByAdminResponse) ProtoMessage()

func (*QueryGroupPoliciesByAdminResponse) ProtoReflect

func (*QueryGroupPoliciesByAdminResponse) Reset

func (*QueryGroupPoliciesByAdminResponse) String

type QueryGroupPoliciesByGroupRequest

type QueryGroupPoliciesByGroupRequest struct {

	// group_id is the unique ID of the group policy's group.
	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type.

func (*QueryGroupPoliciesByGroupRequest) Descriptor deprecated

func (*QueryGroupPoliciesByGroupRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupPoliciesByGroupRequest.ProtoReflect.Descriptor instead.

func (*QueryGroupPoliciesByGroupRequest) GetGroupId

func (x *QueryGroupPoliciesByGroupRequest) GetGroupId() uint64

func (*QueryGroupPoliciesByGroupRequest) GetPagination

func (*QueryGroupPoliciesByGroupRequest) ProtoMessage

func (*QueryGroupPoliciesByGroupRequest) ProtoMessage()

func (*QueryGroupPoliciesByGroupRequest) ProtoReflect

func (*QueryGroupPoliciesByGroupRequest) Reset

func (*QueryGroupPoliciesByGroupRequest) String

type QueryGroupPoliciesByGroupResponse

type QueryGroupPoliciesByGroupResponse struct {

	// group_policies are the group policies info associated with the provided group.
	GroupPolicies []*GroupPolicyInfo `protobuf:"bytes,1,rep,name=group_policies,json=groupPolicies,proto3" json:"group_policies,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type.

func (*QueryGroupPoliciesByGroupResponse) Descriptor deprecated

func (*QueryGroupPoliciesByGroupResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupPoliciesByGroupResponse.ProtoReflect.Descriptor instead.

func (*QueryGroupPoliciesByGroupResponse) GetGroupPolicies

func (x *QueryGroupPoliciesByGroupResponse) GetGroupPolicies() []*GroupPolicyInfo

func (*QueryGroupPoliciesByGroupResponse) GetPagination

func (*QueryGroupPoliciesByGroupResponse) ProtoMessage

func (*QueryGroupPoliciesByGroupResponse) ProtoMessage()

func (*QueryGroupPoliciesByGroupResponse) ProtoReflect

func (*QueryGroupPoliciesByGroupResponse) Reset

func (*QueryGroupPoliciesByGroupResponse) String

type QueryGroupPolicyInfoRequest

type QueryGroupPolicyInfoRequest struct {

	// address is the account address of the group policy.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type.

func (*QueryGroupPolicyInfoRequest) Descriptor deprecated

func (*QueryGroupPolicyInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupPolicyInfoRequest.ProtoReflect.Descriptor instead.

func (*QueryGroupPolicyInfoRequest) GetAddress

func (x *QueryGroupPolicyInfoRequest) GetAddress() string

func (*QueryGroupPolicyInfoRequest) ProtoMessage

func (*QueryGroupPolicyInfoRequest) ProtoMessage()

func (*QueryGroupPolicyInfoRequest) ProtoReflect

func (*QueryGroupPolicyInfoRequest) Reset

func (x *QueryGroupPolicyInfoRequest) Reset()

func (*QueryGroupPolicyInfoRequest) String

func (x *QueryGroupPolicyInfoRequest) String() string

type QueryGroupPolicyInfoResponse

type QueryGroupPolicyInfoResponse struct {

	// info is the GroupPolicyInfo of the group policy.
	Info *GroupPolicyInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type.

func (*QueryGroupPolicyInfoResponse) Descriptor deprecated

func (*QueryGroupPolicyInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupPolicyInfoResponse.ProtoReflect.Descriptor instead.

func (*QueryGroupPolicyInfoResponse) GetInfo

func (*QueryGroupPolicyInfoResponse) ProtoMessage

func (*QueryGroupPolicyInfoResponse) ProtoMessage()

func (*QueryGroupPolicyInfoResponse) ProtoReflect

func (*QueryGroupPolicyInfoResponse) Reset

func (x *QueryGroupPolicyInfoResponse) Reset()

func (*QueryGroupPolicyInfoResponse) String

type QueryGroupsByAdminRequest

type QueryGroupsByAdminRequest struct {

	// admin is the account address of a group's admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type.

func (*QueryGroupsByAdminRequest) Descriptor deprecated

func (*QueryGroupsByAdminRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupsByAdminRequest.ProtoReflect.Descriptor instead.

func (*QueryGroupsByAdminRequest) GetAdmin

func (x *QueryGroupsByAdminRequest) GetAdmin() string

func (*QueryGroupsByAdminRequest) GetPagination

func (x *QueryGroupsByAdminRequest) GetPagination() *v1beta1.PageRequest

func (*QueryGroupsByAdminRequest) ProtoMessage

func (*QueryGroupsByAdminRequest) ProtoMessage()

func (*QueryGroupsByAdminRequest) ProtoReflect

func (*QueryGroupsByAdminRequest) Reset

func (x *QueryGroupsByAdminRequest) Reset()

func (*QueryGroupsByAdminRequest) String

func (x *QueryGroupsByAdminRequest) String() string

type QueryGroupsByAdminResponse

type QueryGroupsByAdminResponse struct {

	// groups are the groups info with the provided admin.
	Groups []*GroupInfo `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type.

func (*QueryGroupsByAdminResponse) Descriptor deprecated

func (*QueryGroupsByAdminResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupsByAdminResponse.ProtoReflect.Descriptor instead.

func (*QueryGroupsByAdminResponse) GetGroups

func (x *QueryGroupsByAdminResponse) GetGroups() []*GroupInfo

func (*QueryGroupsByAdminResponse) GetPagination

func (x *QueryGroupsByAdminResponse) GetPagination() *v1beta1.PageResponse

func (*QueryGroupsByAdminResponse) ProtoMessage

func (*QueryGroupsByAdminResponse) ProtoMessage()

func (*QueryGroupsByAdminResponse) ProtoReflect

func (*QueryGroupsByAdminResponse) Reset

func (x *QueryGroupsByAdminResponse) Reset()

func (*QueryGroupsByAdminResponse) String

func (x *QueryGroupsByAdminResponse) String() string

type QueryGroupsByMemberRequest

type QueryGroupsByMemberRequest struct {

	// address is the group member address.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupsByMemberRequest is the Query/GroupsByMember request type.

func (*QueryGroupsByMemberRequest) Descriptor deprecated

func (*QueryGroupsByMemberRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupsByMemberRequest.ProtoReflect.Descriptor instead.

func (*QueryGroupsByMemberRequest) GetAddress

func (x *QueryGroupsByMemberRequest) GetAddress() string

func (*QueryGroupsByMemberRequest) GetPagination

func (x *QueryGroupsByMemberRequest) GetPagination() *v1beta1.PageRequest

func (*QueryGroupsByMemberRequest) ProtoMessage

func (*QueryGroupsByMemberRequest) ProtoMessage()

func (*QueryGroupsByMemberRequest) ProtoReflect

func (*QueryGroupsByMemberRequest) Reset

func (x *QueryGroupsByMemberRequest) Reset()

func (*QueryGroupsByMemberRequest) String

func (x *QueryGroupsByMemberRequest) String() string

type QueryGroupsByMemberResponse

type QueryGroupsByMemberResponse struct {

	// groups are the groups info with the provided group member.
	Groups []*GroupInfo `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupsByMemberResponse is the Query/GroupsByMember response type.

func (*QueryGroupsByMemberResponse) Descriptor deprecated

func (*QueryGroupsByMemberResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupsByMemberResponse.ProtoReflect.Descriptor instead.

func (*QueryGroupsByMemberResponse) GetGroups

func (x *QueryGroupsByMemberResponse) GetGroups() []*GroupInfo

func (*QueryGroupsByMemberResponse) GetPagination

func (x *QueryGroupsByMemberResponse) GetPagination() *v1beta1.PageResponse

func (*QueryGroupsByMemberResponse) ProtoMessage

func (*QueryGroupsByMemberResponse) ProtoMessage()

func (*QueryGroupsByMemberResponse) ProtoReflect

func (*QueryGroupsByMemberResponse) Reset

func (x *QueryGroupsByMemberResponse) Reset()

func (*QueryGroupsByMemberResponse) String

func (x *QueryGroupsByMemberResponse) String() string

type QueryGroupsRequest

type QueryGroupsRequest struct {

	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupsRequest is the Query/Groups request type.

Since: cosmos-sdk 0.47.1

func (*QueryGroupsRequest) Descriptor deprecated

func (*QueryGroupsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupsRequest.ProtoReflect.Descriptor instead.

func (*QueryGroupsRequest) GetPagination

func (x *QueryGroupsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryGroupsRequest) ProtoMessage

func (*QueryGroupsRequest) ProtoMessage()

func (*QueryGroupsRequest) ProtoReflect

func (x *QueryGroupsRequest) ProtoReflect() protoreflect.Message

func (*QueryGroupsRequest) Reset

func (x *QueryGroupsRequest) Reset()

func (*QueryGroupsRequest) String

func (x *QueryGroupsRequest) String() string

type QueryGroupsResponse

type QueryGroupsResponse struct {

	// `groups` is all the groups present in state.
	Groups []*GroupInfo `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGroupsResponse is the Query/Groups response type.

Since: cosmos-sdk 0.47.1

func (*QueryGroupsResponse) Descriptor deprecated

func (*QueryGroupsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGroupsResponse.ProtoReflect.Descriptor instead.

func (*QueryGroupsResponse) GetGroups

func (x *QueryGroupsResponse) GetGroups() []*GroupInfo

func (*QueryGroupsResponse) GetPagination

func (x *QueryGroupsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryGroupsResponse) ProtoMessage

func (*QueryGroupsResponse) ProtoMessage()

func (*QueryGroupsResponse) ProtoReflect

func (x *QueryGroupsResponse) ProtoReflect() protoreflect.Message

func (*QueryGroupsResponse) Reset

func (x *QueryGroupsResponse) Reset()

func (*QueryGroupsResponse) String

func (x *QueryGroupsResponse) String() string

type QueryProposalRequest

type QueryProposalRequest struct {

	// proposal_id is the unique ID of a proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

QueryProposalRequest is the Query/Proposal request type.

func (*QueryProposalRequest) Descriptor deprecated

func (*QueryProposalRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryProposalRequest.ProtoReflect.Descriptor instead.

func (*QueryProposalRequest) GetProposalId

func (x *QueryProposalRequest) GetProposalId() uint64

func (*QueryProposalRequest) ProtoMessage

func (*QueryProposalRequest) ProtoMessage()

func (*QueryProposalRequest) ProtoReflect

func (x *QueryProposalRequest) ProtoReflect() protoreflect.Message

func (*QueryProposalRequest) Reset

func (x *QueryProposalRequest) Reset()

func (*QueryProposalRequest) String

func (x *QueryProposalRequest) String() string

type QueryProposalResponse

type QueryProposalResponse struct {

	// proposal is the proposal info.
	Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	// contains filtered or unexported fields
}

QueryProposalResponse is the Query/Proposal response type.

func (*QueryProposalResponse) Descriptor deprecated

func (*QueryProposalResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryProposalResponse.ProtoReflect.Descriptor instead.

func (*QueryProposalResponse) GetProposal

func (x *QueryProposalResponse) GetProposal() *Proposal

func (*QueryProposalResponse) ProtoMessage

func (*QueryProposalResponse) ProtoMessage()

func (*QueryProposalResponse) ProtoReflect

func (x *QueryProposalResponse) ProtoReflect() protoreflect.Message

func (*QueryProposalResponse) Reset

func (x *QueryProposalResponse) Reset()

func (*QueryProposalResponse) String

func (x *QueryProposalResponse) String() string

type QueryProposalsByGroupPolicyRequest

type QueryProposalsByGroupPolicyRequest struct {

	// address is the account address of the group policy related to proposals.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type.

func (*QueryProposalsByGroupPolicyRequest) Descriptor deprecated

func (*QueryProposalsByGroupPolicyRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryProposalsByGroupPolicyRequest.ProtoReflect.Descriptor instead.

func (*QueryProposalsByGroupPolicyRequest) GetAddress

func (*QueryProposalsByGroupPolicyRequest) GetPagination

func (*QueryProposalsByGroupPolicyRequest) ProtoMessage

func (*QueryProposalsByGroupPolicyRequest) ProtoMessage()

func (*QueryProposalsByGroupPolicyRequest) ProtoReflect

func (*QueryProposalsByGroupPolicyRequest) Reset

func (*QueryProposalsByGroupPolicyRequest) String

type QueryProposalsByGroupPolicyResponse

type QueryProposalsByGroupPolicyResponse struct {

	// proposals are the proposals with given group policy.
	Proposals []*Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type.

func (*QueryProposalsByGroupPolicyResponse) Descriptor deprecated

func (*QueryProposalsByGroupPolicyResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryProposalsByGroupPolicyResponse.ProtoReflect.Descriptor instead.

func (*QueryProposalsByGroupPolicyResponse) GetPagination

func (*QueryProposalsByGroupPolicyResponse) GetProposals

func (x *QueryProposalsByGroupPolicyResponse) GetProposals() []*Proposal

func (*QueryProposalsByGroupPolicyResponse) ProtoMessage

func (*QueryProposalsByGroupPolicyResponse) ProtoMessage()

func (*QueryProposalsByGroupPolicyResponse) ProtoReflect

func (*QueryProposalsByGroupPolicyResponse) Reset

func (*QueryProposalsByGroupPolicyResponse) String

type QueryServer

type QueryServer interface {
	// GroupInfo queries group info based on group id.
	GroupInfo(context.Context, *QueryGroupInfoRequest) (*QueryGroupInfoResponse, error)
	// GroupPolicyInfo queries group policy info based on account address of group policy.
	GroupPolicyInfo(context.Context, *QueryGroupPolicyInfoRequest) (*QueryGroupPolicyInfoResponse, error)
	// GroupMembers queries members of a group by group id.
	GroupMembers(context.Context, *QueryGroupMembersRequest) (*QueryGroupMembersResponse, error)
	// GroupsByAdmin queries groups by admin address.
	GroupsByAdmin(context.Context, *QueryGroupsByAdminRequest) (*QueryGroupsByAdminResponse, error)
	// GroupPoliciesByGroup queries group policies by group id.
	GroupPoliciesByGroup(context.Context, *QueryGroupPoliciesByGroupRequest) (*QueryGroupPoliciesByGroupResponse, error)
	// GroupPoliciesByAdmin queries group policies by admin address.
	GroupPoliciesByAdmin(context.Context, *QueryGroupPoliciesByAdminRequest) (*QueryGroupPoliciesByAdminResponse, error)
	// Proposal queries a proposal based on proposal id.
	Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
	// ProposalsByGroupPolicy queries proposals based on account address of group policy.
	ProposalsByGroupPolicy(context.Context, *QueryProposalsByGroupPolicyRequest) (*QueryProposalsByGroupPolicyResponse, error)
	// VoteByProposalVoter queries a vote by proposal id and voter.
	VoteByProposalVoter(context.Context, *QueryVoteByProposalVoterRequest) (*QueryVoteByProposalVoterResponse, error)
	// VotesByProposal queries a vote by proposal id.
	VotesByProposal(context.Context, *QueryVotesByProposalRequest) (*QueryVotesByProposalResponse, error)
	// VotesByVoter queries a vote by voter.
	VotesByVoter(context.Context, *QueryVotesByVoterRequest) (*QueryVotesByVoterResponse, error)
	// GroupsByMember queries groups by member address.
	GroupsByMember(context.Context, *QueryGroupsByMemberRequest) (*QueryGroupsByMemberResponse, error)
	// TallyResult returns the tally result of a proposal. If the proposal is
	// still in voting period, then this query computes the current tally state,
	// which might not be final. On the other hand, if the proposal is final,
	// then it simply returns the `final_tally_result` state stored in the
	// proposal itself.
	TallyResult(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error)
	// Groups queries all groups in state.
	//
	// Since: cosmos-sdk 0.47.1
	Groups(context.Context, *QueryGroupsRequest) (*QueryGroupsResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QueryTallyResultRequest

type QueryTallyResultRequest struct {

	// proposal_id is the unique id of a proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

QueryTallyResultRequest is the Query/TallyResult request type.

func (*QueryTallyResultRequest) Descriptor deprecated

func (*QueryTallyResultRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryTallyResultRequest.ProtoReflect.Descriptor instead.

func (*QueryTallyResultRequest) GetProposalId

func (x *QueryTallyResultRequest) GetProposalId() uint64

func (*QueryTallyResultRequest) ProtoMessage

func (*QueryTallyResultRequest) ProtoMessage()

func (*QueryTallyResultRequest) ProtoReflect

func (x *QueryTallyResultRequest) ProtoReflect() protoreflect.Message

func (*QueryTallyResultRequest) Reset

func (x *QueryTallyResultRequest) Reset()

func (*QueryTallyResultRequest) String

func (x *QueryTallyResultRequest) String() string

type QueryTallyResultResponse

type QueryTallyResultResponse struct {

	// tally defines the requested tally.
	Tally *TallyResult `protobuf:"bytes,1,opt,name=tally,proto3" json:"tally,omitempty"`
	// contains filtered or unexported fields
}

QueryTallyResultResponse is the Query/TallyResult response type.

func (*QueryTallyResultResponse) Descriptor deprecated

func (*QueryTallyResultResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryTallyResultResponse.ProtoReflect.Descriptor instead.

func (*QueryTallyResultResponse) GetTally

func (x *QueryTallyResultResponse) GetTally() *TallyResult

func (*QueryTallyResultResponse) ProtoMessage

func (*QueryTallyResultResponse) ProtoMessage()

func (*QueryTallyResultResponse) ProtoReflect

func (x *QueryTallyResultResponse) ProtoReflect() protoreflect.Message

func (*QueryTallyResultResponse) Reset

func (x *QueryTallyResultResponse) Reset()

func (*QueryTallyResultResponse) String

func (x *QueryTallyResultResponse) String() string

type QueryVoteByProposalVoterRequest

type QueryVoteByProposalVoterRequest struct {

	// proposal_id is the unique ID of a proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// voter is a proposal voter account address.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// contains filtered or unexported fields
}

QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type.

func (*QueryVoteByProposalVoterRequest) Descriptor deprecated

func (*QueryVoteByProposalVoterRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryVoteByProposalVoterRequest.ProtoReflect.Descriptor instead.

func (*QueryVoteByProposalVoterRequest) GetProposalId

func (x *QueryVoteByProposalVoterRequest) GetProposalId() uint64

func (*QueryVoteByProposalVoterRequest) GetVoter

func (*QueryVoteByProposalVoterRequest) ProtoMessage

func (*QueryVoteByProposalVoterRequest) ProtoMessage()

func (*QueryVoteByProposalVoterRequest) ProtoReflect

func (*QueryVoteByProposalVoterRequest) Reset

func (*QueryVoteByProposalVoterRequest) String

type QueryVoteByProposalVoterResponse

type QueryVoteByProposalVoterResponse struct {

	// vote is the vote with given proposal_id and voter.
	Vote *Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
	// contains filtered or unexported fields
}

QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type.

func (*QueryVoteByProposalVoterResponse) Descriptor deprecated

func (*QueryVoteByProposalVoterResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryVoteByProposalVoterResponse.ProtoReflect.Descriptor instead.

func (*QueryVoteByProposalVoterResponse) GetVote

func (x *QueryVoteByProposalVoterResponse) GetVote() *Vote

func (*QueryVoteByProposalVoterResponse) ProtoMessage

func (*QueryVoteByProposalVoterResponse) ProtoMessage()

func (*QueryVoteByProposalVoterResponse) ProtoReflect

func (*QueryVoteByProposalVoterResponse) Reset

func (*QueryVoteByProposalVoterResponse) String

type QueryVotesByProposalRequest

type QueryVotesByProposalRequest struct {

	// proposal_id is the unique ID of a proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryVotesByProposalRequest is the Query/VotesByProposal request type.

func (*QueryVotesByProposalRequest) Descriptor deprecated

func (*QueryVotesByProposalRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryVotesByProposalRequest.ProtoReflect.Descriptor instead.

func (*QueryVotesByProposalRequest) GetPagination

func (x *QueryVotesByProposalRequest) GetPagination() *v1beta1.PageRequest

func (*QueryVotesByProposalRequest) GetProposalId

func (x *QueryVotesByProposalRequest) GetProposalId() uint64

func (*QueryVotesByProposalRequest) ProtoMessage

func (*QueryVotesByProposalRequest) ProtoMessage()

func (*QueryVotesByProposalRequest) ProtoReflect

func (*QueryVotesByProposalRequest) Reset

func (x *QueryVotesByProposalRequest) Reset()

func (*QueryVotesByProposalRequest) String

func (x *QueryVotesByProposalRequest) String() string

type QueryVotesByProposalResponse

type QueryVotesByProposalResponse struct {

	// votes are the list of votes for given proposal_id.
	Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryVotesByProposalResponse is the Query/VotesByProposal response type.

func (*QueryVotesByProposalResponse) Descriptor deprecated

func (*QueryVotesByProposalResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryVotesByProposalResponse.ProtoReflect.Descriptor instead.

func (*QueryVotesByProposalResponse) GetPagination

func (*QueryVotesByProposalResponse) GetVotes

func (x *QueryVotesByProposalResponse) GetVotes() []*Vote

func (*QueryVotesByProposalResponse) ProtoMessage

func (*QueryVotesByProposalResponse) ProtoMessage()

func (*QueryVotesByProposalResponse) ProtoReflect

func (*QueryVotesByProposalResponse) Reset

func (x *QueryVotesByProposalResponse) Reset()

func (*QueryVotesByProposalResponse) String

type QueryVotesByVoterRequest

type QueryVotesByVoterRequest struct {

	// voter is a proposal voter account address.
	Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryVotesByVoterRequest is the Query/VotesByVoter request type.

func (*QueryVotesByVoterRequest) Descriptor deprecated

func (*QueryVotesByVoterRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryVotesByVoterRequest.ProtoReflect.Descriptor instead.

func (*QueryVotesByVoterRequest) GetPagination

func (x *QueryVotesByVoterRequest) GetPagination() *v1beta1.PageRequest

func (*QueryVotesByVoterRequest) GetVoter

func (x *QueryVotesByVoterRequest) GetVoter() string

func (*QueryVotesByVoterRequest) ProtoMessage

func (*QueryVotesByVoterRequest) ProtoMessage()

func (*QueryVotesByVoterRequest) ProtoReflect

func (x *QueryVotesByVoterRequest) ProtoReflect() protoreflect.Message

func (*QueryVotesByVoterRequest) Reset

func (x *QueryVotesByVoterRequest) Reset()

func (*QueryVotesByVoterRequest) String

func (x *QueryVotesByVoterRequest) String() string

type QueryVotesByVoterResponse

type QueryVotesByVoterResponse struct {

	// votes are the list of votes by given voter.
	Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryVotesByVoterResponse is the Query/VotesByVoter response type.

func (*QueryVotesByVoterResponse) Descriptor deprecated

func (*QueryVotesByVoterResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryVotesByVoterResponse.ProtoReflect.Descriptor instead.

func (*QueryVotesByVoterResponse) GetPagination

func (x *QueryVotesByVoterResponse) GetPagination() *v1beta1.PageResponse

func (*QueryVotesByVoterResponse) GetVotes

func (x *QueryVotesByVoterResponse) GetVotes() []*Vote

func (*QueryVotesByVoterResponse) ProtoMessage

func (*QueryVotesByVoterResponse) ProtoMessage()

func (*QueryVotesByVoterResponse) ProtoReflect

func (*QueryVotesByVoterResponse) Reset

func (x *QueryVotesByVoterResponse) Reset()

func (*QueryVotesByVoterResponse) String

func (x *QueryVotesByVoterResponse) String() string

type TallyResult

type TallyResult struct {

	// yes_count is the weighted sum of yes votes.
	YesCount string `protobuf:"bytes,1,opt,name=yes_count,json=yesCount,proto3" json:"yes_count,omitempty"`
	// abstain_count is the weighted sum of abstainers.
	AbstainCount string `protobuf:"bytes,2,opt,name=abstain_count,json=abstainCount,proto3" json:"abstain_count,omitempty"`
	// no_count is the weighted sum of no votes.
	NoCount string `protobuf:"bytes,3,opt,name=no_count,json=noCount,proto3" json:"no_count,omitempty"`
	// no_with_veto_count is the weighted sum of veto.
	NoWithVetoCount string `protobuf:"bytes,4,opt,name=no_with_veto_count,json=noWithVetoCount,proto3" json:"no_with_veto_count,omitempty"`
	// contains filtered or unexported fields
}

TallyResult represents the sum of weighted votes for each vote option.

func (*TallyResult) Descriptor deprecated

func (*TallyResult) Descriptor() ([]byte, []int)

Deprecated: Use TallyResult.ProtoReflect.Descriptor instead.

func (*TallyResult) GetAbstainCount

func (x *TallyResult) GetAbstainCount() string

func (*TallyResult) GetNoCount

func (x *TallyResult) GetNoCount() string

func (*TallyResult) GetNoWithVetoCount

func (x *TallyResult) GetNoWithVetoCount() string

func (*TallyResult) GetYesCount

func (x *TallyResult) GetYesCount() string

func (*TallyResult) ProtoMessage

func (*TallyResult) ProtoMessage()

func (*TallyResult) ProtoReflect

func (x *TallyResult) ProtoReflect() protoreflect.Message

func (*TallyResult) Reset

func (x *TallyResult) Reset()

func (*TallyResult) String

func (x *TallyResult) String() string

type ThresholdDecisionPolicy

type ThresholdDecisionPolicy struct {

	// threshold is the minimum weighted sum of `YES` votes that must be met or
	// exceeded for a proposal to succeed.
	Threshold string `protobuf:"bytes,1,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// windows defines the different windows for voting and execution.
	Windows *DecisionPolicyWindows `protobuf:"bytes,2,opt,name=windows,proto3" json:"windows,omitempty"`
	// contains filtered or unexported fields
}

ThresholdDecisionPolicy is a decision policy where a proposal passes when it satisfies the two following conditions:

  1. The sum of all `YES` voter's weights is greater or equal than the defined `threshold`.
  2. The voting and execution periods of the proposal respect the parameters given by `windows`.

func (*ThresholdDecisionPolicy) Descriptor deprecated

func (*ThresholdDecisionPolicy) Descriptor() ([]byte, []int)

Deprecated: Use ThresholdDecisionPolicy.ProtoReflect.Descriptor instead.

func (*ThresholdDecisionPolicy) GetThreshold

func (x *ThresholdDecisionPolicy) GetThreshold() string

func (*ThresholdDecisionPolicy) GetWindows

func (*ThresholdDecisionPolicy) ProtoMessage

func (*ThresholdDecisionPolicy) ProtoMessage()

func (*ThresholdDecisionPolicy) ProtoReflect

func (x *ThresholdDecisionPolicy) ProtoReflect() protoreflect.Message

func (*ThresholdDecisionPolicy) Reset

func (x *ThresholdDecisionPolicy) Reset()

func (*ThresholdDecisionPolicy) String

func (x *ThresholdDecisionPolicy) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) CreateGroup

func (UnimplementedMsgServer) Exec

func (UnimplementedMsgServer) LeaveGroup

func (UnimplementedMsgServer) SubmitProposal

func (UnimplementedMsgServer) UpdateGroupAdmin

func (UnimplementedMsgServer) Vote

func (UnimplementedMsgServer) WithdrawProposal

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) GroupInfo

func (UnimplementedQueryServer) Groups

func (UnimplementedQueryServer) Proposal

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

type Vote

type Vote struct {

	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// voter is the account address of the voter.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// option is the voter's choice on the proposal.
	Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.group.v1.VoteOption" json:"option,omitempty"`
	// metadata is any arbitrary metadata attached to the vote.
	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// submit_time is the timestamp when the vote was submitted.
	SubmitTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
	// contains filtered or unexported fields
}

Vote represents a vote for a proposal.

func (*Vote) Descriptor deprecated

func (*Vote) Descriptor() ([]byte, []int)

Deprecated: Use Vote.ProtoReflect.Descriptor instead.

func (*Vote) GetMetadata

func (x *Vote) GetMetadata() string

func (*Vote) GetOption

func (x *Vote) GetOption() VoteOption

func (*Vote) GetProposalId

func (x *Vote) GetProposalId() uint64

func (*Vote) GetSubmitTime

func (x *Vote) GetSubmitTime() *timestamppb.Timestamp

func (*Vote) GetVoter

func (x *Vote) GetVoter() string

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) ProtoReflect

func (x *Vote) ProtoReflect() protoreflect.Message

func (*Vote) Reset

func (x *Vote) Reset()

func (*Vote) String

func (x *Vote) String() string

type VoteOption

type VoteOption int32

VoteOption enumerates the valid vote options for a given proposal.

const (
	// VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will
	// return an error.
	VoteOption_VOTE_OPTION_UNSPECIFIED VoteOption = 0
	// VOTE_OPTION_YES defines a yes vote option.
	VoteOption_VOTE_OPTION_YES VoteOption = 1
	// VOTE_OPTION_ABSTAIN defines an abstain vote option.
	VoteOption_VOTE_OPTION_ABSTAIN VoteOption = 2
	// VOTE_OPTION_NO defines a no vote option.
	VoteOption_VOTE_OPTION_NO VoteOption = 3
	// VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
	VoteOption_VOTE_OPTION_NO_WITH_VETO VoteOption = 4
)

func (VoteOption) Descriptor

func (VoteOption) Descriptor() protoreflect.EnumDescriptor

func (VoteOption) Enum

func (x VoteOption) Enum() *VoteOption

func (VoteOption) EnumDescriptor deprecated

func (VoteOption) EnumDescriptor() ([]byte, []int)

Deprecated: Use VoteOption.Descriptor instead.

func (VoteOption) Number

func (x VoteOption) Number() protoreflect.EnumNumber

func (VoteOption) String

func (x VoteOption) String() string

func (VoteOption) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL