group

package module
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 32 Imported by: 7

Documentation

Overview

Package group is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "group"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	DefaultParamspace = ModuleName
)
View Source
const MaxMetadataLength = 255

MaxMetadataLength defines the max length of the metadata bytes field for various entities within the group module TODO: This could be used as params once x/params is upgraded to use protobuf

Variables

View Source
var (
	ErrEmpty        = sdkerrors.Register(ModuleName, 202, "value is empty")
	ErrDuplicate    = sdkerrors.Register(ModuleName, 203, "duplicate value")
	ErrMaxLimit     = sdkerrors.Register(ModuleName, 204, "limit exceeded")
	ErrType         = sdkerrors.Register(ModuleName, 205, "invalid type")
	ErrInvalid      = sdkerrors.Register(ModuleName, 206, "invalid value")
	ErrUnauthorized = sdkerrors.Register(ModuleName, 207, "unauthorized")
	ErrModified     = sdkerrors.Register(ModuleName, 208, "modified")
	ErrExpired      = sdkerrors.Register(ModuleName, 209, "expired")
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Choice_name = map[int32]string{
	0: "CHOICE_UNSPECIFIED",
	1: "CHOICE_NO",
	2: "CHOICE_YES",
	3: "CHOICE_ABSTAIN",
	4: "CHOICE_VETO",
}
View Source
var Choice_value = map[string]int32{
	"CHOICE_UNSPECIFIED": 0,
	"CHOICE_NO":          1,
	"CHOICE_YES":         2,
	"CHOICE_ABSTAIN":     3,
	"CHOICE_VETO":        4,
}
View Source
var Exec_name = map[int32]string{
	0: "EXEC_UNSPECIFIED",
	1: "EXEC_TRY",
}
View Source
var Exec_value = map[string]int32{
	"EXEC_UNSPECIFIED": 0,
	"EXEC_TRY":         1,
}
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)
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",
}
View Source
var Proposal_ExecutorResult_value = map[string]int32{
	"EXECUTOR_RESULT_UNSPECIFIED": 0,
	"EXECUTOR_RESULT_NOT_RUN":     1,
	"EXECUTOR_RESULT_SUCCESS":     2,
	"EXECUTOR_RESULT_FAILURE":     3,
}
View Source
var Proposal_Result_name = map[int32]string{
	0: "RESULT_UNSPECIFIED",
	1: "RESULT_UNFINALIZED",
	2: "RESULT_ACCEPTED",
	3: "RESULT_REJECTED",
}
View Source
var Proposal_Result_value = map[string]int32{
	"RESULT_UNSPECIFIED": 0,
	"RESULT_UNFINALIZED": 1,
	"RESULT_ACCEPTED":    2,
	"RESULT_REJECTED":    3,
}
View Source
var Proposal_Status_name = map[int32]string{
	0: "STATUS_UNSPECIFIED",
	1: "STATUS_SUBMITTED",
	2: "STATUS_CLOSED",
	3: "STATUS_ABORTED",
}
View Source
var Proposal_Status_value = map[string]int32{
	"STATUS_UNSPECIFIED": 0,
	"STATUS_SUBMITTED":   1,
	"STATUS_CLOSED":      2,
	"STATUS_ABORTED":     3,
}

Functions

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers all the necessary group module concrete types and interfaces with the provided codec reference. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func RegisterTypes

func RegisterTypes(registry cdctypes.InterfaceRegistry)

Types

type AccAddresses

type AccAddresses []sdk.AccAddress

func (AccAddresses) ValidateBasic

func (a AccAddresses) ValidateBasic() error

ValidateBasic verifies that there's no duplicate address. Individual account address validation has to be done separately.

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 ChoiceFromString

func ChoiceFromString(str string) (Choice, error)

ChoiceFromString returns a Choice from a string. It returns an error if the string is invalid.

func (Choice) EnumDescriptor

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

func (Choice) String

func (x Choice) String() string

type DecisionPolicy

type DecisionPolicy interface {
	codec.ProtoMarshaler

	orm.Validateable
	GetTimeout() types.Duration
	Allow(tally Tally, totalPower string, votingDuration time.Duration) (DecisionPolicyResult, error)
	Validate(g GroupInfo) error
}

DecisionPolicy is the persistent set of rules to determine the result of election on a proposal.

func NewThresholdDecisionPolicy

func NewThresholdDecisionPolicy(threshold string, timeout types.Duration) DecisionPolicy

NewThresholdDecisionPolicy creates a threshold DecisionPolicy

type DecisionPolicyResult

type DecisionPolicyResult struct {
	Allow bool
	Final bool
}

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"`
}

EventCreateGroup is an event emitted when a group is created.

func (*EventCreateGroup) Descriptor

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

func (*EventCreateGroup) GetGroupId

func (m *EventCreateGroup) GetGroupId() uint64

func (*EventCreateGroup) Marshal

func (m *EventCreateGroup) Marshal() (dAtA []byte, err error)

func (*EventCreateGroup) MarshalTo

func (m *EventCreateGroup) MarshalTo(dAtA []byte) (int, error)

func (*EventCreateGroup) MarshalToSizedBuffer

func (m *EventCreateGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventCreateGroup) ProtoMessage

func (*EventCreateGroup) ProtoMessage()

func (*EventCreateGroup) Reset

func (m *EventCreateGroup) Reset()

func (*EventCreateGroup) Size

func (m *EventCreateGroup) Size() (n int)

func (*EventCreateGroup) String

func (m *EventCreateGroup) String() string

func (*EventCreateGroup) Unmarshal

func (m *EventCreateGroup) Unmarshal(dAtA []byte) error

func (*EventCreateGroup) XXX_DiscardUnknown

func (m *EventCreateGroup) XXX_DiscardUnknown()

func (*EventCreateGroup) XXX_Marshal

func (m *EventCreateGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventCreateGroup) XXX_Merge

func (m *EventCreateGroup) XXX_Merge(src proto.Message)

func (*EventCreateGroup) XXX_Size

func (m *EventCreateGroup) XXX_Size() int

func (*EventCreateGroup) XXX_Unmarshal

func (m *EventCreateGroup) XXX_Unmarshal(b []byte) error

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"`
}

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

func (*EventCreateGroupAccount) Descriptor

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

func (*EventCreateGroupAccount) GetAddress

func (m *EventCreateGroupAccount) GetAddress() string

func (*EventCreateGroupAccount) Marshal

func (m *EventCreateGroupAccount) Marshal() (dAtA []byte, err error)

func (*EventCreateGroupAccount) MarshalTo

func (m *EventCreateGroupAccount) MarshalTo(dAtA []byte) (int, error)

func (*EventCreateGroupAccount) MarshalToSizedBuffer

func (m *EventCreateGroupAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventCreateGroupAccount) ProtoMessage

func (*EventCreateGroupAccount) ProtoMessage()

func (*EventCreateGroupAccount) Reset

func (m *EventCreateGroupAccount) Reset()

func (*EventCreateGroupAccount) Size

func (m *EventCreateGroupAccount) Size() (n int)

func (*EventCreateGroupAccount) String

func (m *EventCreateGroupAccount) String() string

func (*EventCreateGroupAccount) Unmarshal

func (m *EventCreateGroupAccount) Unmarshal(dAtA []byte) error

func (*EventCreateGroupAccount) XXX_DiscardUnknown

func (m *EventCreateGroupAccount) XXX_DiscardUnknown()

func (*EventCreateGroupAccount) XXX_Marshal

func (m *EventCreateGroupAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventCreateGroupAccount) XXX_Merge

func (m *EventCreateGroupAccount) XXX_Merge(src proto.Message)

func (*EventCreateGroupAccount) XXX_Size

func (m *EventCreateGroupAccount) XXX_Size() int

func (*EventCreateGroupAccount) XXX_Unmarshal

func (m *EventCreateGroupAccount) XXX_Unmarshal(b []byte) error

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"`
}

EventCreateProposal is an event emitted when a proposal is created.

func (*EventCreateProposal) Descriptor

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

func (*EventCreateProposal) GetProposalId

func (m *EventCreateProposal) GetProposalId() uint64

func (*EventCreateProposal) Marshal

func (m *EventCreateProposal) Marshal() (dAtA []byte, err error)

func (*EventCreateProposal) MarshalTo

func (m *EventCreateProposal) MarshalTo(dAtA []byte) (int, error)

func (*EventCreateProposal) MarshalToSizedBuffer

func (m *EventCreateProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventCreateProposal) ProtoMessage

func (*EventCreateProposal) ProtoMessage()

func (*EventCreateProposal) Reset

func (m *EventCreateProposal) Reset()

func (*EventCreateProposal) Size

func (m *EventCreateProposal) Size() (n int)

func (*EventCreateProposal) String

func (m *EventCreateProposal) String() string

func (*EventCreateProposal) Unmarshal

func (m *EventCreateProposal) Unmarshal(dAtA []byte) error

func (*EventCreateProposal) XXX_DiscardUnknown

func (m *EventCreateProposal) XXX_DiscardUnknown()

func (*EventCreateProposal) XXX_Marshal

func (m *EventCreateProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventCreateProposal) XXX_Merge

func (m *EventCreateProposal) XXX_Merge(src proto.Message)

func (*EventCreateProposal) XXX_Size

func (m *EventCreateProposal) XXX_Size() int

func (*EventCreateProposal) XXX_Unmarshal

func (m *EventCreateProposal) XXX_Unmarshal(b []byte) error

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"`
}

EventExec is an event emitted when a proposal is executed.

func (*EventExec) Descriptor

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

func (*EventExec) GetProposalId

func (m *EventExec) GetProposalId() uint64

func (*EventExec) Marshal

func (m *EventExec) Marshal() (dAtA []byte, err error)

func (*EventExec) MarshalTo

func (m *EventExec) MarshalTo(dAtA []byte) (int, error)

func (*EventExec) MarshalToSizedBuffer

func (m *EventExec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventExec) ProtoMessage

func (*EventExec) ProtoMessage()

func (*EventExec) Reset

func (m *EventExec) Reset()

func (*EventExec) Size

func (m *EventExec) Size() (n int)

func (*EventExec) String

func (m *EventExec) String() string

func (*EventExec) Unmarshal

func (m *EventExec) Unmarshal(dAtA []byte) error

func (*EventExec) XXX_DiscardUnknown

func (m *EventExec) XXX_DiscardUnknown()

func (*EventExec) XXX_Marshal

func (m *EventExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventExec) XXX_Merge

func (m *EventExec) XXX_Merge(src proto.Message)

func (*EventExec) XXX_Size

func (m *EventExec) XXX_Size() int

func (*EventExec) XXX_Unmarshal

func (m *EventExec) XXX_Unmarshal(b []byte) error

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"`
}

EventUpdateGroup is an event emitted when a group is updated.

func (*EventUpdateGroup) Descriptor

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

func (*EventUpdateGroup) GetGroupId

func (m *EventUpdateGroup) GetGroupId() uint64

func (*EventUpdateGroup) Marshal

func (m *EventUpdateGroup) Marshal() (dAtA []byte, err error)

func (*EventUpdateGroup) MarshalTo

func (m *EventUpdateGroup) MarshalTo(dAtA []byte) (int, error)

func (*EventUpdateGroup) MarshalToSizedBuffer

func (m *EventUpdateGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventUpdateGroup) ProtoMessage

func (*EventUpdateGroup) ProtoMessage()

func (*EventUpdateGroup) Reset

func (m *EventUpdateGroup) Reset()

func (*EventUpdateGroup) Size

func (m *EventUpdateGroup) Size() (n int)

func (*EventUpdateGroup) String

func (m *EventUpdateGroup) String() string

func (*EventUpdateGroup) Unmarshal

func (m *EventUpdateGroup) Unmarshal(dAtA []byte) error

func (*EventUpdateGroup) XXX_DiscardUnknown

func (m *EventUpdateGroup) XXX_DiscardUnknown()

func (*EventUpdateGroup) XXX_Marshal

func (m *EventUpdateGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventUpdateGroup) XXX_Merge

func (m *EventUpdateGroup) XXX_Merge(src proto.Message)

func (*EventUpdateGroup) XXX_Size

func (m *EventUpdateGroup) XXX_Size() int

func (*EventUpdateGroup) XXX_Unmarshal

func (m *EventUpdateGroup) XXX_Unmarshal(b []byte) error

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"`
}

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

func (*EventUpdateGroupAccount) Descriptor

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

func (*EventUpdateGroupAccount) GetAddress

func (m *EventUpdateGroupAccount) GetAddress() string

func (*EventUpdateGroupAccount) Marshal

func (m *EventUpdateGroupAccount) Marshal() (dAtA []byte, err error)

func (*EventUpdateGroupAccount) MarshalTo

func (m *EventUpdateGroupAccount) MarshalTo(dAtA []byte) (int, error)

func (*EventUpdateGroupAccount) MarshalToSizedBuffer

func (m *EventUpdateGroupAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventUpdateGroupAccount) ProtoMessage

func (*EventUpdateGroupAccount) ProtoMessage()

func (*EventUpdateGroupAccount) Reset

func (m *EventUpdateGroupAccount) Reset()

func (*EventUpdateGroupAccount) Size

func (m *EventUpdateGroupAccount) Size() (n int)

func (*EventUpdateGroupAccount) String

func (m *EventUpdateGroupAccount) String() string

func (*EventUpdateGroupAccount) Unmarshal

func (m *EventUpdateGroupAccount) Unmarshal(dAtA []byte) error

func (*EventUpdateGroupAccount) XXX_DiscardUnknown

func (m *EventUpdateGroupAccount) XXX_DiscardUnknown()

func (*EventUpdateGroupAccount) XXX_Marshal

func (m *EventUpdateGroupAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventUpdateGroupAccount) XXX_Merge

func (m *EventUpdateGroupAccount) XXX_Merge(src proto.Message)

func (*EventUpdateGroupAccount) XXX_Size

func (m *EventUpdateGroupAccount) XXX_Size() int

func (*EventUpdateGroupAccount) XXX_Unmarshal

func (m *EventUpdateGroupAccount) XXX_Unmarshal(b []byte) error

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"`
}

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

func (*EventVote) Descriptor

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

func (*EventVote) GetProposalId

func (m *EventVote) GetProposalId() uint64

func (*EventVote) Marshal

func (m *EventVote) Marshal() (dAtA []byte, err error)

func (*EventVote) MarshalTo

func (m *EventVote) MarshalTo(dAtA []byte) (int, error)

func (*EventVote) MarshalToSizedBuffer

func (m *EventVote) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventVote) ProtoMessage

func (*EventVote) ProtoMessage()

func (*EventVote) Reset

func (m *EventVote) Reset()

func (*EventVote) Size

func (m *EventVote) Size() (n int)

func (*EventVote) String

func (m *EventVote) String() string

func (*EventVote) Unmarshal

func (m *EventVote) Unmarshal(dAtA []byte) error

func (*EventVote) XXX_DiscardUnknown

func (m *EventVote) XXX_DiscardUnknown()

func (*EventVote) XXX_Marshal

func (m *EventVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventVote) XXX_Merge

func (m *EventVote) XXX_Merge(src proto.Message)

func (*EventVote) XXX_Size

func (m *EventVote) XXX_Size() int

func (*EventVote) XXX_Unmarshal

func (m *EventVote) XXX_Unmarshal(b []byte) error

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

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

func (Exec) String

func (x Exec) String() string

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"`
}

GenesisState defines the group module's genesis state.

func NewGenesisState

func NewGenesisState() *GenesisState

NewGenesisState creates a new genesis state with default values.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetGroupAccountSeq

func (m *GenesisState) GetGroupAccountSeq() uint64

func (*GenesisState) GetGroupAccounts

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

func (*GenesisState) GetGroupMembers

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

func (*GenesisState) GetGroupSeq

func (m *GenesisState) GetGroupSeq() uint64

func (*GenesisState) GetGroups

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

func (*GenesisState) GetProposalSeq

func (m *GenesisState) GetProposalSeq() uint64

func (*GenesisState) GetProposals

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

func (*GenesisState) GetVotes

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

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) UnpackInterfaces

func (s GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (GenesisState) Validate

func (s GenesisState) Validate() error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

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 *types1.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"`
}

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

func NewGroupAccountInfo

func NewGroupAccountInfo(address sdk.AccAddress, group uint64, admin sdk.AccAddress, metadata []byte,
	version uint64, decisionPolicy DecisionPolicy, derivationKey []byte) (GroupAccountInfo, error)

NewGroupAccountInfo creates a new GroupAccountInfo instance

func (*GroupAccountInfo) Descriptor

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

func (*GroupAccountInfo) Equal

func (this *GroupAccountInfo) Equal(that interface{}) bool

func (GroupAccountInfo) GetDecisionPolicy

func (g GroupAccountInfo) GetDecisionPolicy() DecisionPolicy

func (*GroupAccountInfo) Marshal

func (m *GroupAccountInfo) Marshal() (dAtA []byte, err error)

func (*GroupAccountInfo) MarshalTo

func (m *GroupAccountInfo) MarshalTo(dAtA []byte) (int, error)

func (*GroupAccountInfo) MarshalToSizedBuffer

func (m *GroupAccountInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (GroupAccountInfo) PrimaryKeyFields

func (g GroupAccountInfo) PrimaryKeyFields() []interface{}

func (*GroupAccountInfo) ProtoMessage

func (*GroupAccountInfo) ProtoMessage()

func (*GroupAccountInfo) Reset

func (m *GroupAccountInfo) Reset()

func (*GroupAccountInfo) SetDecisionPolicy

func (g *GroupAccountInfo) SetDecisionPolicy(decisionPolicy DecisionPolicy) error

func (*GroupAccountInfo) Size

func (m *GroupAccountInfo) Size() (n int)

func (*GroupAccountInfo) String

func (m *GroupAccountInfo) String() string

func (*GroupAccountInfo) Unmarshal

func (m *GroupAccountInfo) Unmarshal(dAtA []byte) error

func (GroupAccountInfo) UnpackInterfaces

func (g GroupAccountInfo) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (GroupAccountInfo) ValidateBasic

func (g GroupAccountInfo) ValidateBasic() error

func (*GroupAccountInfo) XXX_DiscardUnknown

func (m *GroupAccountInfo) XXX_DiscardUnknown()

func (*GroupAccountInfo) XXX_Marshal

func (m *GroupAccountInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupAccountInfo) XXX_Merge

func (m *GroupAccountInfo) XXX_Merge(src proto.Message)

func (*GroupAccountInfo) XXX_Size

func (m *GroupAccountInfo) XXX_Size() int

func (*GroupAccountInfo) XXX_Unmarshal

func (m *GroupAccountInfo) XXX_Unmarshal(b []byte) error

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"`
}

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

func (*GroupInfo) Descriptor

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

func (*GroupInfo) GetAdmin

func (m *GroupInfo) GetAdmin() string

func (*GroupInfo) GetGroupId

func (m *GroupInfo) GetGroupId() uint64

func (*GroupInfo) GetMetadata

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

func (*GroupInfo) GetTotalWeight

func (m *GroupInfo) GetTotalWeight() string

func (*GroupInfo) GetVersion

func (m *GroupInfo) GetVersion() uint64

func (*GroupInfo) Marshal

func (m *GroupInfo) Marshal() (dAtA []byte, err error)

func (*GroupInfo) MarshalTo

func (m *GroupInfo) MarshalTo(dAtA []byte) (int, error)

func (*GroupInfo) MarshalToSizedBuffer

func (m *GroupInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (GroupInfo) PrimaryKeyFields

func (g GroupInfo) PrimaryKeyFields() []interface{}

func (*GroupInfo) ProtoMessage

func (*GroupInfo) ProtoMessage()

func (*GroupInfo) Reset

func (m *GroupInfo) Reset()

func (*GroupInfo) Size

func (m *GroupInfo) Size() (n int)

func (*GroupInfo) String

func (m *GroupInfo) String() string

func (*GroupInfo) Unmarshal

func (m *GroupInfo) Unmarshal(dAtA []byte) error

func (GroupInfo) ValidateBasic

func (g GroupInfo) ValidateBasic() error

func (*GroupInfo) XXX_DiscardUnknown

func (m *GroupInfo) XXX_DiscardUnknown()

func (*GroupInfo) XXX_Marshal

func (m *GroupInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupInfo) XXX_Merge

func (m *GroupInfo) XXX_Merge(src proto.Message)

func (*GroupInfo) XXX_Size

func (m *GroupInfo) XXX_Size() int

func (*GroupInfo) XXX_Unmarshal

func (m *GroupInfo) XXX_Unmarshal(b []byte) error

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"`
}

GroupMember represents the relationship between a group and a member.

func (*GroupMember) Descriptor

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

func (*GroupMember) GetGroupId

func (m *GroupMember) GetGroupId() uint64

func (*GroupMember) GetMember

func (m *GroupMember) GetMember() *Member

func (*GroupMember) Marshal

func (m *GroupMember) Marshal() (dAtA []byte, err error)

func (*GroupMember) MarshalTo

func (m *GroupMember) MarshalTo(dAtA []byte) (int, error)

func (*GroupMember) MarshalToSizedBuffer

func (m *GroupMember) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (GroupMember) PrimaryKeyFields

func (g GroupMember) PrimaryKeyFields() []interface{}

func (*GroupMember) ProtoMessage

func (*GroupMember) ProtoMessage()

func (*GroupMember) Reset

func (m *GroupMember) Reset()

func (*GroupMember) Size

func (m *GroupMember) Size() (n int)

func (*GroupMember) String

func (m *GroupMember) String() string

func (*GroupMember) Unmarshal

func (m *GroupMember) Unmarshal(dAtA []byte) error

func (GroupMember) ValidateBasic

func (g GroupMember) ValidateBasic() error

func (*GroupMember) XXX_DiscardUnknown

func (m *GroupMember) XXX_DiscardUnknown()

func (*GroupMember) XXX_Marshal

func (m *GroupMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupMember) XXX_Merge

func (m *GroupMember) XXX_Merge(src proto.Message)

func (*GroupMember) XXX_Size

func (m *GroupMember) XXX_Size() int

func (*GroupMember) XXX_Unmarshal

func (m *GroupMember) XXX_Unmarshal(b []byte) error

type ID

type ID uint64

func (ID) Bytes

func (g ID) Bytes() []byte

func (ID) Empty

func (g ID) Empty() bool

func (ID) Uint64

func (g ID) Uint64() uint64

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"`
}

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

func (*Member) Descriptor

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

func (*Member) GetAddress

func (m *Member) GetAddress() string

func (*Member) GetMetadata

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

func (*Member) GetWeight

func (m *Member) GetWeight() string

func (*Member) Marshal

func (m *Member) Marshal() (dAtA []byte, err error)

func (*Member) MarshalTo

func (m *Member) MarshalTo(dAtA []byte) (int, error)

func (*Member) MarshalToSizedBuffer

func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) Reset

func (m *Member) Reset()

func (*Member) Size

func (m *Member) Size() (n int)

func (*Member) String

func (m *Member) String() string

func (*Member) Unmarshal

func (m *Member) Unmarshal(dAtA []byte) error

func (Member) ValidateBasic

func (m Member) ValidateBasic() error

func (*Member) XXX_DiscardUnknown

func (m *Member) XXX_DiscardUnknown()

func (*Member) XXX_Marshal

func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Member) XXX_Merge

func (m *Member) XXX_Merge(src proto.Message)

func (*Member) XXX_Size

func (m *Member) XXX_Size() int

func (*Member) XXX_Unmarshal

func (m *Member) XXX_Unmarshal(b []byte) error

type Members

type Members struct {
	// members is the list of members.
	Members []Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members"`
}

Members defines a repeated slice of Member objects.

func (*Members) Descriptor

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

func (*Members) GetMembers

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

func (*Members) Marshal

func (m *Members) Marshal() (dAtA []byte, err error)

func (*Members) MarshalTo

func (m *Members) MarshalTo(dAtA []byte) (int, error)

func (*Members) MarshalToSizedBuffer

func (m *Members) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Members) ProtoMessage

func (*Members) ProtoMessage()

func (*Members) Reset

func (m *Members) Reset()

func (*Members) Size

func (m *Members) Size() (n int)

func (*Members) String

func (m *Members) String() string

func (*Members) Unmarshal

func (m *Members) Unmarshal(dAtA []byte) error

func (Members) ValidateBasic

func (ms Members) ValidateBasic() error

func (*Members) XXX_DiscardUnknown

func (m *Members) XXX_DiscardUnknown()

func (*Members) XXX_Marshal

func (m *Members) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Members) XXX_Merge

func (m *Members) XXX_Merge(src proto.Message)

func (*Members) XXX_Size

func (m *Members) XXX_Size() int

func (*Members) XXX_Unmarshal

func (m *Members) XXX_Unmarshal(b []byte) error

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) 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"`
	// metadata is any arbitrary metadata to attached to the group.
	Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

MsgCreateGroup is the Msg/CreateGroup request type.

func (*MsgCreateGroup) Descriptor

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

func (*MsgCreateGroup) GetAdmin

func (m *MsgCreateGroup) GetAdmin() string

func (*MsgCreateGroup) GetMembers

func (m *MsgCreateGroup) GetMembers() []Member

func (*MsgCreateGroup) GetMetadata

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

func (MsgCreateGroup) GetSignBytes

func (m MsgCreateGroup) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgCreateGroup) GetSigners

func (m MsgCreateGroup) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgCreateGroup.

func (*MsgCreateGroup) Marshal

func (m *MsgCreateGroup) Marshal() (dAtA []byte, err error)

func (*MsgCreateGroup) MarshalTo

func (m *MsgCreateGroup) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateGroup) MarshalToSizedBuffer

func (m *MsgCreateGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateGroup) ProtoMessage

func (*MsgCreateGroup) ProtoMessage()

func (*MsgCreateGroup) Reset

func (m *MsgCreateGroup) Reset()

func (MsgCreateGroup) Route

func (m MsgCreateGroup) Route() string

Route Implements Msg.

func (*MsgCreateGroup) Size

func (m *MsgCreateGroup) Size() (n int)

func (*MsgCreateGroup) String

func (m *MsgCreateGroup) String() string

func (MsgCreateGroup) Type

func (m MsgCreateGroup) Type() string

Type Implements Msg.

func (*MsgCreateGroup) Unmarshal

func (m *MsgCreateGroup) Unmarshal(dAtA []byte) error

func (MsgCreateGroup) ValidateBasic

func (m MsgCreateGroup) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgCreateGroup) XXX_DiscardUnknown

func (m *MsgCreateGroup) XXX_DiscardUnknown()

func (*MsgCreateGroup) XXX_Marshal

func (m *MsgCreateGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateGroup) XXX_Merge

func (m *MsgCreateGroup) XXX_Merge(src proto.Message)

func (*MsgCreateGroup) XXX_Size

func (m *MsgCreateGroup) XXX_Size() int

func (*MsgCreateGroup) XXX_Unmarshal

func (m *MsgCreateGroup) XXX_Unmarshal(b []byte) error

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 *types.Any `protobuf:"bytes,4,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
}

MsgCreateGroupAccount is the Msg/CreateGroupAccount request type.

func NewMsgCreateGroupAccount

func NewMsgCreateGroupAccount(admin sdk.AccAddress, group uint64, metadata []byte, decisionPolicy DecisionPolicy) (*MsgCreateGroupAccount, error)

NewMsgCreateGroupAccount creates a new MsgCreateGroupAccount.

func (*MsgCreateGroupAccount) Descriptor

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

func (*MsgCreateGroupAccount) GetAdmin

func (m *MsgCreateGroupAccount) GetAdmin() string

func (*MsgCreateGroupAccount) GetDecisionPolicy

func (m *MsgCreateGroupAccount) GetDecisionPolicy() DecisionPolicy

func (*MsgCreateGroupAccount) GetGroupID

func (m *MsgCreateGroupAccount) GetGroupID() uint64

func (*MsgCreateGroupAccount) GetMetadata

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

func (MsgCreateGroupAccount) GetSignBytes

func (m MsgCreateGroupAccount) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgCreateGroupAccount) GetSigners

func (m MsgCreateGroupAccount) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgCreateGroupAccount.

func (*MsgCreateGroupAccount) Marshal

func (m *MsgCreateGroupAccount) Marshal() (dAtA []byte, err error)

func (*MsgCreateGroupAccount) MarshalTo

func (m *MsgCreateGroupAccount) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateGroupAccount) MarshalToSizedBuffer

func (m *MsgCreateGroupAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateGroupAccount) ProtoMessage

func (*MsgCreateGroupAccount) ProtoMessage()

func (*MsgCreateGroupAccount) Reset

func (m *MsgCreateGroupAccount) Reset()

func (MsgCreateGroupAccount) Route

func (m MsgCreateGroupAccount) Route() string

Route Implements Msg.

func (*MsgCreateGroupAccount) SetDecisionPolicy

func (m *MsgCreateGroupAccount) SetDecisionPolicy(decisionPolicy DecisionPolicy) error

func (*MsgCreateGroupAccount) Size

func (m *MsgCreateGroupAccount) Size() (n int)

func (*MsgCreateGroupAccount) String

func (m *MsgCreateGroupAccount) String() string

func (MsgCreateGroupAccount) Type

func (m MsgCreateGroupAccount) Type() string

Type Implements Msg.

func (*MsgCreateGroupAccount) Unmarshal

func (m *MsgCreateGroupAccount) Unmarshal(dAtA []byte) error

func (MsgCreateGroupAccount) UnpackInterfaces

func (m MsgCreateGroupAccount) UnpackInterfaces(unpacker types.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgCreateGroupAccount) ValidateBasic

func (m MsgCreateGroupAccount) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgCreateGroupAccount) XXX_DiscardUnknown

func (m *MsgCreateGroupAccount) XXX_DiscardUnknown()

func (*MsgCreateGroupAccount) XXX_Marshal

func (m *MsgCreateGroupAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateGroupAccount) XXX_Merge

func (m *MsgCreateGroupAccount) XXX_Merge(src proto.Message)

func (*MsgCreateGroupAccount) XXX_Size

func (m *MsgCreateGroupAccount) XXX_Size() int

func (*MsgCreateGroupAccount) XXX_Unmarshal

func (m *MsgCreateGroupAccount) XXX_Unmarshal(b []byte) error

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"`
}

MsgCreateGroupAccountResponse is the Msg/CreateGroupAccount response type.

func (*MsgCreateGroupAccountResponse) Descriptor

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

func (*MsgCreateGroupAccountResponse) GetAddress

func (m *MsgCreateGroupAccountResponse) GetAddress() string

func (*MsgCreateGroupAccountResponse) Marshal

func (m *MsgCreateGroupAccountResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateGroupAccountResponse) MarshalTo

func (m *MsgCreateGroupAccountResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateGroupAccountResponse) MarshalToSizedBuffer

func (m *MsgCreateGroupAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateGroupAccountResponse) ProtoMessage

func (*MsgCreateGroupAccountResponse) ProtoMessage()

func (*MsgCreateGroupAccountResponse) Reset

func (m *MsgCreateGroupAccountResponse) Reset()

func (*MsgCreateGroupAccountResponse) Size

func (m *MsgCreateGroupAccountResponse) Size() (n int)

func (*MsgCreateGroupAccountResponse) String

func (*MsgCreateGroupAccountResponse) Unmarshal

func (m *MsgCreateGroupAccountResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateGroupAccountResponse) XXX_DiscardUnknown

func (m *MsgCreateGroupAccountResponse) XXX_DiscardUnknown()

func (*MsgCreateGroupAccountResponse) XXX_Marshal

func (m *MsgCreateGroupAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateGroupAccountResponse) XXX_Merge

func (m *MsgCreateGroupAccountResponse) XXX_Merge(src proto.Message)

func (*MsgCreateGroupAccountResponse) XXX_Size

func (m *MsgCreateGroupAccountResponse) XXX_Size() int

func (*MsgCreateGroupAccountResponse) XXX_Unmarshal

func (m *MsgCreateGroupAccountResponse) XXX_Unmarshal(b []byte) error

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"`
}

MsgCreateGroupResponse is the Msg/CreateGroup response type.

func (*MsgCreateGroupResponse) Descriptor

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

func (*MsgCreateGroupResponse) GetGroupId

func (m *MsgCreateGroupResponse) GetGroupId() uint64

func (*MsgCreateGroupResponse) Marshal

func (m *MsgCreateGroupResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateGroupResponse) MarshalTo

func (m *MsgCreateGroupResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateGroupResponse) MarshalToSizedBuffer

func (m *MsgCreateGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateGroupResponse) ProtoMessage

func (*MsgCreateGroupResponse) ProtoMessage()

func (*MsgCreateGroupResponse) Reset

func (m *MsgCreateGroupResponse) Reset()

func (*MsgCreateGroupResponse) Size

func (m *MsgCreateGroupResponse) Size() (n int)

func (*MsgCreateGroupResponse) String

func (m *MsgCreateGroupResponse) String() string

func (*MsgCreateGroupResponse) Unmarshal

func (m *MsgCreateGroupResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateGroupResponse) XXX_DiscardUnknown

func (m *MsgCreateGroupResponse) XXX_DiscardUnknown()

func (*MsgCreateGroupResponse) XXX_Marshal

func (m *MsgCreateGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateGroupResponse) XXX_Merge

func (m *MsgCreateGroupResponse) XXX_Merge(src proto.Message)

func (*MsgCreateGroupResponse) XXX_Size

func (m *MsgCreateGroupResponse) XXX_Size() int

func (*MsgCreateGroupResponse) XXX_Unmarshal

func (m *MsgCreateGroupResponse) XXX_Unmarshal(b []byte) error

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 []*types.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"`
}

MsgCreateProposal is the Msg/CreateProposal request type.

func NewMsgCreateProposalRequest

func NewMsgCreateProposalRequest(address string, proposers []string, msgs []sdk.Msg, metadata []byte, exec Exec) (*MsgCreateProposal, error)

NewMsgCreateProposalRequest creates a new MsgCreateProposal.

func (*MsgCreateProposal) Descriptor

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

func (MsgCreateProposal) GetMsgs

func (m MsgCreateProposal) GetMsgs() []sdk.Msg

GetMsgs unpacks m.Msgs Any's into sdk.Msg's

func (MsgCreateProposal) GetSignBytes

func (m MsgCreateProposal) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgCreateProposal) GetSigners

func (m MsgCreateProposal) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgCreateProposal.

func (*MsgCreateProposal) Marshal

func (m *MsgCreateProposal) Marshal() (dAtA []byte, err error)

func (*MsgCreateProposal) MarshalTo

func (m *MsgCreateProposal) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateProposal) MarshalToSizedBuffer

func (m *MsgCreateProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateProposal) ProtoMessage

func (*MsgCreateProposal) ProtoMessage()

func (*MsgCreateProposal) Reset

func (m *MsgCreateProposal) Reset()

func (MsgCreateProposal) Route

func (m MsgCreateProposal) Route() string

Route Implements Msg.

func (*MsgCreateProposal) SetMsgs

func (m *MsgCreateProposal) SetMsgs(msgs []sdk.Msg) error

SetMsgs packs msgs into Any's

func (*MsgCreateProposal) Size

func (m *MsgCreateProposal) Size() (n int)

func (*MsgCreateProposal) String

func (m *MsgCreateProposal) String() string

func (MsgCreateProposal) Type

func (m MsgCreateProposal) Type() string

Type Implements Msg.

func (*MsgCreateProposal) Unmarshal

func (m *MsgCreateProposal) Unmarshal(dAtA []byte) error

func (MsgCreateProposal) UnpackInterfaces

func (m MsgCreateProposal) UnpackInterfaces(unpacker types.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgCreateProposal) ValidateBasic

func (m MsgCreateProposal) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgCreateProposal) XXX_DiscardUnknown

func (m *MsgCreateProposal) XXX_DiscardUnknown()

func (*MsgCreateProposal) XXX_Marshal

func (m *MsgCreateProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateProposal) XXX_Merge

func (m *MsgCreateProposal) XXX_Merge(src proto.Message)

func (*MsgCreateProposal) XXX_Size

func (m *MsgCreateProposal) XXX_Size() int

func (*MsgCreateProposal) XXX_Unmarshal

func (m *MsgCreateProposal) XXX_Unmarshal(b []byte) error

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"`
}

MsgCreateProposalResponse is the Msg/CreateProposal response type.

func (*MsgCreateProposalResponse) Descriptor

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

func (*MsgCreateProposalResponse) GetProposalId

func (m *MsgCreateProposalResponse) GetProposalId() uint64

func (*MsgCreateProposalResponse) Marshal

func (m *MsgCreateProposalResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateProposalResponse) MarshalTo

func (m *MsgCreateProposalResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateProposalResponse) MarshalToSizedBuffer

func (m *MsgCreateProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateProposalResponse) ProtoMessage

func (*MsgCreateProposalResponse) ProtoMessage()

func (*MsgCreateProposalResponse) Reset

func (m *MsgCreateProposalResponse) Reset()

func (*MsgCreateProposalResponse) Size

func (m *MsgCreateProposalResponse) Size() (n int)

func (*MsgCreateProposalResponse) String

func (m *MsgCreateProposalResponse) String() string

func (*MsgCreateProposalResponse) Unmarshal

func (m *MsgCreateProposalResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateProposalResponse) XXX_DiscardUnknown

func (m *MsgCreateProposalResponse) XXX_DiscardUnknown()

func (*MsgCreateProposalResponse) XXX_Marshal

func (m *MsgCreateProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateProposalResponse) XXX_Merge

func (m *MsgCreateProposalResponse) XXX_Merge(src proto.Message)

func (*MsgCreateProposalResponse) XXX_Size

func (m *MsgCreateProposalResponse) XXX_Size() int

func (*MsgCreateProposalResponse) XXX_Unmarshal

func (m *MsgCreateProposalResponse) XXX_Unmarshal(b []byte) error

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"`
}

MsgExec is the Msg/Exec request type.

func (*MsgExec) Descriptor

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

func (*MsgExec) GetProposalId

func (m *MsgExec) GetProposalId() uint64

func (MsgExec) GetSignBytes

func (m MsgExec) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (*MsgExec) GetSigner

func (m *MsgExec) GetSigner() string

func (MsgExec) GetSigners

func (m MsgExec) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgExec.

func (*MsgExec) Marshal

func (m *MsgExec) Marshal() (dAtA []byte, err error)

func (*MsgExec) MarshalTo

func (m *MsgExec) MarshalTo(dAtA []byte) (int, error)

func (*MsgExec) MarshalToSizedBuffer

func (m *MsgExec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgExec) ProtoMessage

func (*MsgExec) ProtoMessage()

func (*MsgExec) Reset

func (m *MsgExec) Reset()

func (MsgExec) Route

func (m MsgExec) Route() string

Route Implements Msg.

func (*MsgExec) Size

func (m *MsgExec) Size() (n int)

func (*MsgExec) String

func (m *MsgExec) String() string

func (MsgExec) Type

func (m MsgExec) Type() string

Type Implements Msg.

func (*MsgExec) Unmarshal

func (m *MsgExec) Unmarshal(dAtA []byte) error

func (MsgExec) ValidateBasic

func (m MsgExec) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgExec) XXX_DiscardUnknown

func (m *MsgExec) XXX_DiscardUnknown()

func (*MsgExec) XXX_Marshal

func (m *MsgExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgExec) XXX_Merge

func (m *MsgExec) XXX_Merge(src proto.Message)

func (*MsgExec) XXX_Size

func (m *MsgExec) XXX_Size() int

func (*MsgExec) XXX_Unmarshal

func (m *MsgExec) XXX_Unmarshal(b []byte) error

type MsgExecResponse

type MsgExecResponse struct {
}

MsgExecResponse is the Msg/Exec request type.

func (*MsgExecResponse) Descriptor

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

func (*MsgExecResponse) Marshal

func (m *MsgExecResponse) Marshal() (dAtA []byte, err error)

func (*MsgExecResponse) MarshalTo

func (m *MsgExecResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgExecResponse) MarshalToSizedBuffer

func (m *MsgExecResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgExecResponse) ProtoMessage

func (*MsgExecResponse) ProtoMessage()

func (*MsgExecResponse) Reset

func (m *MsgExecResponse) Reset()

func (*MsgExecResponse) Size

func (m *MsgExecResponse) Size() (n int)

func (*MsgExecResponse) String

func (m *MsgExecResponse) String() string

func (*MsgExecResponse) Unmarshal

func (m *MsgExecResponse) Unmarshal(dAtA []byte) error

func (*MsgExecResponse) XXX_DiscardUnknown

func (m *MsgExecResponse) XXX_DiscardUnknown()

func (*MsgExecResponse) XXX_Marshal

func (m *MsgExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgExecResponse) XXX_Merge

func (m *MsgExecResponse) XXX_Merge(src proto.Message)

func (*MsgExecResponse) XXX_Size

func (m *MsgExecResponse) XXX_Size() int

func (*MsgExecResponse) XXX_Unmarshal

func (m *MsgExecResponse) XXX_Unmarshal(b []byte) error

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

MsgServer is the server API for Msg service.

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"`
}

MsgUpdateGroupAccountAdmin is the Msg/UpdateGroupAccountAdmin request type.

func (*MsgUpdateGroupAccountAdmin) Descriptor

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

func (*MsgUpdateGroupAccountAdmin) GetAddress

func (m *MsgUpdateGroupAccountAdmin) GetAddress() string

func (*MsgUpdateGroupAccountAdmin) GetAdmin

func (m *MsgUpdateGroupAccountAdmin) GetAdmin() string

func (*MsgUpdateGroupAccountAdmin) GetNewAdmin

func (m *MsgUpdateGroupAccountAdmin) GetNewAdmin() string

func (MsgUpdateGroupAccountAdmin) GetSignBytes

func (m MsgUpdateGroupAccountAdmin) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgUpdateGroupAccountAdmin) GetSigners

func (m MsgUpdateGroupAccountAdmin) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateGroupAccountAdmin.

func (*MsgUpdateGroupAccountAdmin) Marshal

func (m *MsgUpdateGroupAccountAdmin) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGroupAccountAdmin) MarshalTo

func (m *MsgUpdateGroupAccountAdmin) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGroupAccountAdmin) MarshalToSizedBuffer

func (m *MsgUpdateGroupAccountAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGroupAccountAdmin) ProtoMessage

func (*MsgUpdateGroupAccountAdmin) ProtoMessage()

func (*MsgUpdateGroupAccountAdmin) Reset

func (m *MsgUpdateGroupAccountAdmin) Reset()

func (MsgUpdateGroupAccountAdmin) Route

Route Implements Msg.

func (*MsgUpdateGroupAccountAdmin) Size

func (m *MsgUpdateGroupAccountAdmin) Size() (n int)

func (*MsgUpdateGroupAccountAdmin) String

func (m *MsgUpdateGroupAccountAdmin) String() string

func (MsgUpdateGroupAccountAdmin) Type

Type Implements Msg.

func (*MsgUpdateGroupAccountAdmin) Unmarshal

func (m *MsgUpdateGroupAccountAdmin) Unmarshal(dAtA []byte) error

func (MsgUpdateGroupAccountAdmin) ValidateBasic

func (m MsgUpdateGroupAccountAdmin) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgUpdateGroupAccountAdmin) XXX_DiscardUnknown

func (m *MsgUpdateGroupAccountAdmin) XXX_DiscardUnknown()

func (*MsgUpdateGroupAccountAdmin) XXX_Marshal

func (m *MsgUpdateGroupAccountAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateGroupAccountAdmin) XXX_Merge

func (m *MsgUpdateGroupAccountAdmin) XXX_Merge(src proto.Message)

func (*MsgUpdateGroupAccountAdmin) XXX_Size

func (m *MsgUpdateGroupAccountAdmin) XXX_Size() int

func (*MsgUpdateGroupAccountAdmin) XXX_Unmarshal

func (m *MsgUpdateGroupAccountAdmin) XXX_Unmarshal(b []byte) error

type MsgUpdateGroupAccountAdminResponse

type MsgUpdateGroupAccountAdminResponse struct {
}

MsgUpdateGroupAccountAdminResponse is the Msg/UpdateGroupAccountAdmin response type.

func (*MsgUpdateGroupAccountAdminResponse) Descriptor

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

func (*MsgUpdateGroupAccountAdminResponse) Marshal

func (m *MsgUpdateGroupAccountAdminResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGroupAccountAdminResponse) MarshalTo

func (m *MsgUpdateGroupAccountAdminResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGroupAccountAdminResponse) MarshalToSizedBuffer

func (m *MsgUpdateGroupAccountAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGroupAccountAdminResponse) ProtoMessage

func (*MsgUpdateGroupAccountAdminResponse) ProtoMessage()

func (*MsgUpdateGroupAccountAdminResponse) Reset

func (*MsgUpdateGroupAccountAdminResponse) Size

func (*MsgUpdateGroupAccountAdminResponse) String

func (*MsgUpdateGroupAccountAdminResponse) Unmarshal

func (m *MsgUpdateGroupAccountAdminResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateGroupAccountAdminResponse) XXX_DiscardUnknown

func (m *MsgUpdateGroupAccountAdminResponse) XXX_DiscardUnknown()

func (*MsgUpdateGroupAccountAdminResponse) XXX_Marshal

func (m *MsgUpdateGroupAccountAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateGroupAccountAdminResponse) XXX_Merge

func (*MsgUpdateGroupAccountAdminResponse) XXX_Size

func (*MsgUpdateGroupAccountAdminResponse) XXX_Unmarshal

func (m *MsgUpdateGroupAccountAdminResponse) XXX_Unmarshal(b []byte) error

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 *types.Any `protobuf:"bytes,3,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
}

MsgUpdateGroupAccountDecisionPolicy is the Msg/UpdateGroupAccountDecisionPolicy request type.

func NewMsgUpdateGroupAccountDecisionPolicyRequest

func NewMsgUpdateGroupAccountDecisionPolicyRequest(admin sdk.AccAddress, address sdk.AccAddress, decisionPolicy DecisionPolicy) (*MsgUpdateGroupAccountDecisionPolicy, error)

func (*MsgUpdateGroupAccountDecisionPolicy) Descriptor

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

func (*MsgUpdateGroupAccountDecisionPolicy) GetDecisionPolicy

func (m *MsgUpdateGroupAccountDecisionPolicy) GetDecisionPolicy() DecisionPolicy

func (MsgUpdateGroupAccountDecisionPolicy) GetSignBytes

func (m MsgUpdateGroupAccountDecisionPolicy) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgUpdateGroupAccountDecisionPolicy) GetSigners

GetSigners returns the expected signers for a MsgUpdateGroupAccountDecisionPolicy.

func (*MsgUpdateGroupAccountDecisionPolicy) Marshal

func (m *MsgUpdateGroupAccountDecisionPolicy) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGroupAccountDecisionPolicy) MarshalTo

func (m *MsgUpdateGroupAccountDecisionPolicy) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGroupAccountDecisionPolicy) MarshalToSizedBuffer

func (m *MsgUpdateGroupAccountDecisionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGroupAccountDecisionPolicy) ProtoMessage

func (*MsgUpdateGroupAccountDecisionPolicy) ProtoMessage()

func (*MsgUpdateGroupAccountDecisionPolicy) Reset

func (MsgUpdateGroupAccountDecisionPolicy) Route

Route Implements Msg.

func (*MsgUpdateGroupAccountDecisionPolicy) SetDecisionPolicy

func (m *MsgUpdateGroupAccountDecisionPolicy) SetDecisionPolicy(decisionPolicy DecisionPolicy) error

func (*MsgUpdateGroupAccountDecisionPolicy) Size

func (*MsgUpdateGroupAccountDecisionPolicy) String

func (MsgUpdateGroupAccountDecisionPolicy) Type

Type Implements Msg.

func (*MsgUpdateGroupAccountDecisionPolicy) Unmarshal

func (m *MsgUpdateGroupAccountDecisionPolicy) Unmarshal(dAtA []byte) error

func (MsgUpdateGroupAccountDecisionPolicy) UnpackInterfaces

func (m MsgUpdateGroupAccountDecisionPolicy) UnpackInterfaces(unpacker types.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgUpdateGroupAccountDecisionPolicy) ValidateBasic

func (m MsgUpdateGroupAccountDecisionPolicy) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgUpdateGroupAccountDecisionPolicy) XXX_DiscardUnknown

func (m *MsgUpdateGroupAccountDecisionPolicy) XXX_DiscardUnknown()

func (*MsgUpdateGroupAccountDecisionPolicy) XXX_Marshal

func (m *MsgUpdateGroupAccountDecisionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateGroupAccountDecisionPolicy) XXX_Merge

func (*MsgUpdateGroupAccountDecisionPolicy) XXX_Size

func (*MsgUpdateGroupAccountDecisionPolicy) XXX_Unmarshal

func (m *MsgUpdateGroupAccountDecisionPolicy) XXX_Unmarshal(b []byte) error

type MsgUpdateGroupAccountDecisionPolicyResponse

type MsgUpdateGroupAccountDecisionPolicyResponse struct {
}

MsgUpdateGroupAccountDecisionPolicyResponse is the Msg/UpdateGroupAccountDecisionPolicy response type.

func (*MsgUpdateGroupAccountDecisionPolicyResponse) Descriptor

func (*MsgUpdateGroupAccountDecisionPolicyResponse) Marshal

func (m *MsgUpdateGroupAccountDecisionPolicyResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGroupAccountDecisionPolicyResponse) MarshalTo

func (*MsgUpdateGroupAccountDecisionPolicyResponse) MarshalToSizedBuffer

func (m *MsgUpdateGroupAccountDecisionPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGroupAccountDecisionPolicyResponse) ProtoMessage

func (*MsgUpdateGroupAccountDecisionPolicyResponse) Reset

func (*MsgUpdateGroupAccountDecisionPolicyResponse) Size

func (*MsgUpdateGroupAccountDecisionPolicyResponse) String

func (*MsgUpdateGroupAccountDecisionPolicyResponse) Unmarshal

func (*MsgUpdateGroupAccountDecisionPolicyResponse) XXX_DiscardUnknown

func (m *MsgUpdateGroupAccountDecisionPolicyResponse) XXX_DiscardUnknown()

func (*MsgUpdateGroupAccountDecisionPolicyResponse) XXX_Marshal

func (m *MsgUpdateGroupAccountDecisionPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateGroupAccountDecisionPolicyResponse) XXX_Merge

func (*MsgUpdateGroupAccountDecisionPolicyResponse) XXX_Size

func (*MsgUpdateGroupAccountDecisionPolicyResponse) XXX_Unmarshal

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"`
}

MsgUpdateGroupAccountMetadata is the Msg/UpdateGroupAccountMetadata request type.

func (*MsgUpdateGroupAccountMetadata) Descriptor

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

func (*MsgUpdateGroupAccountMetadata) GetAddress

func (m *MsgUpdateGroupAccountMetadata) GetAddress() string

func (*MsgUpdateGroupAccountMetadata) GetAdmin

func (m *MsgUpdateGroupAccountMetadata) GetAdmin() string

func (*MsgUpdateGroupAccountMetadata) GetMetadata

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

func (MsgUpdateGroupAccountMetadata) GetSignBytes

func (m MsgUpdateGroupAccountMetadata) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgUpdateGroupAccountMetadata) GetSigners

func (m MsgUpdateGroupAccountMetadata) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateGroupAccountMetadata.

func (*MsgUpdateGroupAccountMetadata) Marshal

func (m *MsgUpdateGroupAccountMetadata) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGroupAccountMetadata) MarshalTo

func (m *MsgUpdateGroupAccountMetadata) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGroupAccountMetadata) MarshalToSizedBuffer

func (m *MsgUpdateGroupAccountMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGroupAccountMetadata) ProtoMessage

func (*MsgUpdateGroupAccountMetadata) ProtoMessage()

func (*MsgUpdateGroupAccountMetadata) Reset

func (m *MsgUpdateGroupAccountMetadata) Reset()

func (MsgUpdateGroupAccountMetadata) Route

Route Implements Msg.

func (*MsgUpdateGroupAccountMetadata) Size

func (m *MsgUpdateGroupAccountMetadata) Size() (n int)

func (*MsgUpdateGroupAccountMetadata) String

func (MsgUpdateGroupAccountMetadata) Type

Type Implements Msg.

func (*MsgUpdateGroupAccountMetadata) Unmarshal

func (m *MsgUpdateGroupAccountMetadata) Unmarshal(dAtA []byte) error

func (MsgUpdateGroupAccountMetadata) ValidateBasic

func (m MsgUpdateGroupAccountMetadata) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgUpdateGroupAccountMetadata) XXX_DiscardUnknown

func (m *MsgUpdateGroupAccountMetadata) XXX_DiscardUnknown()

func (*MsgUpdateGroupAccountMetadata) XXX_Marshal

func (m *MsgUpdateGroupAccountMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateGroupAccountMetadata) XXX_Merge

func (m *MsgUpdateGroupAccountMetadata) XXX_Merge(src proto.Message)

func (*MsgUpdateGroupAccountMetadata) XXX_Size

func (m *MsgUpdateGroupAccountMetadata) XXX_Size() int

func (*MsgUpdateGroupAccountMetadata) XXX_Unmarshal

func (m *MsgUpdateGroupAccountMetadata) XXX_Unmarshal(b []byte) error

type MsgUpdateGroupAccountMetadataResponse

type MsgUpdateGroupAccountMetadataResponse struct {
}

MsgUpdateGroupAccountMetadataResponse is the Msg/UpdateGroupAccountMetadata response type.

func (*MsgUpdateGroupAccountMetadataResponse) Descriptor

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

func (*MsgUpdateGroupAccountMetadataResponse) Marshal

func (m *MsgUpdateGroupAccountMetadataResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGroupAccountMetadataResponse) MarshalTo

func (m *MsgUpdateGroupAccountMetadataResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGroupAccountMetadataResponse) MarshalToSizedBuffer

func (m *MsgUpdateGroupAccountMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGroupAccountMetadataResponse) ProtoMessage

func (*MsgUpdateGroupAccountMetadataResponse) ProtoMessage()

func (*MsgUpdateGroupAccountMetadataResponse) Reset

func (*MsgUpdateGroupAccountMetadataResponse) Size

func (*MsgUpdateGroupAccountMetadataResponse) String

func (*MsgUpdateGroupAccountMetadataResponse) Unmarshal

func (m *MsgUpdateGroupAccountMetadataResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateGroupAccountMetadataResponse) XXX_DiscardUnknown

func (m *MsgUpdateGroupAccountMetadataResponse) XXX_DiscardUnknown()

func (*MsgUpdateGroupAccountMetadataResponse) XXX_Marshal

func (m *MsgUpdateGroupAccountMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateGroupAccountMetadataResponse) XXX_Merge

func (*MsgUpdateGroupAccountMetadataResponse) XXX_Size

func (*MsgUpdateGroupAccountMetadataResponse) XXX_Unmarshal

func (m *MsgUpdateGroupAccountMetadataResponse) XXX_Unmarshal(b []byte) error

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"`
}

MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type.

func (*MsgUpdateGroupAdmin) Descriptor

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

func (*MsgUpdateGroupAdmin) GetAdmin

func (m *MsgUpdateGroupAdmin) GetAdmin() string

func (*MsgUpdateGroupAdmin) GetGroupID

func (m *MsgUpdateGroupAdmin) GetGroupID() uint64

func (*MsgUpdateGroupAdmin) GetGroupId

func (m *MsgUpdateGroupAdmin) GetGroupId() uint64

func (*MsgUpdateGroupAdmin) GetNewAdmin

func (m *MsgUpdateGroupAdmin) GetNewAdmin() string

func (MsgUpdateGroupAdmin) GetSignBytes

func (m MsgUpdateGroupAdmin) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgUpdateGroupAdmin) GetSigners

func (m MsgUpdateGroupAdmin) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateGroupAdmin.

func (*MsgUpdateGroupAdmin) Marshal

func (m *MsgUpdateGroupAdmin) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGroupAdmin) MarshalTo

func (m *MsgUpdateGroupAdmin) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGroupAdmin) MarshalToSizedBuffer

func (m *MsgUpdateGroupAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGroupAdmin) ProtoMessage

func (*MsgUpdateGroupAdmin) ProtoMessage()

func (*MsgUpdateGroupAdmin) Reset

func (m *MsgUpdateGroupAdmin) Reset()

func (MsgUpdateGroupAdmin) Route

func (m MsgUpdateGroupAdmin) Route() string

Route Implements Msg.

func (*MsgUpdateGroupAdmin) Size

func (m *MsgUpdateGroupAdmin) Size() (n int)

func (*MsgUpdateGroupAdmin) String

func (m *MsgUpdateGroupAdmin) String() string

func (MsgUpdateGroupAdmin) Type

func (m MsgUpdateGroupAdmin) Type() string

Type Implements Msg.

func (*MsgUpdateGroupAdmin) Unmarshal

func (m *MsgUpdateGroupAdmin) Unmarshal(dAtA []byte) error

func (MsgUpdateGroupAdmin) ValidateBasic

func (m MsgUpdateGroupAdmin) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgUpdateGroupAdmin) XXX_DiscardUnknown

func (m *MsgUpdateGroupAdmin) XXX_DiscardUnknown()

func (*MsgUpdateGroupAdmin) XXX_Marshal

func (m *MsgUpdateGroupAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateGroupAdmin) XXX_Merge

func (m *MsgUpdateGroupAdmin) XXX_Merge(src proto.Message)

func (*MsgUpdateGroupAdmin) XXX_Size

func (m *MsgUpdateGroupAdmin) XXX_Size() int

func (*MsgUpdateGroupAdmin) XXX_Unmarshal

func (m *MsgUpdateGroupAdmin) XXX_Unmarshal(b []byte) error

type MsgUpdateGroupAdminResponse

type MsgUpdateGroupAdminResponse struct {
}

MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type.

func (*MsgUpdateGroupAdminResponse) Descriptor

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

func (*MsgUpdateGroupAdminResponse) Marshal

func (m *MsgUpdateGroupAdminResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGroupAdminResponse) MarshalTo

func (m *MsgUpdateGroupAdminResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGroupAdminResponse) MarshalToSizedBuffer

func (m *MsgUpdateGroupAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGroupAdminResponse) ProtoMessage

func (*MsgUpdateGroupAdminResponse) ProtoMessage()

func (*MsgUpdateGroupAdminResponse) Reset

func (m *MsgUpdateGroupAdminResponse) Reset()

func (*MsgUpdateGroupAdminResponse) Size

func (m *MsgUpdateGroupAdminResponse) Size() (n int)

func (*MsgUpdateGroupAdminResponse) String

func (m *MsgUpdateGroupAdminResponse) String() string

func (*MsgUpdateGroupAdminResponse) Unmarshal

func (m *MsgUpdateGroupAdminResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateGroupAdminResponse) XXX_DiscardUnknown

func (m *MsgUpdateGroupAdminResponse) XXX_DiscardUnknown()

func (*MsgUpdateGroupAdminResponse) XXX_Marshal

func (m *MsgUpdateGroupAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateGroupAdminResponse) XXX_Merge

func (m *MsgUpdateGroupAdminResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateGroupAdminResponse) XXX_Size

func (m *MsgUpdateGroupAdminResponse) XXX_Size() int

func (*MsgUpdateGroupAdminResponse) XXX_Unmarshal

func (m *MsgUpdateGroupAdminResponse) XXX_Unmarshal(b []byte) error

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"`
}

MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type.

func (*MsgUpdateGroupMembers) Descriptor

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

func (*MsgUpdateGroupMembers) GetAdmin

func (m *MsgUpdateGroupMembers) GetAdmin() string

func (*MsgUpdateGroupMembers) GetGroupID

func (m *MsgUpdateGroupMembers) GetGroupID() uint64

func (*MsgUpdateGroupMembers) GetGroupId

func (m *MsgUpdateGroupMembers) GetGroupId() uint64

func (*MsgUpdateGroupMembers) GetMemberUpdates

func (m *MsgUpdateGroupMembers) GetMemberUpdates() []Member

func (MsgUpdateGroupMembers) GetSignBytes

func (m MsgUpdateGroupMembers) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgUpdateGroupMembers) GetSigners

func (m MsgUpdateGroupMembers) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateGroupMembers.

func (*MsgUpdateGroupMembers) Marshal

func (m *MsgUpdateGroupMembers) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGroupMembers) MarshalTo

func (m *MsgUpdateGroupMembers) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGroupMembers) MarshalToSizedBuffer

func (m *MsgUpdateGroupMembers) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGroupMembers) ProtoMessage

func (*MsgUpdateGroupMembers) ProtoMessage()

func (*MsgUpdateGroupMembers) Reset

func (m *MsgUpdateGroupMembers) Reset()

func (MsgUpdateGroupMembers) Route

func (m MsgUpdateGroupMembers) Route() string

Route Implements Msg.

func (*MsgUpdateGroupMembers) Size

func (m *MsgUpdateGroupMembers) Size() (n int)

func (*MsgUpdateGroupMembers) String

func (m *MsgUpdateGroupMembers) String() string

func (MsgUpdateGroupMembers) Type

func (m MsgUpdateGroupMembers) Type() string

Type Implements Msg.

func (*MsgUpdateGroupMembers) Unmarshal

func (m *MsgUpdateGroupMembers) Unmarshal(dAtA []byte) error

func (MsgUpdateGroupMembers) ValidateBasic

func (m MsgUpdateGroupMembers) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgUpdateGroupMembers) XXX_DiscardUnknown

func (m *MsgUpdateGroupMembers) XXX_DiscardUnknown()

func (*MsgUpdateGroupMembers) XXX_Marshal

func (m *MsgUpdateGroupMembers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateGroupMembers) XXX_Merge

func (m *MsgUpdateGroupMembers) XXX_Merge(src proto.Message)

func (*MsgUpdateGroupMembers) XXX_Size

func (m *MsgUpdateGroupMembers) XXX_Size() int

func (*MsgUpdateGroupMembers) XXX_Unmarshal

func (m *MsgUpdateGroupMembers) XXX_Unmarshal(b []byte) error

type MsgUpdateGroupMembersResponse

type MsgUpdateGroupMembersResponse struct {
}

MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type.

func (*MsgUpdateGroupMembersResponse) Descriptor

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

func (*MsgUpdateGroupMembersResponse) Marshal

func (m *MsgUpdateGroupMembersResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGroupMembersResponse) MarshalTo

func (m *MsgUpdateGroupMembersResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGroupMembersResponse) MarshalToSizedBuffer

func (m *MsgUpdateGroupMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGroupMembersResponse) ProtoMessage

func (*MsgUpdateGroupMembersResponse) ProtoMessage()

func (*MsgUpdateGroupMembersResponse) Reset

func (m *MsgUpdateGroupMembersResponse) Reset()

func (*MsgUpdateGroupMembersResponse) Size

func (m *MsgUpdateGroupMembersResponse) Size() (n int)

func (*MsgUpdateGroupMembersResponse) String

func (*MsgUpdateGroupMembersResponse) Unmarshal

func (m *MsgUpdateGroupMembersResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateGroupMembersResponse) XXX_DiscardUnknown

func (m *MsgUpdateGroupMembersResponse) XXX_DiscardUnknown()

func (*MsgUpdateGroupMembersResponse) XXX_Marshal

func (m *MsgUpdateGroupMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateGroupMembersResponse) XXX_Merge

func (m *MsgUpdateGroupMembersResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateGroupMembersResponse) XXX_Size

func (m *MsgUpdateGroupMembersResponse) XXX_Size() int

func (*MsgUpdateGroupMembersResponse) XXX_Unmarshal

func (m *MsgUpdateGroupMembersResponse) XXX_Unmarshal(b []byte) error

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"`
}

MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type.

func (*MsgUpdateGroupMetadata) Descriptor

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

func (*MsgUpdateGroupMetadata) GetAdmin

func (m *MsgUpdateGroupMetadata) GetAdmin() string

func (*MsgUpdateGroupMetadata) GetGroupID

func (m *MsgUpdateGroupMetadata) GetGroupID() uint64

func (*MsgUpdateGroupMetadata) GetGroupId

func (m *MsgUpdateGroupMetadata) GetGroupId() uint64

func (*MsgUpdateGroupMetadata) GetMetadata

func (m *MsgUpdateGroupMetadata) GetMetadata() []byte

func (MsgUpdateGroupMetadata) GetSignBytes

func (m MsgUpdateGroupMetadata) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgUpdateGroupMetadata) GetSigners

func (m MsgUpdateGroupMetadata) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateGroupMetadata.

func (*MsgUpdateGroupMetadata) Marshal

func (m *MsgUpdateGroupMetadata) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGroupMetadata) MarshalTo

func (m *MsgUpdateGroupMetadata) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGroupMetadata) MarshalToSizedBuffer

func (m *MsgUpdateGroupMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGroupMetadata) ProtoMessage

func (*MsgUpdateGroupMetadata) ProtoMessage()

func (*MsgUpdateGroupMetadata) Reset

func (m *MsgUpdateGroupMetadata) Reset()

func (MsgUpdateGroupMetadata) Route

func (m MsgUpdateGroupMetadata) Route() string

Route Implements Msg.

func (*MsgUpdateGroupMetadata) Size

func (m *MsgUpdateGroupMetadata) Size() (n int)

func (*MsgUpdateGroupMetadata) String

func (m *MsgUpdateGroupMetadata) String() string

func (MsgUpdateGroupMetadata) Type

func (m MsgUpdateGroupMetadata) Type() string

Type Implements Msg.

func (*MsgUpdateGroupMetadata) Unmarshal

func (m *MsgUpdateGroupMetadata) Unmarshal(dAtA []byte) error

func (MsgUpdateGroupMetadata) ValidateBasic

func (m MsgUpdateGroupMetadata) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgUpdateGroupMetadata) XXX_DiscardUnknown

func (m *MsgUpdateGroupMetadata) XXX_DiscardUnknown()

func (*MsgUpdateGroupMetadata) XXX_Marshal

func (m *MsgUpdateGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateGroupMetadata) XXX_Merge

func (m *MsgUpdateGroupMetadata) XXX_Merge(src proto.Message)

func (*MsgUpdateGroupMetadata) XXX_Size

func (m *MsgUpdateGroupMetadata) XXX_Size() int

func (*MsgUpdateGroupMetadata) XXX_Unmarshal

func (m *MsgUpdateGroupMetadata) XXX_Unmarshal(b []byte) error

type MsgUpdateGroupMetadataResponse

type MsgUpdateGroupMetadataResponse struct {
}

MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type.

func (*MsgUpdateGroupMetadataResponse) Descriptor

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

func (*MsgUpdateGroupMetadataResponse) Marshal

func (m *MsgUpdateGroupMetadataResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateGroupMetadataResponse) MarshalTo

func (m *MsgUpdateGroupMetadataResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateGroupMetadataResponse) MarshalToSizedBuffer

func (m *MsgUpdateGroupMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateGroupMetadataResponse) ProtoMessage

func (*MsgUpdateGroupMetadataResponse) ProtoMessage()

func (*MsgUpdateGroupMetadataResponse) Reset

func (m *MsgUpdateGroupMetadataResponse) Reset()

func (*MsgUpdateGroupMetadataResponse) Size

func (m *MsgUpdateGroupMetadataResponse) Size() (n int)

func (*MsgUpdateGroupMetadataResponse) String

func (*MsgUpdateGroupMetadataResponse) Unmarshal

func (m *MsgUpdateGroupMetadataResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateGroupMetadataResponse) XXX_DiscardUnknown

func (m *MsgUpdateGroupMetadataResponse) XXX_DiscardUnknown()

func (*MsgUpdateGroupMetadataResponse) XXX_Marshal

func (m *MsgUpdateGroupMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateGroupMetadataResponse) XXX_Merge

func (m *MsgUpdateGroupMetadataResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateGroupMetadataResponse) XXX_Size

func (m *MsgUpdateGroupMetadataResponse) XXX_Size() int

func (*MsgUpdateGroupMetadataResponse) XXX_Unmarshal

func (m *MsgUpdateGroupMetadataResponse) XXX_Unmarshal(b []byte) error

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"`
}

MsgVote is the Msg/Vote request type.

func (*MsgVote) Descriptor

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

func (*MsgVote) GetChoice

func (m *MsgVote) GetChoice() Choice

func (*MsgVote) GetExec

func (m *MsgVote) GetExec() Exec

func (*MsgVote) GetMetadata

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

func (*MsgVote) GetProposalId

func (m *MsgVote) GetProposalId() uint64

func (MsgVote) GetSignBytes

func (m MsgVote) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgVote) GetSigners

func (m MsgVote) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgVote.

func (*MsgVote) GetVoter

func (m *MsgVote) GetVoter() string

func (*MsgVote) Marshal

func (m *MsgVote) Marshal() (dAtA []byte, err error)

func (*MsgVote) MarshalTo

func (m *MsgVote) MarshalTo(dAtA []byte) (int, error)

func (*MsgVote) MarshalToSizedBuffer

func (m *MsgVote) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgVote) ProtoMessage

func (*MsgVote) ProtoMessage()

func (*MsgVote) Reset

func (m *MsgVote) Reset()

func (MsgVote) Route

func (m MsgVote) Route() string

Route Implements Msg.

func (*MsgVote) Size

func (m *MsgVote) Size() (n int)

func (*MsgVote) String

func (m *MsgVote) String() string

func (MsgVote) Type

func (m MsgVote) Type() string

Type Implements Msg.

func (*MsgVote) Unmarshal

func (m *MsgVote) Unmarshal(dAtA []byte) error

func (MsgVote) ValidateBasic

func (m MsgVote) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgVote) XXX_DiscardUnknown

func (m *MsgVote) XXX_DiscardUnknown()

func (*MsgVote) XXX_Marshal

func (m *MsgVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgVote) XXX_Merge

func (m *MsgVote) XXX_Merge(src proto.Message)

func (*MsgVote) XXX_Size

func (m *MsgVote) XXX_Size() int

func (*MsgVote) XXX_Unmarshal

func (m *MsgVote) XXX_Unmarshal(b []byte) error

type MsgVoteResponse

type MsgVoteResponse struct {
}

MsgVoteResponse is the Msg/Vote response type.

func (*MsgVoteResponse) Descriptor

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

func (*MsgVoteResponse) Marshal

func (m *MsgVoteResponse) Marshal() (dAtA []byte, err error)

func (*MsgVoteResponse) MarshalTo

func (m *MsgVoteResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgVoteResponse) MarshalToSizedBuffer

func (m *MsgVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgVoteResponse) ProtoMessage

func (*MsgVoteResponse) ProtoMessage()

func (*MsgVoteResponse) Reset

func (m *MsgVoteResponse) Reset()

func (*MsgVoteResponse) Size

func (m *MsgVoteResponse) Size() (n int)

func (*MsgVoteResponse) String

func (m *MsgVoteResponse) String() string

func (*MsgVoteResponse) Unmarshal

func (m *MsgVoteResponse) Unmarshal(dAtA []byte) error

func (*MsgVoteResponse) XXX_DiscardUnknown

func (m *MsgVoteResponse) XXX_DiscardUnknown()

func (*MsgVoteResponse) XXX_Marshal

func (m *MsgVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgVoteResponse) XXX_Merge

func (m *MsgVoteResponse) XXX_Merge(src proto.Message)

func (*MsgVoteResponse) XXX_Size

func (m *MsgVoteResponse) XXX_Size() int

func (*MsgVoteResponse) XXX_Unmarshal

func (m *MsgVoteResponse) XXX_Unmarshal(b []byte) error

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 types.Timestamp `protobuf:"bytes,5,opt,name=submitted_at,json=submittedAt,proto3" json:"submitted_at"`
	// 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"`
	// 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 types.Timestamp `protobuf:"bytes,11,opt,name=timeout,proto3" json:"timeout"`
	// 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 []*types1.Any `protobuf:"bytes,13,rep,name=msgs,proto3" json:"msgs,omitempty"`
}

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

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

func (*Proposal) GetMsgs

func (p *Proposal) GetMsgs() []sdk.Msg

func (*Proposal) Marshal

func (m *Proposal) Marshal() (dAtA []byte, err error)

func (*Proposal) MarshalTo

func (m *Proposal) MarshalTo(dAtA []byte) (int, error)

func (*Proposal) MarshalToSizedBuffer

func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (Proposal) PrimaryKeyFields

func (p Proposal) PrimaryKeyFields() []interface{}

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) SetMsgs

func (p *Proposal) SetMsgs(msgs []sdk.Msg) error

func (*Proposal) Size

func (m *Proposal) Size() (n int)

func (*Proposal) String

func (m *Proposal) String() string

func (*Proposal) Unmarshal

func (m *Proposal) Unmarshal(dAtA []byte) error

func (Proposal) UnpackInterfaces

func (p Proposal) UnpackInterfaces(unpacker types.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (Proposal) ValidateBasic

func (p Proposal) ValidateBasic() error

func (*Proposal) XXX_DiscardUnknown

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal

func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proposal) XXX_Merge

func (m *Proposal) XXX_Merge(src proto.Message)

func (*Proposal) XXX_Size

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal

func (m *Proposal) XXX_Unmarshal(b []byte) error

type ProposalID

type ProposalID uint64

func (ProposalID) Bytes

func (p ProposalID) Bytes() []byte

func (ProposalID) Empty

func (p ProposalID) Empty() bool

func (ProposalID) Uint64

func (p ProposalID) Uint64() uint64

type Proposal_ExecutorResult

type Proposal_ExecutorResult int32

ExecutorResult defines types of proposal executor results.

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

func (Proposal_ExecutorResult) EnumDescriptor

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

func (Proposal_ExecutorResult) String

func (x Proposal_ExecutorResult) String() string

type Proposal_Result

type Proposal_Result int32

Result defines types of proposal results.

const (
	// An empty value is invalid and not allowed
	ProposalResultInvalid Proposal_Result = 0
	// Until a final tally has happened the status is unfinalized
	ProposalResultUnfinalized Proposal_Result = 1
	// Final result of the tally
	ProposalResultAccepted Proposal_Result = 2
	// Final result of the tally
	ProposalResultRejected Proposal_Result = 3
)

func (Proposal_Result) EnumDescriptor

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

func (Proposal_Result) String

func (x Proposal_Result) String() string

type Proposal_Status

type Proposal_Status int32

Status defines proposal statuses.

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

func (Proposal_Status) EnumDescriptor

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

func (Proposal_Status) String

func (x Proposal_Status) String() string

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) 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"`
}

QueryGroupAccountInfoRequest is the Query/GroupAccountInfo request type.

func (*QueryGroupAccountInfoRequest) Descriptor

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

func (*QueryGroupAccountInfoRequest) GetAddress

func (m *QueryGroupAccountInfoRequest) GetAddress() string

func (*QueryGroupAccountInfoRequest) Marshal

func (m *QueryGroupAccountInfoRequest) Marshal() (dAtA []byte, err error)

func (*QueryGroupAccountInfoRequest) MarshalTo

func (m *QueryGroupAccountInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupAccountInfoRequest) MarshalToSizedBuffer

func (m *QueryGroupAccountInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupAccountInfoRequest) ProtoMessage

func (*QueryGroupAccountInfoRequest) ProtoMessage()

func (*QueryGroupAccountInfoRequest) Reset

func (m *QueryGroupAccountInfoRequest) Reset()

func (*QueryGroupAccountInfoRequest) Size

func (m *QueryGroupAccountInfoRequest) Size() (n int)

func (*QueryGroupAccountInfoRequest) String

func (*QueryGroupAccountInfoRequest) Unmarshal

func (m *QueryGroupAccountInfoRequest) Unmarshal(dAtA []byte) error

func (*QueryGroupAccountInfoRequest) XXX_DiscardUnknown

func (m *QueryGroupAccountInfoRequest) XXX_DiscardUnknown()

func (*QueryGroupAccountInfoRequest) XXX_Marshal

func (m *QueryGroupAccountInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupAccountInfoRequest) XXX_Merge

func (m *QueryGroupAccountInfoRequest) XXX_Merge(src proto.Message)

func (*QueryGroupAccountInfoRequest) XXX_Size

func (m *QueryGroupAccountInfoRequest) XXX_Size() int

func (*QueryGroupAccountInfoRequest) XXX_Unmarshal

func (m *QueryGroupAccountInfoRequest) XXX_Unmarshal(b []byte) error

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"`
}

QueryGroupAccountInfoResponse is the Query/GroupAccountInfo response type.

func (*QueryGroupAccountInfoResponse) Descriptor

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

func (*QueryGroupAccountInfoResponse) GetInfo

func (*QueryGroupAccountInfoResponse) Marshal

func (m *QueryGroupAccountInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryGroupAccountInfoResponse) MarshalTo

func (m *QueryGroupAccountInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupAccountInfoResponse) MarshalToSizedBuffer

func (m *QueryGroupAccountInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupAccountInfoResponse) ProtoMessage

func (*QueryGroupAccountInfoResponse) ProtoMessage()

func (*QueryGroupAccountInfoResponse) Reset

func (m *QueryGroupAccountInfoResponse) Reset()

func (*QueryGroupAccountInfoResponse) Size

func (m *QueryGroupAccountInfoResponse) Size() (n int)

func (*QueryGroupAccountInfoResponse) String

func (*QueryGroupAccountInfoResponse) Unmarshal

func (m *QueryGroupAccountInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryGroupAccountInfoResponse) XXX_DiscardUnknown

func (m *QueryGroupAccountInfoResponse) XXX_DiscardUnknown()

func (*QueryGroupAccountInfoResponse) XXX_Marshal

func (m *QueryGroupAccountInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupAccountInfoResponse) XXX_Merge

func (m *QueryGroupAccountInfoResponse) XXX_Merge(src proto.Message)

func (*QueryGroupAccountInfoResponse) XXX_Size

func (m *QueryGroupAccountInfoResponse) XXX_Size() int

func (*QueryGroupAccountInfoResponse) XXX_Unmarshal

func (m *QueryGroupAccountInfoResponse) XXX_Unmarshal(b []byte) error

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 *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGroupAccountsByAdminRequest is the Query/GroupAccountsByAdmin request type.

func (*QueryGroupAccountsByAdminRequest) Descriptor

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

func (*QueryGroupAccountsByAdminRequest) GetAdmin

func (*QueryGroupAccountsByAdminRequest) GetPagination

func (*QueryGroupAccountsByAdminRequest) Marshal

func (m *QueryGroupAccountsByAdminRequest) Marshal() (dAtA []byte, err error)

func (*QueryGroupAccountsByAdminRequest) MarshalTo

func (m *QueryGroupAccountsByAdminRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupAccountsByAdminRequest) MarshalToSizedBuffer

func (m *QueryGroupAccountsByAdminRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupAccountsByAdminRequest) ProtoMessage

func (*QueryGroupAccountsByAdminRequest) ProtoMessage()

func (*QueryGroupAccountsByAdminRequest) Reset

func (*QueryGroupAccountsByAdminRequest) Size

func (m *QueryGroupAccountsByAdminRequest) Size() (n int)

func (*QueryGroupAccountsByAdminRequest) String

func (*QueryGroupAccountsByAdminRequest) Unmarshal

func (m *QueryGroupAccountsByAdminRequest) Unmarshal(dAtA []byte) error

func (*QueryGroupAccountsByAdminRequest) XXX_DiscardUnknown

func (m *QueryGroupAccountsByAdminRequest) XXX_DiscardUnknown()

func (*QueryGroupAccountsByAdminRequest) XXX_Marshal

func (m *QueryGroupAccountsByAdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupAccountsByAdminRequest) XXX_Merge

func (*QueryGroupAccountsByAdminRequest) XXX_Size

func (m *QueryGroupAccountsByAdminRequest) XXX_Size() int

func (*QueryGroupAccountsByAdminRequest) XXX_Unmarshal

func (m *QueryGroupAccountsByAdminRequest) XXX_Unmarshal(b []byte) error

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 *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGroupAccountsByAdminResponse is the Query/GroupAccountsByAdmin response type.

func (*QueryGroupAccountsByAdminResponse) Descriptor

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

func (*QueryGroupAccountsByAdminResponse) GetGroupAccounts

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

func (*QueryGroupAccountsByAdminResponse) GetPagination

func (*QueryGroupAccountsByAdminResponse) Marshal

func (m *QueryGroupAccountsByAdminResponse) Marshal() (dAtA []byte, err error)

func (*QueryGroupAccountsByAdminResponse) MarshalTo

func (m *QueryGroupAccountsByAdminResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupAccountsByAdminResponse) MarshalToSizedBuffer

func (m *QueryGroupAccountsByAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupAccountsByAdminResponse) ProtoMessage

func (*QueryGroupAccountsByAdminResponse) ProtoMessage()

func (*QueryGroupAccountsByAdminResponse) Reset

func (*QueryGroupAccountsByAdminResponse) Size

func (m *QueryGroupAccountsByAdminResponse) Size() (n int)

func (*QueryGroupAccountsByAdminResponse) String

func (*QueryGroupAccountsByAdminResponse) Unmarshal

func (m *QueryGroupAccountsByAdminResponse) Unmarshal(dAtA []byte) error

func (QueryGroupAccountsByAdminResponse) UnpackInterfaces

func (q QueryGroupAccountsByAdminResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*QueryGroupAccountsByAdminResponse) XXX_DiscardUnknown

func (m *QueryGroupAccountsByAdminResponse) XXX_DiscardUnknown()

func (*QueryGroupAccountsByAdminResponse) XXX_Marshal

func (m *QueryGroupAccountsByAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupAccountsByAdminResponse) XXX_Merge

func (*QueryGroupAccountsByAdminResponse) XXX_Size

func (m *QueryGroupAccountsByAdminResponse) XXX_Size() int

func (*QueryGroupAccountsByAdminResponse) XXX_Unmarshal

func (m *QueryGroupAccountsByAdminResponse) XXX_Unmarshal(b []byte) error

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 *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGroupAccountsByGroupRequest is the Query/GroupAccountsByGroup request type.

func (*QueryGroupAccountsByGroupRequest) Descriptor

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

func (*QueryGroupAccountsByGroupRequest) GetGroupId

func (m *QueryGroupAccountsByGroupRequest) GetGroupId() uint64

func (*QueryGroupAccountsByGroupRequest) GetPagination

func (*QueryGroupAccountsByGroupRequest) Marshal

func (m *QueryGroupAccountsByGroupRequest) Marshal() (dAtA []byte, err error)

func (*QueryGroupAccountsByGroupRequest) MarshalTo

func (m *QueryGroupAccountsByGroupRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupAccountsByGroupRequest) MarshalToSizedBuffer

func (m *QueryGroupAccountsByGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupAccountsByGroupRequest) ProtoMessage

func (*QueryGroupAccountsByGroupRequest) ProtoMessage()

func (*QueryGroupAccountsByGroupRequest) Reset

func (*QueryGroupAccountsByGroupRequest) Size

func (m *QueryGroupAccountsByGroupRequest) Size() (n int)

func (*QueryGroupAccountsByGroupRequest) String

func (*QueryGroupAccountsByGroupRequest) Unmarshal

func (m *QueryGroupAccountsByGroupRequest) Unmarshal(dAtA []byte) error

func (*QueryGroupAccountsByGroupRequest) XXX_DiscardUnknown

func (m *QueryGroupAccountsByGroupRequest) XXX_DiscardUnknown()

func (*QueryGroupAccountsByGroupRequest) XXX_Marshal

func (m *QueryGroupAccountsByGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupAccountsByGroupRequest) XXX_Merge

func (*QueryGroupAccountsByGroupRequest) XXX_Size

func (m *QueryGroupAccountsByGroupRequest) XXX_Size() int

func (*QueryGroupAccountsByGroupRequest) XXX_Unmarshal

func (m *QueryGroupAccountsByGroupRequest) XXX_Unmarshal(b []byte) error

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 *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGroupAccountsByGroupResponse is the Query/GroupAccountsByGroup response type.

func (*QueryGroupAccountsByGroupResponse) Descriptor

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

func (*QueryGroupAccountsByGroupResponse) GetGroupAccounts

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

func (*QueryGroupAccountsByGroupResponse) GetPagination

func (*QueryGroupAccountsByGroupResponse) Marshal

func (m *QueryGroupAccountsByGroupResponse) Marshal() (dAtA []byte, err error)

func (*QueryGroupAccountsByGroupResponse) MarshalTo

func (m *QueryGroupAccountsByGroupResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupAccountsByGroupResponse) MarshalToSizedBuffer

func (m *QueryGroupAccountsByGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupAccountsByGroupResponse) ProtoMessage

func (*QueryGroupAccountsByGroupResponse) ProtoMessage()

func (*QueryGroupAccountsByGroupResponse) Reset

func (*QueryGroupAccountsByGroupResponse) Size

func (m *QueryGroupAccountsByGroupResponse) Size() (n int)

func (*QueryGroupAccountsByGroupResponse) String

func (*QueryGroupAccountsByGroupResponse) Unmarshal

func (m *QueryGroupAccountsByGroupResponse) Unmarshal(dAtA []byte) error

func (QueryGroupAccountsByGroupResponse) UnpackInterfaces

func (q QueryGroupAccountsByGroupResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*QueryGroupAccountsByGroupResponse) XXX_DiscardUnknown

func (m *QueryGroupAccountsByGroupResponse) XXX_DiscardUnknown()

func (*QueryGroupAccountsByGroupResponse) XXX_Marshal

func (m *QueryGroupAccountsByGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupAccountsByGroupResponse) XXX_Merge

func (*QueryGroupAccountsByGroupResponse) XXX_Size

func (m *QueryGroupAccountsByGroupResponse) XXX_Size() int

func (*QueryGroupAccountsByGroupResponse) XXX_Unmarshal

func (m *QueryGroupAccountsByGroupResponse) XXX_Unmarshal(b []byte) error

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"`
}

QueryGroupInfoRequest is the Query/GroupInfo request type.

func (*QueryGroupInfoRequest) Descriptor

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

func (*QueryGroupInfoRequest) GetGroupId

func (m *QueryGroupInfoRequest) GetGroupId() uint64

func (*QueryGroupInfoRequest) Marshal

func (m *QueryGroupInfoRequest) Marshal() (dAtA []byte, err error)

func (*QueryGroupInfoRequest) MarshalTo

func (m *QueryGroupInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupInfoRequest) MarshalToSizedBuffer

func (m *QueryGroupInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupInfoRequest) ProtoMessage

func (*QueryGroupInfoRequest) ProtoMessage()

func (*QueryGroupInfoRequest) Reset

func (m *QueryGroupInfoRequest) Reset()

func (*QueryGroupInfoRequest) Size

func (m *QueryGroupInfoRequest) Size() (n int)

func (*QueryGroupInfoRequest) String

func (m *QueryGroupInfoRequest) String() string

func (*QueryGroupInfoRequest) Unmarshal

func (m *QueryGroupInfoRequest) Unmarshal(dAtA []byte) error

func (*QueryGroupInfoRequest) XXX_DiscardUnknown

func (m *QueryGroupInfoRequest) XXX_DiscardUnknown()

func (*QueryGroupInfoRequest) XXX_Marshal

func (m *QueryGroupInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupInfoRequest) XXX_Merge

func (m *QueryGroupInfoRequest) XXX_Merge(src proto.Message)

func (*QueryGroupInfoRequest) XXX_Size

func (m *QueryGroupInfoRequest) XXX_Size() int

func (*QueryGroupInfoRequest) XXX_Unmarshal

func (m *QueryGroupInfoRequest) XXX_Unmarshal(b []byte) error

type QueryGroupInfoResponse

type QueryGroupInfoResponse struct {
	// info is the GroupInfo for the group.
	Info *GroupInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
}

QueryGroupInfoResponse is the Query/GroupInfo response type.

func (*QueryGroupInfoResponse) Descriptor

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

func (*QueryGroupInfoResponse) GetInfo

func (m *QueryGroupInfoResponse) GetInfo() *GroupInfo

func (*QueryGroupInfoResponse) Marshal

func (m *QueryGroupInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryGroupInfoResponse) MarshalTo

func (m *QueryGroupInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupInfoResponse) MarshalToSizedBuffer

func (m *QueryGroupInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupInfoResponse) ProtoMessage

func (*QueryGroupInfoResponse) ProtoMessage()

func (*QueryGroupInfoResponse) Reset

func (m *QueryGroupInfoResponse) Reset()

func (*QueryGroupInfoResponse) Size

func (m *QueryGroupInfoResponse) Size() (n int)

func (*QueryGroupInfoResponse) String

func (m *QueryGroupInfoResponse) String() string

func (*QueryGroupInfoResponse) Unmarshal

func (m *QueryGroupInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryGroupInfoResponse) XXX_DiscardUnknown

func (m *QueryGroupInfoResponse) XXX_DiscardUnknown()

func (*QueryGroupInfoResponse) XXX_Marshal

func (m *QueryGroupInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupInfoResponse) XXX_Merge

func (m *QueryGroupInfoResponse) XXX_Merge(src proto.Message)

func (*QueryGroupInfoResponse) XXX_Size

func (m *QueryGroupInfoResponse) XXX_Size() int

func (*QueryGroupInfoResponse) XXX_Unmarshal

func (m *QueryGroupInfoResponse) XXX_Unmarshal(b []byte) error

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 *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGroupMembersRequest is the Query/GroupMembersRequest request type.

func (*QueryGroupMembersRequest) Descriptor

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

func (*QueryGroupMembersRequest) GetGroupId

func (m *QueryGroupMembersRequest) GetGroupId() uint64

func (*QueryGroupMembersRequest) GetPagination

func (m *QueryGroupMembersRequest) GetPagination() *query.PageRequest

func (*QueryGroupMembersRequest) Marshal

func (m *QueryGroupMembersRequest) Marshal() (dAtA []byte, err error)

func (*QueryGroupMembersRequest) MarshalTo

func (m *QueryGroupMembersRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupMembersRequest) MarshalToSizedBuffer

func (m *QueryGroupMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupMembersRequest) ProtoMessage

func (*QueryGroupMembersRequest) ProtoMessage()

func (*QueryGroupMembersRequest) Reset

func (m *QueryGroupMembersRequest) Reset()

func (*QueryGroupMembersRequest) Size

func (m *QueryGroupMembersRequest) Size() (n int)

func (*QueryGroupMembersRequest) String

func (m *QueryGroupMembersRequest) String() string

func (*QueryGroupMembersRequest) Unmarshal

func (m *QueryGroupMembersRequest) Unmarshal(dAtA []byte) error

func (*QueryGroupMembersRequest) XXX_DiscardUnknown

func (m *QueryGroupMembersRequest) XXX_DiscardUnknown()

func (*QueryGroupMembersRequest) XXX_Marshal

func (m *QueryGroupMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupMembersRequest) XXX_Merge

func (m *QueryGroupMembersRequest) XXX_Merge(src proto.Message)

func (*QueryGroupMembersRequest) XXX_Size

func (m *QueryGroupMembersRequest) XXX_Size() int

func (*QueryGroupMembersRequest) XXX_Unmarshal

func (m *QueryGroupMembersRequest) XXX_Unmarshal(b []byte) error

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 *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGroupMembersResponse is the Query/GroupMembersResponse response type.

func (*QueryGroupMembersResponse) Descriptor

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

func (*QueryGroupMembersResponse) GetMembers

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

func (*QueryGroupMembersResponse) GetPagination

func (m *QueryGroupMembersResponse) GetPagination() *query.PageResponse

func (*QueryGroupMembersResponse) Marshal

func (m *QueryGroupMembersResponse) Marshal() (dAtA []byte, err error)

func (*QueryGroupMembersResponse) MarshalTo

func (m *QueryGroupMembersResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupMembersResponse) MarshalToSizedBuffer

func (m *QueryGroupMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupMembersResponse) ProtoMessage

func (*QueryGroupMembersResponse) ProtoMessage()

func (*QueryGroupMembersResponse) Reset

func (m *QueryGroupMembersResponse) Reset()

func (*QueryGroupMembersResponse) Size

func (m *QueryGroupMembersResponse) Size() (n int)

func (*QueryGroupMembersResponse) String

func (m *QueryGroupMembersResponse) String() string

func (*QueryGroupMembersResponse) Unmarshal

func (m *QueryGroupMembersResponse) Unmarshal(dAtA []byte) error

func (*QueryGroupMembersResponse) XXX_DiscardUnknown

func (m *QueryGroupMembersResponse) XXX_DiscardUnknown()

func (*QueryGroupMembersResponse) XXX_Marshal

func (m *QueryGroupMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupMembersResponse) XXX_Merge

func (m *QueryGroupMembersResponse) XXX_Merge(src proto.Message)

func (*QueryGroupMembersResponse) XXX_Size

func (m *QueryGroupMembersResponse) XXX_Size() int

func (*QueryGroupMembersResponse) XXX_Unmarshal

func (m *QueryGroupMembersResponse) XXX_Unmarshal(b []byte) error

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 *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGroupsByAdminRequest is the Query/GroupsByAdminRequest request type.

func (*QueryGroupsByAdminRequest) Descriptor

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

func (*QueryGroupsByAdminRequest) GetAdmin

func (m *QueryGroupsByAdminRequest) GetAdmin() string

func (*QueryGroupsByAdminRequest) GetPagination

func (m *QueryGroupsByAdminRequest) GetPagination() *query.PageRequest

func (*QueryGroupsByAdminRequest) Marshal

func (m *QueryGroupsByAdminRequest) Marshal() (dAtA []byte, err error)

func (*QueryGroupsByAdminRequest) MarshalTo

func (m *QueryGroupsByAdminRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupsByAdminRequest) MarshalToSizedBuffer

func (m *QueryGroupsByAdminRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupsByAdminRequest) ProtoMessage

func (*QueryGroupsByAdminRequest) ProtoMessage()

func (*QueryGroupsByAdminRequest) Reset

func (m *QueryGroupsByAdminRequest) Reset()

func (*QueryGroupsByAdminRequest) Size

func (m *QueryGroupsByAdminRequest) Size() (n int)

func (*QueryGroupsByAdminRequest) String

func (m *QueryGroupsByAdminRequest) String() string

func (*QueryGroupsByAdminRequest) Unmarshal

func (m *QueryGroupsByAdminRequest) Unmarshal(dAtA []byte) error

func (*QueryGroupsByAdminRequest) XXX_DiscardUnknown

func (m *QueryGroupsByAdminRequest) XXX_DiscardUnknown()

func (*QueryGroupsByAdminRequest) XXX_Marshal

func (m *QueryGroupsByAdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupsByAdminRequest) XXX_Merge

func (m *QueryGroupsByAdminRequest) XXX_Merge(src proto.Message)

func (*QueryGroupsByAdminRequest) XXX_Size

func (m *QueryGroupsByAdminRequest) XXX_Size() int

func (*QueryGroupsByAdminRequest) XXX_Unmarshal

func (m *QueryGroupsByAdminRequest) XXX_Unmarshal(b []byte) error

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 *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type.

func (*QueryGroupsByAdminResponse) Descriptor

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

func (*QueryGroupsByAdminResponse) GetGroups

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

func (*QueryGroupsByAdminResponse) GetPagination

func (m *QueryGroupsByAdminResponse) GetPagination() *query.PageResponse

func (*QueryGroupsByAdminResponse) Marshal

func (m *QueryGroupsByAdminResponse) Marshal() (dAtA []byte, err error)

func (*QueryGroupsByAdminResponse) MarshalTo

func (m *QueryGroupsByAdminResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupsByAdminResponse) MarshalToSizedBuffer

func (m *QueryGroupsByAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupsByAdminResponse) ProtoMessage

func (*QueryGroupsByAdminResponse) ProtoMessage()

func (*QueryGroupsByAdminResponse) Reset

func (m *QueryGroupsByAdminResponse) Reset()

func (*QueryGroupsByAdminResponse) Size

func (m *QueryGroupsByAdminResponse) Size() (n int)

func (*QueryGroupsByAdminResponse) String

func (m *QueryGroupsByAdminResponse) String() string

func (*QueryGroupsByAdminResponse) Unmarshal

func (m *QueryGroupsByAdminResponse) Unmarshal(dAtA []byte) error

func (*QueryGroupsByAdminResponse) XXX_DiscardUnknown

func (m *QueryGroupsByAdminResponse) XXX_DiscardUnknown()

func (*QueryGroupsByAdminResponse) XXX_Marshal

func (m *QueryGroupsByAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupsByAdminResponse) XXX_Merge

func (m *QueryGroupsByAdminResponse) XXX_Merge(src proto.Message)

func (*QueryGroupsByAdminResponse) XXX_Size

func (m *QueryGroupsByAdminResponse) XXX_Size() int

func (*QueryGroupsByAdminResponse) XXX_Unmarshal

func (m *QueryGroupsByAdminResponse) XXX_Unmarshal(b []byte) error

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"`
}

QueryProposalRequest is the Query/Proposal request type.

func (*QueryProposalRequest) Descriptor

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

func (*QueryProposalRequest) GetProposalId

func (m *QueryProposalRequest) GetProposalId() uint64

func (*QueryProposalRequest) Marshal

func (m *QueryProposalRequest) Marshal() (dAtA []byte, err error)

func (*QueryProposalRequest) MarshalTo

func (m *QueryProposalRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryProposalRequest) MarshalToSizedBuffer

func (m *QueryProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryProposalRequest) ProtoMessage

func (*QueryProposalRequest) ProtoMessage()

func (*QueryProposalRequest) Reset

func (m *QueryProposalRequest) Reset()

func (*QueryProposalRequest) Size

func (m *QueryProposalRequest) Size() (n int)

func (*QueryProposalRequest) String

func (m *QueryProposalRequest) String() string

func (*QueryProposalRequest) Unmarshal

func (m *QueryProposalRequest) Unmarshal(dAtA []byte) error

func (*QueryProposalRequest) XXX_DiscardUnknown

func (m *QueryProposalRequest) XXX_DiscardUnknown()

func (*QueryProposalRequest) XXX_Marshal

func (m *QueryProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryProposalRequest) XXX_Merge

func (m *QueryProposalRequest) XXX_Merge(src proto.Message)

func (*QueryProposalRequest) XXX_Size

func (m *QueryProposalRequest) XXX_Size() int

func (*QueryProposalRequest) XXX_Unmarshal

func (m *QueryProposalRequest) XXX_Unmarshal(b []byte) error

type QueryProposalResponse

type QueryProposalResponse struct {
	// proposal is the proposal info.
	Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
}

QueryProposalResponse is the Query/Proposal response type.

func (*QueryProposalResponse) Descriptor

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

func (*QueryProposalResponse) GetProposal

func (m *QueryProposalResponse) GetProposal() *Proposal

func (*QueryProposalResponse) Marshal

func (m *QueryProposalResponse) Marshal() (dAtA []byte, err error)

func (*QueryProposalResponse) MarshalTo

func (m *QueryProposalResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryProposalResponse) MarshalToSizedBuffer

func (m *QueryProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryProposalResponse) ProtoMessage

func (*QueryProposalResponse) ProtoMessage()

func (*QueryProposalResponse) Reset

func (m *QueryProposalResponse) Reset()

func (*QueryProposalResponse) Size

func (m *QueryProposalResponse) Size() (n int)

func (*QueryProposalResponse) String

func (m *QueryProposalResponse) String() string

func (*QueryProposalResponse) Unmarshal

func (m *QueryProposalResponse) Unmarshal(dAtA []byte) error

func (*QueryProposalResponse) XXX_DiscardUnknown

func (m *QueryProposalResponse) XXX_DiscardUnknown()

func (*QueryProposalResponse) XXX_Marshal

func (m *QueryProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryProposalResponse) XXX_Merge

func (m *QueryProposalResponse) XXX_Merge(src proto.Message)

func (*QueryProposalResponse) XXX_Size

func (m *QueryProposalResponse) XXX_Size() int

func (*QueryProposalResponse) XXX_Unmarshal

func (m *QueryProposalResponse) XXX_Unmarshal(b []byte) error

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 *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProposalsByGroupAccountRequest is the Query/ProposalByGroupAccount request type.

func (*QueryProposalsByGroupAccountRequest) Descriptor

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

func (*QueryProposalsByGroupAccountRequest) GetAddress

func (*QueryProposalsByGroupAccountRequest) GetPagination

func (*QueryProposalsByGroupAccountRequest) Marshal

func (m *QueryProposalsByGroupAccountRequest) Marshal() (dAtA []byte, err error)

func (*QueryProposalsByGroupAccountRequest) MarshalTo

func (m *QueryProposalsByGroupAccountRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryProposalsByGroupAccountRequest) MarshalToSizedBuffer

func (m *QueryProposalsByGroupAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryProposalsByGroupAccountRequest) ProtoMessage

func (*QueryProposalsByGroupAccountRequest) ProtoMessage()

func (*QueryProposalsByGroupAccountRequest) Reset

func (*QueryProposalsByGroupAccountRequest) Size

func (*QueryProposalsByGroupAccountRequest) String

func (*QueryProposalsByGroupAccountRequest) Unmarshal

func (m *QueryProposalsByGroupAccountRequest) Unmarshal(dAtA []byte) error

func (*QueryProposalsByGroupAccountRequest) XXX_DiscardUnknown

func (m *QueryProposalsByGroupAccountRequest) XXX_DiscardUnknown()

func (*QueryProposalsByGroupAccountRequest) XXX_Marshal

func (m *QueryProposalsByGroupAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryProposalsByGroupAccountRequest) XXX_Merge

func (*QueryProposalsByGroupAccountRequest) XXX_Size

func (*QueryProposalsByGroupAccountRequest) XXX_Unmarshal

func (m *QueryProposalsByGroupAccountRequest) XXX_Unmarshal(b []byte) error

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 *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProposalsByGroupAccountResponse is the Query/ProposalByGroupAccount response type.

func (*QueryProposalsByGroupAccountResponse) Descriptor

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

func (*QueryProposalsByGroupAccountResponse) GetPagination

func (*QueryProposalsByGroupAccountResponse) GetProposals

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

func (*QueryProposalsByGroupAccountResponse) Marshal

func (m *QueryProposalsByGroupAccountResponse) Marshal() (dAtA []byte, err error)

func (*QueryProposalsByGroupAccountResponse) MarshalTo

func (m *QueryProposalsByGroupAccountResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryProposalsByGroupAccountResponse) MarshalToSizedBuffer

func (m *QueryProposalsByGroupAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryProposalsByGroupAccountResponse) ProtoMessage

func (*QueryProposalsByGroupAccountResponse) ProtoMessage()

func (*QueryProposalsByGroupAccountResponse) Reset

func (*QueryProposalsByGroupAccountResponse) Size

func (*QueryProposalsByGroupAccountResponse) String

func (*QueryProposalsByGroupAccountResponse) Unmarshal

func (m *QueryProposalsByGroupAccountResponse) Unmarshal(dAtA []byte) error

func (*QueryProposalsByGroupAccountResponse) XXX_DiscardUnknown

func (m *QueryProposalsByGroupAccountResponse) XXX_DiscardUnknown()

func (*QueryProposalsByGroupAccountResponse) XXX_Marshal

func (m *QueryProposalsByGroupAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryProposalsByGroupAccountResponse) XXX_Merge

func (*QueryProposalsByGroupAccountResponse) XXX_Size

func (*QueryProposalsByGroupAccountResponse) XXX_Unmarshal

func (m *QueryProposalsByGroupAccountResponse) XXX_Unmarshal(b []byte) error

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

QueryServer is the server API for Query service.

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"`
}

QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter request type.

func (*QueryVoteByProposalVoterRequest) Descriptor

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

func (*QueryVoteByProposalVoterRequest) GetProposalId

func (m *QueryVoteByProposalVoterRequest) GetProposalId() uint64

func (*QueryVoteByProposalVoterRequest) GetVoter

func (*QueryVoteByProposalVoterRequest) Marshal

func (m *QueryVoteByProposalVoterRequest) Marshal() (dAtA []byte, err error)

func (*QueryVoteByProposalVoterRequest) MarshalTo

func (m *QueryVoteByProposalVoterRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryVoteByProposalVoterRequest) MarshalToSizedBuffer

func (m *QueryVoteByProposalVoterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryVoteByProposalVoterRequest) ProtoMessage

func (*QueryVoteByProposalVoterRequest) ProtoMessage()

func (*QueryVoteByProposalVoterRequest) Reset

func (*QueryVoteByProposalVoterRequest) Size

func (m *QueryVoteByProposalVoterRequest) Size() (n int)

func (*QueryVoteByProposalVoterRequest) String

func (*QueryVoteByProposalVoterRequest) Unmarshal

func (m *QueryVoteByProposalVoterRequest) Unmarshal(dAtA []byte) error

func (*QueryVoteByProposalVoterRequest) XXX_DiscardUnknown

func (m *QueryVoteByProposalVoterRequest) XXX_DiscardUnknown()

func (*QueryVoteByProposalVoterRequest) XXX_Marshal

func (m *QueryVoteByProposalVoterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryVoteByProposalVoterRequest) XXX_Merge

func (m *QueryVoteByProposalVoterRequest) XXX_Merge(src proto.Message)

func (*QueryVoteByProposalVoterRequest) XXX_Size

func (m *QueryVoteByProposalVoterRequest) XXX_Size() int

func (*QueryVoteByProposalVoterRequest) XXX_Unmarshal

func (m *QueryVoteByProposalVoterRequest) XXX_Unmarshal(b []byte) error

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"`
}

QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type.

func (*QueryVoteByProposalVoterResponse) Descriptor

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

func (*QueryVoteByProposalVoterResponse) GetVote

func (m *QueryVoteByProposalVoterResponse) GetVote() *Vote

func (*QueryVoteByProposalVoterResponse) Marshal

func (m *QueryVoteByProposalVoterResponse) Marshal() (dAtA []byte, err error)

func (*QueryVoteByProposalVoterResponse) MarshalTo

func (m *QueryVoteByProposalVoterResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryVoteByProposalVoterResponse) MarshalToSizedBuffer

func (m *QueryVoteByProposalVoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryVoteByProposalVoterResponse) ProtoMessage

func (*QueryVoteByProposalVoterResponse) ProtoMessage()

func (*QueryVoteByProposalVoterResponse) Reset

func (*QueryVoteByProposalVoterResponse) Size

func (m *QueryVoteByProposalVoterResponse) Size() (n int)

func (*QueryVoteByProposalVoterResponse) String

func (*QueryVoteByProposalVoterResponse) Unmarshal

func (m *QueryVoteByProposalVoterResponse) Unmarshal(dAtA []byte) error

func (*QueryVoteByProposalVoterResponse) XXX_DiscardUnknown

func (m *QueryVoteByProposalVoterResponse) XXX_DiscardUnknown()

func (*QueryVoteByProposalVoterResponse) XXX_Marshal

func (m *QueryVoteByProposalVoterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryVoteByProposalVoterResponse) XXX_Merge

func (*QueryVoteByProposalVoterResponse) XXX_Size

func (m *QueryVoteByProposalVoterResponse) XXX_Size() int

func (*QueryVoteByProposalVoterResponse) XXX_Unmarshal

func (m *QueryVoteByProposalVoterResponse) XXX_Unmarshal(b []byte) error

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 *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryVotesByProposalResponse is the Query/VotesByProposal request type.

func (*QueryVotesByProposalRequest) Descriptor

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

func (*QueryVotesByProposalRequest) GetPagination

func (m *QueryVotesByProposalRequest) GetPagination() *query.PageRequest

func (*QueryVotesByProposalRequest) GetProposalId

func (m *QueryVotesByProposalRequest) GetProposalId() uint64

func (*QueryVotesByProposalRequest) Marshal

func (m *QueryVotesByProposalRequest) Marshal() (dAtA []byte, err error)

func (*QueryVotesByProposalRequest) MarshalTo

func (m *QueryVotesByProposalRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryVotesByProposalRequest) MarshalToSizedBuffer

func (m *QueryVotesByProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryVotesByProposalRequest) ProtoMessage

func (*QueryVotesByProposalRequest) ProtoMessage()

func (*QueryVotesByProposalRequest) Reset

func (m *QueryVotesByProposalRequest) Reset()

func (*QueryVotesByProposalRequest) Size

func (m *QueryVotesByProposalRequest) Size() (n int)

func (*QueryVotesByProposalRequest) String

func (m *QueryVotesByProposalRequest) String() string

func (*QueryVotesByProposalRequest) Unmarshal

func (m *QueryVotesByProposalRequest) Unmarshal(dAtA []byte) error

func (*QueryVotesByProposalRequest) XXX_DiscardUnknown

func (m *QueryVotesByProposalRequest) XXX_DiscardUnknown()

func (*QueryVotesByProposalRequest) XXX_Marshal

func (m *QueryVotesByProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryVotesByProposalRequest) XXX_Merge

func (m *QueryVotesByProposalRequest) XXX_Merge(src proto.Message)

func (*QueryVotesByProposalRequest) XXX_Size

func (m *QueryVotesByProposalRequest) XXX_Size() int

func (*QueryVotesByProposalRequest) XXX_Unmarshal

func (m *QueryVotesByProposalRequest) XXX_Unmarshal(b []byte) error

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 *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryVotesByProposalResponse is the Query/VotesByProposal response type.

func (*QueryVotesByProposalResponse) Descriptor

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

func (*QueryVotesByProposalResponse) GetPagination

func (m *QueryVotesByProposalResponse) GetPagination() *query.PageResponse

func (*QueryVotesByProposalResponse) GetVotes

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

func (*QueryVotesByProposalResponse) Marshal

func (m *QueryVotesByProposalResponse) Marshal() (dAtA []byte, err error)

func (*QueryVotesByProposalResponse) MarshalTo

func (m *QueryVotesByProposalResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryVotesByProposalResponse) MarshalToSizedBuffer

func (m *QueryVotesByProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryVotesByProposalResponse) ProtoMessage

func (*QueryVotesByProposalResponse) ProtoMessage()

func (*QueryVotesByProposalResponse) Reset

func (m *QueryVotesByProposalResponse) Reset()

func (*QueryVotesByProposalResponse) Size

func (m *QueryVotesByProposalResponse) Size() (n int)

func (*QueryVotesByProposalResponse) String

func (*QueryVotesByProposalResponse) Unmarshal

func (m *QueryVotesByProposalResponse) Unmarshal(dAtA []byte) error

func (*QueryVotesByProposalResponse) XXX_DiscardUnknown

func (m *QueryVotesByProposalResponse) XXX_DiscardUnknown()

func (*QueryVotesByProposalResponse) XXX_Marshal

func (m *QueryVotesByProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryVotesByProposalResponse) XXX_Merge

func (m *QueryVotesByProposalResponse) XXX_Merge(src proto.Message)

func (*QueryVotesByProposalResponse) XXX_Size

func (m *QueryVotesByProposalResponse) XXX_Size() int

func (*QueryVotesByProposalResponse) XXX_Unmarshal

func (m *QueryVotesByProposalResponse) XXX_Unmarshal(b []byte) error

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 *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryVotesByVoterResponse is the Query/VotesByVoter request type.

func (*QueryVotesByVoterRequest) Descriptor

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

func (*QueryVotesByVoterRequest) GetPagination

func (m *QueryVotesByVoterRequest) GetPagination() *query.PageRequest

func (*QueryVotesByVoterRequest) GetVoter

func (m *QueryVotesByVoterRequest) GetVoter() string

func (*QueryVotesByVoterRequest) Marshal

func (m *QueryVotesByVoterRequest) Marshal() (dAtA []byte, err error)

func (*QueryVotesByVoterRequest) MarshalTo

func (m *QueryVotesByVoterRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryVotesByVoterRequest) MarshalToSizedBuffer

func (m *QueryVotesByVoterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryVotesByVoterRequest) ProtoMessage

func (*QueryVotesByVoterRequest) ProtoMessage()

func (*QueryVotesByVoterRequest) Reset

func (m *QueryVotesByVoterRequest) Reset()

func (*QueryVotesByVoterRequest) Size

func (m *QueryVotesByVoterRequest) Size() (n int)

func (*QueryVotesByVoterRequest) String

func (m *QueryVotesByVoterRequest) String() string

func (*QueryVotesByVoterRequest) Unmarshal

func (m *QueryVotesByVoterRequest) Unmarshal(dAtA []byte) error

func (*QueryVotesByVoterRequest) XXX_DiscardUnknown

func (m *QueryVotesByVoterRequest) XXX_DiscardUnknown()

func (*QueryVotesByVoterRequest) XXX_Marshal

func (m *QueryVotesByVoterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryVotesByVoterRequest) XXX_Merge

func (m *QueryVotesByVoterRequest) XXX_Merge(src proto.Message)

func (*QueryVotesByVoterRequest) XXX_Size

func (m *QueryVotesByVoterRequest) XXX_Size() int

func (*QueryVotesByVoterRequest) XXX_Unmarshal

func (m *QueryVotesByVoterRequest) XXX_Unmarshal(b []byte) error

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 *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryVotesByVoterResponse is the Query/VotesByVoter response type.

func (*QueryVotesByVoterResponse) Descriptor

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

func (*QueryVotesByVoterResponse) GetPagination

func (m *QueryVotesByVoterResponse) GetPagination() *query.PageResponse

func (*QueryVotesByVoterResponse) GetVotes

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

func (*QueryVotesByVoterResponse) Marshal

func (m *QueryVotesByVoterResponse) Marshal() (dAtA []byte, err error)

func (*QueryVotesByVoterResponse) MarshalTo

func (m *QueryVotesByVoterResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryVotesByVoterResponse) MarshalToSizedBuffer

func (m *QueryVotesByVoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryVotesByVoterResponse) ProtoMessage

func (*QueryVotesByVoterResponse) ProtoMessage()

func (*QueryVotesByVoterResponse) Reset

func (m *QueryVotesByVoterResponse) Reset()

func (*QueryVotesByVoterResponse) Size

func (m *QueryVotesByVoterResponse) Size() (n int)

func (*QueryVotesByVoterResponse) String

func (m *QueryVotesByVoterResponse) String() string

func (*QueryVotesByVoterResponse) Unmarshal

func (m *QueryVotesByVoterResponse) Unmarshal(dAtA []byte) error

func (*QueryVotesByVoterResponse) XXX_DiscardUnknown

func (m *QueryVotesByVoterResponse) XXX_DiscardUnknown()

func (*QueryVotesByVoterResponse) XXX_Marshal

func (m *QueryVotesByVoterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryVotesByVoterResponse) XXX_Merge

func (m *QueryVotesByVoterResponse) XXX_Merge(src proto.Message)

func (*QueryVotesByVoterResponse) XXX_Size

func (m *QueryVotesByVoterResponse) XXX_Size() int

func (*QueryVotesByVoterResponse) XXX_Unmarshal

func (m *QueryVotesByVoterResponse) XXX_Unmarshal(b []byte) error

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"`
}

Tally represents the sum of weighted votes.

func (*Tally) Add

func (t *Tally) Add(vote Vote, weight string) error

func (*Tally) Descriptor

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

func (Tally) GetAbstainCount

func (t Tally) GetAbstainCount() (math.Dec, error)

func (Tally) GetNoCount

func (t Tally) GetNoCount() (math.Dec, error)

func (Tally) GetVetoCount

func (t Tally) GetVetoCount() (math.Dec, error)

func (Tally) GetYesCount

func (t Tally) GetYesCount() (math.Dec, error)

func (*Tally) Marshal

func (m *Tally) Marshal() (dAtA []byte, err error)

func (*Tally) MarshalTo

func (m *Tally) MarshalTo(dAtA []byte) (int, error)

func (*Tally) MarshalToSizedBuffer

func (m *Tally) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Tally) ProtoMessage

func (*Tally) ProtoMessage()

func (*Tally) Reset

func (m *Tally) Reset()

func (*Tally) Size

func (m *Tally) Size() (n int)

func (*Tally) String

func (m *Tally) String() string

func (*Tally) Sub

func (t *Tally) Sub(vote Vote, weight string) error

func (Tally) TotalCounts

func (t Tally) TotalCounts() (math.Dec, error)

TotalCounts is the sum of all weights.

func (*Tally) Unmarshal

func (m *Tally) Unmarshal(dAtA []byte) error

func (Tally) ValidateBasic

func (t Tally) ValidateBasic() error

func (*Tally) XXX_DiscardUnknown

func (m *Tally) XXX_DiscardUnknown()

func (*Tally) XXX_Marshal

func (m *Tally) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Tally) XXX_Merge

func (m *Tally) XXX_Merge(src proto.Message)

func (*Tally) XXX_Size

func (m *Tally) XXX_Size() int

func (*Tally) XXX_Unmarshal

func (m *Tally) XXX_Unmarshal(b []byte) error

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 types.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout"`
}

ThresholdDecisionPolicy implements the DecisionPolicy interface

func (ThresholdDecisionPolicy) Allow

func (p ThresholdDecisionPolicy) Allow(tally Tally, totalPower string, votingDuration time.Duration) (DecisionPolicyResult, error)

Allow allows a proposal to pass when the tally of yes votes equals or exceeds the threshold before the timeout.

func (*ThresholdDecisionPolicy) Descriptor

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

func (*ThresholdDecisionPolicy) GetThreshold

func (m *ThresholdDecisionPolicy) GetThreshold() string

func (*ThresholdDecisionPolicy) GetTimeout

func (m *ThresholdDecisionPolicy) GetTimeout() types.Duration

func (*ThresholdDecisionPolicy) Marshal

func (m *ThresholdDecisionPolicy) Marshal() (dAtA []byte, err error)

func (*ThresholdDecisionPolicy) MarshalTo

func (m *ThresholdDecisionPolicy) MarshalTo(dAtA []byte) (int, error)

func (*ThresholdDecisionPolicy) MarshalToSizedBuffer

func (m *ThresholdDecisionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ThresholdDecisionPolicy) ProtoMessage

func (*ThresholdDecisionPolicy) ProtoMessage()

func (*ThresholdDecisionPolicy) Reset

func (m *ThresholdDecisionPolicy) Reset()

func (*ThresholdDecisionPolicy) Size

func (m *ThresholdDecisionPolicy) Size() (n int)

func (*ThresholdDecisionPolicy) String

func (m *ThresholdDecisionPolicy) String() string

func (*ThresholdDecisionPolicy) Unmarshal

func (m *ThresholdDecisionPolicy) Unmarshal(dAtA []byte) error

func (*ThresholdDecisionPolicy) Validate

func (p *ThresholdDecisionPolicy) Validate(g GroupInfo) error

Validate returns an error if policy threshold is greater than the total group weight

func (ThresholdDecisionPolicy) ValidateBasic

func (p ThresholdDecisionPolicy) ValidateBasic() error

func (*ThresholdDecisionPolicy) XXX_DiscardUnknown

func (m *ThresholdDecisionPolicy) XXX_DiscardUnknown()

func (*ThresholdDecisionPolicy) XXX_Marshal

func (m *ThresholdDecisionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThresholdDecisionPolicy) XXX_Merge

func (m *ThresholdDecisionPolicy) XXX_Merge(src proto.Message)

func (*ThresholdDecisionPolicy) XXX_Size

func (m *ThresholdDecisionPolicy) XXX_Size() int

func (*ThresholdDecisionPolicy) XXX_Unmarshal

func (m *ThresholdDecisionPolicy) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateGroup

func (*UnimplementedMsgServer) CreateGroupAccount

func (*UnimplementedMsgServer) CreateProposal

func (*UnimplementedMsgServer) Exec

func (*UnimplementedMsgServer) UpdateGroupAccountAdmin

func (*UnimplementedMsgServer) UpdateGroupAccountMetadata

func (*UnimplementedMsgServer) UpdateGroupAdmin

func (*UnimplementedMsgServer) UpdateGroupMembers

func (*UnimplementedMsgServer) UpdateGroupMetadata

func (*UnimplementedMsgServer) Vote

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GroupAccountInfo

func (*UnimplementedQueryServer) GroupInfo

func (*UnimplementedQueryServer) GroupMembers

func (*UnimplementedQueryServer) GroupsByAdmin

func (*UnimplementedQueryServer) Proposal

func (*UnimplementedQueryServer) VoteByProposalVoter

func (*UnimplementedQueryServer) VotesByProposal

func (*UnimplementedQueryServer) VotesByVoter

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 types.Timestamp `protobuf:"bytes,5,opt,name=submitted_at,json=submittedAt,proto3" json:"submitted_at"`
}

Vote represents a vote for a proposal.

func (*Vote) Descriptor

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

func (*Vote) GetChoice

func (m *Vote) GetChoice() Choice

func (*Vote) GetMetadata

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

func (*Vote) GetProposalId

func (m *Vote) GetProposalId() uint64

func (*Vote) GetSubmittedAt

func (m *Vote) GetSubmittedAt() types.Timestamp

func (*Vote) GetVoter

func (m *Vote) GetVoter() string

func (*Vote) Marshal

func (m *Vote) Marshal() (dAtA []byte, err error)

func (*Vote) MarshalTo

func (m *Vote) MarshalTo(dAtA []byte) (int, error)

func (*Vote) MarshalToSizedBuffer

func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (Vote) PrimaryKeyFields

func (v Vote) PrimaryKeyFields() []interface{}

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) Size

func (m *Vote) Size() (n int)

func (*Vote) String

func (m *Vote) String() string

func (*Vote) Unmarshal

func (m *Vote) Unmarshal(dAtA []byte) error

func (Vote) ValidateBasic

func (v Vote) ValidateBasic() error

func (*Vote) XXX_DiscardUnknown

func (m *Vote) XXX_DiscardUnknown()

func (*Vote) XXX_Marshal

func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vote) XXX_Merge

func (m *Vote) XXX_Merge(src proto.Message)

func (*Vote) XXX_Size

func (m *Vote) XXX_Size() int

func (*Vote) XXX_Unmarshal

func (m *Vote) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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