Accepts two Ethereum addresses (as string or Address type) and returns true if and only if these addresses are the same.
First address
Second address
True if first address is same as the second one, false otherwise
Function which clamps given value.
Numeric value which should be clamped
Minimal value, which is returned if the given value is less than it
Maximal value, which is returned if the given value is greater than it
Given numeric value, clamped by min and max values
Returns promise which is always resolved after given time.
Time (in milliseconds) after which the promise is resolved
Promise which is resolved after given time
Predicate returning true if the given object is not undefined.
It is useful for converting Array<T | undefined>
to Array<T>
with filter function.
Type of given object
Object of type T or undefined
Function which detects wrong error messages of MetaMask (due to its bug) and returns "Unknown error" if the real error was invalid.
MetaMask's error object
Function which always throws an error with given message. It is useful in chained functions.
Error message
Generated using TypeDoc
This file contains useful functions which can be (and are) used in whole project.