Skip to main content
Module

x/polkadot/mod.ts>typesCodec.CodecSet

Package publishing for deno.land/x/polkadot
Go to Latest
class typesCodec.CodecSet
implements ISet<string>
extends Set<string>
import { typesCodec } from "https://deno.land/x/polkadot@0.2.33/mod.ts";
const { CodecSet } = typesCodec;

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>