Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) DeleteCodeAuthorization(ctx sdk.Context, codeID uint64) error
- func (k Keeper) DeleteContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress) error
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetCodeAuthorization(ctx sdk.Context, codeID uint64) (types.CodeAuthorization, error)
- func (k Keeper) GetContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress) (types.ContractAuthorization, error)
- func (k Keeper) GetContractInfo(ctx sdk.Context, contractAddr sdk.AccAddress) *wasmtypes.ContractInfo
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params, err error)
- func (k Keeper) HasCodeAuthorization(ctx sdk.Context, codeID uint64) bool
- func (k Keeper) HasContractAuthorization(ctx sdk.Context, contractAddr sdk.AccAddress) bool
- 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) error
- type Migrator
- 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.
Types ¶
type Keeper ¶
type Keeper struct { Schema collections.Schema Params collections.Item[types.Params] CodeAuthorizations collections.Map[uint64, types.CodeAuthorization] ContractAuthorizations collections.Map[[]byte, types.ContractAuthorization] // contains filtered or unexported fields }
Keeper provides module state operations.
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, storeService corestoretypes.KVStoreService, wk types.WasmKeeper, authority string, ) Keeper
NewKeeper creates a new Keeper instance.
func (Keeper) DeleteCodeAuthorization ¶
DeleteCodeAuthorization deletes any existing authorizations for given code id
func (Keeper) DeleteContractAuthorization ¶
DeleteContractAuthorization deletes any existing authorizations for given contract address
func (Keeper) GetAuthority ¶
GetAuthority returns the x/wasm module's authority.
func (Keeper) GetCodeAuthorization ¶
func (k Keeper) GetCodeAuthorization(ctx sdk.Context, codeID uint64) (types.CodeAuthorization, error)
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, error)
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) HasCodeAuthorization ¶
HasCodeAuthorization checks if the given code id has any authorizations
func (Keeper) HasContractAuthorization ¶
HasContractAuthorization checks if the given contract address has any authorizations
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 Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func (Migrator) Migrate1to2 ¶
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) 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)