MoacUtilities class
General client support utilities
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
@pragma("vm.entry-point"), inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Methods
-
bigIntegerToHex(
BigInt val) → String - BigInt to hex string
-
bigIntegerToHexList(
List< BigInt> val) → List<String> - BigInt list to Hex String list
-
hexToBigIntList(
List val) → List< BigInt> - Hex String list to BigInt list
-
hexToInt(
String val) → int - Hex string to integer, a value of null indicates an error. The string must start with 0x
-
hexToIntList(
List< String> val) → List<int> - Hex String list to Integer list
-
intToHex(
int val, [ int pad = 0 ]) → String - Integer to hex string with leading 0x, lowercase. The optional pad value pads the string out to the number of bytes specified, i.e if 8 is specified the string 0x1 becomes 0x0000000000000001 default is 0, no padding.The pad value must be even and positive.
-
intToHexList(
List< int> val) → List<String> - Integer list to Hex String list
-
removeNull(
Map theMap) → Map - Remove null values from a map
-
safeParse(
String val) → BigInt - Safe parser for BigInt, returns BigInt.zero if the parse fails Geth sometimes returns '0x' rather than '0x00'