Class UserBalanceStore<T>

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

autoApproveSelfInitiatedIncomingTransfers: boolean

Whether the user's self-initiated incoming transfers are auto-approved. If not, they must be explicitly approved using the incoming approvals.

autoApproveSelfInitiatedOutgoingTransfers: boolean

Whether the user's self-initiated outgoing transfers are auto-approved. If not, they must be explicitly approved using the outgoing approvals.

balances: BalanceArray<T>

The user's balances.

incomingApprovals: UserIncomingApproval<T>[]

The user's incoming approvals.

outgoingApprovals: UserOutgoingApproval<T>[]

The user's outgoing approvals.

userPermissions: UserPermissions<T>

The user's permissions.

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