Class CollectionApprovalWithDetails<T>

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

approvalCriteria?: ApprovalCriteriaWithDetails<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

The approval metadata details

fromList: AddressList

The populated address list for the fromListId

fromListId: string

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

initiatedByList: AddressList

The populated address list for the initiatedByListId

initiatedByListId: string

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

ownershipTimes: UintRangeArray<T>

The ownership times of the badges being transferred.

toList: AddressList

The populated address list for the toListId

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>
    • Optional normalizeNumberTypes: boolean

    Returns boolean