Class ApprovalCriteria<T>

ApprovalCriteria represents the criteria for an approval. The approvee must satisfy all of the criteria to be approved.

Type Parameters

Hierarchy (View Summary, Expand)

Implements

Constructors

Properties

approvalAmounts?: ApprovalAmounts<T>

The maximum approved amounts for this approval.

coinTransfers?: iCoinTransfer<T>[]

The $BADGE transfers to be executed upon every approval.

maxNumTransfers?: MaxNumTransfers<T>

The max num transfers for this approval.

merkleChallenges?: MerkleChallenge<T>[]

The list of merkle challenges that need valid proofs to be approved.

mustOwnBadges?: MustOwnBadges<T>[]

The list of badges to be owned to be approved. Must have on-chain balances.

overridesFromOutgoingApprovals?: boolean

Whether this approval overrides the from address's approved outgoing transfers.

overridesToIncomingApprovals?: boolean

Whether this approval overrides the to address's approved incoming transfers.

predeterminedBalances?: PredeterminedBalances<T>

The predetermined balances for each transfer. These allow approvals to use predetermined balance amounts rather than an incrementing tally system.

requireFromDoesNotEqualInitiatedBy?: boolean

Whether the from address must not equal the initiatedBy address.

requireFromEqualsInitiatedBy?: boolean

Whether the from address must equal the initiatedBy address.

requireToDoesNotEqualInitiatedBy?: boolean

Whether the to address must not equal the initiatedBy address.

requireToEqualsInitiatedBy?: boolean

Whether the to address must equal the initiatedBy address.

zkProofs?: ZkProof[]

The list of ZK proofs that need to be satisfied. One use per proof solution.

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