import { wasmBridge } from "https://dotland.deno.dev/x/polkadot@0.2.35/mod.ts";
const { Bridge } = wasmBridge;
Constructors
new
Bridge(createWasm: InitFn<C>)Methods
addObject(obj: unknown): number
allocString(arg: string): [number, number]
allocU8a(arg: Uint8Array): [number, number]
dropObject(idx: number)
getInt32(): Int32Array
getObject(idx: number): unknown
getString(ptr: number, len: number): string
getU8a(ptr: number, len: number): Uint8Array
getUint8(): Uint8Array
resultString(): string
resultU8a(): Uint8Array
takeObject(idx: number): unknown