Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EthereumNamingService

Hierarchy

Index

Properties

NetworkNameMap

NetworkNameMap: object = invert(this.NetworkIdMap)

Type declaration

name

Optional Abstract registryAddress

registryAddress: string

Protected registryContract

registryContract: Contract

Abstract url

url: string

Methods

Abstract address

  • address(domain: string, currencyTicker: string): Promise<string>

Protected buildContract

  • buildContract(abi: any, address: any): Contract

Protected callMethod

  • callMethod(contract: Contract, methodname: string, params: any): Promise<any>
  • Internal wrapper for ens method. Used to throw an error when ens is down @param method - method to be called @throws ResolutionError -> When blockchain is down

    Parameters

    • contract: Contract
    • methodname: string
    • params: any

    Returns Promise<any>

Abstract email

  • email(domain: string): Promise<string>

Protected ensureSupportedDomain

  • ensureSupportedDomain(domain: string): void

Abstract httpUrl

  • httpUrl(domain: string): Promise<string>

Protected ignoreResolutionError

  • ignoreResolutionError<T>(code: ResolutionErrorCode | undefined, promise: Promise<T>): Promise<T | undefined>

Abstract ipfsHash

  • ipfsHash(domain: string): Promise<string>

Protected isResolutionError

Abstract isSupportedDomain

  • isSupportedDomain(domain: string): boolean

isSupportedNetwork

  • isSupportedNetwork(): boolean

Abstract namehash

  • namehash(domain: string): string

Abstract owner

  • owner(domain: string): Promise<string>

Abstract record

  • record(domain: string, key: string): Promise<string>

Abstract resolve

serviceName

Protected throwOwnershipError

  • throwOwnershipError(domain: any, ownerPromise?: Promise<string>): Promise<void>
  • Parameters

    • domain: any
    • Optional ownerPromise: Promise<string>

    Returns Promise<void>

Object literals

UrlMap

UrlMap: object

goerli

goerli: string = "https://goerli.infura.io"

kovan

kovan: string = "https://kovan.infura.io"

mainnet

mainnet: string = "https://mainnet.infura.io"

rinkeby

rinkeby: string = "https://rinkeby.infura.io"

ropsten

ropsten: string = "https://ropsten.infura.io"

Generated using TypeDoc