Class CollectionApprovalPermission<T>

CollectionApprovalPermission represents a permission that allows updating the collection approved transfers.

This permission allows you to define when the approved transfers can be updated and which combinations of (from, to, initiatedBy, transferTimes, badgeIds, ownershipTimes, permanentlyPermittedTimes, permanentlyForbiddenTimes) can be updated.

Type Parameters

Hierarchy (view full)




approvalId: string

The approval ID of the approved transfers. Can use "All" to represent all IDs, "!approvalId" to represent all IDs except approvalId, or "approvalId" to represent only approvalId.

badgeIds: UintRangeArray<T>

The badge IDs of the approved transfers.

fromListId: string

The list ID of the from addresses of the approved transfers.

initiatedByListId: string

The list ID of the initiatedBy addresses of the approved transfers.

ownershipTimes: UintRangeArray<T>

The owned times of the approved transfers.

permanentlyForbiddenTimes: UintRangeArray<T>

The forbidden times of this permission.

permanentlyPermittedTimes: UintRangeArray<T>

The permitted times of this permission.

toListId: string

The list ID of the to addresses of the approved transfers.

transferTimes: UintRangeArray<T>

The transfer times of the approved transfers.


  • 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