Class SiwbbChallenge<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

ownershipRequirements?: SiwbbAssetConditionGroup<T>

The ownership requirements for the user

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

Verification response

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