Expand description
Mock types and functions to generate GethData used for tests
Re-exports§
pub use test_ctx::TestContext;
pub use test_ctx2::TestContext2;
pub use transaction::CORRECT_MOCK_TXS;
pub use transaction::CORRECT_MOCK_TXS;
Modules§
- Mock types and functions to generate Test environments for ZKEVM tests
- Mock types and functions to generate Test environments for ZKEVM tests
Structs§
- Collection of correctly hashed and signed Transactions which can be used to test circuits or opcodes that have to check integrity of the Tx itself. Some of the parameters of the Tx are hardcoded such as
nonce
,value
,gas_price
etc… - Mock 1 ETH
- Mock accounts loaded with ETH to use for test cases.
- Mock BASEFEE value
- Mock chain ID value
- Mock EVM codes to use for test cases.
- Mock coinbase value
- Mock EVM bytecode for a deployed contract. PUSH1 0x20 PUSH1 0 PUSH1 0 CALLDATACOPY PUSH1 0x20 PUSH1 0 RETURN
- Mock DIFFICULTY value
- Mock GASLIMIT value
- Mock gasprice value
- Mock mix hash value
- Mock wallets used to generate correctly signed and hashed Transactions.
- Holds the parameters for generating mock EVM bytecode for a contract call
- Mock structure which represents a Transaction and can be used for tests. It contains all the builder-pattern methods required to be able to specify any of it’s details.
- Generate Sha3 opcode
Enums§
Constants§
- Mock block gas limit
Functions§
- Generate a
Word
which corresponds to a certain amount of ETH. - Generate mock EVM bytecode that performs a contract call
- Express an amount of ETH in GWei.
- Generate random bytes for the specified size.