group

package
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

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
)

Variables

View Source
var (
	ErrEmpty        = errors.Register(ModuleName, 2, "value is empty")
	ErrDuplicate    = errors.Register(ModuleName, 3, "duplicate value")
	ErrMaxLimit     = errors.Register(ModuleName, 4, "limit exceeded")
	ErrType         = errors.Register(ModuleName, 5, "invalid type")
	ErrInvalid      = errors.Register(ModuleName, 6, "invalid value")
	ErrUnauthorized = errors.Register(ModuleName, 7, "unauthorized")
	ErrModified     = errors.Register(ModuleName, 8, "modified")
	ErrExpired      = errors.Register(ModuleName, 9, "expired")
)
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 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 RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type Choice

type Choice int32

Choice defines available types of choices for voting.

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

func (Choice) EnumDescriptor

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

func (Choice) String

func (x Choice) String() string

type DecisionPolicy

type DecisionPolicy interface {
	codec.ProtoMarshaler

	ValidateBasic() error
	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.

type DecisionPolicyResult

type DecisionPolicyResult struct {
	Allow bool
	Final bool
}

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 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 *types.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) 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) 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) 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) 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) 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) 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 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) 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) 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 *MsgCreateGroupRequest, opts ...grpc.CallOption) (*MsgCreateGroupResponse, error)
	// UpdateGroupMembers updates the group members with given group id and admin address.
	UpdateGroupMembers(ctx context.Context, in *MsgUpdateGroupMembersRequest, opts ...grpc.CallOption) (*MsgUpdateGroupMembersResponse, error)
	// UpdateGroupAdmin updates the group admin with given group id and previous admin address.
	UpdateGroupAdmin(ctx context.Context, in *MsgUpdateGroupAdminRequest, opts ...grpc.CallOption) (*MsgUpdateGroupAdminResponse, error)
	// UpdateGroupMetadata updates the group metadata with given group id and admin address.
	UpdateGroupMetadata(ctx context.Context, in *MsgUpdateGroupMetadataRequest, opts ...grpc.CallOption) (*MsgUpdateGroupMetadataResponse, error)
	// CreateGroupAccount creates a new group account using given DecisionPolicy.
	CreateGroupAccount(ctx context.Context, in *MsgCreateGroupAccountRequest, opts ...grpc.CallOption) (*MsgCreateGroupAccountResponse, error)
	// UpdateGroupAccountAdmin updates a group account admin.
	UpdateGroupAccountAdmin(ctx context.Context, in *MsgUpdateGroupAccountAdminRequest, opts ...grpc.CallOption) (*MsgUpdateGroupAccountAdminResponse, error)
	// UpdateGroupAccountDecisionPolicy allows a group account decision policy to be updated.
	UpdateGroupAccountDecisionPolicy(ctx context.Context, in *MsgUpdateGroupAccountDecisionPolicyRequest, opts ...grpc.CallOption) (*MsgUpdateGroupAccountDecisionPolicyResponse, error)
	// UpdateGroupAccountMetadata updates a group account metadata.
	UpdateGroupAccountMetadata(ctx context.Context, in *MsgUpdateGroupAccountMetadataRequest, opts ...grpc.CallOption) (*MsgUpdateGroupAccountMetadataResponse, error)
	// CreateProposal submits a new proposal.
	CreateProposal(ctx context.Context, in *MsgCreateProposalRequest, opts ...grpc.CallOption) (*MsgCreateProposalResponse, error)
	// Vote allows a voter to vote on a proposal.
	Vote(ctx context.Context, in *MsgVoteRequest, opts ...grpc.CallOption) (*MsgVoteResponse, error)
	// Exec executes a proposal.
	Exec(ctx context.Context, in *MsgExecRequest, 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 MsgCreateGroupAccountRequest

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

MsgCreateGroupAccountRequest is the Msg/CreateGroupAccount request type.

func (*MsgCreateGroupAccountRequest) Descriptor

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

func (*MsgCreateGroupAccountRequest) Marshal

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

func (*MsgCreateGroupAccountRequest) MarshalTo

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

func (*MsgCreateGroupAccountRequest) MarshalToSizedBuffer

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

func (*MsgCreateGroupAccountRequest) ProtoMessage

func (*MsgCreateGroupAccountRequest) ProtoMessage()

func (*MsgCreateGroupAccountRequest) Reset

func (m *MsgCreateGroupAccountRequest) Reset()

func (*MsgCreateGroupAccountRequest) Size

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

func (*MsgCreateGroupAccountRequest) String

func (*MsgCreateGroupAccountRequest) Unmarshal

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

func (*MsgCreateGroupAccountRequest) XXX_DiscardUnknown

func (m *MsgCreateGroupAccountRequest) XXX_DiscardUnknown()

func (*MsgCreateGroupAccountRequest) XXX_Marshal

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

func (*MsgCreateGroupAccountRequest) XXX_Merge

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

func (*MsgCreateGroupAccountRequest) XXX_Size

func (m *MsgCreateGroupAccountRequest) XXX_Size() int

func (*MsgCreateGroupAccountRequest) XXX_Unmarshal

func (m *MsgCreateGroupAccountRequest) 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 MsgCreateGroupRequest

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

MsgCreateGroupRequest is the Msg/CreateGroup request type.

func (*MsgCreateGroupRequest) Descriptor

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

func (*MsgCreateGroupRequest) GetAdmin

func (m *MsgCreateGroupRequest) GetAdmin() string

func (*MsgCreateGroupRequest) GetMembers

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

func (*MsgCreateGroupRequest) GetMetadata

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

func (*MsgCreateGroupRequest) Marshal

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

func (*MsgCreateGroupRequest) MarshalTo

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

func (*MsgCreateGroupRequest) MarshalToSizedBuffer

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

func (*MsgCreateGroupRequest) ProtoMessage

func (*MsgCreateGroupRequest) ProtoMessage()

func (*MsgCreateGroupRequest) Reset

func (m *MsgCreateGroupRequest) Reset()

func (*MsgCreateGroupRequest) Size

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

func (*MsgCreateGroupRequest) String

func (m *MsgCreateGroupRequest) String() string

func (*MsgCreateGroupRequest) Unmarshal

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

func (*MsgCreateGroupRequest) XXX_DiscardUnknown

func (m *MsgCreateGroupRequest) XXX_DiscardUnknown()

func (*MsgCreateGroupRequest) XXX_Marshal

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

func (*MsgCreateGroupRequest) XXX_Merge

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

func (*MsgCreateGroupRequest) XXX_Size

func (m *MsgCreateGroupRequest) XXX_Size() int

func (*MsgCreateGroupRequest) XXX_Unmarshal

func (m *MsgCreateGroupRequest) 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 MsgCreateProposalRequest

type MsgCreateProposalRequest 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=cosmos.group.v1beta1.Exec" json:"exec,omitempty"`
}

MsgCreateProposalRequest is the Msg/CreateProposal request type.

func (*MsgCreateProposalRequest) Descriptor

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

func (*MsgCreateProposalRequest) Marshal

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

func (*MsgCreateProposalRequest) MarshalTo

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

func (*MsgCreateProposalRequest) MarshalToSizedBuffer

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

func (*MsgCreateProposalRequest) ProtoMessage

func (*MsgCreateProposalRequest) ProtoMessage()

func (*MsgCreateProposalRequest) Reset

func (m *MsgCreateProposalRequest) Reset()

func (*MsgCreateProposalRequest) Size

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

func (*MsgCreateProposalRequest) String

func (m *MsgCreateProposalRequest) String() string

func (*MsgCreateProposalRequest) Unmarshal

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

func (*MsgCreateProposalRequest) XXX_DiscardUnknown

func (m *MsgCreateProposalRequest) XXX_DiscardUnknown()

func (*MsgCreateProposalRequest) XXX_Marshal

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

func (*MsgCreateProposalRequest) XXX_Merge

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

func (*MsgCreateProposalRequest) XXX_Size

func (m *MsgCreateProposalRequest) XXX_Size() int

func (*MsgCreateProposalRequest) XXX_Unmarshal

func (m *MsgCreateProposalRequest) 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 MsgExecRequest

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

MsgExecRequest is the Msg/Exec request type.

func (*MsgExecRequest) Descriptor

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

func (*MsgExecRequest) GetProposalId

func (m *MsgExecRequest) GetProposalId() uint64

func (*MsgExecRequest) GetSigner

func (m *MsgExecRequest) GetSigner() string

func (*MsgExecRequest) Marshal

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

func (*MsgExecRequest) MarshalTo

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

func (*MsgExecRequest) MarshalToSizedBuffer

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

func (*MsgExecRequest) ProtoMessage

func (*MsgExecRequest) ProtoMessage()

func (*MsgExecRequest) Reset

func (m *MsgExecRequest) Reset()

func (*MsgExecRequest) Size

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

func (*MsgExecRequest) String

func (m *MsgExecRequest) String() string

func (*MsgExecRequest) Unmarshal

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

func (*MsgExecRequest) XXX_DiscardUnknown

func (m *MsgExecRequest) XXX_DiscardUnknown()

func (*MsgExecRequest) XXX_Marshal

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

func (*MsgExecRequest) XXX_Merge

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

func (*MsgExecRequest) XXX_Size

func (m *MsgExecRequest) XXX_Size() int

func (*MsgExecRequest) XXX_Unmarshal

func (m *MsgExecRequest) 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, *MsgCreateGroupRequest) (*MsgCreateGroupResponse, error)
	// UpdateGroupMembers updates the group members with given group id and admin address.
	UpdateGroupMembers(context.Context, *MsgUpdateGroupMembersRequest) (*MsgUpdateGroupMembersResponse, error)
	// UpdateGroupAdmin updates the group admin with given group id and previous admin address.
	UpdateGroupAdmin(context.Context, *MsgUpdateGroupAdminRequest) (*MsgUpdateGroupAdminResponse, error)
	// UpdateGroupMetadata updates the group metadata with given group id and admin address.
	UpdateGroupMetadata(context.Context, *MsgUpdateGroupMetadataRequest) (*MsgUpdateGroupMetadataResponse, error)
	// CreateGroupAccount creates a new group account using given DecisionPolicy.
	CreateGroupAccount(context.Context, *MsgCreateGroupAccountRequest) (*MsgCreateGroupAccountResponse, error)
	// UpdateGroupAccountAdmin updates a group account admin.
	UpdateGroupAccountAdmin(context.Context, *MsgUpdateGroupAccountAdminRequest) (*MsgUpdateGroupAccountAdminResponse, error)
	// UpdateGroupAccountDecisionPolicy allows a group account decision policy to be updated.
	UpdateGroupAccountDecisionPolicy(context.Context, *MsgUpdateGroupAccountDecisionPolicyRequest) (*MsgUpdateGroupAccountDecisionPolicyResponse, error)
	// UpdateGroupAccountMetadata updates a group account metadata.
	UpdateGroupAccountMetadata(context.Context, *MsgUpdateGroupAccountMetadataRequest) (*MsgUpdateGroupAccountMetadataResponse, error)
	// CreateProposal submits a new proposal.
	CreateProposal(context.Context, *MsgCreateProposalRequest) (*MsgCreateProposalResponse, error)
	// Vote allows a voter to vote on a proposal.
	Vote(context.Context, *MsgVoteRequest) (*MsgVoteResponse, error)
	// Exec executes a proposal.
	Exec(context.Context, *MsgExecRequest) (*MsgExecResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateGroupAccountAdminRequest

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

MsgUpdateGroupAccountAdminRequest is the Msg/UpdateGroupAccountAdmin request type.

func (*MsgUpdateGroupAccountAdminRequest) Descriptor

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

func (*MsgUpdateGroupAccountAdminRequest) GetAddress

func (m *MsgUpdateGroupAccountAdminRequest) GetAddress() string

func (*MsgUpdateGroupAccountAdminRequest) GetAdmin

func (*MsgUpdateGroupAccountAdminRequest) GetNewAdmin

func (m *MsgUpdateGroupAccountAdminRequest) GetNewAdmin() string

func (*MsgUpdateGroupAccountAdminRequest) Marshal

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

func (*MsgUpdateGroupAccountAdminRequest) MarshalTo

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

func (*MsgUpdateGroupAccountAdminRequest) MarshalToSizedBuffer

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

func (*MsgUpdateGroupAccountAdminRequest) ProtoMessage

func (*MsgUpdateGroupAccountAdminRequest) ProtoMessage()

func (*MsgUpdateGroupAccountAdminRequest) Reset

func (*MsgUpdateGroupAccountAdminRequest) Size

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

func (*MsgUpdateGroupAccountAdminRequest) String

func (*MsgUpdateGroupAccountAdminRequest) Unmarshal

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

func (*MsgUpdateGroupAccountAdminRequest) XXX_DiscardUnknown

func (m *MsgUpdateGroupAccountAdminRequest) XXX_DiscardUnknown()

func (*MsgUpdateGroupAccountAdminRequest) XXX_Marshal

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

func (*MsgUpdateGroupAccountAdminRequest) XXX_Merge

func (*MsgUpdateGroupAccountAdminRequest) XXX_Size

func (m *MsgUpdateGroupAccountAdminRequest) XXX_Size() int

func (*MsgUpdateGroupAccountAdminRequest) XXX_Unmarshal

func (m *MsgUpdateGroupAccountAdminRequest) 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 MsgUpdateGroupAccountDecisionPolicyRequest

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

MsgUpdateGroupAccountDecisionPolicyRequest is the Msg/UpdateGroupAccountDecisionPolicy request type.

func (*MsgUpdateGroupAccountDecisionPolicyRequest) Descriptor

func (*MsgUpdateGroupAccountDecisionPolicyRequest) Marshal

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

func (*MsgUpdateGroupAccountDecisionPolicyRequest) MarshalTo

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

func (*MsgUpdateGroupAccountDecisionPolicyRequest) MarshalToSizedBuffer

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

func (*MsgUpdateGroupAccountDecisionPolicyRequest) ProtoMessage

func (*MsgUpdateGroupAccountDecisionPolicyRequest) Reset

func (*MsgUpdateGroupAccountDecisionPolicyRequest) Size

func (*MsgUpdateGroupAccountDecisionPolicyRequest) String

func (*MsgUpdateGroupAccountDecisionPolicyRequest) Unmarshal

func (*MsgUpdateGroupAccountDecisionPolicyRequest) XXX_DiscardUnknown

func (m *MsgUpdateGroupAccountDecisionPolicyRequest) XXX_DiscardUnknown()

func (*MsgUpdateGroupAccountDecisionPolicyRequest) XXX_Marshal

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

func (*MsgUpdateGroupAccountDecisionPolicyRequest) XXX_Merge

func (*MsgUpdateGroupAccountDecisionPolicyRequest) XXX_Size

func (*MsgUpdateGroupAccountDecisionPolicyRequest) XXX_Unmarshal

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 MsgUpdateGroupAccountMetadataRequest

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

MsgUpdateGroupAccountMetadataRequest is the Msg/UpdateGroupAccountMetadata request type.

func (*MsgUpdateGroupAccountMetadataRequest) Descriptor

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

func (*MsgUpdateGroupAccountMetadataRequest) GetAddress

func (*MsgUpdateGroupAccountMetadataRequest) GetAdmin

func (*MsgUpdateGroupAccountMetadataRequest) GetMetadata

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

func (*MsgUpdateGroupAccountMetadataRequest) Marshal

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

func (*MsgUpdateGroupAccountMetadataRequest) MarshalTo

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

func (*MsgUpdateGroupAccountMetadataRequest) MarshalToSizedBuffer

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

func (*MsgUpdateGroupAccountMetadataRequest) ProtoMessage

func (*MsgUpdateGroupAccountMetadataRequest) ProtoMessage()

func (*MsgUpdateGroupAccountMetadataRequest) Reset

func (*MsgUpdateGroupAccountMetadataRequest) Size

func (*MsgUpdateGroupAccountMetadataRequest) String

func (*MsgUpdateGroupAccountMetadataRequest) Unmarshal

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

func (*MsgUpdateGroupAccountMetadataRequest) XXX_DiscardUnknown

func (m *MsgUpdateGroupAccountMetadataRequest) XXX_DiscardUnknown()

func (*MsgUpdateGroupAccountMetadataRequest) XXX_Marshal

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

func (*MsgUpdateGroupAccountMetadataRequest) XXX_Merge

func (*MsgUpdateGroupAccountMetadataRequest) XXX_Size

func (*MsgUpdateGroupAccountMetadataRequest) XXX_Unmarshal

func (m *MsgUpdateGroupAccountMetadataRequest) 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 MsgUpdateGroupAdminRequest

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

MsgUpdateGroupAdminRequest is the Msg/UpdateGroupAdmin request type.

func (*MsgUpdateGroupAdminRequest) Descriptor

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

func (*MsgUpdateGroupAdminRequest) GetAdmin

func (m *MsgUpdateGroupAdminRequest) GetAdmin() string

func (*MsgUpdateGroupAdminRequest) GetGroupId

func (m *MsgUpdateGroupAdminRequest) GetGroupId() uint64

func (*MsgUpdateGroupAdminRequest) GetNewAdmin

func (m *MsgUpdateGroupAdminRequest) GetNewAdmin() string

func (*MsgUpdateGroupAdminRequest) Marshal

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

func (*MsgUpdateGroupAdminRequest) MarshalTo

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

func (*MsgUpdateGroupAdminRequest) MarshalToSizedBuffer

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

func (*MsgUpdateGroupAdminRequest) ProtoMessage

func (*MsgUpdateGroupAdminRequest) ProtoMessage()

func (*MsgUpdateGroupAdminRequest) Reset

func (m *MsgUpdateGroupAdminRequest) Reset()

func (*MsgUpdateGroupAdminRequest) Size

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

func (*MsgUpdateGroupAdminRequest) String

func (m *MsgUpdateGroupAdminRequest) String() string

func (*MsgUpdateGroupAdminRequest) Unmarshal

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

func (*MsgUpdateGroupAdminRequest) XXX_DiscardUnknown

func (m *MsgUpdateGroupAdminRequest) XXX_DiscardUnknown()

func (*MsgUpdateGroupAdminRequest) XXX_Marshal

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

func (*MsgUpdateGroupAdminRequest) XXX_Merge

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

func (*MsgUpdateGroupAdminRequest) XXX_Size

func (m *MsgUpdateGroupAdminRequest) XXX_Size() int

func (*MsgUpdateGroupAdminRequest) XXX_Unmarshal

func (m *MsgUpdateGroupAdminRequest) 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 MsgUpdateGroupMembersRequest

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

MsgUpdateGroupMembersRequest is the Msg/UpdateGroupMembers request type.

func (*MsgUpdateGroupMembersRequest) Descriptor

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

func (*MsgUpdateGroupMembersRequest) GetAdmin

func (m *MsgUpdateGroupMembersRequest) GetAdmin() string

func (*MsgUpdateGroupMembersRequest) GetGroupId

func (m *MsgUpdateGroupMembersRequest) GetGroupId() uint64

func (*MsgUpdateGroupMembersRequest) GetMemberUpdates

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

func (*MsgUpdateGroupMembersRequest) Marshal

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

func (*MsgUpdateGroupMembersRequest) MarshalTo

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

func (*MsgUpdateGroupMembersRequest) MarshalToSizedBuffer

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

func (*MsgUpdateGroupMembersRequest) ProtoMessage

func (*MsgUpdateGroupMembersRequest) ProtoMessage()

func (*MsgUpdateGroupMembersRequest) Reset

func (m *MsgUpdateGroupMembersRequest) Reset()

func (*MsgUpdateGroupMembersRequest) Size

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

func (*MsgUpdateGroupMembersRequest) String

func (*MsgUpdateGroupMembersRequest) Unmarshal

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

func (*MsgUpdateGroupMembersRequest) XXX_DiscardUnknown

func (m *MsgUpdateGroupMembersRequest) XXX_DiscardUnknown()

func (*MsgUpdateGroupMembersRequest) XXX_Marshal

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

func (*MsgUpdateGroupMembersRequest) XXX_Merge

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

func (*MsgUpdateGroupMembersRequest) XXX_Size

func (m *MsgUpdateGroupMembersRequest) XXX_Size() int

func (*MsgUpdateGroupMembersRequest) XXX_Unmarshal

func (m *MsgUpdateGroupMembersRequest) 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 MsgUpdateGroupMetadataRequest

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

MsgUpdateGroupMetadataRequest is the Msg/UpdateGroupMetadata request type.

func (*MsgUpdateGroupMetadataRequest) Descriptor

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

func (*MsgUpdateGroupMetadataRequest) GetAdmin

func (m *MsgUpdateGroupMetadataRequest) GetAdmin() string

func (*MsgUpdateGroupMetadataRequest) GetGroupId

func (m *MsgUpdateGroupMetadataRequest) GetGroupId() uint64

func (*MsgUpdateGroupMetadataRequest) GetMetadata

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

func (*MsgUpdateGroupMetadataRequest) Marshal

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

func (*MsgUpdateGroupMetadataRequest) MarshalTo

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

func (*MsgUpdateGroupMetadataRequest) MarshalToSizedBuffer

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

func (*MsgUpdateGroupMetadataRequest) ProtoMessage

func (*MsgUpdateGroupMetadataRequest) ProtoMessage()

func (*MsgUpdateGroupMetadataRequest) Reset

func (m *MsgUpdateGroupMetadataRequest) Reset()

func (*MsgUpdateGroupMetadataRequest) Size

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

func (*MsgUpdateGroupMetadataRequest) String

func (*MsgUpdateGroupMetadataRequest) Unmarshal

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

func (*MsgUpdateGroupMetadataRequest) XXX_DiscardUnknown

func (m *MsgUpdateGroupMetadataRequest) XXX_DiscardUnknown()

func (*MsgUpdateGroupMetadataRequest) XXX_Marshal

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

func (*MsgUpdateGroupMetadataRequest) XXX_Merge

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

func (*MsgUpdateGroupMetadataRequest) XXX_Size

func (m *MsgUpdateGroupMetadataRequest) XXX_Size() int

func (*MsgUpdateGroupMetadataRequest) XXX_Unmarshal

func (m *MsgUpdateGroupMetadataRequest) 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 MsgVoteRequest

type MsgVoteRequest 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=cosmos.group.v1beta1.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=cosmos.group.v1beta1.Exec" json:"exec,omitempty"`
}

MsgVoteRequest is the Msg/Vote request type.

func (*MsgVoteRequest) Descriptor

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

func (*MsgVoteRequest) GetChoice

func (m *MsgVoteRequest) GetChoice() Choice

func (*MsgVoteRequest) GetExec

func (m *MsgVoteRequest) GetExec() Exec

func (*MsgVoteRequest) GetMetadata

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

func (*MsgVoteRequest) GetProposalId

func (m *MsgVoteRequest) GetProposalId() uint64

func (*MsgVoteRequest) GetVoter

func (m *MsgVoteRequest) GetVoter() string

func (*MsgVoteRequest) Marshal

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

func (*MsgVoteRequest) MarshalTo

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

func (*MsgVoteRequest) MarshalToSizedBuffer

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

func (*MsgVoteRequest) ProtoMessage

func (*MsgVoteRequest) ProtoMessage()

func (*MsgVoteRequest) Reset

func (m *MsgVoteRequest) Reset()

func (*MsgVoteRequest) Size

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

func (*MsgVoteRequest) String

func (m *MsgVoteRequest) String() string

func (*MsgVoteRequest) Unmarshal

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

func (*MsgVoteRequest) XXX_DiscardUnknown

func (m *MsgVoteRequest) XXX_DiscardUnknown()

func (*MsgVoteRequest) XXX_Marshal

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

func (*MsgVoteRequest) XXX_Merge

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

func (*MsgVoteRequest) XXX_Size

func (m *MsgVoteRequest) XXX_Size() int

func (*MsgVoteRequest) XXX_Unmarshal

func (m *MsgVoteRequest) 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 time.Time `protobuf:"bytes,5,opt,name=submitted_at,json=submittedAt,proto3,stdtime" 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=cosmos.group.v1beta1.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=cosmos.group.v1beta1.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 time.Time `protobuf:"bytes,11,opt,name=timeout,proto3,stdtime" 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 []*types.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) 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) 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 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) Descriptor

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

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

func (m *Tally) Unmarshal(dAtA []byte) 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 time.Duration `protobuf:"bytes,2,opt,name=timeout,proto3,stdduration" json:"timeout"`
}

ThresholdDecisionPolicy implements the DecisionPolicy interface

func (*ThresholdDecisionPolicy) Descriptor

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

func (*ThresholdDecisionPolicy) GetThreshold

func (m *ThresholdDecisionPolicy) GetThreshold() string

func (*ThresholdDecisionPolicy) GetTimeout

func (m *ThresholdDecisionPolicy) GetTimeout() time.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) 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) 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=cosmos.group.v1beta1.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 time.Time `protobuf:"bytes,5,opt,name=submitted_at,json=submittedAt,proto3,stdtime" 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() time.Time

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

Jump to

Keyboard shortcuts

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