keeper

package
v0.0.0-...-fb35124 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidCreatorAddr = "invalid creator address: %s"

Variables

This section is empty.

Functions

func GetAllDeployments

func GetAllDeployments(ctx sdk.Context, k Keeper) (deployments []*types.Deployment)

func HandlePayload

func HandlePayload(payload *types.Payload) (*types.Dataset, error)

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,

) *Keeper

func (Keeper) Content

func (Keeper) GetAllMeta

func (k Keeper) GetAllMeta(ctx sdk.Context) (metas []*types.Meta)

func (Keeper) GetDataset

func (k Keeper) GetDataset(ctx sdk.Context, addr sdk.AccAddress, name string) (dataset *types.Dataset)

func (Keeper) GetItemContent

func (k Keeper) GetItemContent(ctx sdk.Context, addr sdk.AccAddress, name string, path string) (content types.ItemContent, found bool)

func (Keeper) GetMeta

func (k Keeper) GetMeta(ctx sdk.Context, addr sdk.AccAddress, name string) (meta types.Meta, found bool)

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) HasDeployment

func (k Keeper) HasDeployment(ctx sdk.Context, creator sdk.AccAddress, name string) bool

func (Keeper) Logger

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

func (Keeper) Metas

func (Keeper) Params

func (Keeper) Remove

func (k Keeper) Remove(ctx sdk.Context, addr sdk.AccAddress, name string)

func (Keeper) RemoveDataset

func (k Keeper) RemoveDataset(ctx sdk.Context, addr sdk.AccAddress, name string)

func (Keeper) SetDataset

func (k Keeper) SetDataset(ctx sdk.Context, addr sdk.AccAddress, name string, dataset *types.Dataset)

func (Keeper) SetDeployment

func (k Keeper) SetDeployment(ctx sdk.Context, addr sdk.AccAddress, meta *types.Meta, dataset *types.Dataset)

func (Keeper) SetItem

func (k Keeper) SetItem(ctx sdk.Context, addr sdk.AccAddress, name string, item *types.Item)

func (Keeper) SetMeta

func (k Keeper) SetMeta(ctx sdk.Context, addr sdk.AccAddress, meta *types.Meta)

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