Module

x/polkadot/mod.ts>types.PortableRegistry

Package publishing for deno.land/x/polkadot
Go to Latest
class types.PortableRegistry
implements ILookup
extends Struct
import { types } from "https://dotland.deno.dev/x/polkadot@0.2.35/mod.ts";
const { PortableRegistry } = types;

Constructors

new
PortableRegistry(
registry: Registry,
value?: Uint8Array,
isContract?: boolean,
)

Properties

readonly
names: string[]
readonly
types: Vec<PortableType>

Methods

getName(lookupId: SiLookupTypeId | LookupString | number): string | undefined
getSiType(lookupId: SiLookupTypeId | LookupString | number): SiType
getTypeDef(lookupId: SiLookupTypeId | LookupString | number): TypeDef
register(): void
sanitizeField(name: Option<Text>): [string | null, string | null]
import types.PortableRegistry
import { types } from "https://dotland.deno.dev/x/polkadot@0.2.35/mod.ts";
const { PortableRegistry } = types;