keeper

package
v3.46.13-integrate-alp... Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,

	bankKeeper types.BankKeeper,
) *Keeper

func (Keeper) ChannelAll

func (Keeper) GetAllChannel

func (k Keeper) GetAllChannel(ctx sdk.Context) (list []types.Channel)

GetAllChannel returns all channel

func (Keeper) GetAllCommitment

func (k Keeper) GetAllCommitment(ctx sdk.Context) (list []types.Commitment)

GetAllCommitment returns all commitment

func (Keeper) GetAllFwdcommitment

func (k Keeper) GetAllFwdcommitment(ctx sdk.Context) (list []types.Fwdcommitment)

GetAllFwdcommitment returns all fwdcommitment

func (Keeper) GetChannel

func (k Keeper) GetChannel(
	ctx sdk.Context,
	index string,

) (val types.Channel, found bool)

GetChannel returns a channel from its index

func (Keeper) GetCommitment

func (k Keeper) GetCommitment(
	ctx sdk.Context,
	index string,

) (val types.Commitment, found bool)

GetCommitment returns a commitment from its index

func (Keeper) GetFwdcommitment

func (k Keeper) GetFwdcommitment(
	ctx sdk.Context,
	index string,

) (val types.Fwdcommitment, found bool)

GetFwdcommitment returns a fwdcommitment from its index

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveChannel

func (k Keeper) RemoveChannel(
	ctx sdk.Context,
	index string,

)

RemoveChannel removes a channel from the store

func (Keeper) RemoveCommitment

func (k Keeper) RemoveCommitment(
	ctx sdk.Context,
	index string,

)

RemoveCommitment removes a commitment from the store

func (Keeper) RemoveFwdcommitment

func (k Keeper) RemoveFwdcommitment(
	ctx sdk.Context,
	index string,

)

RemoveFwdcommitment removes a fwdcommitment from the store

func (Keeper) SetChannel

func (k Keeper) SetChannel(ctx sdk.Context, channel types.Channel)

SetChannel set a specific channel in the store from its index

func (Keeper) SetCommitment

func (k Keeper) SetCommitment(ctx sdk.Context, commitment types.Commitment)

SetCommitment set a specific commitment in the store from its index

func (Keeper) SetFwdcommitment

func (k Keeper) SetFwdcommitment(ctx sdk.Context, fwdcommitment types.Fwdcommitment)

SetFwdcommitment set a specific fwdcommitment in the store from its index

func (Keeper) SetParams

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

SetParams set the params

Jump to

Keyboard shortcuts

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