| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
EVM.Transaction
Synopsis
- data AccessListEntry = AccessListEntry {
- accessAddress :: Addr
- accessStorageKeys :: [W256]
- data TxType
- data Transaction = Transaction {
- txData :: ByteString
- txGasLimit :: W256
- 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 Integer -> [AccessListEntry] -> Integer
- txGasCost :: FeeSchedule Integer -> Transaction -> Integer
- accountAt :: Addr -> Getter (Map Addr Contract) Contract
- touchAccount :: Addr -> Map Addr Contract -> Map Addr Contract
- newAccount :: Contract
- setupTx :: Addr -> Addr -> Word -> Word -> Map Addr Contract -> Map Addr Contract
- initTx :: VM -> VM
Documentation
data AccessListEntry Source #
Constructors
| AccessListEntry | |
Fields
| |
Instances
| Show AccessListEntry Source # | |
Defined in EVM.Transaction Methods showsPrec :: Int -> AccessListEntry -> ShowS # show :: AccessListEntry -> String # showList :: [AccessListEntry] -> ShowS # | |
| FromJSON AccessListEntry Source # | |
Defined in EVM.Transaction Methods parseJSON :: Value -> Parser AccessListEntry # parseJSONList :: Value -> Parser [AccessListEntry] # | |
Constructors
| LegacyTransaction | |
| AccessListTransaction | |
| EIP1559Transaction |
data Transaction Source #
Constructors
| Transaction | |
Fields
| |
Instances
| Show Transaction Source # | |
Defined in EVM.Transaction Methods showsPrec :: Int -> Transaction -> ShowS # show :: Transaction -> String # showList :: [Transaction] -> ShowS # | |
| FromJSON Transaction Source # | |
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
signingData :: Int -> Transaction -> ByteString Source #
accessListPrice :: FeeSchedule Integer -> [AccessListEntry] -> Integer Source #
txGasCost :: FeeSchedule Integer -> Transaction -> Integer Source #