keeper

package
v14.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 13 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
}

Keeper provides module state operations.

func NewKeeper

func NewKeeper(cdc codec.Codec, storeKey storetypes.StoreKey, ps paramTypes.Subspace, wk types.WasmKeeper, authority string) Keeper

NewKeeper creates a new Keeper instance.

func (Keeper) DeleteCodeAuthorization

func (k Keeper) DeleteCodeAuthorization(ctx sdk.Context, codeID uint64)

DeleteCodeAuthorization deletes any existing authorizations for given code id

func (Keeper) DeleteContractAuthorization

func (k Keeper) DeleteContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress)

DeleteContractAuthorization deletes any existing authorizations for given contract address

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the x/wasm module's authority.

func (Keeper) GetCodeAuthorization

func (k Keeper) GetCodeAuthorization(ctx sdk.Context, codeID uint64) (types.CodeAuthorization, bool)

GetCodeAuthorization gets any authorizations set up for the given code id

func (Keeper) GetContractAuthorization

func (k Keeper) GetContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress) (types.ContractAuthorization, bool)

GetContractAuthorization gets any authorizations set up for the given contract address

func (Keeper) GetContractInfo

func (k Keeper) GetContractInfo(ctx sdk.Context, contractAddr sdk.AccAddress) *wasmtypes.ContractInfo

func (Keeper) GetParams

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

GetParams returns the total set of minting parameters.

func (Keeper) IsPrivilegedAddress

func (k Keeper) IsPrivilegedAddress(ctx sdk.Context, address string) bool

func (Keeper) IterateCodeAuthorizations

func (k Keeper) IterateCodeAuthorizations(ctx sdk.Context, cb func(types.CodeAuthorization) bool)

IterateCodeAuthorizations executes the given func on all the code authorizations

func (Keeper) IterateContractAuthorizations

func (k Keeper) IterateContractAuthorizations(ctx sdk.Context, cb func(types.ContractAuthorization) bool)

IterateContractAuthorizations executes the given func on all the contract authorizations

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) SetCodeAuthorization

func (k Keeper) SetCodeAuthorization(ctx sdk.Context, ca types.CodeAuthorization) error

SetCodeAuthorization creates of updates provided authorizations for given code id

func (Keeper) SetContractAuthorization

func (k Keeper) SetContractAuthorization(ctx sdk.Context, ca types.ContractAuthorization) error

SetContractAuthorization creates of updates provided authorizations for given contract address

func (Keeper) SetParams

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

SetParams sets the total set of minting parameters.

type Migrator

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

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

func NewMigrator

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1to2

func (m Migrator) Migrate1to2(ctx sdk.Context) error

Migrate1to2 migrates the x/globalfee module state from the consensus version 1 to version 2. Specifically, it takes the parameters that are currently stored and managed by the x/params module and stores them directly into the x/globalfee module state.

type QueryServer

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

QueryServer implements the module gRPC query service.

func NewQueryServer

func NewQueryServer(keeper Keeper) *QueryServer

NewQueryServer creates a new gRPC query server.

func (QueryServer) Params

Jump to

Keyboard shortcuts

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