Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EtheriumNamingService

Hierarchy

Index

Properties

NetworkNameMap

NetworkNameMap: object = invert(this.NetworkIdMap)

Type declaration

Protected isBrowser

isBrowser: Function = new Function("try {return this===window;}catch(e){ return false;}")

name

name: string

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>

Protected ensureSupportedDomain

  • ensureSupportedDomain(domain: string): void

Abstract isSupportedDomain

  • isSupportedDomain(domain: string): boolean

isSupportedNetwork

  • isSupportedNetwork(): boolean

namehash

  • namehash(domain: string): string

Abstract owner

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

Abstract record

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

Abstract resolve

serviceName

  • serviceName(domain: string): string

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