Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetPoolPotIdStoreKey(poolId uint64, duration time.Duration) []byte
- func NewUpdatePoolIncentivesProposal(title, description string, records []DistrRecord) govtypes.Content
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenesis(data *GenesisState) error
- type AccountKeeper
- type BankKeeper
- type DistrInfo
- func (*DistrInfo) Descriptor() ([]byte, []int)
- func (m *DistrInfo) GetRecords() []DistrRecord
- func (m *DistrInfo) Marshal() (dAtA []byte, err error)
- func (m *DistrInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *DistrInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DistrInfo) ProtoMessage()
- func (m *DistrInfo) Reset()
- func (m *DistrInfo) Size() (n int)
- func (m *DistrInfo) String() string
- func (m *DistrInfo) Unmarshal(dAtA []byte) error
- func (m *DistrInfo) XXX_DiscardUnknown()
- func (m *DistrInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DistrInfo) XXX_Merge(src proto.Message)
- func (m *DistrInfo) XXX_Size() int
- func (m *DistrInfo) XXX_Unmarshal(b []byte) error
- type DistrKeeper
- type DistrRecord
- func (*DistrRecord) Descriptor() ([]byte, []int)
- func (this *DistrRecord) Equal(that interface{}) bool
- func (m *DistrRecord) GetPotId() uint64
- func (m *DistrRecord) Marshal() (dAtA []byte, err error)
- func (m *DistrRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *DistrRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DistrRecord) ProtoMessage()
- func (m *DistrRecord) Reset()
- func (m *DistrRecord) Size() (n int)
- func (m *DistrRecord) String() string
- func (m *DistrRecord) Unmarshal(dAtA []byte) error
- func (r DistrRecord) Validate() error
- func (m *DistrRecord) XXX_DiscardUnknown()
- func (m *DistrRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DistrRecord) XXX_Merge(src proto.Message)
- func (m *DistrRecord) XXX_Size() int
- func (m *DistrRecord) XXX_Unmarshal(b []byte) error
- type GAMMKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDistrInfo() *DistrInfo
- func (m *GenesisState) GetLockableDurations() []time.Duration
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type IncentivesKeeper
- type LockableDurationsInfo
- func (*LockableDurationsInfo) Descriptor() ([]byte, []int)
- func (m *LockableDurationsInfo) GetLockableDurations() []time.Duration
- func (m *LockableDurationsInfo) Marshal() (dAtA []byte, err error)
- func (m *LockableDurationsInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *LockableDurationsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LockableDurationsInfo) ProtoMessage()
- func (m *LockableDurationsInfo) Reset()
- func (m *LockableDurationsInfo) Size() (n int)
- func (m *LockableDurationsInfo) String() string
- func (m *LockableDurationsInfo) Unmarshal(dAtA []byte) error
- func (m *LockableDurationsInfo) XXX_DiscardUnknown()
- func (m *LockableDurationsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LockableDurationsInfo) XXX_Merge(src proto.Message)
- func (m *LockableDurationsInfo) XXX_Size() int
- func (m *LockableDurationsInfo) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetMintedDenom() string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryPotIdsRequest
- func (*QueryPotIdsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPotIdsRequest) GetPoolId() uint64
- func (m *QueryPotIdsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPotIdsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPotIdsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPotIdsRequest) ProtoMessage()
- func (m *QueryPotIdsRequest) Reset()
- func (m *QueryPotIdsRequest) Size() (n int)
- func (m *QueryPotIdsRequest) String() string
- func (m *QueryPotIdsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPotIdsRequest) XXX_DiscardUnknown()
- func (m *QueryPotIdsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPotIdsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPotIdsRequest) XXX_Size() int
- func (m *QueryPotIdsRequest) XXX_Unmarshal(b []byte) error
- type QueryPotIdsResponse
- func (*QueryPotIdsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPotIdsResponse) GetPotIdsWithDuration() []*QueryPotIdsResponse_PotIdWithDuration
- func (m *QueryPotIdsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPotIdsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPotIdsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPotIdsResponse) ProtoMessage()
- func (m *QueryPotIdsResponse) Reset()
- func (m *QueryPotIdsResponse) Size() (n int)
- func (m *QueryPotIdsResponse) String() string
- func (m *QueryPotIdsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPotIdsResponse) XXX_DiscardUnknown()
- func (m *QueryPotIdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPotIdsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPotIdsResponse) XXX_Size() int
- func (m *QueryPotIdsResponse) XXX_Unmarshal(b []byte) error
- type QueryPotIdsResponse_PotIdWithDuration
- func (*QueryPotIdsResponse_PotIdWithDuration) Descriptor() ([]byte, []int)
- func (m *QueryPotIdsResponse_PotIdWithDuration) GetDuration() time.Duration
- func (m *QueryPotIdsResponse_PotIdWithDuration) GetPotId() uint64
- func (m *QueryPotIdsResponse_PotIdWithDuration) Marshal() (dAtA []byte, err error)
- func (m *QueryPotIdsResponse_PotIdWithDuration) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPotIdsResponse_PotIdWithDuration) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPotIdsResponse_PotIdWithDuration) ProtoMessage()
- func (m *QueryPotIdsResponse_PotIdWithDuration) Reset()
- func (m *QueryPotIdsResponse_PotIdWithDuration) Size() (n int)
- func (m *QueryPotIdsResponse_PotIdWithDuration) String() string
- func (m *QueryPotIdsResponse_PotIdWithDuration) Unmarshal(dAtA []byte) error
- func (m *QueryPotIdsResponse_PotIdWithDuration) XXX_DiscardUnknown()
- func (m *QueryPotIdsResponse_PotIdWithDuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPotIdsResponse_PotIdWithDuration) XXX_Merge(src proto.Message)
- func (m *QueryPotIdsResponse_PotIdWithDuration) XXX_Size() int
- func (m *QueryPotIdsResponse_PotIdWithDuration) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedQueryServer
- type UpdatePoolIncentivesProposal
- func (*UpdatePoolIncentivesProposal) Descriptor() ([]byte, []int)
- func (this *UpdatePoolIncentivesProposal) Equal(that interface{}) bool
- func (p *UpdatePoolIncentivesProposal) GetDescription() string
- func (p *UpdatePoolIncentivesProposal) GetTitle() string
- func (m *UpdatePoolIncentivesProposal) Marshal() (dAtA []byte, err error)
- func (m *UpdatePoolIncentivesProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdatePoolIncentivesProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *UpdatePoolIncentivesProposal) ProposalRoute() string
- func (p *UpdatePoolIncentivesProposal) ProposalType() string
- func (*UpdatePoolIncentivesProposal) ProtoMessage()
- func (m *UpdatePoolIncentivesProposal) Reset()
- func (m *UpdatePoolIncentivesProposal) Size() (n int)
- func (p UpdatePoolIncentivesProposal) String() string
- func (m *UpdatePoolIncentivesProposal) Unmarshal(dAtA []byte) error
- func (p *UpdatePoolIncentivesProposal) ValidateBasic() error
- func (m *UpdatePoolIncentivesProposal) XXX_DiscardUnknown()
- func (m *UpdatePoolIncentivesProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdatePoolIncentivesProposal) XXX_Merge(src proto.Message)
- func (m *UpdatePoolIncentivesProposal) XXX_Size() int
- func (m *UpdatePoolIncentivesProposal) XXX_Unmarshal(b []byte) error
Constants ¶
const ( ModuleName = "poolincentives" StoreKey = ModuleName RouterKey = ModuleName QuerierRoute = ModuleName )
const (
ProposalTypeUpdatePoolIncentives = "UpdatePoolIncentives"
)
Variables ¶
var ( ErrNoPotIdExist = sdkerrors.Register(ModuleName, 1, "no pot id exist") ErrDistrRecordNotPositiveWeight = sdkerrors.Register(ModuleName, 2, "weight in record should be positive") ErrDistrRecordNotRegisteredPot = sdkerrors.Register(ModuleName, 3, "pot was not registered") ErrDistrRecordRegisteredPot = sdkerrors.Register(ModuleName, 4, "pot was already registered") ErrEmptyProposalRecords = sdkerrors.Register(ModuleName, 10, "records are empty") ErrEmptyProposalPotIds = sdkerrors.Register(ModuleName, 11, "pot ids are empty") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthIncentives = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIncentives = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIncentives = fmt.Errorf("proto: unexpected end of group") )
var ( LockableDurationsKey = []byte("lockable_durations") DistrInfoKey = []byte("distr_info") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var (
KeyMintedDenom = []byte("MintedDenom")
)
Functions ¶
func NewUpdatePoolIncentivesProposal ¶
func NewUpdatePoolIncentivesProposal(title, description string, records []DistrRecord) govtypes.Content
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterQueryHandler ¶
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 ValidateGenesis ¶
func ValidateGenesis(data *GenesisState) error
ValidateGenesis validates the provided pool-yield genesis state to ensure the expected invariants holds. (i.e. params in correct bounds)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI }
type BankKeeper ¶
type DistrInfo ¶
type DistrInfo struct { TotalWeight github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */ Records []DistrRecord `protobuf:"bytes,2,rep,name=records,proto3" json:"records"` }
func (*DistrInfo) Descriptor ¶
func (*DistrInfo) GetRecords ¶
func (m *DistrInfo) GetRecords() []DistrRecord
func (*DistrInfo) MarshalToSizedBuffer ¶
func (*DistrInfo) ProtoMessage ¶
func (*DistrInfo) ProtoMessage()
func (*DistrInfo) XXX_DiscardUnknown ¶
func (m *DistrInfo) XXX_DiscardUnknown()
func (*DistrInfo) XXX_Marshal ¶
func (*DistrInfo) XXX_Unmarshal ¶
type DistrKeeper ¶
type DistrKeeper interface { GetFeePool(ctx sdk.Context) (feePool distrtypes.FeePool) SetFeePool(ctx sdk.Context, feePool distrtypes.FeePool) }
type DistrRecord ¶
type DistrRecord struct { PotId uint64 `protobuf:"varint,1,opt,name=pot_id,json=potId,proto3" json:"pot_id,omitempty" yaml:"pot_id"` Weight github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=weight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"weight"` }
func (*DistrRecord) Descriptor ¶
func (*DistrRecord) Descriptor() ([]byte, []int)
func (*DistrRecord) Equal ¶
func (this *DistrRecord) Equal(that interface{}) bool
func (*DistrRecord) GetPotId ¶
func (m *DistrRecord) GetPotId() uint64
func (*DistrRecord) Marshal ¶
func (m *DistrRecord) Marshal() (dAtA []byte, err error)
func (*DistrRecord) MarshalToSizedBuffer ¶
func (m *DistrRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DistrRecord) ProtoMessage ¶
func (*DistrRecord) ProtoMessage()
func (*DistrRecord) Reset ¶
func (m *DistrRecord) Reset()
func (*DistrRecord) Size ¶
func (m *DistrRecord) Size() (n int)
func (*DistrRecord) String ¶
func (m *DistrRecord) String() string
func (*DistrRecord) Unmarshal ¶
func (m *DistrRecord) Unmarshal(dAtA []byte) error
func (DistrRecord) Validate ¶
func (r DistrRecord) Validate() error
func (*DistrRecord) XXX_DiscardUnknown ¶
func (m *DistrRecord) XXX_DiscardUnknown()
func (*DistrRecord) XXX_Marshal ¶
func (m *DistrRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DistrRecord) XXX_Merge ¶
func (m *DistrRecord) XXX_Merge(src proto.Message)
func (*DistrRecord) XXX_Size ¶
func (m *DistrRecord) XXX_Size() int
func (*DistrRecord) XXX_Unmarshal ¶
func (m *DistrRecord) XXX_Unmarshal(b []byte) error
type GAMMKeeper ¶
type GenesisState ¶
type GenesisState struct { // params defines all the paramaters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` LockableDurations []time.Duration `` /* 140-byte string literal not displayed */ DistrInfo *DistrInfo `protobuf:"bytes,3,opt,name=distr_info,json=distrInfo,proto3" json:"distr_info,omitempty" yaml:"distr_info"` }
GenesisState defines the pool incentives module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState gets the raw genesis raw message for testing
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.JSONMarshaler, appState map[string]json.RawMessage) *GenesisState
GetGenesisStateFromAppState returns x/pool-yield GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(params Params, lockableDurations []time.Duration, distrInfo *DistrInfo) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDistrInfo ¶
func (m *GenesisState) GetDistrInfo() *DistrInfo
func (*GenesisState) GetLockableDurations ¶
func (m *GenesisState) GetLockableDurations() []time.Duration
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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) 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 IncentivesKeeper ¶
type IncentivesKeeper interface { CreatePot(ctx sdk.Context, isPerpetual bool, owner sdk.AccAddress, coins sdk.Coins, distrTo lockuptypes.QueryCondition, startTime time.Time, numEpochsPaidOver uint64) (uint64, error) GetPotByID(ctx sdk.Context, potID uint64) (*incentivestypes.Pot, error) AddToPotRewards(ctx sdk.Context, owner sdk.AccAddress, coins sdk.Coins, potID uint64) error }
type LockableDurationsInfo ¶
type LockableDurationsInfo struct {
LockableDurations []time.Duration `` /* 140-byte string literal not displayed */
}
func (*LockableDurationsInfo) Descriptor ¶
func (*LockableDurationsInfo) Descriptor() ([]byte, []int)
func (*LockableDurationsInfo) GetLockableDurations ¶
func (m *LockableDurationsInfo) GetLockableDurations() []time.Duration
func (*LockableDurationsInfo) Marshal ¶
func (m *LockableDurationsInfo) Marshal() (dAtA []byte, err error)
func (*LockableDurationsInfo) MarshalTo ¶
func (m *LockableDurationsInfo) MarshalTo(dAtA []byte) (int, error)
func (*LockableDurationsInfo) MarshalToSizedBuffer ¶
func (m *LockableDurationsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LockableDurationsInfo) ProtoMessage ¶
func (*LockableDurationsInfo) ProtoMessage()
func (*LockableDurationsInfo) Reset ¶
func (m *LockableDurationsInfo) Reset()
func (*LockableDurationsInfo) Size ¶
func (m *LockableDurationsInfo) Size() (n int)
func (*LockableDurationsInfo) String ¶
func (m *LockableDurationsInfo) String() string
func (*LockableDurationsInfo) Unmarshal ¶
func (m *LockableDurationsInfo) Unmarshal(dAtA []byte) error
func (*LockableDurationsInfo) XXX_DiscardUnknown ¶
func (m *LockableDurationsInfo) XXX_DiscardUnknown()
func (*LockableDurationsInfo) XXX_Marshal ¶
func (m *LockableDurationsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LockableDurationsInfo) XXX_Merge ¶
func (m *LockableDurationsInfo) XXX_Merge(src proto.Message)
func (*LockableDurationsInfo) XXX_Size ¶
func (m *LockableDurationsInfo) XXX_Size() int
func (*LockableDurationsInfo) XXX_Unmarshal ¶
func (m *LockableDurationsInfo) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // minted_denom is the denomination of the coin expected to be minted by the minting module. // Pool-incentives module doesn’t actually mint the coin itself, but rather manages the distribution of coins that matches the defined minted_denom. MintedDenom string `protobuf:"bytes,1,opt,name=minted_denom,json=mintedDenom,proto3" json:"minted_denom,omitempty" yaml:"minted_denom"` }
func DefaultParams ¶
func DefaultParams() Params
DefaultParams is the default parameter configuration for the pool-incentives module
func (*Params) Descriptor ¶
func (*Params) GetMintedDenom ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // PotIds takes the pool id and returns the matching pot ids and durations PotIds(ctx context.Context, in *QueryPotIdsRequest, opts ...grpc.CallOption) (*QueryPotIdsResponse, 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 QueryPotIdsRequest ¶
type QueryPotIdsRequest struct {
PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"`
}
func (*QueryPotIdsRequest) Descriptor ¶
func (*QueryPotIdsRequest) Descriptor() ([]byte, []int)
func (*QueryPotIdsRequest) GetPoolId ¶
func (m *QueryPotIdsRequest) GetPoolId() uint64
func (*QueryPotIdsRequest) Marshal ¶
func (m *QueryPotIdsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPotIdsRequest) MarshalTo ¶
func (m *QueryPotIdsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPotIdsRequest) MarshalToSizedBuffer ¶
func (m *QueryPotIdsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPotIdsRequest) ProtoMessage ¶
func (*QueryPotIdsRequest) ProtoMessage()
func (*QueryPotIdsRequest) Reset ¶
func (m *QueryPotIdsRequest) Reset()
func (*QueryPotIdsRequest) Size ¶
func (m *QueryPotIdsRequest) Size() (n int)
func (*QueryPotIdsRequest) String ¶
func (m *QueryPotIdsRequest) String() string
func (*QueryPotIdsRequest) Unmarshal ¶
func (m *QueryPotIdsRequest) Unmarshal(dAtA []byte) error
func (*QueryPotIdsRequest) XXX_DiscardUnknown ¶
func (m *QueryPotIdsRequest) XXX_DiscardUnknown()
func (*QueryPotIdsRequest) XXX_Marshal ¶
func (m *QueryPotIdsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPotIdsRequest) XXX_Merge ¶
func (m *QueryPotIdsRequest) XXX_Merge(src proto.Message)
func (*QueryPotIdsRequest) XXX_Size ¶
func (m *QueryPotIdsRequest) XXX_Size() int
func (*QueryPotIdsRequest) XXX_Unmarshal ¶
func (m *QueryPotIdsRequest) XXX_Unmarshal(b []byte) error
type QueryPotIdsResponse ¶
type QueryPotIdsResponse struct {
PotIdsWithDuration []*QueryPotIdsResponse_PotIdWithDuration `` /* 148-byte string literal not displayed */
}
func (*QueryPotIdsResponse) Descriptor ¶
func (*QueryPotIdsResponse) Descriptor() ([]byte, []int)
func (*QueryPotIdsResponse) GetPotIdsWithDuration ¶
func (m *QueryPotIdsResponse) GetPotIdsWithDuration() []*QueryPotIdsResponse_PotIdWithDuration
func (*QueryPotIdsResponse) Marshal ¶
func (m *QueryPotIdsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPotIdsResponse) MarshalTo ¶
func (m *QueryPotIdsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPotIdsResponse) MarshalToSizedBuffer ¶
func (m *QueryPotIdsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPotIdsResponse) ProtoMessage ¶
func (*QueryPotIdsResponse) ProtoMessage()
func (*QueryPotIdsResponse) Reset ¶
func (m *QueryPotIdsResponse) Reset()
func (*QueryPotIdsResponse) Size ¶
func (m *QueryPotIdsResponse) Size() (n int)
func (*QueryPotIdsResponse) String ¶
func (m *QueryPotIdsResponse) String() string
func (*QueryPotIdsResponse) Unmarshal ¶
func (m *QueryPotIdsResponse) Unmarshal(dAtA []byte) error
func (*QueryPotIdsResponse) XXX_DiscardUnknown ¶
func (m *QueryPotIdsResponse) XXX_DiscardUnknown()
func (*QueryPotIdsResponse) XXX_Marshal ¶
func (m *QueryPotIdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPotIdsResponse) XXX_Merge ¶
func (m *QueryPotIdsResponse) XXX_Merge(src proto.Message)
func (*QueryPotIdsResponse) XXX_Size ¶
func (m *QueryPotIdsResponse) XXX_Size() int
func (*QueryPotIdsResponse) XXX_Unmarshal ¶
func (m *QueryPotIdsResponse) XXX_Unmarshal(b []byte) error
type QueryPotIdsResponse_PotIdWithDuration ¶
type QueryPotIdsResponse_PotIdWithDuration struct { PotId uint64 `protobuf:"varint,1,opt,name=pot_id,json=potId,proto3" json:"pot_id,omitempty" yaml:"pot_id"` Duration time.Duration `protobuf:"bytes,2,opt,name=duration,proto3,stdduration" json:"duration"` }
func (*QueryPotIdsResponse_PotIdWithDuration) Descriptor ¶
func (*QueryPotIdsResponse_PotIdWithDuration) Descriptor() ([]byte, []int)
func (*QueryPotIdsResponse_PotIdWithDuration) GetDuration ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) GetDuration() time.Duration
func (*QueryPotIdsResponse_PotIdWithDuration) GetPotId ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) GetPotId() uint64
func (*QueryPotIdsResponse_PotIdWithDuration) Marshal ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) Marshal() (dAtA []byte, err error)
func (*QueryPotIdsResponse_PotIdWithDuration) MarshalTo ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) MarshalTo(dAtA []byte) (int, error)
func (*QueryPotIdsResponse_PotIdWithDuration) MarshalToSizedBuffer ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPotIdsResponse_PotIdWithDuration) ProtoMessage ¶
func (*QueryPotIdsResponse_PotIdWithDuration) ProtoMessage()
func (*QueryPotIdsResponse_PotIdWithDuration) Reset ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) Reset()
func (*QueryPotIdsResponse_PotIdWithDuration) Size ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) Size() (n int)
func (*QueryPotIdsResponse_PotIdWithDuration) String ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) String() string
func (*QueryPotIdsResponse_PotIdWithDuration) Unmarshal ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) Unmarshal(dAtA []byte) error
func (*QueryPotIdsResponse_PotIdWithDuration) XXX_DiscardUnknown ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) XXX_DiscardUnknown()
func (*QueryPotIdsResponse_PotIdWithDuration) XXX_Marshal ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPotIdsResponse_PotIdWithDuration) XXX_Merge ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) XXX_Merge(src proto.Message)
func (*QueryPotIdsResponse_PotIdWithDuration) XXX_Size ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) XXX_Size() int
func (*QueryPotIdsResponse_PotIdWithDuration) XXX_Unmarshal ¶
func (m *QueryPotIdsResponse_PotIdWithDuration) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // PotIds takes the pool id and returns the matching pot ids and durations PotIds(context.Context, *QueryPotIdsRequest) (*QueryPotIdsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) PotIds ¶
func (*UnimplementedQueryServer) PotIds(ctx context.Context, req *QueryPotIdsRequest) (*QueryPotIdsResponse, error)
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"` Records []DistrRecord `protobuf:"bytes,3,rep,name=records,proto3" json:"records"` }
UpdatePoolIncentivesProposal is a gov Content type for updating the pool incentives. If a UpdatePoolIncentivesProposal passes, the proposal’s records are set to the module. Each record has a specified pot id and weight, and the incetives are distributed to each pot according to weight/total_weight. The incentives are put in the fee pool and it is allocated to pots and community pool by the DistrRecords configuration. Note. when potId=0, the amount is distributed to community pool.
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
func (*UpdatePoolIncentivesProposal) GetTitle ¶
func (p *UpdatePoolIncentivesProposal) GetTitle() string
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
func (*UpdatePoolIncentivesProposal) ProposalType ¶
func (p *UpdatePoolIncentivesProposal) ProposalType() string
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 ¶
func (p UpdatePoolIncentivesProposal) String() string
func (*UpdatePoolIncentivesProposal) Unmarshal ¶
func (m *UpdatePoolIncentivesProposal) Unmarshal(dAtA []byte) error
func (*UpdatePoolIncentivesProposal) ValidateBasic ¶
func (p *UpdatePoolIncentivesProposal) ValidateBasic() error
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