Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IdentitySigner

Hierarchy

Index

Constructors

Methods

  • burnIdentity(): Promise<void>
  • burnTicket(): Promise<void>
  • getAddress(): string
  • getNode(): string
  • hasIdentity(): Promise<boolean>
  • hasTicket(): Promise<boolean>
  • hasValidTicket(): Promise<boolean>
  • init(provider: Provider, contractConfig?: ContractConfig): Promise<void>
  • Initializes all the contracts based on the given core address and connects the identity to the underlying contracts.

    Parameters

    Returns Promise<void>

  • initSigner(signer: Signer, contractConfig?: ContractConfig): Promise<void>
  • Initializes all the contracts based on the given core address and connects the identity to the underlying contracts.

    Parameters

    Returns Promise<void>

  • initSignerWithContacts(signer: Signer, contracts: Contracts): Promise<void>
  • initWithContacts(contracts: Contracts): Promise<void>
  • myAddressRecord(coinType?: number): Promise<string>
  • postmint

    Returns the address of the given node, associated with the given coinType.

    Parameters

    • Optional coinType: number

      The coin type used to query the value. Default: 60 (ETH).

    Returns Promise<string>

    The address associated with the given key, returns an empty string if not set.

  • myExpiryDate(): Promise<Date>
  • myLivenessDate(): Promise<Date>
  • myTextRecord(key: string): Promise<string>
  • postmint

    Returns the value of the given node, associated with the given key.

    Parameters

    • key: string

      The key used to query the value.

    Returns Promise<string>

    The value associated with the given key, returns an empty string if not set.

  • myTicketProfile(): Promise<Profile>
  • myTicketUserId(): Promise<string>
  • myTokenURI(): Promise<string>
  • myUserId(): Promise<string>
  • postmint

    An extended version of getAddressRecord, also returns whether the address record is verified or not.

    Parameters

    • Optional coinType: number

      The coin type used to query the value. Default: 60 (ETH).

    Returns Promise<ValidatedAddrRecord>

    The record associated with the given key, returns an empty string if not set.

  • postmint

    An extended version of getTextRecord, also returns whether the text record is verified or not.

    Parameters

    • key: string

      The key used to query the value.

    Returns Promise<ValidatedTextRecord>

    The record associated with the given key, returns an empty string if not set.

  • purchaseTicket(userId: string, profileName: string, years?: number): Promise<string>
  • Purchases a ticket for the given label.

    Parameters

    • userId: string

      The fully qualified ENS name, e.g.john.photochromic.eth.

    • profileName: string

      The name of the (price) profile.

    • years: number = 1

    Returns Promise<string>

    The user identity (name) linked to the purchased ticket.

  • setAddr(value: string, coinType?: number): Promise<void>
  • Sets an address record. NOTE: can overwrite existing validated address records!

    Parameters

    • value: string

      The value of the record.

    • Optional coinType: number

      The coinType of the address. Default: 60 (ETH).

    Returns Promise<void>

  • setText(key: string, value: string): Promise<void>
  • Sets a text record. NOTE: can overwrite existing validated social records!

    Parameters

    • key: string

      The key of the record.

    • value: string

      The value of the record.

    Returns Promise<void>

Generated using TypeDoc