keeper

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 24 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 store.KVStoreService,
	account types.AccountKeeper,
	evmKeeper types.EvmKeeper,
	chains []xchain.Bridge,
) *Keeper

func (Keeper) AddNewJob added in v0.10.0

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

func (Keeper) ExecuteJob added in v1.9.1

func (k Keeper) ExecuteJob(ctx context.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 context.Context, addr sdk.AccAddress) authtypes.AccountI

func (Keeper) GetJob added in v0.10.2

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

func (Keeper) GetParams

func (k Keeper) GetParams(ctx context.Context) (params types.Params)

GetParams get all parameters as types.Params

func (Keeper) JobIDExists added in v0.10.0

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

func (Keeper) Logger

func (k Keeper) Logger(ctx context.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 context.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 context.Context, jobID string, in []byte, senderAddress sdk.AccAddress, contractAddress sdk.AccAddress) (uint64, error)

func (Keeper) SetParams

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

SetParams sets the parameters in the store

func (Keeper) Store

func (k Keeper) Store(ctx context.Context) storetypes.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