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

x/polkadot/types-codec/types/index.ts>Registry

Package publishing for deno.land/x/polkadot
Go to Latest
interface Registry
Re-export
import { type Registry } from "https://deno.land/x/polkadot@0.2.14/types-codec/types/index.ts";

Properties

readonly
chainDecimals: number[]
readonly
chainSS58: number | undefined
readonly
chainTokens: string[]
optional
createdAtHash: IU8a

Methods

findMetaCall(callIndex: Uint8Array): CallFunction
findMetaError(errorIndex: Uint8Array | { error: BN; index: BN; } | { error: BN | Uint8Array; index: BN; }): RegistryError
findMetaEvent(eventIndex: Uint8Array): CodecClass<any>
isLookupType(value: string): boolean
createLookupType(lookupId: ICompact<INumber> | number): string
createClassUnsafe<T extends Codec = Codec, K extends string = string>(type: K): CodecClass<T>
createTypeUnsafe<T extends Codec = Codec, K extends string = string>(
type: K,
params: unknown[],
): T
getClassName(clazz: CodecClass): string | undefined
getOrThrow<T extends Codec = Codec, K extends string = string>(name: K, msg?: string): CodecClass<T>
getOrUnknown<T extends Codec = Codec, K extends string = string>(name: K): CodecClass<T>
getSignedExtensionExtra(): Record<string, string>
getSignedExtensionTypes(): Record<string, string>
hasClass(name: string): boolean
hasDef(name: string): boolean
hasType(name: string): boolean
hash(data: Uint8Array): IU8a
register(type: CodecClass | RegistryTypes): void
register(name: string, type: CodecClass): void
register(arg1: string | CodecClass | RegistryTypes, arg2?: CodecClass): void
setMetadata(
metadata: unknown,
signedExtensions?: string[],
userExtensions?: unknown,
): void