wasm

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

type AppModule struct {
	wasm.AppModule
	// contains filtered or unexported fields
}

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) Code

func (*LegacyQueryServer) Codes

func (*LegacyQueryServer) Params

type LegacyWasmParams

type LegacyWasmParams struct {
	wasmtypes.Params
}

LegacyWasmParams is a wrapper around wasmtypes.Params that implements ParamSet

Directories

Path Synopsis
client
cli
types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL