| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Ledger.CanonicalState.BasicTypes
Synopsis
- data OnChain a = OnChain {
- getValue ∷ !a
- getWireEncoding ∷ !ByteString
- class DecodeOnChain (v ∷ Symbol) a where
- decodeOnChain ∷ ByteString → CanonicalDecoder s a
Documentation
Wrapper type that tells that the type is the type that is kept on-chain for such types we want to keep exactly the same encoding as on the wire.
We still tag the type with an original one to be able to distinguish between them.
Constructors
| OnChain | |
Fields
| |
Instances
class DecodeOnChain (v ∷ Symbol) a where Source #
Helper types to encode on-chain types, it's used so
it would be possible to pass input bytestring to
toPlainDecoder.
Methods
decodeOnChain ∷ ByteString → CanonicalDecoder s a Source #
Instances
| (EraTxOut era, EraScript era, TxOut era ~ x) ⇒ DecodeOnChain "utxo/v0" x Source # | |
Defined in Cardano.Ledger.CanonicalState.Namespace.UTxO.V0 Methods decodeOnChain ∷ ByteString → CanonicalDecoder s x Source # | |