Module

x/polkadot/types-codec/native/Set.ts>CodecSet

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