Safe Haskell | None |
---|---|
Language | Haskell2010 |
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".
Instances
Show SophieCommand Source # | |
Defined in Bcc.CLI.Sophie.Commands |
data AddressCmd Source #
Instances
Show AddressCmd Source # | |
Defined in Bcc.CLI.Sophie.Commands |
data StakeAddressCmd Source #
Instances
Show StakeAddressCmd Source # | |
Defined in Bcc.CLI.Sophie.Commands |
data TransactionCmd Source #
Instances
Show TransactionCmd Source # | |
Defined in Bcc.CLI.Sophie.Commands |
PoolRegistrationCert | |
| |
PoolRetirementCert | |
| |
PoolGetId (VerificationKeyOrFile StakePoolKey) OutputFormat | |
PoolMetadataHash PoolMetadataFile (Maybe OutputFile) |
data GovernanceCmd Source #
Instances
Show GovernanceCmd Source # | |
Defined in Bcc.CLI.Sophie.Commands |
data GenesisCmd Source #
Instances
Show GenesisCmd Source # | |
Defined in Bcc.CLI.Sophie.Commands |
data TextViewCmd Source #
Instances
Show TextViewCmd Source # | |
Defined in Bcc.CLI.Sophie.Commands |
CLI flag types
data AddressKeyType Source #
Instances
Show AddressKeyType Source # | |
Defined in Bcc.CLI.Sophie.Commands |
data ColeKeyType Source #
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 #
Instances
Show ColeKeyFormat Source # | |
Defined in Bcc.CLI.Sophie.Commands |
data BccAddressKeyType Source #
The type of bcc-address
key.
BccAddressSophiePaymentKey | |
BccAddressSophieStakeKey | |
BccAddressIcarusPaymentKey | |
BccAddressColePaymentKey |
Instances
Show BccAddressKeyType Source # | |
Defined in Bcc.CLI.Sophie.Commands |
newtype GenesisDir Source #
Instances
Show GenesisDir Source # | |
Defined in Bcc.CLI.Sophie.Commands |
newtype TxOutCount Source #
Instances
Show TxOutCount Source # | |
Defined in Bcc.CLI.Sophie.Commands |
newtype TxSophieWitnessCount Source #
Instances
Show TxSophieWitnessCount Source # | |
Defined in Bcc.CLI.Sophie.Commands |
newtype TxColeWitnessCount Source #
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 #
Instances
Show OpCertCounterFile Source # | |
Defined in Bcc.CLI.Sophie.Commands |
newtype OutputFile Source #
Instances
Show OutputFile Source # | |
Defined in Bcc.CLI.Sophie.Commands |
newtype ProtocolParamsFile Source #
Instances
Eq ProtocolParamsFile Source # | |
Defined in Bcc.CLI.Sophie.Commands | |
Show ProtocolParamsFile Source # | |
Defined in Bcc.CLI.Sophie.Commands |
data ProtocolParamsSourceSpec Source #
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
newtype WitnessFile Source #
Instances
Show WitnessFile Source # | |
Defined in Bcc.CLI.Sophie.Commands |
newtype TxBodyFile Source #
Instances
Show TxBodyFile Source # | |
Defined in Bcc.CLI.Sophie.Commands |
data InputTxFile Source #
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.
Instances
Show VerificationKeyBase64 Source # | |
Defined in Bcc.CLI.Sophie.Commands |
newtype GenesisKeyFile Source #
Instances
Show GenesisKeyFile Source # | |
Defined in Bcc.CLI.Sophie.Commands |
newtype VestedKeyFile Source #
Instances
Show VestedKeyFile Source # | |
Defined in Bcc.CLI.Sophie.Commands |
data MetadataFile Source #
Instances
Show MetadataFile Source # | |
Defined in Bcc.CLI.Sophie.Commands |
newtype PoolMetadataFile Source #
Instances
Show PoolMetadataFile Source # | |
Defined in Bcc.CLI.Sophie.Commands |
newtype PrivKeyFile Source #
Instances
Show PrivKeyFile Source # | |
Defined in Bcc.CLI.Sophie.Commands |
data WitnessSigningData Source #
Data required to construct a witness.
KeyWitnessSigningData | |
|
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.