Module test_environment
Structs
- Configuration for
TestEnvironment::call_private_opts. - Configuration values for
TestEnvironment::call_public_opts. Meant to be used by callingnewand then chaining methods setting each value, e.g.:env.call_public_opts(caller, CallPublicOptions::new().with_max_fees_per_gas(GasFees::new(1, 1)), MyContract::at(addr).fn());Gas settings fields are not cross-validated - nonsense combinations (e.g.
teardown_gas_limitslarger thangas_limits) will be forwarded as-is and may be rejected by simulation. - Configuration values for
TestEnvironment::deploy_opts. Meant to be used by callingnewand then chaining methods setting each value, e.g.:env.deploy_opts(DeployOptions::new().with_salt(42).with_secret(100), "MyContract").without_initializer(); - Configuration for
TestEnvironment::execute_utility_opts. - Configuration values for
TestEnvironment::private_context_opts. Meant to be used by callingnewand then chaining methods setting each value, e.g.:env.private_context_opts(PrivateContextOptions::new().at_anchor_block_number(5), ...); - This represents an Aztec test run, and contains all the methods utilized during one to interact with the network and manipulate its state (e.g. create accounts, make contract calls, etc.). Each test is expected to have its own instance of
TestEnvironment, as tests execute in parallel and so cannot share this object. - Configuration for
TestEnvironment::view_private_opts.