Skip to main content

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

NameType
addressAztecAddress

advance_blocks_by

advance_blocks_by(blocks);

Parameters

NameType
blocksu32

get_private_context_inputs

get_private_context_inputs(historical_block_number, );

Parameters

NameType
historical_block_numberu32

deploy

deploy(path, name, initializer, args, public_keys_hash, );

Parameters

NameType
pathstr<N>
namestr<M>
initializerstr<P>
args[Field]
public_keys_hashField

direct_storage_write

direct_storage_write(contract_address, storage_slot, fields, );

Parameters

NameType
contract_addressAztecAddress
storage_slotField
fields[Field; N]

create_account

create_account();

Takes no parameters.

add_account

add_account(secret);

Parameters

NameType
secretField

derive_keys

derive_keys(secret);

Parameters

NameType
secretField

add_authwit

add_authwit(address, message_hash);

Parameters

NameType
addressAztecAddress
message_hashField

assert_public_call_fails

assert_public_call_fails(target_address, function_selector, args, );

Parameters

NameType
target_addressAztecAddress
function_selectorFunctionSelector
args[Field]

assert_private_call_fails

assert_private_call_fails(target_address, function_selector, argsHash, sideEffectsCounter, isStaticCall, );

Parameters

NameType
target_addressAztecAddress
function_selectorFunctionSelector
argsHashField
sideEffectsCounterField
isStaticCallbool

oracle_reset

oracle_reset();

Takes no parameters.

oracle_set_contract_address

oracle_set_contract_address(address);

Parameters

NameType
addressAztecAddress

oracle_get_side_effects_counter

oracle_get_side_effects_counter();

Takes no parameters.

oracle_advance_blocks_by

oracle_advance_blocks_by(blocks);

Parameters

NameType
blocksu32

oracle_get_private_context_inputs

oracle_get_private_context_inputs(historical_block_number, );

Parameters

NameType
historical_block_numberu32

oracle_deploy

oracle_deploy(path, name, initializer, args, public_keys_hash, );

Parameters

NameType
pathstr<N>
namestr<M>
initializerstr<P>
args[Field]
public_keys_hashField

direct_storage_write_oracle

direct_storage_write_oracle(_contract_address, _storage_slot, _values, );

Parameters

NameType
_contract_addressAztecAddress
_storage_slotField
_values[Field; N]

oracle_create_account

oracle_create_account();

Takes no parameters.

oracle_add_account

oracle_add_account(secret);

Parameters

NameType
secretField

oracle_derive_keys

oracle_derive_keys(secret);

Parameters

NameType
secretField

orable_add_authwit

orable_add_authwit(address, message_hash);

Parameters

NameType
addressAztecAddress
message_hashField

oracle_assert_public_call_fails

oracle_assert_public_call_fails(target_address, function_selector, args, );

Parameters

NameType
target_addressAztecAddress
function_selectorFunctionSelector
args[Field]

oracle_assert_private_call_fails

oracle_assert_private_call_fails(target_address, function_selector, argsHash, sideEffectsCounter, isStaticCall, );

Parameters

NameType
target_addressAztecAddress
function_selectorFunctionSelector
argsHashField
sideEffectsCounterField
isStaticCallbool