foundation

package
v0.46.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package foundation is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

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

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	TreasuryName      = "treasury"
	AdministratorName = "administrator"
)
View Source
const (
	// ProposalTypeUpdateFoundationParams updates parameters of foundation.
	ProposalTypeUpdateFoundationParams = "UpdateFoundationParams"
	// ProposalTypeUpdateValidatorAuths updates validator authorizations.
	ProposalTypeUpdateValidatorAuths = "UpdateValidatorAuths"
)

Variables

View Source
var (
	ErrInvalidLengthAuthz        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuthz          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthFoundation        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFoundation          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFoundation = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var 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 ProposalExecutorResult_name = map[int32]string{
	0: "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED",
	1: "PROPOSAL_EXECUTOR_RESULT_NOT_RUN",
	2: "PROPOSAL_EXECUTOR_RESULT_SUCCESS",
	3: "PROPOSAL_EXECUTOR_RESULT_FAILURE",
}
View Source
var ProposalExecutorResult_value = map[string]int32{
	"PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": 0,
	"PROPOSAL_EXECUTOR_RESULT_NOT_RUN":     1,
	"PROPOSAL_EXECUTOR_RESULT_SUCCESS":     2,
	"PROPOSAL_EXECUTOR_RESULT_FAILURE":     3,
}
View Source
var ProposalResult_name = map[int32]string{
	0: "PROPOSAL_RESULT_UNSPECIFIED",
	1: "PROPOSAL_RESULT_UNFINALIZED",
	2: "PROPOSAL_RESULT_ACCEPTED",
	3: "PROPOSAL_RESULT_REJECTED",
}
View Source
var ProposalResult_value = map[string]int32{
	"PROPOSAL_RESULT_UNSPECIFIED": 0,
	"PROPOSAL_RESULT_UNFINALIZED": 1,
	"PROPOSAL_RESULT_ACCEPTED":    2,
	"PROPOSAL_RESULT_REJECTED":    3,
}
View Source
var ProposalStatus_name = map[int32]string{
	0: "PROPOSAL_STATUS_UNSPECIFIED",
	1: "PROPOSAL_STATUS_SUBMITTED",
	2: "PROPOSAL_STATUS_CLOSED",
	3: "PROPOSAL_STATUS_ABORTED",
	4: "PROPOSAL_STATUS_WITHDRAWN",
}
View Source
var ProposalStatus_value = map[string]int32{
	"PROPOSAL_STATUS_UNSPECIFIED": 0,
	"PROPOSAL_STATUS_SUBMITTED":   1,
	"PROPOSAL_STATUS_CLOSED":      2,
	"PROPOSAL_STATUS_ABORTED":     3,
	"PROPOSAL_STATUS_WITHDRAWN":   4,
}
View Source
var VoteOption_name = map[int32]string{
	0: "VOTE_OPTION_UNSPECIFIED",
	1: "VOTE_OPTION_YES",
	2: "VOTE_OPTION_ABSTAIN",
	3: "VOTE_OPTION_NO",
	4: "VOTE_OPTION_NO_WITH_VETO",
}
View Source
var VoteOption_value = map[string]int32{
	"VOTE_OPTION_UNSPECIFIED":  0,
	"VOTE_OPTION_YES":          1,
	"VOTE_OPTION_ABSTAIN":      2,
	"VOTE_OPTION_NO":           3,
	"VOTE_OPTION_NO_WITH_VETO": 4,
}

Functions

func GetMsgs

func GetMsgs(anys []*codectypes.Any, name string) ([]sdk.Msg, error)

GetMsgs takes a slice of Any's and turn them into sdk.Msg's.

func NewUpdateFoundationParamsProposal

func NewUpdateFoundationParamsProposal(title, description string, params *Params) govtypes.Content

func NewUpdateValidatorAuthsProposal

func NewUpdateValidatorAuthsProposal(title, description string,
	auths []ValidatorAuth) govtypes.Content

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SetAuthorization

func SetAuthorization(a Authorization) (*codectypes.Any, error)

func SetMsgs

func SetMsgs(msgs []sdk.Msg) ([]*codectypes.Any, error)

SetMsgs takes a slice of sdk.Msg's and turn them into Any's.

func UnpackInterfaces

func UnpackInterfaces(unpacker codectypes.AnyUnpacker, anys []*codectypes.Any) error

UnpackInterfaces unpacks Any's to sdk.Msg's.

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis validates the provided genesis state to ensure the expected invariants holds.

Types

type AcceptResponse

type AcceptResponse struct {
	// If Accept=true, the controller can accept and authorization and handle the update.
	Accept bool
	// If Delete=true, the controller must delete the authorization object and release
	// storage resources.
	Delete bool
	// Controller, who is calling Authorization.Accept must check if `Updated != nil`. If yes,
	// it must use the updated version and handle the update on the storage level.
	Updated Authorization
}

AcceptResponse instruments the controller of an authz message if the request is accepted and if it should be updated or deleted.

type AuthKeeper

type AuthKeeper interface {
	GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI
}

AuthKeeper defines the auth module interface contract needed by the foundation module.

type Authorization

type Authorization interface {
	proto.Message

	// MsgTypeURL returns the fully-qualified Msg service method URL (as described in ADR 031),
	// which will process and accept or reject a request.
	MsgTypeURL() string

	// Accept determines whether this grant permits the provided sdk.Msg to be performed,
	// and if so provides an updated authorization instance.
	Accept(ctx sdk.Context, msg sdk.Msg) (AcceptResponse, error)

	// ValidateBasic does a simple validation check that
	// doesn't require access to any other information.
	ValidateBasic() error
}

Authorization represents the interface of various Authorization types implemented by other modules. Caution: It's not for x/authz exec.

func GetAuthorization

func GetAuthorization(any *codectypes.Any, name string) (Authorization, error)

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
}

BankKeeper defines the bank module interface contract needed by the foundation module.

type Config

type Config struct {
	// MaxExecutionPeriod defines the max duration after a proposal's voting period ends that members can send a MsgExec to execute the proposal.
	MaxExecutionPeriod time.Duration
	// MaxMetadataLen defines the max length of the metadata bytes field for various entities within the foundation module. Defaults to 255 if not explicitly set.
	MaxMetadataLen uint64
	MinThreshold   sdk.Dec
	MinPercentage  sdk.Dec
}

Config is a config struct used for intialising the group module to avoid using globals.

func DefaultConfig

func DefaultConfig() Config

type DecisionPolicy

type DecisionPolicy interface {
	codec.ProtoMarshaler

	// GetVotingPeriod returns the duration after proposal submission where
	// votes are accepted.
	GetVotingPeriod() time.Duration
	// Allow defines policy-specific logic to allow a proposal to pass or not,
	// based on its tally result, the foundation's total power and the time since
	// the proposal was submitted.
	Allow(tallyResult TallyResult, totalPower sdk.Dec, sinceSubmission time.Duration) (*DecisionPolicyResult, error)

	ValidateBasic() error
	Validate(config Config) error
}

func DefaultDecisionPolicy

func DefaultDecisionPolicy(config Config) DecisionPolicy

type DecisionPolicyResult

type DecisionPolicyResult struct {
	Allow bool
	Final bool
}

type DecisionPolicyWindows

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

DecisionPolicyWindows defines the different windows for voting and execution.

func (*DecisionPolicyWindows) Descriptor

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

func (*DecisionPolicyWindows) Equal

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

func (*DecisionPolicyWindows) GetMinExecutionPeriod

func (m *DecisionPolicyWindows) GetMinExecutionPeriod() time.Duration

func (*DecisionPolicyWindows) GetVotingPeriod

func (m *DecisionPolicyWindows) GetVotingPeriod() time.Duration

func (*DecisionPolicyWindows) Marshal

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

func (*DecisionPolicyWindows) MarshalTo

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

func (*DecisionPolicyWindows) MarshalToSizedBuffer

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

func (*DecisionPolicyWindows) ProtoMessage

func (*DecisionPolicyWindows) ProtoMessage()

func (*DecisionPolicyWindows) Reset

func (m *DecisionPolicyWindows) Reset()

func (*DecisionPolicyWindows) Size

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

func (*DecisionPolicyWindows) String

func (m *DecisionPolicyWindows) String() string

func (*DecisionPolicyWindows) Unmarshal

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

func (*DecisionPolicyWindows) XXX_DiscardUnknown

func (m *DecisionPolicyWindows) XXX_DiscardUnknown()

func (*DecisionPolicyWindows) XXX_Marshal

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

func (*DecisionPolicyWindows) XXX_Merge

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

func (*DecisionPolicyWindows) XXX_Size

func (m *DecisionPolicyWindows) XXX_Size() int

func (*DecisionPolicyWindows) XXX_Unmarshal

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

type EventExec

type EventExec struct {
	// proposal_id is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// result is the proposal execution result.
	Result ProposalExecutorResult `protobuf:"varint,2,opt,name=result,proto3,enum=lbm.foundation.v1.ProposalExecutorResult" json:"result,omitempty"`
}

EventExec is an event emitted when a proposal is executed.

func (*EventExec) Descriptor

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

func (*EventExec) GetProposalId

func (m *EventExec) GetProposalId() uint64

func (*EventExec) GetResult

func (m *EventExec) GetResult() ProposalExecutorResult

func (*EventExec) Marshal

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

func (*EventExec) MarshalTo

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

func (*EventExec) MarshalToSizedBuffer

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

func (*EventExec) ProtoMessage

func (*EventExec) ProtoMessage()

func (*EventExec) Reset

func (m *EventExec) Reset()

func (*EventExec) Size

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

func (*EventExec) String

func (m *EventExec) String() string

func (*EventExec) Unmarshal

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

func (*EventExec) XXX_DiscardUnknown

func (m *EventExec) XXX_DiscardUnknown()

func (*EventExec) XXX_Marshal

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

func (*EventExec) XXX_Merge

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

func (*EventExec) XXX_Size

func (m *EventExec) XXX_Size() int

func (*EventExec) XXX_Unmarshal

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

type EventFundTreasury

type EventFundTreasury struct {
	From   string                              `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Amount github_com_line_lbm_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/line/lbm-sdk/types.Coins" json:"amount"`
}

EventFundTreasury is an event emitted when one funds the treasury.

func (*EventFundTreasury) Descriptor

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

func (*EventFundTreasury) GetAmount

func (*EventFundTreasury) GetFrom

func (m *EventFundTreasury) GetFrom() string

func (*EventFundTreasury) Marshal

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

func (*EventFundTreasury) MarshalTo

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

func (*EventFundTreasury) MarshalToSizedBuffer

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

func (*EventFundTreasury) ProtoMessage

func (*EventFundTreasury) ProtoMessage()

func (*EventFundTreasury) Reset

func (m *EventFundTreasury) Reset()

func (*EventFundTreasury) Size

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

func (*EventFundTreasury) String

func (m *EventFundTreasury) String() string

func (*EventFundTreasury) Unmarshal

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

func (*EventFundTreasury) XXX_DiscardUnknown

func (m *EventFundTreasury) XXX_DiscardUnknown()

func (*EventFundTreasury) XXX_Marshal

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

func (*EventFundTreasury) XXX_Merge

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

func (*EventFundTreasury) XXX_Size

func (m *EventFundTreasury) XXX_Size() int

func (*EventFundTreasury) XXX_Unmarshal

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

type EventGrant

type EventGrant struct {
	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	// the address of the grantee.
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// authorization granted.
	Authorization *types1.Any `protobuf:"bytes,3,opt,name=authorization,proto3" json:"authorization,omitempty"`
}

EventGrant is emitted on Msg/Grant

func (*EventGrant) Descriptor

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

func (*EventGrant) GetAuthorization

func (m *EventGrant) GetAuthorization() *types1.Any

func (*EventGrant) GetGrantee

func (m *EventGrant) GetGrantee() string

func (*EventGrant) GetGranter

func (m *EventGrant) GetGranter() string

func (*EventGrant) Marshal

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

func (*EventGrant) MarshalTo

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

func (*EventGrant) MarshalToSizedBuffer

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

func (*EventGrant) ProtoMessage

func (*EventGrant) ProtoMessage()

func (*EventGrant) Reset

func (m *EventGrant) Reset()

func (*EventGrant) Size

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

func (*EventGrant) String

func (m *EventGrant) String() string

func (*EventGrant) Unmarshal

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

func (*EventGrant) XXX_DiscardUnknown

func (m *EventGrant) XXX_DiscardUnknown()

func (*EventGrant) XXX_Marshal

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

func (*EventGrant) XXX_Merge

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

func (*EventGrant) XXX_Size

func (m *EventGrant) XXX_Size() int

func (*EventGrant) XXX_Unmarshal

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

type EventLeaveFoundation

type EventLeaveFoundation struct {
	// address is the account address of the foundation member.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

EventLeaveFoundation is an event emitted when a foundation member leaves the foundation.

func (*EventLeaveFoundation) Descriptor

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

func (*EventLeaveFoundation) GetAddress

func (m *EventLeaveFoundation) GetAddress() string

func (*EventLeaveFoundation) Marshal

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

func (*EventLeaveFoundation) MarshalTo

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

func (*EventLeaveFoundation) MarshalToSizedBuffer

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

func (*EventLeaveFoundation) ProtoMessage

func (*EventLeaveFoundation) ProtoMessage()

func (*EventLeaveFoundation) Reset

func (m *EventLeaveFoundation) Reset()

func (*EventLeaveFoundation) Size

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

func (*EventLeaveFoundation) String

func (m *EventLeaveFoundation) String() string

func (*EventLeaveFoundation) Unmarshal

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

func (*EventLeaveFoundation) XXX_DiscardUnknown

func (m *EventLeaveFoundation) XXX_DiscardUnknown()

func (*EventLeaveFoundation) XXX_Marshal

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

func (*EventLeaveFoundation) XXX_Merge

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

func (*EventLeaveFoundation) XXX_Size

func (m *EventLeaveFoundation) XXX_Size() int

func (*EventLeaveFoundation) XXX_Unmarshal

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

type EventRevoke

type EventRevoke struct {
	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	// address of the grantee.
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// message type url for which an autorization is revoked.
	MsgTypeUrl string `protobuf:"bytes,3,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
}

EventRevoke is emitted on Msg/Revoke

func (*EventRevoke) Descriptor

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

func (*EventRevoke) GetGrantee

func (m *EventRevoke) GetGrantee() string

func (*EventRevoke) GetGranter

func (m *EventRevoke) GetGranter() string

func (*EventRevoke) GetMsgTypeUrl

func (m *EventRevoke) GetMsgTypeUrl() string

func (*EventRevoke) Marshal

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

func (*EventRevoke) MarshalTo

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

func (*EventRevoke) MarshalToSizedBuffer

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

func (*EventRevoke) ProtoMessage

func (*EventRevoke) ProtoMessage()

func (*EventRevoke) Reset

func (m *EventRevoke) Reset()

func (*EventRevoke) Size

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

func (*EventRevoke) String

func (m *EventRevoke) String() string

func (*EventRevoke) Unmarshal

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

func (*EventRevoke) XXX_DiscardUnknown

func (m *EventRevoke) XXX_DiscardUnknown()

func (*EventRevoke) XXX_Marshal

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

func (*EventRevoke) XXX_Merge

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

func (*EventRevoke) XXX_Size

func (m *EventRevoke) XXX_Size() int

func (*EventRevoke) XXX_Unmarshal

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

type EventSubmitProposal

type EventSubmitProposal struct {
	// proposal is the unique ID of the proposal.
	Proposal Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"`
}

EventSubmitProposal is an event emitted when a proposal is created.

func (*EventSubmitProposal) Descriptor

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

func (*EventSubmitProposal) GetProposal

func (m *EventSubmitProposal) GetProposal() Proposal

func (*EventSubmitProposal) Marshal

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

func (*EventSubmitProposal) MarshalTo

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

func (*EventSubmitProposal) MarshalToSizedBuffer

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

func (*EventSubmitProposal) ProtoMessage

func (*EventSubmitProposal) ProtoMessage()

func (*EventSubmitProposal) Reset

func (m *EventSubmitProposal) Reset()

func (*EventSubmitProposal) Size

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

func (*EventSubmitProposal) String

func (m *EventSubmitProposal) String() string

func (*EventSubmitProposal) Unmarshal

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

func (*EventSubmitProposal) XXX_DiscardUnknown

func (m *EventSubmitProposal) XXX_DiscardUnknown()

func (*EventSubmitProposal) XXX_Marshal

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

func (*EventSubmitProposal) XXX_Merge

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

func (*EventSubmitProposal) XXX_Size

func (m *EventSubmitProposal) XXX_Size() int

func (*EventSubmitProposal) XXX_Unmarshal

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

type EventUpdateDecisionPolicy

type EventUpdateDecisionPolicy struct {
	DecisionPolicy *types1.Any `protobuf:"bytes,1,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
}

EventUpdateDecisionPolicy is an event emitted when the decision policy have been updated.

func (*EventUpdateDecisionPolicy) Descriptor

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

func (EventUpdateDecisionPolicy) GetDecisionPolicy

func (m EventUpdateDecisionPolicy) GetDecisionPolicy() DecisionPolicy

func (*EventUpdateDecisionPolicy) Marshal

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

func (*EventUpdateDecisionPolicy) MarshalTo

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

func (*EventUpdateDecisionPolicy) MarshalToSizedBuffer

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

func (*EventUpdateDecisionPolicy) ProtoMessage

func (*EventUpdateDecisionPolicy) ProtoMessage()

func (*EventUpdateDecisionPolicy) Reset

func (m *EventUpdateDecisionPolicy) Reset()

func (*EventUpdateDecisionPolicy) SetDecisionPolicy

func (m *EventUpdateDecisionPolicy) SetDecisionPolicy(policy DecisionPolicy) error

func (*EventUpdateDecisionPolicy) Size

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

func (*EventUpdateDecisionPolicy) String

func (m *EventUpdateDecisionPolicy) String() string

func (*EventUpdateDecisionPolicy) Unmarshal

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

func (EventUpdateDecisionPolicy) UnpackInterfaces

func (m EventUpdateDecisionPolicy) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (*EventUpdateDecisionPolicy) XXX_DiscardUnknown

func (m *EventUpdateDecisionPolicy) XXX_DiscardUnknown()

func (*EventUpdateDecisionPolicy) XXX_Marshal

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

func (*EventUpdateDecisionPolicy) XXX_Merge

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

func (*EventUpdateDecisionPolicy) XXX_Size

func (m *EventUpdateDecisionPolicy) XXX_Size() int

func (*EventUpdateDecisionPolicy) XXX_Unmarshal

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

type EventUpdateFoundationParams

type EventUpdateFoundationParams struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

EventUpdateFoundationParams is emitted after updating foundation parameters.

func (*EventUpdateFoundationParams) Descriptor

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

func (*EventUpdateFoundationParams) GetParams

func (m *EventUpdateFoundationParams) GetParams() *Params

func (*EventUpdateFoundationParams) Marshal

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

func (*EventUpdateFoundationParams) MarshalTo

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

func (*EventUpdateFoundationParams) MarshalToSizedBuffer

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

func (*EventUpdateFoundationParams) ProtoMessage

func (*EventUpdateFoundationParams) ProtoMessage()

func (*EventUpdateFoundationParams) Reset

func (m *EventUpdateFoundationParams) Reset()

func (*EventUpdateFoundationParams) Size

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

func (*EventUpdateFoundationParams) String

func (m *EventUpdateFoundationParams) String() string

func (*EventUpdateFoundationParams) Unmarshal

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

func (*EventUpdateFoundationParams) XXX_DiscardUnknown

func (m *EventUpdateFoundationParams) XXX_DiscardUnknown()

func (*EventUpdateFoundationParams) XXX_Marshal

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

func (*EventUpdateFoundationParams) XXX_Merge

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

func (*EventUpdateFoundationParams) XXX_Size

func (m *EventUpdateFoundationParams) XXX_Size() int

func (*EventUpdateFoundationParams) XXX_Unmarshal

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

type EventUpdateMembers

type EventUpdateMembers struct {
	MemberUpdates []Member `protobuf:"bytes,1,rep,name=member_updates,json=memberUpdates,proto3" json:"member_updates"`
}

EventUpdateMembers is an event emitted when the members have been updated.

func (*EventUpdateMembers) Descriptor

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

func (*EventUpdateMembers) GetMemberUpdates

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

func (*EventUpdateMembers) Marshal

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

func (*EventUpdateMembers) MarshalTo

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

func (*EventUpdateMembers) MarshalToSizedBuffer

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

func (*EventUpdateMembers) ProtoMessage

func (*EventUpdateMembers) ProtoMessage()

func (*EventUpdateMembers) Reset

func (m *EventUpdateMembers) Reset()

func (*EventUpdateMembers) Size

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

func (*EventUpdateMembers) String

func (m *EventUpdateMembers) String() string

func (*EventUpdateMembers) Unmarshal

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

func (*EventUpdateMembers) XXX_DiscardUnknown

func (m *EventUpdateMembers) XXX_DiscardUnknown()

func (*EventUpdateMembers) XXX_Marshal

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

func (*EventUpdateMembers) XXX_Merge

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

func (*EventUpdateMembers) XXX_Size

func (m *EventUpdateMembers) XXX_Size() int

func (*EventUpdateMembers) XXX_Unmarshal

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

type EventVote

type EventVote struct {
	Vote Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote"`
}

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

func (*EventVote) Descriptor

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

func (*EventVote) GetVote

func (m *EventVote) GetVote() Vote

func (*EventVote) Marshal

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

func (*EventVote) MarshalTo

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

func (*EventVote) MarshalToSizedBuffer

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

func (*EventVote) ProtoMessage

func (*EventVote) ProtoMessage()

func (*EventVote) Reset

func (m *EventVote) Reset()

func (*EventVote) Size

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

func (*EventVote) String

func (m *EventVote) String() string

func (*EventVote) Unmarshal

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

func (*EventVote) XXX_DiscardUnknown

func (m *EventVote) XXX_DiscardUnknown()

func (*EventVote) XXX_Marshal

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

func (*EventVote) XXX_Merge

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

func (*EventVote) XXX_Size

func (m *EventVote) XXX_Size() int

func (*EventVote) XXX_Unmarshal

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

type EventWithdrawFromTreasury

type EventWithdrawFromTreasury struct {
	To     string                              `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	Amount github_com_line_lbm_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/line/lbm-sdk/types.Coins" json:"amount"`
}

EventWithdrawFromTreasury is an event emitted when the operator withdraws coins from the treasury.

func (*EventWithdrawFromTreasury) Descriptor

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

func (*EventWithdrawFromTreasury) GetAmount

func (*EventWithdrawFromTreasury) GetTo

func (m *EventWithdrawFromTreasury) GetTo() string

func (*EventWithdrawFromTreasury) Marshal

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

func (*EventWithdrawFromTreasury) MarshalTo

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

func (*EventWithdrawFromTreasury) MarshalToSizedBuffer

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

func (*EventWithdrawFromTreasury) ProtoMessage

func (*EventWithdrawFromTreasury) ProtoMessage()

func (*EventWithdrawFromTreasury) Reset

func (m *EventWithdrawFromTreasury) Reset()

func (*EventWithdrawFromTreasury) Size

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

func (*EventWithdrawFromTreasury) String

func (m *EventWithdrawFromTreasury) String() string

func (*EventWithdrawFromTreasury) Unmarshal

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

func (*EventWithdrawFromTreasury) XXX_DiscardUnknown

func (m *EventWithdrawFromTreasury) XXX_DiscardUnknown()

func (*EventWithdrawFromTreasury) XXX_Marshal

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

func (*EventWithdrawFromTreasury) XXX_Merge

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

func (*EventWithdrawFromTreasury) XXX_Size

func (m *EventWithdrawFromTreasury) XXX_Size() int

func (*EventWithdrawFromTreasury) XXX_Unmarshal

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

type EventWithdrawProposal

type EventWithdrawProposal struct {
	// proposal_id is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
}

EventWithdrawProposal is an event emitted when a proposal is withdrawn.

func (*EventWithdrawProposal) Descriptor

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

func (*EventWithdrawProposal) GetProposalId

func (m *EventWithdrawProposal) GetProposalId() uint64

func (*EventWithdrawProposal) Marshal

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

func (*EventWithdrawProposal) MarshalTo

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

func (*EventWithdrawProposal) MarshalToSizedBuffer

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

func (*EventWithdrawProposal) ProtoMessage

func (*EventWithdrawProposal) ProtoMessage()

func (*EventWithdrawProposal) Reset

func (m *EventWithdrawProposal) Reset()

func (*EventWithdrawProposal) Size

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

func (*EventWithdrawProposal) String

func (m *EventWithdrawProposal) String() string

func (*EventWithdrawProposal) Unmarshal

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

func (*EventWithdrawProposal) XXX_DiscardUnknown

func (m *EventWithdrawProposal) XXX_DiscardUnknown()

func (*EventWithdrawProposal) XXX_Marshal

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

func (*EventWithdrawProposal) XXX_Merge

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

func (*EventWithdrawProposal) XXX_Size

func (m *EventWithdrawProposal) XXX_Size() int

func (*EventWithdrawProposal) XXX_Unmarshal

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

type Exec

type Exec int32

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

const (
	// An empty value means that there should be a separate
	// MsgExec request for the proposal to execute.
	Exec_EXEC_UNSPECIFIED Exec = 0
	// Try to execute the proposal immediately.
	// If the proposal is not allowed per the DecisionPolicy,
	// the proposal will still be open and could
	// be executed at a later point.
	Exec_EXEC_TRY Exec = 1
)

func (Exec) EnumDescriptor

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

func (Exec) String

func (x Exec) String() string

type FoundationInfo

type FoundationInfo struct {
	// operator is the account address of the foundation's operator.
	Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
	// version is used to track changes to the foundation's membership structure that
	// would break existing proposals. Whenever any member is added or removed,
	// this version is incremented and will cause proposals based on older versions
	// of the foundation to fail
	Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// total_weight is the number of the foundation members.
	TotalWeight github_com_line_lbm_sdk_types.Dec `` /* 129-byte string literal not displayed */
	// decision_policy specifies the foundation's decision policy.
	DecisionPolicy *types.Any `protobuf:"bytes,4,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
}

FoundationInfo represents the high-level on-chain information for the foundation.

func (*FoundationInfo) Descriptor

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

func (*FoundationInfo) Equal

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

func (FoundationInfo) GetDecisionPolicy

func (i FoundationInfo) GetDecisionPolicy() DecisionPolicy

func (*FoundationInfo) Marshal

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

func (*FoundationInfo) MarshalTo

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

func (*FoundationInfo) MarshalToSizedBuffer

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

func (*FoundationInfo) ProtoMessage

func (*FoundationInfo) ProtoMessage()

func (*FoundationInfo) Reset

func (m *FoundationInfo) Reset()

func (*FoundationInfo) SetDecisionPolicy

func (i *FoundationInfo) SetDecisionPolicy(policy DecisionPolicy) error

func (*FoundationInfo) Size

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

func (*FoundationInfo) String

func (m *FoundationInfo) String() string

func (*FoundationInfo) Unmarshal

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

func (*FoundationInfo) UnpackInterfaces

func (i *FoundationInfo) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (FoundationInfo) WithDecisionPolicy

func (i FoundationInfo) WithDecisionPolicy(policy DecisionPolicy) *FoundationInfo

for the tests

func (*FoundationInfo) XXX_DiscardUnknown

func (m *FoundationInfo) XXX_DiscardUnknown()

func (*FoundationInfo) XXX_Marshal

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

func (*FoundationInfo) XXX_Merge

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

func (*FoundationInfo) XXX_Size

func (m *FoundationInfo) XXX_Size() int

func (*FoundationInfo) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params defines the module parameters at genesis.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// foundation is the foundation info.
	Foundation *FoundationInfo `protobuf:"bytes,2,opt,name=foundation,proto3" json:"foundation,omitempty"`
	// members is the list of the foundation members.
	Members []Member `protobuf:"bytes,3,rep,name=members,proto3" json:"members"`
	// it is used to get the next proposal ID.
	PreviousProposalId uint64 `protobuf:"varint,4,opt,name=previous_proposal_id,json=previousProposalId,proto3" json:"previous_proposal_id,omitempty"`
	// proposals is the list of proposals.
	Proposals []Proposal `protobuf:"bytes,5,rep,name=proposals,proto3" json:"proposals"`
	// votes is the list of votes.
	Votes []Vote `protobuf:"bytes,6,rep,name=votes,proto3" json:"votes"`
	// grants
	Authorizations []GrantAuthorization `protobuf:"bytes,7,rep,name=authorizations,proto3" json:"authorizations"`
}

GenesisState defines the foundation module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState creates a default GenesisState object

func (*GenesisState) Descriptor

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

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) UnpackInterfaces

func (data GenesisState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type GrantAuthorization

type GrantAuthorization struct {
	Granter       string     `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	Grantee       string     `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	Authorization *types.Any `protobuf:"bytes,3,opt,name=authorization,proto3" json:"authorization,omitempty"`
}

GrantAuthorization defines authorization grant to grantee via route.

func (*GrantAuthorization) Descriptor

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

func (*GrantAuthorization) Equal

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

func (GrantAuthorization) GetAuthorization

func (g GrantAuthorization) GetAuthorization() Authorization

func (*GrantAuthorization) Marshal

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

func (*GrantAuthorization) MarshalTo

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

func (*GrantAuthorization) MarshalToSizedBuffer

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

func (*GrantAuthorization) ProtoMessage

func (*GrantAuthorization) ProtoMessage()

func (*GrantAuthorization) Reset

func (m *GrantAuthorization) Reset()

func (*GrantAuthorization) SetAuthorization

func (g *GrantAuthorization) SetAuthorization(a Authorization) error

func (*GrantAuthorization) Size

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

func (*GrantAuthorization) String

func (m *GrantAuthorization) String() string

func (*GrantAuthorization) Unmarshal

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

func (GrantAuthorization) UnpackInterfaces

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

func (GrantAuthorization) WithAuthorization

func (g GrantAuthorization) WithAuthorization(authorization Authorization) *GrantAuthorization

for the tests

func (*GrantAuthorization) XXX_DiscardUnknown

func (m *GrantAuthorization) XXX_DiscardUnknown()

func (*GrantAuthorization) XXX_Marshal

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

func (*GrantAuthorization) XXX_Merge

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

func (*GrantAuthorization) XXX_Size

func (m *GrantAuthorization) XXX_Size() int

func (*GrantAuthorization) XXX_Unmarshal

func (m *GrantAuthorization) 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"`
	// participating is the flag which allows one to remove the member by setting the flag to false.
	Participating bool `protobuf:"varint,2,opt,name=participating,proto3" json:"participating,omitempty"`
	// metadata is any arbitrary metadata to attached to the member.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// added_at is a timestamp specifying when a member was added.
	AddedAt time.Time `protobuf:"bytes,4,opt,name=added_at,json=addedAt,proto3,stdtime" json:"added_at"`
}

Member represents a foundation member with an account address and metadata.

func (*Member) Descriptor

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

func (*Member) Equal

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

func (*Member) GetAddedAt

func (m *Member) GetAddedAt() time.Time

func (*Member) GetAddress

func (m *Member) GetAddress() string

func (*Member) GetMetadata

func (m *Member) GetMetadata() string

func (*Member) GetParticipating

func (m *Member) GetParticipating() bool

func (*Member) Marshal

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

func (*Member) MarshalTo

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

func (*Member) MarshalToSizedBuffer

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

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) Reset

func (m *Member) Reset()

func (*Member) Size

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

func (*Member) String

func (m *Member) String() string

func (*Member) Unmarshal

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

func (Member) ValidateBasic

func (m Member) ValidateBasic() error

func (*Member) XXX_DiscardUnknown

func (m *Member) XXX_DiscardUnknown()

func (*Member) XXX_Marshal

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

func (*Member) XXX_Merge

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

func (*Member) XXX_Size

func (m *Member) XXX_Size() int

func (*Member) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// FundTreasury defines a method to fund the treasury.
	FundTreasury(ctx context.Context, in *MsgFundTreasury, opts ...grpc.CallOption) (*MsgFundTreasuryResponse, error)
	// WithdrawFromTreasury defines a method to withdraw coins from the treasury.
	WithdrawFromTreasury(ctx context.Context, in *MsgWithdrawFromTreasury, opts ...grpc.CallOption) (*MsgWithdrawFromTreasuryResponse, error)
	// UpdateMembers updates the foundation members.
	UpdateMembers(ctx context.Context, in *MsgUpdateMembers, opts ...grpc.CallOption) (*MsgUpdateMembersResponse, error)
	// UpdateDecisionPolicy allows a group policy's decision policy to be updated.
	UpdateDecisionPolicy(ctx context.Context, in *MsgUpdateDecisionPolicy, opts ...grpc.CallOption) (*MsgUpdateDecisionPolicyResponse, error)
	// SubmitProposal submits a new proposal.
	SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error)
	// WithdrawProposal aborts a proposal.
	WithdrawProposal(ctx context.Context, in *MsgWithdrawProposal, opts ...grpc.CallOption) (*MsgWithdrawProposalResponse, error)
	// Vote allows a voter to vote on a proposal.
	Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error)
	// Exec executes a proposal.
	Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error)
	// LeaveFoundation allows a member to leave the foundation.
	LeaveFoundation(ctx context.Context, in *MsgLeaveFoundation, opts ...grpc.CallOption) (*MsgLeaveFoundationResponse, error)
	// Grant grants the provided authorization to the grantee with authority of
	// the foundation. If there is already a grant for the given
	// (granter, grantee, Authorization) tuple, then the grant will be overwritten.
	Grant(ctx context.Context, in *MsgGrant, opts ...grpc.CallOption) (*MsgGrantResponse, error)
	// Revoke revokes any authorization corresponding to the provided method name on the
	// granter that has been granted to the grantee.
	Revoke(ctx context.Context, in *MsgRevoke, opts ...grpc.CallOption) (*MsgRevokeResponse, 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 MsgExec

type MsgExec struct {
	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// signer is the account address used to execute the proposal.
	Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"`
}

MsgExec is the Msg/Exec request type.

func (*MsgExec) Descriptor

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

func (MsgExec) GetSigners

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

GetSigners implements Msg.

func (*MsgExec) Marshal

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

func (*MsgExec) MarshalTo

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

func (*MsgExec) MarshalToSizedBuffer

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

func (*MsgExec) ProtoMessage

func (*MsgExec) ProtoMessage()

func (*MsgExec) Reset

func (m *MsgExec) Reset()

func (*MsgExec) Size

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

func (*MsgExec) String

func (m *MsgExec) String() string

func (*MsgExec) Unmarshal

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

func (MsgExec) ValidateBasic

func (m MsgExec) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgExec) XXX_DiscardUnknown

func (m *MsgExec) XXX_DiscardUnknown()

func (*MsgExec) XXX_Marshal

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

func (*MsgExec) XXX_Merge

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

func (*MsgExec) XXX_Size

func (m *MsgExec) XXX_Size() int

func (*MsgExec) XXX_Unmarshal

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

type MsgExecResponse

type MsgExecResponse struct {
}

MsgExecResponse is the Msg/Exec request type.

func (*MsgExecResponse) Descriptor

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

func (*MsgExecResponse) Marshal

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

func (*MsgExecResponse) MarshalTo

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

func (*MsgExecResponse) MarshalToSizedBuffer

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

func (*MsgExecResponse) ProtoMessage

func (*MsgExecResponse) ProtoMessage()

func (*MsgExecResponse) Reset

func (m *MsgExecResponse) Reset()

func (*MsgExecResponse) Size

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

func (*MsgExecResponse) String

func (m *MsgExecResponse) String() string

func (*MsgExecResponse) Unmarshal

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

func (*MsgExecResponse) XXX_DiscardUnknown

func (m *MsgExecResponse) XXX_DiscardUnknown()

func (*MsgExecResponse) XXX_Marshal

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

func (*MsgExecResponse) XXX_Merge

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

func (*MsgExecResponse) XXX_Size

func (m *MsgExecResponse) XXX_Size() int

func (*MsgExecResponse) XXX_Unmarshal

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

type MsgFundTreasury

type MsgFundTreasury struct {
	From   string                              `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Amount github_com_line_lbm_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/line/lbm-sdk/types.Coins" json:"amount"`
}

MsgFundTreasury represents a message to fund the treasury.

func (*MsgFundTreasury) Descriptor

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

func (MsgFundTreasury) GetSigners

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

GetSigners implements Msg.

func (*MsgFundTreasury) Marshal

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

func (*MsgFundTreasury) MarshalTo

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

func (*MsgFundTreasury) MarshalToSizedBuffer

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

func (*MsgFundTreasury) ProtoMessage

func (*MsgFundTreasury) ProtoMessage()

func (*MsgFundTreasury) Reset

func (m *MsgFundTreasury) Reset()

func (*MsgFundTreasury) Size

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

func (*MsgFundTreasury) String

func (m *MsgFundTreasury) String() string

func (*MsgFundTreasury) Unmarshal

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

func (MsgFundTreasury) ValidateBasic

func (m MsgFundTreasury) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgFundTreasury) XXX_DiscardUnknown

func (m *MsgFundTreasury) XXX_DiscardUnknown()

func (*MsgFundTreasury) XXX_Marshal

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

func (*MsgFundTreasury) XXX_Merge

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

func (*MsgFundTreasury) XXX_Size

func (m *MsgFundTreasury) XXX_Size() int

func (*MsgFundTreasury) XXX_Unmarshal

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

type MsgFundTreasuryResponse

type MsgFundTreasuryResponse struct {
}

MsgFundTreasuryResponse defines the Msg/FundTreasury response type.

func (*MsgFundTreasuryResponse) Descriptor

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

func (*MsgFundTreasuryResponse) Marshal

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

func (*MsgFundTreasuryResponse) MarshalTo

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

func (*MsgFundTreasuryResponse) MarshalToSizedBuffer

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

func (*MsgFundTreasuryResponse) ProtoMessage

func (*MsgFundTreasuryResponse) ProtoMessage()

func (*MsgFundTreasuryResponse) Reset

func (m *MsgFundTreasuryResponse) Reset()

func (*MsgFundTreasuryResponse) Size

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

func (*MsgFundTreasuryResponse) String

func (m *MsgFundTreasuryResponse) String() string

func (*MsgFundTreasuryResponse) Unmarshal

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

func (*MsgFundTreasuryResponse) XXX_DiscardUnknown

func (m *MsgFundTreasuryResponse) XXX_DiscardUnknown()

func (*MsgFundTreasuryResponse) XXX_Marshal

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

func (*MsgFundTreasuryResponse) XXX_Merge

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

func (*MsgFundTreasuryResponse) XXX_Size

func (m *MsgFundTreasuryResponse) XXX_Size() int

func (*MsgFundTreasuryResponse) XXX_Unmarshal

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

type MsgGrant

type MsgGrant struct {
	Operator      string      `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
	Grantee       string      `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	Authorization *types1.Any `protobuf:"bytes,3,opt,name=authorization,proto3" json:"authorization,omitempty"`
}

MsgGrant is a request type for Grant method. It declares authorization to the grantee on behalf of the foundation.

func (*MsgGrant) Descriptor

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

func (MsgGrant) GetAuthorization

func (m MsgGrant) GetAuthorization() Authorization

func (MsgGrant) GetSigners

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

GetSigners implements Msg.

func (*MsgGrant) Marshal

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

func (*MsgGrant) MarshalTo

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

func (*MsgGrant) MarshalToSizedBuffer

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

func (*MsgGrant) ProtoMessage

func (*MsgGrant) ProtoMessage()

func (*MsgGrant) Reset

func (m *MsgGrant) Reset()

func (*MsgGrant) SetAuthorization

func (m *MsgGrant) SetAuthorization(a Authorization) error

func (*MsgGrant) Size

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

func (*MsgGrant) String

func (m *MsgGrant) String() string

func (*MsgGrant) Unmarshal

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

func (MsgGrant) UnpackInterfaces

func (m MsgGrant) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (MsgGrant) ValidateBasic

func (m MsgGrant) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgGrant) XXX_DiscardUnknown

func (m *MsgGrant) XXX_DiscardUnknown()

func (*MsgGrant) XXX_Marshal

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

func (*MsgGrant) XXX_Merge

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

func (*MsgGrant) XXX_Size

func (m *MsgGrant) XXX_Size() int

func (*MsgGrant) XXX_Unmarshal

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

type MsgGrantResponse

type MsgGrantResponse struct {
}

MsgGrantResponse defines the Msg/MsgGrant response type.

func (*MsgGrantResponse) Descriptor

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

func (*MsgGrantResponse) Marshal

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

func (*MsgGrantResponse) MarshalTo

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

func (*MsgGrantResponse) MarshalToSizedBuffer

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

func (*MsgGrantResponse) ProtoMessage

func (*MsgGrantResponse) ProtoMessage()

func (*MsgGrantResponse) Reset

func (m *MsgGrantResponse) Reset()

func (*MsgGrantResponse) Size

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

func (*MsgGrantResponse) String

func (m *MsgGrantResponse) String() string

func (*MsgGrantResponse) Unmarshal

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

func (*MsgGrantResponse) XXX_DiscardUnknown

func (m *MsgGrantResponse) XXX_DiscardUnknown()

func (*MsgGrantResponse) XXX_Marshal

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

func (*MsgGrantResponse) XXX_Merge

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

func (*MsgGrantResponse) XXX_Size

func (m *MsgGrantResponse) XXX_Size() int

func (*MsgGrantResponse) XXX_Unmarshal

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

type MsgLeaveFoundation

type MsgLeaveFoundation struct {
	// address is the account address of the foundation member.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

MsgLeaveFoundation is the Msg/LeaveFoundation request type.

func (*MsgLeaveFoundation) Descriptor

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

func (MsgLeaveFoundation) GetSigners

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

GetSigners implements Msg.

func (*MsgLeaveFoundation) Marshal

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

func (*MsgLeaveFoundation) MarshalTo

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

func (*MsgLeaveFoundation) MarshalToSizedBuffer

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

func (*MsgLeaveFoundation) ProtoMessage

func (*MsgLeaveFoundation) ProtoMessage()

func (*MsgLeaveFoundation) Reset

func (m *MsgLeaveFoundation) Reset()

func (*MsgLeaveFoundation) Size

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

func (*MsgLeaveFoundation) String

func (m *MsgLeaveFoundation) String() string

func (*MsgLeaveFoundation) Unmarshal

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

func (MsgLeaveFoundation) ValidateBasic

func (m MsgLeaveFoundation) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgLeaveFoundation) XXX_DiscardUnknown

func (m *MsgLeaveFoundation) XXX_DiscardUnknown()

func (*MsgLeaveFoundation) XXX_Marshal

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

func (*MsgLeaveFoundation) XXX_Merge

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

func (*MsgLeaveFoundation) XXX_Size

func (m *MsgLeaveFoundation) XXX_Size() int

func (*MsgLeaveFoundation) XXX_Unmarshal

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

type MsgLeaveFoundationResponse

type MsgLeaveFoundationResponse struct {
}

MsgLeaveFoundationResponse is the Msg/LeaveFoundation response type.

func (*MsgLeaveFoundationResponse) Descriptor

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

func (*MsgLeaveFoundationResponse) Marshal

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

func (*MsgLeaveFoundationResponse) MarshalTo

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

func (*MsgLeaveFoundationResponse) MarshalToSizedBuffer

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

func (*MsgLeaveFoundationResponse) ProtoMessage

func (*MsgLeaveFoundationResponse) ProtoMessage()

func (*MsgLeaveFoundationResponse) Reset

func (m *MsgLeaveFoundationResponse) Reset()

func (*MsgLeaveFoundationResponse) Size

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

func (*MsgLeaveFoundationResponse) String

func (m *MsgLeaveFoundationResponse) String() string

func (*MsgLeaveFoundationResponse) Unmarshal

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

func (*MsgLeaveFoundationResponse) XXX_DiscardUnknown

func (m *MsgLeaveFoundationResponse) XXX_DiscardUnknown()

func (*MsgLeaveFoundationResponse) XXX_Marshal

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

func (*MsgLeaveFoundationResponse) XXX_Merge

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

func (*MsgLeaveFoundationResponse) XXX_Size

func (m *MsgLeaveFoundationResponse) XXX_Size() int

func (*MsgLeaveFoundationResponse) XXX_Unmarshal

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

type MsgRevoke

type MsgRevoke struct {
	Operator   string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
	Grantee    string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	MsgTypeUrl string `protobuf:"bytes,3,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
}

MsgRevoke revokes any authorization with the provided sdk.Msg type to the grantee on behalf of the foundation.

func (*MsgRevoke) Descriptor

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

func (MsgRevoke) GetSigners

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

GetSigners implements Msg.

func (*MsgRevoke) Marshal

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

func (*MsgRevoke) MarshalTo

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

func (*MsgRevoke) MarshalToSizedBuffer

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

func (*MsgRevoke) ProtoMessage

func (*MsgRevoke) ProtoMessage()

func (*MsgRevoke) Reset

func (m *MsgRevoke) Reset()

func (*MsgRevoke) Size

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

func (*MsgRevoke) String

func (m *MsgRevoke) String() string

func (*MsgRevoke) Unmarshal

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

func (MsgRevoke) ValidateBasic

func (m MsgRevoke) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgRevoke) XXX_DiscardUnknown

func (m *MsgRevoke) XXX_DiscardUnknown()

func (*MsgRevoke) XXX_Marshal

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

func (*MsgRevoke) XXX_Merge

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

func (*MsgRevoke) XXX_Size

func (m *MsgRevoke) XXX_Size() int

func (*MsgRevoke) XXX_Unmarshal

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

type MsgRevokeResponse

type MsgRevokeResponse struct {
}

MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.

func (*MsgRevokeResponse) Descriptor

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

func (*MsgRevokeResponse) Marshal

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

func (*MsgRevokeResponse) MarshalTo

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

func (*MsgRevokeResponse) MarshalToSizedBuffer

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

func (*MsgRevokeResponse) ProtoMessage

func (*MsgRevokeResponse) ProtoMessage()

func (*MsgRevokeResponse) Reset

func (m *MsgRevokeResponse) Reset()

func (*MsgRevokeResponse) Size

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

func (*MsgRevokeResponse) String

func (m *MsgRevokeResponse) String() string

func (*MsgRevokeResponse) Unmarshal

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

func (*MsgRevokeResponse) XXX_DiscardUnknown

func (m *MsgRevokeResponse) XXX_DiscardUnknown()

func (*MsgRevokeResponse) XXX_Marshal

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

func (*MsgRevokeResponse) XXX_Merge

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

func (*MsgRevokeResponse) XXX_Size

func (m *MsgRevokeResponse) XXX_Size() int

func (*MsgRevokeResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// FundTreasury defines a method to fund the treasury.
	FundTreasury(context.Context, *MsgFundTreasury) (*MsgFundTreasuryResponse, error)
	// WithdrawFromTreasury defines a method to withdraw coins from the treasury.
	WithdrawFromTreasury(context.Context, *MsgWithdrawFromTreasury) (*MsgWithdrawFromTreasuryResponse, error)
	// UpdateMembers updates the foundation members.
	UpdateMembers(context.Context, *MsgUpdateMembers) (*MsgUpdateMembersResponse, error)
	// UpdateDecisionPolicy allows a group policy's decision policy to be updated.
	UpdateDecisionPolicy(context.Context, *MsgUpdateDecisionPolicy) (*MsgUpdateDecisionPolicyResponse, error)
	// SubmitProposal submits a new proposal.
	SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error)
	// WithdrawProposal aborts a proposal.
	WithdrawProposal(context.Context, *MsgWithdrawProposal) (*MsgWithdrawProposalResponse, error)
	// Vote allows a voter to vote on a proposal.
	Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
	// Exec executes a proposal.
	Exec(context.Context, *MsgExec) (*MsgExecResponse, error)
	// LeaveFoundation allows a member to leave the foundation.
	LeaveFoundation(context.Context, *MsgLeaveFoundation) (*MsgLeaveFoundationResponse, error)
	// Grant grants the provided authorization to the grantee with authority of
	// the foundation. If there is already a grant for the given
	// (granter, grantee, Authorization) tuple, then the grant will be overwritten.
	Grant(context.Context, *MsgGrant) (*MsgGrantResponse, error)
	// Revoke revokes any authorization corresponding to the provided method name on the
	// granter that has been granted to the grantee.
	Revoke(context.Context, *MsgRevoke) (*MsgRevokeResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSubmitProposal

type MsgSubmitProposal struct {
	// proposers are the account addresses of the proposers.
	// Proposers signatures will be counted as yes votes.
	Proposers []string `protobuf:"bytes,1,rep,name=proposers,proto3" json:"proposers,omitempty"`
	// metadata is any arbitrary metadata to attached to the proposal.
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// messages is a list of `sdk.Msg`s that will be executed if the proposal passes.
	Messages []*types1.Any `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`
	// exec defines the mode of execution of the proposal,
	// whether it should be executed immediately on creation or not.
	// If so, proposers signatures are considered as Yes votes.
	Exec Exec `protobuf:"varint,4,opt,name=exec,proto3,enum=lbm.foundation.v1.Exec" json:"exec,omitempty"`
}

MsgSubmitProposal is the Msg/SubmitProposal request type.

func (*MsgSubmitProposal) Descriptor

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

func (MsgSubmitProposal) GetMsgs

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

func (MsgSubmitProposal) GetSigners

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

GetSigners implements Msg.

func (*MsgSubmitProposal) Marshal

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

func (*MsgSubmitProposal) MarshalTo

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

func (*MsgSubmitProposal) MarshalToSizedBuffer

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

func (*MsgSubmitProposal) ProtoMessage

func (*MsgSubmitProposal) ProtoMessage()

func (*MsgSubmitProposal) Reset

func (m *MsgSubmitProposal) Reset()

func (*MsgSubmitProposal) SetMsgs

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

func (*MsgSubmitProposal) Size

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

func (*MsgSubmitProposal) String

func (m *MsgSubmitProposal) String() string

func (*MsgSubmitProposal) Unmarshal

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

func (MsgSubmitProposal) UnpackInterfaces

func (m MsgSubmitProposal) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (MsgSubmitProposal) ValidateBasic

func (m MsgSubmitProposal) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgSubmitProposal) XXX_DiscardUnknown

func (m *MsgSubmitProposal) XXX_DiscardUnknown()

func (*MsgSubmitProposal) XXX_Marshal

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

func (*MsgSubmitProposal) XXX_Merge

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

func (*MsgSubmitProposal) XXX_Size

func (m *MsgSubmitProposal) XXX_Size() int

func (*MsgSubmitProposal) XXX_Unmarshal

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

type MsgSubmitProposalResponse

type MsgSubmitProposalResponse struct {
	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
}

MsgSubmitProposalResponse is the Msg/SubmitProposal response type.

func (*MsgSubmitProposalResponse) Descriptor

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

func (*MsgSubmitProposalResponse) Marshal

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

func (*MsgSubmitProposalResponse) MarshalTo

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

func (*MsgSubmitProposalResponse) MarshalToSizedBuffer

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

func (*MsgSubmitProposalResponse) ProtoMessage

func (*MsgSubmitProposalResponse) ProtoMessage()

func (*MsgSubmitProposalResponse) Reset

func (m *MsgSubmitProposalResponse) Reset()

func (*MsgSubmitProposalResponse) Size

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

func (*MsgSubmitProposalResponse) String

func (m *MsgSubmitProposalResponse) String() string

func (*MsgSubmitProposalResponse) Unmarshal

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

func (*MsgSubmitProposalResponse) XXX_DiscardUnknown

func (m *MsgSubmitProposalResponse) XXX_DiscardUnknown()

func (*MsgSubmitProposalResponse) XXX_Marshal

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

func (*MsgSubmitProposalResponse) XXX_Merge

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

func (*MsgSubmitProposalResponse) XXX_Size

func (m *MsgSubmitProposalResponse) XXX_Size() int

func (*MsgSubmitProposalResponse) XXX_Unmarshal

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

type MsgUpdateDecisionPolicy

type MsgUpdateDecisionPolicy struct {
	// operator is the account address of the foundation operator.
	Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
	// decision_policy is the updated decision policy.
	DecisionPolicy *types1.Any `protobuf:"bytes,2,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
}

MsgUpdateDecisionPolicy is the Msg/UpdateDecisionPolicy request type.

func (*MsgUpdateDecisionPolicy) Descriptor

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

func (MsgUpdateDecisionPolicy) GetDecisionPolicy

func (m MsgUpdateDecisionPolicy) GetDecisionPolicy() DecisionPolicy

func (MsgUpdateDecisionPolicy) GetSigners

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

GetSigners implements Msg.

func (*MsgUpdateDecisionPolicy) Marshal

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

func (*MsgUpdateDecisionPolicy) MarshalTo

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

func (*MsgUpdateDecisionPolicy) MarshalToSizedBuffer

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

func (*MsgUpdateDecisionPolicy) ProtoMessage

func (*MsgUpdateDecisionPolicy) ProtoMessage()

func (*MsgUpdateDecisionPolicy) Reset

func (m *MsgUpdateDecisionPolicy) Reset()

func (*MsgUpdateDecisionPolicy) SetDecisionPolicy

func (m *MsgUpdateDecisionPolicy) SetDecisionPolicy(policy DecisionPolicy) error

func (*MsgUpdateDecisionPolicy) Size

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

func (*MsgUpdateDecisionPolicy) String

func (m *MsgUpdateDecisionPolicy) String() string

func (*MsgUpdateDecisionPolicy) Unmarshal

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

func (MsgUpdateDecisionPolicy) UnpackInterfaces

func (m MsgUpdateDecisionPolicy) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (MsgUpdateDecisionPolicy) ValidateBasic

func (m MsgUpdateDecisionPolicy) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgUpdateDecisionPolicy) XXX_DiscardUnknown

func (m *MsgUpdateDecisionPolicy) XXX_DiscardUnknown()

func (*MsgUpdateDecisionPolicy) XXX_Marshal

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

func (*MsgUpdateDecisionPolicy) XXX_Merge

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

func (*MsgUpdateDecisionPolicy) XXX_Size

func (m *MsgUpdateDecisionPolicy) XXX_Size() int

func (*MsgUpdateDecisionPolicy) XXX_Unmarshal

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

type MsgUpdateDecisionPolicyResponse

type MsgUpdateDecisionPolicyResponse struct {
}

MsgUpdateDecisionPolicyResponse is the Msg/UpdateDecisionPolicy response type.

func (*MsgUpdateDecisionPolicyResponse) Descriptor

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

func (*MsgUpdateDecisionPolicyResponse) Marshal

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

func (*MsgUpdateDecisionPolicyResponse) MarshalTo

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

func (*MsgUpdateDecisionPolicyResponse) MarshalToSizedBuffer

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

func (*MsgUpdateDecisionPolicyResponse) ProtoMessage

func (*MsgUpdateDecisionPolicyResponse) ProtoMessage()

func (*MsgUpdateDecisionPolicyResponse) Reset

func (*MsgUpdateDecisionPolicyResponse) Size

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

func (*MsgUpdateDecisionPolicyResponse) String

func (*MsgUpdateDecisionPolicyResponse) Unmarshal

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

func (*MsgUpdateDecisionPolicyResponse) XXX_DiscardUnknown

func (m *MsgUpdateDecisionPolicyResponse) XXX_DiscardUnknown()

func (*MsgUpdateDecisionPolicyResponse) XXX_Marshal

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

func (*MsgUpdateDecisionPolicyResponse) XXX_Merge

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

func (*MsgUpdateDecisionPolicyResponse) XXX_Size

func (m *MsgUpdateDecisionPolicyResponse) XXX_Size() int

func (*MsgUpdateDecisionPolicyResponse) XXX_Unmarshal

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

type MsgUpdateMembers

type MsgUpdateMembers struct {
	// operator is the account address of the foundation operator.
	Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
	// member_updates is the list of members to update,
	// set participating to false to remove a member.
	MemberUpdates []Member `protobuf:"bytes,2,rep,name=member_updates,json=memberUpdates,proto3" json:"member_updates"`
}

MsgUpdateMembers is the Msg/UpdateMembers request type.

func (*MsgUpdateMembers) Descriptor

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

func (MsgUpdateMembers) GetSigners

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

GetSigners implements Msg.

func (*MsgUpdateMembers) Marshal

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

func (*MsgUpdateMembers) MarshalTo

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

func (*MsgUpdateMembers) MarshalToSizedBuffer

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

func (*MsgUpdateMembers) ProtoMessage

func (*MsgUpdateMembers) ProtoMessage()

func (*MsgUpdateMembers) Reset

func (m *MsgUpdateMembers) Reset()

func (*MsgUpdateMembers) Size

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

func (*MsgUpdateMembers) String

func (m *MsgUpdateMembers) String() string

func (*MsgUpdateMembers) Unmarshal

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

func (MsgUpdateMembers) ValidateBasic

func (m MsgUpdateMembers) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgUpdateMembers) XXX_DiscardUnknown

func (m *MsgUpdateMembers) XXX_DiscardUnknown()

func (*MsgUpdateMembers) XXX_Marshal

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

func (*MsgUpdateMembers) XXX_Merge

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

func (*MsgUpdateMembers) XXX_Size

func (m *MsgUpdateMembers) XXX_Size() int

func (*MsgUpdateMembers) XXX_Unmarshal

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

type MsgUpdateMembersResponse

type MsgUpdateMembersResponse struct {
}

MsgUpdateMembersResponse is the Msg/UpdateMembers response type.

func (*MsgUpdateMembersResponse) Descriptor

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

func (*MsgUpdateMembersResponse) Marshal

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

func (*MsgUpdateMembersResponse) MarshalTo

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

func (*MsgUpdateMembersResponse) MarshalToSizedBuffer

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

func (*MsgUpdateMembersResponse) ProtoMessage

func (*MsgUpdateMembersResponse) ProtoMessage()

func (*MsgUpdateMembersResponse) Reset

func (m *MsgUpdateMembersResponse) Reset()

func (*MsgUpdateMembersResponse) Size

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

func (*MsgUpdateMembersResponse) String

func (m *MsgUpdateMembersResponse) String() string

func (*MsgUpdateMembersResponse) Unmarshal

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

func (*MsgUpdateMembersResponse) XXX_DiscardUnknown

func (m *MsgUpdateMembersResponse) XXX_DiscardUnknown()

func (*MsgUpdateMembersResponse) XXX_Marshal

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

func (*MsgUpdateMembersResponse) XXX_Merge

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

func (*MsgUpdateMembersResponse) XXX_Size

func (m *MsgUpdateMembersResponse) XXX_Size() int

func (*MsgUpdateMembersResponse) XXX_Unmarshal

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

type MsgVote

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

MsgVote is the Msg/Vote request type.

func (*MsgVote) Descriptor

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

func (MsgVote) GetSigners

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

GetSigners implements Msg.

func (*MsgVote) Marshal

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

func (*MsgVote) MarshalTo

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

func (*MsgVote) MarshalToSizedBuffer

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

func (*MsgVote) ProtoMessage

func (*MsgVote) ProtoMessage()

func (*MsgVote) Reset

func (m *MsgVote) Reset()

func (*MsgVote) Size

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

func (*MsgVote) String

func (m *MsgVote) String() string

func (*MsgVote) Unmarshal

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

func (MsgVote) ValidateBasic

func (m MsgVote) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgVote) XXX_DiscardUnknown

func (m *MsgVote) XXX_DiscardUnknown()

func (*MsgVote) XXX_Marshal

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

func (*MsgVote) XXX_Merge

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

func (*MsgVote) XXX_Size

func (m *MsgVote) XXX_Size() int

func (*MsgVote) XXX_Unmarshal

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

type MsgVoteResponse

type MsgVoteResponse struct {
}

MsgVoteResponse is the Msg/Vote response type.

func (*MsgVoteResponse) Descriptor

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

func (*MsgVoteResponse) Marshal

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

func (*MsgVoteResponse) MarshalTo

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

func (*MsgVoteResponse) MarshalToSizedBuffer

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

func (*MsgVoteResponse) ProtoMessage

func (*MsgVoteResponse) ProtoMessage()

func (*MsgVoteResponse) Reset

func (m *MsgVoteResponse) Reset()

func (*MsgVoteResponse) Size

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

func (*MsgVoteResponse) String

func (m *MsgVoteResponse) String() string

func (*MsgVoteResponse) Unmarshal

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

func (*MsgVoteResponse) XXX_DiscardUnknown

func (m *MsgVoteResponse) XXX_DiscardUnknown()

func (*MsgVoteResponse) XXX_Marshal

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

func (*MsgVoteResponse) XXX_Merge

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

func (*MsgVoteResponse) XXX_Size

func (m *MsgVoteResponse) XXX_Size() int

func (*MsgVoteResponse) XXX_Unmarshal

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

type MsgWithdrawFromTreasury

type MsgWithdrawFromTreasury struct {
	Operator string                              `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
	To       string                              `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Amount   github_com_line_lbm_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/line/lbm-sdk/types.Coins" json:"amount"`
}

MsgWithdrawFromTreasury represents a message to withdraw coins from the treasury.

func (*MsgWithdrawFromTreasury) Descriptor

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

func (MsgWithdrawFromTreasury) GetSigners

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

GetSigners implements Msg.

func (*MsgWithdrawFromTreasury) Marshal

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

func (*MsgWithdrawFromTreasury) MarshalTo

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

func (*MsgWithdrawFromTreasury) MarshalToSizedBuffer

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

func (*MsgWithdrawFromTreasury) ProtoMessage

func (*MsgWithdrawFromTreasury) ProtoMessage()

func (*MsgWithdrawFromTreasury) Reset

func (m *MsgWithdrawFromTreasury) Reset()

func (*MsgWithdrawFromTreasury) Size

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

func (*MsgWithdrawFromTreasury) String

func (m *MsgWithdrawFromTreasury) String() string

func (*MsgWithdrawFromTreasury) Unmarshal

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

func (MsgWithdrawFromTreasury) ValidateBasic

func (m MsgWithdrawFromTreasury) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgWithdrawFromTreasury) XXX_DiscardUnknown

func (m *MsgWithdrawFromTreasury) XXX_DiscardUnknown()

func (*MsgWithdrawFromTreasury) XXX_Marshal

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

func (*MsgWithdrawFromTreasury) XXX_Merge

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

func (*MsgWithdrawFromTreasury) XXX_Size

func (m *MsgWithdrawFromTreasury) XXX_Size() int

func (*MsgWithdrawFromTreasury) XXX_Unmarshal

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

type MsgWithdrawFromTreasuryResponse

type MsgWithdrawFromTreasuryResponse struct {
}

MsgWithdrawFromTreasuryResponse defines the Msg/WithdrawFromTreasury response type.

func (*MsgWithdrawFromTreasuryResponse) Descriptor

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

func (*MsgWithdrawFromTreasuryResponse) Marshal

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

func (*MsgWithdrawFromTreasuryResponse) MarshalTo

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

func (*MsgWithdrawFromTreasuryResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawFromTreasuryResponse) ProtoMessage

func (*MsgWithdrawFromTreasuryResponse) ProtoMessage()

func (*MsgWithdrawFromTreasuryResponse) Reset

func (*MsgWithdrawFromTreasuryResponse) Size

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

func (*MsgWithdrawFromTreasuryResponse) String

func (*MsgWithdrawFromTreasuryResponse) Unmarshal

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

func (*MsgWithdrawFromTreasuryResponse) XXX_DiscardUnknown

func (m *MsgWithdrawFromTreasuryResponse) XXX_DiscardUnknown()

func (*MsgWithdrawFromTreasuryResponse) XXX_Marshal

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

func (*MsgWithdrawFromTreasuryResponse) XXX_Merge

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

func (*MsgWithdrawFromTreasuryResponse) XXX_Size

func (m *MsgWithdrawFromTreasuryResponse) XXX_Size() int

func (*MsgWithdrawFromTreasuryResponse) XXX_Unmarshal

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

type MsgWithdrawProposal

type MsgWithdrawProposal struct {
	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// address of one of the proposer of the proposal.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

MsgWithdrawProposal is the Msg/WithdrawProposal request type.

func (*MsgWithdrawProposal) Descriptor

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

func (MsgWithdrawProposal) GetSigners

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

GetSigners implements Msg.

func (*MsgWithdrawProposal) Marshal

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

func (*MsgWithdrawProposal) MarshalTo

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

func (*MsgWithdrawProposal) MarshalToSizedBuffer

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

func (*MsgWithdrawProposal) ProtoMessage

func (*MsgWithdrawProposal) ProtoMessage()

func (*MsgWithdrawProposal) Reset

func (m *MsgWithdrawProposal) Reset()

func (*MsgWithdrawProposal) Size

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

func (*MsgWithdrawProposal) String

func (m *MsgWithdrawProposal) String() string

func (*MsgWithdrawProposal) Unmarshal

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

func (MsgWithdrawProposal) ValidateBasic

func (m MsgWithdrawProposal) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgWithdrawProposal) XXX_DiscardUnknown

func (m *MsgWithdrawProposal) XXX_DiscardUnknown()

func (*MsgWithdrawProposal) XXX_Marshal

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

func (*MsgWithdrawProposal) XXX_Merge

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

func (*MsgWithdrawProposal) XXX_Size

func (m *MsgWithdrawProposal) XXX_Size() int

func (*MsgWithdrawProposal) XXX_Unmarshal

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

type MsgWithdrawProposalResponse

type MsgWithdrawProposalResponse struct {
}

MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type.

func (*MsgWithdrawProposalResponse) Descriptor

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

func (*MsgWithdrawProposalResponse) Marshal

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

func (*MsgWithdrawProposalResponse) MarshalTo

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

func (*MsgWithdrawProposalResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawProposalResponse) ProtoMessage

func (*MsgWithdrawProposalResponse) ProtoMessage()

func (*MsgWithdrawProposalResponse) Reset

func (m *MsgWithdrawProposalResponse) Reset()

func (*MsgWithdrawProposalResponse) Size

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

func (*MsgWithdrawProposalResponse) String

func (m *MsgWithdrawProposalResponse) String() string

func (*MsgWithdrawProposalResponse) Unmarshal

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

func (*MsgWithdrawProposalResponse) XXX_DiscardUnknown

func (m *MsgWithdrawProposalResponse) XXX_DiscardUnknown()

func (*MsgWithdrawProposalResponse) XXX_Marshal

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

func (*MsgWithdrawProposalResponse) XXX_Merge

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

func (*MsgWithdrawProposalResponse) XXX_Size

func (m *MsgWithdrawProposalResponse) XXX_Size() int

func (*MsgWithdrawProposalResponse) XXX_Unmarshal

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

type Params

type Params struct {
	Enabled       bool                              `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	FoundationTax github_com_line_lbm_sdk_types.Dec `` /* 135-byte string literal not displayed */
}

Params defines the parameters for the foundation module.

func DefaultParams

func DefaultParams() *Params

func (*Params) Descriptor

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

func (*Params) Equal

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

func (*Params) GetEnabled

func (m *Params) GetEnabled() bool

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type PercentageDecisionPolicy

type PercentageDecisionPolicy struct {
	// percentage is the minimum percentage the sum of yes votes must meet for a proposal to succeed.
	Percentage github_com_line_lbm_sdk_types.Dec `protobuf:"bytes,1,opt,name=percentage,proto3,customtype=github.com/line/lbm-sdk/types.Dec" json:"percentage"`
	// windows defines the different windows for voting and execution.
	Windows *DecisionPolicyWindows `protobuf:"bytes,2,opt,name=windows,proto3" json:"windows,omitempty"`
}

PercentageDecisionPolicy implements the DecisionPolicy interface

func (PercentageDecisionPolicy) Allow

func (p PercentageDecisionPolicy) Allow(result TallyResult, totalWeight sdk.Dec, sinceSubmission time.Duration) (*DecisionPolicyResult, error)

func (*PercentageDecisionPolicy) Descriptor

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

func (*PercentageDecisionPolicy) Equal

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

func (PercentageDecisionPolicy) GetVotingPeriod

func (p PercentageDecisionPolicy) GetVotingPeriod() time.Duration

func (*PercentageDecisionPolicy) GetWindows

func (*PercentageDecisionPolicy) Marshal

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

func (*PercentageDecisionPolicy) MarshalTo

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

func (*PercentageDecisionPolicy) MarshalToSizedBuffer

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

func (*PercentageDecisionPolicy) ProtoMessage

func (*PercentageDecisionPolicy) ProtoMessage()

func (*PercentageDecisionPolicy) Reset

func (m *PercentageDecisionPolicy) Reset()

func (*PercentageDecisionPolicy) Size

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

func (*PercentageDecisionPolicy) String

func (m *PercentageDecisionPolicy) String() string

func (*PercentageDecisionPolicy) Unmarshal

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

func (PercentageDecisionPolicy) Validate

func (p PercentageDecisionPolicy) Validate(config Config) error

func (PercentageDecisionPolicy) ValidateBasic

func (p PercentageDecisionPolicy) ValidateBasic() error

func (*PercentageDecisionPolicy) XXX_DiscardUnknown

func (m *PercentageDecisionPolicy) XXX_DiscardUnknown()

func (*PercentageDecisionPolicy) XXX_Marshal

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

func (*PercentageDecisionPolicy) XXX_Merge

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

func (*PercentageDecisionPolicy) XXX_Size

func (m *PercentageDecisionPolicy) XXX_Size() int

func (*PercentageDecisionPolicy) XXX_Unmarshal

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

type Proposal

type Proposal struct {
	// id is the unique id of the proposal.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// metadata is any arbitrary metadata to attached to the proposal.
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// proposers are the account addresses of the proposers.
	Proposers []string `protobuf:"bytes,3,rep,name=proposers,proto3" json:"proposers,omitempty"`
	// submit_time is a timestamp specifying when a proposal was submitted.
	SubmitTime time.Time `protobuf:"bytes,4,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time"`
	// foundation_version tracks the version of the foundation that this proposal corresponds to.
	// When foundation info is changed, existing proposals from previous foundation versions will become invalid.
	FoundationVersion uint64 `protobuf:"varint,5,opt,name=foundation_version,json=foundationVersion,proto3" json:"foundation_version,omitempty"`
	// status represents the high level position in the life cycle of the proposal. Initial value is Submitted.
	Status ProposalStatus `protobuf:"varint,6,opt,name=status,proto3,enum=lbm.foundation.v1.ProposalStatus" 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 ProposalResult `protobuf:"varint,7,opt,name=result,proto3,enum=lbm.foundation.v1.ProposalResult" json:"result,omitempty"`
	// final_tally_result contains the sums of all votes for this
	// proposal for each vote option, after tallying. When querying a proposal
	// via gRPC, this field is not populated until the proposal's voting period
	// has ended.
	FinalTallyResult TallyResult `protobuf:"bytes,8,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result"`
	// voting_period_end is the timestamp before which voting must be done.
	// Unless a successfull MsgExec is called before (to execute a proposal whose
	// tally is successful before the voting period ends), tallying will be done
	// at this point, and the `final_tally_result`, as well
	// as `status` and `result` fields will be accordingly updated.
	VotingPeriodEnd time.Time `protobuf:"bytes,9,opt,name=voting_period_end,json=votingPeriodEnd,proto3,stdtime" json:"voting_period_end"`
	// executor_result is the final result based on the votes and election rule. Initial value is NotRun.
	ExecutorResult ProposalExecutorResult `` /* 151-byte string literal not displayed */
	// messages is a list of Msgs that will be executed if the proposal passes.
	Messages []*types.Any `protobuf:"bytes,11,rep,name=messages,proto3" json:"messages,omitempty"`
}

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

func (*Proposal) Descriptor

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

func (*Proposal) Equal

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

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 codectypes.AnyUnpacker) error

func (Proposal) WithMsgs

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

for the tests

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 ProposalExecutorResult

type ProposalExecutorResult int32

ProposalExecutorResult defines types of proposal executor results.

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

func (ProposalExecutorResult) EnumDescriptor

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

func (ProposalExecutorResult) String

func (x ProposalExecutorResult) String() string

type ProposalResult

type ProposalResult int32

ProposalResult defines types of proposal results.

const (
	// An empty value is invalid and not allowed
	PROPOSAL_RESULT_UNSPECIFIED ProposalResult = 0
	// Until a final tally has happened the status is unfinalized
	PROPOSAL_RESULT_UNFINALIZED ProposalResult = 1
	// Final result of the tally
	PROPOSAL_RESULT_ACCEPTED ProposalResult = 2
	// Final result of the tally
	PROPOSAL_RESULT_REJECTED ProposalResult = 3
)

func (ProposalResult) EnumDescriptor

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

func (ProposalResult) String

func (x ProposalResult) String() string

type ProposalStatus

type ProposalStatus int32

ProposalStatus defines proposal statuses.

const (
	// An empty value is invalid and not allowed.
	PROPOSAL_STATUS_UNSPECIFIED ProposalStatus = 0
	// Initial status of a proposal when persisted.
	PROPOSAL_STATUS_SUBMITTED ProposalStatus = 1
	// Final status of a proposal when the final tally was executed.
	PROPOSAL_STATUS_CLOSED ProposalStatus = 2
	// Final status of a proposal when the group was modified before the final tally.
	PROPOSAL_STATUS_ABORTED ProposalStatus = 3
	// A proposal can be deleted before the voting start time by the owner. When this happens the final status
	// is Withdrawn.
	PROPOSAL_STATUS_WITHDRAWN ProposalStatus = 4
)

func (ProposalStatus) EnumDescriptor

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

func (ProposalStatus) String

func (x ProposalStatus) String() string

type QueryClient

type QueryClient interface {
	// Params queries the module params.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Treasury queries the foundation treasury.
	Treasury(ctx context.Context, in *QueryTreasuryRequest, opts ...grpc.CallOption) (*QueryTreasuryResponse, error)
	// FoundationInfo queries foundation info.
	FoundationInfo(ctx context.Context, in *QueryFoundationInfoRequest, opts ...grpc.CallOption) (*QueryFoundationInfoResponse, error)
	// Member queries a member of the foundation
	Member(ctx context.Context, in *QueryMemberRequest, opts ...grpc.CallOption) (*QueryMemberResponse, error)
	// Members queries members of the foundation
	Members(ctx context.Context, in *QueryMembersRequest, opts ...grpc.CallOption) (*QueryMembersResponse, error)
	// Proposal queries a proposal based on proposal id.
	Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error)
	// Proposals queries all proposals.
	Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error)
	// Vote queries a vote by proposal id and voter.
	Vote(ctx context.Context, in *QueryVoteRequest, opts ...grpc.CallOption) (*QueryVoteResponse, error)
	// Votes queries a vote by proposal.
	Votes(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error)
	// TallyResult queries the tally of a proposal votes.
	TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error)
	// Returns list of authorizations, granted to the grantee.
	Grants(ctx context.Context, in *QueryGrantsRequest, opts ...grpc.CallOption) (*QueryGrantsResponse, 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 QueryFoundationInfoRequest

type QueryFoundationInfoRequest struct {
}

QueryFoundationInfoRequest is the Query/FoundationInfo request type.

func (*QueryFoundationInfoRequest) Descriptor

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

func (*QueryFoundationInfoRequest) Marshal

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

func (*QueryFoundationInfoRequest) MarshalTo

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

func (*QueryFoundationInfoRequest) MarshalToSizedBuffer

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

func (*QueryFoundationInfoRequest) ProtoMessage

func (*QueryFoundationInfoRequest) ProtoMessage()

func (*QueryFoundationInfoRequest) Reset

func (m *QueryFoundationInfoRequest) Reset()

func (*QueryFoundationInfoRequest) Size

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

func (*QueryFoundationInfoRequest) String

func (m *QueryFoundationInfoRequest) String() string

func (*QueryFoundationInfoRequest) Unmarshal

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

func (*QueryFoundationInfoRequest) XXX_DiscardUnknown

func (m *QueryFoundationInfoRequest) XXX_DiscardUnknown()

func (*QueryFoundationInfoRequest) XXX_Marshal

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

func (*QueryFoundationInfoRequest) XXX_Merge

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

func (*QueryFoundationInfoRequest) XXX_Size

func (m *QueryFoundationInfoRequest) XXX_Size() int

func (*QueryFoundationInfoRequest) XXX_Unmarshal

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

type QueryFoundationInfoResponse

type QueryFoundationInfoResponse struct {
	// info is the FoundationInfo for the foundation.
	Info FoundationInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info"`
}

QueryFoundationInfoResponse is the Query/FoundationInfo response type.

func (*QueryFoundationInfoResponse) Descriptor

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

func (*QueryFoundationInfoResponse) GetInfo

func (*QueryFoundationInfoResponse) Marshal

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

func (*QueryFoundationInfoResponse) MarshalTo

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

func (*QueryFoundationInfoResponse) MarshalToSizedBuffer

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

func (*QueryFoundationInfoResponse) ProtoMessage

func (*QueryFoundationInfoResponse) ProtoMessage()

func (*QueryFoundationInfoResponse) Reset

func (m *QueryFoundationInfoResponse) Reset()

func (*QueryFoundationInfoResponse) Size

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

func (*QueryFoundationInfoResponse) String

func (m *QueryFoundationInfoResponse) String() string

func (*QueryFoundationInfoResponse) Unmarshal

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

func (*QueryFoundationInfoResponse) XXX_DiscardUnknown

func (m *QueryFoundationInfoResponse) XXX_DiscardUnknown()

func (*QueryFoundationInfoResponse) XXX_Marshal

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

func (*QueryFoundationInfoResponse) XXX_Merge

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

func (*QueryFoundationInfoResponse) XXX_Size

func (m *QueryFoundationInfoResponse) XXX_Size() int

func (*QueryFoundationInfoResponse) XXX_Unmarshal

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

type QueryGrantsRequest

type QueryGrantsRequest struct {
	Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// Optional, msg_type_url, when set, will query only grants matching given msg type.
	MsgTypeUrl string `protobuf:"bytes,2,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGrantsRequest is the request type for the Query/Grants RPC method.

func (*QueryGrantsRequest) Descriptor

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

func (*QueryGrantsRequest) GetGrantee

func (m *QueryGrantsRequest) GetGrantee() string

func (*QueryGrantsRequest) GetMsgTypeUrl

func (m *QueryGrantsRequest) GetMsgTypeUrl() string

func (*QueryGrantsRequest) GetPagination

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

func (*QueryGrantsRequest) Marshal

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

func (*QueryGrantsRequest) MarshalTo

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

func (*QueryGrantsRequest) MarshalToSizedBuffer

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

func (*QueryGrantsRequest) ProtoMessage

func (*QueryGrantsRequest) ProtoMessage()

func (*QueryGrantsRequest) Reset

func (m *QueryGrantsRequest) Reset()

func (*QueryGrantsRequest) Size

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

func (*QueryGrantsRequest) String

func (m *QueryGrantsRequest) String() string

func (*QueryGrantsRequest) Unmarshal

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

func (*QueryGrantsRequest) XXX_DiscardUnknown

func (m *QueryGrantsRequest) XXX_DiscardUnknown()

func (*QueryGrantsRequest) XXX_Marshal

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

func (*QueryGrantsRequest) XXX_Merge

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

func (*QueryGrantsRequest) XXX_Size

func (m *QueryGrantsRequest) XXX_Size() int

func (*QueryGrantsRequest) XXX_Unmarshal

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

type QueryGrantsResponse

type QueryGrantsResponse struct {
	// authorizations is a list of grants granted for grantee.
	Authorizations []*types1.Any `protobuf:"bytes,1,rep,name=authorizations,proto3" json:"authorizations,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGrantsResponse is the response type for the Query/Grants RPC method.

func (*QueryGrantsResponse) Descriptor

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

func (*QueryGrantsResponse) GetAuthorizations

func (m *QueryGrantsResponse) GetAuthorizations() []*types1.Any

func (*QueryGrantsResponse) GetPagination

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

func (*QueryGrantsResponse) Marshal

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

func (*QueryGrantsResponse) MarshalTo

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

func (*QueryGrantsResponse) MarshalToSizedBuffer

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

func (*QueryGrantsResponse) ProtoMessage

func (*QueryGrantsResponse) ProtoMessage()

func (*QueryGrantsResponse) Reset

func (m *QueryGrantsResponse) Reset()

func (*QueryGrantsResponse) Size

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

func (*QueryGrantsResponse) String

func (m *QueryGrantsResponse) String() string

func (*QueryGrantsResponse) Unmarshal

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

func (*QueryGrantsResponse) XXX_DiscardUnknown

func (m *QueryGrantsResponse) XXX_DiscardUnknown()

func (*QueryGrantsResponse) XXX_Marshal

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

func (*QueryGrantsResponse) XXX_Merge

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

func (*QueryGrantsResponse) XXX_Size

func (m *QueryGrantsResponse) XXX_Size() int

func (*QueryGrantsResponse) XXX_Unmarshal

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

type QueryMemberRequest

type QueryMemberRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryMemberRequest is the Query/Member request type.

func (*QueryMemberRequest) Descriptor

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

func (*QueryMemberRequest) GetAddress

func (m *QueryMemberRequest) GetAddress() string

func (*QueryMemberRequest) Marshal

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

func (*QueryMemberRequest) MarshalTo

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

func (*QueryMemberRequest) MarshalToSizedBuffer

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

func (*QueryMemberRequest) ProtoMessage

func (*QueryMemberRequest) ProtoMessage()

func (*QueryMemberRequest) Reset

func (m *QueryMemberRequest) Reset()

func (*QueryMemberRequest) Size

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

func (*QueryMemberRequest) String

func (m *QueryMemberRequest) String() string

func (*QueryMemberRequest) Unmarshal

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

func (*QueryMemberRequest) XXX_DiscardUnknown

func (m *QueryMemberRequest) XXX_DiscardUnknown()

func (*QueryMemberRequest) XXX_Marshal

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

func (*QueryMemberRequest) XXX_Merge

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

func (*QueryMemberRequest) XXX_Size

func (m *QueryMemberRequest) XXX_Size() int

func (*QueryMemberRequest) XXX_Unmarshal

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

type QueryMemberResponse

type QueryMemberResponse struct {
	// member is the members of the foundation.
	Member *Member `protobuf:"bytes,1,opt,name=member,proto3" json:"member,omitempty"`
}

QueryMemberResponse is the Query/MemberResponse response type.

func (*QueryMemberResponse) Descriptor

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

func (*QueryMemberResponse) GetMember

func (m *QueryMemberResponse) GetMember() *Member

func (*QueryMemberResponse) Marshal

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

func (*QueryMemberResponse) MarshalTo

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

func (*QueryMemberResponse) MarshalToSizedBuffer

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

func (*QueryMemberResponse) ProtoMessage

func (*QueryMemberResponse) ProtoMessage()

func (*QueryMemberResponse) Reset

func (m *QueryMemberResponse) Reset()

func (*QueryMemberResponse) Size

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

func (*QueryMemberResponse) String

func (m *QueryMemberResponse) String() string

func (*QueryMemberResponse) Unmarshal

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

func (*QueryMemberResponse) XXX_DiscardUnknown

func (m *QueryMemberResponse) XXX_DiscardUnknown()

func (*QueryMemberResponse) XXX_Marshal

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

func (*QueryMemberResponse) XXX_Merge

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

func (*QueryMemberResponse) XXX_Size

func (m *QueryMemberResponse) XXX_Size() int

func (*QueryMemberResponse) XXX_Unmarshal

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

type QueryMembersRequest

type QueryMembersRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryMembersRequest is the Query/Members request type.

func (*QueryMembersRequest) Descriptor

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

func (*QueryMembersRequest) GetPagination

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

func (*QueryMembersRequest) Marshal

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

func (*QueryMembersRequest) MarshalTo

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

func (*QueryMembersRequest) MarshalToSizedBuffer

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

func (*QueryMembersRequest) ProtoMessage

func (*QueryMembersRequest) ProtoMessage()

func (*QueryMembersRequest) Reset

func (m *QueryMembersRequest) Reset()

func (*QueryMembersRequest) Size

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

func (*QueryMembersRequest) String

func (m *QueryMembersRequest) String() string

func (*QueryMembersRequest) Unmarshal

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

func (*QueryMembersRequest) XXX_DiscardUnknown

func (m *QueryMembersRequest) XXX_DiscardUnknown()

func (*QueryMembersRequest) XXX_Marshal

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

func (*QueryMembersRequest) XXX_Merge

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

func (*QueryMembersRequest) XXX_Size

func (m *QueryMembersRequest) XXX_Size() int

func (*QueryMembersRequest) XXX_Unmarshal

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

type QueryMembersResponse

type QueryMembersResponse struct {
	// members are the members of the foundation.
	Members []Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryMembersResponse is the Query/MembersResponse response type.

func (*QueryMembersResponse) Descriptor

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

func (*QueryMembersResponse) GetMembers

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

func (*QueryMembersResponse) GetPagination

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

func (*QueryMembersResponse) Marshal

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

func (*QueryMembersResponse) MarshalTo

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

func (*QueryMembersResponse) MarshalToSizedBuffer

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

func (*QueryMembersResponse) ProtoMessage

func (*QueryMembersResponse) ProtoMessage()

func (*QueryMembersResponse) Reset

func (m *QueryMembersResponse) Reset()

func (*QueryMembersResponse) Size

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

func (*QueryMembersResponse) String

func (m *QueryMembersResponse) String() string

func (*QueryMembersResponse) Unmarshal

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

func (*QueryMembersResponse) XXX_DiscardUnknown

func (m *QueryMembersResponse) XXX_DiscardUnknown()

func (*QueryMembersResponse) XXX_Marshal

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

func (*QueryMembersResponse) XXX_Merge

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

func (*QueryMembersResponse) XXX_Size

func (m *QueryMembersResponse) XXX_Size() int

func (*QueryMembersResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) 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 QueryProposalsRequest

type QueryProposalsRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProposals is the Query/Proposals request type.

func (*QueryProposalsRequest) Descriptor

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

func (*QueryProposalsRequest) GetPagination

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

func (*QueryProposalsRequest) Marshal

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

func (*QueryProposalsRequest) MarshalTo

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

func (*QueryProposalsRequest) MarshalToSizedBuffer

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

func (*QueryProposalsRequest) ProtoMessage

func (*QueryProposalsRequest) ProtoMessage()

func (*QueryProposalsRequest) Reset

func (m *QueryProposalsRequest) Reset()

func (*QueryProposalsRequest) Size

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

func (*QueryProposalsRequest) String

func (m *QueryProposalsRequest) String() string

func (*QueryProposalsRequest) Unmarshal

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

func (*QueryProposalsRequest) XXX_DiscardUnknown

func (m *QueryProposalsRequest) XXX_DiscardUnknown()

func (*QueryProposalsRequest) XXX_Marshal

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

func (*QueryProposalsRequest) XXX_Merge

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

func (*QueryProposalsRequest) XXX_Size

func (m *QueryProposalsRequest) XXX_Size() int

func (*QueryProposalsRequest) XXX_Unmarshal

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

type QueryProposalsResponse

type QueryProposalsResponse struct {
	// proposals are the proposals of the foundation.
	Proposals []Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProposalsResponse is the Query/Proposals response type.

func (*QueryProposalsResponse) Descriptor

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

func (*QueryProposalsResponse) GetPagination

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

func (*QueryProposalsResponse) GetProposals

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

func (*QueryProposalsResponse) Marshal

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

func (*QueryProposalsResponse) MarshalTo

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

func (*QueryProposalsResponse) MarshalToSizedBuffer

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

func (*QueryProposalsResponse) ProtoMessage

func (*QueryProposalsResponse) ProtoMessage()

func (*QueryProposalsResponse) Reset

func (m *QueryProposalsResponse) Reset()

func (*QueryProposalsResponse) Size

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

func (*QueryProposalsResponse) String

func (m *QueryProposalsResponse) String() string

func (*QueryProposalsResponse) Unmarshal

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

func (*QueryProposalsResponse) XXX_DiscardUnknown

func (m *QueryProposalsResponse) XXX_DiscardUnknown()

func (*QueryProposalsResponse) XXX_Marshal

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

func (*QueryProposalsResponse) XXX_Merge

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

func (*QueryProposalsResponse) XXX_Size

func (m *QueryProposalsResponse) XXX_Size() int

func (*QueryProposalsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Params queries the module params.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Treasury queries the foundation treasury.
	Treasury(context.Context, *QueryTreasuryRequest) (*QueryTreasuryResponse, error)
	// FoundationInfo queries foundation info.
	FoundationInfo(context.Context, *QueryFoundationInfoRequest) (*QueryFoundationInfoResponse, error)
	// Member queries a member of the foundation
	Member(context.Context, *QueryMemberRequest) (*QueryMemberResponse, error)
	// Members queries members of the foundation
	Members(context.Context, *QueryMembersRequest) (*QueryMembersResponse, error)
	// Proposal queries a proposal based on proposal id.
	Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
	// Proposals queries all proposals.
	Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error)
	// Vote queries a vote by proposal id and voter.
	Vote(context.Context, *QueryVoteRequest) (*QueryVoteResponse, error)
	// Votes queries a vote by proposal.
	Votes(context.Context, *QueryVotesRequest) (*QueryVotesResponse, error)
	// TallyResult queries the tally of a proposal votes.
	TallyResult(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error)
	// Returns list of authorizations, granted to the grantee.
	Grants(context.Context, *QueryGrantsRequest) (*QueryGrantsResponse, error)
}

QueryServer is the server API for Query service.

type QueryTallyResultRequest

type QueryTallyResultRequest struct {
	// proposal_id is the unique id of a proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
}

QueryTallyResultRequest is the Query/TallyResult request type.

func (*QueryTallyResultRequest) Descriptor

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

func (*QueryTallyResultRequest) GetProposalId

func (m *QueryTallyResultRequest) GetProposalId() uint64

func (*QueryTallyResultRequest) Marshal

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

func (*QueryTallyResultRequest) MarshalTo

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

func (*QueryTallyResultRequest) MarshalToSizedBuffer

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

func (*QueryTallyResultRequest) ProtoMessage

func (*QueryTallyResultRequest) ProtoMessage()

func (*QueryTallyResultRequest) Reset

func (m *QueryTallyResultRequest) Reset()

func (*QueryTallyResultRequest) Size

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

func (*QueryTallyResultRequest) String

func (m *QueryTallyResultRequest) String() string

func (*QueryTallyResultRequest) Unmarshal

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

func (*QueryTallyResultRequest) XXX_DiscardUnknown

func (m *QueryTallyResultRequest) XXX_DiscardUnknown()

func (*QueryTallyResultRequest) XXX_Marshal

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

func (*QueryTallyResultRequest) XXX_Merge

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

func (*QueryTallyResultRequest) XXX_Size

func (m *QueryTallyResultRequest) XXX_Size() int

func (*QueryTallyResultRequest) XXX_Unmarshal

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

type QueryTallyResultResponse

type QueryTallyResultResponse struct {
	// tally defines the requested tally.
	Tally TallyResult `protobuf:"bytes,1,opt,name=tally,proto3" json:"tally"`
}

QueryTallyResultResponse is the Query/TallyResult response type.

func (*QueryTallyResultResponse) Descriptor

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

func (*QueryTallyResultResponse) GetTally

func (m *QueryTallyResultResponse) GetTally() TallyResult

func (*QueryTallyResultResponse) Marshal

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

func (*QueryTallyResultResponse) MarshalTo

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

func (*QueryTallyResultResponse) MarshalToSizedBuffer

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

func (*QueryTallyResultResponse) ProtoMessage

func (*QueryTallyResultResponse) ProtoMessage()

func (*QueryTallyResultResponse) Reset

func (m *QueryTallyResultResponse) Reset()

func (*QueryTallyResultResponse) Size

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

func (*QueryTallyResultResponse) String

func (m *QueryTallyResultResponse) String() string

func (*QueryTallyResultResponse) Unmarshal

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

func (*QueryTallyResultResponse) XXX_DiscardUnknown

func (m *QueryTallyResultResponse) XXX_DiscardUnknown()

func (*QueryTallyResultResponse) XXX_Marshal

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

func (*QueryTallyResultResponse) XXX_Merge

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

func (*QueryTallyResultResponse) XXX_Size

func (m *QueryTallyResultResponse) XXX_Size() int

func (*QueryTallyResultResponse) XXX_Unmarshal

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

type QueryTreasuryRequest

type QueryTreasuryRequest struct {
}

QueryTreasuryRequest is the request type for the Query/Treasury RPC method.

func (*QueryTreasuryRequest) Descriptor

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

func (*QueryTreasuryRequest) Marshal

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

func (*QueryTreasuryRequest) MarshalTo

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

func (*QueryTreasuryRequest) MarshalToSizedBuffer

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

func (*QueryTreasuryRequest) ProtoMessage

func (*QueryTreasuryRequest) ProtoMessage()

func (*QueryTreasuryRequest) Reset

func (m *QueryTreasuryRequest) Reset()

func (*QueryTreasuryRequest) Size

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

func (*QueryTreasuryRequest) String

func (m *QueryTreasuryRequest) String() string

func (*QueryTreasuryRequest) Unmarshal

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

func (*QueryTreasuryRequest) XXX_DiscardUnknown

func (m *QueryTreasuryRequest) XXX_DiscardUnknown()

func (*QueryTreasuryRequest) XXX_Marshal

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

func (*QueryTreasuryRequest) XXX_Merge

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

func (*QueryTreasuryRequest) XXX_Size

func (m *QueryTreasuryRequest) XXX_Size() int

func (*QueryTreasuryRequest) XXX_Unmarshal

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

type QueryTreasuryResponse

type QueryTreasuryResponse struct {
	Amount github_com_line_lbm_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/line/lbm-sdk/types.Coins" json:"amount"`
}

QueryTreasuryResponse is the response type for the Query/Treasury RPC method.

func (*QueryTreasuryResponse) Descriptor

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

func (*QueryTreasuryResponse) GetAmount

func (*QueryTreasuryResponse) Marshal

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

func (*QueryTreasuryResponse) MarshalTo

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

func (*QueryTreasuryResponse) MarshalToSizedBuffer

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

func (*QueryTreasuryResponse) ProtoMessage

func (*QueryTreasuryResponse) ProtoMessage()

func (*QueryTreasuryResponse) Reset

func (m *QueryTreasuryResponse) Reset()

func (*QueryTreasuryResponse) Size

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

func (*QueryTreasuryResponse) String

func (m *QueryTreasuryResponse) String() string

func (*QueryTreasuryResponse) Unmarshal

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

func (*QueryTreasuryResponse) XXX_DiscardUnknown

func (m *QueryTreasuryResponse) XXX_DiscardUnknown()

func (*QueryTreasuryResponse) XXX_Marshal

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

func (*QueryTreasuryResponse) XXX_Merge

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

func (*QueryTreasuryResponse) XXX_Size

func (m *QueryTreasuryResponse) XXX_Size() int

func (*QueryTreasuryResponse) XXX_Unmarshal

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

type QueryVoteRequest

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

QueryVote is the Query/Vote request type.

func (*QueryVoteRequest) Descriptor

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

func (*QueryVoteRequest) GetProposalId

func (m *QueryVoteRequest) GetProposalId() uint64

func (*QueryVoteRequest) GetVoter

func (m *QueryVoteRequest) GetVoter() string

func (*QueryVoteRequest) Marshal

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

func (*QueryVoteRequest) MarshalTo

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

func (*QueryVoteRequest) MarshalToSizedBuffer

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

func (*QueryVoteRequest) ProtoMessage

func (*QueryVoteRequest) ProtoMessage()

func (*QueryVoteRequest) Reset

func (m *QueryVoteRequest) Reset()

func (*QueryVoteRequest) Size

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

func (*QueryVoteRequest) String

func (m *QueryVoteRequest) String() string

func (*QueryVoteRequest) Unmarshal

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

func (*QueryVoteRequest) XXX_DiscardUnknown

func (m *QueryVoteRequest) XXX_DiscardUnknown()

func (*QueryVoteRequest) XXX_Marshal

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

func (*QueryVoteRequest) XXX_Merge

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

func (*QueryVoteRequest) XXX_Size

func (m *QueryVoteRequest) XXX_Size() int

func (*QueryVoteRequest) XXX_Unmarshal

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

type QueryVoteResponse

type QueryVoteResponse struct {
	// vote is the vote with given proposal_id and voter.
	Vote *Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
}

QueryVoteResponse is the Query/Vote response type.

func (*QueryVoteResponse) Descriptor

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

func (*QueryVoteResponse) GetVote

func (m *QueryVoteResponse) GetVote() *Vote

func (*QueryVoteResponse) Marshal

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

func (*QueryVoteResponse) MarshalTo

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

func (*QueryVoteResponse) MarshalToSizedBuffer

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

func (*QueryVoteResponse) ProtoMessage

func (*QueryVoteResponse) ProtoMessage()

func (*QueryVoteResponse) Reset

func (m *QueryVoteResponse) Reset()

func (*QueryVoteResponse) Size

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

func (*QueryVoteResponse) String

func (m *QueryVoteResponse) String() string

func (*QueryVoteResponse) Unmarshal

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

func (*QueryVoteResponse) XXX_DiscardUnknown

func (m *QueryVoteResponse) XXX_DiscardUnknown()

func (*QueryVoteResponse) XXX_Marshal

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

func (*QueryVoteResponse) XXX_Merge

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

func (*QueryVoteResponse) XXX_Size

func (m *QueryVoteResponse) XXX_Size() int

func (*QueryVoteResponse) XXX_Unmarshal

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

type QueryVotesRequest

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

QueryVotes is the Query/Votes request type.

func (*QueryVotesRequest) Descriptor

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

func (*QueryVotesRequest) GetPagination

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

func (*QueryVotesRequest) GetProposalId

func (m *QueryVotesRequest) GetProposalId() uint64

func (*QueryVotesRequest) Marshal

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

func (*QueryVotesRequest) MarshalTo

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

func (*QueryVotesRequest) MarshalToSizedBuffer

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

func (*QueryVotesRequest) ProtoMessage

func (*QueryVotesRequest) ProtoMessage()

func (*QueryVotesRequest) Reset

func (m *QueryVotesRequest) Reset()

func (*QueryVotesRequest) Size

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

func (*QueryVotesRequest) String

func (m *QueryVotesRequest) String() string

func (*QueryVotesRequest) Unmarshal

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

func (*QueryVotesRequest) XXX_DiscardUnknown

func (m *QueryVotesRequest) XXX_DiscardUnknown()

func (*QueryVotesRequest) XXX_Marshal

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

func (*QueryVotesRequest) XXX_Merge

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

func (*QueryVotesRequest) XXX_Size

func (m *QueryVotesRequest) XXX_Size() int

func (*QueryVotesRequest) XXX_Unmarshal

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

type QueryVotesResponse

type QueryVotesResponse struct {
	// votes are the list of votes for given proposal_id.
	Votes []Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryVotesResponse is the Query/Votes response type.

func (*QueryVotesResponse) Descriptor

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

func (*QueryVotesResponse) GetPagination

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

func (*QueryVotesResponse) GetVotes

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

func (*QueryVotesResponse) Marshal

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

func (*QueryVotesResponse) MarshalTo

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

func (*QueryVotesResponse) MarshalToSizedBuffer

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

func (*QueryVotesResponse) ProtoMessage

func (*QueryVotesResponse) ProtoMessage()

func (*QueryVotesResponse) Reset

func (m *QueryVotesResponse) Reset()

func (*QueryVotesResponse) Size

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

func (*QueryVotesResponse) String

func (m *QueryVotesResponse) String() string

func (*QueryVotesResponse) Unmarshal

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

func (*QueryVotesResponse) XXX_DiscardUnknown

func (m *QueryVotesResponse) XXX_DiscardUnknown()

func (*QueryVotesResponse) XXX_Marshal

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

func (*QueryVotesResponse) XXX_Merge

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

func (*QueryVotesResponse) XXX_Size

func (m *QueryVotesResponse) XXX_Size() int

func (*QueryVotesResponse) XXX_Unmarshal

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

type ReceiveFromTreasuryAuthorization

type ReceiveFromTreasuryAuthorization struct {
}

ReceiveFromTreasuryAuthorization allows the grantee to receive coins up to receive_limit from the treasury.

func (ReceiveFromTreasuryAuthorization) Accept

func (*ReceiveFromTreasuryAuthorization) Descriptor

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

func (*ReceiveFromTreasuryAuthorization) Marshal

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

func (*ReceiveFromTreasuryAuthorization) MarshalTo

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

func (*ReceiveFromTreasuryAuthorization) MarshalToSizedBuffer

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

func (ReceiveFromTreasuryAuthorization) MsgTypeURL

func (*ReceiveFromTreasuryAuthorization) ProtoMessage

func (*ReceiveFromTreasuryAuthorization) ProtoMessage()

func (*ReceiveFromTreasuryAuthorization) Reset

func (*ReceiveFromTreasuryAuthorization) Size

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

func (*ReceiveFromTreasuryAuthorization) String

func (*ReceiveFromTreasuryAuthorization) Unmarshal

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

func (ReceiveFromTreasuryAuthorization) ValidateBasic

func (a ReceiveFromTreasuryAuthorization) ValidateBasic() error

func (*ReceiveFromTreasuryAuthorization) XXX_DiscardUnknown

func (m *ReceiveFromTreasuryAuthorization) XXX_DiscardUnknown()

func (*ReceiveFromTreasuryAuthorization) XXX_Marshal

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

func (*ReceiveFromTreasuryAuthorization) XXX_Merge

func (*ReceiveFromTreasuryAuthorization) XXX_Size

func (m *ReceiveFromTreasuryAuthorization) XXX_Size() int

func (*ReceiveFromTreasuryAuthorization) XXX_Unmarshal

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

type StakingKeeper

type StakingKeeper interface {
	// iterate through validators by operator address, execute func for each validator
	IterateValidators(ctx sdk.Context, fn func(index int64, validator stakingtypes.ValidatorI) (stop bool))
}

StakingKeeper defines the staking module interface contract needed by the foundation module.

type TallyResult

type TallyResult struct {
	// yes_count is the sum of yes votes.
	YesCount github_com_line_lbm_sdk_types.Dec `protobuf:"bytes,1,opt,name=yes_count,json=yesCount,proto3,customtype=github.com/line/lbm-sdk/types.Dec" json:"yes_count"`
	// abstain_count is the sum of abstainers.
	AbstainCount github_com_line_lbm_sdk_types.Dec `` /* 132-byte string literal not displayed */
	// no is the sum of no votes.
	NoCount github_com_line_lbm_sdk_types.Dec `protobuf:"bytes,3,opt,name=no_count,json=noCount,proto3,customtype=github.com/line/lbm-sdk/types.Dec" json:"no_count"`
	// no_with_veto_count is the sum of veto.
	NoWithVetoCount github_com_line_lbm_sdk_types.Dec `` /* 145-byte string literal not displayed */
}

TallyResult represents the sum of votes for each vote option.

func DefaultTallyResult

func DefaultTallyResult() TallyResult

DefaultTallyResult returns a TallyResult with all counts set to 0.

func NewTallyResult

func NewTallyResult(yes, abstain, no, veto sdk.Dec) TallyResult

func (*TallyResult) Add

func (t *TallyResult) Add(option VoteOption) error

func (*TallyResult) Descriptor

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

func (*TallyResult) Equal

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

func (*TallyResult) Marshal

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

func (*TallyResult) MarshalTo

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

func (*TallyResult) MarshalToSizedBuffer

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

func (*TallyResult) ProtoMessage

func (*TallyResult) ProtoMessage()

func (*TallyResult) Reset

func (m *TallyResult) Reset()

func (*TallyResult) Size

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

func (*TallyResult) String

func (m *TallyResult) String() string

func (TallyResult) TotalCounts

func (t TallyResult) TotalCounts() sdk.Dec

TotalCounts is the sum of all weights.

func (*TallyResult) Unmarshal

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

func (*TallyResult) XXX_DiscardUnknown

func (m *TallyResult) XXX_DiscardUnknown()

func (*TallyResult) XXX_Marshal

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

func (*TallyResult) XXX_Merge

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

func (*TallyResult) XXX_Size

func (m *TallyResult) XXX_Size() int

func (*TallyResult) XXX_Unmarshal

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

type ThresholdDecisionPolicy

type ThresholdDecisionPolicy struct {
	// threshold is the minimum sum of yes votes that must be met or exceeded for a proposal to succeed.
	Threshold github_com_line_lbm_sdk_types.Dec `protobuf:"bytes,1,opt,name=threshold,proto3,customtype=github.com/line/lbm-sdk/types.Dec" json:"threshold"`
	// windows defines the different windows for voting and execution.
	Windows *DecisionPolicyWindows `protobuf:"bytes,2,opt,name=windows,proto3" json:"windows,omitempty"`
}

ThresholdDecisionPolicy implements the DecisionPolicy interface

func (ThresholdDecisionPolicy) Allow

func (p ThresholdDecisionPolicy) Allow(result TallyResult, totalWeight sdk.Dec, sinceSubmission time.Duration) (*DecisionPolicyResult, error)

func (*ThresholdDecisionPolicy) Descriptor

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

func (*ThresholdDecisionPolicy) Equal

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

func (ThresholdDecisionPolicy) GetVotingPeriod

func (p ThresholdDecisionPolicy) GetVotingPeriod() time.Duration

func (*ThresholdDecisionPolicy) GetWindows

func (*ThresholdDecisionPolicy) Marshal

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

func (*ThresholdDecisionPolicy) MarshalTo

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

func (*ThresholdDecisionPolicy) MarshalToSizedBuffer

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

func (*ThresholdDecisionPolicy) ProtoMessage

func (*ThresholdDecisionPolicy) ProtoMessage()

func (*ThresholdDecisionPolicy) Reset

func (m *ThresholdDecisionPolicy) Reset()

func (*ThresholdDecisionPolicy) Size

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

func (*ThresholdDecisionPolicy) String

func (m *ThresholdDecisionPolicy) String() string

func (*ThresholdDecisionPolicy) Unmarshal

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

func (ThresholdDecisionPolicy) Validate

func (p ThresholdDecisionPolicy) Validate(config Config) error

func (ThresholdDecisionPolicy) ValidateBasic

func (p ThresholdDecisionPolicy) ValidateBasic() error

func (*ThresholdDecisionPolicy) XXX_DiscardUnknown

func (m *ThresholdDecisionPolicy) XXX_DiscardUnknown()

func (*ThresholdDecisionPolicy) XXX_Marshal

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

func (*ThresholdDecisionPolicy) XXX_Merge

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

func (*ThresholdDecisionPolicy) XXX_Size

func (m *ThresholdDecisionPolicy) XXX_Size() int

func (*ThresholdDecisionPolicy) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Exec

func (*UnimplementedMsgServer) FundTreasury

func (*UnimplementedMsgServer) Grant

func (*UnimplementedMsgServer) LeaveFoundation

func (*UnimplementedMsgServer) Revoke

func (*UnimplementedMsgServer) SubmitProposal

func (*UnimplementedMsgServer) UpdateDecisionPolicy

func (*UnimplementedMsgServer) UpdateMembers

func (*UnimplementedMsgServer) Vote

func (*UnimplementedMsgServer) WithdrawFromTreasury

func (*UnimplementedMsgServer) WithdrawProposal

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) FoundationInfo

func (*UnimplementedQueryServer) Grants

func (*UnimplementedQueryServer) Member

func (*UnimplementedQueryServer) Members

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Proposal

func (*UnimplementedQueryServer) Proposals

func (*UnimplementedQueryServer) TallyResult

func (*UnimplementedQueryServer) Treasury

func (*UnimplementedQueryServer) Vote

func (*UnimplementedQueryServer) Votes

type UpdateFoundationParamsProposal

type UpdateFoundationParamsProposal struct {
	Title       string  `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string  `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Params      *Params `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"`
}

UpdateFoundationParamsProposal details a proposal to update params of foundation module.

func (*UpdateFoundationParamsProposal) Descriptor

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

func (*UpdateFoundationParamsProposal) GetDescription

func (p *UpdateFoundationParamsProposal) GetDescription() string

func (*UpdateFoundationParamsProposal) GetTitle

func (p *UpdateFoundationParamsProposal) GetTitle() string

func (*UpdateFoundationParamsProposal) Marshal

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

func (*UpdateFoundationParamsProposal) MarshalTo

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

func (*UpdateFoundationParamsProposal) MarshalToSizedBuffer

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

func (*UpdateFoundationParamsProposal) ProposalRoute

func (p *UpdateFoundationParamsProposal) ProposalRoute() string

func (*UpdateFoundationParamsProposal) ProposalType

func (p *UpdateFoundationParamsProposal) ProposalType() string

func (*UpdateFoundationParamsProposal) ProtoMessage

func (*UpdateFoundationParamsProposal) ProtoMessage()

func (*UpdateFoundationParamsProposal) Reset

func (m *UpdateFoundationParamsProposal) Reset()

func (*UpdateFoundationParamsProposal) Size

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

func (UpdateFoundationParamsProposal) String

func (*UpdateFoundationParamsProposal) Unmarshal

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

func (*UpdateFoundationParamsProposal) ValidateBasic

func (p *UpdateFoundationParamsProposal) ValidateBasic() error

func (*UpdateFoundationParamsProposal) XXX_DiscardUnknown

func (m *UpdateFoundationParamsProposal) XXX_DiscardUnknown()

func (*UpdateFoundationParamsProposal) XXX_Marshal

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

func (*UpdateFoundationParamsProposal) XXX_Merge

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

func (*UpdateFoundationParamsProposal) XXX_Size

func (m *UpdateFoundationParamsProposal) XXX_Size() int

func (*UpdateFoundationParamsProposal) XXX_Unmarshal

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

type UpdateValidatorAuthsProposal

type UpdateValidatorAuthsProposal struct {
	Title       string          `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string          `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Auths       []ValidatorAuth `protobuf:"bytes,3,rep,name=auths,proto3" json:"auths"`
}

UpdateValidatorAuthsProposal details a proposal to update validator auths on foundation.

func (*UpdateValidatorAuthsProposal) Descriptor

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

func (*UpdateValidatorAuthsProposal) GetDescription

func (p *UpdateValidatorAuthsProposal) GetDescription() string

func (*UpdateValidatorAuthsProposal) GetTitle

func (p *UpdateValidatorAuthsProposal) GetTitle() string

func (*UpdateValidatorAuthsProposal) Marshal

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

func (*UpdateValidatorAuthsProposal) MarshalTo

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

func (*UpdateValidatorAuthsProposal) MarshalToSizedBuffer

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

func (*UpdateValidatorAuthsProposal) ProposalRoute

func (p *UpdateValidatorAuthsProposal) ProposalRoute() string

func (*UpdateValidatorAuthsProposal) ProposalType

func (p *UpdateValidatorAuthsProposal) ProposalType() string

func (*UpdateValidatorAuthsProposal) ProtoMessage

func (*UpdateValidatorAuthsProposal) ProtoMessage()

func (*UpdateValidatorAuthsProposal) Reset

func (m *UpdateValidatorAuthsProposal) Reset()

func (*UpdateValidatorAuthsProposal) Size

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

func (UpdateValidatorAuthsProposal) String

func (*UpdateValidatorAuthsProposal) Unmarshal

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

func (*UpdateValidatorAuthsProposal) ValidateBasic

func (p *UpdateValidatorAuthsProposal) ValidateBasic() error

func (*UpdateValidatorAuthsProposal) XXX_DiscardUnknown

func (m *UpdateValidatorAuthsProposal) XXX_DiscardUnknown()

func (*UpdateValidatorAuthsProposal) XXX_Marshal

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

func (*UpdateValidatorAuthsProposal) XXX_Merge

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

func (*UpdateValidatorAuthsProposal) XXX_Size

func (m *UpdateValidatorAuthsProposal) XXX_Size() int

func (*UpdateValidatorAuthsProposal) XXX_Unmarshal

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

type ValidatorAuth

type ValidatorAuth struct {
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	CreationAllowed bool   `protobuf:"varint,2,opt,name=creation_allowed,json=creationAllowed,proto3" json:"creation_allowed,omitempty"`
}

ValidatorAuth defines authorization info of a validator.

func (*ValidatorAuth) Descriptor

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

func (*ValidatorAuth) Equal

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

func (*ValidatorAuth) GetCreationAllowed

func (m *ValidatorAuth) GetCreationAllowed() bool

func (*ValidatorAuth) GetOperatorAddress

func (m *ValidatorAuth) GetOperatorAddress() string

func (*ValidatorAuth) Marshal

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

func (*ValidatorAuth) MarshalTo

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

func (*ValidatorAuth) MarshalToSizedBuffer

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

func (*ValidatorAuth) ProtoMessage

func (*ValidatorAuth) ProtoMessage()

func (*ValidatorAuth) Reset

func (m *ValidatorAuth) Reset()

func (*ValidatorAuth) Size

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

func (*ValidatorAuth) String

func (m *ValidatorAuth) String() string

func (*ValidatorAuth) Unmarshal

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

func (*ValidatorAuth) XXX_DiscardUnknown

func (m *ValidatorAuth) XXX_DiscardUnknown()

func (*ValidatorAuth) XXX_Marshal

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

func (*ValidatorAuth) XXX_Merge

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

func (*ValidatorAuth) XXX_Size

func (m *ValidatorAuth) XXX_Size() int

func (*ValidatorAuth) XXX_Unmarshal

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

type Vote

type Vote struct {
	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// voter is the account address of the voter.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// option is the voter's choice on the proposal.
	Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=lbm.foundation.v1.VoteOption" json:"option,omitempty"`
	// metadata is any arbitrary metadata to attached to the vote.
	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// submit_time is the timestamp when the vote was submitted.
	SubmitTime time.Time `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time"`
}

Vote represents a vote for a proposal.

func (*Vote) Descriptor

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

func (*Vote) Equal

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

func (*Vote) GetMetadata

func (m *Vote) GetMetadata() string

func (*Vote) GetOption

func (m *Vote) GetOption() VoteOption

func (*Vote) GetProposalId

func (m *Vote) GetProposalId() uint64

func (*Vote) GetSubmitTime

func (m *Vote) GetSubmitTime() 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

type VoteOption

type VoteOption int32

VoteOption enumerates the valid vote options for a given proposal.

const (
	// VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
	VOTE_OPTION_UNSPECIFIED VoteOption = 0
	// VOTE_OPTION_YES defines a yes vote option.
	VOTE_OPTION_YES VoteOption = 1
	// VOTE_OPTION_ABSTAIN defines an abstain vote option.
	VOTE_OPTION_ABSTAIN VoteOption = 2
	// VOTE_OPTION_NO defines a no vote option.
	VOTE_OPTION_NO VoteOption = 3
	// VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
	VOTE_OPTION_NO_WITH_VETO VoteOption = 4
)

func (VoteOption) EnumDescriptor

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

func (VoteOption) String

func (x VoteOption) String() string

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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