Documentation ¶
Index ¶
- func ModuleLogger(ctx sdk.Context) log.Logger
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewProposalHandler(k Keeper) govtypes.Handler
- func NewProposalHandlerX(k govKeeper) govtypes.Handler
- type Keeper
- func (k Keeper) IsPrivileged(ctx sdk.Context, contractAddr sdk.AccAddress) bool
- func (k Keeper) IteratePrivileged(ctx sdk.Context, cb func(sdk.AccAddress) bool)
- func (k Keeper) ListPrivileged(c context.Context, req *types.QueryListPrivilegedRequest) (*types.QueryListPrivilegedResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetPrivileged(ctx sdk.Context, contractAddr sdk.AccAddress) error
- func (k Keeper) UnsetPrivileged(ctx sdk.Context, contractAddr sdk.AccAddress) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewProposalHandler ¶
NewProposalHandler creates a new governance Handler for wasm proposals
func NewProposalHandlerX ¶
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, wk types.WasmKeeper, ) *Keeper
func (Keeper) IsPrivileged ¶
IsPrivileged returns if the given contract is part of the privilege contract list
func (Keeper) IteratePrivileged ¶
IteratePrivileged executes the given func on all the privilege contracts
func (Keeper) ListPrivileged ¶
func (k Keeper) ListPrivileged(c context.Context, req *types.QueryListPrivilegedRequest) (*types.QueryListPrivilegedResponse, error)
ListPrivileged lists the addresses of all the contracts which have been promoted to privilege status
func (Keeper) SetPrivileged ¶
SetPrivileged checks if the given contract exists and adds it to the list of privilege contracts
func (Keeper) UnsetPrivileged ¶
UnsetPrivileged checks if the given contract exists and if it has privilege and remove it from the list of privileg contracts
Click to show internal directories.
Click to hide internal directories.