| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
EVM.Transaction
Synopsis
- data AccessListEntry = AccessListEntry {
- address :: Addr
- storageKeys :: [W256]
- data TxType
- data Transaction = Transaction {}
- emptyTransaction :: Transaction
- txAccessMap :: Transaction -> Map Addr [W256]
- sender :: Transaction -> Maybe Addr
- sign :: Integer -> Transaction -> Transaction
- signingData :: 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 #
Constructors
| AccessListEntry | |
Fields
| |
Instances
Constructors
| LegacyTransaction | |
| AccessListTransaction | |
| EIP1559Transaction |
Instances
| ToJSON TxType Source # | |
Defined in EVM.Transaction | |
| Generic TxType Source # | |
| Show TxType Source # | |
| Eq TxType Source # | |
| type Rep TxType Source # | |
Defined in EVM.Transaction type Rep TxType = D1 ('MetaData "TxType" "EVM.Transaction" "hevm-0.51.0-inplace" 'False) (C1 ('MetaCons "LegacyTransaction" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AccessListTransaction" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EIP1559Transaction" 'PrefixI 'False) (U1 :: Type -> Type))) | |
data Transaction Source #
Constructors
| Transaction | |
Instances
txAccessMap :: Transaction -> Map Addr [W256] Source #
utility function for getting a more useful representation of accesslistentries duplicates only matter for gas computation
sign :: Integer -> Transaction -> Transaction Source #
signingData :: Transaction -> ByteString Source #
accessListPrice :: FeeSchedule Word64 -> [AccessListEntry] -> Word64 Source #
txGasCost :: FeeSchedule Word64 -> Transaction -> Word64 Source #