Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

openzeppelin_testing

Fully qualified path: openzeppelin_testing

Modules


Re-exports:

panic_data_to_byte_arrayConverts panic data into a string (ByteArray). panic_data is expected to be a valid serialized byte array with an extra felt252 at the beginning, which is the BYTE_ARRAY_MAGIC.
to_base_16_stringConverts a felt252 to a base16 string padded to 66 characters including the 0x prefix.
declare_and_deployCombines the declaration of a class and the deployment of a contract into one function call. This function will skip declaration if the contract is already declared (the result of…
declare_and_deploy_atCombines the declaration of a class and the deployment of a contract at the given address into one function call. This function will skip declaration if the contract is…
declare_classDeclares a contract with a snforge_std::declare call and unwraps the result. This function will skip declaration and just return the ContractClass if the contract is…
deployDeploys an instance of a contract and unwraps the result.
deploy_another_atDeploys a contract using the class hash from another already-deployed contract.
deploy_atDeploys a contract at the given address and unwraps the result.
spy_eventsCreates a new EventSpyQueue instance.

EventSpyQueueA wrapper around the EventSpy structure to allow treating the events as a queue.


ExpectedEventThe ExpectedEvent trait provides a convenient API for constructing expected events in tests. This implementation is generated by the #[generate_trait] macro and offers three methods:…