cheatcodes
Standalone Functions
reset
reset();
Takes no parameters.
get_side_effects_counter
get_side_effects_counter();
Takes no parameters.
set_contract_address
set_contract_address(address);
Parameters
Name | Type |
---|---|
address | AztecAddress |
advance_blocks_by
advance_blocks_by(blocks);
Parameters
Name | Type |
---|---|
blocks | u32 |
get_private_context_inputs
get_private_context_inputs(historical_block_number, );
Parameters
Name | Type |
---|---|
historical_block_number | u32 |
deploy
deploy(path, name, initializer, args, public_keys_hash, );
Parameters
Name | Type |
---|---|
path | str<N> |
name | str<M> |
initializer | str<P> |
args | [Field] |
public_keys_hash | Field |
direct_storage_write
direct_storage_write(contract_address, storage_slot, fields, );
Parameters
Name | Type |
---|---|
contract_address | AztecAddress |
storage_slot | Field |
fields | [Field; N] |
create_account
create_account();
Takes no parameters.
add_account
add_account(secret);
Parameters
Name | Type |
---|---|
secret | Field |
derive_keys
derive_keys(secret);
Parameters
Name | Type |
---|---|
secret | Field |
add_authwit
add_authwit(address, message_hash);
Parameters
Name | Type |
---|---|
address | AztecAddress |
message_hash | Field |
assert_public_call_fails
assert_public_call_fails(target_address, function_selector, args, );
Parameters
Name | Type |
---|---|
target_address | AztecAddress |
function_selector | FunctionSelector |
args | [Field] |
assert_private_call_fails
assert_private_call_fails(target_address, function_selector, argsHash, sideEffectsCounter, isStaticCall, );
Parameters
Name | Type |
---|---|
target_address | AztecAddress |
function_selector | FunctionSelector |
argsHash | Field |
sideEffectsCounter | Field |
isStaticCall | bool |
oracle_reset
oracle_reset();
Takes no parameters.
oracle_set_contract_address
oracle_set_contract_address(address);
Parameters
Name | Type |
---|---|
address | AztecAddress |
oracle_get_side_effects_counter
oracle_get_side_effects_counter();
Takes no parameters.
oracle_advance_blocks_by
oracle_advance_blocks_by(blocks);
Parameters
Name | Type |
---|---|
blocks | u32 |
oracle_get_private_context_inputs
oracle_get_private_context_inputs(historical_block_number, );
Parameters
Name | Type |
---|---|
historical_block_number | u32 |
oracle_deploy
oracle_deploy(path, name, initializer, args, public_keys_hash, );
Parameters
Name | Type |
---|---|
path | str<N> |
name | str<M> |
initializer | str<P> |
args | [Field] |
public_keys_hash | Field |
direct_storage_write_oracle
direct_storage_write_oracle(_contract_address, _storage_slot, _values, );
Parameters
Name | Type |
---|---|
_contract_address | AztecAddress |
_storage_slot | Field |
_values | [Field; N] |
oracle_create_account
oracle_create_account();
Takes no parameters.
oracle_add_account
oracle_add_account(secret);
Parameters
Name | Type |
---|---|
secret | Field |
oracle_derive_keys
oracle_derive_keys(secret);
Parameters
Name | Type |
---|---|
secret | Field |
orable_add_authwit
orable_add_authwit(address, message_hash);
Parameters
Name | Type |
---|---|
address | AztecAddress |
message_hash | Field |
oracle_assert_public_call_fails
oracle_assert_public_call_fails(target_address, function_selector, args, );
Parameters
Name | Type |
---|---|
target_address | AztecAddress |
function_selector | FunctionSelector |
args | [Field] |
oracle_assert_private_call_fails
oracle_assert_private_call_fails(target_address, function_selector, argsHash, sideEffectsCounter, isStaticCall, );
Parameters
Name | Type |
---|---|
target_address | AztecAddress |
function_selector | FunctionSelector |
argsHash | Field |
sideEffectsCounter | Field |
isStaticCall | bool |