keeper

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultParamspace = types.ModuleName
)

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

func ParamKeyTable

func ParamKeyTable() params.KeyTable

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(storeKey sdk.StoreKey, cdc *codec.Codec, supplyKeeper types.SupplyKeeper, paramstore params.Subspace, codespace sdk.CodespaceType) Keeper

func (Keeper) DequeueAllMatureUnBondingQueue

func (k Keeper) DequeueAllMatureUnBondingQueue(ctx sdk.Context, curTime time.Time) (matureUnBondings []types.UnBonding)

func (Keeper) DoServiceNodeClaim

func (k Keeper) DoServiceNodeClaim(ctx sdk.Context, m types.MsgServiceNodeClaim) (err sdk.Error)

func (Keeper) DoUnbond

func (k Keeper) DoUnbond(ctx sdk.Context, unBonding types.UnBonding) sdk.Error

func (Keeper) GetAllServiceNodes

func (k Keeper) GetAllServiceNodes(ctx sdk.Context) (serviceNodes types.ServiceNodes)

func (Keeper) GetMinBond

func (k Keeper) GetMinBond(ctx sdk.Context) (res sdk.Coin)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (res types.Params)

func (Keeper) GetServiceNode

func (k Keeper) GetServiceNode(ctx sdk.Context, operator sdk.AccAddress) (obj types.ServiceNode, found bool)

func (Keeper) GetServiceNodeAddByMoniker

func (k Keeper) GetServiceNodeAddByMoniker(ctx sdk.Context, moniker string) (acc sdk.AccAddress, exist bool)

func (Keeper) GetUnBondingQueueTimeSlice

func (k Keeper) GetUnBondingQueueTimeSlice(ctx sdk.Context, timestamp time.Time) (unBondings types.UnBondings)

func (Keeper) GetUnbondingTime

func (k Keeper) GetUnbondingTime(ctx sdk.Context) (res time.Duration)

func (Keeper) InsertUnBondingQueue

func (k Keeper) InsertUnBondingQueue(ctx sdk.Context, unBonding types.UnBonding, endTime time.Time)

func (Keeper) SetMinBond

func (k Keeper) SetMinBond(ctx sdk.Context, minBond sdk.Coin)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

func (Keeper) SetUnBondingQueueTimeSlice

func (k Keeper) SetUnBondingQueueTimeSlice(ctx sdk.Context, timestamp time.Time, todos types.UnBondings)

func (Keeper) SetUnbondingTime

func (k Keeper) SetUnbondingTime(ctx sdk.Context, unbondingTime time.Duration)

func (Keeper) UnBondingQueueIterator

func (k Keeper) UnBondingQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator

Jump to

Keyboard shortcuts

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