hevm-0.53.0: Symbolic EVM Evaluator
Safe HaskellSafe-Inferred
LanguageGHC2021

EVM.UnitTest

Synopsis

Documentation

makeVeriOpts :: UnitTestOptions s -> VeriOpts Source #

Generate VeriOpts from UnitTestOptions

unitTest :: App m => UnitTestOptions RealWorld -> Contracts -> m Bool Source #

Top level CLI endpoint for hevm test

initializeUnitTest :: UnitTestOptions s -> SolcContract -> Stepper Concrete s () Source #

Assuming a constructor is loaded, this stepper will run the constructor to create the test contract, give it an initial balance, and run `setUp()'.

symRun :: App m => UnitTestOptions RealWorld -> VM Concrete RealWorld -> Sig -> m (Text, Either Text Text) Source #

Define the thread spawner for symbolic tests

formatTestLogs :: (?context :: DappContext) => Map W256 Event -> [Expr Log] -> Text Source #

makeTxCall :: VMOps t => TestVMParams -> (Expr Buf, [Prop]) -> EVM t s () Source #

tick :: Text -> IO () Source #