ytxp-sdk-0.2.1: Provides off-chain and on-chain interoperability tools for YTxP pattern implementations
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.YTxP.SDK.ControlParameters

Contents

Description

Deprecated: Use Ply instead.

This module is consider deprecated. Use Ply instead.

Synopsis

Types

data YieldingScripts Source #

Scripts that yield to transaction families identified by reference scripts which carry a state thread token

Constructors

YieldingScripts 

Fields

data ControlParameters Source #

Contains the compiled scripts along with the parameters they were compiled against. This is useful for _library consumers_ and should contain all of the information needed to work with the library.

Constructors

ControlParameters 

Fields

newtype HexStringScript (scriptLabel :: Symbol) Source #

A helper newtype to ensure that any Scripts we use are serialized (and deserialized), consistently. We also have a 'tag' for a more specific type name or label when using a via derivation with this, or as part of a larger type.

See JSON.md for an explanation of our policy. TODO: update json policy

Instances

Instances details
KnownSymbol scriptLabel => FromJSON (HexStringScript scriptLabel) Source # 
Instance details

Defined in Cardano.YTxP.SDK.ControlParameters

Methods

parseJSON :: Value -> Parser (HexStringScript scriptLabel)

parseJSONList :: Value -> Parser [HexStringScript scriptLabel]

omittedField :: Maybe (HexStringScript scriptLabel)

ToJSON (HexStringScript scriptLabel) Source # 
Instance details

Defined in Cardano.YTxP.SDK.ControlParameters

Methods

toJSON :: HexStringScript scriptLabel -> Value

toEncoding :: HexStringScript scriptLabel -> Encoding

toJSONList :: [HexStringScript scriptLabel] -> Value

toEncodingList :: [HexStringScript scriptLabel] -> Encoding

omitField :: HexStringScript scriptLabel -> Bool

KnownSymbol scriptLabel => Show (HexStringScript scriptLabel) Source # 
Instance details

Defined in Cardano.YTxP.SDK.ControlParameters

Methods

showsPrec :: Int -> HexStringScript scriptLabel -> ShowS Source #

show :: HexStringScript scriptLabel -> String Source #

showList :: [HexStringScript scriptLabel] -> ShowS Source #

Eq (HexStringScript scriptLabel) Source # 
Instance details

Defined in Cardano.YTxP.SDK.ControlParameters

Methods

(==) :: HexStringScript scriptLabel -> HexStringScript scriptLabel -> Bool Source #

(/=) :: HexStringScript scriptLabel -> HexStringScript scriptLabel -> Bool Source #

Pretty (HexStringScript scriptLabel) Source # 
Instance details

Defined in Cardano.YTxP.SDK.ControlParameters

Methods

pretty :: HexStringScript scriptLabel -> Doc ann

prettyList :: [HexStringScript scriptLabel] -> Doc ann

sbsToHexText :: ShortByteString -> Text Source #

Converts a ShortByteString into a textual representation in hex.

hexTextToSbs :: MonadFail m => Text -> m ShortByteString Source #

Attempts to parse the given Text into the ShortByteString that would have produced it via sbsToHexText, indicating parse failures with fail.