keeper

package
v11.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 12 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.

func NewProposalHandler

func NewProposalHandler(k Keeper) govtypes.Handler

NewProposalHandler creates a new governance Handler for wasm proposals

func NewProposalHandlerX

func NewProposalHandlerX(k govKeeper) govtypes.Handler

Types

type Keeper

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

Keeper provides module state operations.

func NewKeeper

func NewKeeper(cdc codec.Codec, storeKey sdk.StoreKey, ps paramTypes.Subspace, wk types.WasmKeeper) 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) 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) 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)

SetParams sets the total set of minting parameters.

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