Trident's Fuzz Client#
Trident's Client (FuzzClient
) is a wrapper around the TridentSVM that provides methods to manipulate with the execution environment during fuzzing.
This section describes the methods that are available in the FuzzClient
.
Trident Client Methods#
new_client
#
Creates a new instance of the fuzzing client with the specified programs and configuration.
deploy_native_program
#
Deploys a native program to the fuzzing client.
get_sysvar
#
Retrieves Sysvars
like Rent
, Clock
, etc.
warp_to_epoch
#
Advances the fuzz test to a specific epoch.
warp_to_slot
#
Advances the fuzz test to a specific slot.
warp_to_timestamp
#
Sets the fuzz test to a specific timestamp.
forward_in_time
#
Advances the fuzz test by the specified number of seconds.
set_account_custom
#
Creates or overwrites an account at the specified address, bypassing normal runtime checks.
get_account
#
Retrieves the account data at the specified address.
payer
#
Returns the keypair of the client's payer account.
clear_accounts
#
Removes temporary accounts created during the fuzzing iteration.
Warning
This method is called internally by Trident (after each fuzzing iteration, to reset state to default).
get_last_blockhash
#
Retrieves the most recent blockhash.
Warning
Currently, this method is not implemented and call to this method will result in a panic.
process_instructions
#
Executes a set of instructions and waits for them to be either finalized or rejected.
Warning
This method is called internally by Trident, no need for manual invocation.