keeper

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 21 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)
	KeySeqPrefix                    = collections.NewPrefix(4)
	KeyPrefix                       = collections.NewPrefix(5)
	KeyRequestSeqPrefix             = collections.NewPrefix(6)
	KeyRequestsPrefix               = collections.NewPrefix(7)
	SignRequestSeqPrefix            = collections.NewPrefix(8)
	SignRequestsPrefix              = collections.NewPrefix(9)
	SignTransactionRequestSeqPrefix = collections.NewPrefix(10)
	SignTransactionRequestsPrefix   = collections.NewPrefix(11)
	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.

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,

	bankKeeper types.BankKeeper,
	intentKeeper types.IntentKeeper,
) Keeper

func (Keeper) AllKeys added in v0.1.1

func (*Keeper) ExportState added in v0.1.1

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

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) 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) SignatureRequestById

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

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 Migrator added in v0.1.1

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

Migrator is a struct for handling in-place store migrations.

func NewMigrator added in v0.1.1

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1to2 added in v0.1.1

func (m Migrator) Migrate1to2(ctx sdk.Context) 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) 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 sdk.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

func (w WardenShieldExpander) Expand(goCtx context.Context, ident *ast.Identifier) (*ast.Expression, error)

Jump to

Keyboard shortcuts

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