Structs§
- AbiAttribute
- A single key-value attribute from a contract response.
- AbiEvent
- An event emitted by a contract response.
- AbiResponse
- CBOR-native representation of a cosmwasm execute/instantiate/external_event Response. Only carries the fields the host actually needs; skips messages and sub-messages.
- AbiResult
Payload - The inner payload returned by every ABI handler, CBOR-encoded inside
HostAbiResponse.payload. - Host
AbiError - Error object returned by the host ABI envelope.
- Host
AbiResponse - Top-level response envelope used by host ABI exports.
Constants§
- ERR_
HANDLER_ PANIC - ERR_
INVALID_ CBOR - ERR_
INVALID_ POINTER - ERR_
SERIALIZATION_ FAILED - HOST_
ABI_ MANIFEST_ FIELD - HOST_
ABI_ VERSION - HOST_
ABI_ WIRE_ FORMAT - HOST_
ABI_ WIRE_ FORMAT_ MANIFEST_ FIELD
Functions§
- alloc
- Allocates
lenbytes in wasm linear memory and returns pointer. - cbor_
from_ slice - Deserialize CBOR bytes into a value.
- cbor_
to_ vec - Serialize a value to CBOR bytes.
- dispatch
- Reads input bytes, invokes a handler, and returns an encoded ABI response.
- dispatch_
response - Converts handler output (or failure) into
HostAbiResponse. - encode_
response - Serializes
HostAbiResponseto CBOR and writes it into wasm memory. - free⚠
- Frees memory previously allocated via
alloc. - pack_
ptr_ len - Packs
(ptr, len)into a singleu64where the high 32 bits hold length. - read_
memory - Reads a byte slice from wasm linear memory.
- unpack_
ptr_ len - Unpacks a pointer/length pair produced by
pack_ptr_len. - write_
memory - Writes bytes into wasm linear memory and returns a packed pointer/length pair.