A lookup set collection that stores entries in NEAR storage.

Type Parameters

  • DataType

Constructors

Properties

keyPrefix: string

The byte prefix to use when storing elements inside this collection.

Methods

  • Extends the current collection with the passed in array of elements.

    Parameters

    • keys: DataType[]

      The elements to extend the collection with.

    • Optional options: Pick<GetOptions<DataType>, "serializer">

      Options for storing the data.

    Returns void

  • If the set did not have this value present, true is returned. If the set did have this value present, false is returned.

    Parameters

    • key: DataType

      The value to store in the collection.

    • Optional options: Pick<GetOptions<DataType>, "serializer">

      Options for storing the data.

    Returns boolean

Generated using TypeDoc