cooked-validators
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cooked.Pretty.Skeleton

Description

This module implements PrettyCooked, PrettyCookedList and PrettyCookedMaybe instances for TxSkels and its components.

Synopsis

Documentation

data Contextualized a Source #

Some elements of a skeleton can only be printed when they are associated with a context. This is typically the case for elements that need some TxOutRefs and datums to be resolved.

Instances

Instances details
Functor Contextualized Source # 
Instance details

Defined in Cooked.Pretty.Skeleton

Methods

fmap :: (a -> b) -> Contextualized a -> Contextualized b #

(<$) :: a -> Contextualized b -> Contextualized a #

PrettyCookedList (Contextualized TxSkel) Source #

Prints a Contextualized TxSkel

Instance details

Defined in Cooked.Pretty.Skeleton

PrettyCookedList (Contextualized TxOutRef) Source #

Resolves a TxOutRef from a given context, builds a doc cooked for its address and value, and also builds a possibly empty list for its datum and reference script when they exist.

Instance details

Defined in Cooked.Pretty.Skeleton

Orphan instances

PrettyCooked Mint Source #

Prints a minting specification

Example: > #abcdef - Redeemer: red - Reference script at: txOutRef - Foo: 500 - Bar: 1000

Instance details

PrettyCooked TxSkelOut Source # 
Instance details

PrettyCooked TxGovAction Source # 
Instance details

PrettyCooked TxParameterChange Source # 
Instance details

PrettyCooked Wallet Source # 
Instance details

PrettyCookedList TxOpts Source #

Pretty-print a list of transaction skeleton options, only printing an option if its value is non-default.

Instance details

PrettyCookedList TxSkelProposal Source # 
Instance details

PrettyCookedList TxSkelRedeemer Source #

Prints a list of docs corresponding to an instance of TxSkelRedeemer

Instance details

PrettyCookedMaybe TxSkelOutDatum Source #

Prints a TxSkelOutDatum when different from TxSkelOutNoDatum

Instance details

PrettyCookedList (TxOpts, [Wallet]) Source #

Prints a list of pubkeys with a flag next to the balancing wallet

Instance details