keeper

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc codec.Codec, storeKey storetypes.StoreKey, acc types.AccountKeeper) Keeper

func (Keeper) BlockHeader

func (Keeper) CreateBlockHeader

func (k Keeper) CreateBlockHeader(ctx sdk.Context, spaceId, height uint64, header string, sender sdk.AccAddress) error

CreateBlockHeader creates a layer2 block header record

func (Keeper) CreateSpace

func (k Keeper) CreateSpace(ctx sdk.Context, name, uri string, sender sdk.AccAddress) (uint64, error)

CreateSpace creates a new space

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

func (Keeper) GetAccKeeper

func (k Keeper) GetAccKeeper() types.AccountKeeper

func (Keeper) GetBlockHeader

func (k Keeper) GetBlockHeader(ctx sdk.Context, spaceId, height uint64) (string, error)

func (Keeper) GetBlockHeaders

func (k Keeper) GetBlockHeaders(ctx sdk.Context) []types.BlockHeader

func (Keeper) GetSpace

func (k Keeper) GetSpace(ctx sdk.Context, spaceId uint64) (types.Space, error)

func (Keeper) GetSpaceSequence

func (k Keeper) GetSpaceSequence(ctx sdk.Context) uint64

GetSpaceSequence return the current sequence for space <0x01> -> <currSpaceSequence>

func (Keeper) GetSpaces

func (k Keeper) GetSpaces(ctx sdk.Context) []types.Space

func (Keeper) HasBlockHeader

func (k Keeper) HasBlockHeader(ctx sdk.Context, spaceId, height uint64) bool

func (Keeper) HasSpace

func (k Keeper) HasSpace(ctx sdk.Context, spaceId uint64) bool

func (Keeper) HasSpaceOfOwner

func (k Keeper) HasSpaceOfOwner(ctx sdk.Context, owner sdk.AccAddress, spaceId uint64) bool

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)

func (Keeper) Space

func (Keeper) TransferSpace

func (k Keeper) TransferSpace(ctx sdk.Context, spaceId uint64, from, to sdk.AccAddress) error

TransferSpace transfer the space ownership

type ValidateSideChainDecorator

type ValidateSideChainDecorator struct {
	// contains filtered or unexported fields
}

func NewValidateSideChainDecorator

func NewValidateSideChainDecorator(keeper Keeper, permKeeper types.PermKeeper) ValidateSideChainDecorator

func (ValidateSideChainDecorator) AnteHandle

func (dlt ValidateSideChainDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)

Jump to

Keyboard shortcuts

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