Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cns

Hierarchy

Index

Constructors

constructor

Properties

NetworkNameMap

NetworkNameMap: object = invert(this.NetworkIdMap)

Type declaration

name

name: CNS = NamingServiceName.CNS

network

network: string

Optional registryAddress

registryAddress: undefined | string

Protected registryContract

registryContract: Contract

url

url: string

Protected Optional web3Provider

web3Provider: Web3Provider

Methods

address

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

    • domain: string
    • currencyTicker: string

    Returns Promise<string>

    • A promise that resolves in a string

Protected buildContract

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

Protected callMethod

  • callMethod(contract: Contract, methodname: string, params: string[]): Promise<any>

childhash

email

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

Protected ensureSupportedDomain

  • ensureSupportedDomain(domain: string): void

httpUrl

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

Protected ignoreResolutionError

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

ipfsHash

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

Protected isResolutionError

isSupportedDomain

  • isSupportedDomain(domain: string): boolean

isSupportedNetwork

  • isSupportedNetwork(): boolean

namehash

resolve

resolver

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

serviceName

Protected throwOwnershipError

  • throwOwnershipError(domain: any, ownerPromise: Promise<string | null>): 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