Skip to main content

TestEnvironment

Methods

new

TestEnvironment::new();

Takes no parameters.

block_number

TestEnvironment::block_number(_self);

Parameters

NameType
_selfSelf

contract_address

TestEnvironment::contract_address(_self);

Parameters

NameType
_selfSelf

impersonate

TestEnvironment::impersonate(_self, address);

Parameters

NameType
_selfSelf
addressAztecAddress

advance_block_to

TestEnvironment::advance_block_to(&mut self, block_number);

Parameters

NameType
&mut self
block_numberu32

advance_block_by

TestEnvironment::advance_block_by(_self, blocks);

Parameters

NameType
_self&mut Self
blocksu32

public

TestEnvironment::public(_self);

Parameters

NameType
_selfSelf

public_with_args_hash

TestEnvironment::public_with_args_hash(_self, args);

Parameters

NameType
_selfSelf
args[Field]

private

TestEnvironment::private(&mut self);

Parameters

NameType
&mut self

unkonstrained

TestEnvironment::unkonstrained(_self);

Parameters

NameType
_selfSelf

private_at

TestEnvironment::private_at(&mut self, historical_block_number);

Parameters

NameType
&mut self
historical_block_numberu32

create_account

TestEnvironment::create_account(_self);

Parameters

NameType
_selfSelf

create_account_contract

TestEnvironment::create_account_contract(&mut self, secret);

Parameters

NameType
&mut self
secretField

deploy

TestEnvironment::deploy(_self, path, name, );

Parameters

NameType
_selfSelf
pathstr<N>
namestr<M>

deploy_self

TestEnvironment::deploy_self(_self, name);

Parameters

NameType
_selfSelf
namestr<M>

assert_public_call_fails

TestEnvironment::assert_public_call_fails(_self, call_interface);

Parameters

NameType
_selfSelf
call_interfaceC

assert_private_call_fails

TestEnvironment::assert_private_call_fails(_self, call_interface);

Parameters

NameType
_selfSelf
call_interfaceC

add_note

TestEnvironment::add_note(_self, note, storage_slot, contract_address, );

Parameters

NameType
_selfSelf
note&mut Note
storage_slotField
contract_addressAztecAddress