keeper

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SpaceSeqPrefix       = collections.NewPrefix(0)
	SpacesPrefix         = collections.NewPrefix(1)
	KeychainSeqPrefix    = collections.NewPrefix(2)
	KeychainsPrefix      = collections.NewPrefix(3)
	KeyPrefix            = collections.NewPrefix(5)
	KeyRequestSeqPrefix  = collections.NewPrefix(6)
	KeyRequestsPrefix    = collections.NewPrefix(7)
	SignRequestSeqPrefix = collections.NewPrefix(8)
	SignRequestsPrefix   = collections.NewPrefix(9)
	KeysSpaceIndexPrefix = collections.NewPrefix(12)
	SpacesByOwnerPrefix  = collections.NewPrefix(13)
)

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

func NewQueryServerImpl added in v0.5.2

func NewQueryServerImpl(keeper Keeper) types.QueryServer

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

func WithAnalyzerValues added in v0.4.0

func WithAnalyzerValues(ctx context.Context, vals map[string]map[string]*ast.Expression) context.Context

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeService store.KVStoreService,
	logger log.Logger,
	authority string,
	actAuthority string,
	wardenAuthority sdk.AccAddress,
	bankKeeper types.BankKeeper,
	actKeeper types.ActKeeper,
	getWasmKeeper func() wasmkeeper.Keeper,
) Keeper

func (Keeper) AllKeys added in v0.1.1

func (Keeper) ExecuteAnalyzer added in v0.4.0

func (k Keeper) ExecuteAnalyzer(ctx sdk.Context, contractAddr, callerAddr sdk.AccAddress, input []byte) ([]byte, map[string]*ast.Expression, error)

ExecuteAnalyzer executes the contract at the specified address, on behalf of an account.

The contract is expected to be an "Analyzer" contract: it will receive ExecuteAnalyzer `input` binary field and will return: - an optional binary (data for signing) - a collection of key-value pairs (key are strings, values are shield's AST nodes)

func (*Keeper) ExportState added in v0.1.1

func (k *Keeper) ExportState(ctx sdk.Context, genState *types.GenesisState) error

func (Keeper) GetActAuthority added in v0.4.0

func (k Keeper) GetActAuthority() string

GetActAuthority returns the act module's authority.

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (*Keeper) ImportState added in v0.1.1

func (k *Keeper) ImportState(ctx sdk.Context, genState types.GenesisState) error

func (Keeper) KeyById added in v0.1.1

func (Keeper) KeyRequestById

nolint:stylecheck,st1003 revive:disable-next-line var-naming

func (Keeper) KeychainById added in v0.1.1

func (Keeper) Keychains

func (Keeper) KeysBySpaceId added in v0.1.1

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) Params

func (Keeper) RegisterTemplates added in v0.5.0

func (k Keeper) RegisterTemplates(reg *acttypes.TemplatesRegistry)

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) ShieldExpander added in v0.3.0

func (k Keeper) ShieldExpander() ast.Expander

func (Keeper) SignRequestById added in v0.4.0

nolint:stylecheck,st1003 revive:disable-next-line var-naming

func (Keeper) SignRequests added in v0.4.0

func (Keeper) SpaceById added in v0.1.1

func (Keeper) Spaces

func (Keeper) SpacesByOwner

type KeysKeeper added in v0.1.1

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

func NewKeysKeeper added in v0.1.1

func NewKeysKeeper(sb *collections.SchemaBuilder, cdc codec.BinaryCodec) KeysKeeper

func (KeysKeeper) Coll added in v0.1.1

func (KeysKeeper) Get added in v0.1.1

func (k KeysKeeper) Get(ctx context.Context, id uint64) (types.Key, error)

func (KeysKeeper) KeysBySpace added in v0.1.1

func (KeysKeeper) New added in v0.1.1

func (k KeysKeeper) New(ctx context.Context, key *types.Key, keyRequest types.KeyRequest) error

func (KeysKeeper) Set added in v0.1.1

func (k KeysKeeper) Set(ctx context.Context, key *types.Key) error

type SpacesKeeper added in v0.1.1

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

func NewSpacesKeeper added in v0.1.1

func NewSpacesKeeper(sb *collections.SchemaBuilder, cdc codec.BinaryCodec) SpacesKeeper

func (SpacesKeeper) ByOwner added in v0.1.1

func (SpacesKeeper) Coll added in v0.1.1

func (SpacesKeeper) Get added in v0.1.1

func (k SpacesKeeper) Get(ctx context.Context, id uint64) (types.Space, error)

func (SpacesKeeper) Import added in v0.4.0

func (k SpacesKeeper) Import(ctx context.Context, spaces []types.Space) error

func (SpacesKeeper) New added in v0.1.1

func (k SpacesKeeper) New(ctx context.Context, space *types.Space) (uint64, error)

func (SpacesKeeper) Set added in v0.1.1

func (k SpacesKeeper) Set(ctx context.Context, space types.Space) error

type WardenShieldExpander added in v0.3.0

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

func (WardenShieldExpander) Expand added in v0.3.0

Jump to

Keyboard shortcuts

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