Options
All
  • Public
  • Public/Protected
  • All
Menu

@unstoppabledomains/resolution

Index

Type aliases

API

API: object

Type declaration

Bip44Constants

Bip44Constants: [number, string, string]

Blockchain

Blockchain: boolean | object

Dictionary

Dictionary<T>: object

Type parameters

  • T

Type declaration

  • [k: string]: T

NamingServiceSource

NamingServiceSource: string | boolean | SourceDefinition

ResolutionMethod

ResolutionMethod: NamingServiceName | "UDAPI"

ResolutionResponse

ResolutionResponse: object

Type declaration

ZnsResolution

ZnsResolution: object

Type declaration

  • [key: string]: any

nodeHash

nodeHash: string

owner

owner: string

ttl

ttl: string

Variables

Const CryptoDomainWithAdaBchAddresses

CryptoDomainWithAdaBchAddresses: "reseller-test-mago0.crypto" = "reseller-test-mago0.crypto"

Const CryptoDomainWithEmail

CryptoDomainWithEmail: "reseller-test-paul019.crypto" = "reseller-test-paul019.crypto"

Const CryptoDomainWithEmptyResolver

CryptoDomainWithEmptyResolver: "reseller-test-mago017.crypto" = "reseller-test-mago017.crypto"

Const CryptoDomainWithIpfsRecords

CryptoDomainWithIpfsRecords: "reseller-test-paul019.crypto" = "reseller-test-paul019.crypto"

Const CryptoDomainWithoutResolver

CryptoDomainWithoutResolver: "reseller-test-paul1.crypto" = "reseller-test-paul1.crypto"

Const DefaultUrl

DefaultUrl: "https://unstoppabledomains.com/api/v1" = "https://unstoppabledomains.com/api/v1"

Const EthCoinIndex

EthCoinIndex: 60 = 60

Const MainnetUrl

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

Const NullAddress

NullAddress: "0x0000000000000000000000000000000000000000" = "0x0000000000000000000000000000000000000000"

Const OldResolverAddresses

OldResolverAddresses: string[] = ['0x5ffc014343cd971b7eb70732021e26c35b744cc4','0x1da022710df5002339274aadee8d58218e9d6ab5','0xda1756bb923af5d1a05e277cb1e54f1d0a127890']

Const UDApiDefaultUrl

UDApiDefaultUrl: "https://unstoppabledomains.com/api/v1" = "https://unstoppabledomains.com/api/v1"

Const UNCLAIMED_DOMAIN_RESPONSE

UNCLAIMED_DOMAIN_RESPONSE: object = UnclaimedDomainResponse

Type declaration

Const ZilliqaUrl

ZilliqaUrl: "https://api.zilliqa.com" = "https://api.zilliqa.com"

Functions

buildResolutionPackage

Const childhash

  • childhash(parent: nodeHash, label: string, options?: object): nodeHash
  • childhash(parent: string, child: string, options?: object): string

commaSeparatedList

  • commaSeparatedList(value: any, dummyPrevious: any): any

default

  • default(domain: string, __namedParameters?: object): nodeHash

expectResolutionErrorCode

  • expectResolutionErrorCode(callback: Promise<any> | Function, code: string): Promise<void>

expectSpyToBeCalled

  • expectSpyToBeCalled(spies: any[]): void

fromBech32Address

  • fromBech32Address(address: string, testnet?: boolean): string
  • Parameters

    • address: string
    • Default value testnet: boolean = false

    Returns string

    a canonical 20-byte Ethereum-style address

getConfig

  • getConfig(): undefined | object

getEtheriumUrl

  • getEtheriumUrl(): string

invert

  • invert(object: any): object

isLive

  • isLive(): boolean

isNullAddress

  • isNullAddress(key: string | null | undefined): key is undefined | null
  • Parameters

    • key: string | null | undefined

    Returns key is undefined | null

mockAPICalls

  • mockAPICalls(testName: string, url?: string): void

mockAsyncMethod

  • mockAsyncMethod(object: any, method: string, value: any): SpyInstance<any, unknown[]>

mockAsyncMethods

  • mockAsyncMethods(object: any, methods: Dictionary<any>): SpyInstance<any, unknown[]>[]

Const namehash

  • namehash(name?: string, __namedParameters?: object): string
  • Parameters

    • Default value name: string = ""
    • Default value __namedParameters: object = { prefix: true }

    Returns string

parseConfig

  • parseConfig(value: string): object

pendingInLive

  • pendingInLive(): void

set

  • set(object: any, key: any, value: any): any

signedInfuraLink

  • signedInfuraLink(infura: string): string

storeConfig

  • storeConfig(type: "infura" | "url", value: string): void

toBech32Address

  • toBech32Address(address: string, testnet?: boolean): string
  • Parameters

    • address: string
    • Default value testnet: boolean = false

    Returns string

    38 char bech32 encoded zilliqa address

Const toChecksumAddress

  • toChecksumAddress(address: string): string

tryInfo

  • tryInfo(method: any, response: any, name: string): Promise<boolean>

Object literals

Const DefaultAPI

DefaultAPI: object

url

url: string = UDApiDefaultUrl

Const UnclaimedDomainResponse

UnclaimedDomainResponse: object

addresses

addresses: object

Type declaration

meta

meta: object

owner

owner: null = null

ttl

ttl: number = 0

type

type: string = ""

Generated using TypeDoc