Skip to main content
Module

x/capi/deps/scale.ts>transform

[WIP] A framework for crafting interactions with Substrate chains
Latest
function transform
Re-export
import { transform } from "https://deno.land/x/capi@v0.1.1-beta.1/deps/scale.ts";

Type Parameters

TI
UI
optional
TO = TI
optional
UO = UI

Parameters

props: { $base: Codec<TI, TO>; encode: (value: UI) => TI; decode: (value: TO) => UO; assert?: (this: Codec<UI, UO>, assert: AssertState) => void; }