Expand description
Structs and traits for the utility package.
Modules§
- as_hex
- Handle serializing and deserializing from
Vec<u8>
to hexadecimal - as_
hex_ option - Handle serializing and deserializing from
Option<Vec<u8>>
to hexadecimal - as_
string - Handle serializing and deserializing from
Vec<u8>
to a UTF-8 string - as_
string_ option - Handle serializing and deserializing from
Option<Vec<u8>>
to a UTF-8 string
Enums§
- Detected
Chain Type - An enum that shows the detected chain type
Constants§
- MAINNET_
GENESIS_ HASH - Mainnet Genesis Hash 0x4a587bf17a404e3572747add7aab7bbe56e805a5479c6c436f07f36fcc8d3ae1
- TESTNET_
ON_ PASEO_ GENESIS_ HASH - Frequency Testnet on Paseo Genesis Hash 0x203c6838fc78ea3660a2f298a58d859519c72a5efdc0f194abd6f0d5ce1838e0
- TESTNET_
ON_ WESTEND_ GENESIS_ HASH - Frequency Testnet on Westend Genesis Hash 0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e
Functions§
- get_
chain_ type_ by_ genesis_ hash - Finds the chain type by genesis hash
- to_
abi_ compatible_ number - Generic function for converting any unsigned integer to a 32-byte array compatible with ETH abi
- wrap_
binary_ data - Wraps
PREFIX
andPOSTFIX
around aVec<u8>
ReturnsPREFIX
++data
++POSTFIX