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

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

Package publishing for deno.land/x/polkadot
Latest
class CodecSet
implements ISet<string>
extends Set<string>
import { CodecSet } from "https://deno.land/x/polkadot@0.2.45/types-codec/index.ts";

Constructors

new
CodecSet(
registry: Registry,
setValues: SetValues,
value?:
| string[]
| Set<string>
| Uint8Array
| BN
| number
| string
,
bitLength?,
)

Properties

add: (key: string) => this
optional
createdAtHash: IU8a
readonly
encodedLength: number
readonly
hash: IU8a
optional
initialU8aLength: number
readonly
isEmpty: boolean
optional
isStorageFallback: boolean
readonly
registry: Registry
readonly
strings: string[]
readonly
valueEncoded: BN

Methods

eq(other?: unknown): boolean
inspect(): Inspect
toHex(): HexString
toHuman(): string[]
toJSON(): string[]
toNumber(): number
toPrimitive(): string[]
toRawType(): string
toString(): string
toU8a(_isBare?: boolean): Uint8Array

Static Methods

with(values: SetValues, bitLength?: number): CodecClass<CodecSet>