bitbadgesjs-sdk - v0.22.7
    Preparing search index...

    Class MerkleChallengeWithDetails<T>

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    challengeInfoDetails: ChallengeInfoDetails<T>
    challengeTrackerId: string

    Tracker ID details for the merkle challenge.

    customData: string

    Arbitrary custom data that can be stored on-chain.

    expectedProofLength: T

    The expected proof length of the merkle proof.

    leafSigner: string

    The signer of the leaf. Currently only supports ETH addresses.

    maxUsesPerLeaf: T

    Whether or not to enforce max uses per leaf. Used to prevent replay attacks.

    root: string

    The root of the merkle tree.

    uri: string

    The URI where to fetch the merkle challenge metadata from.

    useCreatorAddressAsLeaf: boolean

    Whether or not to override any leaf value and use the creator address as the leaf. Used for whitelist trees.

    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