types

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ProposalTypeUpdatePoolIncentives  = "UpdatePoolIncentives"
	ProposalTypeReplacePoolIncentives = "ReplacePoolIncentives"
)
View Source
const (
	ModuleName = "poolincentive"

	StoreKey = ModuleName

	RouterKey = ModuleName

	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgCreateCandidatePool   = "createCandidatePool"
	TypeMsgCreateIncentivePool   = "createIncentivePool"
	TypeMsgSetPoolWeight         = "setPoolWeight"
	TypeMsgSetMultiplePoolWeight = "setMultiplePoolWeight"
)

Variables

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 (
	ErrInvalidLengthGov        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGov          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyCandidatePool     = []byte{0x00}
	KeyIncentivePool     = []byte{0x01}
	KeyCandidatePoolInfo = []byte{0x02}
	KeyIncentivePoolInfo = []byte{0x03}
)

KVStore keys

View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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 (
	KeyOperatorAddress = []byte("OperatorAddress")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func NewReplacePoolIncentivesProposal

func NewReplacePoolIncentivesProposal(title, description string, pools []IncentivePool) govtypes.Content

NewReplacePoolIncentivesProposal returns a new instance of a replace pool incentives proposal struct.

func NewUpdatePoolIncentivesProposal

func NewUpdatePoolIncentivesProposal(title, description string, pools []IncentivePool) govtypes.Content

NewUpdatePoolIncentivesProposal returns a new instance of a replace pool incentives proposal struct.

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis

func ValidateGenesis(gs GenesisState) error

Types

type CandidatePool

type CandidatePool struct {
	PoolId              string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	PoolContractAddress string `protobuf:"bytes,2,opt,name=pool_contract_address,json=poolContractAddress,proto3" json:"pool_contract_address,omitempty"`
}

func (*CandidatePool) Descriptor

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

func (*CandidatePool) Equal

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

func (*CandidatePool) GetPoolContractAddress

func (m *CandidatePool) GetPoolContractAddress() string

func (*CandidatePool) GetPoolId

func (m *CandidatePool) GetPoolId() string

func (*CandidatePool) Marshal

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

func (*CandidatePool) MarshalTo

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

func (*CandidatePool) MarshalToSizedBuffer

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

func (*CandidatePool) ProtoMessage

func (*CandidatePool) ProtoMessage()

func (*CandidatePool) Reset

func (m *CandidatePool) Reset()

func (*CandidatePool) Size

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

func (*CandidatePool) String

func (m *CandidatePool) String() string

func (*CandidatePool) Unmarshal

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

func (*CandidatePool) XXX_DiscardUnknown

func (m *CandidatePool) XXX_DiscardUnknown()

func (*CandidatePool) XXX_Marshal

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

func (*CandidatePool) XXX_Merge

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

func (*CandidatePool) XXX_Size

func (m *CandidatePool) XXX_Size() int

func (*CandidatePool) XXX_Unmarshal

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

type CandidatePoolInfo

type CandidatePoolInfo struct {
	CandidatePools []*CandidatePool `protobuf:"bytes,1,rep,name=candidate_pools,json=candidatePools,proto3" json:"candidate_pools,omitempty"`
}

func (*CandidatePoolInfo) Descriptor

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

func (*CandidatePoolInfo) GetCandidatePools

func (m *CandidatePoolInfo) GetCandidatePools() []*CandidatePool

func (*CandidatePoolInfo) Marshal

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

func (*CandidatePoolInfo) MarshalTo

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

func (*CandidatePoolInfo) MarshalToSizedBuffer

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

func (*CandidatePoolInfo) ProtoMessage

func (*CandidatePoolInfo) ProtoMessage()

func (*CandidatePoolInfo) Reset

func (m *CandidatePoolInfo) Reset()

func (*CandidatePoolInfo) Size

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

func (*CandidatePoolInfo) String

func (m *CandidatePoolInfo) String() string

func (*CandidatePoolInfo) Unmarshal

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

func (*CandidatePoolInfo) XXX_DiscardUnknown

func (m *CandidatePoolInfo) XXX_DiscardUnknown()

func (*CandidatePoolInfo) XXX_Marshal

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

func (*CandidatePoolInfo) XXX_Merge

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

func (*CandidatePoolInfo) XXX_Size

func (m *CandidatePoolInfo) XXX_Size() int

func (*CandidatePoolInfo) XXX_Unmarshal

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

type DistributionRecord

type DistributionRecord struct {
	PoolId string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Weight uint64 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
}

func (*DistributionRecord) Descriptor

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

func (*DistributionRecord) GetPoolId

func (m *DistributionRecord) GetPoolId() string

func (*DistributionRecord) GetWeight

func (m *DistributionRecord) GetWeight() uint64

func (*DistributionRecord) Marshal

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

func (*DistributionRecord) MarshalTo

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

func (*DistributionRecord) MarshalToSizedBuffer

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

func (*DistributionRecord) ProtoMessage

func (*DistributionRecord) ProtoMessage()

func (*DistributionRecord) Reset

func (m *DistributionRecord) Reset()

func (*DistributionRecord) Size

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

func (*DistributionRecord) String

func (m *DistributionRecord) String() string

func (*DistributionRecord) Unmarshal

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

func (*DistributionRecord) XXX_DiscardUnknown

func (m *DistributionRecord) XXX_DiscardUnknown()

func (*DistributionRecord) XXX_Marshal

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

func (*DistributionRecord) XXX_Merge

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

func (*DistributionRecord) XXX_Size

func (m *DistributionRecord) XXX_Size() int

func (*DistributionRecord) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// incentive_pools holds incentive pool list.
	// repeated IncentivePool incentive_pools = 2 [ (gogoproto.nullable) = false ];
	IncentivePoolInfo IncentivePoolInfo `protobuf:"bytes,2,opt,name=incentive_pool_info,json=incentivePoolInfo,proto3" json:"incentive_pool_info"`
	// candidate_pools holds incentive pool list and total weight
	// repeated CandidatePool candidate_pools = 3 [ (gogoproto.nullable) = false ];
	CandidatePoolInfo CandidatePoolInfo `protobuf:"bytes,3,opt,name=candidate_pool_info,json=candidatePoolInfo,proto3" json:"candidate_pool_info"`
}

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func NewGenesisState

func NewGenesisState(params Params) *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetCandidatePoolInfo

func (m *GenesisState) GetCandidatePoolInfo() CandidatePoolInfo

func (*GenesisState) GetIncentivePoolInfo

func (m *GenesisState) GetIncentivePoolInfo() IncentivePoolInfo

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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

func (g GenesisState) Validate() error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type IncentivePool

type IncentivePool struct {
	PoolId              string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	PoolContractAddress string `protobuf:"bytes,2,opt,name=pool_contract_address,json=poolContractAddress,proto3" json:"pool_contract_address,omitempty"`
	Weight              uint64 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"`
}

func (*IncentivePool) Descriptor

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

func (*IncentivePool) Equal

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

func (*IncentivePool) GetPoolContractAddress

func (m *IncentivePool) GetPoolContractAddress() string

func (*IncentivePool) GetPoolId

func (m *IncentivePool) GetPoolId() string

func (*IncentivePool) GetWeight

func (m *IncentivePool) GetWeight() uint64

func (*IncentivePool) Marshal

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

func (*IncentivePool) MarshalTo

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

func (*IncentivePool) MarshalToSizedBuffer

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

func (*IncentivePool) ProtoMessage

func (*IncentivePool) ProtoMessage()

func (*IncentivePool) Reset

func (m *IncentivePool) Reset()

func (*IncentivePool) Size

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

func (*IncentivePool) String

func (m *IncentivePool) String() string

func (*IncentivePool) Unmarshal

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

func (IncentivePool) ValidateBasic

func (ip IncentivePool) ValidateBasic() error

func (*IncentivePool) XXX_DiscardUnknown

func (m *IncentivePool) XXX_DiscardUnknown()

func (*IncentivePool) XXX_Marshal

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

func (*IncentivePool) XXX_Merge

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

func (*IncentivePool) XXX_Size

func (m *IncentivePool) XXX_Size() int

func (*IncentivePool) XXX_Unmarshal

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

type IncentivePoolInfo

type IncentivePoolInfo struct {
	TotalWeight    uint64           `protobuf:"varint,1,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"`
	IncentivePools []*IncentivePool `protobuf:"bytes,2,rep,name=incentive_pools,json=incentivePools,proto3" json:"incentive_pools,omitempty"`
}

func (*IncentivePoolInfo) Descriptor

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

func (*IncentivePoolInfo) GetIncentivePools

func (m *IncentivePoolInfo) GetIncentivePools() []*IncentivePool

func (*IncentivePoolInfo) GetTotalWeight

func (m *IncentivePoolInfo) GetTotalWeight() uint64

func (*IncentivePoolInfo) Marshal

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

func (*IncentivePoolInfo) MarshalTo

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

func (*IncentivePoolInfo) MarshalToSizedBuffer

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

func (*IncentivePoolInfo) ProtoMessage

func (*IncentivePoolInfo) ProtoMessage()

func (*IncentivePoolInfo) Reset

func (m *IncentivePoolInfo) Reset()

func (*IncentivePoolInfo) Size

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

func (*IncentivePoolInfo) String

func (m *IncentivePoolInfo) String() string

func (*IncentivePoolInfo) Unmarshal

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

func (*IncentivePoolInfo) XXX_DiscardUnknown

func (m *IncentivePoolInfo) XXX_DiscardUnknown()

func (*IncentivePoolInfo) XXX_Marshal

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

func (*IncentivePoolInfo) XXX_Merge

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

func (*IncentivePoolInfo) XXX_Size

func (m *IncentivePoolInfo) XXX_Size() int

func (*IncentivePoolInfo) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateCandidatePool creates new "candidate" pool, which can be created by anyone
	CreateCandidatePool(ctx context.Context, in *MsgCreateCandidatePool, opts ...grpc.CallOption) (*MsgCreateCandidatePoolResponse, error)
	// CreateIncentivePool creates new "incentive" pool, which can be created by only operator
	CreateIncentivePool(ctx context.Context, in *MsgCreateIncentivePool, opts ...grpc.CallOption) (*MsgCreateIncentivePoolResponse, error)
	// SetPoolWeight sets new weight of one pool
	SetPoolWeight(ctx context.Context, in *MsgSetPoolWeight, opts ...grpc.CallOption) (*MsgSetPoolWeightResponse, error)
	// SetMultiplePoolWeight sets new weight of multiple pool
	SetMultiplePoolWeight(ctx context.Context, in *MsgSetMultiplePoolWeight, opts ...grpc.CallOption) (*MsgSetMultiplePoolWeightResponse, 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 MsgCreateCandidatePool

type MsgCreateCandidatePool struct {
	PoolId              string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	PoolContractAddress string `protobuf:"bytes,2,opt,name=pool_contract_address,json=poolContractAddress,proto3" json:"pool_contract_address,omitempty"`
	Creator             string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
}

MsgCreateCandidatePool is used to create a new candidate pool. In order to make pool, we need the contract address of pool id and pool.

func NewMsgCreateCandidatePool

func NewMsgCreateCandidatePool(poolId string, poolContractAddress string, creator sdk.AccAddress) *MsgCreateCandidatePool

func (*MsgCreateCandidatePool) Descriptor

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

func (*MsgCreateCandidatePool) GetCreator

func (m *MsgCreateCandidatePool) GetCreator() string

func (*MsgCreateCandidatePool) GetPoolContractAddress

func (m *MsgCreateCandidatePool) GetPoolContractAddress() string

func (*MsgCreateCandidatePool) GetPoolId

func (m *MsgCreateCandidatePool) GetPoolId() string

func (MsgCreateCandidatePool) GetSignBytes

func (m MsgCreateCandidatePool) GetSignBytes() []byte

func (MsgCreateCandidatePool) GetSigners

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

func (*MsgCreateCandidatePool) Marshal

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

func (*MsgCreateCandidatePool) MarshalTo

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

func (*MsgCreateCandidatePool) MarshalToSizedBuffer

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

func (*MsgCreateCandidatePool) ProtoMessage

func (*MsgCreateCandidatePool) ProtoMessage()

func (*MsgCreateCandidatePool) Reset

func (m *MsgCreateCandidatePool) Reset()

func (MsgCreateCandidatePool) Route

func (m MsgCreateCandidatePool) Route() string

func (*MsgCreateCandidatePool) Size

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

func (*MsgCreateCandidatePool) String

func (m *MsgCreateCandidatePool) String() string

func (MsgCreateCandidatePool) Type

func (m MsgCreateCandidatePool) Type() string

func (*MsgCreateCandidatePool) Unmarshal

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

func (MsgCreateCandidatePool) ValidateBasic

func (m MsgCreateCandidatePool) ValidateBasic() error

func (*MsgCreateCandidatePool) XXX_DiscardUnknown

func (m *MsgCreateCandidatePool) XXX_DiscardUnknown()

func (*MsgCreateCandidatePool) XXX_Marshal

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

func (*MsgCreateCandidatePool) XXX_Merge

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

func (*MsgCreateCandidatePool) XXX_Size

func (m *MsgCreateCandidatePool) XXX_Size() int

func (*MsgCreateCandidatePool) XXX_Unmarshal

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

type MsgCreateCandidatePoolResponse

type MsgCreateCandidatePoolResponse struct {
}

MsgCreateCandidatePoolResponse is a response message for MsgCreateCandidatePool.

func (*MsgCreateCandidatePoolResponse) Descriptor

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

func (*MsgCreateCandidatePoolResponse) Marshal

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

func (*MsgCreateCandidatePoolResponse) MarshalTo

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

func (*MsgCreateCandidatePoolResponse) MarshalToSizedBuffer

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

func (*MsgCreateCandidatePoolResponse) ProtoMessage

func (*MsgCreateCandidatePoolResponse) ProtoMessage()

func (*MsgCreateCandidatePoolResponse) Reset

func (m *MsgCreateCandidatePoolResponse) Reset()

func (*MsgCreateCandidatePoolResponse) Size

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

func (*MsgCreateCandidatePoolResponse) String

func (*MsgCreateCandidatePoolResponse) Unmarshal

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

func (*MsgCreateCandidatePoolResponse) XXX_DiscardUnknown

func (m *MsgCreateCandidatePoolResponse) XXX_DiscardUnknown()

func (*MsgCreateCandidatePoolResponse) XXX_Marshal

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

func (*MsgCreateCandidatePoolResponse) XXX_Merge

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

func (*MsgCreateCandidatePoolResponse) XXX_Size

func (m *MsgCreateCandidatePoolResponse) XXX_Size() int

func (*MsgCreateCandidatePoolResponse) XXX_Unmarshal

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

type MsgCreateIncentivePool

type MsgCreateIncentivePool struct {
	PoolId              string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	PoolContractAddress string `protobuf:"bytes,2,opt,name=pool_contract_address,json=poolContractAddress,proto3" json:"pool_contract_address,omitempty"`
	Operator            string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
}

MsgCreateIncentivePool is used to create a new incentive pool. In order to make pool, we need the contract address of pool id and pool, and valid operator.

func NewMsgCreateIncentivePool

func NewMsgCreateIncentivePool(poolId string, poolContractAddress string, operator sdk.AccAddress) *MsgCreateIncentivePool

func (*MsgCreateIncentivePool) Descriptor

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

func (*MsgCreateIncentivePool) GetOperator

func (m *MsgCreateIncentivePool) GetOperator() string

func (*MsgCreateIncentivePool) GetPoolContractAddress

func (m *MsgCreateIncentivePool) GetPoolContractAddress() string

func (*MsgCreateIncentivePool) GetPoolId

func (m *MsgCreateIncentivePool) GetPoolId() string

func (MsgCreateIncentivePool) GetSignBytes

func (m MsgCreateIncentivePool) GetSignBytes() []byte

func (MsgCreateIncentivePool) GetSigners

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

func (*MsgCreateIncentivePool) Marshal

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

func (*MsgCreateIncentivePool) MarshalTo

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

func (*MsgCreateIncentivePool) MarshalToSizedBuffer

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

func (*MsgCreateIncentivePool) ProtoMessage

func (*MsgCreateIncentivePool) ProtoMessage()

func (*MsgCreateIncentivePool) Reset

func (m *MsgCreateIncentivePool) Reset()

func (MsgCreateIncentivePool) Route

func (m MsgCreateIncentivePool) Route() string

func (*MsgCreateIncentivePool) Size

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

func (*MsgCreateIncentivePool) String

func (m *MsgCreateIncentivePool) String() string

func (MsgCreateIncentivePool) Type

func (m MsgCreateIncentivePool) Type() string

func (*MsgCreateIncentivePool) Unmarshal

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

func (MsgCreateIncentivePool) ValidateBasic

func (m MsgCreateIncentivePool) ValidateBasic() error

func (*MsgCreateIncentivePool) XXX_DiscardUnknown

func (m *MsgCreateIncentivePool) XXX_DiscardUnknown()

func (*MsgCreateIncentivePool) XXX_Marshal

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

func (*MsgCreateIncentivePool) XXX_Merge

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

func (*MsgCreateIncentivePool) XXX_Size

func (m *MsgCreateIncentivePool) XXX_Size() int

func (*MsgCreateIncentivePool) XXX_Unmarshal

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

type MsgCreateIncentivePoolResponse

type MsgCreateIncentivePoolResponse struct {
}

MsgCreateIncentivePoolResponse is a response message for MsgCreateIncentivePool.

func (*MsgCreateIncentivePoolResponse) Descriptor

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

func (*MsgCreateIncentivePoolResponse) Marshal

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

func (*MsgCreateIncentivePoolResponse) MarshalTo

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

func (*MsgCreateIncentivePoolResponse) MarshalToSizedBuffer

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

func (*MsgCreateIncentivePoolResponse) ProtoMessage

func (*MsgCreateIncentivePoolResponse) ProtoMessage()

func (*MsgCreateIncentivePoolResponse) Reset

func (m *MsgCreateIncentivePoolResponse) Reset()

func (*MsgCreateIncentivePoolResponse) Size

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

func (*MsgCreateIncentivePoolResponse) String

func (*MsgCreateIncentivePoolResponse) Unmarshal

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

func (*MsgCreateIncentivePoolResponse) XXX_DiscardUnknown

func (m *MsgCreateIncentivePoolResponse) XXX_DiscardUnknown()

func (*MsgCreateIncentivePoolResponse) XXX_Marshal

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

func (*MsgCreateIncentivePoolResponse) XXX_Merge

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

func (*MsgCreateIncentivePoolResponse) XXX_Size

func (m *MsgCreateIncentivePoolResponse) XXX_Size() int

func (*MsgCreateIncentivePoolResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateCandidatePool creates new "candidate" pool, which can be created by anyone
	CreateCandidatePool(context.Context, *MsgCreateCandidatePool) (*MsgCreateCandidatePoolResponse, error)
	// CreateIncentivePool creates new "incentive" pool, which can be created by only operator
	CreateIncentivePool(context.Context, *MsgCreateIncentivePool) (*MsgCreateIncentivePoolResponse, error)
	// SetPoolWeight sets new weight of one pool
	SetPoolWeight(context.Context, *MsgSetPoolWeight) (*MsgSetPoolWeightResponse, error)
	// SetMultiplePoolWeight sets new weight of multiple pool
	SetMultiplePoolWeight(context.Context, *MsgSetMultiplePoolWeight) (*MsgSetMultiplePoolWeightResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetMultiplePoolWeight

type MsgSetMultiplePoolWeight struct {
	NewPoolData []NewPoolWeight `protobuf:"bytes,1,rep,name=new_pool_data,json=newPoolData,proto3" json:"new_pool_data"`
	Operator    string          `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
}

MsgSetMultiplePoolWeight is a message used to modify the weight of several incentive pools at once. It can only be submitted by the correct controller.

func NewMsgSetMultipleWeight

func NewMsgSetMultipleWeight(newPoolData []NewPoolWeight, operator sdk.AccAddress) *MsgSetMultiplePoolWeight

func (*MsgSetMultiplePoolWeight) Descriptor

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

func (*MsgSetMultiplePoolWeight) GetNewPoolData

func (m *MsgSetMultiplePoolWeight) GetNewPoolData() []NewPoolWeight

func (*MsgSetMultiplePoolWeight) GetOperator

func (m *MsgSetMultiplePoolWeight) GetOperator() string

func (MsgSetMultiplePoolWeight) GetSignBytes

func (m MsgSetMultiplePoolWeight) GetSignBytes() []byte

func (MsgSetMultiplePoolWeight) GetSigners

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

func (*MsgSetMultiplePoolWeight) Marshal

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

func (*MsgSetMultiplePoolWeight) MarshalTo

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

func (*MsgSetMultiplePoolWeight) MarshalToSizedBuffer

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

func (*MsgSetMultiplePoolWeight) ProtoMessage

func (*MsgSetMultiplePoolWeight) ProtoMessage()

func (*MsgSetMultiplePoolWeight) Reset

func (m *MsgSetMultiplePoolWeight) Reset()

func (MsgSetMultiplePoolWeight) Route

func (m MsgSetMultiplePoolWeight) Route() string

func (*MsgSetMultiplePoolWeight) Size

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

func (*MsgSetMultiplePoolWeight) String

func (m *MsgSetMultiplePoolWeight) String() string

func (MsgSetMultiplePoolWeight) Type

func (*MsgSetMultiplePoolWeight) Unmarshal

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

func (MsgSetMultiplePoolWeight) ValidateBasic

func (m MsgSetMultiplePoolWeight) ValidateBasic() error

func (*MsgSetMultiplePoolWeight) XXX_DiscardUnknown

func (m *MsgSetMultiplePoolWeight) XXX_DiscardUnknown()

func (*MsgSetMultiplePoolWeight) XXX_Marshal

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

func (*MsgSetMultiplePoolWeight) XXX_Merge

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

func (*MsgSetMultiplePoolWeight) XXX_Size

func (m *MsgSetMultiplePoolWeight) XXX_Size() int

func (*MsgSetMultiplePoolWeight) XXX_Unmarshal

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

type MsgSetMultiplePoolWeightResponse

type MsgSetMultiplePoolWeightResponse struct {
}

MsgSetMultiplePoolWeightResponse is a response message for MsgSetMultiplePoolWeight.

func (*MsgSetMultiplePoolWeightResponse) Descriptor

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

func (*MsgSetMultiplePoolWeightResponse) Marshal

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

func (*MsgSetMultiplePoolWeightResponse) MarshalTo

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

func (*MsgSetMultiplePoolWeightResponse) MarshalToSizedBuffer

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

func (*MsgSetMultiplePoolWeightResponse) ProtoMessage

func (*MsgSetMultiplePoolWeightResponse) ProtoMessage()

func (*MsgSetMultiplePoolWeightResponse) Reset

func (*MsgSetMultiplePoolWeightResponse) Size

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

func (*MsgSetMultiplePoolWeightResponse) String

func (*MsgSetMultiplePoolWeightResponse) Unmarshal

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

func (*MsgSetMultiplePoolWeightResponse) XXX_DiscardUnknown

func (m *MsgSetMultiplePoolWeightResponse) XXX_DiscardUnknown()

func (*MsgSetMultiplePoolWeightResponse) XXX_Marshal

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

func (*MsgSetMultiplePoolWeightResponse) XXX_Merge

func (*MsgSetMultiplePoolWeightResponse) XXX_Size

func (m *MsgSetMultiplePoolWeightResponse) XXX_Size() int

func (*MsgSetMultiplePoolWeightResponse) XXX_Unmarshal

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

type MsgSetPoolWeight

type MsgSetPoolWeight struct {
	PoolId    string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	NewWeight uint64 `protobuf:"varint,2,opt,name=new_weight,json=newWeight,proto3" json:"new_weight,omitempty"`
	Operator  string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
}

MsgSetPoolWeight is a message used to modify the weight of the incentive pool. It can only be submitted by the correct controller.

func NewMsgSetPoolWeight

func NewMsgSetPoolWeight(poolId string, newWeight uint64, operator sdk.AccAddress) *MsgSetPoolWeight

func (*MsgSetPoolWeight) Descriptor

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

func (*MsgSetPoolWeight) GetNewWeight

func (m *MsgSetPoolWeight) GetNewWeight() uint64

func (*MsgSetPoolWeight) GetOperator

func (m *MsgSetPoolWeight) GetOperator() string

func (*MsgSetPoolWeight) GetPoolId

func (m *MsgSetPoolWeight) GetPoolId() string

func (MsgSetPoolWeight) GetSignBytes

func (m MsgSetPoolWeight) GetSignBytes() []byte

func (MsgSetPoolWeight) GetSigners

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

func (*MsgSetPoolWeight) Marshal

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

func (*MsgSetPoolWeight) MarshalTo

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

func (*MsgSetPoolWeight) MarshalToSizedBuffer

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

func (*MsgSetPoolWeight) ProtoMessage

func (*MsgSetPoolWeight) ProtoMessage()

func (*MsgSetPoolWeight) Reset

func (m *MsgSetPoolWeight) Reset()

func (MsgSetPoolWeight) Route

func (m MsgSetPoolWeight) Route() string

func (*MsgSetPoolWeight) Size

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

func (*MsgSetPoolWeight) String

func (m *MsgSetPoolWeight) String() string

func (MsgSetPoolWeight) Type

func (m MsgSetPoolWeight) Type() string

func (*MsgSetPoolWeight) Unmarshal

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

func (MsgSetPoolWeight) ValidateBasic

func (m MsgSetPoolWeight) ValidateBasic() error

func (*MsgSetPoolWeight) XXX_DiscardUnknown

func (m *MsgSetPoolWeight) XXX_DiscardUnknown()

func (*MsgSetPoolWeight) XXX_Marshal

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

func (*MsgSetPoolWeight) XXX_Merge

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

func (*MsgSetPoolWeight) XXX_Size

func (m *MsgSetPoolWeight) XXX_Size() int

func (*MsgSetPoolWeight) XXX_Unmarshal

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

type MsgSetPoolWeightResponse

type MsgSetPoolWeightResponse struct {
}

MsgSetPoolWeightResponse is a response message for MsgSetPoolWeight.

func (*MsgSetPoolWeightResponse) Descriptor

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

func (*MsgSetPoolWeightResponse) Marshal

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

func (*MsgSetPoolWeightResponse) MarshalTo

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

func (*MsgSetPoolWeightResponse) MarshalToSizedBuffer

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

func (*MsgSetPoolWeightResponse) ProtoMessage

func (*MsgSetPoolWeightResponse) ProtoMessage()

func (*MsgSetPoolWeightResponse) Reset

func (m *MsgSetPoolWeightResponse) Reset()

func (*MsgSetPoolWeightResponse) Size

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

func (*MsgSetPoolWeightResponse) String

func (m *MsgSetPoolWeightResponse) String() string

func (*MsgSetPoolWeightResponse) Unmarshal

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

func (*MsgSetPoolWeightResponse) XXX_DiscardUnknown

func (m *MsgSetPoolWeightResponse) XXX_DiscardUnknown()

func (*MsgSetPoolWeightResponse) XXX_Marshal

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

func (*MsgSetPoolWeightResponse) XXX_Merge

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

func (*MsgSetPoolWeightResponse) XXX_Size

func (m *MsgSetPoolWeightResponse) XXX_Size() int

func (*MsgSetPoolWeightResponse) XXX_Unmarshal

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

type NewPoolWeight

type NewPoolWeight struct {
	PoolId    string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	NewWeight uint64 `protobuf:"varint,2,opt,name=new_weight,json=newWeight,proto3" json:"new_weight,omitempty"`
}

NewPoolWeight is a structure consisting of pool id and weight.

func (*NewPoolWeight) Descriptor

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

func (*NewPoolWeight) GetNewWeight

func (m *NewPoolWeight) GetNewWeight() uint64

func (*NewPoolWeight) GetPoolId

func (m *NewPoolWeight) GetPoolId() string

func (*NewPoolWeight) Marshal

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

func (*NewPoolWeight) MarshalTo

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

func (*NewPoolWeight) MarshalToSizedBuffer

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

func (*NewPoolWeight) ProtoMessage

func (*NewPoolWeight) ProtoMessage()

func (*NewPoolWeight) Reset

func (m *NewPoolWeight) Reset()

func (*NewPoolWeight) Size

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

func (*NewPoolWeight) String

func (m *NewPoolWeight) String() string

func (*NewPoolWeight) Unmarshal

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

func (*NewPoolWeight) XXX_DiscardUnknown

func (m *NewPoolWeight) XXX_DiscardUnknown()

func (*NewPoolWeight) XXX_Marshal

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

func (*NewPoolWeight) XXX_Merge

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

func (*NewPoolWeight) XXX_Size

func (m *NewPoolWeight) XXX_Size() int

func (*NewPoolWeight) XXX_Unmarshal

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

type Params

type Params struct {
	Operators []string `protobuf:"bytes,1,rep,name=operators,proto3" json:"operators,omitempty"`
}

func DefaultParams

func DefaultParams() Params

func NewParams

func NewParams(operators []string) Params

func (*Params) Descriptor

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

func (*Params) GetOperators

func (m *Params) GetOperators() []string

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

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

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 (p *Params) String() string

func (*Params) Unmarshal

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

func (*Params) Validate

func (p *Params) Validate() 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 QueryAllCandidatePoolRequest added in v0.6.7

type QueryAllCandidatePoolRequest struct {
}

func (*QueryAllCandidatePoolRequest) Descriptor added in v0.6.7

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

func (*QueryAllCandidatePoolRequest) Marshal added in v0.6.7

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

func (*QueryAllCandidatePoolRequest) MarshalTo added in v0.6.7

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

func (*QueryAllCandidatePoolRequest) MarshalToSizedBuffer added in v0.6.7

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

func (*QueryAllCandidatePoolRequest) ProtoMessage added in v0.6.7

func (*QueryAllCandidatePoolRequest) ProtoMessage()

func (*QueryAllCandidatePoolRequest) Reset added in v0.6.7

func (m *QueryAllCandidatePoolRequest) Reset()

func (*QueryAllCandidatePoolRequest) Size added in v0.6.7

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

func (*QueryAllCandidatePoolRequest) String added in v0.6.7

func (*QueryAllCandidatePoolRequest) Unmarshal added in v0.6.7

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

func (*QueryAllCandidatePoolRequest) XXX_DiscardUnknown added in v0.6.7

func (m *QueryAllCandidatePoolRequest) XXX_DiscardUnknown()

func (*QueryAllCandidatePoolRequest) XXX_Marshal added in v0.6.7

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

func (*QueryAllCandidatePoolRequest) XXX_Merge added in v0.6.7

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

func (*QueryAllCandidatePoolRequest) XXX_Size added in v0.6.7

func (m *QueryAllCandidatePoolRequest) XXX_Size() int

func (*QueryAllCandidatePoolRequest) XXX_Unmarshal added in v0.6.7

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

type QueryAllCandidatePoolResponse

type QueryAllCandidatePoolResponse struct {
	CandidatePools []CandidatePool `protobuf:"bytes,1,rep,name=candidate_pools,json=candidatePools,proto3" json:"candidate_pools"`
}

func (*QueryAllCandidatePoolResponse) Descriptor

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

func (*QueryAllCandidatePoolResponse) GetCandidatePools

func (m *QueryAllCandidatePoolResponse) GetCandidatePools() []CandidatePool

func (*QueryAllCandidatePoolResponse) Marshal

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

func (*QueryAllCandidatePoolResponse) MarshalTo

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

func (*QueryAllCandidatePoolResponse) MarshalToSizedBuffer

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

func (*QueryAllCandidatePoolResponse) ProtoMessage

func (*QueryAllCandidatePoolResponse) ProtoMessage()

func (*QueryAllCandidatePoolResponse) Reset

func (m *QueryAllCandidatePoolResponse) Reset()

func (*QueryAllCandidatePoolResponse) Size

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

func (*QueryAllCandidatePoolResponse) String

func (*QueryAllCandidatePoolResponse) Unmarshal

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

func (*QueryAllCandidatePoolResponse) XXX_DiscardUnknown

func (m *QueryAllCandidatePoolResponse) XXX_DiscardUnknown()

func (*QueryAllCandidatePoolResponse) XXX_Marshal

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

func (*QueryAllCandidatePoolResponse) XXX_Merge

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

func (*QueryAllCandidatePoolResponse) XXX_Size

func (m *QueryAllCandidatePoolResponse) XXX_Size() int

func (*QueryAllCandidatePoolResponse) XXX_Unmarshal

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

type QueryAllIncentivePoolRequest added in v0.6.7

type QueryAllIncentivePoolRequest struct {
}

func (*QueryAllIncentivePoolRequest) Descriptor added in v0.6.7

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

func (*QueryAllIncentivePoolRequest) Marshal added in v0.6.7

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

func (*QueryAllIncentivePoolRequest) MarshalTo added in v0.6.7

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

func (*QueryAllIncentivePoolRequest) MarshalToSizedBuffer added in v0.6.7

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

func (*QueryAllIncentivePoolRequest) ProtoMessage added in v0.6.7

func (*QueryAllIncentivePoolRequest) ProtoMessage()

func (*QueryAllIncentivePoolRequest) Reset added in v0.6.7

func (m *QueryAllIncentivePoolRequest) Reset()

func (*QueryAllIncentivePoolRequest) Size added in v0.6.7

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

func (*QueryAllIncentivePoolRequest) String added in v0.6.7

func (*QueryAllIncentivePoolRequest) Unmarshal added in v0.6.7

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

func (*QueryAllIncentivePoolRequest) XXX_DiscardUnknown added in v0.6.7

func (m *QueryAllIncentivePoolRequest) XXX_DiscardUnknown()

func (*QueryAllIncentivePoolRequest) XXX_Marshal added in v0.6.7

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

func (*QueryAllIncentivePoolRequest) XXX_Merge added in v0.6.7

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

func (*QueryAllIncentivePoolRequest) XXX_Size added in v0.6.7

func (m *QueryAllIncentivePoolRequest) XXX_Size() int

func (*QueryAllIncentivePoolRequest) XXX_Unmarshal added in v0.6.7

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

type QueryAllIncentivePoolResponse

type QueryAllIncentivePoolResponse struct {
	IncentivePools []IncentivePool `protobuf:"bytes,1,rep,name=incentive_pools,json=incentivePools,proto3" json:"incentive_pools"`
}

func (*QueryAllIncentivePoolResponse) Descriptor

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

func (*QueryAllIncentivePoolResponse) GetIncentivePools

func (m *QueryAllIncentivePoolResponse) GetIncentivePools() []IncentivePool

func (*QueryAllIncentivePoolResponse) Marshal

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

func (*QueryAllIncentivePoolResponse) MarshalTo

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

func (*QueryAllIncentivePoolResponse) MarshalToSizedBuffer

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

func (*QueryAllIncentivePoolResponse) ProtoMessage

func (*QueryAllIncentivePoolResponse) ProtoMessage()

func (*QueryAllIncentivePoolResponse) Reset

func (m *QueryAllIncentivePoolResponse) Reset()

func (*QueryAllIncentivePoolResponse) Size

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

func (*QueryAllIncentivePoolResponse) String

func (*QueryAllIncentivePoolResponse) Unmarshal

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

func (*QueryAllIncentivePoolResponse) XXX_DiscardUnknown

func (m *QueryAllIncentivePoolResponse) XXX_DiscardUnknown()

func (*QueryAllIncentivePoolResponse) XXX_Marshal

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

func (*QueryAllIncentivePoolResponse) XXX_Merge

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

func (*QueryAllIncentivePoolResponse) XXX_Size

func (m *QueryAllIncentivePoolResponse) XXX_Size() int

func (*QueryAllIncentivePoolResponse) XXX_Unmarshal

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

type QueryClient

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 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 defines the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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 QuerySingleCandidatePoolRequest added in v0.6.7

type QuerySingleCandidatePoolRequest struct {
	PoolId string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
}

func (*QuerySingleCandidatePoolRequest) Descriptor added in v0.6.7

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

func (*QuerySingleCandidatePoolRequest) GetPoolId added in v0.6.7

func (m *QuerySingleCandidatePoolRequest) GetPoolId() string

func (*QuerySingleCandidatePoolRequest) Marshal added in v0.6.7

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

func (*QuerySingleCandidatePoolRequest) MarshalTo added in v0.6.7

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

func (*QuerySingleCandidatePoolRequest) MarshalToSizedBuffer added in v0.6.7

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

func (*QuerySingleCandidatePoolRequest) ProtoMessage added in v0.6.7

func (*QuerySingleCandidatePoolRequest) ProtoMessage()

func (*QuerySingleCandidatePoolRequest) Reset added in v0.6.7

func (*QuerySingleCandidatePoolRequest) Size added in v0.6.7

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

func (*QuerySingleCandidatePoolRequest) String added in v0.6.7

func (*QuerySingleCandidatePoolRequest) Unmarshal added in v0.6.7

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

func (*QuerySingleCandidatePoolRequest) XXX_DiscardUnknown added in v0.6.7

func (m *QuerySingleCandidatePoolRequest) XXX_DiscardUnknown()

func (*QuerySingleCandidatePoolRequest) XXX_Marshal added in v0.6.7

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

func (*QuerySingleCandidatePoolRequest) XXX_Merge added in v0.6.7

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

func (*QuerySingleCandidatePoolRequest) XXX_Size added in v0.6.7

func (m *QuerySingleCandidatePoolRequest) XXX_Size() int

func (*QuerySingleCandidatePoolRequest) XXX_Unmarshal added in v0.6.7

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

type QuerySingleCandidatePoolResponse

type QuerySingleCandidatePoolResponse struct {
	PoolId      string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	PoolAddress string `protobuf:"bytes,2,opt,name=pool_address,json=poolAddress,proto3" json:"pool_address,omitempty"`
}

func (*QuerySingleCandidatePoolResponse) Descriptor

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

func (*QuerySingleCandidatePoolResponse) GetPoolAddress

func (m *QuerySingleCandidatePoolResponse) GetPoolAddress() string

func (*QuerySingleCandidatePoolResponse) GetPoolId

func (*QuerySingleCandidatePoolResponse) Marshal

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

func (*QuerySingleCandidatePoolResponse) MarshalTo

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

func (*QuerySingleCandidatePoolResponse) MarshalToSizedBuffer

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

func (*QuerySingleCandidatePoolResponse) ProtoMessage

func (*QuerySingleCandidatePoolResponse) ProtoMessage()

func (*QuerySingleCandidatePoolResponse) Reset

func (*QuerySingleCandidatePoolResponse) Size

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

func (*QuerySingleCandidatePoolResponse) String

func (*QuerySingleCandidatePoolResponse) Unmarshal

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

func (*QuerySingleCandidatePoolResponse) XXX_DiscardUnknown

func (m *QuerySingleCandidatePoolResponse) XXX_DiscardUnknown()

func (*QuerySingleCandidatePoolResponse) XXX_Marshal

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

func (*QuerySingleCandidatePoolResponse) XXX_Merge

func (*QuerySingleCandidatePoolResponse) XXX_Size

func (m *QuerySingleCandidatePoolResponse) XXX_Size() int

func (*QuerySingleCandidatePoolResponse) XXX_Unmarshal

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

type QuerySingleIncentivePoolRequest added in v0.6.7

type QuerySingleIncentivePoolRequest struct {
	PoolId string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
}

func (*QuerySingleIncentivePoolRequest) Descriptor added in v0.6.7

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

func (*QuerySingleIncentivePoolRequest) GetPoolId added in v0.6.7

func (m *QuerySingleIncentivePoolRequest) GetPoolId() string

func (*QuerySingleIncentivePoolRequest) Marshal added in v0.6.7

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

func (*QuerySingleIncentivePoolRequest) MarshalTo added in v0.6.7

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

func (*QuerySingleIncentivePoolRequest) MarshalToSizedBuffer added in v0.6.7

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

func (*QuerySingleIncentivePoolRequest) ProtoMessage added in v0.6.7

func (*QuerySingleIncentivePoolRequest) ProtoMessage()

func (*QuerySingleIncentivePoolRequest) Reset added in v0.6.7

func (*QuerySingleIncentivePoolRequest) Size added in v0.6.7

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

func (*QuerySingleIncentivePoolRequest) String added in v0.6.7

func (*QuerySingleIncentivePoolRequest) Unmarshal added in v0.6.7

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

func (*QuerySingleIncentivePoolRequest) XXX_DiscardUnknown added in v0.6.7

func (m *QuerySingleIncentivePoolRequest) XXX_DiscardUnknown()

func (*QuerySingleIncentivePoolRequest) XXX_Marshal added in v0.6.7

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

func (*QuerySingleIncentivePoolRequest) XXX_Merge added in v0.6.7

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

func (*QuerySingleIncentivePoolRequest) XXX_Size added in v0.6.7

func (m *QuerySingleIncentivePoolRequest) XXX_Size() int

func (*QuerySingleIncentivePoolRequest) XXX_Unmarshal added in v0.6.7

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

type QuerySingleIncentivePoolResponse

type QuerySingleIncentivePoolResponse struct {
	PoolId      string `protobuf:"bytes,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	PoolAddress string `protobuf:"bytes,2,opt,name=pool_address,json=poolAddress,proto3" json:"pool_address,omitempty"`
}

func (*QuerySingleIncentivePoolResponse) Descriptor

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

func (*QuerySingleIncentivePoolResponse) GetPoolAddress

func (m *QuerySingleIncentivePoolResponse) GetPoolAddress() string

func (*QuerySingleIncentivePoolResponse) GetPoolId

func (*QuerySingleIncentivePoolResponse) Marshal

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

func (*QuerySingleIncentivePoolResponse) MarshalTo

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

func (*QuerySingleIncentivePoolResponse) MarshalToSizedBuffer

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

func (*QuerySingleIncentivePoolResponse) ProtoMessage

func (*QuerySingleIncentivePoolResponse) ProtoMessage()

func (*QuerySingleIncentivePoolResponse) Reset

func (*QuerySingleIncentivePoolResponse) Size

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

func (*QuerySingleIncentivePoolResponse) String

func (*QuerySingleIncentivePoolResponse) Unmarshal

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

func (*QuerySingleIncentivePoolResponse) XXX_DiscardUnknown

func (m *QuerySingleIncentivePoolResponse) XXX_DiscardUnknown()

func (*QuerySingleIncentivePoolResponse) XXX_Marshal

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

func (*QuerySingleIncentivePoolResponse) XXX_Merge

func (*QuerySingleIncentivePoolResponse) XXX_Size

func (m *QuerySingleIncentivePoolResponse) XXX_Size() int

func (*QuerySingleIncentivePoolResponse) XXX_Unmarshal

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

type ReplacePoolIncentivesProposal

type ReplacePoolIncentivesProposal 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"`
	NewIncentives []IncentivePool `protobuf:"bytes,3,rep,name=newIncentives,proto3" json:"newIncentives"`
}

func (*ReplacePoolIncentivesProposal) Descriptor

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

func (*ReplacePoolIncentivesProposal) Equal

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

func (*ReplacePoolIncentivesProposal) GetDescription

func (p *ReplacePoolIncentivesProposal) GetDescription() string

GetDescription gets the description of the proposal

func (*ReplacePoolIncentivesProposal) GetTitle

func (p *ReplacePoolIncentivesProposal) GetTitle() string

GetTitle gets the title of the proposal

func (*ReplacePoolIncentivesProposal) Marshal

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

func (*ReplacePoolIncentivesProposal) MarshalTo

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

func (*ReplacePoolIncentivesProposal) MarshalToSizedBuffer

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

func (*ReplacePoolIncentivesProposal) ProposalRoute

func (p *ReplacePoolIncentivesProposal) ProposalRoute() string

ProposalRoute returns the router key for the proposal

func (*ReplacePoolIncentivesProposal) ProposalType

func (p *ReplacePoolIncentivesProposal) ProposalType() string

ProposalType returns the type of the proposal

func (*ReplacePoolIncentivesProposal) ProtoMessage

func (*ReplacePoolIncentivesProposal) ProtoMessage()

func (*ReplacePoolIncentivesProposal) Reset

func (m *ReplacePoolIncentivesProposal) Reset()

func (*ReplacePoolIncentivesProposal) Size

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

func (ReplacePoolIncentivesProposal) String

String returns a string containing the pool incentives proposal.

func (*ReplacePoolIncentivesProposal) Unmarshal

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

func (*ReplacePoolIncentivesProposal) ValidateBasic

func (p *ReplacePoolIncentivesProposal) ValidateBasic() error

ValidateBasic validates a governance proposal's abstract and basic contents

func (*ReplacePoolIncentivesProposal) XXX_DiscardUnknown

func (m *ReplacePoolIncentivesProposal) XXX_DiscardUnknown()

func (*ReplacePoolIncentivesProposal) XXX_Marshal

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

func (*ReplacePoolIncentivesProposal) XXX_Merge

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

func (*ReplacePoolIncentivesProposal) XXX_Size

func (m *ReplacePoolIncentivesProposal) XXX_Size() int

func (*ReplacePoolIncentivesProposal) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateCandidatePool

func (*UnimplementedMsgServer) CreateIncentivePool

func (*UnimplementedMsgServer) SetMultiplePoolWeight

func (*UnimplementedMsgServer) SetPoolWeight

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllCandidatePool

func (*UnimplementedQueryServer) AllIncentivePool

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) SingleCandidatePool

func (*UnimplementedQueryServer) SingleIncentivePool

type UpdatePoolIncentivesProposal

type UpdatePoolIncentivesProposal 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"`
	UpdatedIncentives []IncentivePool `protobuf:"bytes,3,rep,name=updatedIncentives,proto3" json:"updatedIncentives"`
}

func (*UpdatePoolIncentivesProposal) Descriptor

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

func (*UpdatePoolIncentivesProposal) Equal

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

func (*UpdatePoolIncentivesProposal) GetDescription

func (p *UpdatePoolIncentivesProposal) GetDescription() string

GetDescription gets the description of the proposal

func (*UpdatePoolIncentivesProposal) GetTitle

func (p *UpdatePoolIncentivesProposal) GetTitle() string

GetTitle gets the title of the proposal

func (*UpdatePoolIncentivesProposal) Marshal

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

func (*UpdatePoolIncentivesProposal) MarshalTo

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

func (*UpdatePoolIncentivesProposal) MarshalToSizedBuffer

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

func (*UpdatePoolIncentivesProposal) ProposalRoute

func (p *UpdatePoolIncentivesProposal) ProposalRoute() string

ProposalRoute returns the router key for the proposal

func (*UpdatePoolIncentivesProposal) ProposalType

func (p *UpdatePoolIncentivesProposal) ProposalType() string

ProposalType returns the type of the proposal

func (*UpdatePoolIncentivesProposal) ProtoMessage

func (*UpdatePoolIncentivesProposal) ProtoMessage()

func (*UpdatePoolIncentivesProposal) Reset

func (m *UpdatePoolIncentivesProposal) Reset()

func (*UpdatePoolIncentivesProposal) Size

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

func (UpdatePoolIncentivesProposal) String

String returns a string containing the pool incentives proposal.

func (*UpdatePoolIncentivesProposal) Unmarshal

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

func (*UpdatePoolIncentivesProposal) ValidateBasic

func (p *UpdatePoolIncentivesProposal) ValidateBasic() error

ValidateBasic validates a governance proposal's abstract and basic contents.

func (*UpdatePoolIncentivesProposal) XXX_DiscardUnknown

func (m *UpdatePoolIncentivesProposal) XXX_DiscardUnknown()

func (*UpdatePoolIncentivesProposal) XXX_Marshal

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

func (*UpdatePoolIncentivesProposal) XXX_Merge

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

func (*UpdatePoolIncentivesProposal) XXX_Size

func (m *UpdatePoolIncentivesProposal) XXX_Size() int

func (*UpdatePoolIncentivesProposal) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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