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

x/polkadot/types/codec/index.ts>CodecMap

Package publishing for deno.land/x/polkadot
Go to Latest
class CodecMap
implements IMap<K, V>
extends Map<K, V>
import { CodecMap } from "https://deno.land/x/polkadot@0.2.25/types/codec/index.ts";

Constructors

new
CodecMap(
registry: Registry,
keyType: CodecClass<K> | string,
valType: CodecClass<V> | string,
rawValue:
| Uint8Array
| string
| Map<any, any>
| undefined
,
type?: "BTreeMap" | "HashMap",
)

Type Parameters

optional
K extends Codec = Codec
optional
V extends Codec = Codec

Properties

optional
createdAtHash: IU8a
readonly
encodedLength: number
readonly
hash: IU8a
optional
initialU8aLength: number
readonly
isEmpty: boolean
optional
isStorageFallback: boolean
readonly
registry: Registry

Methods

eq(other?: unknown): boolean
inspect(): Inspect
toHex(): HexString
toHuman(isExtended?: boolean): Record<string, AnyJson>
toJSON(): Record<string, AnyJson>
toPrimitive(): AnyJson
toRawType(): string
toString(): string
toU8a(isBare?: boolean): Uint8Array