Skip to main content

Module host_fn

Module host_fn 

Source
Expand description

Host functions used to spawn and call into PolkaVM instances.

Use crate::Virt instead of these raw host functions. This will also make sure that everything works when running the code in native (test code) as this is a wasm_only interface.

§⚠️ Unstable — Do Not Use in Production ⚠️

This interface is unstable and subject to breaking changes without notice.

These host functions are not available on Polkadot (or any other production relay/parachain) until the API has been stabilized. If you use them in a production runtime, your runtime will break when the API changes.

Only use for local testing, development, and experimentation on test networks. There is no stability guarantee and no deprecation period.

Structs§

HostFunctions
Provides implementations for the extern host functions.