Expand description
Primitives for contract abi, eip715 and rlp
Structs§
- Address
- Ethereum address type in binary bytes with format
rlp
and formatabi
supports - Bytes
- Type mapping for
bytes
of contract abi - BytesM
- Type mapping for
bytes<M>
of contract abi - Eip1559
Signature - Ethereum signature structure.
- Ether
- Finney
- Fixed
- Gwei
- Int
int<M>
type mapping- Kwei
- Mwei
- Szabo
- Uint
uint<M>
type mapping- Unfixed
- Wei
Enums§
- Address
Error - Bytes
Errors - Eip1559
SigError - From
HexError - The error type for decoding a hex string into
Vec<u8>
or[u8; N]
. - Signed
Error - Uint
Error - Unit
Error
Traits§
- Eip55
- Eip55 support trait
- Ethereum
Unit - From
Ether Hex - Implement this trait to support deserialize
type
from ethereum hex string, “0x…” - FromHex
- Types that can be decoded from a hex string.
- ToEther
Hex - Implement this trait to support serialize
type
to ethereum hex string, “0x…” - ToHex
- Encoding values as hex string.
Functions§
- decode
- Decodes a hex string into raw bytes.
- decode_
to_ slice - Decode a hex string into a mutable bytes slice.
- encode
- Encodes
data
as hex string using lowercase characters. - encode_
to_ slice - Encodes some bytes into a mutable slice of bytes.
- encode_
upper - Encodes
data
as hex string using uppercase characters.