Options
All
  • Public
  • Public/Protected
  • All
Menu

@unstoppabledomains/resolution

Index

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

API

API: object

Type declaration

Arrayish

Arrayish: string | ArrayLike<number> | null

BigNumberish

BigNumberish: BigNumber | string | number | Arrayish

Bip44Constants

Bip44Constants: [number, string, string]

Blockchain

Blockchain: boolean | object

CoerceFunc

CoerceFunc: function

Type declaration

    • (type: string, value: any): any
    • Parameters

      • type: string
      • value: any

      Returns any

Dictionary

Dictionary<T>: object

Type parameters

  • T

Type declaration

  • [k: string]: T

EnsNetworkIdMap

EnsNetworkIdMap: object

Type declaration

  • [key: number]: string

EventFragment

EventFragment: object

Type declaration

FunctionFragment

FunctionFragment: object

Type declaration

NamingServiceSource

NamingServiceSource: string | boolean | SourceDefinition

ParamType

ParamType: object

Type declaration

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 CALL_EXCEPTION

CALL_EXCEPTION: "CALL_EXCEPTION" = "CALL_EXCEPTION"

Const DefaultUrl

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

Const EthCoinIndex

EthCoinIndex: 60 = 60

Const INSUFFICIENT_FUNDS

INSUFFICIENT_FUNDS: "INSUFFICIENT_FUNDS" = "INSUFFICIENT_FUNDS"

Const INVALID_ARGUMENT

INVALID_ARGUMENT: "INVALID_ARGUMENT" = "INVALID_ARGUMENT"

Const MISSING_ARGUMENT

MISSING_ARGUMENT: "MISSING_ARGUMENT" = "MISSING_ARGUMENT"

Const MISSING_NEW

MISSING_NEW: "MISSING_NEW" = "MISSING_NEW"

Const MainnetUrl

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

Const MaxUint256

MaxUint256: BigNumber = bigNumberify('0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff',)

Const NONCE_EXPIRED

NONCE_EXPIRED: "NONCE_EXPIRED" = "NONCE_EXPIRED"

Const NOT_IMPLEMENTED

NOT_IMPLEMENTED: "NOT_IMPLEMENTED" = "NOT_IMPLEMENTED"

Const NUMERIC_FAULT

NUMERIC_FAULT: "NUMERIC_FAULT" = "NUMERIC_FAULT"

Const NegativeOne

NegativeOne: BigNumber = bigNumberify(-1)

Const One

One: BigNumber = bigNumberify(1)

Const REPLACEMENT_UNDERPRICED

REPLACEMENT_UNDERPRICED: "REPLACEMENT_UNDERPRICED" = "REPLACEMENT_UNDERPRICED"

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 UNEXPECTED_ARGUMENT

UNEXPECTED_ARGUMENT: "UNEXPECTED_ARGUMENT" = "UNEXPECTED_ARGUMENT"

Const UNKNOWN_ERROR

UNKNOWN_ERROR: "UNKNOWN_ERROR" = "UNKNOWN_ERROR"

Const UNSUPPORTED_OPERATION

UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION" = "UNSUPPORTED_OPERATION"

Const Zero

Zero: BigNumber = bigNumberify(0)

Const ZilliqaUrl

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

Const defaultAbiCoder

defaultAbiCoder: AbiCoder = new AbiCoder()

Const version

version: "4.0.43" = "4.0.43"

Functions

arrayify

bigNumberify

buildResolutionPackage

checkArgumentCount

  • checkArgumentCount(count: number, expectedCount: number, suffix: undefined | string): void

checkNew

  • checkNew(self: any, kind: any): void

checkNormalize

  • checkNormalize(): void

checkProperties

  • checkProperties(object: any, properties: object): void

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

concat

  • concat(objects: Array<Arrayish>): Uint8Array

deepCopy

  • deepCopy(object: any, frozen: undefined | false | true): any

default

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

Const defaultCoerceFunc

  • defaultCoerceFunc(type: string, value: any): any

defineReadOnly

  • defineReadOnly(object: any, name: string, value: any): void

expectResolutionErrorCode

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

expectSpyToBeCalled

  • expectSpyToBeCalled(spies: any[]): void

formatParamType

  • formatParamType(paramType: ParamType): string

formatSignature

fromBech32Address

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

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

    Returns string

    a canonical 20-byte Ethereum-style address

getAddress

  • getAddress(address: string): string

getConfig

  • getConfig(): undefined | object

getEtheriumUrl

  • getEtheriumUrl(): string

hexlify

info

  • info(args: Array<any>): void

inheritable

  • inheritable(parent: any): function

invert

  • invert(object: any): object

isArrayish

  • isArrayish(value: any): value is Arrayish

isHexString

  • isHexString(value: any, length: undefined | number): boolean

isHexable

  • isHexable(value: any): value is Hexable

isNullAddress

  • isNullAddress(key: string | null): boolean

isType

  • isType(object: any, type: string): boolean

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

padZeros

  • padZeros(value: Arrayish, length: number): Uint8Array | undefined

parseConfig

  • parseConfig(value: string, dummyPrevious: any): object

parseParamType

parseSignature

resolveProperties

  • resolveProperties(object: any): Promise<any>

set

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

setCensorship

  • setCensorship(censorship: boolean, permanent: undefined | false | true): void

setLogLevel

  • setLogLevel(logLevel: string): void

setType

  • setType(object: any, type: string): void

shallowCopy

  • shallowCopy(object: any): any

signedInfuraLink

  • signedInfuraLink(infura: string): string

storeConfig

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

throwError

  • throwError(message: string, code: string | null, params: any): never

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

toUtf8Bytes

toUtf8String

  • toUtf8String(bytes: Arrayish, ignoreErrors: undefined | false | true): string

tryInfo

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

warn

  • warn(args: Array<any>): void

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