Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewProposalHandler(k Keeper) govtypes.Handler
- func NewProposalHandlerX(k govKeeper) govtypes.Handler
- type Keeper
- func (k Keeper) DeleteCodeAuthorization(ctx sdk.Context, codeID uint64)
- func (k Keeper) DeleteContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress)
- func (k Keeper) GetCodeAuthorization(ctx sdk.Context, codeID uint64) (types.CodeAuthorization, bool)
- func (k Keeper) GetContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress) (types.ContractAuthorization, bool)
- func (k Keeper) GetContractInfo(ctx sdk.Context, contractAddr sdk.AccAddress) *wasmtypes.ContractInfo
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) IsPrivilegedAddress(ctx sdk.Context, address string) bool
- func (k Keeper) IterateCodeAuthorizations(ctx sdk.Context, cb func(types.CodeAuthorization) bool)
- func (k Keeper) IterateContractAuthorizations(ctx sdk.Context, cb func(types.ContractAuthorization) bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetCodeAuthorization(ctx sdk.Context, ca types.CodeAuthorization) error
- func (k Keeper) SetContractAuthorization(ctx sdk.Context, ca types.ContractAuthorization) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- type QueryServer
- func (q QueryServer) Authorizations(c context.Context, _ *types.QueryAuthorizationsRequest) (*types.QueryAuthorizationsResponse, error)
- func (q QueryServer) CodeAuthorization(c context.Context, req *types.QueryCodeAuthorizationRequest) (*types.QueryCodeAuthorizationResponse, error)
- func (q QueryServer) ContractAuthorization(c context.Context, req *types.QueryContractAuthorizationRequest) (*types.QueryContractAuthorizationResponse, error)
- func (q QueryServer) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, 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
}
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 ¶
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) IsPrivilegedAddress ¶
func (Keeper) IterateCodeAuthorizations ¶
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) SetCodeAuthorization ¶
SetCodeAuthorization creates of updates provided authorizations for given code id
func (Keeper) SetContractAuthorization ¶
SetContractAuthorization creates of updates provided authorizations for given contract address
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) Authorizations ¶
func (q QueryServer) Authorizations(c context.Context, _ *types.QueryAuthorizationsRequest) (*types.QueryAuthorizationsResponse, error)
func (QueryServer) CodeAuthorization ¶
func (q QueryServer) CodeAuthorization(c context.Context, req *types.QueryCodeAuthorizationRequest) (*types.QueryCodeAuthorizationResponse, error)
func (QueryServer) ContractAuthorization ¶
func (q QueryServer) ContractAuthorization(c context.Context, req *types.QueryContractAuthorizationRequest) (*types.QueryContractAuthorizationResponse, error)
func (QueryServer) Params ¶
func (q QueryServer) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)