Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- cliAddressKeyGen :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => TmpDir -> KeyNames -> m (KeyGen PaymentKey)
- cliNodeKeyGen :: TmpDir -> FilePath -> FilePath -> FilePath -> Integration (File (VKey StakePoolKey), File (SKey StakePoolKey), File OperatorCounter)
- cliNodeKeyGenVrf :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => TmpDir -> KeyNames -> m (KeyGen VrfKey)
- cliNodeKeyGenKes :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => TmpDir -> KeyNames -> m (KeyGen KesKey)
- cliStakeAddressKeyGen :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => TmpDir -> KeyNames -> m (KeyGen StakeKey)
- execCliStdoutToJson :: (FromJSON a, MonadTest m, MonadCatch m, MonadIO m) => ExecConfig -> [String] -> m a
- pNetworkId :: Parser Int
- type KeyGen a = (File (VKey a), File (SKey a))
- data KeyNames = KeyNames {}
- newtype File a = File {}
- data VKey a
- data SKey a
- data OperatorCounter
- data ByronDelegationKey
- data ByronDelegationCert
- getVKeyPath :: (File (VKey a), File (SKey a)) -> FilePath
- getSKeyPath :: (File (VKey a), File (SKey a)) -> FilePath
- cliKeyGen :: TmpDir -> FilePath -> Integration (File ByronKeyLegacy)
- cliByronSigningKeyAddress :: TmpDir -> Int -> File ByronKeyLegacy -> FilePath -> Integration (File ByronAddr)
Documentation
cliAddressKeyGen :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => TmpDir -> KeyNames -> m (KeyGen PaymentKey) Source #
cliNodeKeyGen :: TmpDir -> FilePath -> FilePath -> FilePath -> Integration (File (VKey StakePoolKey), File (SKey StakePoolKey), File OperatorCounter) Source #
cliNodeKeyGenVrf :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => TmpDir -> KeyNames -> m (KeyGen VrfKey) Source #
cliNodeKeyGenKes :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => TmpDir -> KeyNames -> m (KeyGen KesKey) Source #
cliStakeAddressKeyGen :: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack) => TmpDir -> KeyNames -> m (KeyGen StakeKey) Source #
:: (FromJSON a, MonadTest m, MonadCatch m, MonadIO m) | |
=> ExecConfig | The configuration with which to call the CLI |
-> [String] | The CLI command to execute |
-> m a |
Call a command of the CLI that returns JSON to stdout. Then parse it, and deserialize it to a Haskell value. Fail the test if a step fails. If your CLI command doesn't support returning JSON to stdout, and needs going through a file instead, probably you should add a similar function to this one.
pNetworkId :: Parser Int Source #
data OperatorCounter Source #
The OperatorCounter
data ByronDelegationKey Source #
Tag a File
that holds a ByronDelegationKey
.
data ByronDelegationCert Source #
Tag a File
that holds a ByronDelegationKey
.
cliKeyGen :: TmpDir -> FilePath -> Integration (File ByronKeyLegacy) Source #
cliByronSigningKeyAddress :: TmpDir -> Int -> File ByronKeyLegacy -> FilePath -> Integration (File ByronAddr) Source #