cardano-cli
Safe HaskellNone
LanguageHaskell2010

Cardano.CLI.EraBased.Options.Common

Synopsis

Documentation

prefixFlag :: Maybe String -> String -> String Source #

prefixFlag Nothing bar is bar, while prefixFlag (Just "foo") bar is foo-bar. This function is used to optionally prefix some long flags

pStakeVerificationKey :: Maybe String -> Parser (VerificationKey StakeKey) Source #

The first argument is the optional prefix.

readVerificationKey :: SerialiseAsBech32 (VerificationKey keyrole) => AsType keyrole -> ReadM (VerificationKey keyrole) Source #

Read a Bech32 or hex-encoded verification key.

pStakeVerificationKeyFile :: Maybe String -> Parser (VerificationKeyFile 'In) Source #

The first argument is the optional prefix.

pStakePoolVerificationKey :: Maybe String -> Parser (VerificationKey StakePoolKey) Source #

The first argument is the optional prefix.

pStakePoolVerificationKeyFile :: Maybe String -> Parser (VerificationKeyFile 'In) Source #

The first argument is the optional prefix.

rHexHash Source #

Arguments

:: SerialiseAsRawBytes (Hash a) 
=> AsType a 
-> Maybe String

Optional prefix to the error message

-> ReadM (Hash a) 

rVerificationKey Source #

Arguments

:: SerialiseAsRawBytes (VerificationKey a) 
=> AsType a

Singleton value identifying the kind of verification keys

-> Maybe String

Optional prefix to the error message

-> ReadM (VerificationKey a) 

Reader for verification keys

pColdVerificationKeyOrFile :: Maybe String -> Parser ColdVerificationKeyOrFile Source #

The first argument is the optional prefix.

pColdSigningKeyFile :: forall keyrole (direction :: FileDirection). Parser (File (SigningKey keyrole) direction) Source #

pScriptHash Source #

Arguments

:: String

long option name

-> String

help text

-> Parser ScriptHash 

pCommitteeHotKeyHash :: Maybe String -> Parser (Hash CommitteeHotKey) Source #

The first argument is the optional prefix.

pStakeVerificationKeyHash :: Maybe String -> Parser (Hash StakeKey) Source #

First argument is the optional prefix

pScriptWitnessFiles Source #

Arguments

:: forall witctx era. ShelleyBasedEra era 
-> WitCtx witctx 
-> BalanceTxExecUnits

Use the execution-units flag.

-> String

Script flag prefix

-> Maybe String 
-> String 
-> Parser (ScriptWitnessFiles witctx) 

pScriptDataOrFile Source #

Arguments

:: String

data flag prefix

-> String

value help text

-> String

file help text

-> Parser ScriptDataOrFile 

pOperationalCertificateFile :: forall (direction :: FileDirection). Parser (File () direction) Source #

pOutputFormatJsonOrText :: String -> Parser OutputFormatJsonOrText Source #

pOutputFormatJsonOrText kind is a parser to specify in which format to view some data (json or text). kind is the kind of data considered.

pViewOutputFormat :: String -> Parser ViewOutputFormat Source #

pViewOutputFormat kind is a parser to specify in which format to view some data (json or yaml). what is the kind of data considered.

pStakePoolVerificationKeyHash :: Maybe String -> Parser (Hash StakePoolKey) Source #

First argument is the prefix for the option's flag to use

pairIntegralReader :: (Typeable a, Integral a, Bits a) => ReadM (a, a) Source #

A parser for (Int, Int)-like expressions. In other words, integralReader-lifted to a pairs with a Haskell-like syntax.

integralReader :: (Typeable a, Integral a, Bits a) => ReadM a Source #

integralReader is a reader for a word of type a. When it fails parsing, it provides a nice error message. This custom reader is needed to avoid the overflow issues of auto described in https://github.com/IntersectMBO/cardano-cli/issues/860.

pFeatured :: forall (eon :: Type -> Type) f era a. (Eon eon, ToCardanoEra f) => f era -> Parser a -> Parser (Maybe (Featured eon era a)) Source #