packages feed

morley-0.1.0.0: src/Morley/Runtime/TxData.hs

-- | 'TxData' type and associated functionality.

module Morley.Runtime.TxData
       ( TxData (..)
       ) where

import Michelson.Untyped (Op, Value)
import Morley.Types (UExtInstr)
import Tezos.Address (Address)
import Tezos.Core (Mutez)

-- | Data associated with a particular transaction.
data TxData = TxData
  { tdSenderAddress :: !Address
  , tdParameter :: !(Value Op)
  , tdAmount :: !Mutez
  }

deriving instance Show UExtInstr => Show TxData