| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Bcc.CLI.Sophie.Commands
Contents
Description
Sophie CLI command types
Synopsis
- data SophieCommand
 - data AddressCmd
- = AddressKeyGen AddressKeyType VerificationKeyFile SigningKeyFile
 - | AddressKeyHash VerificationKeyTextOrFile (Maybe OutputFile)
 - | AddressBuild PaymentVerifier (Maybe StakeVerifier) NetworkId (Maybe OutputFile)
 - | AddressBuildMultiSig ScriptFile NetworkId (Maybe OutputFile)
 - | AddressInfo Text (Maybe OutputFile)
 
 - data StakeAddressCmd
- = StakeAddressKeyGen VerificationKeyFile SigningKeyFile
 - | StakeAddressKeyHash (VerificationKeyOrFile StakeKey) (Maybe OutputFile)
 - | StakeAddressBuild (VerificationKeyOrFile StakeKey) NetworkId (Maybe OutputFile)
 - | StakeRegistrationCert StakeVerifier OutputFile
 - | StakeCredentialDelegationCert StakeVerifier (VerificationKeyOrHashOrFile StakePoolKey) OutputFile
 - | StakeCredentialDeRegistrationCert StakeVerifier OutputFile
 
 - data KeyCmd
- = KeyGetVerificationKey SigningKeyFile VerificationKeyFile
 - | KeyNonExtendedKey VerificationKeyFile VerificationKeyFile
 - | KeyConvertColeKey (Maybe Text) ColeKeyType SomeKeyFile OutputFile
 - | KeyConvertColeGenesisVKey VerificationKeyBase64 OutputFile
 - | KeyConvertColeVestedVKey VerificationKeyBase64 OutputFile
 - | KeyConvertITNStakeKey SomeKeyFile OutputFile
 - | KeyConvertITNExtendedToStakeKey SomeKeyFile OutputFile
 - | KeyConvertITNBip32ToStakeKey SomeKeyFile OutputFile
 - | KeyConvertBccAddressSigningKey BccAddressKeyType SigningKeyFile OutputFile
 
 - data TransactionCmd
- = TxBuildRaw AnyBccEra (Maybe ScriptValidity) [(TxIn, Maybe (ScriptWitnessFiles WitCtxTxIn))] [TxIn] [WitnessSigningData] [TxOutAnyEra] (Maybe (Value, [ScriptWitnessFiles WitCtxMint])) (Maybe SlotNo) (Maybe SlotNo) (Maybe Entropic) [(CertificateFile, Maybe (ScriptWitnessFiles WitCtxStake))] [(StakeAddress, Entropic, Maybe (ScriptWitnessFiles WitCtxStake))] TxMetadataJsonSchema [ScriptFile] [MetadataFile] (Maybe ProtocolParamsSourceSpec) (Maybe UpdateProposalFile) TxBodyFile
 - | TxBuild AnyBccEra AnyConsensusModeParams NetworkId (Maybe ScriptValidity) (Maybe Word) [(TxIn, Maybe (ScriptWitnessFiles WitCtxTxIn))] [WitnessSigningData] [TxIn] [TxOutAnyEra] TxOutChangeAddress (Maybe (Value, [ScriptWitnessFiles WitCtxMint])) (Maybe SlotNo) (Maybe SlotNo) [(CertificateFile, Maybe (ScriptWitnessFiles WitCtxStake))] [(StakeAddress, Entropic, Maybe (ScriptWitnessFiles WitCtxStake))] TxMetadataJsonSchema [ScriptFile] [MetadataFile] (Maybe ProtocolParamsSourceSpec) (Maybe UpdateProposalFile) TxBodyFile
 - | TxSign TxBodyFile [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 TxSophieWitnessCount TxColeWitnessCount
 - | TxCalculateMinRequiredUTxO AnyBccEra ProtocolParamsSourceSpec TxOutAnyEra
 - | TxHashScriptData ScriptDataOrFile
 - | TxGetTxId InputTxFile
 - | TxView InputTxFile
 
 - 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) Entropic Entropic 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
- = 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 (Hash StakePoolKey)
 - | QueryPoolParams' AnyConsensusModeParams NetworkId (Hash StakePoolKey)
 
 - data GovernanceCmd
- = GovernanceMIRPayStakeAddressesCertificate MIRPot [StakeAddress] [Entropic] OutputFile
 - | GovernanceMIRTransfer Entropic OutputFile TransferDirection
 - | GovernanceGenesisKeyDelegationCertificate (VerificationKeyOrHashOrFile GenesisKey) (VerificationKeyOrHashOrFile GenesisDelegateKey) (VerificationKeyOrHashOrFile VrfKey) OutputFile
 - | GovernanceVestedKeyDelegationCertificate (VerificationKeyOrHashOrFile VestedKey) (VerificationKeyOrHashOrFile VestedDelegateKey) (VerificationKeyOrHashOrFile VrfKey) OutputFile
 - | GovernanceUpdateProposal OutputFile EpochNo [VerificationKeyFile] ProtocolParametersUpdate
 
 - data GenesisCmd
- = GenesisCreate GenesisDir Word Word Word (Maybe SystemStart) (Maybe Entropic) NetworkId
 - | GenesisCreateStaked GenesisDir Word Word Word Word Word (Maybe SystemStart) (Maybe Entropic) Entropic NetworkId Word Word Word
 - | GenesisKeyGenGenesis VerificationKeyFile SigningKeyFile
 - | GenesisKeyGenDelegate VerificationKeyFile SigningKeyFile OpCertCounterFile
 - | GenesisKeyGenVested VerificationKeyFile SigningKeyFile
 - | GenesisKeyGenVestedDelegate 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)
 - renderSophieCommand ∷ SophieCommand → Text
 - data AddressKeyType
 - data ColeKeyType
 - data ColeKeyFormat
 - data BccAddressKeyType
 - newtype GenesisDir = GenesisDir FilePath
 - newtype VestedDir = VestedDir FilePath
 - newtype TxInCount = TxInCount Int
 - newtype TxOutCount = TxOutCount Int
 - newtype TxSophieWitnessCount = TxSophieWitnessCount Int
 - newtype TxColeWitnessCount = TxColeWitnessCount Int
 - data SomeKeyFile
 - newtype OpCertCounterFile = OpCertCounterFile FilePath
 - newtype OutputFile = OutputFile FilePath
 - newtype ProtocolParamsFile = ProtocolParamsFile FilePath
 - data ProtocolParamsSourceSpec
 - newtype WitnessFile = WitnessFile FilePath
 - newtype TxBodyFile = TxBodyFile FilePath
 - newtype TxFile = TxFile FilePath
 - data InputTxFile
 - newtype VerificationKeyBase64 = VerificationKeyBase64 String
 - newtype GenesisKeyFile = GenesisKeyFile FilePath
 - newtype VestedKeyFile = VestedKeyFile FilePath
 - data MetadataFile
 - newtype PoolId = PoolId String
 - newtype PoolMetadataFile = PoolMetadataFile {}
 - newtype PrivKeyFile = PrivKeyFile FilePath
 - newtype BlockId = BlockId String
 - data WitnessSigningData = KeyWitnessSigningData !SigningKeyFile !(Maybe (Address ColeAddr))
 - data ColdVerificationKeyOrFile
- = ColdStakePoolVerificationKey !(VerificationKey StakePoolKey)
 - | ColdGenesisDelegateVerificationKey !(VerificationKey GenesisDelegateKey)
 - | ColdGenesisVestedDelegateVerificationKey !(VerificationKey GenesisVestedDelegateKey)
 - | ColdVestedDelegateVerificationKey !(VerificationKey VestedDelegateKey)
 - | ColdVerificationKeyFile !VerificationKeyFile
 
 
CLI command types
data SophieCommand Source #
All the CLI subcommands under "sophie".
Constructors
Instances
| Show SophieCommand Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
data AddressCmd Source #
Constructors
Instances
| Show AddressCmd Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
data StakeAddressCmd Source #
Constructors
Instances
| Show StakeAddressCmd Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
Constructors
data TransactionCmd Source #
Constructors
Instances
| Show TransactionCmd Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
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 Bcc.CLI.Sophie.Commands  | |
data GenesisCmd Source #
Constructors
Instances
| Show GenesisCmd Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
data TextViewCmd Source #
Constructors
| TextViewInfo !FilePath (Maybe OutputFile) | 
Instances
| Show TextViewCmd Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
CLI flag types
data AddressKeyType Source #
Constructors
| AddressKeySophie | |
| AddressKeySophieExtended | |
| AddressKeyCole | 
Instances
| Show AddressKeyType Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
data ColeKeyType Source #
Constructors
| ColePaymentKey ColeKeyFormat | |
| ColeGenesisKey ColeKeyFormat | |
| ColeGenesisVestedKey ColeKeyFormat | |
| ColeVestedKey ColeKeyFormat | |
| ColeDelegateKey ColeKeyFormat | |
| ColeVestedDelegateKey ColeKeyFormat | 
Instances
| Show ColeKeyType Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
data ColeKeyFormat Source #
Constructors
| NonLegacyColeKeyFormat | |
| LegacyColeKeyFormat | 
Instances
| Show ColeKeyFormat Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
data BccAddressKeyType Source #
The type of bcc-address key.
Constructors
| BccAddressSophiePaymentKey | |
| BccAddressSophieStakeKey | |
| BccAddressIcarusPaymentKey | |
| BccAddressColePaymentKey | 
Instances
| Show BccAddressKeyType Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
newtype GenesisDir Source #
Constructors
| GenesisDir FilePath | 
Instances
| Show GenesisDir Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
newtype TxOutCount Source #
Constructors
| TxOutCount Int | 
Instances
| Show TxOutCount Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
newtype TxSophieWitnessCount Source #
Constructors
| TxSophieWitnessCount Int | 
Instances
| Show TxSophieWitnessCount Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
newtype TxColeWitnessCount Source #
Constructors
| TxColeWitnessCount Int | 
Instances
| Show TxColeWitnessCount Source # | |
Defined in Bcc.CLI.Sophie.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 Bcc.CLI.Sophie.Commands  | |
newtype OpCertCounterFile Source #
Constructors
| OpCertCounterFile FilePath | 
Instances
| Show OpCertCounterFile Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
newtype OutputFile Source #
Constructors
| OutputFile FilePath | 
Instances
| Show OutputFile Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
newtype ProtocolParamsFile Source #
Constructors
| ProtocolParamsFile FilePath | 
Instances
| Eq ProtocolParamsFile Source # | |
Defined in Bcc.CLI.Sophie.Commands Methods (==) ∷ ProtocolParamsFile → ProtocolParamsFile → Bool Source # (/=) ∷ ProtocolParamsFile → ProtocolParamsFile → Bool Source #  | |
| Show ProtocolParamsFile Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
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
   'bcc-api'   | 
Instances
| Show ProtocolParamsSourceSpec Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
newtype WitnessFile Source #
Constructors
| WitnessFile FilePath | 
Instances
| Show WitnessFile Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
newtype TxBodyFile Source #
Constructors
| TxBodyFile FilePath | 
Instances
| Show TxBodyFile Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
data InputTxFile Source #
Constructors
| InputTxBodyFile TxBodyFile | |
| InputTxFile TxFile | 
Instances
| Show InputTxFile Source # | |
Defined in Bcc.CLI.Sophie.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 Bcc.CLI.Sophie.Commands  | |
newtype GenesisKeyFile Source #
Constructors
| GenesisKeyFile FilePath | 
Instances
| Show GenesisKeyFile Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
newtype VestedKeyFile Source #
Constructors
| VestedKeyFile FilePath | 
Instances
| Show VestedKeyFile Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
data MetadataFile Source #
Constructors
| MetadataFileJSON FilePath | |
| MetadataFileCBOR FilePath | 
Instances
| Show MetadataFile Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
newtype PoolMetadataFile Source #
Constructors
| PoolMetadataFile | |
Fields  | |
Instances
| Show PoolMetadataFile Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
newtype PrivKeyFile Source #
Constructors
| PrivKeyFile FilePath | 
Instances
| Show PrivKeyFile Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |
data WitnessSigningData Source #
Data required to construct a witness.
Constructors
| KeyWitnessSigningData | |
Fields 
  | |
Instances
| Show WitnessSigningData Source # | |
Defined in Bcc.CLI.Sophie.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
Instances
| Show ColdVerificationKeyOrFile Source # | |
Defined in Bcc.CLI.Sophie.Commands  | |