groupv1alpha1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 19 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

This section is empty.

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 (
	Choice_name = map[int32]string{
		0: "CHOICE_UNSPECIFIED",
		1: "CHOICE_NO",
		2: "CHOICE_YES",
		3: "CHOICE_ABSTAIN",
		4: "CHOICE_VETO",
	}
	Choice_value = map[string]int32{
		"CHOICE_UNSPECIFIED": 0,
		"CHOICE_NO":          1,
		"CHOICE_YES":         2,
		"CHOICE_ABSTAIN":     3,
		"CHOICE_VETO":        4,
	}
)

Enum value maps for Choice.

View Source
var (
	Proposal_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_SUBMITTED",
		2: "STATUS_CLOSED",
		3: "STATUS_ABORTED",
	}
	Proposal_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_SUBMITTED":   1,
		"STATUS_CLOSED":      2,
		"STATUS_ABORTED":     3,
	}
)

Enum value maps for Proposal_Status.

View Source
var (
	Proposal_Result_name = map[int32]string{
		0: "RESULT_UNSPECIFIED",
		1: "RESULT_UNFINALIZED",
		2: "RESULT_ACCEPTED",
		3: "RESULT_REJECTED",
	}
	Proposal_Result_value = map[string]int32{
		"RESULT_UNSPECIFIED": 0,
		"RESULT_UNFINALIZED": 1,
		"RESULT_ACCEPTED":    2,
		"RESULT_REJECTED":    3,
	}
)

Enum value maps for Proposal_Result.

View Source
var (
	Proposal_ExecutorResult_name = map[int32]string{
		0: "EXECUTOR_RESULT_UNSPECIFIED",
		1: "EXECUTOR_RESULT_NOT_RUN",
		2: "EXECUTOR_RESULT_SUCCESS",
		3: "EXECUTOR_RESULT_FAILURE",
	}
	Proposal_ExecutorResult_value = map[string]int32{
		"EXECUTOR_RESULT_UNSPECIFIED": 0,
		"EXECUTOR_RESULT_NOT_RUN":     1,
		"EXECUTOR_RESULT_SUCCESS":     2,
		"EXECUTOR_RESULT_FAILURE":     3,
	}
)

Enum value maps for Proposal_ExecutorResult.

View Source
var File_regen_group_v1alpha1_events_proto protoreflect.FileDescriptor
View Source
var File_regen_group_v1alpha1_genesis_proto protoreflect.FileDescriptor
View Source
var File_regen_group_v1alpha1_query_proto protoreflect.FileDescriptor
View Source
var File_regen_group_v1alpha1_tx_proto protoreflect.FileDescriptor
View Source
var File_regen_group_v1alpha1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "regen.group.v1alpha1.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: "CreateGroupAccount",
			Handler:    _Msg_CreateGroupAccount_Handler,
		},
		{
			MethodName: "UpdateGroupAccountAdmin",
			Handler:    _Msg_UpdateGroupAccountAdmin_Handler,
		},
		{
			MethodName: "UpdateGroupAccountDecisionPolicy",
			Handler:    _Msg_UpdateGroupAccountDecisionPolicy_Handler,
		},
		{
			MethodName: "UpdateGroupAccountMetadata",
			Handler:    _Msg_UpdateGroupAccountMetadata_Handler,
		},
		{
			MethodName: "CreateProposal",
			Handler:    _Msg_CreateProposal_Handler,
		},
		{
			MethodName: "Vote",
			Handler:    _Msg_Vote_Handler,
		},
		{
			MethodName: "Exec",
			Handler:    _Msg_Exec_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "regen/group/v1alpha1/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: "regen.group.v1alpha1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GroupInfo",
			Handler:    _Query_GroupInfo_Handler,
		},
		{
			MethodName: "GroupAccountInfo",
			Handler:    _Query_GroupAccountInfo_Handler,
		},
		{
			MethodName: "GroupMembers",
			Handler:    _Query_GroupMembers_Handler,
		},
		{
			MethodName: "GroupsByAdmin",
			Handler:    _Query_GroupsByAdmin_Handler,
		},
		{
			MethodName: "GroupAccountsByGroup",
			Handler:    _Query_GroupAccountsByGroup_Handler,
		},
		{
			MethodName: "GroupAccountsByAdmin",
			Handler:    _Query_GroupAccountsByAdmin_Handler,
		},
		{
			MethodName: "Proposal",
			Handler:    _Query_Proposal_Handler,
		},
		{
			MethodName: "ProposalsByGroupAccount",
			Handler:    _Query_ProposalsByGroupAccount_Handler,
		},
		{
			MethodName: "VoteByProposalVoter",
			Handler:    _Query_VoteByProposalVoter_Handler,
		},
		{
			MethodName: "VotesByProposal",
			Handler:    _Query_VotesByProposal_Handler,
		},
		{
			MethodName: "VotesByVoter",
			Handler:    _Query_VotesByVoter_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "regen/group/v1alpha1/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 Choice

type Choice int32

Choice defines available types of choices for voting.

const (
	// CHOICE_UNSPECIFIED defines a no-op voting choice.
	Choice_CHOICE_UNSPECIFIED Choice = 0
	// CHOICE_NO defines a no voting choice.
	Choice_CHOICE_NO Choice = 1
	// CHOICE_YES defines a yes voting choice.
	Choice_CHOICE_YES Choice = 2
	// CHOICE_ABSTAIN defines an abstaining voting choice.
	Choice_CHOICE_ABSTAIN Choice = 3
	// CHOICE_VETO defines a voting choice with veto.
	Choice_CHOICE_VETO Choice = 4
)

func (Choice) Descriptor

func (Choice) Descriptor() protoreflect.EnumDescriptor

func (Choice) Enum

func (x Choice) Enum() *Choice

func (Choice) EnumDescriptor deprecated

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

Deprecated: Use Choice.Descriptor instead.

func (Choice) Number

func (x Choice) Number() protoreflect.EnumNumber

func (Choice) String

func (x Choice) String() string

func (Choice) Type

func (Choice) Type() protoreflect.EnumType

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 EventCreateGroupAccount

type EventCreateGroupAccount struct {

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

EventCreateGroupAccount is an event emitted when a group account is created.

func (*EventCreateGroupAccount) Descriptor deprecated

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

Deprecated: Use EventCreateGroupAccount.ProtoReflect.Descriptor instead.

func (*EventCreateGroupAccount) GetAddress

func (x *EventCreateGroupAccount) GetAddress() string

func (*EventCreateGroupAccount) ProtoMessage

func (*EventCreateGroupAccount) ProtoMessage()

func (*EventCreateGroupAccount) ProtoReflect

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

func (*EventCreateGroupAccount) Reset

func (x *EventCreateGroupAccount) Reset()

func (*EventCreateGroupAccount) String

func (x *EventCreateGroupAccount) String() string

type EventCreateProposal

type EventCreateProposal 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
}

EventCreateProposal is an event emitted when a proposal is created.

func (*EventCreateProposal) Descriptor deprecated

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

Deprecated: Use EventCreateProposal.ProtoReflect.Descriptor instead.

func (*EventCreateProposal) GetProposalId

func (x *EventCreateProposal) GetProposalId() uint64

func (*EventCreateProposal) ProtoMessage

func (*EventCreateProposal) ProtoMessage()

func (*EventCreateProposal) ProtoReflect

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

func (*EventCreateProposal) Reset

func (x *EventCreateProposal) Reset()

func (*EventCreateProposal) String

func (x *EventCreateProposal) 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"`
	// 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) GetProposalId

func (x *EventExec) GetProposalId() uint64

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 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 EventUpdateGroupAccount

type EventUpdateGroupAccount struct {

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

EventUpdateGroupAccount is an event emitted when a group account is updated.

func (*EventUpdateGroupAccount) Descriptor deprecated

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

Deprecated: Use EventUpdateGroupAccount.ProtoReflect.Descriptor instead.

func (*EventUpdateGroupAccount) GetAddress

func (x *EventUpdateGroupAccount) GetAddress() string

func (*EventUpdateGroupAccount) ProtoMessage

func (*EventUpdateGroupAccount) ProtoMessage()

func (*EventUpdateGroupAccount) ProtoReflect

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

func (*EventUpdateGroupAccount) Reset

func (x *EventUpdateGroupAccount) Reset()

func (*EventUpdateGroupAccount) String

func (x *EventUpdateGroupAccount) 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 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_account_seq is the group account table orm.Sequence,
	// it is used to generate the next group account address.
	GroupAccountSeq uint64 `protobuf:"varint,4,opt,name=group_account_seq,json=groupAccountSeq,proto3" json:"group_account_seq,omitempty"`
	// group_accounts is the list of group accounts info.
	GroupAccounts []*GroupAccountInfo `protobuf:"bytes,5,rep,name=group_accounts,json=groupAccounts,proto3" json:"group_accounts,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) GetGroupAccountSeq

func (x *GenesisState) GetGroupAccountSeq() uint64

func (*GenesisState) GetGroupAccounts

func (x *GenesisState) GetGroupAccounts() []*GroupAccountInfo

func (*GenesisState) GetGroupMembers

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

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 GroupAccountInfo

type GroupAccountInfo struct {

	// address is the group account address.
	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 to attached to the group account.
	Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// version is used to track changes to a group's GroupAccountInfo 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 account's decision policy.
	DecisionPolicy *anypb.Any `protobuf:"bytes,6,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
	// derivation_key is the "derivation" key of the group account,
	// which is needed to derive the group root module key and execute proposals.
	DerivationKey []byte `protobuf:"bytes,7,opt,name=derivation_key,json=derivationKey,proto3" json:"derivation_key,omitempty"`
	// contains filtered or unexported fields
}

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

func (*GroupAccountInfo) Descriptor deprecated

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

Deprecated: Use GroupAccountInfo.ProtoReflect.Descriptor instead.

func (*GroupAccountInfo) GetAddress

func (x *GroupAccountInfo) GetAddress() string

func (*GroupAccountInfo) GetAdmin

func (x *GroupAccountInfo) GetAdmin() string

func (*GroupAccountInfo) GetDecisionPolicy

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

func (*GroupAccountInfo) GetDerivationKey

func (x *GroupAccountInfo) GetDerivationKey() []byte

func (*GroupAccountInfo) GetGroupId

func (x *GroupAccountInfo) GetGroupId() uint64

func (*GroupAccountInfo) GetMetadata

func (x *GroupAccountInfo) GetMetadata() []byte

func (*GroupAccountInfo) GetVersion

func (x *GroupAccountInfo) GetVersion() uint64

func (*GroupAccountInfo) ProtoMessage

func (*GroupAccountInfo) ProtoMessage()

func (*GroupAccountInfo) ProtoReflect

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

func (*GroupAccountInfo) Reset

func (x *GroupAccountInfo) Reset()

func (*GroupAccountInfo) String

func (x *GroupAccountInfo) String() string

type GroupInfo

type GroupInfo 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"`
	// 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 []byte `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"`
	// 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) GetGroupId

func (x *GroupInfo) GetGroupId() uint64

func (*GroupInfo) GetMetadata

func (x *GroupInfo) GetMetadata() []byte

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 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 to attached to the member.
	Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Member) Descriptor deprecated

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

Deprecated: Use Member.ProtoReflect.Descriptor instead.

func (*Member) GetAddress

func (x *Member) GetAddress() string

func (*Member) GetMetadata

func (x *Member) GetMetadata() []byte

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 Members

type Members struct {

	// members is the list of members.
	Members []*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

Members defines a repeated slice of Member objects.

func (*Members) Descriptor deprecated

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

Deprecated: Use Members.ProtoReflect.Descriptor instead.

func (*Members) GetMembers

func (x *Members) GetMembers() []*Member

func (*Members) ProtoMessage

func (*Members) ProtoMessage()

func (*Members) ProtoReflect

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

func (*Members) Reset

func (x *Members) Reset()

func (*Members) String

func (x *Members) 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)
	// CreateGroupAccount creates a new group account using given DecisionPolicy.
	CreateGroupAccount(ctx context.Context, in *MsgCreateGroupAccount, opts ...grpc.CallOption) (*MsgCreateGroupAccountResponse, error)
	// UpdateGroupAccountAdmin updates a group account admin.
	UpdateGroupAccountAdmin(ctx context.Context, in *MsgUpdateGroupAccountAdmin, opts ...grpc.CallOption) (*MsgUpdateGroupAccountAdminResponse, error)
	// UpdateGroupAccountDecisionPolicy allows a group account decision policy to
	// be updated.
	UpdateGroupAccountDecisionPolicy(ctx context.Context, in *MsgUpdateGroupAccountDecisionPolicy, opts ...grpc.CallOption) (*MsgUpdateGroupAccountDecisionPolicyResponse, error)
	// UpdateGroupAccountMetadata updates a group account metadata.
	UpdateGroupAccountMetadata(ctx context.Context, in *MsgUpdateGroupAccountMetadata, opts ...grpc.CallOption) (*MsgUpdateGroupAccountMetadataResponse, error)
	// CreateProposal submits a new proposal.
	CreateProposal(ctx context.Context, in *MsgCreateProposal, opts ...grpc.CallOption) (*MsgCreateProposalResponse, 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)
}

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 []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
	// metadata is any arbitrary metadata to attached to the group.
	Metadata []byte `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() []*Member

func (*MsgCreateGroup) GetMetadata

func (x *MsgCreateGroup) GetMetadata() []byte

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 MsgCreateGroupAccount

type MsgCreateGroupAccount 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 to attached to the group account.
	Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// decision_policy specifies the group account'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
}

MsgCreateGroupAccount is the Msg/CreateGroupAccount request type.

func (*MsgCreateGroupAccount) Descriptor deprecated

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

Deprecated: Use MsgCreateGroupAccount.ProtoReflect.Descriptor instead.

func (*MsgCreateGroupAccount) GetAdmin

func (x *MsgCreateGroupAccount) GetAdmin() string

func (*MsgCreateGroupAccount) GetDecisionPolicy

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

func (*MsgCreateGroupAccount) GetGroupId

func (x *MsgCreateGroupAccount) GetGroupId() uint64

func (*MsgCreateGroupAccount) GetMetadata

func (x *MsgCreateGroupAccount) GetMetadata() []byte

func (*MsgCreateGroupAccount) ProtoMessage

func (*MsgCreateGroupAccount) ProtoMessage()

func (*MsgCreateGroupAccount) ProtoReflect

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

func (*MsgCreateGroupAccount) Reset

func (x *MsgCreateGroupAccount) Reset()

func (*MsgCreateGroupAccount) String

func (x *MsgCreateGroupAccount) String() string

type MsgCreateGroupAccountResponse

type MsgCreateGroupAccountResponse struct {

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

MsgCreateGroupAccountResponse is the Msg/CreateGroupAccount response type.

func (*MsgCreateGroupAccountResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateGroupAccountResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateGroupAccountResponse) GetAddress

func (x *MsgCreateGroupAccountResponse) GetAddress() string

func (*MsgCreateGroupAccountResponse) ProtoMessage

func (*MsgCreateGroupAccountResponse) ProtoMessage()

func (*MsgCreateGroupAccountResponse) ProtoReflect

func (*MsgCreateGroupAccountResponse) Reset

func (x *MsgCreateGroupAccountResponse) Reset()

func (*MsgCreateGroupAccountResponse) 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 MsgCreateProposal

type MsgCreateProposal struct {

	// address is the group account address.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"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 to attached to the proposal.
	Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// msgs is a list of Msgs that will be executed if the proposal passes.
	Msgs []*anypb.Any `protobuf:"bytes,4,rep,name=msgs,proto3" json:"msgs,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=regen.group.v1alpha1.Exec" json:"exec,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateProposal is the Msg/CreateProposal request type.

func (*MsgCreateProposal) Descriptor deprecated

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

Deprecated: Use MsgCreateProposal.ProtoReflect.Descriptor instead.

func (*MsgCreateProposal) GetAddress

func (x *MsgCreateProposal) GetAddress() string

func (*MsgCreateProposal) GetExec

func (x *MsgCreateProposal) GetExec() Exec

func (*MsgCreateProposal) GetMetadata

func (x *MsgCreateProposal) GetMetadata() []byte

func (*MsgCreateProposal) GetMsgs

func (x *MsgCreateProposal) GetMsgs() []*anypb.Any

func (*MsgCreateProposal) GetProposers

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

func (*MsgCreateProposal) ProtoMessage

func (*MsgCreateProposal) ProtoMessage()

func (*MsgCreateProposal) ProtoReflect

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

func (*MsgCreateProposal) Reset

func (x *MsgCreateProposal) Reset()

func (*MsgCreateProposal) String

func (x *MsgCreateProposal) String() string

type MsgCreateProposalResponse

type MsgCreateProposalResponse 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
}

MsgCreateProposalResponse is the Msg/CreateProposal response type.

func (*MsgCreateProposalResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateProposalResponse) GetProposalId

func (x *MsgCreateProposalResponse) GetProposalId() uint64

func (*MsgCreateProposalResponse) ProtoMessage

func (*MsgCreateProposalResponse) ProtoMessage()

func (*MsgCreateProposalResponse) ProtoReflect

func (*MsgCreateProposalResponse) Reset

func (x *MsgCreateProposalResponse) Reset()

func (*MsgCreateProposalResponse) String

func (x *MsgCreateProposalResponse) String() 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"`
	// signer is the account address used to execute the proposal.
	Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,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) GetProposalId

func (x *MsgExec) GetProposalId() uint64

func (*MsgExec) GetSigner

func (x *MsgExec) GetSigner() string

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 {
	// 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) 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 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)
	// CreateGroupAccount creates a new group account using given DecisionPolicy.
	CreateGroupAccount(context.Context, *MsgCreateGroupAccount) (*MsgCreateGroupAccountResponse, error)
	// UpdateGroupAccountAdmin updates a group account admin.
	UpdateGroupAccountAdmin(context.Context, *MsgUpdateGroupAccountAdmin) (*MsgUpdateGroupAccountAdminResponse, error)
	// UpdateGroupAccountDecisionPolicy allows a group account decision policy to
	// be updated.
	UpdateGroupAccountDecisionPolicy(context.Context, *MsgUpdateGroupAccountDecisionPolicy) (*MsgUpdateGroupAccountDecisionPolicyResponse, error)
	// UpdateGroupAccountMetadata updates a group account metadata.
	UpdateGroupAccountMetadata(context.Context, *MsgUpdateGroupAccountMetadata) (*MsgUpdateGroupAccountMetadataResponse, error)
	// CreateProposal submits a new proposal.
	CreateProposal(context.Context, *MsgCreateProposal) (*MsgCreateProposalResponse, 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)
	// contains filtered or unexported methods
}

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

type MsgUpdateGroupAccountAdmin

type MsgUpdateGroupAccountAdmin struct {

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

MsgUpdateGroupAccountAdmin is the Msg/UpdateGroupAccountAdmin request type.

func (*MsgUpdateGroupAccountAdmin) Descriptor deprecated

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

Deprecated: Use MsgUpdateGroupAccountAdmin.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupAccountAdmin) GetAddress

func (x *MsgUpdateGroupAccountAdmin) GetAddress() string

func (*MsgUpdateGroupAccountAdmin) GetAdmin

func (x *MsgUpdateGroupAccountAdmin) GetAdmin() string

func (*MsgUpdateGroupAccountAdmin) GetNewAdmin

func (x *MsgUpdateGroupAccountAdmin) GetNewAdmin() string

func (*MsgUpdateGroupAccountAdmin) ProtoMessage

func (*MsgUpdateGroupAccountAdmin) ProtoMessage()

func (*MsgUpdateGroupAccountAdmin) ProtoReflect

func (*MsgUpdateGroupAccountAdmin) Reset

func (x *MsgUpdateGroupAccountAdmin) Reset()

func (*MsgUpdateGroupAccountAdmin) String

func (x *MsgUpdateGroupAccountAdmin) String() string

type MsgUpdateGroupAccountAdminResponse

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

MsgUpdateGroupAccountAdminResponse is the Msg/UpdateGroupAccountAdmin response type.

func (*MsgUpdateGroupAccountAdminResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateGroupAccountAdminResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupAccountAdminResponse) ProtoMessage

func (*MsgUpdateGroupAccountAdminResponse) ProtoMessage()

func (*MsgUpdateGroupAccountAdminResponse) ProtoReflect

func (*MsgUpdateGroupAccountAdminResponse) Reset

func (*MsgUpdateGroupAccountAdminResponse) String

type MsgUpdateGroupAccountDecisionPolicy

type MsgUpdateGroupAccountDecisionPolicy struct {

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

MsgUpdateGroupAccountDecisionPolicy is the Msg/UpdateGroupAccountDecisionPolicy request type.

func (*MsgUpdateGroupAccountDecisionPolicy) Descriptor deprecated

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

Deprecated: Use MsgUpdateGroupAccountDecisionPolicy.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupAccountDecisionPolicy) GetAddress

func (*MsgUpdateGroupAccountDecisionPolicy) GetAdmin

func (*MsgUpdateGroupAccountDecisionPolicy) GetDecisionPolicy

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

func (*MsgUpdateGroupAccountDecisionPolicy) ProtoMessage

func (*MsgUpdateGroupAccountDecisionPolicy) ProtoMessage()

func (*MsgUpdateGroupAccountDecisionPolicy) ProtoReflect

func (*MsgUpdateGroupAccountDecisionPolicy) Reset

func (*MsgUpdateGroupAccountDecisionPolicy) String

type MsgUpdateGroupAccountDecisionPolicyResponse

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

MsgUpdateGroupAccountDecisionPolicyResponse is the Msg/UpdateGroupAccountDecisionPolicy response type.

func (*MsgUpdateGroupAccountDecisionPolicyResponse) Descriptor deprecated

Deprecated: Use MsgUpdateGroupAccountDecisionPolicyResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupAccountDecisionPolicyResponse) ProtoMessage

func (*MsgUpdateGroupAccountDecisionPolicyResponse) ProtoReflect

func (*MsgUpdateGroupAccountDecisionPolicyResponse) Reset

func (*MsgUpdateGroupAccountDecisionPolicyResponse) String

type MsgUpdateGroupAccountMetadata

type MsgUpdateGroupAccountMetadata struct {

	// admin is the account address of the group admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// address is the group account address.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// metadata is the updated group account metadata.
	Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateGroupAccountMetadata is the Msg/UpdateGroupAccountMetadata request type.

func (*MsgUpdateGroupAccountMetadata) Descriptor deprecated

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

Deprecated: Use MsgUpdateGroupAccountMetadata.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupAccountMetadata) GetAddress

func (x *MsgUpdateGroupAccountMetadata) GetAddress() string

func (*MsgUpdateGroupAccountMetadata) GetAdmin

func (x *MsgUpdateGroupAccountMetadata) GetAdmin() string

func (*MsgUpdateGroupAccountMetadata) GetMetadata

func (x *MsgUpdateGroupAccountMetadata) GetMetadata() []byte

func (*MsgUpdateGroupAccountMetadata) ProtoMessage

func (*MsgUpdateGroupAccountMetadata) ProtoMessage()

func (*MsgUpdateGroupAccountMetadata) ProtoReflect

func (*MsgUpdateGroupAccountMetadata) Reset

func (x *MsgUpdateGroupAccountMetadata) Reset()

func (*MsgUpdateGroupAccountMetadata) String

type MsgUpdateGroupAccountMetadataResponse

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

MsgUpdateGroupAccountMetadataResponse is the Msg/UpdateGroupAccountMetadata response type.

func (*MsgUpdateGroupAccountMetadataResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateGroupAccountMetadataResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateGroupAccountMetadataResponse) ProtoMessage

func (*MsgUpdateGroupAccountMetadataResponse) ProtoMessage()

func (*MsgUpdateGroupAccountMetadataResponse) ProtoReflect

func (*MsgUpdateGroupAccountMetadataResponse) Reset

func (*MsgUpdateGroupAccountMetadataResponse) 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 []*Member `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() []*Member

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 []byte `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() []byte

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 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"`
	// choice is the voter's choice on the proposal.
	Choice Choice `protobuf:"varint,3,opt,name=choice,proto3,enum=regen.group.v1alpha1.Choice" json:"choice,omitempty"`
	// metadata is any arbitrary metadata to attached to the vote.
	Metadata []byte `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=regen.group.v1alpha1.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) GetChoice

func (x *MsgVote) GetChoice() Choice

func (*MsgVote) GetExec

func (x *MsgVote) GetExec() Exec

func (*MsgVote) GetMetadata

func (x *MsgVote) GetMetadata() []byte

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 Proposal

type Proposal 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"`
	// address is the group account address.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// metadata is any arbitrary metadata to attached to the proposal.
	Metadata []byte `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"`
	// submitted_at is a timestamp specifying when a proposal was submitted.
	SubmittedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=submitted_at,json=submittedAt,proto3" json:"submitted_at,omitempty"`
	// group_version tracks the version of the group that this proposal
	// corresponds to. When group membership is changed, existing proposals from
	// previous group versions will become invalid.
	GroupVersion uint64 `protobuf:"varint,6,opt,name=group_version,json=groupVersion,proto3" json:"group_version,omitempty"`
	// group_account_version tracks the version of the group account that this
	// proposal corresponds to. When a decision policy is changed, existing
	// proposals from previous policy versions will become invalid.
	GroupAccountVersion uint64 `protobuf:"varint,7,opt,name=group_account_version,json=groupAccountVersion,proto3" json:"group_account_version,omitempty"`
	// Status represents the high level position in the life cycle of the
	// proposal. Initial value is Submitted.
	Status Proposal_Status `protobuf:"varint,8,opt,name=status,proto3,enum=regen.group.v1alpha1.Proposal_Status" json:"status,omitempty"`
	// result is the final result based on the votes and election rule. Initial
	// value is unfinalized. The result is persisted so that clients can always
	// rely on this state and not have to replicate the logic.
	Result Proposal_Result `protobuf:"varint,9,opt,name=result,proto3,enum=regen.group.v1alpha1.Proposal_Result" json:"result,omitempty"`
	// vote_state contains the sums of all weighted votes for this proposal.
	VoteState *Tally `protobuf:"bytes,10,opt,name=vote_state,json=voteState,proto3" json:"vote_state,omitempty"`
	// timeout is the timestamp of the block where the proposal execution times
	// out. Header times of the votes and execution messages must be before this
	// end time to be included in the election. After the timeout timestamp the
	// proposal can not be executed anymore and should be considered pending
	// delete.
	Timeout *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// executor_result is the final result based on the votes and election rule.
	// Initial value is NotRun.
	ExecutorResult Proposal_ExecutorResult `` /* 155-byte string literal not displayed */
	// msgs is a list of Msgs that will be executed if the proposal passes.
	Msgs []*anypb.Any `protobuf:"bytes,13,rep,name=msgs,proto3" json:"msgs,omitempty"`
	// contains filtered or unexported fields
}

Proposal defines a group proposal. Any member of a group can submit a proposal for a group account 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) GetAddress

func (x *Proposal) GetAddress() string

func (*Proposal) GetExecutorResult

func (x *Proposal) GetExecutorResult() Proposal_ExecutorResult

func (*Proposal) GetGroupAccountVersion

func (x *Proposal) GetGroupAccountVersion() uint64

func (*Proposal) GetGroupVersion

func (x *Proposal) GetGroupVersion() uint64

func (*Proposal) GetMetadata

func (x *Proposal) GetMetadata() []byte

func (*Proposal) GetMsgs

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

func (*Proposal) GetProposalId

func (x *Proposal) GetProposalId() uint64

func (*Proposal) GetProposers

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

func (*Proposal) GetResult

func (x *Proposal) GetResult() Proposal_Result

func (*Proposal) GetStatus

func (x *Proposal) GetStatus() Proposal_Status

func (*Proposal) GetSubmittedAt

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

func (*Proposal) GetTimeout

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

func (*Proposal) GetVoteState

func (x *Proposal) GetVoteState() *Tally

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 Proposal_ExecutorResult

type Proposal_ExecutorResult int32

ExecutorResult defines types of proposal executor results.

const (
	// An empty value is not allowed.
	Proposal_EXECUTOR_RESULT_UNSPECIFIED Proposal_ExecutorResult = 0
	// We have not yet run the executor.
	Proposal_EXECUTOR_RESULT_NOT_RUN Proposal_ExecutorResult = 1
	// The executor was successful and proposed action updated state.
	Proposal_EXECUTOR_RESULT_SUCCESS Proposal_ExecutorResult = 2
	// The executor returned an error and proposed action didn't update state.
	Proposal_EXECUTOR_RESULT_FAILURE Proposal_ExecutorResult = 3
)

func (Proposal_ExecutorResult) Descriptor

func (Proposal_ExecutorResult) Enum

func (Proposal_ExecutorResult) EnumDescriptor deprecated

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

Deprecated: Use Proposal_ExecutorResult.Descriptor instead.

func (Proposal_ExecutorResult) Number

func (Proposal_ExecutorResult) String

func (x Proposal_ExecutorResult) String() string

func (Proposal_ExecutorResult) Type

type Proposal_Result

type Proposal_Result int32

Result defines types of proposal results.

const (
	// An empty value is invalid and not allowed
	Proposal_RESULT_UNSPECIFIED Proposal_Result = 0
	// Until a final tally has happened the status is unfinalized
	Proposal_RESULT_UNFINALIZED Proposal_Result = 1
	// Final result of the tally
	Proposal_RESULT_ACCEPTED Proposal_Result = 2
	// Final result of the tally
	Proposal_RESULT_REJECTED Proposal_Result = 3
)

func (Proposal_Result) Descriptor

func (Proposal_Result) Enum

func (x Proposal_Result) Enum() *Proposal_Result

func (Proposal_Result) EnumDescriptor deprecated

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

Deprecated: Use Proposal_Result.Descriptor instead.

func (Proposal_Result) Number

func (Proposal_Result) String

func (x Proposal_Result) String() string

func (Proposal_Result) Type

type Proposal_Status

type Proposal_Status int32

Status defines proposal statuses.

const (
	// An empty value is invalid and not allowed.
	Proposal_STATUS_UNSPECIFIED Proposal_Status = 0
	// Initial status of a proposal when persisted.
	Proposal_STATUS_SUBMITTED Proposal_Status = 1
	// Final status of a proposal when the final tally was executed.
	Proposal_STATUS_CLOSED Proposal_Status = 2
	// Final status of a proposal when the group was modified before the final
	// tally.
	Proposal_STATUS_ABORTED Proposal_Status = 3
)

func (Proposal_Status) Descriptor

func (Proposal_Status) Enum

func (x Proposal_Status) Enum() *Proposal_Status

func (Proposal_Status) EnumDescriptor deprecated

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

Deprecated: Use Proposal_Status.Descriptor instead.

func (Proposal_Status) Number

func (Proposal_Status) String

func (x Proposal_Status) String() string

func (Proposal_Status) 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)
	// GroupAccountInfo queries group account info based on group account address.
	GroupAccountInfo(ctx context.Context, in *QueryGroupAccountInfoRequest, opts ...grpc.CallOption) (*QueryGroupAccountInfoResponse, error)
	// GroupMembers queries members of a group
	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)
	// GroupAccountsByGroup queries group accounts by group id.
	GroupAccountsByGroup(ctx context.Context, in *QueryGroupAccountsByGroupRequest, opts ...grpc.CallOption) (*QueryGroupAccountsByGroupResponse, error)
	// GroupsByAdmin queries group accounts by admin address.
	GroupAccountsByAdmin(ctx context.Context, in *QueryGroupAccountsByAdminRequest, opts ...grpc.CallOption) (*QueryGroupAccountsByAdminResponse, error)
	// Proposal queries a proposal based on proposal id.
	Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error)
	// ProposalsByGroupAccount queries proposals based on group account address.
	ProposalsByGroupAccount(ctx context.Context, in *QueryProposalsByGroupAccountRequest, opts ...grpc.CallOption) (*QueryProposalsByGroupAccountResponse, 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.
	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)
}

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 QueryGroupAccountInfoRequest

type QueryGroupAccountInfoRequest struct {

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

QueryGroupAccountInfoRequest is the Query/GroupAccountInfo request type.

func (*QueryGroupAccountInfoRequest) Descriptor deprecated

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

Deprecated: Use QueryGroupAccountInfoRequest.ProtoReflect.Descriptor instead.

func (*QueryGroupAccountInfoRequest) GetAddress

func (x *QueryGroupAccountInfoRequest) GetAddress() string

func (*QueryGroupAccountInfoRequest) ProtoMessage

func (*QueryGroupAccountInfoRequest) ProtoMessage()

func (*QueryGroupAccountInfoRequest) ProtoReflect

func (*QueryGroupAccountInfoRequest) Reset

func (x *QueryGroupAccountInfoRequest) Reset()

func (*QueryGroupAccountInfoRequest) String

type QueryGroupAccountInfoResponse

type QueryGroupAccountInfoResponse struct {

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

QueryGroupAccountInfoResponse is the Query/GroupAccountInfo response type.

func (*QueryGroupAccountInfoResponse) Descriptor deprecated

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

Deprecated: Use QueryGroupAccountInfoResponse.ProtoReflect.Descriptor instead.

func (*QueryGroupAccountInfoResponse) GetInfo

func (*QueryGroupAccountInfoResponse) ProtoMessage

func (*QueryGroupAccountInfoResponse) ProtoMessage()

func (*QueryGroupAccountInfoResponse) ProtoReflect

func (*QueryGroupAccountInfoResponse) Reset

func (x *QueryGroupAccountInfoResponse) Reset()

func (*QueryGroupAccountInfoResponse) String

type QueryGroupAccountsByAdminRequest

type QueryGroupAccountsByAdminRequest struct {

	// admin is the admin address of the group account.
	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
}

QueryGroupAccountsByAdminRequest is the Query/GroupAccountsByAdmin request type.

func (*QueryGroupAccountsByAdminRequest) Descriptor deprecated

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

Deprecated: Use QueryGroupAccountsByAdminRequest.ProtoReflect.Descriptor instead.

func (*QueryGroupAccountsByAdminRequest) GetAdmin

func (*QueryGroupAccountsByAdminRequest) GetPagination

func (*QueryGroupAccountsByAdminRequest) ProtoMessage

func (*QueryGroupAccountsByAdminRequest) ProtoMessage()

func (*QueryGroupAccountsByAdminRequest) ProtoReflect

func (*QueryGroupAccountsByAdminRequest) Reset

func (*QueryGroupAccountsByAdminRequest) String

type QueryGroupAccountsByAdminResponse

type QueryGroupAccountsByAdminResponse struct {

	// group_accounts are the group accounts info with provided admin.
	GroupAccounts []*GroupAccountInfo `protobuf:"bytes,1,rep,name=group_accounts,json=groupAccounts,proto3" json:"group_accounts,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
}

QueryGroupAccountsByAdminResponse is the Query/GroupAccountsByAdmin response type.

func (*QueryGroupAccountsByAdminResponse) Descriptor deprecated

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

Deprecated: Use QueryGroupAccountsByAdminResponse.ProtoReflect.Descriptor instead.

func (*QueryGroupAccountsByAdminResponse) GetGroupAccounts

func (x *QueryGroupAccountsByAdminResponse) GetGroupAccounts() []*GroupAccountInfo

func (*QueryGroupAccountsByAdminResponse) GetPagination

func (*QueryGroupAccountsByAdminResponse) ProtoMessage

func (*QueryGroupAccountsByAdminResponse) ProtoMessage()

func (*QueryGroupAccountsByAdminResponse) ProtoReflect

func (*QueryGroupAccountsByAdminResponse) Reset

func (*QueryGroupAccountsByAdminResponse) String

type QueryGroupAccountsByGroupRequest

type QueryGroupAccountsByGroupRequest struct {

	// group_id is the unique ID of the group account'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
}

QueryGroupAccountsByGroupRequest is the Query/GroupAccountsByGroup request type.

func (*QueryGroupAccountsByGroupRequest) Descriptor deprecated

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

Deprecated: Use QueryGroupAccountsByGroupRequest.ProtoReflect.Descriptor instead.

func (*QueryGroupAccountsByGroupRequest) GetGroupId

func (x *QueryGroupAccountsByGroupRequest) GetGroupId() uint64

func (*QueryGroupAccountsByGroupRequest) GetPagination

func (*QueryGroupAccountsByGroupRequest) ProtoMessage

func (*QueryGroupAccountsByGroupRequest) ProtoMessage()

func (*QueryGroupAccountsByGroupRequest) ProtoReflect

func (*QueryGroupAccountsByGroupRequest) Reset

func (*QueryGroupAccountsByGroupRequest) String

type QueryGroupAccountsByGroupResponse

type QueryGroupAccountsByGroupResponse struct {

	// group_accounts are the group accounts info associated with the provided
	// group.
	GroupAccounts []*GroupAccountInfo `protobuf:"bytes,1,rep,name=group_accounts,json=groupAccounts,proto3" json:"group_accounts,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
}

QueryGroupAccountsByGroupResponse is the Query/GroupAccountsByGroup response type.

func (*QueryGroupAccountsByGroupResponse) Descriptor deprecated

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

Deprecated: Use QueryGroupAccountsByGroupResponse.ProtoReflect.Descriptor instead.

func (*QueryGroupAccountsByGroupResponse) GetGroupAccounts

func (x *QueryGroupAccountsByGroupResponse) GetGroupAccounts() []*GroupAccountInfo

func (*QueryGroupAccountsByGroupResponse) GetPagination

func (*QueryGroupAccountsByGroupResponse) ProtoMessage

func (*QueryGroupAccountsByGroupResponse) ProtoMessage()

func (*QueryGroupAccountsByGroupResponse) ProtoReflect

func (*QueryGroupAccountsByGroupResponse) Reset

func (*QueryGroupAccountsByGroupResponse) String

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 for 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/GroupMembersRequest 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 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/GroupsByAdminRequest 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 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 QueryProposalsByGroupAccountRequest

type QueryProposalsByGroupAccountRequest struct {

	// address is the group account address 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
}

QueryProposalsByGroupAccountRequest is the Query/ProposalByGroupAccount request type.

func (*QueryProposalsByGroupAccountRequest) Descriptor deprecated

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

Deprecated: Use QueryProposalsByGroupAccountRequest.ProtoReflect.Descriptor instead.

func (*QueryProposalsByGroupAccountRequest) GetAddress

func (*QueryProposalsByGroupAccountRequest) GetPagination

func (*QueryProposalsByGroupAccountRequest) ProtoMessage

func (*QueryProposalsByGroupAccountRequest) ProtoMessage()

func (*QueryProposalsByGroupAccountRequest) ProtoReflect

func (*QueryProposalsByGroupAccountRequest) Reset

func (*QueryProposalsByGroupAccountRequest) String

type QueryProposalsByGroupAccountResponse

type QueryProposalsByGroupAccountResponse struct {

	// proposals are the proposals with given group account.
	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
}

QueryProposalsByGroupAccountResponse is the Query/ProposalByGroupAccount response type.

func (*QueryProposalsByGroupAccountResponse) Descriptor deprecated

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

Deprecated: Use QueryProposalsByGroupAccountResponse.ProtoReflect.Descriptor instead.

func (*QueryProposalsByGroupAccountResponse) GetPagination

func (*QueryProposalsByGroupAccountResponse) GetProposals

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

func (*QueryProposalsByGroupAccountResponse) ProtoMessage

func (*QueryProposalsByGroupAccountResponse) ProtoMessage()

func (*QueryProposalsByGroupAccountResponse) ProtoReflect

func (*QueryProposalsByGroupAccountResponse) Reset

func (*QueryProposalsByGroupAccountResponse) String

type QueryServer

type QueryServer interface {
	// GroupInfo queries group info based on group id.
	GroupInfo(context.Context, *QueryGroupInfoRequest) (*QueryGroupInfoResponse, error)
	// GroupAccountInfo queries group account info based on group account address.
	GroupAccountInfo(context.Context, *QueryGroupAccountInfoRequest) (*QueryGroupAccountInfoResponse, error)
	// GroupMembers queries members of a group
	GroupMembers(context.Context, *QueryGroupMembersRequest) (*QueryGroupMembersResponse, error)
	// GroupsByAdmin queries groups by admin address.
	GroupsByAdmin(context.Context, *QueryGroupsByAdminRequest) (*QueryGroupsByAdminResponse, error)
	// GroupAccountsByGroup queries group accounts by group id.
	GroupAccountsByGroup(context.Context, *QueryGroupAccountsByGroupRequest) (*QueryGroupAccountsByGroupResponse, error)
	// GroupsByAdmin queries group accounts by admin address.
	GroupAccountsByAdmin(context.Context, *QueryGroupAccountsByAdminRequest) (*QueryGroupAccountsByAdminResponse, error)
	// Proposal queries a proposal based on proposal id.
	Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
	// ProposalsByGroupAccount queries proposals based on group account address.
	ProposalsByGroupAccount(context.Context, *QueryProposalsByGroupAccountRequest) (*QueryProposalsByGroupAccountResponse, error)
	// VoteByProposalVoter queries a vote by proposal id and voter.
	VoteByProposalVoter(context.Context, *QueryVoteByProposalVoterRequest) (*QueryVoteByProposalVoterResponse, error)
	// VotesByProposal queries a vote by proposal.
	VotesByProposal(context.Context, *QueryVotesByProposalRequest) (*QueryVotesByProposalResponse, error)
	// VotesByVoter queries a vote by voter.
	VotesByVoter(context.Context, *QueryVotesByVoterRequest) (*QueryVotesByVoterResponse, error)
	// contains filtered or unexported methods
}

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

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
}

QueryVoteByProposalVoterResponse 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
}

QueryVotesByProposalResponse 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
}

QueryVotesByVoterResponse 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 Tally

type Tally 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"`
	// no_count is the weighted sum of no votes.
	NoCount string `protobuf:"bytes,2,opt,name=no_count,json=noCount,proto3" json:"no_count,omitempty"`
	// abstain_count is the weighted sum of abstainers
	AbstainCount string `protobuf:"bytes,3,opt,name=abstain_count,json=abstainCount,proto3" json:"abstain_count,omitempty"`
	// veto_count is the weighted sum of vetoes.
	VetoCount string `protobuf:"bytes,4,opt,name=veto_count,json=vetoCount,proto3" json:"veto_count,omitempty"`
	// contains filtered or unexported fields
}

Tally represents the sum of weighted votes.

func (*Tally) Descriptor deprecated

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

Deprecated: Use Tally.ProtoReflect.Descriptor instead.

func (*Tally) GetAbstainCount

func (x *Tally) GetAbstainCount() string

func (*Tally) GetNoCount

func (x *Tally) GetNoCount() string

func (*Tally) GetVetoCount

func (x *Tally) GetVetoCount() string

func (*Tally) GetYesCount

func (x *Tally) GetYesCount() string

func (*Tally) ProtoMessage

func (*Tally) ProtoMessage()

func (*Tally) ProtoReflect

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

func (*Tally) Reset

func (x *Tally) Reset()

func (*Tally) String

func (x *Tally) 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"`
	// timeout is the duration from submission of a proposal to the end of voting
	// period Within this times votes and exec messages can be submitted.
	Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

ThresholdDecisionPolicy implements the DecisionPolicy interface

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) GetTimeout

func (x *ThresholdDecisionPolicy) GetTimeout() *durationpb.Duration

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) CreateProposal

func (UnimplementedMsgServer) Exec

func (UnimplementedMsgServer) UpdateGroupAdmin

func (UnimplementedMsgServer) Vote

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) GroupInfo

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"`
	// choice is the voter's choice on the proposal.
	Choice Choice `protobuf:"varint,3,opt,name=choice,proto3,enum=regen.group.v1alpha1.Choice" json:"choice,omitempty"`
	// metadata is any arbitrary metadata to attached to the vote.
	Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// submitted_at is the timestamp when the vote was submitted.
	SubmittedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=submitted_at,json=submittedAt,proto3" json:"submitted_at,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) GetChoice

func (x *Vote) GetChoice() Choice

func (*Vote) GetMetadata

func (x *Vote) GetMetadata() []byte

func (*Vote) GetProposalId

func (x *Vote) GetProposalId() uint64

func (*Vote) GetSubmittedAt

func (x *Vote) GetSubmittedAt() *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

Jump to

Keyboard shortcuts

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