Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/wasm-bridge/bridge.ts>Bridge

Package publishing for deno.land/x/polkadot
Go to Latest
class Bridge
implements BridgeBase<C>
import { Bridge } from "https://deno.land/x/polkadot@0.2.38/wasm-bridge/bridge.ts";

Constructors

new
Bridge(createWasm: InitFn<C>)

Properties

readonly
error: string | null
readonly
type: "asm" | "wasm" | "none"
readonly
wasm: C | null

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
init(createWasm?: InitFn<C>): Promise<C | null>
resultString(): string
resultU8a(): Uint8Array
takeObject(idx: number): unknown