hevm-0.50.1: Ethereum virtual machine evaluator
Safe HaskellSafe-Inferred
LanguageGHC2021

EVM.Transaction

Synopsis

Documentation

data TxType Source #

Instances

Instances details
Show TxType Source # 
Instance details

Defined in EVM.Transaction

Eq TxType Source # 
Instance details

Defined in EVM.Transaction

Methods

(==) :: TxType -> TxType -> Bool #

(/=) :: TxType -> TxType -> Bool #

txAccessMap :: Transaction -> Map Addr [W256] Source #

utility function for getting a more useful representation of accesslistentries duplicates only matter for gas computation

setupTx :: Addr -> Addr -> W256 -> Word64 -> Map Addr Contract -> Map Addr Contract Source #

Increments origin nonce and pays gas deposit

initTx :: VM -> VM Source #

Given a valid tx loaded into the vm state, subtract gas payment from the origin, increment the nonce and pay receiving address