Class MustOwnBadges<T>

MustOwnBadges are used to represent a challenge for an approved transfer where a user must own min-max (amountRange) of the badges (badgeIds) from a specific collection (collectionId) to be able to transfer the badges and be approved.

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

amountRange: UintRange<T>

The min/max acceptable amount of badges that must be owned (can be any values, including 0-0).

badgeIds: UintRangeArray<T>

The range of the badge IDs that must be owned.

collectionId: T

The collection ID of the badges to own.

mustSatisfyForAllAssets: boolean

Whether or not the user must own all the specified badges. If false, we will accept if they meet criteria for at least one badge.

overrideWithCurrentTime: boolean

Whether or not to override the ownershipTimes with the current time.

ownershipTimes: UintRangeArray<T>

The range of the times that the badges must be owned.

Methods

  • Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

    If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").

    Type Parameters

    Parameters

    • other: undefined | null | CustomType<U>
    • OptionalnormalizeNumberTypes: boolean

    Returns boolean