Documentation
¶
Index ¶
- type ArgsInstantiate
- type CosmosPlugin
- func (cp *CosmosPlugin) DbGet(args DbGetArgType) []byte
- func (cp *CosmosPlugin) DbHas(args DbGetArgType) bool
- func (cp *CosmosPlugin) DbRemove(args DbGetArgType) bool
- func (cp *CosmosPlugin) DbSet(args DbSetArgType) bool
- func (cp *CosmosPlugin) EncodeArgs(method string, args []byte) (any, error)
- func (cp *CosmosPlugin) SetStore(store wasmvm.KVStore)
- type DbGetArgType
- type DbSetArgType
- type ExecResult
- type InitResult
- type VM
- func (vm *VM) AnalyzeCode(_ wasmvm.Checksum) (*types.AnalysisReport, error)
- func (vm *VM) Create(code wasmvm.WasmCode) (wasmvm.Checksum, error)
- func (vm *VM) Execute(checksum wasmvm.Checksum, env types.Env, info types.MessageInfo, ...) (*types.Response, uint64, error)
- func (vm *VM) GetCode(checksum wasmvm.Checksum) (wasmvm.WasmCode, error)
- func (vm *VM) Init(checksum wasmvm.Checksum, env types.Env, info types.MessageInfo, ...) (*types.Response, uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgsInstantiate ¶
type ArgsInstantiate struct {
// contains filtered or unexported fields
}
type CosmosPlugin ¶
type CosmosPlugin struct {
// contains filtered or unexported fields
}
func NewCosmosPlugin ¶
func NewCosmosPlugin() *CosmosPlugin
func (*CosmosPlugin) DbGet ¶
func (cp *CosmosPlugin) DbGet(args DbGetArgType) []byte
func (*CosmosPlugin) DbHas ¶
func (cp *CosmosPlugin) DbHas(args DbGetArgType) bool
func (*CosmosPlugin) DbRemove ¶
func (cp *CosmosPlugin) DbRemove(args DbGetArgType) bool
func (*CosmosPlugin) DbSet ¶
func (cp *CosmosPlugin) DbSet(args DbSetArgType) bool
func (*CosmosPlugin) EncodeArgs ¶
func (cp *CosmosPlugin) EncodeArgs(method string, args []byte) (any, error)
func (*CosmosPlugin) SetStore ¶
func (cp *CosmosPlugin) SetStore(store wasmvm.KVStore)
type DbGetArgType ¶
type DbGetArgType struct {
Key []byte
}
type DbSetArgType ¶
type ExecResult ¶
type ExecResult struct {
Result string
}
type InitResult ¶
type InitResult struct {
Result string
}
Click to show internal directories.
Click to hide internal directories.