Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cardano.CLI.Shelley.Commands
Contents
Description
Shelley CLI command types
Synopsis
- data ShelleyCommand
- data AddressCmd
- data StakeAddressCmd
- = StakeAddressKeyGen VerificationKeyFile SigningKeyFile
- | StakeAddressKeyHash (VerificationKeyOrFile StakeKey) (Maybe OutputFile)
- | StakeAddressBuild StakeVerifier NetworkId (Maybe OutputFile)
- | StakeRegistrationCert StakeVerifier OutputFile
- | StakeCredentialDelegationCert StakeVerifier (VerificationKeyOrHashOrFile StakePoolKey) OutputFile
- | StakeCredentialDeRegistrationCert StakeVerifier OutputFile
- data KeyCmd
- = KeyGetVerificationKey SigningKeyFile VerificationKeyFile
- | KeyNonExtendedKey VerificationKeyFile VerificationKeyFile
- | KeyConvertByronKey (Maybe Text) ByronKeyType SomeKeyFile OutputFile
- | KeyConvertByronGenesisVKey VerificationKeyBase64 OutputFile
- | KeyConvertITNStakeKey SomeKeyFile OutputFile
- | KeyConvertITNExtendedToStakeKey SomeKeyFile OutputFile
- | KeyConvertITNBip32ToStakeKey SomeKeyFile OutputFile
- | KeyConvertCardanoAddressSigningKey CardanoAddressKeyType SigningKeyFile OutputFile
- data TransactionCmd
- = TxBuildRaw AnyCardanoEra (Maybe ScriptValidity) [(TxIn, Maybe (ScriptWitnessFiles WitCtxTxIn))] [TxIn] [TxIn] (Maybe TxOutAnyEra) (Maybe Lovelace) [RequiredSigner] [TxOutAnyEra] (Maybe (Value, [ScriptWitnessFiles WitCtxMint])) (Maybe SlotNo) (Maybe SlotNo) (Maybe Lovelace) [(CertificateFile, Maybe (ScriptWitnessFiles WitCtxStake))] [(StakeAddress, Lovelace, Maybe (ScriptWitnessFiles WitCtxStake))] TxMetadataJsonSchema [ScriptFile] [MetadataFile] (Maybe ProtocolParamsSourceSpec) (Maybe UpdateProposalFile) TxBodyFile
- | TxBuild AnyCardanoEra AnyConsensusModeParams NetworkId (Maybe ScriptValidity) (Maybe Word) [(TxIn, Maybe (ScriptWitnessFiles WitCtxTxIn))] [TxIn] [RequiredSigner] [TxIn] (Maybe TxOutAnyEra) (Maybe Lovelace) [TxOutAnyEra] TxOutChangeAddress (Maybe (Value, [ScriptWitnessFiles WitCtxMint])) (Maybe SlotNo) (Maybe SlotNo) [(CertificateFile, Maybe (ScriptWitnessFiles WitCtxStake))] [(StakeAddress, Lovelace, Maybe (ScriptWitnessFiles WitCtxStake))] TxMetadataJsonSchema [ScriptFile] [MetadataFile] (Maybe ProtocolParamsSourceSpec) (Maybe UpdateProposalFile) TxBuildOutputOptions
- | TxSign InputTxBodyOrTxFile [WitnessSigningData] (Maybe NetworkId) TxFile
- | TxCreateWitness TxBodyFile WitnessSigningData (Maybe NetworkId) OutputFile
- | TxAssembleTxBodyWitness TxBodyFile [WitnessFile] OutputFile
- | TxSubmit AnyConsensusModeParams NetworkId FilePath
- | TxMintedPolicyId ScriptFile
- | TxCalculateMinFee TxBodyFile (Maybe NetworkId) ProtocolParamsSourceSpec TxInCount TxOutCount TxShelleyWitnessCount TxByronWitnessCount
- | TxCalculateMinRequiredUTxO AnyCardanoEra ProtocolParamsSourceSpec TxOutAnyEra
- | TxHashScriptData ScriptDataOrFile
- | TxGetTxId InputTxBodyOrTxFile
- | TxView InputTxBodyOrTxFile
- data NodeCmd
- = NodeKeyGenCold VerificationKeyFile SigningKeyFile OpCertCounterFile
- | NodeKeyGenKES VerificationKeyFile SigningKeyFile
- | NodeKeyGenVRF VerificationKeyFile SigningKeyFile
- | NodeKeyHashVRF (VerificationKeyOrFile VrfKey) (Maybe OutputFile)
- | NodeNewCounter ColdVerificationKeyOrFile Word OpCertCounterFile
- | NodeIssueOpCert (VerificationKeyOrFile KesKey) SigningKeyFile OpCertCounterFile KESPeriod OutputFile
- data PoolCmd
- = PoolRegistrationCert (VerificationKeyOrFile StakePoolKey) (VerificationKeyOrFile VrfKey) Lovelace Lovelace Rational (VerificationKeyOrFile StakeKey) [VerificationKeyOrFile StakeKey] [StakePoolRelay] (Maybe StakePoolMetadataReference) NetworkId OutputFile
- | PoolRetirementCert (VerificationKeyOrFile StakePoolKey) EpochNo OutputFile
- | PoolGetId (VerificationKeyOrFile StakePoolKey) OutputFormat
- | PoolMetadataHash PoolMetadataFile (Maybe OutputFile)
- data QueryCmd
- = QueryLeadershipSchedule AnyConsensusModeParams NetworkId GenesisFile (VerificationKeyOrHashOrFile StakePoolKey) SigningKeyFile EpochLeadershipSchedule (Maybe OutputFile)
- | QueryProtocolParameters' AnyConsensusModeParams NetworkId (Maybe OutputFile)
- | QueryTip AnyConsensusModeParams NetworkId (Maybe OutputFile)
- | QueryStakePools' AnyConsensusModeParams NetworkId (Maybe OutputFile)
- | QueryStakeDistribution' AnyConsensusModeParams NetworkId (Maybe OutputFile)
- | QueryStakeAddressInfo AnyConsensusModeParams StakeAddress NetworkId (Maybe OutputFile)
- | QueryUTxO' AnyConsensusModeParams QueryUTxOFilter NetworkId (Maybe OutputFile)
- | QueryDebugLedgerState' AnyConsensusModeParams NetworkId (Maybe OutputFile)
- | QueryProtocolState' AnyConsensusModeParams NetworkId (Maybe OutputFile)
- | QueryStakeSnapshot' AnyConsensusModeParams NetworkId (AllOrOnly [Hash StakePoolKey]) (Maybe OutputFile)
- | QueryKesPeriodInfo AnyConsensusModeParams NetworkId FilePath (Maybe OutputFile)
- | QueryPoolState' AnyConsensusModeParams NetworkId [Hash StakePoolKey]
- | QueryTxMempool AnyConsensusModeParams NetworkId TxMempoolQuery (Maybe OutputFile)
- data GovernanceCmd
- = GovernanceMIRPayStakeAddressesCertificate MIRPot [StakeAddress] [Lovelace] OutputFile
- | GovernanceMIRTransfer Lovelace OutputFile TransferDirection
- | GovernanceGenesisKeyDelegationCertificate (VerificationKeyOrHashOrFile GenesisKey) (VerificationKeyOrHashOrFile GenesisDelegateKey) (VerificationKeyOrHashOrFile VrfKey) OutputFile
- | GovernanceUpdateProposal OutputFile EpochNo [VerificationKeyFile] ProtocolParametersUpdate (Maybe FilePath)
- data GenesisCmd
- = GenesisCreate GenesisDir Word Word (Maybe SystemStart) (Maybe Lovelace) NetworkId
- | GenesisCreateCardano GenesisDir Word Word (Maybe SystemStart) (Maybe Lovelace) BlockCount Word Rational NetworkId FilePath FilePath FilePath FilePath (Maybe FilePath)
- | GenesisCreateStaked GenesisDir Word Word Word Word (Maybe SystemStart) (Maybe Lovelace) Lovelace NetworkId Word Word Word (Maybe FilePath)
- | GenesisKeyGenGenesis VerificationKeyFile SigningKeyFile
- | GenesisKeyGenDelegate VerificationKeyFile SigningKeyFile OpCertCounterFile
- | GenesisKeyGenUTxO VerificationKeyFile SigningKeyFile
- | GenesisCmdKeyHash VerificationKeyFile
- | GenesisVerKey VerificationKeyFile SigningKeyFile
- | GenesisTxIn VerificationKeyFile NetworkId (Maybe OutputFile)
- | GenesisAddr VerificationKeyFile NetworkId (Maybe OutputFile)
- | GenesisHashFile GenesisFile
- data TextViewCmd = TextViewInfo !FilePath (Maybe OutputFile)
- renderShelleyCommand ∷ ShelleyCommand → Text
- data AddressKeyType
- data ByronKeyType
- data ByronKeyFormat
- data CardanoAddressKeyType
- newtype GenesisDir = GenesisDir FilePath
- newtype TxInCount = TxInCount Int
- newtype TxOutCount = TxOutCount Int
- newtype TxShelleyWitnessCount = TxShelleyWitnessCount Int
- newtype TxByronWitnessCount = TxByronWitnessCount Int
- data SomeKeyFile
- newtype OpCertCounterFile = OpCertCounterFile FilePath
- newtype OutputFile = OutputFile {}
- newtype ProtocolParamsFile = ProtocolParamsFile FilePath
- data ProtocolParamsSourceSpec
- newtype WitnessFile = WitnessFile FilePath
- newtype TxFile = TxFile FilePath
- data InputTxBodyOrTxFile
- newtype VerificationKeyBase64 = VerificationKeyBase64 String
- newtype GenesisKeyFile = GenesisKeyFile FilePath
- data MetadataFile
- newtype PoolMetadataFile = PoolMetadataFile {}
- newtype PrivKeyFile = PrivKeyFile FilePath
- newtype BlockId = BlockId String
- data WitnessSigningData = KeyWitnessSigningData !SigningKeyFile !(Maybe (Address ByronAddr))
- data ColdVerificationKeyOrFile
CLI command types
data ShelleyCommand Source #
All the CLI subcommands under "shelley".
data AddressCmd Source #
Constructors
Instances
Show AddressCmd Source # | |
Defined in Cardano.CLI.Shelley.Commands |
data StakeAddressCmd Source #
Constructors
Instances
Show StakeAddressCmd Source # | |
Defined in Cardano.CLI.Shelley.Commands |
Constructors
data TransactionCmd Source #
Constructors
Constructors
Constructors
PoolRegistrationCert | |
Fields
| |
PoolRetirementCert | |
Fields
| |
PoolGetId (VerificationKeyOrFile StakePoolKey) OutputFormat | |
PoolMetadataHash PoolMetadataFile (Maybe OutputFile) |
Constructors
data GovernanceCmd Source #
Constructors
Instances
Show GovernanceCmd Source # | |
Defined in Cardano.CLI.Shelley.Commands |
data GenesisCmd Source #
Constructors
Instances
Show GenesisCmd Source # | |
Defined in Cardano.CLI.Shelley.Commands |
data TextViewCmd Source #
Constructors
TextViewInfo !FilePath (Maybe OutputFile) |
Instances
Show TextViewCmd Source # | |
Defined in Cardano.CLI.Shelley.Commands |
CLI flag types
data AddressKeyType Source #
Instances
Show AddressKeyType Source # | |
Defined in Cardano.CLI.Shelley.Commands |
data ByronKeyType Source #
Constructors
ByronPaymentKey ByronKeyFormat | |
ByronGenesisKey ByronKeyFormat | |
ByronDelegateKey ByronKeyFormat |
Instances
Show ByronKeyType Source # | |
Defined in Cardano.CLI.Shelley.Commands |
data ByronKeyFormat Source #
Constructors
NonLegacyByronKeyFormat | |
LegacyByronKeyFormat |
Instances
Show ByronKeyFormat Source # | |
Defined in Cardano.CLI.Shelley.Commands |
data CardanoAddressKeyType Source #
The type of cardano-address
key.
Constructors
CardanoAddressShelleyPaymentKey | |
CardanoAddressShelleyStakeKey | |
CardanoAddressIcarusPaymentKey | |
CardanoAddressByronPaymentKey |
Instances
Show CardanoAddressKeyType Source # | |
Defined in Cardano.CLI.Shelley.Commands |
newtype GenesisDir Source #
Constructors
GenesisDir FilePath |
Instances
Show GenesisDir Source # | |
Defined in Cardano.CLI.Shelley.Commands |
newtype TxOutCount Source #
Constructors
TxOutCount Int |
Instances
Show TxOutCount Source # | |
Defined in Cardano.CLI.Shelley.Commands |
newtype TxShelleyWitnessCount Source #
Constructors
TxShelleyWitnessCount Int |
Instances
Show TxShelleyWitnessCount Source # | |
Defined in Cardano.CLI.Shelley.Commands |
newtype TxByronWitnessCount Source #
Constructors
TxByronWitnessCount Int |
Instances
Show TxByronWitnessCount Source # | |
Defined in Cardano.CLI.Shelley.Commands |
data SomeKeyFile Source #
Either a verification or signing key, used for conversions and other commands that make sense for both.
Instances
Show SomeKeyFile Source # | |
Defined in Cardano.CLI.Shelley.Commands |
newtype OpCertCounterFile Source #
Constructors
OpCertCounterFile FilePath |
Instances
Show OpCertCounterFile Source # | |
Defined in Cardano.CLI.Shelley.Commands |
newtype OutputFile Source #
Constructors
OutputFile | |
Fields |
Instances
Show OutputFile Source # | |
Defined in Cardano.CLI.Shelley.Commands |
newtype ProtocolParamsFile Source #
Constructors
ProtocolParamsFile FilePath |
Instances
Show ProtocolParamsFile Source # | |
Defined in Cardano.CLI.Shelley.Commands | |
Eq ProtocolParamsFile Source # | |
Defined in Cardano.CLI.Shelley.Commands Methods (==) ∷ ProtocolParamsFile → ProtocolParamsFile → Bool Source # (/=) ∷ ProtocolParamsFile → ProtocolParamsFile → Bool Source # |
data ProtocolParamsSourceSpec Source #
Constructors
ParamsFromGenesis !GenesisFile | We allow an appropriately forewarned user to obtain protocol params directly from the genesis file, which allows them to avoid running the node in case they would like to estimate the fee using the blockchain's initial protocol parameters. |
ParamsFromFile !ProtocolParamsFile | Obtain protocol parameters from a file structured by the
'cardano-api' |
Instances
newtype WitnessFile Source #
Constructors
WitnessFile FilePath |
Instances
Show WitnessFile Source # | |
Defined in Cardano.CLI.Shelley.Commands |
data InputTxBodyOrTxFile Source #
Constructors
InputTxBodyFile TxBodyFile | |
InputTxFile TxFile |
Instances
Show InputTxBodyOrTxFile Source # | |
Defined in Cardano.CLI.Shelley.Commands |
newtype VerificationKeyBase64 Source #
A raw verification key given in Base64, and decoded into a ByteString.
Constructors
VerificationKeyBase64 String |
Instances
Show VerificationKeyBase64 Source # | |
Defined in Cardano.CLI.Shelley.Commands |
newtype GenesisKeyFile Source #
Constructors
GenesisKeyFile FilePath |
Instances
Show GenesisKeyFile Source # | |
Defined in Cardano.CLI.Shelley.Commands |
data MetadataFile Source #
Constructors
MetadataFileJSON FilePath | |
MetadataFileCBOR FilePath |
Instances
Show MetadataFile Source # | |
Defined in Cardano.CLI.Shelley.Commands |
newtype PoolMetadataFile Source #
Constructors
PoolMetadataFile | |
Fields |
Instances
Show PoolMetadataFile Source # | |
Defined in Cardano.CLI.Shelley.Commands |
newtype PrivKeyFile Source #
Constructors
PrivKeyFile FilePath |
Instances
Show PrivKeyFile Source # | |
Defined in Cardano.CLI.Shelley.Commands |
data WitnessSigningData Source #
Data required to construct a witness.
Constructors
KeyWitnessSigningData | |
Fields
|
Instances
Show WitnessSigningData Source # | |
Defined in Cardano.CLI.Shelley.Commands |
data ColdVerificationKeyOrFile Source #
Either a stake pool verification key, genesis delegate verification key, or a path to a cold verification key file.
Note that a "cold verification key" refers to either a stake pool or genesis delegate verification key.
TODO: A genesis delegate extended key should also be valid here.
Constructors
ColdStakePoolVerificationKey !(VerificationKey StakePoolKey) | |
ColdGenesisDelegateVerificationKey !(VerificationKey GenesisDelegateKey) | |
ColdVerificationKeyFile !VerificationKeyFile |