keeper

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 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 added in v1.0.5

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

func (Keeper) DoServiceNodeClaim added in v1.0.5

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

func (Keeper) DoUnbond added in v1.0.5

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

func (Keeper) GetAllServiceNodes added in v1.0.5

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

func (Keeper) GetMinBond added in v1.0.5

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

func (Keeper) GetParams added in v1.0.5

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

func (Keeper) GetServiceNode added in v1.0.5

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

func (Keeper) GetServiceNodeAddByMoniker added in v1.0.5

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

func (Keeper) GetUnBondingQueueTimeSlice added in v1.0.5

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

func (Keeper) GetUnbondingTime added in v1.0.5

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

func (Keeper) InsertUnBondingQueue added in v1.0.5

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

func (Keeper) SetMinBond added in v1.0.5

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

func (Keeper) SetParams added in v1.0.5

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

func (Keeper) SetUnBondingQueueTimeSlice added in v1.0.5

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

func (Keeper) SetUnbondingTime added in v1.0.5

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

func (Keeper) UnBondingQueueIterator added in v1.0.5

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