Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EtheriumNamingService

Hierarchy

Index

Properties

NetworkNameMap

NetworkNameMap: object = invert(this.NetworkIdMap)

Type declaration

name

name: string

Optional Abstract registryAddress

registryAddress: string

Methods

Abstract address

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

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

Protected fetch

  • fetch(url: any, options: any): Promise<Response | Response>

Protected isNode

  • isNode(): boolean

Abstract isSupportedDomain

  • isSupportedDomain(domain: string): boolean

isSupportedNetwork

  • isSupportedNetwork(): boolean

namehash

  • namehash(domain: string): string

Protected normalizeSource

Abstract owner

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

Abstract record

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

Abstract resolve

Object literals

NetworkIdMap

NetworkIdMap: object

1

1: string = "mainnet"

3

3: string = "ropsten"

4

4: string = "kovan"

42

42: string = "rinkeby"

5

5: string = "goerli"

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