keeper

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAddress added in v0.10.2

func BuildAddress(blockHeight uint64, jobID string) sdk.AccAddress

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	Chains map[xchain.Type]xchain.Bridge
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey sdk.StoreKey,
	ps paramtypes.Subspace,
	account types.AccountKeeper,
	chains []xchain.Bridge,
) *Keeper

func (Keeper) AddNewJob added in v0.10.0

func (k Keeper) AddNewJob(ctx sdk.Context, job *types.Job) (sdk.AccAddress, error)

func (Keeper) GetJob added in v0.10.2

func (k Keeper) GetJob(ctx sdk.Context, jobID string) (*types.Job, error)

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) JobIDExists added in v0.10.0

func (k Keeper) JobIDExists(ctx sdk.Context, jobID string) bool

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) ModuleName added in v0.10.2

func (k Keeper) ModuleName() string

func (Keeper) Params

func (Keeper) QueryGetJobByID added in v0.10.0

func (Keeper) ScheduleNow added in v0.10.0

func (k Keeper) ScheduleNow(ctx sdk.Context, jobID string, in []byte) error

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) Store

func (k Keeper) Store(ctx sdk.Context) sdk.KVStore

store returns default store for this keeper!

Jump to

Keyboard shortcuts

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