Alias for Resolution error handler function
Explains Resolution Error options
NamingServiceSource just an alias
Alias for Resolution error handler function
Explains Resolution Error options
ResolutionResulution
Default structure of ZnsResolution records
convertBits
groups buffers of a certain width to buffers of the desired width.
For example, converts byte buffers to buffers of maximum 5 bit numbers, padding those numbers as necessary. Necessary for encoding Ethereum-style addresses as bech32 ones.
fromBech32Address
a valid Zilliqa bech32 address
a canonical 20-byte Ethereum-style address
Creates a Provider instance from a provider that implements Ethers Provider#call interface.
This wrapper support only eth_call
method for now, which is enough for all the current Resolution functionality
provider object
Create a Provider instance from web3 0.x version provider
an 0.x version provider from web3 ( must implement sendAsync(payload, callback) )
Create a Provider instance from web3 1.x version provider
an 1.x version provider from web3 ( must implement send(payload, callback) )
Should invert the object (keys becomes values and values becomes keys)
Parses object in format { "key.key2.key3" : value } into { key: { key2: {key3: value } } }
object to parse
string to split
value to make it equal to
toBech32Address
Encodes a canonical 20-byte Ethereum-style address as a bech32 zilliqa address.
The expected format is zil1
38 char bech32 encoded zilliqa address
toChecksumAddress
takes hex-encoded string and returns the corresponding address
Generated using TypeDoc
Main configurational object for Resolution instance