Class BlockinChallenge<T>

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

address: string

The user's address

attestationsPresentations?: AttestationsProof<T>[]

Derived data integrity proofs for any attestations requested.

The chain of the address

cosmosAddress: string

The converted Cosmos address of params.address. This can be used as the unique identifier for the user (e.g. avoid duplicate sign ins from equivalent 0x and cosmos1 addresses).

otherSignIns?: {
    discord?: {
        discriminator?: string;
        id: string;
        username: string;
    };
    github?: {
        id: string;
        username: string;
    };
    google?: {
        id: string;
        username: string;
    };
    twitter?: {
        id: string;
        username: string;
    };
}

Other sign-ins that were requested

Type declaration

  • Optional discord?: {
        discriminator?: string;
        id: string;
        username: string;
    }
    • Optional discriminator?: string
    • id: string
    • username: string
  • Optional github?: {
        id: string;
        username: string;
    }
    • id: string
    • username: string
  • Optional google?: {
        id: string;
        username: string;
    }
    • id: string
    • username: string
  • Optional twitter?: {
        id: string;
        username: string;
    }
    • id: string
    • username: string
ownershipRequirements?: BlockinAssetConditionGroup<T>

The ownership requirements for the user

verificationResponse?: {
    errorMessage?: string;
    success: boolean;
}

Verification response

Type declaration

  • Optional errorMessage?: string
  • success: boolean

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>
    • Optional normalizeNumberTypes: boolean

    Returns boolean

  • Verifies the asset ownership requirements only. This requires a call to the BitBadges API.

    Does not set verificationResponse.

    Parameters

    Returns Promise<boolean>