TestEnvironment
Methods
new
TestEnvironment::new();
Takes no parameters.
block_number
TestEnvironment::block_number(_self);
Parameters
Name | Type |
---|---|
_self | Self |
contract_address
TestEnvironment::contract_address(_self);
Parameters
Name | Type |
---|---|
_self | Self |
impersonate
TestEnvironment::impersonate(_self, address);
Parameters
Name | Type |
---|---|
_self | Self |
address | AztecAddress |
advance_block_to
TestEnvironment::advance_block_to(&mut self, block_number);
Parameters
Name | Type |
---|---|
&mut self | |
block_number | u32 |
advance_block_by
TestEnvironment::advance_block_by(_self, blocks);
Parameters
Name | Type |
---|---|
_self | &mut Self |
blocks | u32 |
public
TestEnvironment::public(_self);
Parameters
Name | Type |
---|---|
_self | Self |
public_with_args_hash
TestEnvironment::public_with_args_hash(_self, args);
Parameters
Name | Type |
---|---|
_self | Self |
args | [Field] |
private
TestEnvironment::private(&mut self);
Parameters
Name | Type |
---|---|
&mut self |
unkonstrained
TestEnvironment::unkonstrained(_self);
Parameters
Name | Type |
---|---|
_self | Self |
private_at
TestEnvironment::private_at(&mut self, historical_block_number);
Parameters
Name | Type |
---|---|
&mut self | |
historical_block_number | u32 |
create_account
TestEnvironment::create_account(_self);
Parameters
Name | Type |
---|---|
_self | Self |
create_account_contract
TestEnvironment::create_account_contract(&mut self, secret);
Parameters
Name | Type |
---|---|
&mut self | |
secret | Field |
deploy
TestEnvironment::deploy(_self, path, name, );
Parameters
Name | Type |
---|---|
_self | Self |
path | str<N> |
name | str<M> |
deploy_self
TestEnvironment::deploy_self(_self, name);
Parameters
Name | Type |
---|---|
_self | Self |
name | str<M> |
assert_public_call_fails
TestEnvironment::assert_public_call_fails(_self, call_interface);
Parameters
Name | Type |
---|---|
_self | Self |
call_interface | C |
assert_private_call_fails
TestEnvironment::assert_private_call_fails(_self, call_interface);
Parameters
Name | Type |
---|---|
_self | Self |
call_interface | C |
add_note
TestEnvironment::add_note(_self, note, storage_slot, contract_address, );
Parameters
Name | Type |
---|---|
_self | Self |
note | &mut Note |
storage_slot | Field |
contract_address | AztecAddress |