Backup the database so that it can be rolledback to the backedup state if the transaction reverts
Get contract result set when calling System.exit()
Get error message string after a VM error
Get logs set when calling System.log()
Get exit code set when calling System.exitContract(...)
Get logs set when calling System.log()
Reset the MockVM database
Rrestore the backup made via MockVM.commitTransaction()
Set authorities that will be used when calling System.requireAuthority(...)
authorities to set
Set block that will be used when calling System.getBlock() and System.getBlockField(...)
block to set
Set call contract results that will be used when calling System.callContract(...)
The results are FIFO, so the first System.callContract(...) used in your code will use the first result you set in callContractResults, the second System.callContract(...) will get the second result, etc...
Set caller data that will be used when calling System.getCaller()
caller data to set
Set contract arguments that will be used when calling System.getContractArguments()
contract arguments to set
Set contract id that will be used when calling System.getContractArguments()
contract id to set
Set entry point that will be used when calling System.getEntryPoint()
entry point to set
Set head info that will be used when calling System.getHeadInfo()
head info to set
Set entry point that will be used when calling System.getEntryPoint()
last irreversible block height to set
Set operation that will be used when calling System.getOperation()
operation to set
Set system authority that will be used when calling System.requireSystemAuthority(...)
MockVM.setSystemAuthority(true);
System.requireSystemAuthority();
Set transaction that will be used when calling System.getTransaction() and System.getTransactionField(...)
transaction to set
Set results that will be used when calling System.verifyVRFProof(...)
The results are FIFO, so the first System.verifyVRFPRoof(...) used in your code will use the first result you set in callContractResults, the second System.callContract(...) will get the second result, etc...
Generated using TypeDoc
Remove the current logs