Class CollectionApproval<T>

CollectionApproval represents a collection's approved transfer.

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

approvalCriteria?: ApprovalCriteria<T>

For allowed combinations, we also must check the details of the approval. These represent the restrictions that must be obeyed such as the total amount approved, max num transfers, merkle challenges, must own badges, etc.

approvalId: string

The ID of the approval. Must not be a duplicate of another approval ID in the same timeline.

badgeIds: UintRangeArray<T>

The badge IDs to be transferred.

customData?: string

Arbitrary custom data of the approval

fromListId: string

The list ID for the user(s) who is sending the badges.

initiatedByListId: string

The list ID for the user(s) who initiate the transfer.

ownershipTimes: UintRangeArray<T>

The ownership times of the badges being transferred.

toListId: string

The list ID for the user(s) who is receiving the badges.

transferTimes: UintRangeArray<T>

The times of the transfer transaction.

uri?: string

The URI of the approval.

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