Class UserIncomingApproval<T>

UserIncomingApproval represents a user's approved incoming transfer.

Type Parameters

Hierarchy (view full)




approvalCriteria?: IncomingApprovalCriteria<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.

transferTimes: UintRangeArray<T>

The times of the transfer transaction.

uri?: string

The URI of the approval.


  • 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


    • other: undefined | null | CustomType<U>
    • Optional normalizeNumberTypes: boolean

    Returns boolean