polywrap_wasm.imports.wrap_imports module

This module contains the WrapImports class that defines all the Wasm imports for the Wrap Wasm module.

class polywrap_wasm.imports.wrap_imports.WrapImports(memory: Memory, store: Store, state: State, invoker: Invoker | None)[source]

Bases: WrapAbortImports, WrapDebugImports, WrapEnvImports, WrapGetImplementationsImports, WrapInvokeImports, WrapSubinvokeImports

Wasm imports for the Wrap Wasm module.

This class is responsible for providing all the Wasm imports to the Wasm module.

Parameters:
  • memory (Memory) – The Wasm memory instance.

  • store (Store) – The Wasm store instance.

  • state (State) – The state of the Wasm module.

  • invoker (Invoker) – The invoker instance.

memory

The Wasm memory instance.

Type:

Memory

store

The Wasm store instance.

Type:

Store

state

The state of the Wasm module.

Type:

State

invoker

The invoker instance.

Type:

Invoker