Documentation
¶
Index ¶
- Variables
- func NewLegacyQueryHandler(next wasmkeeper.WasmVMQueryHandler, storeKey storetypes.StoreKey) wasmkeeper.WasmVMQueryHandler
- func NewLegacyQueryServer(originalServer wasmtypes.QueryServer, keeper *wasmkeeper.Keeper, ...) wasmtypes.QueryServer
- type AppModule
- type AppModuleBasic
- type LegacyQueryHandler
- type LegacyQueryServer
- func (q *LegacyQueryServer) AllContractState(ctx context.Context, req *wasmtypes.QueryAllContractStateRequest) (*wasmtypes.QueryAllContractStateResponse, error)
- func (q *LegacyQueryServer) Code(ctx context.Context, req *wasmtypes.QueryCodeRequest) (*wasmtypes.QueryCodeResponse, error)
- func (q *LegacyQueryServer) Codes(ctx context.Context, req *wasmtypes.QueryCodesRequest) (*wasmtypes.QueryCodesResponse, error)
- func (q *LegacyQueryServer) ContractHistory(ctx context.Context, req *wasmtypes.QueryContractHistoryRequest) (*wasmtypes.QueryContractHistoryResponse, error)
- func (q *LegacyQueryServer) ContractInfo(ctx context.Context, req *wasmtypes.QueryContractInfoRequest) (*wasmtypes.QueryContractInfoResponse, error)
- func (q *LegacyQueryServer) ContractsByCode(ctx context.Context, req *wasmtypes.QueryContractsByCodeRequest) (*wasmtypes.QueryContractsByCodeResponse, error)
- func (q *LegacyQueryServer) Params(ctx context.Context, req *wasmtypes.QueryParamsRequest) (*wasmtypes.QueryParamsResponse, error)
- func (q *LegacyQueryServer) PinnedCodes(ctx context.Context, req *wasmtypes.QueryPinnedCodesRequest) (*wasmtypes.QueryPinnedCodesResponse, error)
- func (q *LegacyQueryServer) RawContractState(ctx context.Context, req *wasmtypes.QueryRawContractStateRequest) (*wasmtypes.QueryRawContractStateResponse, error)
- func (q *LegacyQueryServer) SmartContractState(ctx context.Context, req *wasmtypes.QuerySmartContractStateRequest) (*wasmtypes.QuerySmartContractStateResponse, error)
- type LegacyWasmParams
Constants ¶
This section is empty.
Variables ¶
var ( LegacyParamStoreKeyUploadAccess = []byte("uploadAccess") LegacyParamStoreKeyInstantiateAccess = []byte("instantiateAccess") )
Functions ¶
func NewLegacyQueryHandler ¶
func NewLegacyQueryHandler(next wasmkeeper.WasmVMQueryHandler, storeKey storetypes.StoreKey) wasmkeeper.WasmVMQueryHandler
NewLegacyQueryHandler creates a query handler that wraps contract queries with legacy store support
func NewLegacyQueryServer ¶
func NewLegacyQueryServer( originalServer wasmtypes.QueryServer, keeper *wasmkeeper.Keeper, storeKey storetypes.StoreKey, ) wasmtypes.QueryServer
Types ¶
type AppModule ¶
func NewAppModule ¶
func NewAppModule( cdc codec.Codec, keeper *keeper.Keeper, validatorSetSource keeper.ValidatorSetSource, ak types.AccountKeeper, bk simulation.BankKeeper, router *baseapp.MsgServiceRouter, ss paramtypes.Subspace, storeKey storetypes.StoreKey, ) AppModule
NewAppModule creates a new AppModule object
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
RegisterServices registers module services.
type AppModuleBasic ¶
type AppModuleBasic struct {
wasm.AppModuleBasic
}
AppModuleBasic defines the basic application module used by the wasm module.
func (AppModuleBasic) GetTxCmd ¶
func (b AppModuleBasic) GetTxCmd() *cobra.Command
GetTxCmd returns the root tx command for the wasm module.
func (AppModuleBasic) RegisterInterfaces ¶
func (b AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces implements InterfaceModule
type LegacyQueryHandler ¶
type LegacyQueryHandler struct {
// contains filtered or unexported fields
}
LegacyQueryHandler wraps contract queries to apply legacy store translation for historical heights
func (*LegacyQueryHandler) HandleQuery ¶
func (h *LegacyQueryHandler) HandleQuery(ctx sdk.Context, caller sdk.AccAddress, request wasmvmtypes.QueryRequest) ([]byte, error)
HandleQuery intercepts contract queries and wraps the context with legacy store if needed
type LegacyQueryServer ¶
type LegacyQueryServer struct {
// Embed the original query server to inherit all methods
wasmtypes.QueryServer
// contains filtered or unexported fields
}
LegacyQueryServer wraps the wasm QueryServer and sets legacy parameters for pre-upgrade height queries
func (*LegacyQueryServer) AllContractState ¶
func (q *LegacyQueryServer) AllContractState(ctx context.Context, req *wasmtypes.QueryAllContractStateRequest) (*wasmtypes.QueryAllContractStateResponse, error)
func (*LegacyQueryServer) Code ¶
func (q *LegacyQueryServer) Code(ctx context.Context, req *wasmtypes.QueryCodeRequest) (*wasmtypes.QueryCodeResponse, error)
func (*LegacyQueryServer) Codes ¶
func (q *LegacyQueryServer) Codes(ctx context.Context, req *wasmtypes.QueryCodesRequest) (*wasmtypes.QueryCodesResponse, error)
func (*LegacyQueryServer) ContractHistory ¶
func (q *LegacyQueryServer) ContractHistory(ctx context.Context, req *wasmtypes.QueryContractHistoryRequest) (*wasmtypes.QueryContractHistoryResponse, error)
func (*LegacyQueryServer) ContractInfo ¶
func (q *LegacyQueryServer) ContractInfo(ctx context.Context, req *wasmtypes.QueryContractInfoRequest) (*wasmtypes.QueryContractInfoResponse, error)
func (*LegacyQueryServer) ContractsByCode ¶
func (q *LegacyQueryServer) ContractsByCode(ctx context.Context, req *wasmtypes.QueryContractsByCodeRequest) (*wasmtypes.QueryContractsByCodeResponse, error)
func (*LegacyQueryServer) Params ¶
func (q *LegacyQueryServer) Params(ctx context.Context, req *wasmtypes.QueryParamsRequest) (*wasmtypes.QueryParamsResponse, error)
func (*LegacyQueryServer) PinnedCodes ¶
func (q *LegacyQueryServer) PinnedCodes(ctx context.Context, req *wasmtypes.QueryPinnedCodesRequest) (*wasmtypes.QueryPinnedCodesResponse, error)
func (*LegacyQueryServer) RawContractState ¶
func (q *LegacyQueryServer) RawContractState(ctx context.Context, req *wasmtypes.QueryRawContractStateRequest) (*wasmtypes.QueryRawContractStateResponse, error)
func (*LegacyQueryServer) SmartContractState ¶
func (q *LegacyQueryServer) SmartContractState(ctx context.Context, req *wasmtypes.QuerySmartContractStateRequest) (*wasmtypes.QuerySmartContractStateResponse, error)
type LegacyWasmParams ¶
LegacyWasmParams is a wrapper around wasmtypes.Params that implements ParamSet