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

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

Package publishing for deno.land/x/polkadot
Go to Latest
class CodecSet
implements ISet<string>
extends Set<string>
import { CodecSet } from "https://deno.land/x/polkadot@0.2.14/types-codec/mod.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
readonly
isEmpty: 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>