TestEnvironment
Methods
new
TestEnvironment::new();
Takes no parameters.
block_number
TestEnvironment::block_number(self);
Parameters
Name | Type |
---|---|
self |
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(&mut self, blocks);
Parameters
Name | Type |
---|---|
&mut self | |
blocks | u32 |
public
TestEnvironment::public(self);
Parameters
Name | Type |
---|---|
self |
private
TestEnvironment::private(&mut self);
Parameters
Name | Type |
---|---|
&mut 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 |
create_account_contract
TestEnvironment::create_account_contract(&mut self, secret);
Parameters
Name | Type |
---|---|
&mut self | |
secret | Field |
deploy
TestEnvironment::deploy(self, path);
Parameters
Name | Type |
---|---|
self | |
path | str<N> |
call_private
TestEnvironment::call_private(self, call_interface);
Parameters
Name | Type |
---|---|
self | |
call_interface | C |
call_private_void
TestEnvironment::call_private_void(self, call_interface);
Parameters
Name | Type |
---|---|
self | |
call_interface | C |
call_public
TestEnvironment::call_public(self, call_interface);
Parameters
Name | Type |
---|---|
self | |
call_interface | C |
assert_public_call_fails
TestEnvironment::assert_public_call_fails(self, call_interface);
Parameters
Name | Type |
---|---|
self | |
call_interface | C |
assert_private_call_fails
TestEnvironment::assert_private_call_fails(self, call_interface);
Parameters
Name | Type |
---|---|
self | |
call_interface | C |
store_note_in_cache
TestEnvironment::store_note_in_cache(self, note, storage_slot, contract_address);
Parameters
Name | Type |
---|---|
self | |
note | &mut Note |
storage_slot | Field |
contract_address | AztecAddress |