hevm-0.48.0: Ethereum virtual machine evaluator
Safe HaskellNone
LanguageHaskell2010

EVM.Transaction

Synopsis

Documentation

data TxType Source #

Instances

Instances details
Eq TxType Source # 
Instance details

Defined in EVM.Transaction

Methods

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

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

Show TxType Source # 
Instance details

Defined in EVM.Transaction

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 -> Word -> Word -> 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