Module authority_test_utils

Source

Functions§

assign_shared_object_versions
Assigns shared object versions for an executable without scheduling for execution. This is used when you need version assignment but want to control execution separately.
assign_versions_and_schedule
create_executable_transaction
Creates a VerifiedExecutableTransaction from a signed transaction. This validates the transaction, votes on it, and creates an executable as if it came out of consensus.
enqueue_and_execute_all
Enqueues multiple transactions for execution after they’ve been through consensus.
execute_from_consensus
Executes a transaction that has already been sequenced through consensus.
init_state_validator_with_fullnode
init_state_with_committee
init_state_with_ids
init_state_with_ids_and_expensive_checks
init_state_with_ids_and_versions
init_state_with_object_id
init_state_with_objects
init_state_with_objects_and_committee
init_transfer_transaction
submit_and_execute
This is the primary test helper for executing transactions end-to-end.
submit_and_execute_with_error
Complete MFP flow returning execution error if any.
submit_and_execute_with_options
Options:
submit_and_schedule
Submits a transaction to consensus and schedules for execution. Returns assigned versions. Execution happens asynchronously.
submit_to_consensus
Submits a transaction to consensus for ordering and version assignment. This only simulates the consensus submission process by assigning versions to shared objects.
vote_transaction
Validates a transaction. This is the MFP “voting” phase - similar to what happens when a validator receives a transaction before submitting to consensus.