Crate ethers_primitives

Source
Expand description

Primitives for contract abi, eip715 and rlp

Structs§

Address
Ethereum address type in binary bytes with format rlp and format abi supports
Bytes
Type mapping for bytes of contract abi
BytesM
Type mapping for bytes<M> of contract abi
Eip1559Signature
Ethereum signature structure.
Ether
Finney
Fixed
Gwei
Int
int<M> type mapping
Kwei
Mwei
Szabo
Uint
uint<M> type mapping
Unfixed
Wei

Enums§

AddressError
BytesErrors
Eip1559SigError
FromHexError
The error type for decoding a hex string into Vec<u8> or [u8; N].
SignedError
UintError
UnitError

Traits§

Eip55
Eip55 support trait
EthereumUnit
FromEtherHex
Implement this trait to support deserialize type from ethereum hex string, “0x…”
FromHex
Types that can be decoded from a hex string.
ToEtherHex
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.

Type Aliases§

Bytes1
Bytes32
H256
I64
I256
U64
U256