Skip to main content
Module

x/polkadot/mod.ts>types.PortableRegistry

Package publishing for deno.land/x/polkadot
Go to Latest
class types.PortableRegistry
implements ILookup
extends Struct
Re-export
import { types } from "https://deno.land/x/polkadot@0.2.18/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 | string | number): string | undefined
getSiType(lookupId: SiLookupTypeId | string | number): SiType
getTypeDef(lookupId: SiLookupTypeId | string | number): TypeDef
register(): void
sanitizeField(name: Option<Text>): [string | null, string | null]