Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data AccessListEntry = AccessListEntry {
- accessAddress :: Addr
- accessStorageKeys :: [W256]
- data TxType
- data Transaction = Transaction {
- txData :: ByteString
- txGasLimit :: Word64
- txGasPrice :: Maybe W256
- txNonce :: W256
- txR :: W256
- txS :: W256
- txToAddr :: Maybe Addr
- txV :: W256
- txValue :: W256
- txType :: TxType
- txAccessList :: [AccessListEntry]
- txMaxPriorityFeeGas :: Maybe W256
- txMaxFeePerGas :: Maybe W256
- txAccessMap :: Transaction -> Map Addr [W256]
- ecrec :: W256 -> W256 -> W256 -> W256 -> Maybe Addr
- sender :: Int -> Transaction -> Maybe Addr
- signingData :: Int -> Transaction -> ByteString
- accessListPrice :: FeeSchedule Word64 -> [AccessListEntry] -> Word64
- txGasCost :: FeeSchedule Word64 -> Transaction -> Word64
- accountAt :: Addr -> Getter (Map Addr Contract) Contract
- touchAccount :: Addr -> Map Addr Contract -> Map Addr Contract
- newAccount :: Contract
- setupTx :: Addr -> Addr -> W256 -> Word64 -> Map Addr Contract -> Map Addr Contract
- initTx :: VM -> VM
Documentation
data AccessListEntry Source #
Instances
FromJSON AccessListEntry Source # | |
Defined in EVM.Transaction parseJSON :: Value -> Parser AccessListEntry # parseJSONList :: Value -> Parser [AccessListEntry] # | |
Show AccessListEntry Source # | |
Defined in EVM.Transaction showsPrec :: Int -> AccessListEntry -> ShowS # show :: AccessListEntry -> String # showList :: [AccessListEntry] -> ShowS # |
data Transaction Source #
Transaction | |
|
Instances
FromJSON Transaction Source # | |
Defined in EVM.Transaction parseJSON :: Value -> Parser Transaction # parseJSONList :: Value -> Parser [Transaction] # | |
Show Transaction Source # | |
Defined in EVM.Transaction showsPrec :: Int -> Transaction -> ShowS # show :: Transaction -> String # showList :: [Transaction] -> ShowS # |
txAccessMap :: Transaction -> Map Addr [W256] Source #
utility function for getting a more useful representation of accesslistentries duplicates only matter for gas computation
signingData :: Int -> Transaction -> ByteString Source #
accessListPrice :: FeeSchedule Word64 -> [AccessListEntry] -> Word64 Source #
txGasCost :: FeeSchedule Word64 -> Transaction -> Word64 Source #