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

x/polkadot/types-codec/extended/index.ts>BTreeSet

Package publishing for deno.land/x/polkadot
Go to Latest
class BTreeSet
implements ISet<V>
extends Set<V>
import { BTreeSet } from "https://deno.land/x/polkadot@0.2.11/types-codec/extended/index.ts";

Constructors

new
BTreeSet(
registry: Registry,
valType: CodecClass<V> | string,
rawValue?:
| Uint8Array
| string
| string[]
| Set<any>
,
)

Type Parameters

optional
V extends Codec = Codec

Properties

optional
createdAtHash: IU8a
readonly
encodedLength: number
readonly
hash: IU8a
readonly
optional
initialU8aLength: number
readonly
isEmpty: boolean
readonly
registry: Registry
readonly
strings: string[]

Methods

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

Static Methods

with<V extends Codec>(valType: CodecClass<V> | string): CodecClass<BTreeSet<V>>