Pezkuwi API
    Preparing search index...

    Set

    An Set is an array of string values, represented an an encoded type by a bitwise representation of the values.

    Hierarchy

    • Set<string>
      • CodecSet

    Implements

    • ISet<string>
    Index
    • Parameters

      • registry: Registry
      • setValues: SetValues
      • Optionalvalue: string | number | Uint8Array | string[] | BN | Set<string>
      • bitLength: number = 8

      Returns CodecSet

    "[toStringTag]": string
    createdAtHash?: IU8a

    The block at which this value was retrieved/created (set to non-empty when retrieved from storage)

    initialU8aLength?: number

    The length of the initial encoded value (Only available when the value was constructed from a Uint8Array input)

    isStorageFallback?: boolean

    (internal usage) Indicates that the value was created via a fallback. This is used when with data specified in the metadata when the storage entry is empty.

    With metadata fallback values (available as defaults on most storage entries) any empty storage item should erturn the default. (This is the same as the implementation on the Bizinikiwi runtime)

    registry: Registry

    The registry associated with this object

    size: number

    the number of (unique) elements in Set.

    "[species]": SetConstructor
    • Iterates over values in the set.

      Returns IterableIterator<string>

    • Parameters

      • key: string

      Returns this

      adds a value to the Set (extended to allow for validity checking)

    • Returns void

    • Removes a specified value from the Set.

      Parameters

      • value: string

      Returns boolean

      Returns true if an element in the Set existed and has been removed, or false if the element does not exist.

    • Returns an iterable of [v,v] pairs for every value v in the set.

      Returns IterableIterator<[string, string]>

    • Parameters

      • Optionalother: unknown

      Returns boolean

      Compares the value of the input to see if there is a match

    • Executes a provided function once per each value in the Set object, in insertion order.

      Parameters

      • callbackfn: (value: string, value2: string, set: Set<string>) => void
      • OptionalthisArg: any

      Returns void

    • Parameters

      • value: string

      Returns boolean

      a boolean indicating whether an element with the specified value exists in the Set or not.

    • Despite its name, returns an iterable of the values in the set.

      Returns IterableIterator<string>

    • Returns string[]

      Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information

    • Parameters

      • Optional_isBare: boolean

      Returns Uint8Array

      Encodes the value as a Uint8Array as per the SCALE specifications

    • Returns an iterable of values in the set.

      Returns IterableIterator<string>