Class ApprovalTrackerDoc<T>

Type Parameters

Hierarchy (view full)




_docId: string

A unique stringified document ID

_id?: string

A unique document ID (Mongo DB ObjectID)

amountTrackerId: string

The amount tracker ID of the approval.

amounts: BalanceArray<T>

A tally of the amounts transferred for this approval.

approvalId: string

The approval ID

approvalLevel: string

The approval level of the approval "collection", "incoming", or "outgoing".

approvedAddress: string

The address to check for the approval.

approverAddress: string

The address of the approval to check.

collectionId: T

The collection ID for the approval.

numTransfers: T

The number of transfers. Is an incrementing tally.

trackerType: string

The type of tracker to check "overall", "to", "from", or "initiatedBy".


  • 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