Module ethers_core::utils [−][src]
Expand description
Various utilities
Re-exports
pub use rlp;
Structs
The result of a solc compilation
Builder for launching ganache-cli
.
A ganache CLI instance. Will close the instance when dropped.
Builder for launching geth
.
A geth instance. Will close the instance when dropped.
Solidity Compiler Bindings
Enums
Constants
1 Ether = 1e18 Wei == 0x0de0b6b3a7640000 Wei
Functions
Builds the contracts and returns a hashmap for each named contract
Compiles the contracts and launches a crate::utils::GanacheInstance
Compiles the contracts and launches a crate::utils::GethInstance
Returns a bytes32 string representation of text. If the length of text exceeds 32 bytes, an error is returned.
Format the output for the user which prefer to see values in ether (instead of wei)
Divides the provided amount with 10^{units} provided.
The address for an Ethereum contract is deterministically computed from the address of its creator (sender) and how many transactions the creator has sent (nonce). The sender and nonce are RLP encoded and then hashed with Keccak-256.
Returns the CREATE2 of a smart contract as specified in EIP1014
Hash a message according to EIP-191.
Calculate the function selector as per the contract ABI specification. This is defined as the first 4 bytes of the Keccak256 hash of the function signature.
Compute the Keccak-256 hash of input bytes.
Launches a crate::utils::GanacheInstance
Launches a crate::utils::GethInstance
Returns the decoded string represented by the bytes32 encoded data.
Converts the input to a U256 and converts from Ether to Wei.
Multiplies the provided amount with 10^{units} provided.
Converts a K256 SigningKey to an Ethereum Address
Serialize a type.
Converts an Ethereum address to the checksum encoding Ref: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-55.md