Class AccountDoc<T>

Type Parameters

Hierarchy (View Summary, Expand)

Implements

Constructors

Properties

_docId: string

A unique stringified document ID

_id?: string

A unique document ID (Mongo DB ObjectID)

accountNumber: T

The account number of the account. This is the account number registered on the BitBadges blockchain.

balance?: CosmosCoin<T>

The $BADGE balance of the account

bitbadgesAddress: string

The BitBadges address of the account

btcAddress: string

The Bitcoin address of the account

ethAddress: string

The Eth address of the account

pubKeyType: string

The public key type of the account

publicKey: string

The public key of the account

sequence?: T

The sequence of the account. This is the nonce for the blockchain for this account

solAddress: string

The Solana address of the account. Note: This may be empty if we do not have it yet. Solana -> BitBadges address conversions are one-way, and we cannot convert a BitBadges address to a Solana address without prior knowledge.

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

MMNEPVFCICPMFPCPTTAAATR