keeper

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper types.Keeper) types.MsgServer

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

Types

type ExecuteJobWasmEvent added in v0.11.1

type ExecuteJobWasmEvent struct {
	JobID   string `json:"job_id"`
	Sender  string `json:"sender"`
	Payload []byte `json:"payload"`
}

type Keeper

type Keeper struct {
	EvmKeeper types.EvmKeeper

	Chains map[xchain.Type]xchain.Bridge
	// contains filtered or unexported fields
}

func NewKeeper

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

func (Keeper) AddNewJob added in v0.10.0

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

func (Keeper) ExecuteJob added in v1.9.1

func (k Keeper) ExecuteJob(ctx sdk.Context, jobID string, payload []byte, senderAddress sdk.AccAddress, contractAddr sdk.AccAddress) (uint64, error)

func (Keeper) ExecuteWasmJobEventListener added in v0.11.1

func (k Keeper) ExecuteWasmJobEventListener() wasmutil.MessengerFnc

func (Keeper) GetAccount added in v1.2.0

func (k Keeper) GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI

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) PreJobExecution added in v1.2.0

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

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, senderAddress sdk.AccAddress, contractAddress sdk.AccAddress) (uint64, 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!

func (Keeper) UnmarshallJob added in v1.0.0

func (k Keeper) UnmarshallJob(msg []byte) (ExecuteJobWasmEvent, error)

Jump to

Keyboard shortcuts

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