Safe Haskell | None |
---|---|
Language | Haskell2010 |
Bcc.Api
Contents
- Eras
- Type tags
- Cryptographic key interface
- Payment addresses
- Stake addresses
- Currency values
- Blocks
- Building transactions
- Building transactions
- Transaction bodies
- Transaction Ids
- Transaction inputs
- Transaction outputs
- Other transaction body types
- Building vs viewing transactions
- Era-dependent transaction body features
- Feature availability functions
- Fee calculation
- Minimum required UTxO calculation
- Script execution units
- Transaction balance
- Building transactions with automated fees and balancing
- Signing transactions
- Transaction metadata
- Certificates
- Stake pool off-chain metadata
- Scripts
- Script languages
- Scripts in a specific language
- Scripts in any language
- Scripts in a specific era
- Use of a script in an era as a witness
- Inspecting
ScriptWitness
es - Languages supported in each era
- Simple scripts
- Zerepoch scripts
- Script data
- Validation
- Conversion to/from JSON
- Script execution units
- Script addresses
- Serialisation
- Errors
- Node interaction
- Node operation
- Genesis file
- Special transactions
- Protocol parameter updates
Description
This module provides a library interface for interacting with Bcc as a user of the system.
It is intended to be the complete API covering everything but without exposing constructors that reveal any lower level types.
In the interest of simplicity it glosses over some details of the system. Most simple tools should be able to work just using this interface, however you can go deeper and expose the types from the underlying libraries using Bcc.Api.Cole or Bcc.Api.Sophie.
Synopsis
- data ColeEra
- data SophieEra
- data EvieEra
- data JenEra
- data AurumEra
- data BccEra era where
- class HasTypeProxy era ⇒ IsBccEra era where
- data AnyBccEra where
- anyBccEra ∷ BccEra era → AnyBccEra
- data InAnyBccEra thing where
- InAnyBccEra ∷ IsBccEra era ⇒ BccEra era → thing era → InAnyBccEra thing
- data SophieBasedEra era where
- class IsBccEra era ⇒ IsSophieBasedEra era where
- sophieBasedEra ∷ SophieBasedEra era
- data InAnySophieBasedEra thing where
- InAnySophieBasedEra ∷ IsSophieBasedEra era ⇒ SophieBasedEra era → thing era → InAnySophieBasedEra thing
- data BccEraStyle era where
- LegacyColeEra ∷ BccEraStyle ColeEra
- SophieBasedEra ∷ IsSophieBasedEra era ⇒ SophieBasedEra era → BccEraStyle era
- bccEraStyle ∷ BccEra era → BccEraStyle era
- sophieBasedToBccEra ∷ SophieBasedEra era → BccEra era
- type Cole = ColeEra
- type Sophie = SophieEra
- type Evie = EvieEra
- type Jen = JenEra
- class HasTypeProxy t where
- data AsType t
- proxyToAsType ∷ Proxy t → AsType t
- class (Eq (VerificationKey keyrole), Show (VerificationKey keyrole), SerialiseAsRawBytes (Hash keyrole), HasTextEnvelope (VerificationKey keyrole), HasTextEnvelope (SigningKey keyrole)) ⇒ Key keyrole
- data family VerificationKey keyrole ∷ Type
- getVerificationKey ∷ Key keyrole ⇒ SigningKey keyrole → VerificationKey keyrole
- verificationKeyHash ∷ Key keyrole ⇒ VerificationKey keyrole → Hash keyrole
- castVerificationKey ∷ CastVerificationKeyRole keyroleA keyroleB ⇒ VerificationKey keyroleA → VerificationKey keyroleB
- castSigningKey ∷ CastSigningKeyRole keyroleA keyroleB ⇒ SigningKey keyroleA → SigningKey keyroleB
- generateSigningKey ∷ Key keyrole ⇒ AsType keyrole → IO (SigningKey keyrole)
- deterministicSigningKey ∷ Key keyrole ⇒ AsType keyrole → Seed → SigningKey keyrole
- deterministicSigningKeySeedSize ∷ Key keyrole ⇒ AsType keyrole → Word
- data family Hash keyrole ∷ Type
- castHash ∷ CastHash roleA roleB ⇒ Hash roleA → Hash roleB
- data Address addrtype
- data ColeAddr
- data SophieAddr
- data NetworkId
- makeColeAddress ∷ NetworkId → VerificationKey ColeKey → Address ColeAddr
- data ColeKey
- data ColeKeyLegacy
- makeSophieAddress ∷ NetworkId → PaymentCredential → StakeAddressReference → Address SophieAddr
- data PaymentCredential
- newtype StakeAddressPointer = StakeAddressPointer {
- unStakeAddressPointer ∷ Ptr
- data StakeAddressReference
- data PaymentKey
- data PaymentExtendedKey
- data AddressAny
- = AddressCole !(Address ColeAddr)
- | AddressSophie !(Address SophieAddr)
- data AddressInEra era where
- AddressInEra ∷ AddressTypeInEra addrtype era → Address addrtype → AddressInEra era
- isKeyAddress ∷ AddressInEra era → Bool
- data AddressTypeInEra addrtype era where
- coleAddressInEra ∷ Address ColeAddr → AddressInEra era
- sophieAddressInEra ∷ IsSophieBasedEra era ⇒ Address SophieAddr → AddressInEra era
- anyAddressInSophieBasedEra ∷ IsSophieBasedEra era ⇒ AddressAny → AddressInEra era
- anyAddressInEra ∷ BccEra era → AddressAny → Maybe (AddressInEra era)
- toAddressAny ∷ Address addr → AddressAny
- makeColeAddressInEra ∷ NetworkId → VerificationKey ColeKey → AddressInEra era
- makeSophieAddressInEra ∷ IsSophieBasedEra era ⇒ NetworkId → PaymentCredential → StakeAddressReference → AddressInEra era
- data StakeAddress
- data StakeCredential
- makeStakeAddress ∷ NetworkId → StakeCredential → StakeAddress
- data StakeKey
- data StakeExtendedKey
- data Entropic
- newtype Quantity = Quantity Integer
- newtype PolicyId = PolicyId ScriptHash
- scriptPolicyId ∷ Script lang → PolicyId
- newtype AssetName = AssetName ByteString
- data AssetId
- data Value
- selectAsset ∷ Value → AssetId → Quantity
- valueFromList ∷ [(AssetId, Quantity)] → Value
- valueToList ∷ Value → [(AssetId, Quantity)]
- filterValue ∷ (AssetId → Bool) → Value → Value
- negateValue ∷ Value → Value
- newtype ValueNestedRep = ValueNestedRep [ValueNestedBundle]
- data ValueNestedBundle
- valueToNestedRep ∷ Value → ValueNestedRep
- valueFromNestedRep ∷ ValueNestedRep → Value
- renderValue ∷ Value → Text
- renderValuePretty ∷ Value → Text
- quantityToEntropic ∷ Quantity → Entropic
- entropicToQuantity ∷ Entropic → Quantity
- selectEntropic ∷ Value → Entropic
- entropicToValue ∷ Entropic → Value
- valueToEntropic ∷ Value → Maybe Entropic
- data Block era where
- pattern Block ∷ BlockHeader → [Tx era] → Block era
- data BlockHeader = BlockHeader !SlotNo !(Hash BlockHeader) !BlockNo
- data ChainPoint
- newtype EpochNo = EpochNo {}
- data ChainTip
- newtype BlockNo = BlockNo {}
- chainTipToChainPoint ∷ ChainTip → ChainPoint
- data TxBody era where
- pattern TxBody ∷ TxBodyContent ViewTx era → TxBody era
- makeTransactionBody ∷ ∀ era. IsBccEra era ⇒ TxBodyContent BuildTx era → Either TxBodyError (TxBody era)
- data TxBodyContent build era = TxBodyContent {
- txIns ∷ TxIns build era
- txInsCollateral ∷ TxInsCollateral era
- txOuts ∷ [TxOut era]
- txFee ∷ TxFee era
- txValidityRange ∷ (TxValidityLowerBound era, TxValidityUpperBound era)
- txMetadata ∷ TxMetadataInEra era
- txAuxScripts ∷ TxAuxScripts era
- txExtraScriptData ∷ BuildTxWith build (TxExtraScriptData era)
- txExtraKeyWits ∷ TxExtraKeyWitnesses era
- txProtocolParams ∷ BuildTxWith build (Maybe ProtocolParameters)
- txWithdrawals ∷ TxWithdrawals build era
- txCertificates ∷ TxCertificates build era
- txUpdateProposal ∷ TxUpdateProposal era
- txMintValue ∷ TxMintValue build era
- txScriptValidity ∷ TxScriptValidity era
- data TxBodyError
- data TxBodyScriptData era where
- TxBodyNoScriptData ∷ TxBodyScriptData era
- TxBodyScriptData ∷ ScriptDataSupportedInEra era → TxDats (SophieLedgerEra era) → Redeemers (SophieLedgerEra era) → TxBodyScriptData era
- newtype TxId = TxId (Hash StandardCrypto EraIndependentTxBody)
- getTxId ∷ ∀ era. TxBody era → TxId
- data TxIn = TxIn TxId TxIx
- newtype TxIx = TxIx Word
- data TxOut era = TxOut (AddressInEra era) (TxOutValue era) (TxOutDatumHash era)
- data TxOutValue era where
- TxOutBccOnly ∷ OnlyBccSupportedInEra era → Entropic → TxOutValue era
- TxOutValue ∷ MultiAssetSupportedInEra era → Value → TxOutValue era
- serialiseAddressForTxOut ∷ AddressInEra era → Text
- data TxOutDatumHash era where
- TxOutDatumHashNone ∷ TxOutDatumHash era
- TxOutDatumHash ∷ ScriptDataSupportedInEra era → Hash ScriptData → TxOutDatumHash era
- data TxInsCollateral era where
- TxInsCollateralNone ∷ TxInsCollateral era
- TxInsCollateral ∷ CollateralSupportedInEra era → [TxIn] → TxInsCollateral era
- data TxFee era where
- TxFeeImplicit ∷ TxFeesImplicitInEra era → TxFee era
- TxFeeExplicit ∷ TxFeesExplicitInEra era → Entropic → TxFee era
- data TxValidityLowerBound era where
- data TxValidityUpperBound era where
- newtype SlotNo = SlotNo {}
- newtype EpochSlots = EpochSlots {}
- data TxMetadataInEra era where
- TxMetadataNone ∷ TxMetadataInEra era
- TxMetadataInEra ∷ TxMetadataSupportedInEra era → TxMetadata → TxMetadataInEra era
- data TxAuxScripts era where
- TxAuxScriptsNone ∷ TxAuxScripts era
- TxAuxScripts ∷ AuxScriptsSupportedInEra era → [ScriptInEra era] → TxAuxScripts era
- data TxExtraScriptData era where
- data TxExtraKeyWitnesses era where
- data TxWithdrawals build era where
- TxWithdrawalsNone ∷ TxWithdrawals build era
- TxWithdrawals ∷ WithdrawalsSupportedInEra era → [(StakeAddress, Entropic, BuildTxWith build (Witness WitCtxStake era))] → TxWithdrawals build era
- data TxCertificates build era where
- TxCertificatesNone ∷ TxCertificates build era
- TxCertificates ∷ CertificatesSupportedInEra era → [Certificate] → BuildTxWith build (Map StakeCredential (Witness WitCtxStake era)) → TxCertificates build era
- data TxUpdateProposal era where
- data TxMintValue build era where
- TxMintNone ∷ TxMintValue build era
- TxMintValue ∷ MultiAssetSupportedInEra era → Value → BuildTxWith build (Map PolicyId (ScriptWitness WitCtxMint era)) → TxMintValue build era
- data BuildTxWith build a where
- ViewTx ∷ BuildTxWith ViewTx a
- BuildTxWith ∷ a → BuildTxWith BuildTx a
- data BuildTx
- data ViewTx
- data CollateralSupportedInEra era where
- data MultiAssetSupportedInEra era where
- data OnlyBccSupportedInEra era where
- data TxFeesExplicitInEra era where
- data TxFeesImplicitInEra era where
- data ValidityUpperBoundSupportedInEra era where
- data ValidityNoUpperBoundSupportedInEra era where
- data ValidityLowerBoundSupportedInEra era where
- data TxMetadataSupportedInEra era where
- data AuxScriptsSupportedInEra era where
- data TxExtraKeyWitnessesSupportedInEra era where
- data ScriptDataSupportedInEra era where
- data WithdrawalsSupportedInEra era where
- data CertificatesSupportedInEra era where
- data UpdateProposalSupportedInEra era where
- collateralSupportedInEra ∷ BccEra era → Maybe (CollateralSupportedInEra era)
- multiAssetSupportedInEra ∷ BccEra era → Either (OnlyBccSupportedInEra era) (MultiAssetSupportedInEra era)
- txFeesExplicitInEra ∷ BccEra era → Either (TxFeesImplicitInEra era) (TxFeesExplicitInEra era)
- validityUpperBoundSupportedInEra ∷ BccEra era → Maybe (ValidityUpperBoundSupportedInEra era)
- validityNoUpperBoundSupportedInEra ∷ BccEra era → Maybe (ValidityNoUpperBoundSupportedInEra era)
- validityLowerBoundSupportedInEra ∷ BccEra era → Maybe (ValidityLowerBoundSupportedInEra era)
- txMetadataSupportedInEra ∷ BccEra era → Maybe (TxMetadataSupportedInEra era)
- auxScriptsSupportedInEra ∷ BccEra era → Maybe (AuxScriptsSupportedInEra era)
- extraKeyWitnessesSupportedInEra ∷ BccEra era → Maybe (TxExtraKeyWitnessesSupportedInEra era)
- withdrawalsSupportedInEra ∷ BccEra era → Maybe (WithdrawalsSupportedInEra era)
- certificatesSupportedInEra ∷ BccEra era → Maybe (CertificatesSupportedInEra era)
- updateProposalSupportedInEra ∷ BccEra era → Maybe (UpdateProposalSupportedInEra era)
- scriptDataSupportedInEra ∷ BccEra era → Maybe (ScriptDataSupportedInEra era)
- transactionFee ∷ ∀ era. IsSophieBasedEra era ⇒ Natural → Natural → Tx era → Entropic
- estimateTransactionFee ∷ ∀ era. IsSophieBasedEra era ⇒ NetworkId → Natural → Natural → Tx era → Int → Int → Int → Int → Entropic
- evaluateTransactionFee ∷ ∀ era. IsSophieBasedEra era ⇒ ProtocolParameters → TxBody era → Word → Word → Entropic
- estimateTransactionKeyWitnessCount ∷ TxBodyContent BuildTx era → Word
- calculateMinimumUTxO ∷ SophieBasedEra era → TxOut era → ProtocolParameters → Either MinimumUTxOError Value
- data MinimumUTxOError
- evaluateTransactionExecutionUnits ∷ ∀ era mode. EraInMode era mode → SystemStart → EraHistory mode → ProtocolParameters → UTxO era → TxBody era → Either TransactionValidityIntervalError (Map ScriptWitnessIndex (Either ScriptExecutionError ExecutionUnits))
- data ScriptExecutionError
- newtype TransactionValidityIntervalError = TransactionValidityIntervalError PastHorizonException
- evaluateTransactionBalance ∷ ∀ era. IsSophieBasedEra era ⇒ ProtocolParameters → Set PoolId → UTxO era → TxBody era → TxOutValue era
- makeTransactionBodyAutoBalance ∷ ∀ era mode. IsSophieBasedEra era ⇒ EraInMode era mode → SystemStart → EraHistory mode → ProtocolParameters → Set PoolId → UTxO era → TxBodyContent BuildTx era → AddressInEra era → Maybe Word → Either TxBodyErrorAutoBalance (BalancedTxBody era)
- data BalancedTxBody era = BalancedTxBody (TxBody era) (TxOut era) Entropic
- data TxBodyErrorAutoBalance
- = TxBodyError TxBodyError
- | TxBodyScriptExecutionError [(ScriptWitnessIndex, ScriptExecutionError)]
- | TxBodyScriptBadScriptValidity
- | TxBodyErrorAssetBalanceWrong Value
- | TxBodyErrorBccBalanceNegative Entropic
- | TxBodyErrorBccBalanceTooSmall TxOutInAnyEra Entropic Entropic
- | TxBodyErrorColeEraNotSupported
- | TxBodyErrorMissingParamMinUTxO
- | TxBodyErrorMissingParamCostPerWord
- | TxBodyErrorValidityInterval TransactionValidityIntervalError
- | TxBodyErrorMinUTxONotMet TxOutInAnyEra Entropic
- | TxBodyErrorMinUTxOMissingPParams MinimumUTxOError
- | TxBodyErrorNonBccAssetsUnbalanced Value
- data TxScriptValidity era where
- data ScriptValidity
- data TxScriptValiditySupportedInEra era where
- scriptValidityToTxScriptValidity ∷ SophieBasedEra era → ScriptValidity → TxScriptValidity era
- txScriptValiditySupportedInSophieBasedEra ∷ SophieBasedEra era → Maybe (TxScriptValiditySupportedInEra era)
- txScriptValiditySupportedInBccEra ∷ BccEra era → Maybe (TxScriptValiditySupportedInEra era)
- data Tx era where
- pattern Tx ∷ TxBody era → [KeyWitness era] → Tx era
- getTxBody ∷ ∀ era. Tx era → TxBody era
- getTxWitnesses ∷ ∀ era. Tx era → [KeyWitness era]
- signColeTransaction ∷ NetworkId → TxBody ColeEra → [SigningKey ColeKey] → Tx ColeEra
- signSophieTransaction ∷ IsSophieBasedEra era ⇒ TxBody era → [SophieWitnessSigningKey] → Tx era
- makeSignedTransaction ∷ ∀ era. [KeyWitness era] → TxBody era → Tx era
- data KeyWitness era
- makeColeKeyWitness ∷ ∀ key. IsColeKey key ⇒ NetworkId → TxBody ColeEra → SigningKey key → KeyWitness ColeEra
- data SophieWitnessSigningKey
- = WitnessPaymentKey (SigningKey PaymentKey)
- | WitnessPaymentExtendedKey (SigningKey PaymentExtendedKey)
- | WitnessStakeKey (SigningKey StakeKey)
- | WitnessStakeExtendedKey (SigningKey StakeExtendedKey)
- | WitnessStakePoolKey (SigningKey StakePoolKey)
- | WitnessGenesisKey (SigningKey GenesisKey)
- | WitnessGenesisExtendedKey (SigningKey GenesisExtendedKey)
- | WitnessGenesisDelegateKey (SigningKey GenesisDelegateKey)
- | WitnessGenesisDelegateExtendedKey (SigningKey GenesisDelegateExtendedKey)
- | WitnessGenesisUTxOKey (SigningKey GenesisUTxOKey)
- | WitnessVestedKey (SigningKey VestedKey)
- | WitnessVestedExtendedKey (SigningKey VestedExtendedKey)
- | WitnessVestedDelegateKey (SigningKey VestedDelegateKey)
- | WitnessVestedDelegateExtendedKey (SigningKey VestedDelegateExtendedKey)
- | WitnessVestedUTxOKey (SigningKey VestedUTxOKey)
- makeSophieKeyWitness ∷ ∀ era. IsSophieBasedEra era ⇒ TxBody era → SophieWitnessSigningKey → KeyWitness era
- makeSophieBootstrapWitness ∷ ∀ era. IsSophieBasedEra era ⇒ WitnessNetworkIdOrColeAddress → TxBody era → SigningKey ColeKey → KeyWitness era
- newtype TxMetadata = TxMetadata (Map Word64 TxMetadataValue)
- data TxMetadataValue
- makeTransactionMetadata ∷ Map Word64 TxMetadataValue → TxMetadata
- validateTxMetadata ∷ TxMetadata → Either [(Word64, TxMetadataRangeError)] ()
- data TxMetadataRangeError
- data TxMetadataJsonSchema
- metadataFromJson ∷ TxMetadataJsonSchema → Value → Either TxMetadataJsonError TxMetadata
- metadataToJson ∷ TxMetadataJsonSchema → TxMetadata → Value
- metadataValueToJsonNoSchema ∷ TxMetadataValue → Value
- data TxMetadataJsonError
- data TxMetadataJsonSchemaError
- = TxMetadataJsonNullNotAllowed
- | TxMetadataJsonBoolNotAllowed
- | TxMetadataJsonNumberNotInteger !Double
- | TxMetadataJsonNotObject !Value
- | TxMetadataJsonBadObject ![(Text, Value)]
- | TxMetadataJsonBadMapPair !Value
- | TxMetadataJsonTypeMismatch !Text !Value
- data Certificate
- = StakeAddressRegistrationCertificate StakeCredential
- | StakeAddressDeregistrationCertificate StakeCredential
- | StakeAddressDelegationCertificate StakeCredential PoolId
- | StakePoolRegistrationCertificate StakePoolParameters
- | StakePoolRetirementCertificate PoolId EpochNo
- | GenesisKeyDelegationCertificate (Hash GenesisKey) (Hash GenesisDelegateKey) (Hash VrfKey)
- | VestedKeyDelegationCertificate (Hash VestedKey) (Hash VestedDelegateKey) (Hash VrfKey)
- | MIRCertificate MIRPot MIRTarget
- makeStakeAddressRegistrationCertificate ∷ StakeCredential → Certificate
- makeStakeAddressDeregistrationCertificate ∷ StakeCredential → Certificate
- makeStakeAddressDelegationCertificate ∷ StakeCredential → PoolId → Certificate
- makeStakePoolRegistrationCertificate ∷ StakePoolParameters → Certificate
- makeStakePoolRetirementCertificate ∷ PoolId → EpochNo → Certificate
- data StakePoolParameters
- data StakePoolRelay
- data StakePoolMetadataReference
- data StakePoolMetadata
- validateAndHashStakePoolMetadata ∷ ByteString → Either StakePoolMetadataValidationError (StakePoolMetadata, Hash StakePoolMetadata)
- data StakePoolMetadataValidationError
- data SimpleScriptV1
- data SimpleScriptV2
- data ZerepochScriptV1
- data ScriptLanguage lang where
- SimpleScriptLanguage ∷ SimpleScriptVersion lang → ScriptLanguage lang
- ZerepochScriptLanguage ∷ ZerepochScriptVersion lang → ScriptLanguage lang
- data SimpleScriptVersion lang where
- data ZerepochScriptVersion lang where
- data AnyScriptLanguage where
- data AnyZerepochScriptVersion where
- class HasTypeProxy lang ⇒ IsScriptLanguage lang where
- scriptLanguage ∷ ScriptLanguage lang
- class IsScriptLanguage lang ⇒ IsSimpleScriptLanguage lang where
- data Script lang where
- SimpleScript ∷ !(SimpleScriptVersion lang) → !(SimpleScript lang) → Script lang
- ZerepochScript ∷ !(ZerepochScriptVersion lang) → !(ZerepochScript lang) → Script lang
- data ScriptInAnyLang where
- ScriptInAnyLang ∷ ScriptLanguage lang → Script lang → ScriptInAnyLang
- toScriptInAnyLang ∷ Script lang → ScriptInAnyLang
- data ScriptInEra era where
- ScriptInEra ∷ ScriptLanguageInEra lang era → Script lang → ScriptInEra era
- toScriptInEra ∷ BccEra era → ScriptInAnyLang → Maybe (ScriptInEra era)
- eraOfScriptInEra ∷ ScriptInEra era → SophieBasedEra era
- data WitCtxTxIn
- data WitCtxMint
- data WitCtxStake
- data WitCtx witctx where
- data ScriptWitness witctx era where
- SimpleScriptWitness ∷ ScriptLanguageInEra lang era → SimpleScriptVersion lang → SimpleScript lang → ScriptWitness witctx era
- ZerepochScriptWitness ∷ ScriptLanguageInEra lang era → ZerepochScriptVersion lang → ZerepochScript lang → ScriptDatum witctx → ScriptRedeemer → ExecutionUnits → ScriptWitness witctx era
- data Witness witctx era where
- KeyWitness ∷ KeyWitnessInCtx witctx → Witness witctx era
- ScriptWitness ∷ ScriptWitnessInCtx witctx → ScriptWitness witctx era → Witness witctx era
- data KeyWitnessInCtx witctx where
- data ScriptWitnessInCtx witctx where
- data ScriptDatum witctx where
- type ScriptRedeemer = ScriptData
- scriptWitnessScript ∷ ScriptWitness witctx era → ScriptInEra era
- data AnyScriptWitness era where
- AnyScriptWitness ∷ ScriptWitness witctx era → AnyScriptWitness era
- data ScriptWitnessIndex
- renderScriptWitnessIndex ∷ ScriptWitnessIndex → String
- collectTxBodyScriptWitnesses ∷ ∀ era. TxBodyContent BuildTx era → [(ScriptWitnessIndex, AnyScriptWitness era)]
- mapTxScriptWitnesses ∷ ∀ era. (∀ witctx. ScriptWitnessIndex → ScriptWitness witctx era → ScriptWitness witctx era) → TxBodyContent BuildTx era → TxBodyContent BuildTx era
- data ScriptLanguageInEra lang era where
- SimpleScriptV1InSophie ∷ ScriptLanguageInEra SimpleScriptV1 SophieEra
- SimpleScriptV1InEvie ∷ ScriptLanguageInEra SimpleScriptV1 EvieEra
- SimpleScriptV1InJen ∷ ScriptLanguageInEra SimpleScriptV1 JenEra
- SimpleScriptV1InAurum ∷ ScriptLanguageInEra SimpleScriptV1 AurumEra
- SimpleScriptV2InEvie ∷ ScriptLanguageInEra SimpleScriptV2 EvieEra
- SimpleScriptV2InJen ∷ ScriptLanguageInEra SimpleScriptV2 JenEra
- SimpleScriptV2InAurum ∷ ScriptLanguageInEra SimpleScriptV2 AurumEra
- ZerepochScriptV1InAurum ∷ ScriptLanguageInEra ZerepochScriptV1 AurumEra
- scriptLanguageSupportedInEra ∷ BccEra era → ScriptLanguage lang → Maybe (ScriptLanguageInEra lang era)
- languageOfScriptLanguageInEra ∷ ScriptLanguageInEra lang era → ScriptLanguage lang
- eraOfScriptLanguageInEra ∷ ScriptLanguageInEra lang era → SophieBasedEra era
- data SimpleScript lang where
- RequireSignature ∷ !(Hash PaymentKey) → SimpleScript lang
- RequireTimeBefore ∷ !(TimeLocksSupported lang) → !SlotNo → SimpleScript lang
- RequireTimeAfter ∷ !(TimeLocksSupported lang) → !SlotNo → SimpleScript lang
- RequireAllOf ∷ [SimpleScript lang] → SimpleScript lang
- RequireAnyOf ∷ [SimpleScript lang] → SimpleScript lang
- RequireMOf ∷ Int → [SimpleScript lang] → SimpleScript lang
- data TimeLocksSupported lang where
- timeLocksSupported ∷ SimpleScriptVersion lang → Maybe (TimeLocksSupported lang)
- adjustSimpleScriptVersion ∷ SimpleScriptVersion lang' → SimpleScript lang → Maybe (SimpleScript lang')
- data ZerepochScript lang
- exampleZerepochScriptAlwaysSucceeds ∷ WitCtx witctx → ZerepochScript ZerepochScriptV1
- exampleZerepochScriptAlwaysFails ∷ WitCtx witctx → ZerepochScript ZerepochScriptV1
- data ScriptData
- hashScriptData ∷ ScriptData → Hash ScriptData
- data ScriptDataRangeError
- validateScriptData ∷ ScriptData → Either ScriptDataRangeError ()
- data ScriptDataJsonSchema
- scriptDataFromJson ∷ ScriptDataJsonSchema → Value → Either ScriptDataJsonError ScriptData
- scriptDataToJson ∷ ScriptDataJsonSchema → ScriptData → Value
- data ScriptDataJsonError
- data ScriptDataJsonSchemaError
- = ScriptDataJsonNullNotAllowed
- | ScriptDataJsonBoolNotAllowed
- | ScriptDataJsonNumberNotInteger !Double
- | ScriptDataJsonNotObject !Value
- | ScriptDataJsonBadObject ![(Text, Value)]
- | ScriptDataJsonBadMapPair !Value
- | ScriptDataJsonTypeMismatch !Text !Value
- data ExecutionUnits = ExecutionUnits {}
- data ExecutionUnitPrices = ExecutionUnitPrices {}
- newtype CostModel = CostModel (Map Text Integer)
- validateCostModel ∷ ZerepochScriptVersion lang → CostModel → Either InvalidCostModel ()
- data ScriptHash
- hashScript ∷ Script lang → ScriptHash
- class HasTypeProxy a ⇒ SerialiseAsCBOR a
- class Typeable a ⇒ ToCBOR a
- class Typeable a ⇒ FromCBOR a
- serialiseToCBOR ∷ SerialiseAsCBOR a ⇒ a → ByteString
- deserialiseFromCBOR ∷ SerialiseAsCBOR a ⇒ AsType a → ByteString → Either DecoderError a
- class ToJSON a
- class FromJSON a
- serialiseToJSON ∷ ToJSON a ⇒ a → ByteString
- deserialiseFromJSON ∷ FromJSON a ⇒ AsType a → ByteString → Either JsonDecodeError a
- newtype JsonDecodeError = JsonDecodeError String
- readFileJSON ∷ FromJSON a ⇒ AsType a → FilePath → IO (Either (FileError JsonDecodeError) a)
- writeFileJSON ∷ ToJSON a ⇒ FilePath → a → IO (Either (FileError ()) ())
- prettyPrintJSON ∷ ToJSON a ⇒ a → ByteString
- class (HasTypeProxy a, SerialiseAsRawBytes a) ⇒ SerialiseAsBech32 a
- serialiseToBech32 ∷ SerialiseAsBech32 a ⇒ a → Text
- deserialiseFromBech32 ∷ SerialiseAsBech32 a ⇒ AsType a → Text → Either Bech32DecodeError a
- deserialiseAnyOfFromBech32 ∷ ∀ b. [FromSomeType SerialiseAsBech32 b] → Text → Either Bech32DecodeError b
- data Bech32DecodeError
- = Bech32DecodingError !DecodingError
- | Bech32UnexpectedPrefix !Text !(Set Text)
- | Bech32DataPartToBytesError !Text
- | Bech32DeserialiseFromBytesError !ByteString
- | Bech32WrongPrefix !Text !Text
- class HasTypeProxy addr ⇒ SerialiseAddress addr
- serialiseAddress ∷ SerialiseAddress addr ⇒ addr → Text
- deserialiseAddress ∷ SerialiseAddress addr ⇒ AsType addr → Text → Maybe addr
- class HasTypeProxy a ⇒ SerialiseAsRawBytes a
- serialiseToRawBytes ∷ SerialiseAsRawBytes a ⇒ a → ByteString
- deserialiseFromRawBytes ∷ SerialiseAsRawBytes a ⇒ AsType a → ByteString → Maybe a
- serialiseToRawBytesHex ∷ SerialiseAsRawBytes a ⇒ a → ByteString
- deserialiseFromRawBytesHex ∷ SerialiseAsRawBytes a ⇒ AsType a → ByteString → Maybe a
- serialiseToRawBytesHexText ∷ SerialiseAsRawBytes a ⇒ a → Text
- class SerialiseAsCBOR a ⇒ HasTextEnvelope a where
- data TextEnvelope = TextEnvelope {}
- newtype TextEnvelopeType = TextEnvelopeType String
- data TextEnvelopeDescr
- data TextEnvelopeError
- = TextEnvelopeTypeError ![TextEnvelopeType] !TextEnvelopeType
- | TextEnvelopeDecodeError !DecoderError
- | TextEnvelopeAesonDecodeError !String
- textEnvelopeRawCBOR ∷ TextEnvelope → ByteString
- serialiseToTextEnvelope ∷ ∀ a. HasTextEnvelope a ⇒ Maybe TextEnvelopeDescr → a → TextEnvelope
- deserialiseFromTextEnvelope ∷ HasTextEnvelope a ⇒ AsType a → TextEnvelope → Either TextEnvelopeError a
- readFileTextEnvelope ∷ HasTextEnvelope a ⇒ AsType a → FilePath → IO (Either (FileError TextEnvelopeError) a)
- writeFileTextEnvelope ∷ HasTextEnvelope a ⇒ FilePath → Maybe TextEnvelopeDescr → a → IO (Either (FileError ()) ())
- writeFileTextEnvelopeWithOwnerPermissions ∷ HasTextEnvelope a ⇒ FilePath → Maybe TextEnvelopeDescr → a → IO (Either (FileError ()) ())
- readTextEnvelopeFromFile ∷ FilePath → IO (Either (FileError TextEnvelopeError) TextEnvelope)
- readTextEnvelopeOfTypeFromFile ∷ TextEnvelopeType → FilePath → IO (Either (FileError TextEnvelopeError) TextEnvelope)
- data FromSomeType (c ∷ Type → Constraint) b where
- FromSomeType ∷ c a ⇒ AsType a → (a → b) → FromSomeType c b
- deserialiseFromTextEnvelopeAnyOf ∷ [FromSomeType HasTextEnvelope b] → TextEnvelope → Either TextEnvelopeError b
- readFileTextEnvelopeAnyOf ∷ [FromSomeType HasTextEnvelope b] → FilePath → IO (Either (FileError TextEnvelopeError) b)
- class Show e ⇒ Error e where
- displayError ∷ e → String
- throwErrorAsException ∷ Error e ⇒ e → IO a
- data FileError e
- data Env = Env {
- envLedgerConfig ∷ HardForkLedgerConfig (BccEras StandardCrypto)
- envProtocolConfig ∷ ConsensusConfig (HardForkProtocol (BccEras StandardCrypto))
- envSecurityParam ∷ Env → Word64
- newtype LedgerState where
- LedgerState {
- clsState ∷ LedgerState (HardForkBlock (BccEras StandardCrypto))
- pattern LedgerStateCole ∷ LedgerState ColeBlock → LedgerState
- pattern LedgerStateSophie ∷ LedgerState (SophieBlock (SophieEra StandardCrypto)) → LedgerState
- pattern LedgerStateEvie ∷ LedgerState (SophieBlock (EvieEra StandardCrypto)) → LedgerState
- pattern LedgerStateJen ∷ LedgerState (SophieBlock (JenEra StandardCrypto)) → LedgerState
- LedgerState {
- initialLedgerState ∷ FilePath → ExceptT InitialLedgerStateError IO (Env, LedgerState)
- applyBlock ∷ Env → LedgerState → ValidationMode → Block era → Either Text LedgerState
- data ValidationMode
- foldBlocks ∷ ∀ a. FilePath → ConsensusModeParams BccMode → FilePath → ValidationMode → a → (Env → LedgerState → BlockInMode BccMode → a → IO a) → ExceptT FoldBlocksError IO a
- chainSyncClientWithLedgerState ∷ ∀ m a. Monad m ⇒ Env → LedgerState → ValidationMode → ChainSyncClient (BlockInMode BccMode, Either Text LedgerState) ChainPoint ChainTip m a → ChainSyncClient (BlockInMode BccMode) ChainPoint ChainTip m a
- chainSyncClientPipelinedWithLedgerState ∷ ∀ m a. Monad m ⇒ Env → LedgerState → ValidationMode → ChainSyncClientPipelined (BlockInMode BccMode, Either Text LedgerState) ChainPoint ChainTip m a → ChainSyncClientPipelined (BlockInMode BccMode) ChainPoint ChainTip m a
- data FoldBlocksError
- data GenesisConfigError
- = NEError !Text
- | NEColeConfig !FilePath !ConfigurationError
- | NESophieConfig !FilePath !Text
- | NEAurumConfig !FilePath !Text
- | NEBccConfig !Text
- data InitialLedgerStateError
- renderFoldBlocksError ∷ FoldBlocksError → Text
- renderGenesisConfigError ∷ GenesisConfigError → Text
- renderInitialLedgerStateError ∷ InitialLedgerStateError → Text
- connectToLocalNode ∷ LocalNodeConnectInfo mode → LocalNodeClientProtocolsInMode mode → IO ()
- connectToLocalNodeWithVersion ∷ LocalNodeConnectInfo mode → (NodeToClientVersion → LocalNodeClientProtocolsInMode mode) → IO ()
- data LocalNodeConnectInfo mode = LocalNodeConnectInfo {}
- data AnyConsensusMode where
- renderMode ∷ AnyConsensusMode → Text
- data ConsensusMode mode where
- consensusModeOnly ∷ ConsensusModeParams mode → ConsensusMode mode
- data ConsensusModeIsMultiEra mode where
- data AnyConsensusModeParams where
- data ConsensusModeParams mode where
- data EraInMode era mode where
- ColeEraInColeMode ∷ EraInMode ColeEra ColeMode
- SophieEraInSophieMode ∷ EraInMode SophieEra SophieMode
- ColeEraInBccMode ∷ EraInMode ColeEra BccMode
- SophieEraInBccMode ∷ EraInMode SophieEra BccMode
- EvieEraInBccMode ∷ EraInMode EvieEra BccMode
- JenEraInBccMode ∷ EraInMode JenEra BccMode
- AurumEraInBccMode ∷ EraInMode AurumEra BccMode
- toEraInMode ∷ BccEra era → ConsensusMode mode → Maybe (EraInMode era mode)
- data LocalNodeClientProtocols block point tip tx txerr query m = LocalNodeClientProtocols {
- localChainSyncClient ∷ LocalChainSyncClient block point tip m
- localTxSubmissionClient ∷ Maybe (LocalTxSubmissionClient tx txerr m ())
- localStateQueryClient ∷ Maybe (LocalStateQueryClient block point query m ())
- data LocalChainSyncClient block point tip m
- = NoLocalChainSyncClient
- | LocalChainSyncClientPipelined (ChainSyncClientPipelined block point tip m ())
- | LocalChainSyncClient (ChainSyncClient block point tip m ())
- data BccMode
- newtype ChainSyncClient header point tip (m ∷ Type → Type) a = ChainSyncClient {
- runChainSyncClient ∷ m (ClientStIdle header point tip m a)
- newtype ChainSyncClientPipelined header point tip (m ∷ Type → Type) a = ChainSyncClientPipelined {
- runChainSyncClientPipelined ∷ m (ClientPipelinedStIdle 'Z header point tip m a)
- data BlockInMode mode where
- BlockInMode ∷ Block era → EraInMode era mode → BlockInMode mode
- type LocalNodeClientProtocolsInMode mode = LocalNodeClientProtocols (BlockInMode mode) ChainPoint ChainTip (TxInMode mode) (TxValidationErrorInMode mode) (QueryInMode mode) IO
- data LocalTxSubmissionClient tx reject (m ∷ Type → Type) a
- data TxInMode mode where
- data TxValidationErrorInMode mode where
- TxValidationErrorInMode ∷ TxValidationError era → EraInMode era mode → TxValidationErrorInMode mode
- TxValidationEraMismatch ∷ EraMismatch → TxValidationErrorInMode mode
- runLocalTxSubmissionClient ∷ LocalTxSubmissionClient tx reject m a → m (LocalTxClientStIdle tx reject m a)
- submitTxToNodeLocal ∷ ∀ mode. LocalNodeConnectInfo mode → TxInMode mode → IO (SubmitResult (TxValidationErrorInMode mode))
- newtype LocalStateQueryClient block point (query ∷ Type → Type) (m ∷ Type → Type) a = LocalStateQueryClient {
- runLocalStateQueryClient ∷ m (ClientStIdle block point query m a)
- data QueryInMode mode result where
- QueryCurrentEra ∷ ConsensusModeIsMultiEra mode → QueryInMode mode AnyBccEra
- QueryInEra ∷ EraInMode era mode → QueryInEra era result → QueryInMode mode (Either EraMismatch result)
- QueryEraHistory ∷ ConsensusModeIsMultiEra mode → QueryInMode mode (EraHistory mode)
- QuerySystemStart ∷ QueryInMode mode SystemStart
- data QueryInEra era result where
- QueryColeUpdateState ∷ QueryInEra ColeEra ColeUpdateState
- QueryInSophieBasedEra ∷ SophieBasedEra era → QueryInSophieBasedEra era result → QueryInEra era result
- data QueryInSophieBasedEra era result where
- QueryChainPoint ∷ QueryInSophieBasedEra era ChainPoint
- QueryEpoch ∷ QueryInSophieBasedEra era EpochNo
- QueryGenesisParameters ∷ QueryInSophieBasedEra era GenesisParameters
- QueryProtocolParameters ∷ QueryInSophieBasedEra era ProtocolParameters
- QueryProtocolParametersUpdate ∷ QueryInSophieBasedEra era (Map (Hash GenesisKey) ProtocolParametersUpdate)
- QueryStakeDistribution ∷ QueryInSophieBasedEra era (Map (Hash StakePoolKey) Rational)
- QueryUTxO ∷ QueryUTxOFilter → QueryInSophieBasedEra era (UTxO era)
- QueryStakeAddresses ∷ Set StakeCredential → NetworkId → QueryInSophieBasedEra era (Map StakeAddress Entropic, Map StakeAddress PoolId)
- QueryStakePools ∷ QueryInSophieBasedEra era (Set PoolId)
- QueryStakePoolParameters ∷ Set PoolId → QueryInSophieBasedEra era (Map PoolId StakePoolParameters)
- QueryDebugLedgerState ∷ QueryInSophieBasedEra era (SerialisedDebugLedgerState era)
- QueryProtocolState ∷ QueryInSophieBasedEra era (ProtocolState era)
- data QueryUTxOFilter
- newtype UTxO era = UTxO (Map TxIn (TxOut era))
- queryNodeLocalState ∷ ∀ mode result. LocalNodeConnectInfo mode → Maybe ChainPoint → QueryInMode mode result → IO (Either AcquireFailure result)
- data EraHistory mode where
- EraHistory ∷ ConsensusBlockForMode mode ~ HardForkBlock xs ⇒ ConsensusMode mode → Interpreter xs → EraHistory mode
- getProgress ∷ SlotNo → EraHistory mode → Either PastHorizonException (RelativeTime, SlotLength)
- getLocalChainTip ∷ LocalNodeConnectInfo mode → IO ChainTip
- data OperationalCertificate
- data OperationalCertificateIssueCounter
- data OperationalCertIssueError
- issueOperationalCertificate ∷ VerificationKey KesKey → Either (SigningKey StakePoolKey) (SigningKey GenesisDelegateExtendedKey) → KESPeriod → OperationalCertificateIssueCounter → Either OperationalCertIssueError (OperationalCertificate, OperationalCertificateIssueCounter)
- data GenesisKey
- data GenesisExtendedKey
- data GenesisDelegateKey
- data GenesisDelegateExtendedKey
- data GenesisUTxOKey
- genesisUTxOPseudoTxIn ∷ NetworkId → Hash GenesisUTxOKey → TxIn
- data GenesisVestedKey
- data GenesisVestedExtendedKey
- data GenesisVestedDelegateKey
- data GenesisVestedDelegateExtendedKey
- data GenesisParameters = GenesisParameters {
- protocolParamSystemStart ∷ UTCTime
- protocolParamNetworkId ∷ NetworkId
- protocolParamActiveSlotsCoefficient ∷ Rational
- protocolParamSecurity ∷ Int
- protocolVestMultiple ∷ Word64
- protocolParamEpochLength ∷ EpochSize
- protocolParamSlotLength ∷ NominalDiffTime
- protocolParamSlotsPerKESPeriod ∷ Int
- protocolParamMaxKESEvolutions ∷ Int
- protocolParamUpdateQuorum ∷ Int
- protocolParamMaxEntropicSupply ∷ Entropic
- protocolInitialUpdateableProtocolParameters ∷ ProtocolParameters
- data VestedKey
- data VestedExtendedKey
- data VestedDelegateKey
- data VestedDelegateExtendedKey
- data VestedUTxOKey
- makeMIRCertificate ∷ MIRPot → MIRTarget → Certificate
- makeGenesisKeyDelegationCertificate ∷ Hash GenesisKey → Hash GenesisDelegateKey → Hash VrfKey → Certificate
- makeVestedKeyDelegationCertificate ∷ Hash VestedKey → Hash VestedDelegateKey → Hash VrfKey → Certificate
- data MIRTarget
- data UpdateProposal = UpdateProposal !(Map (Hash GenesisKey) ProtocolParametersUpdate) !EpochNo
- data ProtocolParametersUpdate = ProtocolParametersUpdate {
- protocolUpdateProtocolVersion ∷ Maybe (Natural, Natural)
- protocolUpdateDecentralization ∷ Maybe Rational
- protocolUpdateExtraOptimumEntropy ∷ Maybe (Maybe OptimumNonce)
- protocolUpdateMaxBlockHeaderSize ∷ Maybe Natural
- protocolUpdateMaxBlockBodySize ∷ Maybe Natural
- protocolUpdateMaxTxSize ∷ Maybe Natural
- protocolUpdateTxFeeFixed ∷ Maybe Natural
- protocolUpdateTxFeePerByte ∷ Maybe Natural
- protocolUpdateMinUTxOValue ∷ Maybe Entropic
- protocolUpdateStakeAddressDeposit ∷ Maybe Entropic
- protocolUpdateStakePoolDeposit ∷ Maybe Entropic
- protocolUpdateMinPoolCost ∷ Maybe Entropic
- protocolUpdatePoolRetireMaxEpoch ∷ Maybe EpochNo
- protocolUpdateStakePoolTargetNum ∷ Maybe Natural
- protocolUpdatePoolPledgeInfluence ∷ Maybe Rational
- protocolUpdateMonetaryExpansion ∷ Maybe Rational
- protocolUpdateTreasuryCut ∷ Maybe Rational
- protocolUpdateUTxOCostPerWord ∷ Maybe Entropic
- protocolUpdateCostModels ∷ Map AnyZerepochScriptVersion CostModel
- protocolUpdatePrices ∷ Maybe ExecutionUnitPrices
- protocolUpdateMaxTxExUnits ∷ Maybe ExecutionUnits
- protocolUpdateMaxBlockExUnits ∷ Maybe ExecutionUnits
- protocolUpdateMaxValueSize ∷ Maybe Natural
- protocolUpdateCollateralPercent ∷ Maybe Natural
- protocolUpdateMaxCollateralInputs ∷ Maybe Natural
- makeSophieUpdateProposal ∷ ProtocolParametersUpdate → [Hash GenesisKey] → EpochNo → UpdateProposal
- data OptimumNonce
- makeOptimumNonce ∷ ByteString → OptimumNonce
- newtype NetworkMagic = NetworkMagic {}
- toLedgerPParams ∷ SophieBasedEra era → ProtocolParameters → PParams (SophieLedgerEra era)
- fromLedgerPParams ∷ SophieBasedEra era → PParams (SophieLedgerEra era) → ProtocolParameters
- toNetworkMagic ∷ NetworkId → NetworkMagic
- fromLedgerTxOuts ∷ SophieBasedEra era → TxBody (SophieLedgerEra era) → [TxOut era]
- toLedgerUTxO ∷ SophieLedgerEra era ~ ledgerera ⇒ Crypto ledgerera ~ StandardCrypto ⇒ SophieBasedEra era → UTxO era → UTxO ledgerera
- data SomeNodeClientProtocol where
- SomeNodeClientProtocol ∷ (RunNode blk, ProtocolClient blk) ⇒ ProtocolClientInfoArgs blk → SomeNodeClientProtocol
- newtype SlotsInEpoch = SlotsInEpoch Word64
- newtype SlotsToEpochEnd = SlotsToEpochEnd Word64
- slotToEpoch ∷ SlotNo → EraHistory mode → Either PastHorizonException (EpochNo, SlotsInEpoch, SlotsToEpochEnd)
- data NodeToClientVersion
- data LocalStateQueryExpr block point query r m a
- executeLocalStateQueryExpr ∷ LocalNodeConnectInfo mode → Maybe ChainPoint → (NodeToClientVersion → LocalStateQueryExpr (BlockInMode mode) ChainPoint (QueryInMode mode) () IO a) → IO (Either AcquireFailure a)
- executeLocalStateQueryExprWithChainSync ∷ LocalNodeConnectInfo mode → Maybe ChainPoint → (NodeToClientVersion → LocalStateQueryExpr (BlockInMode mode) ChainPoint (QueryInMode mode) () IO a) → IO (ChainTip, Either AcquireFailure a)
- queryExpr ∷ QueryInMode mode a → LocalStateQueryExpr block point (QueryInMode mode) r IO a
- determineEraExpr ∷ ConsensusModeParams mode → LocalStateQueryExpr block point (QueryInMode mode) r IO AnyBccEra
Eras
A type used as a tag to distinguish the Cole era.
A type used as a tag to distinguish the Sophie era.
Instances
HasTypeProxy SophieEra Source # | |
IsSophieBasedEra SophieEra Source # | |
Defined in Bcc.Api.Eras Methods | |
IsBccEra SophieEra Source # | |
data AsType SophieEra Source # | |
Defined in Bcc.Api.Eras |
A type used as a tag to distinguish the Evie era.
Instances
HasTypeProxy EvieEra Source # | |
IsSophieBasedEra EvieEra Source # | |
Defined in Bcc.Api.Eras Methods | |
IsBccEra EvieEra Source # | |
data AsType EvieEra Source # | |
Defined in Bcc.Api.Eras |
A type used as a tag to distinguish the Jen era.
Instances
HasTypeProxy JenEra Source # | |
IsSophieBasedEra JenEra Source # | |
Defined in Bcc.Api.Eras Methods | |
IsBccEra JenEra Source # | |
data AsType JenEra Source # | |
Defined in Bcc.Api.Eras |
A type used as a tag to distinguish the Aurum era.
Instances
HasTypeProxy AurumEra Source # | |
IsSophieBasedEra AurumEra Source # | |
Defined in Bcc.Api.Eras Methods | |
IsBccEra AurumEra Source # | |
data AsType AurumEra Source # | |
Defined in Bcc.Api.Eras |
data BccEra era where Source #
This GADT provides a value-level representation of all the Bcc eras. This enables pattern matching on the era to allow them to be treated in a non-uniform way.
This can be used in combination with the IsBccEra
class to get access
to this value.
In combination this can often enable code that handles all eras, and does so uniformly where possible, and non-uniformly where necessary.
Constructors
ColeEra ∷ BccEra ColeEra | |
SophieEra ∷ BccEra SophieEra | |
EvieEra ∷ BccEra EvieEra | |
JenEra ∷ BccEra JenEra | |
AurumEra ∷ BccEra AurumEra |
Instances
Eq (BccEra era) Source # | |
Ord (BccEra era) Source # | |
Defined in Bcc.Api.Eras | |
Show (BccEra era) Source # | |
ToJSON (BccEra era) Source # | |
Defined in Bcc.Api.Eras Methods toEncoding ∷ BccEra era → Encoding # toJSONList ∷ [BccEra era] → Value # toEncodingList ∷ [BccEra era] → Encoding # | |
TestEquality BccEra Source # | |
Defined in Bcc.Api.Eras |
class HasTypeProxy era ⇒ IsBccEra era where Source #
The class of Bcc eras. This allows uniform handling of all Bcc
eras, but also non-uniform by making case distinctions on the BccEra
constructors, or the BccEraStyle
constructors via bccEraStyle
.
data InAnyBccEra thing where Source #
This pairs up some era-dependent type with a BccEra
value that tells
us what era it is, but hides the era type. This is useful when the era is
not statically known, for example when deserialising from a file.
Constructors
InAnyBccEra ∷ IsBccEra era ⇒ BccEra era → thing era → InAnyBccEra thing |
Sophie-based eras
data SophieBasedEra era where Source #
While the Cole and Sophie eras are quite different, there are several eras that are based on Sophie with only minor differences. It is useful to be able to treat the Sophie-based eras in a mostly-uniform way.
Values of this type witness the fact that the era is Sophie-based. This can be used to constrain the era to being a Sophie-based on. It allows non-uniform handling making case distinctions on the constructor.
Constructors
SophieBasedEraSophie ∷ SophieBasedEra SophieEra | |
SophieBasedEraEvie ∷ SophieBasedEra EvieEra | |
SophieBasedEraJen ∷ SophieBasedEra JenEra | |
SophieBasedEraAurum ∷ SophieBasedEra AurumEra |
Instances
Eq (SophieBasedEra era) Source # | |
Defined in Bcc.Api.Eras Methods (==) ∷ SophieBasedEra era → SophieBasedEra era → Bool Source # (/=) ∷ SophieBasedEra era → SophieBasedEra era → Bool Source # | |
Ord (SophieBasedEra era) Source # | |
Defined in Bcc.Api.Eras Methods compare ∷ SophieBasedEra era → SophieBasedEra era → Ordering Source # (<) ∷ SophieBasedEra era → SophieBasedEra era → Bool Source # (<=) ∷ SophieBasedEra era → SophieBasedEra era → Bool Source # (>) ∷ SophieBasedEra era → SophieBasedEra era → Bool Source # (>=) ∷ SophieBasedEra era → SophieBasedEra era → Bool Source # max ∷ SophieBasedEra era → SophieBasedEra era → SophieBasedEra era Source # min ∷ SophieBasedEra era → SophieBasedEra era → SophieBasedEra era Source # | |
Show (SophieBasedEra era) Source # | |
Defined in Bcc.Api.Eras |
class IsBccEra era ⇒ IsSophieBasedEra era where Source #
The class of eras that are based on Sophie. This allows uniform handling
of Sophie-based eras, but also non-uniform by making case distinctions on
the SophieBasedEra
constructors.
Methods
sophieBasedEra ∷ SophieBasedEra era Source #
Instances
IsSophieBasedEra AurumEra Source # | |
Defined in Bcc.Api.Eras Methods | |
IsSophieBasedEra JenEra Source # | |
Defined in Bcc.Api.Eras Methods | |
IsSophieBasedEra EvieEra Source # | |
Defined in Bcc.Api.Eras Methods | |
IsSophieBasedEra SophieEra Source # | |
Defined in Bcc.Api.Eras Methods |
data InAnySophieBasedEra thing where Source #
This pairs up some era-dependent type with a SophieBasedEra
value that
tells us what era it is, but hides the era type. This is useful when the era
is not statically known, for example when deserialising from a file.
Constructors
InAnySophieBasedEra ∷ IsSophieBasedEra era ⇒ SophieBasedEra era → thing era → InAnySophieBasedEra thing |
data BccEraStyle era where Source #
This is the same essential information as BccEra
but instead of a
flat set of alternative eras, it is factored into the legcy Cole era and
the current Sophie-based eras.
This way of factoring the eras is useful because in many cases the major differences are between the Cole and Sophie-based eras, and the Sophie-based eras can often be treated uniformly.
Constructors
LegacyColeEra ∷ BccEraStyle ColeEra | |
SophieBasedEra ∷ IsSophieBasedEra era ⇒ SophieBasedEra era → BccEraStyle era |
Instances
Eq (BccEraStyle era) Source # | |
Defined in Bcc.Api.Eras Methods (==) ∷ BccEraStyle era → BccEraStyle era → Bool Source # (/=) ∷ BccEraStyle era → BccEraStyle era → Bool Source # | |
Ord (BccEraStyle era) Source # | |
Defined in Bcc.Api.Eras Methods compare ∷ BccEraStyle era → BccEraStyle era → Ordering Source # (<) ∷ BccEraStyle era → BccEraStyle era → Bool Source # (<=) ∷ BccEraStyle era → BccEraStyle era → Bool Source # (>) ∷ BccEraStyle era → BccEraStyle era → Bool Source # (>=) ∷ BccEraStyle era → BccEraStyle era → Bool Source # max ∷ BccEraStyle era → BccEraStyle era → BccEraStyle era Source # min ∷ BccEraStyle era → BccEraStyle era → BccEraStyle era Source # | |
Show (BccEraStyle era) Source # | |
Defined in Bcc.Api.Eras |
bccEraStyle ∷ BccEra era → BccEraStyle era Source #
The BccEraStyle
for a BccEra
.
sophieBasedToBccEra ∷ SophieBasedEra era → BccEra era Source #
Converts a SophieBasedEra
to the broader BccEra
.
Deprecated
Type tags
class HasTypeProxy t where Source #
Associated Types
A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.
Values of this type are passed to deserialisation functions for example.
Methods
proxyToAsType ∷ Proxy t → AsType t Source #
Instances
Cryptographic key interface
class (Eq (VerificationKey keyrole), Show (VerificationKey keyrole), SerialiseAsRawBytes (Hash keyrole), HasTextEnvelope (VerificationKey keyrole), HasTextEnvelope (SigningKey keyrole)) ⇒ Key keyrole Source #
An interface for cryptographic keys used for signatures with a SigningKey
and a VerificationKey
key.
This interface does not provide actual signing or verifying functions since this API is concerned with the management of keys: generating and serialising.
Minimal complete definition
getVerificationKey, deterministicSigningKey, deterministicSigningKeySeedSize, verificationKeyHash
Instances
data family VerificationKey keyrole ∷ Type Source #
The type of cryptographic verification key, for each key role.
Instances
getVerificationKey ∷ Key keyrole ⇒ SigningKey keyrole → VerificationKey keyrole Source #
Get the corresponding verification key from a signing key.
verificationKeyHash ∷ Key keyrole ⇒ VerificationKey keyrole → Hash keyrole Source #
castVerificationKey ∷ CastVerificationKeyRole keyroleA keyroleB ⇒ VerificationKey keyroleA → VerificationKey keyroleB Source #
Change the role of a VerificationKey
, if the representation permits.
castSigningKey ∷ CastSigningKeyRole keyroleA keyroleB ⇒ SigningKey keyroleA → SigningKey keyroleB Source #
Change the role of a SigningKey
, if the representation permits.
Generating keys
generateSigningKey ∷ Key keyrole ⇒ AsType keyrole → IO (SigningKey keyrole) Source #
Generate a SigningKey
using a seed from operating system entropy.
deterministicSigningKey ∷ Key keyrole ⇒ AsType keyrole → Seed → SigningKey keyrole Source #
Generate a SigningKey
deterministically, given a Seed
. The
required size of the seed is given by deterministicSigningKeySeedSize
.
Hashes
In Bcc most keys are identified by their hash, and hashes are used in many other places.
data family Hash keyrole ∷ Type Source #
Instances
Payment addresses
Constructing and inspecting normal payment addresses
data Address addrtype Source #
Addresses are used as locations where assets live. The address determines the rights needed to spend assets at the address: in particular holding some signing key or being able to satisfy the conditions of a script.
There are currently two types of address:
- Cole addresses, which use the type tag
ColeAddr
; and - Sophie addresses, which use the type tag
SophieAddr
. Notably, Sophie addresses support scripts and stake delegation.
The address type is subtly from the ledger era in which each
address type is valid: while Cole addresses are the only choice in the
Cole era, the Sophie era and all subsequent eras support both Cole and
Sophie addresses. The Address
type param only says the type of the address
(either Cole or Sophie). The AddressInEra
type connects the address type
with the era in which it is supported.
Instances
A type used as a tag to distinguish Cole addresses.
Instances
HasTypeProxy ColeAddr Source # | |
SerialiseAsRawBytes (Address ColeAddr) Source # | |
Defined in Bcc.Api.Address Methods serialiseToRawBytes ∷ Address ColeAddr → ByteString Source # deserialiseFromRawBytes ∷ AsType (Address ColeAddr) → ByteString → Maybe (Address ColeAddr) Source # | |
SerialiseAddress (Address ColeAddr) Source # | |
data AsType ColeAddr Source # | |
Defined in Bcc.Api.Address |
data SophieAddr Source #
A type used as a tag to distinguish Sophie addresses.
Instances
HasTypeProxy SophieAddr Source # | |
Defined in Bcc.Api.Address Associated Types data AsType SophieAddr Source # Methods proxyToAsType ∷ Proxy SophieAddr → AsType SophieAddr Source # | |
SerialiseAsRawBytes (Address SophieAddr) Source # | |
Defined in Bcc.Api.Address Methods serialiseToRawBytes ∷ Address SophieAddr → ByteString Source # deserialiseFromRawBytes ∷ AsType (Address SophieAddr) → ByteString → Maybe (Address SophieAddr) Source # | |
SerialiseAsBech32 (Address SophieAddr) Source # | |
Defined in Bcc.Api.Address Methods bech32PrefixFor ∷ Address SophieAddr → Text Source # bech32PrefixesPermitted ∷ AsType (Address SophieAddr) → [Text] Source # | |
SerialiseAddress (Address SophieAddr) Source # | |
Defined in Bcc.Api.Address Methods serialiseAddress ∷ Address SophieAddr → Text Source # deserialiseAddress ∷ AsType (Address SophieAddr) → Text → Maybe (Address SophieAddr) Source # | |
data AsType SophieAddr Source # | |
Defined in Bcc.Api.Address |
Cole addresses
Cole-era payment keys. Used for Cole addresses and witnessing transactions that spend from these addresses.
These use Ed25519 but with a 32byte "chaincode" used in HD derivation.
The inclusion of the chaincode is a design mistake but one that cannot
be corrected for the Cole era. The Sophie era PaymentKey
s do not include
a chaincode. It is safe to use a zero or random chaincode for new Cole keys.
This is a type level tag, used with other interfaces like Key
.
Instances
data ColeKeyLegacy Source #
Instances
Sophie addresses
makeSophieAddress ∷ NetworkId → PaymentCredential → StakeAddressReference → Address SophieAddr Source #
data PaymentCredential Source #
Constructors
PaymentCredentialByKey (Hash PaymentKey) | |
PaymentCredentialByScript ScriptHash |
Instances
Eq PaymentCredential Source # | |
Defined in Bcc.Api.Address Methods (==) ∷ PaymentCredential → PaymentCredential → Bool Source # (/=) ∷ PaymentCredential → PaymentCredential → Bool Source # | |
Ord PaymentCredential Source # | |
Defined in Bcc.Api.Address Methods compare ∷ PaymentCredential → PaymentCredential → Ordering Source # (<) ∷ PaymentCredential → PaymentCredential → Bool Source # (<=) ∷ PaymentCredential → PaymentCredential → Bool Source # (>) ∷ PaymentCredential → PaymentCredential → Bool Source # (>=) ∷ PaymentCredential → PaymentCredential → Bool Source # max ∷ PaymentCredential → PaymentCredential → PaymentCredential Source # min ∷ PaymentCredential → PaymentCredential → PaymentCredential Source # | |
Show PaymentCredential Source # | |
Defined in Bcc.Api.Address |
newtype StakeAddressPointer Source #
Constructors
StakeAddressPointer | |
Fields
|
Instances
Eq StakeAddressPointer Source # | |
Defined in Bcc.Api.Address Methods (==) ∷ StakeAddressPointer → StakeAddressPointer → Bool Source # (/=) ∷ StakeAddressPointer → StakeAddressPointer → Bool Source # | |
Show StakeAddressPointer Source # | |
Defined in Bcc.Api.Address |
data StakeAddressReference Source #
Constructors
StakeAddressByValue StakeCredential | |
StakeAddressByPointer StakeAddressPointer | |
NoStakeAddress |
Instances
Eq StakeAddressReference Source # | |
Defined in Bcc.Api.Address Methods (==) ∷ StakeAddressReference → StakeAddressReference → Bool Source # (/=) ∷ StakeAddressReference → StakeAddressReference → Bool Source # | |
Show StakeAddressReference Source # | |
Defined in Bcc.Api.Address |
data PaymentKey Source #
Sophie-era payment keys. Used for Sophie payment addresses and witnessing transactions that spend from these addresses.
This is a type level tag, used with other interfaces like Key
.
Instances
data PaymentExtendedKey Source #
Sophie-era payment keys using extended ed25519 cryptographic keys.
They can be used for Sophie payment addresses and witnessing transactions that spend from these addresses.
These extended keys are used by HD wallets. So this type provides interoperability with HD wallets. The ITN CLI also supported this key type.
The extended verification keys can be converted (via castVerificationKey
)
to ordinary keys (i.e. VerificationKey
PaymentKey
) but this is not the
case for the signing keys. The signing keys can be used to witness
transactions directly, with verification via their non-extended verification
key (VerificationKey
PaymentKey
).
This is a type level tag, used with other interfaces like Key
.
Instances
Addresses in any era
data AddressAny Source #
Either a Cole address or a Sophie address.
Sometimes we need to be able to work with either of the two types of address (Cole or Sophie addresses), but without reference to an era in which the address will be used. This type serves that purpose.
Constructors
AddressCole !(Address ColeAddr) | |
AddressSophie !(Address SophieAddr) |
Instances
Eq AddressAny Source # | |
Defined in Bcc.Api.Address | |
Ord AddressAny Source # | |
Defined in Bcc.Api.Address Methods compare ∷ AddressAny → AddressAny → Ordering Source # (<) ∷ AddressAny → AddressAny → Bool Source # (<=) ∷ AddressAny → AddressAny → Bool Source # (>) ∷ AddressAny → AddressAny → Bool Source # (>=) ∷ AddressAny → AddressAny → Bool Source # max ∷ AddressAny → AddressAny → AddressAny Source # min ∷ AddressAny → AddressAny → AddressAny Source # | |
Show AddressAny Source # | |
Defined in Bcc.Api.Address | |
HasTypeProxy AddressAny Source # | |
Defined in Bcc.Api.Address Associated Types data AsType AddressAny Source # Methods proxyToAsType ∷ Proxy AddressAny → AsType AddressAny Source # | |
SerialiseAsRawBytes AddressAny Source # | |
Defined in Bcc.Api.Address | |
SerialiseAddress AddressAny Source # | |
Defined in Bcc.Api.Address Methods serialiseAddress ∷ AddressAny → Text Source # deserialiseAddress ∷ AsType AddressAny → Text → Maybe AddressAny Source # | |
data AsType AddressAny Source # | |
Defined in Bcc.Api.Address |
Addresses in specific eras
data AddressInEra era where Source #
An Address
that can be used in a particular ledger era.
All current ledger eras support Cole addresses. Sophie addresses are
supported in the SophieEra
and later eras.
Constructors
AddressInEra ∷ AddressTypeInEra addrtype era → Address addrtype → AddressInEra era |
Instances
isKeyAddress ∷ AddressInEra era → Bool Source #
Is the UTxO at the address only spendable via a key witness.
data AddressTypeInEra addrtype era where Source #
Constructors
ColeAddressInAnyEra ∷ AddressTypeInEra ColeAddr era | |
SophieAddressInEra ∷ SophieBasedEra era → AddressTypeInEra SophieAddr era |
Instances
Show (AddressTypeInEra addrtype era) Source # | |
Defined in Bcc.Api.Address |
coleAddressInEra ∷ Address ColeAddr → AddressInEra era Source #
sophieAddressInEra ∷ IsSophieBasedEra era ⇒ Address SophieAddr → AddressInEra era Source #
anyAddressInSophieBasedEra ∷ IsSophieBasedEra era ⇒ AddressAny → AddressInEra era Source #
anyAddressInEra ∷ BccEra era → AddressAny → Maybe (AddressInEra era) Source #
toAddressAny ∷ Address addr → AddressAny Source #
makeSophieAddressInEra ∷ IsSophieBasedEra era ⇒ NetworkId → PaymentCredential → StakeAddressReference → AddressInEra era Source #
Stake addresses
Constructing and inspecting stake addresses
data StakeAddress Source #
Instances
data StakeCredential Source #
Instances
Eq StakeCredential Source # | |
Defined in Bcc.Api.Address Methods | |
Ord StakeCredential Source # | |
Defined in Bcc.Api.Address Methods compare ∷ StakeCredential → StakeCredential → Ordering Source # (<) ∷ StakeCredential → StakeCredential → Bool Source # (<=) ∷ StakeCredential → StakeCredential → Bool Source # (>) ∷ StakeCredential → StakeCredential → Bool Source # (>=) ∷ StakeCredential → StakeCredential → Bool Source # max ∷ StakeCredential → StakeCredential → StakeCredential Source # min ∷ StakeCredential → StakeCredential → StakeCredential Source # | |
Show StakeCredential Source # | |
Defined in Bcc.Api.Address |
Instances
data StakeExtendedKey Source #
Sophie-era stake keys using extended ed25519 cryptographic keys.
They can be used for Sophie stake addresses and witnessing transactions that use stake addresses.
These extended keys are used by HD wallets. So this type provides interoperability with HD wallets. The ITN CLI also supported this key type.
The extended verification keys can be converted (via castVerificationKey
)
to ordinary keys (i.e. VerificationKey
StakeKey
) but this is not the
case for the signing keys. The signing keys can be used to witness
transactions directly, with verification via their non-extended verification
key (VerificationKey
StakeKey
).
This is a type level tag, used with other interfaces like Key
.
Instances
Currency values
Bcc / Entropic
Instances
Enum Entropic Source # | |
Defined in Bcc.Api.Value Methods succ ∷ Entropic → Entropic Source # pred ∷ Entropic → Entropic Source # toEnum ∷ Int → Entropic Source # fromEnum ∷ Entropic → Int Source # enumFrom ∷ Entropic → [Entropic] Source # enumFromThen ∷ Entropic → Entropic → [Entropic] Source # enumFromTo ∷ Entropic → Entropic → [Entropic] Source # enumFromThenTo ∷ Entropic → Entropic → Entropic → [Entropic] Source # | |
Eq Entropic Source # | |
Num Entropic Source # | |
Defined in Bcc.Api.Value | |
Ord Entropic Source # | |
Show Entropic Source # | |
Semigroup Entropic Source # | |
Monoid Entropic Source # | |
FromJSON Entropic Source # | |
Defined in Bcc.Api.Value | |
ToJSON Entropic Source # | |
Defined in Bcc.Api.Value Methods toEncoding ∷ Entropic → Encoding # toJSONList ∷ [Entropic] → Value # toEncodingList ∷ [Entropic] → Encoding # | |
FromCBOR Entropic Source # | |
ToCBOR Entropic Source # | |
Multi-asset values
Instances
Eq Quantity Source # | |
Num Quantity Source # | |
Defined in Bcc.Api.Value | |
Ord Quantity Source # | |
Show Quantity Source # | |
Semigroup Quantity Source # | |
Monoid Quantity Source # | |
FromJSON Quantity Source # | |
Defined in Bcc.Api.Value | |
ToJSON Quantity Source # | |
Defined in Bcc.Api.Value Methods toEncoding ∷ Quantity → Encoding # toJSONList ∷ [Quantity] → Value # toEncodingList ∷ [Quantity] → Encoding # |
Constructors
PolicyId ScriptHash |
Instances
Eq PolicyId Source # | |
Ord PolicyId Source # | |
Show PolicyId Source # | |
IsString PolicyId Source # | |
Defined in Bcc.Api.Value Methods fromString ∷ String → PolicyId Source # | |
FromJSON PolicyId Source # | |
Defined in Bcc.Api.Value | |
ToJSON PolicyId Source # | |
Defined in Bcc.Api.Value Methods toEncoding ∷ PolicyId → Encoding # toJSONList ∷ [PolicyId] → Value # toEncodingList ∷ [PolicyId] → Encoding # | |
HasTypeProxy PolicyId Source # | |
SerialiseAsRawBytes PolicyId Source # | |
Defined in Bcc.Api.Value Methods serialiseToRawBytes ∷ PolicyId → ByteString Source # deserialiseFromRawBytes ∷ AsType PolicyId → ByteString → Maybe PolicyId Source # | |
data AsType PolicyId Source # | |
Defined in Bcc.Api.Value |
scriptPolicyId ∷ Script lang → PolicyId Source #
Constructors
AssetName ByteString |
Instances
Eq AssetName Source # | |
Ord AssetName Source # | |
Defined in Bcc.Api.Value | |
Show AssetName Source # | |
IsString AssetName Source # | |
Defined in Bcc.Api.Value Methods fromString ∷ String → AssetName Source # | |
FromJSON AssetName Source # | |
Defined in Bcc.Api.Value | |
ToJSON AssetName Source # | |
Defined in Bcc.Api.Value Methods toEncoding ∷ AssetName → Encoding # toJSONList ∷ [AssetName] → Value # toEncodingList ∷ [AssetName] → Encoding # | |
FromJSONKey AssetName Source # | |
Defined in Bcc.Api.Value | |
ToJSONKey AssetName Source # | |
Defined in Bcc.Api.Value | |
HasTypeProxy AssetName Source # | |
SerialiseAsRawBytes AssetName Source # | |
Defined in Bcc.Api.Value | |
data AsType AssetName Source # | |
Defined in Bcc.Api.Value |
Constructors
BccAssetId | |
AssetId !PolicyId !AssetName |
negateValue ∷ Value → Value Source #
This lets you write a - b
as a <> negateValue b
.
newtype ValueNestedRep Source #
Constructors
ValueNestedRep [ValueNestedBundle] |
Instances
Eq ValueNestedRep Source # | |
Defined in Bcc.Api.Value Methods (==) ∷ ValueNestedRep → ValueNestedRep → Bool Source # (/=) ∷ ValueNestedRep → ValueNestedRep → Bool Source # | |
Ord ValueNestedRep Source # | |
Defined in Bcc.Api.Value Methods compare ∷ ValueNestedRep → ValueNestedRep → Ordering Source # (<) ∷ ValueNestedRep → ValueNestedRep → Bool Source # (<=) ∷ ValueNestedRep → ValueNestedRep → Bool Source # (>) ∷ ValueNestedRep → ValueNestedRep → Bool Source # (>=) ∷ ValueNestedRep → ValueNestedRep → Bool Source # max ∷ ValueNestedRep → ValueNestedRep → ValueNestedRep Source # min ∷ ValueNestedRep → ValueNestedRep → ValueNestedRep Source # | |
Show ValueNestedRep Source # | |
Defined in Bcc.Api.Value | |
FromJSON ValueNestedRep Source # | |
Defined in Bcc.Api.Value | |
ToJSON ValueNestedRep Source # | |
Defined in Bcc.Api.Value Methods toJSON ∷ ValueNestedRep → Value # toEncoding ∷ ValueNestedRep → Encoding # toJSONList ∷ [ValueNestedRep] → Value # toEncodingList ∷ [ValueNestedRep] → Encoding # |
data ValueNestedBundle Source #
A bundle within a ValueNestedRep
for a single PolicyId
, or for the
special case of bcc.
Constructors
ValueNestedBundleBcc Quantity | |
ValueNestedBundle PolicyId (Map AssetName Quantity) |
Instances
Eq ValueNestedBundle Source # | |
Defined in Bcc.Api.Value Methods (==) ∷ ValueNestedBundle → ValueNestedBundle → Bool Source # (/=) ∷ ValueNestedBundle → ValueNestedBundle → Bool Source # | |
Ord ValueNestedBundle Source # | |
Defined in Bcc.Api.Value Methods compare ∷ ValueNestedBundle → ValueNestedBundle → Ordering Source # (<) ∷ ValueNestedBundle → ValueNestedBundle → Bool Source # (<=) ∷ ValueNestedBundle → ValueNestedBundle → Bool Source # (>) ∷ ValueNestedBundle → ValueNestedBundle → Bool Source # (>=) ∷ ValueNestedBundle → ValueNestedBundle → Bool Source # max ∷ ValueNestedBundle → ValueNestedBundle → ValueNestedBundle Source # min ∷ ValueNestedBundle → ValueNestedBundle → ValueNestedBundle Source # | |
Show ValueNestedBundle Source # | |
Defined in Bcc.Api.Value |
Bcc / Entropic within multi-asset values
valueToEntropic ∷ Value → Maybe Entropic Source #
Check if the Value
consists of only Entropic
and no other assets,
and if so then return the Entropic.
See also selectEntropic
to select the Entropic quantity from the Value,
ignoring other assets.
Blocks
Blocks in the context of an era
A blockchain block in a particular Bcc era.
Bundled Patterns
pattern Block ∷ BlockHeader → [Tx era] → Block era | A block consists of a header and a body containing transactions. |
data BlockHeader Source #
Constructors
BlockHeader !SlotNo !(Hash BlockHeader) !BlockNo |
Instances
Points on the chain
data ChainPoint Source #
Constructors
ChainPointAtGenesis | |
ChainPoint !SlotNo !(Hash BlockHeader) |
Instances
Eq ChainPoint Source # | |
Defined in Bcc.Api.Block | |
Show ChainPoint Source # | |
Defined in Bcc.Api.Block |
Instances
Tip of the chain
This is like a ChainPoint
but is conventionally used for the tip of the
chain: that is the most recent block at the end of the chain.
It also carries the BlockNo
of the chain tip.
Constructors
ChainTipAtGenesis | |
ChainTip !SlotNo !(Hash BlockHeader) !BlockNo |
Instances
Building transactions
Building transactions
Constructing and inspecting transactions
Transaction bodies
data TxBody era where Source #
Bundled Patterns
pattern TxBody ∷ TxBodyContent ViewTx era → TxBody era |
Instances
Eq (TxBody era) Source # | |
Show (TxBody era) Source # | |
HasTypeProxy era ⇒ HasTypeProxy (TxBody era) Source # | |
IsBccEra era ⇒ SerialiseAsCBOR (TxBody era) Source # | |
Defined in Bcc.Api.TxBody Methods serialiseToCBOR ∷ TxBody era → ByteString Source # deserialiseFromCBOR ∷ AsType (TxBody era) → ByteString → Either DecoderError (TxBody era) Source # | |
IsBccEra era ⇒ HasTextEnvelope (TxBody era) Source # | |
Defined in Bcc.Api.TxBody Methods textEnvelopeType ∷ AsType (TxBody era) → TextEnvelopeType Source # textEnvelopeDefaultDescr ∷ TxBody era → TextEnvelopeDescr Source # | |
data AsType (TxBody era) Source # | |
Defined in Bcc.Api.TxBody |
makeTransactionBody ∷ ∀ era. IsBccEra era ⇒ TxBodyContent BuildTx era → Either TxBodyError (TxBody era) Source #
data TxBodyContent build era Source #
Constructors
TxBodyContent | |
Fields
|
data TxBodyError Source #
Constructors
Instances
Show TxBodyError Source # | |
Defined in Bcc.Api.TxBody | |
Error TxBodyError Source # | |
Defined in Bcc.Api.TxBody Methods |
data TxBodyScriptData era where Source #
Constructors
TxBodyNoScriptData ∷ TxBodyScriptData era | |
TxBodyScriptData ∷ ScriptDataSupportedInEra era → TxDats (SophieLedgerEra era) → Redeemers (SophieLedgerEra era) → TxBodyScriptData era |
Instances
Eq (TxBodyScriptData era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxBodyScriptData era → TxBodyScriptData era → Bool Source # (/=) ∷ TxBodyScriptData era → TxBodyScriptData era → Bool Source # | |
Show (TxBodyScriptData era) Source # | |
Defined in Bcc.Api.TxBody |
Transaction Ids
Constructors
TxId (Hash StandardCrypto EraIndependentTxBody) |
Instances
Eq TxId Source # | |
Ord TxId Source # | |
Show TxId Source # | |
IsString TxId Source # | |
Defined in Bcc.Api.TxBody Methods fromString ∷ String → TxId Source # | |
FromJSON TxId Source # | |
Defined in Bcc.Api.TxBody | |
ToJSON TxId Source # | |
Defined in Bcc.Api.TxBody Methods toEncoding ∷ TxId → Encoding # toJSONList ∷ [TxId] → Value # toEncodingList ∷ [TxId] → Encoding # | |
FromJSONKey TxId Source # | |
Defined in Bcc.Api.TxBody | |
ToJSONKey TxId Source # | |
Defined in Bcc.Api.TxBody | |
HasTypeProxy TxId Source # | |
SerialiseAsRawBytes TxId Source # | |
Defined in Bcc.Api.TxBody Methods serialiseToRawBytes ∷ TxId → ByteString Source # deserialiseFromRawBytes ∷ AsType TxId → ByteString → Maybe TxId Source # | |
data AsType TxId Source # | |
Defined in Bcc.Api.TxBody |
Transaction inputs
Instances
Transaction outputs
Constructors
TxOut (AddressInEra era) (TxOutValue era) (TxOutDatumHash era) |
Instances
Eq (TxOut era) Source # | |
Show (TxOut era) Source # | |
Generic (TxOut era) Source # | |
IsBccEra era ⇒ ToJSON (TxOut era) Source # | |
Defined in Bcc.Api.TxBody Methods toEncoding ∷ TxOut era → Encoding # toJSONList ∷ [TxOut era] → Value # toEncodingList ∷ [TxOut era] → Encoding # | |
type Rep (TxOut era) Source # | |
Defined in Bcc.Api.TxBody type Rep (TxOut era) = D1 ('MetaData "TxOut" "Bcc.Api.TxBody" "bcc-api-1.99.0-inplace" 'False) (C1 ('MetaCons "TxOut" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AddressInEra era)) :*: (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (TxOutValue era)) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (TxOutDatumHash era))))) |
data TxOutValue era where Source #
Constructors
TxOutBccOnly ∷ OnlyBccSupportedInEra era → Entropic → TxOutValue era | |
TxOutValue ∷ MultiAssetSupportedInEra era → Value → TxOutValue era |
Instances
serialiseAddressForTxOut ∷ AddressInEra era → Text Source #
data TxOutDatumHash era where Source #
Constructors
TxOutDatumHashNone ∷ TxOutDatumHash era | |
TxOutDatumHash ∷ ScriptDataSupportedInEra era → Hash ScriptData → TxOutDatumHash era |
Instances
Other transaction body types
data TxInsCollateral era where Source #
Constructors
TxInsCollateralNone ∷ TxInsCollateral era | |
TxInsCollateral ∷ CollateralSupportedInEra era → [TxIn] → TxInsCollateral era |
Instances
Eq (TxInsCollateral era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxInsCollateral era → TxInsCollateral era → Bool Source # (/=) ∷ TxInsCollateral era → TxInsCollateral era → Bool Source # | |
Show (TxInsCollateral era) Source # | |
Defined in Bcc.Api.TxBody |
Constructors
TxFeeImplicit ∷ TxFeesImplicitInEra era → TxFee era | |
TxFeeExplicit ∷ TxFeesExplicitInEra era → Entropic → TxFee era |
data TxValidityLowerBound era where Source #
Constructors
TxValidityNoLowerBound ∷ TxValidityLowerBound era | |
TxValidityLowerBound ∷ ValidityLowerBoundSupportedInEra era → SlotNo → TxValidityLowerBound era |
Instances
Eq (TxValidityLowerBound era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxValidityLowerBound era → TxValidityLowerBound era → Bool Source # (/=) ∷ TxValidityLowerBound era → TxValidityLowerBound era → Bool Source # | |
Show (TxValidityLowerBound era) Source # | |
Defined in Bcc.Api.TxBody |
data TxValidityUpperBound era where Source #
This was formerly known as the TTL.
Constructors
TxValidityNoUpperBound ∷ ValidityNoUpperBoundSupportedInEra era → TxValidityUpperBound era | |
TxValidityUpperBound ∷ ValidityUpperBoundSupportedInEra era → SlotNo → TxValidityUpperBound era |
Instances
Eq (TxValidityUpperBound era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxValidityUpperBound era → TxValidityUpperBound era → Bool Source # (/=) ∷ TxValidityUpperBound era → TxValidityUpperBound era → Bool Source # | |
Show (TxValidityUpperBound era) Source # | |
Defined in Bcc.Api.TxBody |
Instances
Bounded SlotNo | |
Enum SlotNo | |
Defined in Bcc.Slotting.Slot Methods succ ∷ SlotNo → SlotNo Source # pred ∷ SlotNo → SlotNo Source # toEnum ∷ Int → SlotNo Source # fromEnum ∷ SlotNo → Int Source # enumFrom ∷ SlotNo → [SlotNo] Source # enumFromThen ∷ SlotNo → SlotNo → [SlotNo] Source # enumFromTo ∷ SlotNo → SlotNo → [SlotNo] Source # enumFromThenTo ∷ SlotNo → SlotNo → SlotNo → [SlotNo] Source # | |
Eq SlotNo | |
Num SlotNo | |
Ord SlotNo | |
Defined in Bcc.Slotting.Slot | |
Show SlotNo | |
Generic SlotNo | |
NFData SlotNo | |
Defined in Bcc.Slotting.Slot | |
FromJSON SlotNo | |
Defined in Bcc.Slotting.Slot | |
NoThunks SlotNo | |
ToJSON SlotNo | |
Defined in Bcc.Slotting.Slot Methods toEncoding ∷ SlotNo → Encoding # toJSONList ∷ [SlotNo] → Value # toEncodingList ∷ [SlotNo] → Encoding # | |
FromCBOR SlotNo | |
ToCBOR SlotNo | |
Serialise SlotNo | |
Defined in Bcc.Slotting.Slot | |
Condense SlotNo | |
Defined in Shardagnostic.Consensus.Util.Condense | |
HasField "ttl" (TxBody era) SlotNo | |
Defined in Sophie.Spec.Ledger.TxBody | |
HasHeader block ⇒ Anchorable (WithOrigin SlotNo) (Anchor block) block | |
Defined in Shardagnostic.Network.AnchoredFragment Methods asAnchor ∷ block → Anchor block getAnchorMeasure ∷ Proxy block → Anchor block → WithOrigin SlotNo | |
Anchorable (WithOrigin SlotNo) (HeaderState blk) (HeaderState blk) | |
Defined in Shardagnostic.Consensus.HeaderValidation Methods asAnchor ∷ HeaderState blk → HeaderState blk getAnchorMeasure ∷ Proxy (HeaderState blk) → HeaderState blk → WithOrigin SlotNo | |
GetTip l ⇒ Anchorable (WithOrigin SlotNo) (Checkpoint l) (Checkpoint l) | |
Defined in Shardagnostic.Consensus.Storage.LedgerDB.InMemory Methods asAnchor ∷ Checkpoint l → Checkpoint l getAnchorMeasure ∷ Proxy (Checkpoint l) → Checkpoint l → WithOrigin SlotNo | |
Embed (StakeCreds era) (Map (Credential 'Staking era) SlotNo) | |
HasExp (StakeCreds era) (Map (Credential 'Staking era) SlotNo) | |
Defined in Sophie.Spec.Ledger.TxBody | |
type Rep SlotNo | |
Defined in Bcc.Slotting.Slot type Rep SlotNo = D1 ('MetaData "SlotNo" "Bcc.Slotting.Slot" "bcc-slotting-0.1.0.0-31796ee1b38506581e134229951d26120392aac1ce6c978fbf7438ab37ed4173" 'True) (C1 ('MetaCons "SlotNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSlotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64))) |
newtype EpochSlots #
Constructors
EpochSlots | |
Fields |
Instances
data TxMetadataInEra era where Source #
Constructors
TxMetadataNone ∷ TxMetadataInEra era | |
TxMetadataInEra ∷ TxMetadataSupportedInEra era → TxMetadata → TxMetadataInEra era |
Instances
Eq (TxMetadataInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxMetadataInEra era → TxMetadataInEra era → Bool Source # (/=) ∷ TxMetadataInEra era → TxMetadataInEra era → Bool Source # | |
Show (TxMetadataInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data TxAuxScripts era where Source #
Constructors
TxAuxScriptsNone ∷ TxAuxScripts era | |
TxAuxScripts ∷ AuxScriptsSupportedInEra era → [ScriptInEra era] → TxAuxScripts era |
Instances
Eq (TxAuxScripts era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxAuxScripts era → TxAuxScripts era → Bool Source # (/=) ∷ TxAuxScripts era → TxAuxScripts era → Bool Source # | |
Show (TxAuxScripts era) Source # | |
Defined in Bcc.Api.TxBody |
data TxExtraScriptData era where Source #
Constructors
TxExtraScriptDataNone ∷ TxExtraScriptData era | |
TxExtraScriptData ∷ ScriptDataSupportedInEra era → [ScriptData] → TxExtraScriptData era |
Instances
Eq (TxExtraScriptData era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxExtraScriptData era → TxExtraScriptData era → Bool Source # (/=) ∷ TxExtraScriptData era → TxExtraScriptData era → Bool Source # | |
Show (TxExtraScriptData era) Source # | |
Defined in Bcc.Api.TxBody |
data TxExtraKeyWitnesses era where Source #
Constructors
TxExtraKeyWitnessesNone ∷ TxExtraKeyWitnesses era | |
TxExtraKeyWitnesses ∷ TxExtraKeyWitnessesSupportedInEra era → [Hash PaymentKey] → TxExtraKeyWitnesses era |
Instances
Eq (TxExtraKeyWitnesses era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxExtraKeyWitnesses era → TxExtraKeyWitnesses era → Bool Source # (/=) ∷ TxExtraKeyWitnesses era → TxExtraKeyWitnesses era → Bool Source # | |
Show (TxExtraKeyWitnesses era) Source # | |
Defined in Bcc.Api.TxBody |
data TxWithdrawals build era where Source #
Constructors
TxWithdrawalsNone ∷ TxWithdrawals build era | |
TxWithdrawals ∷ WithdrawalsSupportedInEra era → [(StakeAddress, Entropic, BuildTxWith build (Witness WitCtxStake era))] → TxWithdrawals build era |
Instances
Eq (TxWithdrawals build era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxWithdrawals build era → TxWithdrawals build era → Bool Source # (/=) ∷ TxWithdrawals build era → TxWithdrawals build era → Bool Source # | |
Show (TxWithdrawals build era) Source # | |
Defined in Bcc.Api.TxBody |
data TxCertificates build era where Source #
Constructors
TxCertificatesNone ∷ TxCertificates build era | |
TxCertificates ∷ CertificatesSupportedInEra era → [Certificate] → BuildTxWith build (Map StakeCredential (Witness WitCtxStake era)) → TxCertificates build era |
Instances
Eq (TxCertificates build era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxCertificates build era → TxCertificates build era → Bool Source # (/=) ∷ TxCertificates build era → TxCertificates build era → Bool Source # | |
Show (TxCertificates build era) Source # | |
Defined in Bcc.Api.TxBody |
data TxUpdateProposal era where Source #
Constructors
TxUpdateProposalNone ∷ TxUpdateProposal era | |
TxUpdateProposal ∷ UpdateProposalSupportedInEra era → UpdateProposal → TxUpdateProposal era |
Instances
Eq (TxUpdateProposal era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxUpdateProposal era → TxUpdateProposal era → Bool Source # (/=) ∷ TxUpdateProposal era → TxUpdateProposal era → Bool Source # | |
Show (TxUpdateProposal era) Source # | |
Defined in Bcc.Api.TxBody |
data TxMintValue build era where Source #
Constructors
TxMintNone ∷ TxMintValue build era | |
TxMintValue ∷ MultiAssetSupportedInEra era → Value → BuildTxWith build (Map PolicyId (ScriptWitness WitCtxMint era)) → TxMintValue build era |
Instances
Eq (TxMintValue build era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxMintValue build era → TxMintValue build era → Bool Source # (/=) ∷ TxMintValue build era → TxMintValue build era → Bool Source # | |
Show (TxMintValue build era) Source # | |
Defined in Bcc.Api.TxBody |
Building vs viewing transactions
data BuildTxWith build a where Source #
Constructors
ViewTx ∷ BuildTxWith ViewTx a | |
BuildTxWith ∷ a → BuildTxWith BuildTx a |
Instances
Eq a ⇒ Eq (BuildTxWith build a) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ BuildTxWith build a → BuildTxWith build a → Bool Source # (/=) ∷ BuildTxWith build a → BuildTxWith build a → Bool Source # | |
Show a ⇒ Show (BuildTxWith build a) Source # | |
Defined in Bcc.Api.TxBody |
Era-dependent transaction body features
data CollateralSupportedInEra era where Source #
A representation of whether the era supports transactions with inputs used only for collateral for script fees.
The Aurum and subsequent eras support collateral inputs.
Constructors
CollateralInAurumEra ∷ CollateralSupportedInEra AurumEra |
Instances
Eq (CollateralSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ CollateralSupportedInEra era → CollateralSupportedInEra era → Bool Source # (/=) ∷ CollateralSupportedInEra era → CollateralSupportedInEra era → Bool Source # | |
Show (CollateralSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data MultiAssetSupportedInEra era where Source #
A representation of whether the era supports multi-asset transactions.
The Jen and subsequent eras support multi-asset transactions.
The negation of this is OnlyBccSupportedInEra
.
Constructors
MultiAssetInJenEra ∷ MultiAssetSupportedInEra JenEra | Multi-asset transactions are supported in the |
MultiAssetInAurumEra ∷ MultiAssetSupportedInEra AurumEra | Multi-asset transactions are supported in the |
Instances
Eq (MultiAssetSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ MultiAssetSupportedInEra era → MultiAssetSupportedInEra era → Bool Source # (/=) ∷ MultiAssetSupportedInEra era → MultiAssetSupportedInEra era → Bool Source # | |
Show (MultiAssetSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody | |
ToJSON (MultiAssetSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods toJSON ∷ MultiAssetSupportedInEra era → Value # toEncoding ∷ MultiAssetSupportedInEra era → Encoding # toJSONList ∷ [MultiAssetSupportedInEra era] → Value # toEncodingList ∷ [MultiAssetSupportedInEra era] → Encoding # |
data OnlyBccSupportedInEra era where Source #
A representation of whether the era supports only bcc transactions.
Prior to the Jen era only bcc transactions are supported. Multi-assets are supported from the Jen era onwards.
This is the negation of MultiAssetSupportedInEra
. It exists since we need
evidence to be positive.
Constructors
BccOnlyInColeEra ∷ OnlyBccSupportedInEra ColeEra | |
BccOnlyInSophieEra ∷ OnlyBccSupportedInEra SophieEra | |
BccOnlyInEvieEra ∷ OnlyBccSupportedInEra EvieEra |
Instances
Eq (OnlyBccSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ OnlyBccSupportedInEra era → OnlyBccSupportedInEra era → Bool Source # (/=) ∷ OnlyBccSupportedInEra era → OnlyBccSupportedInEra era → Bool Source # | |
Show (OnlyBccSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data TxFeesExplicitInEra era where Source #
A representation of whether the era requires explicitly specified fees in transactions.
The Cole era tx fees are implicit (as the difference bettween the sum of outputs and sum of inputs), but all later eras the fees are specified in the transaction explicitly.
Constructors
Instances
Eq (TxFeesExplicitInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxFeesExplicitInEra era → TxFeesExplicitInEra era → Bool Source # (/=) ∷ TxFeesExplicitInEra era → TxFeesExplicitInEra era → Bool Source # | |
Show (TxFeesExplicitInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data TxFeesImplicitInEra era where Source #
A representation of whether the era requires implicitly specified fees in transactions.
This is the negation of TxFeesExplicitInEra
.
Constructors
TxFeesImplicitInColeEra ∷ TxFeesImplicitInEra ColeEra |
Instances
Eq (TxFeesImplicitInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxFeesImplicitInEra era → TxFeesImplicitInEra era → Bool Source # (/=) ∷ TxFeesImplicitInEra era → TxFeesImplicitInEra era → Bool Source # | |
Show (TxFeesImplicitInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data ValidityUpperBoundSupportedInEra era where Source #
A representation of whether the era supports transactions with an upper bound on the range of slots in which they are valid.
The Sophie and subsequent eras support an upper bound on the validity range. In the Sophie era specifically it is actually required. It is optional in later eras.
Constructors
Instances
Eq (ValidityUpperBoundSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ ValidityUpperBoundSupportedInEra era → ValidityUpperBoundSupportedInEra era → Bool Source # (/=) ∷ ValidityUpperBoundSupportedInEra era → ValidityUpperBoundSupportedInEra era → Bool Source # | |
Show (ValidityUpperBoundSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data ValidityNoUpperBoundSupportedInEra era where Source #
A representation of whether the era supports transactions having no upper bound on the range of slots in which they are valid.
Note that the SophieEra
does not support omitting a validity upper
bound. It was introduced as a required field in Sophie and then made
optional in Evie and subsequent eras.
The Cole era supports this by virtue of the fact that it does not support validity ranges at all.
Constructors
Instances
Eq (ValidityNoUpperBoundSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ ValidityNoUpperBoundSupportedInEra era → ValidityNoUpperBoundSupportedInEra era → Bool Source # (/=) ∷ ValidityNoUpperBoundSupportedInEra era → ValidityNoUpperBoundSupportedInEra era → Bool Source # | |
Show (ValidityNoUpperBoundSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data ValidityLowerBoundSupportedInEra era where Source #
A representation of whether the era supports transactions with a lower bound on the range of slots in which they are valid.
The Evie and subsequent eras support an optional lower bound on the
validity range. No equivalent of ValidityNoUpperBoundSupportedInEra
is
needed since all eras support having no lower bound.
Constructors
Instances
Eq (ValidityLowerBoundSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ ValidityLowerBoundSupportedInEra era → ValidityLowerBoundSupportedInEra era → Bool Source # (/=) ∷ ValidityLowerBoundSupportedInEra era → ValidityLowerBoundSupportedInEra era → Bool Source # | |
Show (ValidityLowerBoundSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data TxMetadataSupportedInEra era where Source #
A representation of whether the era supports transaction metadata.
Transaction metadata is supported from the Sophie era onwards.
Constructors
Instances
Eq (TxMetadataSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxMetadataSupportedInEra era → TxMetadataSupportedInEra era → Bool Source # (/=) ∷ TxMetadataSupportedInEra era → TxMetadataSupportedInEra era → Bool Source # | |
Show (TxMetadataSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data AuxScriptsSupportedInEra era where Source #
A representation of whether the era supports auxiliary scripts in transactions.
Auxiliary scripts are supported from the Evie era onwards.
Constructors
AuxScriptsInEvieEra ∷ AuxScriptsSupportedInEra EvieEra | |
AuxScriptsInJenEra ∷ AuxScriptsSupportedInEra JenEra | |
AuxScriptsInAurumEra ∷ AuxScriptsSupportedInEra AurumEra |
Instances
Eq (AuxScriptsSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ AuxScriptsSupportedInEra era → AuxScriptsSupportedInEra era → Bool Source # (/=) ∷ AuxScriptsSupportedInEra era → AuxScriptsSupportedInEra era → Bool Source # | |
Show (AuxScriptsSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data TxExtraKeyWitnessesSupportedInEra era where Source #
A representation of whether the era supports transactions that specify in the body that they need extra key witnesses, and where this fact is visible to scripts.
Extra key witnesses visible to scripts are supported from the Aurum era onwards.
Instances
Eq (TxExtraKeyWitnessesSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxExtraKeyWitnessesSupportedInEra era → TxExtraKeyWitnessesSupportedInEra era → Bool Source # (/=) ∷ TxExtraKeyWitnessesSupportedInEra era → TxExtraKeyWitnessesSupportedInEra era → Bool Source # | |
Show (TxExtraKeyWitnessesSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data ScriptDataSupportedInEra era where Source #
A representation of whether the era supports multi-asset transactions.
The Jen and subsequent eras support multi-asset transactions.
The negation of this is OnlyBccSupportedInEra
.
Constructors
ScriptDataInAurumEra ∷ ScriptDataSupportedInEra AurumEra | Script data is supported in transactions in the |
Instances
Eq (ScriptDataSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ ScriptDataSupportedInEra era → ScriptDataSupportedInEra era → Bool Source # (/=) ∷ ScriptDataSupportedInEra era → ScriptDataSupportedInEra era → Bool Source # | |
Show (ScriptDataSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data WithdrawalsSupportedInEra era where Source #
A representation of whether the era supports withdrawals from reward accounts.
The Sophie and subsequent eras support stake addresses, their associated reward accounts and support for withdrawals from them.
Constructors
Instances
Eq (WithdrawalsSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ WithdrawalsSupportedInEra era → WithdrawalsSupportedInEra era → Bool Source # (/=) ∷ WithdrawalsSupportedInEra era → WithdrawalsSupportedInEra era → Bool Source # | |
Show (WithdrawalsSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data CertificatesSupportedInEra era where Source #
A representation of whether the era supports Certificate
s embedded in
transactions.
The Sophie and subsequent eras support such certificates.
Constructors
Instances
Eq (CertificatesSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ CertificatesSupportedInEra era → CertificatesSupportedInEra era → Bool Source # (/=) ∷ CertificatesSupportedInEra era → CertificatesSupportedInEra era → Bool Source # | |
Show (CertificatesSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
data UpdateProposalSupportedInEra era where Source #
A representation of whether the era supports UpdateProposal
s embedded in
transactions.
The Sophie and subsequent eras support such update proposals. They Cole era has a notion of an update proposal, but it is a standalone chain object and not embedded in a transaction.
Constructors
Instances
Eq (UpdateProposalSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ UpdateProposalSupportedInEra era → UpdateProposalSupportedInEra era → Bool Source # (/=) ∷ UpdateProposalSupportedInEra era → UpdateProposalSupportedInEra era → Bool Source # | |
Show (UpdateProposalSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
Feature availability functions
collateralSupportedInEra ∷ BccEra era → Maybe (CollateralSupportedInEra era) Source #
multiAssetSupportedInEra ∷ BccEra era → Either (OnlyBccSupportedInEra era) (MultiAssetSupportedInEra era) Source #
txFeesExplicitInEra ∷ BccEra era → Either (TxFeesImplicitInEra era) (TxFeesExplicitInEra era) Source #
validityUpperBoundSupportedInEra ∷ BccEra era → Maybe (ValidityUpperBoundSupportedInEra era) Source #
validityNoUpperBoundSupportedInEra ∷ BccEra era → Maybe (ValidityNoUpperBoundSupportedInEra era) Source #
validityLowerBoundSupportedInEra ∷ BccEra era → Maybe (ValidityLowerBoundSupportedInEra era) Source #
txMetadataSupportedInEra ∷ BccEra era → Maybe (TxMetadataSupportedInEra era) Source #
auxScriptsSupportedInEra ∷ BccEra era → Maybe (AuxScriptsSupportedInEra era) Source #
extraKeyWitnessesSupportedInEra ∷ BccEra era → Maybe (TxExtraKeyWitnessesSupportedInEra era) Source #
withdrawalsSupportedInEra ∷ BccEra era → Maybe (WithdrawalsSupportedInEra era) Source #
certificatesSupportedInEra ∷ BccEra era → Maybe (CertificatesSupportedInEra era) Source #
updateProposalSupportedInEra ∷ BccEra era → Maybe (UpdateProposalSupportedInEra era) Source #
scriptDataSupportedInEra ∷ BccEra era → Maybe (ScriptDataSupportedInEra era) Source #
Fee calculation
Arguments
∷ ∀ era. IsSophieBasedEra era | |
⇒ Natural | The fixed tx fee |
→ Natural | The tx fee per byte |
→ Tx era | |
→ Entropic |
Deprecated: Use evaluateTransactionFee
instead
For a concrete fully-constructed transaction, determine the minimum fee that it needs to pay.
This function is simple, but if you are doing input selection then you probably want to consider estimateTransactionFee.
estimateTransactionFee Source #
Arguments
∷ ∀ era. IsSophieBasedEra era | |
⇒ NetworkId | |
→ Natural | The fixed tx fee |
→ Natural | The tx fee per byte |
→ Tx era | |
→ Int | The number of extra UTxO transaction inputs |
→ Int | The number of extra transaction outputs |
→ Int | The number of extra Sophie key witnesses |
→ Int | The number of extra Cole key witnesses |
→ Entropic |
This can estimate what the transaction fee will be, based on a starting base transaction, plus the numbers of the additional components of the transaction that may be added.
So for example with wallet coin selection, the base transaction should contain all the things not subject to coin selection (such as script inputs, metadata, withdrawals, certs etc)
evaluateTransactionFee Source #
Arguments
∷ ∀ era. IsSophieBasedEra era | |
⇒ ProtocolParameters | |
→ TxBody era | |
→ Word | The number of Sophie key witnesses |
→ Word | The number of Cole key witnesses |
→ Entropic |
Compute the transaction fee for a proposed transaction, with the assumption that there will be the given number of key witnesses (i.e. signatures).
TODO: we need separate args for Sophie vs Cole key sigs
estimateTransactionKeyWitnessCount ∷ TxBodyContent BuildTx era → Word Source #
Give an approximate count of the number of key witnesses (i.e. signatures) a transaction will need.
This is an estimate not a precise count in that it can over-estimate: it makes conservative assumptions such as all inputs are from distinct addresses, but in principle multiple inputs can use the same address and we only need a witness per address.
Similarly there can be overlap between the regular and collateral inputs, but we conservatively assume they are distinct.
TODO: it is worth us considering a more precise count that relies on the UTxO to resolve which inputs are for distinct addresses, and also to count the number of Sophie vs Cole style witnesses.
Minimum required UTxO calculation
calculateMinimumUTxO ∷ SophieBasedEra era → TxOut era → ProtocolParameters → Either MinimumUTxOError Value Source #
data MinimumUTxOError Source #
Instances
Show MinimumUTxOError Source # | |
Defined in Bcc.Api.Fees | |
Error MinimumUTxOError Source # | |
Defined in Bcc.Api.Fees Methods |
Script execution units
evaluateTransactionExecutionUnits ∷ ∀ era mode. EraInMode era mode → SystemStart → EraHistory mode → ProtocolParameters → UTxO era → TxBody era → Either TransactionValidityIntervalError (Map ScriptWitnessIndex (Either ScriptExecutionError ExecutionUnits)) Source #
Compute the ExecutionUnits
needed for each script in the transaction.
This works by running all the scripts and counting how many execution units are actually used.
data ScriptExecutionError Source #
The different possible reasons that executing a script can fail,
as reported by evaluateTransactionExecutionUnits
.
The first three of these are about failures before we even get to execute the script, and two are the result of execution.
Constructors
ScriptErrorMissingTxIn TxIn | The script depends on a |
ScriptErrorTxInWithoutDatum TxIn | The |
ScriptErrorWrongDatum (Hash ScriptData) | The |
ScriptErrorEvaluationFailed EvaluationError | The script evaluation failed. This usually means it evaluated to an
error value. This is not a case of running out of execution units
(which is not possible for |
ScriptErrorExecutionUnitsOverflow | The execution units overflowed a 64bit word. Congratulations if you encounter this error. With the current style of cost model this would need a script to run for over 7 months, which is somewhat more than the expected maximum of a few milliseconds. |
ScriptErrorNotZerepochWitnessedTxIn ScriptWitnessIndex | An attempt was made to spend a key witnessed tx input with a script witness. |
Instances
Show ScriptExecutionError Source # | |
Defined in Bcc.Api.Fees | |
Error ScriptExecutionError Source # | |
Defined in Bcc.Api.Fees Methods |
newtype TransactionValidityIntervalError Source #
The transaction validity interval is too far into the future.
Transactions with Zerepoch scripts need to have a validity interval that is not so far in the future that we cannot reliably determine the UTC time corresponding to the validity interval expressed in slot numbers.
This is because the Zerepoch scripts get given the transaction validity interval in UTC time, so that they are not sensitive to slot lengths.
If either end of the validity interval is beyond the so called "time horizon" then the consensus algorithm is not able to reliably determine the relationship between slots and time. This is this situation in which this error is reported. For the Bcc mainnet the time horizon is 36 hours beyond the current time. This effectively means we cannot submit check or submit transactions that use Zerepoch scripts that have the end of their validity interval more than 36 hours into the future.
Constructors
TransactionValidityIntervalError PastHorizonException |
Instances
Show TransactionValidityIntervalError Source # | |
Defined in Bcc.Api.Fees | |
Error TransactionValidityIntervalError Source # | |
Defined in Bcc.Api.Fees Methods displayError ∷ TransactionValidityIntervalError → String Source # |
Transaction balance
evaluateTransactionBalance ∷ ∀ era. IsSophieBasedEra era ⇒ ProtocolParameters → Set PoolId → UTxO era → TxBody era → TxOutValue era Source #
Compute the total balance of the proposed transaction. Ultimately a valid transaction must be fully balanced: that is have a total value of zero.
Finding the (non-zero) balance of partially constructed transaction is useful for adjusting a transaction to be fully balanced.
Building transactions with automated fees and balancing
makeTransactionBodyAutoBalance Source #
Arguments
∷ ∀ era mode. IsSophieBasedEra era | |
⇒ EraInMode era mode | |
→ SystemStart | |
→ EraHistory mode | |
→ ProtocolParameters | |
→ Set PoolId | The set of registered stake pools |
→ UTxO era | Just the transaction inputs, not the entire |
→ TxBodyContent BuildTx era | |
→ AddressInEra era | Change address |
→ Maybe Word | Override key witnesses |
→ Either TxBodyErrorAutoBalance (BalancedTxBody era) |
This is much like makeTransactionBody
but with greater automation to
calculate suitable values for several things.
In particular:
- It calculates the correct script
ExecutionUnits
(ignoring the provided values, which can thus be zero). - It calculates the transaction fees, based on the script
ExecutionUnits
, the currentProtocolParameters
, and an estimate of the number of key witnesses (i.e. signatures). There is an override for the number of key witnesses. - It accepts a change address, calculates the balance of the transaction and puts the excess change into the change output.
- It also checks that the balance is positive and the change is above the minimum threshold.
To do this it needs more information than makeTransactionBody
, all of
which can be queried from a local node.
data BalancedTxBody era Source #
Constructors
BalancedTxBody | |
data TxBodyErrorAutoBalance Source #
The possible errors that can arise from makeTransactionBodyAutoBalance
.
Constructors
TxBodyError TxBodyError | The same errors that can arise from |
TxBodyScriptExecutionError [(ScriptWitnessIndex, ScriptExecutionError)] | One or more of the scripts fails to execute correctly. |
TxBodyScriptBadScriptValidity | One or more of the scripts were expected to fail validation, but none did. |
TxBodyErrorAssetBalanceWrong Value | The balance of the non-bcc assets is not zero. The |
TxBodyErrorBccBalanceNegative Entropic | There is not enough bcc to cover both the outputs and the fees. The transaction should be changed to provide more input bcc, or otherwise adjusted to need less (e.g. outputs, script etc). |
TxBodyErrorBccBalanceTooSmall | Offending TxOut |
Fields
| |
TxBodyErrorColeEraNotSupported |
|
TxBodyErrorMissingParamMinUTxO | The |
TxBodyErrorMissingParamCostPerWord | The |
TxBodyErrorValidityInterval TransactionValidityIntervalError | The transaction validity interval is too far into the future.
See |
TxBodyErrorMinUTxONotMet | Offending TxOut |
Fields
| |
TxBodyErrorMinUTxOMissingPParams MinimumUTxOError | |
TxBodyErrorNonBccAssetsUnbalanced Value |
Instances
Show TxBodyErrorAutoBalance Source # | |
Defined in Bcc.Api.Fees | |
Error TxBodyErrorAutoBalance Source # | |
Defined in Bcc.Api.Fees Methods |
data TxScriptValidity era where Source #
A representation of whether the era supports tx script validity.
The Jen and subsequent eras support script validity.
Constructors
TxScriptValidityNone ∷ TxScriptValidity era | |
TxScriptValidity ∷ TxScriptValiditySupportedInEra era → ScriptValidity → TxScriptValidity era | Tx script validity is supported in transactions in the |
Instances
Eq (TxScriptValidity era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxScriptValidity era → TxScriptValidity era → Bool Source # (/=) ∷ TxScriptValidity era → TxScriptValidity era → Bool Source # | |
Show (TxScriptValidity era) Source # | |
Defined in Bcc.Api.TxBody |
data ScriptValidity Source #
Indicates whether a script is expected to fail or pass validation.
Constructors
ScriptInvalid | Script is expected to fail validation. Transactions marked as such can include scripts that fail validation. Such transactions may be submitted to the chain, in which case the collateral will be taken upon on chain script validation failure. |
ScriptValid | Script is expected to pass validation. Transactions marked as such cannot include scripts that fail validation. |
Instances
Eq ScriptValidity Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ ScriptValidity → ScriptValidity → Bool Source # (/=) ∷ ScriptValidity → ScriptValidity → Bool Source # | |
Show ScriptValidity Source # | |
Defined in Bcc.Api.TxBody | |
FromCBOR ScriptValidity Source # | |
Defined in Bcc.Api.TxBody | |
ToCBOR ScriptValidity Source # | |
Defined in Bcc.Api.TxBody Methods toCBOR ∷ ScriptValidity → Encoding # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy ScriptValidity → Size # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [ScriptValidity] → Size # |
data TxScriptValiditySupportedInEra era where Source #
Instances
Eq (TxScriptValiditySupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ TxScriptValiditySupportedInEra era → TxScriptValiditySupportedInEra era → Bool Source # (/=) ∷ TxScriptValiditySupportedInEra era → TxScriptValiditySupportedInEra era → Bool Source # | |
Show (TxScriptValiditySupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody |
scriptValidityToTxScriptValidity ∷ SophieBasedEra era → ScriptValidity → TxScriptValidity era Source #
txScriptValiditySupportedInSophieBasedEra ∷ SophieBasedEra era → Maybe (TxScriptValiditySupportedInEra era) Source #
txScriptValiditySupportedInBccEra ∷ BccEra era → Maybe (TxScriptValiditySupportedInEra era) Source #
Signing transactions
Creating transaction witnesses one by one, or all in one go.
Bundled Patterns
pattern Tx ∷ TxBody era → [KeyWitness era] → Tx era |
Instances
Eq (Tx era) Source # | |
Show (Tx era) Source # | |
HasTypeProxy era ⇒ HasTypeProxy (Tx era) Source # | |
IsBccEra era ⇒ SerialiseAsCBOR (Tx era) Source # | |
Defined in Bcc.Api.Tx Methods serialiseToCBOR ∷ Tx era → ByteString Source # deserialiseFromCBOR ∷ AsType (Tx era) → ByteString → Either DecoderError (Tx era) Source # | |
IsBccEra era ⇒ HasTextEnvelope (Tx era) Source # | |
Defined in Bcc.Api.Tx Methods textEnvelopeType ∷ AsType (Tx era) → TextEnvelopeType Source # textEnvelopeDefaultDescr ∷ Tx era → TextEnvelopeDescr Source # | |
data AsType (Tx era) Source # | |
Defined in Bcc.Api.Tx |
getTxWitnesses ∷ ∀ era. Tx era → [KeyWitness era] Source #
Signing in one go
signColeTransaction ∷ NetworkId → TxBody ColeEra → [SigningKey ColeKey] → Tx ColeEra Source #
signSophieTransaction ∷ IsSophieBasedEra era ⇒ TxBody era → [SophieWitnessSigningKey] → Tx era Source #
Incremental signing and separate witnesses
makeSignedTransaction ∷ ∀ era. [KeyWitness era] → TxBody era → Tx era Source #
data KeyWitness era Source #
Instances
Eq (KeyWitness era) Source # | |
Defined in Bcc.Api.Tx Methods (==) ∷ KeyWitness era → KeyWitness era → Bool Source # (/=) ∷ KeyWitness era → KeyWitness era → Bool Source # | |
Show (KeyWitness era) Source # | |
Defined in Bcc.Api.Tx | |
HasTypeProxy era ⇒ HasTypeProxy (KeyWitness era) Source # | |
Defined in Bcc.Api.Tx Associated Types data AsType (KeyWitness era) Source # Methods proxyToAsType ∷ Proxy (KeyWitness era) → AsType (KeyWitness era) Source # | |
IsBccEra era ⇒ SerialiseAsCBOR (KeyWitness era) Source # | |
Defined in Bcc.Api.Tx Methods serialiseToCBOR ∷ KeyWitness era → ByteString Source # deserialiseFromCBOR ∷ AsType (KeyWitness era) → ByteString → Either DecoderError (KeyWitness era) Source # | |
IsBccEra era ⇒ HasTextEnvelope (KeyWitness era) Source # | |
Defined in Bcc.Api.Tx Methods textEnvelopeType ∷ AsType (KeyWitness era) → TextEnvelopeType Source # textEnvelopeDefaultDescr ∷ KeyWitness era → TextEnvelopeDescr Source # | |
data AsType (KeyWitness era) Source # | |
Defined in Bcc.Api.Tx |
makeColeKeyWitness ∷ ∀ key. IsColeKey key ⇒ NetworkId → TxBody ColeEra → SigningKey key → KeyWitness ColeEra Source #
data SophieWitnessSigningKey Source #
Constructors
makeSophieKeyWitness ∷ ∀ era. IsSophieBasedEra era ⇒ TxBody era → SophieWitnessSigningKey → KeyWitness era Source #
makeSophieBootstrapWitness ∷ ∀ era. IsSophieBasedEra era ⇒ WitnessNetworkIdOrColeAddress → TxBody era → SigningKey ColeKey → KeyWitness era Source #
Transaction metadata
Embedding additional structured data within transactions.
newtype TxMetadata Source #
Constructors
TxMetadata (Map Word64 TxMetadataValue) |
Instances
Constructing metadata
data TxMetadataValue Source #
Constructors
TxMetaMap [(TxMetadataValue, TxMetadataValue)] | |
TxMetaList [TxMetadataValue] | |
TxMetaNumber Integer | |
TxMetaBytes ByteString | |
TxMetaText Text |
Instances
Eq TxMetadataValue Source # | |
Defined in Bcc.Api.TxMetadata Methods | |
Ord TxMetadataValue Source # | |
Defined in Bcc.Api.TxMetadata Methods compare ∷ TxMetadataValue → TxMetadataValue → Ordering Source # (<) ∷ TxMetadataValue → TxMetadataValue → Bool Source # (<=) ∷ TxMetadataValue → TxMetadataValue → Bool Source # (>) ∷ TxMetadataValue → TxMetadataValue → Bool Source # (>=) ∷ TxMetadataValue → TxMetadataValue → Bool Source # max ∷ TxMetadataValue → TxMetadataValue → TxMetadataValue Source # min ∷ TxMetadataValue → TxMetadataValue → TxMetadataValue Source # | |
Show TxMetadataValue Source # | |
Defined in Bcc.Api.TxMetadata |
Validating metadata
validateTxMetadata ∷ TxMetadata → Either [(Word64, TxMetadataRangeError)] () Source #
Validate transaction metadata. This is for use with existing constructed metadata values, e.g. constructed manually or decoded from CBOR directly.
data TxMetadataRangeError Source #
An error in transaction metadata due to an out-of-range value.
Constructors
TxMetadataNumberOutOfRange !Integer | The number is outside the maximum range of |
TxMetadataTextTooLong !Int | The length of a text string metadatum value exceeds the maximum of 64 bytes as UTF8. |
TxMetadataBytesTooLong !Int | The length of a byte string metadatum value exceeds the maximum of 64 bytes. |
Instances
Eq TxMetadataRangeError Source # | |
Defined in Bcc.Api.TxMetadata Methods (==) ∷ TxMetadataRangeError → TxMetadataRangeError → Bool Source # (/=) ∷ TxMetadataRangeError → TxMetadataRangeError → Bool Source # | |
Show TxMetadataRangeError Source # | |
Defined in Bcc.Api.TxMetadata | |
Error TxMetadataRangeError Source # | |
Defined in Bcc.Api.TxMetadata Methods |
Converstion to/from JSON
data TxMetadataJsonSchema Source #
Tx metadata is similar to JSON but not exactly the same. It has some deliberate limitations such as no support for floating point numbers or special forms for null or boolean values. It also has limitations on the length of strings. On the other hand, unlike JSON, it distinguishes between byte strings and text strings. It also supports any value as map keys rather than just string.
We provide two different mappings between tx metadata and JSON, useful for different purposes:
- A mapping that allows almost any JSON value to be converted into tx metadata. This does not require a specific JSON schema for the input. It does not expose the full representation capability of tx metadata.
- A mapping that exposes the full representation capability of tx metadata, but relies on a specific JSON schema for the input JSON.
In the "no schema" mapping, the idea is that (almost) any JSON can be turned into tx metadata and then converted back, without loss. That is, we can round-trip the JSON.
The subset of JSON supported is all JSON except: * No null or bool values * No floating point, only integers in the range of a 64bit signed integer * A limitation on string lengths
The approach for this mapping is to use whichever representation as tx metadata is most compact. In particular:
- JSON lists and maps represented as CBOR lists and maps
- JSON strings represented as CBOR strings
- JSON hex strings with "0x" prefix represented as CBOR byte strings
- JSON integer numbers represented as CBOR signed or unsigned numbers
- JSON maps with string keys that parse as numbers or hex byte strings, represented as CBOR map keys that are actually numbers or byte strings.
The string length limit depends on whether the hex string representation is used or not. For text strings the limit is 64 bytes for the UTF8 representation of the text string. For byte strings the limit is 64 bytes for the raw byte form (ie not the input hex, but after hex decoding).
In the "detailed schema" mapping, the idea is that we expose the full representation capability of the tx metadata in the form of a JSON schema. This means the full representation is available and can be controlled precisely. It also means any tx metadata can be converted into the JSON and back without loss. That is we can round-trip the tx metadata via the JSON and also round-trip schema-compliant JSON via tx metadata.
Constructors
TxMetadataJsonNoSchema | Use the "no schema" mapping between JSON and tx metadata as described above. |
TxMetadataJsonDetailedSchema | Use the "detailed schema" mapping between JSON and tx metadata as described above. |
Instances
Eq TxMetadataJsonSchema Source # | |
Defined in Bcc.Api.TxMetadata Methods (==) ∷ TxMetadataJsonSchema → TxMetadataJsonSchema → Bool Source # (/=) ∷ TxMetadataJsonSchema → TxMetadataJsonSchema → Bool Source # | |
Show TxMetadataJsonSchema Source # | |
Defined in Bcc.Api.TxMetadata |
metadataFromJson ∷ TxMetadataJsonSchema → Value → Either TxMetadataJsonError TxMetadata Source #
Convert a value from JSON into tx metadata, using the given choice of mapping between JSON and tx metadata.
This may fail with a conversion error if the JSON is outside the supported
subset for the chosen mapping. See TxMetadataJsonSchema
for the details.
metadataToJson ∷ TxMetadataJsonSchema → TxMetadata → Value Source #
Convert a tx metadata value into JSON , using the given choice of mapping between JSON and tx metadata.
This conversion is total but is not necessarily invertible.
See TxMetadataJsonSchema
for the details.
metadataValueToJsonNoSchema ∷ TxMetadataValue → Value Source #
data TxMetadataJsonError Source #
Constructors
TxMetadataJsonToplevelNotMap | |
TxMetadataJsonToplevelBadKey !Text | |
TxMetadataJsonSchemaError !Word64 !Value !TxMetadataJsonSchemaError | |
TxMetadataRangeError !Word64 !Value !TxMetadataRangeError |
Instances
Eq TxMetadataJsonError Source # | |
Defined in Bcc.Api.TxMetadata Methods (==) ∷ TxMetadataJsonError → TxMetadataJsonError → Bool Source # (/=) ∷ TxMetadataJsonError → TxMetadataJsonError → Bool Source # | |
Show TxMetadataJsonError Source # | |
Defined in Bcc.Api.TxMetadata | |
Error TxMetadataJsonError Source # | |
Defined in Bcc.Api.TxMetadata Methods |
data TxMetadataJsonSchemaError Source #
Constructors
Instances
Eq TxMetadataJsonSchemaError Source # | |
Defined in Bcc.Api.TxMetadata | |
Show TxMetadataJsonSchemaError Source # | |
Defined in Bcc.Api.TxMetadata | |
Error TxMetadataJsonSchemaError Source # | |
Defined in Bcc.Api.TxMetadata Methods |
Certificates
data Certificate Source #
Constructors
Instances
Registering stake address and delegating
Certificates that are embedded in transactions for registering and unregistering stake address, and for setting the stake pool delegation choice for a stake address.
Registering stake pools
Certificates that are embedded in transactions for registering and retiring stake pools. This includes updating the stake pool parameters.
data StakePoolParameters Source #
Instances
Eq StakePoolParameters Source # | |
Defined in Bcc.Api.Certificate Methods (==) ∷ StakePoolParameters → StakePoolParameters → Bool Source # (/=) ∷ StakePoolParameters → StakePoolParameters → Bool Source # | |
Show StakePoolParameters Source # | |
Defined in Bcc.Api.Certificate |
data StakePoolRelay Source #
Instances
Eq StakePoolRelay Source # | |
Defined in Bcc.Api.Certificate Methods (==) ∷ StakePoolRelay → StakePoolRelay → Bool Source # (/=) ∷ StakePoolRelay → StakePoolRelay → Bool Source # | |
Show StakePoolRelay Source # | |
Defined in Bcc.Api.Certificate |
data StakePoolMetadataReference Source #
Instances
Eq StakePoolMetadataReference Source # | |
Defined in Bcc.Api.Certificate | |
Show StakePoolMetadataReference Source # | |
Defined in Bcc.Api.Certificate |
Stake pool off-chain metadata
data StakePoolMetadata Source #
A representation of the required fields for off-chain stake pool metadata.
Instances
validateAndHashStakePoolMetadata ∷ ByteString → Either StakePoolMetadataValidationError (StakePoolMetadata, Hash StakePoolMetadata) Source #
Decode and validate the provided JSON-encoded bytes as StakePoolMetadata
.
Return the decoded metadata and the hash of the original bytes.
data StakePoolMetadataValidationError Source #
A stake pool metadata validation error.
Instances
Scripts
Both PaymentCredential
s and StakeCredential
s can use scripts.
Script languages
data SimpleScriptV1 Source #
The original simple script language which supports
- require a signature from a given key (by verification key hash)
- n-way and combinator
- n-way or combinator
- m-of-n combinator
This version of the language was introduced in the SophieEra
.
Instances
HasTypeProxy SimpleScriptV1 Source # | |
Defined in Bcc.Api.Script Associated Types data AsType SimpleScriptV1 Source # Methods proxyToAsType ∷ Proxy SimpleScriptV1 → AsType SimpleScriptV1 Source # | |
IsSimpleScriptLanguage SimpleScriptV1 Source # | |
Defined in Bcc.Api.Script | |
IsScriptLanguage SimpleScriptV1 Source # | |
Defined in Bcc.Api.Script Methods | |
data AsType SimpleScriptV1 Source # | |
Defined in Bcc.Api.Script |
data SimpleScriptV2 Source #
The second version of the simple script language. It has all the features
of SimpleScriptV1
plus new atomic predicates:
- require the time be before a given slot number
- require the time be after a given slot number
This version of the language was introduced in the EvieEra
.
Instances
HasTypeProxy SimpleScriptV2 Source # | |
Defined in Bcc.Api.Script Associated Types data AsType SimpleScriptV2 Source # Methods proxyToAsType ∷ Proxy SimpleScriptV2 → AsType SimpleScriptV2 Source # | |
IsSimpleScriptLanguage SimpleScriptV2 Source # | |
Defined in Bcc.Api.Script | |
IsScriptLanguage SimpleScriptV2 Source # | |
Defined in Bcc.Api.Script Methods | |
data AsType SimpleScriptV2 Source # | |
Defined in Bcc.Api.Script |
data ZerepochScriptV1 Source #
Place holder type to show what the pattern is to extend to multiple languages, not just multiple versions of a single language.
Instances
HasTypeProxy ZerepochScriptV1 Source # | |
Defined in Bcc.Api.Script Associated Types data AsType ZerepochScriptV1 Source # Methods proxyToAsType ∷ Proxy ZerepochScriptV1 → AsType ZerepochScriptV1 Source # | |
IsScriptLanguage ZerepochScriptV1 Source # | |
Defined in Bcc.Api.Script Methods | |
data AsType ZerepochScriptV1 Source # | |
Defined in Bcc.Api.Script |
data ScriptLanguage lang where Source #
Constructors
SimpleScriptLanguage ∷ SimpleScriptVersion lang → ScriptLanguage lang | |
ZerepochScriptLanguage ∷ ZerepochScriptVersion lang → ScriptLanguage lang |
Instances
Eq (ScriptLanguage lang) Source # | |
Defined in Bcc.Api.Script Methods (==) ∷ ScriptLanguage lang → ScriptLanguage lang → Bool Source # (/=) ∷ ScriptLanguage lang → ScriptLanguage lang → Bool Source # | |
Show (ScriptLanguage lang) Source # | |
Defined in Bcc.Api.Script | |
TestEquality ScriptLanguage Source # | |
Defined in Bcc.Api.Script Methods testEquality ∷ ∀ (a ∷ k) (b ∷ k). ScriptLanguage a → ScriptLanguage b → Maybe (a :~: b) Source # |
data SimpleScriptVersion lang where Source #
Constructors
SimpleScriptV1 ∷ SimpleScriptVersion SimpleScriptV1 | |
SimpleScriptV2 ∷ SimpleScriptVersion SimpleScriptV2 |
Instances
Eq (SimpleScriptVersion lang) Source # | |
Defined in Bcc.Api.Script Methods (==) ∷ SimpleScriptVersion lang → SimpleScriptVersion lang → Bool Source # (/=) ∷ SimpleScriptVersion lang → SimpleScriptVersion lang → Bool Source # | |
Show (SimpleScriptVersion lang) Source # | |
Defined in Bcc.Api.Script | |
TestEquality SimpleScriptVersion Source # | |
Defined in Bcc.Api.Script Methods testEquality ∷ ∀ (a ∷ k) (b ∷ k). SimpleScriptVersion a → SimpleScriptVersion b → Maybe (a :~: b) Source # |
data ZerepochScriptVersion lang where Source #
Constructors
ZerepochScriptV1 ∷ ZerepochScriptVersion ZerepochScriptV1 |
Instances
Eq (ZerepochScriptVersion lang) Source # | |
Defined in Bcc.Api.Script Methods (==) ∷ ZerepochScriptVersion lang → ZerepochScriptVersion lang → Bool Source # (/=) ∷ ZerepochScriptVersion lang → ZerepochScriptVersion lang → Bool Source # | |
Show (ZerepochScriptVersion lang) Source # | |
Defined in Bcc.Api.Script | |
TestEquality ZerepochScriptVersion Source # | |
Defined in Bcc.Api.Script Methods testEquality ∷ ∀ (a ∷ k) (b ∷ k). ZerepochScriptVersion a → ZerepochScriptVersion b → Maybe (a :~: b) Source # |
data AnyScriptLanguage where Source #
Constructors
AnyScriptLanguage ∷ ScriptLanguage lang → AnyScriptLanguage |
Instances
data AnyZerepochScriptVersion where Source #
Constructors
AnyZerepochScriptVersion ∷ ZerepochScriptVersion lang → AnyZerepochScriptVersion |
Instances
class HasTypeProxy lang ⇒ IsScriptLanguage lang where Source #
Methods
scriptLanguage ∷ ScriptLanguage lang Source #
Instances
IsScriptLanguage ZerepochScriptV1 Source # | |
Defined in Bcc.Api.Script Methods | |
IsScriptLanguage SimpleScriptV2 Source # | |
Defined in Bcc.Api.Script Methods | |
IsScriptLanguage SimpleScriptV1 Source # | |
Defined in Bcc.Api.Script Methods |
class IsScriptLanguage lang ⇒ IsSimpleScriptLanguage lang where Source #
Methods
Instances
IsSimpleScriptLanguage SimpleScriptV2 Source # | |
Defined in Bcc.Api.Script | |
IsSimpleScriptLanguage SimpleScriptV1 Source # | |
Defined in Bcc.Api.Script |
Scripts in a specific language
data Script lang where Source #
A script in a particular language.
See also ScriptInAnyLang
for a script in any of the known languages.
See also ScriptInEra
for a script in a language that is available within
a particular era.
Note that some but not all scripts have an external JSON syntax, hence this
type has no JSON serialisation instances. The SimpleScript
family of
languages do have a JSON syntax and thus have ToJSON
/FromJSON
instances.
Constructors
SimpleScript ∷ !(SimpleScriptVersion lang) → !(SimpleScript lang) → Script lang | |
ZerepochScript ∷ !(ZerepochScriptVersion lang) → !(ZerepochScript lang) → Script lang |
Instances
Eq (Script lang) Source # | |
Show (Script lang) Source # | |
HasTypeProxy lang ⇒ HasTypeProxy (Script lang) Source # | |
IsScriptLanguage lang ⇒ SerialiseAsCBOR (Script lang) Source # | |
Defined in Bcc.Api.Script Methods serialiseToCBOR ∷ Script lang → ByteString Source # deserialiseFromCBOR ∷ AsType (Script lang) → ByteString → Either DecoderError (Script lang) Source # | |
IsScriptLanguage lang ⇒ HasTextEnvelope (Script lang) Source # | |
Defined in Bcc.Api.Script Methods textEnvelopeType ∷ AsType (Script lang) → TextEnvelopeType Source # textEnvelopeDefaultDescr ∷ Script lang → TextEnvelopeDescr Source # | |
data AsType (Script lang) Source # | |
Defined in Bcc.Api.Script |
Scripts in any language
data ScriptInAnyLang where Source #
Sometimes it is necessary to handle all languages without making static type distinctions between languages. For example, when reading external input, or before the era context is known.
Use toScriptInEra
to convert to a script in the context of an era.
Constructors
ScriptInAnyLang ∷ ScriptLanguage lang → Script lang → ScriptInAnyLang |
Instances
Eq ScriptInAnyLang Source # | |
Defined in Bcc.Api.Script Methods | |
Show ScriptInAnyLang Source # | |
Defined in Bcc.Api.Script | |
HasTypeProxy ScriptInAnyLang Source # | |
Defined in Bcc.Api.Script Associated Types data AsType ScriptInAnyLang Source # Methods proxyToAsType ∷ Proxy ScriptInAnyLang → AsType ScriptInAnyLang Source # | |
data AsType ScriptInAnyLang Source # | |
Defined in Bcc.Api.Script |
toScriptInAnyLang ∷ Script lang → ScriptInAnyLang Source #
Convert a script in a specific statically-known language to a
ScriptInAnyLang
.
No inverse to this is provided, just do case analysis on the ScriptLanguage
field within the ScriptInAnyLang
constructor.
Scripts in a specific era
data ScriptInEra era where Source #
Constructors
ScriptInEra ∷ ScriptLanguageInEra lang era → Script lang → ScriptInEra era |
Instances
Eq (ScriptInEra era) Source # | |
Defined in Bcc.Api.Script Methods (==) ∷ ScriptInEra era → ScriptInEra era → Bool Source # (/=) ∷ ScriptInEra era → ScriptInEra era → Bool Source # | |
Show (ScriptInEra era) Source # | |
Defined in Bcc.Api.Script | |
HasTypeProxy era ⇒ HasTypeProxy (ScriptInEra era) Source # | |
Defined in Bcc.Api.Script Associated Types data AsType (ScriptInEra era) Source # Methods proxyToAsType ∷ Proxy (ScriptInEra era) → AsType (ScriptInEra era) Source # | |
data AsType (ScriptInEra era) Source # | |
Defined in Bcc.Api.Script |
toScriptInEra ∷ BccEra era → ScriptInAnyLang → Maybe (ScriptInEra era) Source #
Given a target era and a script in some language, check if the language is
supported in that era, and if so return a ScriptInEra
.
eraOfScriptInEra ∷ ScriptInEra era → SophieBasedEra era Source #
Use of a script in an era as a witness
data WitCtxTxIn Source #
A tag type for the context in which a script is used in a transaction.
This type tags the context as being to witness a transaction input.
data WitCtxMint Source #
A tag type for the context in which a script is used in a transaction.
This type tags the context as being to witness minting.
data WitCtxStake Source #
A tag type for the context in which a script is used in a transaction.
This type tags the context as being to witness the use of stake addresses in both certificates and withdrawals.
data WitCtx witctx where Source #
This GADT provides a value-level representation of all the witness contexts. This enables pattern matching on the context to allow them to be treated in a non-uniform way.
Constructors
WitCtxTxIn ∷ WitCtx WitCtxTxIn | |
WitCtxMint ∷ WitCtx WitCtxMint | |
WitCtxStake ∷ WitCtx WitCtxStake |
data ScriptWitness witctx era where Source #
A use of a script within a transaction body to witness that something is being used in an authorised manner. That can be
- spending a transaction input
- minting tokens
- using a certificate (stake address certs specifically)
- withdrawing from a reward account
For simple script languages, the use of the script is the same in all contexts. For Zerepoch scripts, using a script involves supplying a redeemer. In addition, Zerepoch scripts used for spending inputs must also supply the datum value used when originally creating the TxOut that is now being spent.
Constructors
SimpleScriptWitness ∷ ScriptLanguageInEra lang era → SimpleScriptVersion lang → SimpleScript lang → ScriptWitness witctx era | |
ZerepochScriptWitness ∷ ScriptLanguageInEra lang era → ZerepochScriptVersion lang → ZerepochScript lang → ScriptDatum witctx → ScriptRedeemer → ExecutionUnits → ScriptWitness witctx era |
Instances
Eq (ScriptWitness witctx era) Source # | |
Defined in Bcc.Api.Script Methods (==) ∷ ScriptWitness witctx era → ScriptWitness witctx era → Bool Source # (/=) ∷ ScriptWitness witctx era → ScriptWitness witctx era → Bool Source # | |
Show (ScriptWitness witctx era) Source # | |
Defined in Bcc.Api.Script |
data Witness witctx era where Source #
Constructors
KeyWitness ∷ KeyWitnessInCtx witctx → Witness witctx era | |
ScriptWitness ∷ ScriptWitnessInCtx witctx → ScriptWitness witctx era → Witness witctx era |
data KeyWitnessInCtx witctx where Source #
Constructors
KeyWitnessForSpending ∷ KeyWitnessInCtx WitCtxTxIn | |
KeyWitnessForStakeAddr ∷ KeyWitnessInCtx WitCtxStake |
Instances
Eq (KeyWitnessInCtx witctx) Source # | |
Defined in Bcc.Api.Script Methods (==) ∷ KeyWitnessInCtx witctx → KeyWitnessInCtx witctx → Bool Source # (/=) ∷ KeyWitnessInCtx witctx → KeyWitnessInCtx witctx → Bool Source # | |
Show (KeyWitnessInCtx witctx) Source # | |
Defined in Bcc.Api.Script |
data ScriptWitnessInCtx witctx where Source #
Constructors
ScriptWitnessForSpending ∷ ScriptWitnessInCtx WitCtxTxIn | |
ScriptWitnessForMinting ∷ ScriptWitnessInCtx WitCtxMint | |
ScriptWitnessForStakeAddr ∷ ScriptWitnessInCtx WitCtxStake |
Instances
Eq (ScriptWitnessInCtx witctx) Source # | |
Defined in Bcc.Api.Script Methods (==) ∷ ScriptWitnessInCtx witctx → ScriptWitnessInCtx witctx → Bool Source # (/=) ∷ ScriptWitnessInCtx witctx → ScriptWitnessInCtx witctx → Bool Source # | |
Show (ScriptWitnessInCtx witctx) Source # | |
Defined in Bcc.Api.Script |
data ScriptDatum witctx where Source #
Constructors
ScriptDatumForTxIn ∷ ScriptData → ScriptDatum WitCtxTxIn | |
NoScriptDatumForMint ∷ ScriptDatum WitCtxMint | |
NoScriptDatumForStake ∷ ScriptDatum WitCtxStake |
Instances
Eq (ScriptDatum witctx) Source # | |
Defined in Bcc.Api.Script Methods (==) ∷ ScriptDatum witctx → ScriptDatum witctx → Bool Source # (/=) ∷ ScriptDatum witctx → ScriptDatum witctx → Bool Source # | |
Show (ScriptDatum witctx) Source # | |
Defined in Bcc.Api.Script |
type ScriptRedeemer = ScriptData Source #
scriptWitnessScript ∷ ScriptWitness witctx era → ScriptInEra era Source #
Inspecting ScriptWitness
es
data AnyScriptWitness era where Source #
A ScriptWitness
in any WitCtx
. This lets us handle heterogeneous
collections of script witnesses from multiple contexts.
Constructors
AnyScriptWitness ∷ ScriptWitness witctx era → AnyScriptWitness era |
data ScriptWitnessIndex Source #
Identify the location of a ScriptWitness
within the context of a
TxBody
. These are indexes of the objects within the transaction that
need or can use script witnesses: inputs, minted assets, withdrawals and
certificates. These are simple numeric indices, enumerated from zero.
Thus the indices are not stable if the transaction body is modified.
Constructors
ScriptWitnessIndexTxIn !Word | The n'th transaction input, in the order of the |
ScriptWitnessIndexMint !Word | |
ScriptWitnessIndexCertificate !Word | The n'th certificate, in the list order of the certificates. |
ScriptWitnessIndexWithdrawal !Word | The n'th withdrawal, in the order of the |
Instances
Eq ScriptWitnessIndex Source # | |
Defined in Bcc.Api.TxBody Methods (==) ∷ ScriptWitnessIndex → ScriptWitnessIndex → Bool Source # (/=) ∷ ScriptWitnessIndex → ScriptWitnessIndex → Bool Source # | |
Ord ScriptWitnessIndex Source # | |
Defined in Bcc.Api.TxBody Methods compare ∷ ScriptWitnessIndex → ScriptWitnessIndex → Ordering Source # (<) ∷ ScriptWitnessIndex → ScriptWitnessIndex → Bool Source # (<=) ∷ ScriptWitnessIndex → ScriptWitnessIndex → Bool Source # (>) ∷ ScriptWitnessIndex → ScriptWitnessIndex → Bool Source # (>=) ∷ ScriptWitnessIndex → ScriptWitnessIndex → Bool Source # max ∷ ScriptWitnessIndex → ScriptWitnessIndex → ScriptWitnessIndex Source # min ∷ ScriptWitnessIndex → ScriptWitnessIndex → ScriptWitnessIndex Source # | |
Show ScriptWitnessIndex Source # | |
Defined in Bcc.Api.TxBody |
collectTxBodyScriptWitnesses ∷ ∀ era. TxBodyContent BuildTx era → [(ScriptWitnessIndex, AnyScriptWitness era)] Source #
mapTxScriptWitnesses ∷ ∀ era. (∀ witctx. ScriptWitnessIndex → ScriptWitness witctx era → ScriptWitness witctx era) → TxBodyContent BuildTx era → TxBodyContent BuildTx era Source #
Languages supported in each era
data ScriptLanguageInEra lang era where Source #
Constructors
Instances
Eq (ScriptLanguageInEra lang era) Source # | |
Defined in Bcc.Api.Script Methods (==) ∷ ScriptLanguageInEra lang era → ScriptLanguageInEra lang era → Bool Source # (/=) ∷ ScriptLanguageInEra lang era → ScriptLanguageInEra lang era → Bool Source # | |
Show (ScriptLanguageInEra lang era) Source # | |
Defined in Bcc.Api.Script |
scriptLanguageSupportedInEra ∷ BccEra era → ScriptLanguage lang → Maybe (ScriptLanguageInEra lang era) Source #
Check if a given script language is supported in a given era, and if so return the evidence.
languageOfScriptLanguageInEra ∷ ScriptLanguageInEra lang era → ScriptLanguage lang Source #
eraOfScriptLanguageInEra ∷ ScriptLanguageInEra lang era → SophieBasedEra era Source #
Simple scripts
Making multi-signature and time-lock scripts.
data SimpleScript lang where Source #
Constructors
RequireSignature ∷ !(Hash PaymentKey) → SimpleScript lang | |
RequireTimeBefore ∷ !(TimeLocksSupported lang) → !SlotNo → SimpleScript lang | |
RequireTimeAfter ∷ !(TimeLocksSupported lang) → !SlotNo → SimpleScript lang | |
RequireAllOf ∷ [SimpleScript lang] → SimpleScript lang | |
RequireAnyOf ∷ [SimpleScript lang] → SimpleScript lang | |
RequireMOf ∷ Int → [SimpleScript lang] → SimpleScript lang |
Instances
Eq (SimpleScript lang) Source # | |
Defined in Bcc.Api.Script Methods (==) ∷ SimpleScript lang → SimpleScript lang → Bool Source # (/=) ∷ SimpleScript lang → SimpleScript lang → Bool Source # | |
Show (SimpleScript lang) Source # | |
Defined in Bcc.Api.Script | |
IsSimpleScriptLanguage lang ⇒ FromJSON (SimpleScript lang) Source # | |
Defined in Bcc.Api.Script Methods parseJSON ∷ Value → Parser (SimpleScript lang) # parseJSONList ∷ Value → Parser [SimpleScript lang] # | |
ToJSON (SimpleScript lang) Source # | |
Defined in Bcc.Api.Script Methods toJSON ∷ SimpleScript lang → Value # toEncoding ∷ SimpleScript lang → Encoding # toJSONList ∷ [SimpleScript lang] → Value # toEncodingList ∷ [SimpleScript lang] → Encoding # | |
HasTypeProxy lang ⇒ HasTypeProxy (SimpleScript lang) Source # | |
Defined in Bcc.Api.Script Associated Types data AsType (SimpleScript lang) Source # Methods proxyToAsType ∷ Proxy (SimpleScript lang) → AsType (SimpleScript lang) Source # | |
data AsType (SimpleScript lang) Source # | |
Defined in Bcc.Api.Script |
data TimeLocksSupported lang where Source #
Time lock feature in the SimpleScript
language.
The constructors of this type serve as evidence that the timelocks feature is supported in particular versions of the language.
Constructors
TimeLocksInSimpleScriptV2 ∷ TimeLocksSupported SimpleScriptV2 |
Instances
Eq (TimeLocksSupported lang) Source # | |
Defined in Bcc.Api.Script Methods (==) ∷ TimeLocksSupported lang → TimeLocksSupported lang → Bool Source # (/=) ∷ TimeLocksSupported lang → TimeLocksSupported lang → Bool Source # | |
Show (TimeLocksSupported lang) Source # | |
Defined in Bcc.Api.Script |
timeLocksSupported ∷ SimpleScriptVersion lang → Maybe (TimeLocksSupported lang) Source #
adjustSimpleScriptVersion ∷ SimpleScriptVersion lang' → SimpleScript lang → Maybe (SimpleScript lang') Source #
Try converting the SimpleScript
into a different version of the language.
This will work when the script only uses the features of the target language
version. For example converting from SimpleScriptV2
to SimpleScriptV1
will work if the script happens not to use time locks feature. On the other
hand converting SimpleScriptV1
to SimpleScriptV2
will always work because
it is backwards compatible.
Zerepoch scripts
data ZerepochScript lang Source #
Zerepoch scripts.
Note that Zerepoch scripts have a binary serialisation but no JSON serialisation.
Instances
exampleZerepochScriptAlwaysSucceeds ∷ WitCtx witctx → ZerepochScript ZerepochScriptV1 Source #
An example Zerepoch script that always succeeds, irrespective of inputs.
For example, if one were to use this for a payment address then it would allow anyone to spend from it.
The exact script depends on the context in which it is to be used.
exampleZerepochScriptAlwaysFails ∷ WitCtx witctx → ZerepochScript ZerepochScriptV1 Source #
An example Zerepoch script that always fails, irrespective of inputs.
For example, if one were to use this for a payment address then it would be impossible for anyone to ever spend from it.
The exact script depends on the context in which it is to be used.
Script data
data ScriptData Source #
Constructors
ScriptDataConstructor Integer [ScriptData] | |
ScriptDataMap [(ScriptData, ScriptData)] | |
ScriptDataList [ScriptData] | |
ScriptDataNumber Integer | |
ScriptDataBytes ByteString |
Instances
Validation
data ScriptDataRangeError Source #
An error in script data due to an out-of-range value.
Constructors
ScriptDataNumberOutOfRange !Integer | The number is outside the maximum range of |
ScriptDataConstructorOutOfRange !Integer | The number is outside the maximum range of |
ScriptDataBytesTooLong !Int | The length of a byte string metadatum value exceeds the maximum of 64 bytes. |
Instances
Eq ScriptDataRangeError Source # | |
Defined in Bcc.Api.ScriptData Methods (==) ∷ ScriptDataRangeError → ScriptDataRangeError → Bool Source # (/=) ∷ ScriptDataRangeError → ScriptDataRangeError → Bool Source # | |
Show ScriptDataRangeError Source # | |
Defined in Bcc.Api.ScriptData | |
Error ScriptDataRangeError Source # | |
Defined in Bcc.Api.ScriptData Methods |
validateScriptData ∷ ScriptData → Either ScriptDataRangeError () Source #
Validate script data. This is for use with existing constructed script data values, e.g. constructed manually or decoded from CBOR directly.
Conversion to/from JSON
data ScriptDataJsonSchema Source #
Script data is similar to JSON but not exactly the same. It has some deliberate limitations such as no support for floating point numbers or special forms for null or boolean values. It also has limitations on the length of strings. On the other hand, unlike JSON, it distinguishes between byte strings and text strings. It also supports any value as map keys rather than just string. It also supports alternatives / tagged unions, used for representing constructors for Zerepoch data values.
We provide two different mappings between script data and JSON, useful for different purposes:
- A mapping that allows almost any JSON value to be converted into script data. This does not require a specific JSON schema for the input. It does not expose the full representation capability of script data.
- A mapping that exposes the full representation capability of script data, but relies on a specific JSON schema for the input JSON.
In the "no schema" mapping, the idea is that (almost) any JSON can be turned into script data and then converted back, without loss. That is, we can round-trip the JSON.
The subset of JSON supported is all JSON except: * No null or bool values * No floating point, only integers in the range of a 64bit signed integer * A limitation on string lengths
The approach for this mapping is to use whichever representation as script data is most compact. In particular:
- JSON lists and maps represented as CBOR lists and maps
- JSON strings represented as CBOR strings
- JSON hex strings with "0x" prefix represented as CBOR byte strings
- JSON integer numbers represented as CBOR signed or unsigned numbers
- JSON maps with string keys that parse as numbers or hex byte strings, represented as CBOR map keys that are actually numbers or byte strings.
The string length limit depends on whether the hex string representation is used or not. For text strings the limit is 64 bytes for the UTF8 representation of the text string. For byte strings the limit is 64 bytes for the raw byte form (ie not the input hex, but after hex decoding).
In the "detailed schema" mapping, the idea is that we expose the full representation capability of the script data in the form of a JSON schema. This means the full representation is available and can be controlled precisely. It also means any script data can be converted into the JSON and back without loss. That is we can round-trip the script data via the JSON and also round-trip schema-compliant JSON via script data.
Constructors
ScriptDataJsonNoSchema | Use the "no schema" mapping between JSON and script data as described above. |
ScriptDataJsonDetailedSchema | Use the "detailed schema" mapping between JSON and script data as described above. |
Instances
Eq ScriptDataJsonSchema Source # | |
Defined in Bcc.Api.ScriptData Methods (==) ∷ ScriptDataJsonSchema → ScriptDataJsonSchema → Bool Source # (/=) ∷ ScriptDataJsonSchema → ScriptDataJsonSchema → Bool Source # | |
Show ScriptDataJsonSchema Source # | |
Defined in Bcc.Api.ScriptData |
scriptDataFromJson ∷ ScriptDataJsonSchema → Value → Either ScriptDataJsonError ScriptData Source #
Convert a value from JSON into script data, using the given choice of mapping between JSON and script data.
This may fail with a conversion error if the JSON is outside the supported
subset for the chosen mapping. See ScriptDataJsonSchema
for the details.
scriptDataToJson ∷ ScriptDataJsonSchema → ScriptData → Value Source #
Convert a script data value into JSON , using the given choice of mapping between JSON and script data.
This conversion is total but is not necessarily invertible.
See ScriptDataJsonSchema
for the details.
data ScriptDataJsonError Source #
Constructors
ScriptDataJsonSchemaError !Value !ScriptDataJsonSchemaError | |
ScriptDataRangeError !Value !ScriptDataRangeError |
Instances
Eq ScriptDataJsonError Source # | |
Defined in Bcc.Api.ScriptData Methods (==) ∷ ScriptDataJsonError → ScriptDataJsonError → Bool Source # (/=) ∷ ScriptDataJsonError → ScriptDataJsonError → Bool Source # | |
Show ScriptDataJsonError Source # | |
Defined in Bcc.Api.ScriptData | |
Error ScriptDataJsonError Source # | |
Defined in Bcc.Api.ScriptData Methods |
data ScriptDataJsonSchemaError Source #
Constructors
Instances
Eq ScriptDataJsonSchemaError Source # | |
Defined in Bcc.Api.ScriptData | |
Show ScriptDataJsonSchemaError Source # | |
Defined in Bcc.Api.ScriptData | |
Error ScriptDataJsonSchemaError Source # | |
Defined in Bcc.Api.ScriptData Methods |
Script execution units
data ExecutionUnits Source #
The units for how long a script executes for and how much memory it uses. This is used to declare the resources used by a particular use of a script.
This type is also used to describe the limits for the maximum overall execution units per transaction or per block.
Constructors
ExecutionUnits | |
Fields
|
Instances
Eq ExecutionUnits Source # | |
Defined in Bcc.Api.Script Methods (==) ∷ ExecutionUnits → ExecutionUnits → Bool Source # (/=) ∷ ExecutionUnits → ExecutionUnits → Bool Source # | |
Show ExecutionUnits Source # | |
Defined in Bcc.Api.Script | |
FromJSON ExecutionUnits Source # | |
Defined in Bcc.Api.Script | |
ToJSON ExecutionUnits Source # | |
Defined in Bcc.Api.Script Methods toJSON ∷ ExecutionUnits → Value # toEncoding ∷ ExecutionUnits → Encoding # toJSONList ∷ [ExecutionUnits] → Value # toEncodingList ∷ [ExecutionUnits] → Encoding # | |
FromCBOR ExecutionUnits Source # | |
Defined in Bcc.Api.Script | |
ToCBOR ExecutionUnits Source # | |
Defined in Bcc.Api.Script Methods toCBOR ∷ ExecutionUnits → Encoding # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy ExecutionUnits → Size # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [ExecutionUnits] → Size # |
data ExecutionUnitPrices Source #
The prices for ExecutionUnits
as a fraction of a Entropic
.
These are used to determine the fee for the use of a script within a
transaction, based on the ExecutionUnits
needed by the use of the script.
Constructors
ExecutionUnitPrices | |
Instances
Instances
Eq CostModel Source # | |
Show CostModel Source # | |
FromJSON CostModel Source # | |
Defined in Bcc.Api.ProtocolParameters | |
ToJSON CostModel Source # | |
Defined in Bcc.Api.ProtocolParameters Methods toEncoding ∷ CostModel → Encoding # toJSONList ∷ [CostModel] → Value # toEncodingList ∷ [CostModel] → Encoding # | |
FromCBOR CostModel Source # | |
ToCBOR CostModel Source # | |
validateCostModel ∷ ZerepochScriptVersion lang → CostModel → Either InvalidCostModel () Source #
Script addresses
Making addresses from scripts.
data ScriptHash Source #
We have this type separate from the Hash
type to avoid the script
hash type being parametrised by the era. The representation is era
independent, and there are many places where we want to use a script
hash where we don't want things to be era-parametrised.
Instances
hashScript ∷ Script lang → ScriptHash Source #
Serialisation
Support for serialising data in JSON, CBOR and text files.
CBOR
class HasTypeProxy a ⇒ SerialiseAsCBOR a Source #
Instances
Minimal complete definition
Instances
class Typeable a ⇒ FromCBOR a #
Minimal complete definition
Instances
FromCBOR Bool | |
FromCBOR Float | |
FromCBOR Int | |
FromCBOR Int32 | |
FromCBOR Int64 | |
FromCBOR Integer | |
FromCBOR Natural | |
FromCBOR Word | |
FromCBOR Word8 | |
FromCBOR Word16 | |
FromCBOR Word32 | |
FromCBOR Word64 | |
FromCBOR () | |
FromCBOR ByteString | |
Defined in Bcc.Binary.FromCBOR | |
FromCBOR ShortByteString | |
Defined in Bcc.Binary.FromCBOR | |
FromCBOR Nano | |
FromCBOR Pico | |
FromCBOR Void | |
FromCBOR Text | |
FromCBOR UTCTime | |
FromCBOR NominalDiffTime | |
Defined in Bcc.Binary.FromCBOR | |
FromCBOR BlockNo | |
FromCBOR LByteString | |
FromCBOR EpochNo | |
FromCBOR SlotNo | |
FromCBOR Raw | |
FromCBOR NonNegativeInterval | |
FromCBOR UnitInterval | |
FromCBOR ProtVer | |
FromCBOR AurumGenesis | |
FromCBOR Coin | |
FromCBOR Language | |
FromCBOR Prices | |
FromCBOR ExUnits | |
FromCBOR Metadatum | |
FromCBOR AssetName | |
FromCBOR Likelihood | |
FromCBOR Ptr | |
FromCBOR Nonce | |
FromCBOR Desirability | |
FromCBOR StakePoolRelay | |
FromCBOR PoolMetadata | |
FromCBOR Network | |
FromCBOR ValidityInterval | |
FromCBOR ColeHash | |
FromCBOR PositiveUnitInterval | |
FromCBOR EpochAndSlotCount | |
FromCBOR EpochNumber | |
FromCBOR EpochSlots | |
Defined in Bcc.Chain.Slotting.EpochSlots | |
FromCBOR SlotCount | |
FromCBOR SlotNumber | |
FromCBOR Config | |
FromCBOR GenesisNonAvvmBalances | |
FromCBOR GenesisDelegation | |
FromCBOR GenesisKeyHashes | |
FromCBOR CompactAddress | |
FromCBOR RequiresNetworkMagic | |
FromCBOR GenesisAvvmBalances | |
FromCBOR ProtocolParameters | |
FromCBOR ProtocolVersion | |
FromCBOR ProtocolMagicId | |
FromCBOR Certificate | |
FromCBOR SigningKey | |
FromCBOR SoftwareVersion | |
FromCBOR VerificationKey | |
FromCBOR KeyHash | |
FromCBOR GenesisHash | |
FromCBOR CandidateProtocolUpdate | |
FromCBOR Endorsement | |
FromCBOR ApplyMempoolPayloadErr | |
Defined in Bcc.Chain.Cole.API.Mempool | |
FromCBOR Tx | |
FromCBOR Proposal | |
FromCBOR Vote | |
FromCBOR ChainValidationState | |
FromCBOR Map | |
FromCBOR ScheduledDelegation | |
FromCBOR State | |
FromCBOR UTxO | |
FromCBOR Error | |
FromCBOR ToSign | |
FromCBOR CompactRedeemVerificationKey | |
FromCBOR Entropic | |
FromCBOR SystemStart | |
Defined in Bcc.Slotting.Time | |
FromCBOR Point | |
FromCBOR Proof | |
FromCBOR SignKey | |
FromCBOR VerKey | |
FromCBOR RedeemVerificationKey | |
FromCBOR RedeemSigningKey | |
FromCBOR IsValid | |
FromCBOR TagMismatchDescription | |
FromCBOR FailureDescription | |
FromCBOR RdmrPtr | |
FromCBOR Tag | |
FromCBOR ScriptResult | |
FromCBOR ZerepochDebug | |
FromCBOR ChainDifficulty | |
FromCBOR Proof | |
FromCBOR SscPayload | |
FromCBOR ProposalBody | |
FromCBOR TxInWitness | |
FromCBOR Body | |
FromCBOR TxPayload | |
FromCBOR Payload | |
FromCBOR Payload | |
FromCBOR BlockSignature | |
FromCBOR TxProof | |
FromCBOR SscProof | |
FromCBOR CompactTxIn | |
FromCBOR CompactTxOut | |
FromCBOR State | |
FromCBOR UTxOValidationError | |
FromCBOR BlockCount | |
FromCBOR UTxOConfiguration | |
FromCBOR ApplicationName | |
FromCBOR ApplicationVersion | |
FromCBOR ProtocolUpdateProposal | |
FromCBOR SoftwareUpdateProposal | |
FromCBOR Error | |
FromCBOR HDAddressPayload | |
FromCBOR NetworkMagic | |
FromCBOR AddrSpendingData | |
FromCBOR AddrType | |
FromCBOR Address | |
FromCBOR Address' | |
FromCBOR EntropicError | |
FromCBOR EntropicPortion | |
FromCBOR TxFeePolicy | |
FromCBOR TxSizeLinear | |
FromCBOR State | |
FromCBOR State | |
FromCBOR GenesisData | |
FromCBOR CompactTxId | |
FromCBOR TxIn | |
FromCBOR TxOut | |
FromCBOR TxAux | |
FromCBOR TxSigData | |
FromCBOR UTxOError | |
FromCBOR ApplicationNameError | |
FromCBOR InstallerHash | |
FromCBOR SystemTag | |
FromCBOR ProtocolParametersUpdate | |
FromCBOR SoftforkRule | |
FromCBOR SoftwareVersionError | |
FromCBOR SystemTagError | |
FromCBOR Error | |
FromCBOR Error | |
FromCBOR Error | |
FromCBOR Adopted | |
FromCBOR ActiveSlotCoeff | |
FromCBOR DnsName | |
FromCBOR Port | |
FromCBOR PositiveInterval | |
FromCBOR Url | |
FromCBOR DeltaCoin | |
FromCBOR Aptr | |
FromCBOR KESPeriod | |
FromCBOR TicknState | |
FromCBOR ChainCode | |
FromCBOR AccountState | |
FromCBOR LogWeight | |
FromCBOR MIRPot | |
FromCBOR PerformanceEstimate | |
FromCBOR RewardType | |
FromCBOR VotingPeriod | |
FromCBOR TxValidationError | |
FromCBOR ExecutionUnits Source # | |
Defined in Bcc.Api.Script | |
FromCBOR AnyZerepochScriptVersion Source # | |
Defined in Bcc.Api.Script Methods fromCBOR ∷ Decoder s AnyZerepochScriptVersion # | |
FromCBOR Entropic Source # | |
FromCBOR UpdateProposal Source # | |
Defined in Bcc.Api.ProtocolParameters | |
FromCBOR CostModel Source # | |
FromCBOR ExecutionUnitPrices Source # | |
Defined in Bcc.Api.ProtocolParameters | |
FromCBOR OptimumNonce Source # | |
Defined in Bcc.Api.ProtocolParameters | |
FromCBOR ProtocolParametersUpdate Source # | |
Defined in Bcc.Api.ProtocolParameters Methods fromCBOR ∷ Decoder s ProtocolParametersUpdate # | |
FromCBOR Certificate Source # | |
Defined in Bcc.Api.Certificate | |
FromCBOR ScriptValidity Source # | |
Defined in Bcc.Api.TxBody | |
FromCBOR OperationalCertificateIssueCounter Source # | |
Defined in Bcc.Api.OperationalCertificate Methods fromCBOR ∷ Decoder s OperationalCertificateIssueCounter # | |
FromCBOR OperationalCertificate Source # | |
Defined in Bcc.Api.OperationalCertificate | |
FromCBOR a ⇒ FromCBOR [a] | |
FromCBOR a ⇒ FromCBOR (Maybe a) | |
(Integral a, FromCBOR a) ⇒ FromCBOR (Ratio a) | |
(Ord a, FromCBOR a) ⇒ FromCBOR (Set a) | |
FromCBOR a ⇒ FromCBOR (NonEmpty a) | |
(Serialise t, Typeable t) ⇒ FromCBOR (WithOrigin t) | |
FromCBOR a ⇒ FromCBOR (Vector a) | |
(Era era, FromCBOR (Annotator (TxBody era)), FromCBOR (Annotator (AuxiliaryData era)), FromCBOR (Annotator (Witnesses era)), ValidateScript era, Script era ~ Script era) ⇒ FromCBOR (Annotator (ValidatedTx era)) | |
(FromCBOR (Annotator (AuxiliaryData era)), FromCBOR (Annotator (Script era)), FromCBOR (Annotator (TxBody era)), FromCBOR (Annotator (Witnesses era)), ToCBOR (AuxiliaryData era), ToCBOR (Script era), ToCBOR (TxBody era), ToCBOR (Witnesses era), ValidateScript era, Script era ~ Script era, Era era) ⇒ FromCBOR (Annotator (TxSeq era)) | |
(Era era, ValidateScript era, Script era ~ Script era) ⇒ FromCBOR (Annotator (TxWitness era)) | |
(Typeable t, FromCBOR (Annotator t)) ⇒ FromCBOR (Annotator (MemoBytes t)) | |
(Era era, ToCBOR (Data era), ToCBOR (Script era), Typeable (Script era), ValidateScript era, Script era ~ Script era) ⇒ FromCBOR (Annotator (TxWitnessRaw era)) | |
(Typeable era, FromCBOR (Annotator (Script era)), ValidateScript era) ⇒ FromCBOR (Annotator (WitnessSetHKD Identity era)) | |
(BlockAnn era, Typeable era) ⇒ FromCBOR (Annotator (TxSeq era)) | |
(Era era, FromCBOR (Annotator (TxBody era)), FromCBOR (Annotator (AuxiliaryData era)), FromCBOR (Annotator (Witnesses era))) ⇒ FromCBOR (Annotator (Tx era)) | |
(Era era, AnnotatedData (Script era)) ⇒ FromCBOR (Annotator (AuxiliaryData era)) | |
Crypto crypto ⇒ FromCBOR (Annotator (Timelock crypto)) | |
FamsFrom era ⇒ FromCBOR (Annotator (TxBody era)) | |
(Era era, Ord (Script era), FromCBOR (Annotator (Script era)), Script era ~ Script era) ⇒ FromCBOR (Annotator (AuxiliaryData era)) | |
Typeable era ⇒ FromCBOR (Annotator (Data era)) | |
(Crypto (Crypto era), Typeable (Crypto era), Typeable era) ⇒ FromCBOR (Annotator (Script era)) | |
(Era era, Ord (Script era), FromCBOR (Annotator (Script era)), Script era ~ Script era) ⇒ FromCBOR (Annotator (AuxiliaryDataRaw era)) | |
Crypto crypto ⇒ FromCBOR (Annotator (TimelockRaw crypto)) | |
(Era era, AnnotatedData (Script era)) ⇒ FromCBOR (Annotator (AuxiliaryDataRaw era)) | |
(BlockAnn era, ValidateScript era, SupportsSegWit era, FromCBOR (Annotator (TxSeq era))) ⇒ FromCBOR (Annotator (Block era)) | |
Crypto crypto ⇒ FromCBOR (Annotator (BHeader crypto)) | |
(Typeable kr, Crypto crypto) ⇒ FromCBOR (Annotator (WitVKey kr crypto)) | |
(Era era, FromCBOR (TxOut era), FromCBOR (PParamsDelta era), ToCBOR (PParamsDelta era)) ⇒ FromCBOR (Annotator (TxBody era)) | |
Typeable era ⇒ FromCBOR (Annotator (Metadata era)) | |
Crypto crypto ⇒ FromCBOR (Annotator (MultiSig crypto)) | |
(Era era, Typeable (Script era), Typeable (AuxiliaryData era), Compactible (Value era), Show (Value era), DecodeNonNegative (Value era), FromCBOR (Annotator (Script era)), SerialisableData (PParamsDelta era)) ⇒ FromCBOR (Annotator (TxBody era)) | |
Crypto crypto ⇒ FromCBOR (Annotator (BootstrapWitness crypto)) | |
Era era ⇒ FromCBOR (Annotator (TxDats era)) | |
Era era ⇒ FromCBOR (Annotator (Redeemers era)) | |
SophieBasedEra era ⇒ FromCBOR (Annotator (Header (SophieBlock era))) | |
SophieBasedEra era ⇒ FromCBOR (Annotator (SophieBlock era)) | |
(Typeable era, Era era) ⇒ FromCBOR (Annotator (TxDatsRaw era)) | |
Era era ⇒ FromCBOR (Annotator (RedeemersRaw era)) | |
(Era era, Typeable (Script era), Typeable (AuxiliaryData era), Compactible (Value era), Show (Value era), DecodeNonNegative (Value era), FromCBOR (Annotator (Script era)), FromCBOR (PParamsDelta era), ToCBOR (PParamsDelta era)) ⇒ FromCBOR (Annotator (TxBodyRaw era)) | |
FamsFrom era ⇒ FromCBOR (Annotator (TxBodyRaw era)) | |
(Era era, BlockAnn era, ValidateScript era, TxSeq era ~ TxSeq era) ⇒ FromCBOR (Annotator (LaxBlock era)) | |
Crypto crypto ⇒ FromCBOR (Annotator (MultiSigRaw crypto)) | |
(Era era, FromCBOR (Annotator (TxBody era)), FromCBOR (Annotator (AuxiliaryData era)), FromCBOR (Annotator (Witnesses era))) ⇒ FromCBOR (Annotator (TxRaw era)) | |
(TransTxBody FromCBOR era, ToCBOR (PParamsDelta era), Era era) ⇒ FromCBOR (Annotator (TxBodyRaw era)) | |
FromCBOR (SigDSIGN Ed25519Bip32DSIGN) Source # | |
Defined in Bcc.Api.Crypto.Ed25519Bip32 Methods fromCBOR ∷ Decoder s (SigDSIGN Ed25519Bip32DSIGN) # | |
FromCBOR (SigDSIGN MockDSIGN) | |
FromCBOR (SigDSIGN Ed25519DSIGN) | |
FromCBOR (SigDSIGN Ed448DSIGN) | |
FromCBOR (SignKeyDSIGN Ed25519Bip32DSIGN) Source # | |
Defined in Bcc.Api.Crypto.Ed25519Bip32 Methods fromCBOR ∷ Decoder s (SignKeyDSIGN Ed25519Bip32DSIGN) # label ∷ Proxy (SignKeyDSIGN Ed25519Bip32DSIGN) → Text # | |
FromCBOR (SignKeyDSIGN MockDSIGN) | |
Defined in Bcc.Crypto.DSIGN.Mock Methods fromCBOR ∷ Decoder s (SignKeyDSIGN MockDSIGN) # label ∷ Proxy (SignKeyDSIGN MockDSIGN) → Text # | |
FromCBOR (SignKeyDSIGN Ed25519DSIGN) | |
Defined in Bcc.Crypto.DSIGN.Ed25519 Methods fromCBOR ∷ Decoder s (SignKeyDSIGN Ed25519DSIGN) # label ∷ Proxy (SignKeyDSIGN Ed25519DSIGN) → Text # | |
FromCBOR (SignKeyDSIGN Ed448DSIGN) | |
Defined in Bcc.Crypto.DSIGN.Ed448 Methods fromCBOR ∷ Decoder s (SignKeyDSIGN Ed448DSIGN) # label ∷ Proxy (SignKeyDSIGN Ed448DSIGN) → Text # | |
FromCBOR (VerKeyDSIGN Ed25519Bip32DSIGN) Source # | |
Defined in Bcc.Api.Crypto.Ed25519Bip32 Methods fromCBOR ∷ Decoder s (VerKeyDSIGN Ed25519Bip32DSIGN) # label ∷ Proxy (VerKeyDSIGN Ed25519Bip32DSIGN) → Text # | |
FromCBOR (VerKeyDSIGN MockDSIGN) | |
Defined in Bcc.Crypto.DSIGN.Mock | |
FromCBOR (VerKeyDSIGN Ed25519DSIGN) | |
Defined in Bcc.Crypto.DSIGN.Ed25519 Methods fromCBOR ∷ Decoder s (VerKeyDSIGN Ed25519DSIGN) # label ∷ Proxy (VerKeyDSIGN Ed25519DSIGN) → Text # | |
FromCBOR (VerKeyDSIGN Ed448DSIGN) | |
Defined in Bcc.Crypto.DSIGN.Ed448 Methods fromCBOR ∷ Decoder s (VerKeyDSIGN Ed448DSIGN) # label ∷ Proxy (VerKeyDSIGN Ed448DSIGN) → Text # | |
(Era era, FromCBOR (PParamsDelta era)) ⇒ FromCBOR (PPUPState era) | |
FromCBOR a ⇒ FromCBOR (StrictMaybe a) | |
(SophieBased era, FromCBOR (PredicateFailure (EraRule "LEDGER" era))) ⇒ FromCBOR (ApplyTxError era) | |
(TransValue FromCBOR era, FromCBOR (State (EraRule "PPUP" era)), FromCBOR (TxOut era), HashAnnotated (TxBody era) EraIndependentTxBody (Crypto era)) ⇒ FromCBOR (UTxOState era) | |
Crypto crypto ⇒ FromCBOR (DPState crypto) | |
Era era ⇒ FromCBOR (PParamsUpdate era) | |
Era era ⇒ FromCBOR (PParams era) | |
(FromCBOR (PredicateFailure (EraRule "DELEGS" era)), FromCBOR (PredicateFailure (EraRule "UTXOW" era)), Era era) ⇒ FromCBOR (LedgerPredicateFailure era) | |
Era era ⇒ FromCBOR (PParams era) | |
Era era ⇒ FromCBOR (PParamsUpdate era) | |
Crypto crypto ⇒ FromCBOR (ScriptHash crypto) | |
Crypto crypto ⇒ FromCBOR (AuxiliaryDataHash crypto) | |
(FromCBOR (PParams era), TransValue FromCBOR era, HashAnnotated (TxBody era) EraIndependentTxBody (Crypto era), FromCBOR (TxOut era), FromCBOR (State (EraRule "PPUP" era)), Era era) ⇒ FromCBOR (EpochState era) | |
(Era era, HashAnnotated (TxBody era) EraIndependentTxBody (Crypto era), FromCBOR (TxOut era), FromCBOR (Value era), FromCBOR (State (EraRule "PPUP" era))) ⇒ FromCBOR (LedgerState era) | |
(Era era, FromCBOR (PParams era), FromCBOR (TxOut era), FromCBOR (Value era), FromCBOR (State (EraRule "PPUP" era))) ⇒ FromCBOR (NewEpochState era) | |
(Era era, TransTxOut DecodeNonNegative era, Show (Value era)) ⇒ FromCBOR (TxOut era) | |
Crypto crypto ⇒ FromCBOR (Addr crypto) | |
Crypto crypto ⇒ FromCBOR (BlocksMade crypto) | |
Crypto crypto ⇒ FromCBOR (SnapShots crypto) | |
Crypto crypto ⇒ FromCBOR (NonMyopic crypto) | |
Crypto crypto ⇒ FromCBOR (PulsingRewUpdate crypto) | |
Crypto crypto ⇒ FromCBOR (PoolDistr crypto) | |
(Era era, FromCBOR (PParamsDelta era)) ⇒ FromCBOR (ProposedPPUpdates era) | |
Era era ⇒ FromCBOR (SophieGenesis era) | |
Defined in Sophie.Spec.Ledger.Genesis | |
Crypto crypto ⇒ FromCBOR (GenDelegPair crypto) | |
Crypto crypto ⇒ FromCBOR (VestedDelegPair crypto) | |
Crypto crypto ⇒ FromCBOR (SophieGenesisStaking crypto) | |
FromCBOR (CompactForm Coin) | |
Crypto crypto ⇒ FromCBOR (CompactForm (Value crypto)) | |
(FromCBOR (TxOut era), Era era) ⇒ FromCBOR (UTxO era) | |
(Era era, FromCBOR (PParamsDelta era)) ⇒ FromCBOR (Update era) | |
Crypto crypto ⇒ FromCBOR (TxIn crypto) | |
(Era era, DecodeNonNegative (Value era), Show (Value era), Compactible (Value era)) ⇒ FromCBOR (TxOut era) | |
Crypto crypto ⇒ FromCBOR (Value crypto) | |
Crypto crypto ⇒ FromCBOR (PolicyID crypto) | |
Crypto crypto ⇒ FromCBOR (DCert crypto) | |
Crypto crypto ⇒ FromCBOR (Wdrl crypto) | |
Crypto crypto ⇒ FromCBOR (PState crypto) | |
Crypto crypto ⇒ FromCBOR (PoolParams crypto) | |
Crypto crypto ⇒ FromCBOR (InstantaneousRewards crypto) | |
Crypto crypto ⇒ FromCBOR (SnapShot crypto) | |
Crypto crypto ⇒ FromCBOR (ChainDepState crypto) | |
Crypto crypto ⇒ FromCBOR (FutureGenDeleg crypto) | |
Crypto crypto ⇒ FromCBOR (FutureVestedDeleg crypto) | |
Crypto crypto ⇒ FromCBOR (DState crypto) | |
Crypto crypto ⇒ FromCBOR (IndividualPoolStake crypto) | |
Crypto crypto ⇒ FromCBOR (RewardProvenance crypto) | |
Crypto crypto ⇒ FromCBOR (RewardProvenancePool crypto) | |
FromCBOR (VerKeyVRF OptimumVRF) | |
FromCBOR (VerKeyVRF MockVRF) | |
FromCBOR (VerKeyVRF SimpleVRF) | |
Crypto crypto ⇒ FromCBOR (RewardAcnt crypto) | |
Crypto crypto ⇒ FromCBOR (CompactAddr crypto) | |
DSIGNAlgorithm d ⇒ FromCBOR (SigKES (SingleKES d)) | |
(KESAlgorithm d, HashAlgorithm h, Typeable d) ⇒ FromCBOR (SigKES (SumKES h d)) | |
KnownNat t ⇒ FromCBOR (SigKES (MockKES t)) | |
(DSIGNAlgorithm d, Typeable d, KnownNat t, KnownNat (SeedSizeDSIGN d * t)) ⇒ FromCBOR (SigKES (SimpleKES d t)) | |
DSIGNAlgorithm d ⇒ FromCBOR (VerKeyKES (SingleKES d)) | |
(KESAlgorithm d, HashAlgorithm h, Typeable d) ⇒ FromCBOR (VerKeyKES (SumKES h d)) | |
KnownNat t ⇒ FromCBOR (VerKeyKES (MockKES t)) | |
(DSIGNAlgorithm d, Typeable d, KnownNat t, KnownNat (SeedSizeDSIGN d * t)) ⇒ FromCBOR (VerKeyKES (SimpleKES d t)) | |
DSIGNAlgorithm d ⇒ FromCBOR (SignKeyKES (SingleKES d)) | |
(KESAlgorithm d, HashAlgorithm h, Typeable d) ⇒ FromCBOR (SignKeyKES (SumKES h d)) | |
KnownNat t ⇒ FromCBOR (SignKeyKES (MockKES t)) | |
(DSIGNAlgorithm d, Typeable d, KnownNat t, KnownNat (SeedSizeDSIGN d * t)) ⇒ FromCBOR (SignKeyKES (SimpleKES d t)) | |
FromCBOR (Hash StakePoolKey) Source # | |
Defined in Bcc.Api.KeysSophie | |
FromCBOR (Hash VestedDelegateExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (Hash VestedDelegateExtendedKey) # | |
FromCBOR (Hash VestedDelegateKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (Hash VestedDelegateKey) # | |
FromCBOR (Hash VestedExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (Hash VestedExtendedKey) # | |
FromCBOR (Hash VestedKey) Source # | |
FromCBOR (Hash GenesisVestedDelegateExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (Hash GenesisVestedDelegateExtendedKey) # label ∷ Proxy (Hash GenesisVestedDelegateExtendedKey) → Text # | |
FromCBOR (Hash GenesisVestedDelegateKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (Hash GenesisVestedDelegateKey) # | |
FromCBOR (Hash GenesisVestedExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (Hash GenesisVestedExtendedKey) # | |
FromCBOR (Hash GenesisVestedKey) Source # | |
Defined in Bcc.Api.KeysSophie | |
FromCBOR (Hash VestedUTxOKey) Source # | |
Defined in Bcc.Api.KeysSophie | |
FromCBOR (Hash GenesisUTxOKey) Source # | |
Defined in Bcc.Api.KeysSophie | |
FromCBOR (Hash GenesisDelegateExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (Hash GenesisDelegateExtendedKey) # | |
FromCBOR (Hash GenesisDelegateKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (Hash GenesisDelegateKey) # | |
FromCBOR (Hash GenesisExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (Hash GenesisExtendedKey) # | |
FromCBOR (Hash GenesisKey) Source # | |
Defined in Bcc.Api.KeysSophie | |
FromCBOR (Hash StakeExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie | |
FromCBOR (Hash StakeKey) Source # | |
FromCBOR (Hash PaymentExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (Hash PaymentExtendedKey) # | |
FromCBOR (Hash PaymentKey) Source # | |
Defined in Bcc.Api.KeysSophie | |
FromCBOR (Hash ColeKeyLegacy) Source # | |
Defined in Bcc.Api.KeysCole | |
FromCBOR (Hash ColeKey) Source # | |
FromCBOR (Hash VrfKey) Source # | |
FromCBOR (Hash KesKey) Source # | |
Crypto c ⇒ FromCBOR (SophieHash c) | |
Era era ⇒ FromCBOR (CompactGenesis era) | |
FromCBOR (ATxAux ByteSpan) | |
FromCBOR (ACertificate ByteSpan) | |
FromCBOR (AProposal ByteSpan) | |
FromCBOR (AVote ByteSpan) | |
Crypto crypto ⇒ FromCBOR (BHBody crypto) | |
Crypto crypto ⇒ FromCBOR (PrevHash crypto) | |
Crypto crypto ⇒ FromCBOR (HashHeader crypto) | |
Crypto crypto ⇒ FromCBOR (TxId crypto) | |
Crypto crypto ⇒ FromCBOR (PrtclState crypto) | |
Typeable v ⇒ FromCBOR (OutputVRF v) | |
FromCBOR (CertVRF OptimumVRF) | |
FromCBOR (CertVRF MockVRF) | |
FromCBOR (CertVRF SimpleVRF) | |
FromCBOR (SignKeyVRF OptimumVRF) | |
FromCBOR (SignKeyVRF MockVRF) | |
FromCBOR (SignKeyVRF SimpleVRF) | |
Typeable a ⇒ FromCBOR (RedeemSignature a) | |
Typeable a ⇒ FromCBOR (Signature a) | |
(Typeable era, FromCBOR (BbodyPredicateFailure era)) ⇒ FromCBOR (AurumBbodyPredFail era) | |
(Era era, FromCBOR (PredicateFailure (EraRule "UTXO" era)), Typeable (Script era), Typeable (AuxiliaryData era)) ⇒ FromCBOR (AurumPredFail era) | |
(Era era, FromCBOR (PredicateFailure (EraRule "DELPL" era)), Typeable (Script era)) ⇒ FromCBOR (DelegsPredicateFailure era) | |
Crypto crypto ⇒ FromCBOR (GenDelegs crypto) | |
(Era era, FromCBOR (TxOut era), FromCBOR (Value era), FromCBOR (PredicateFailure (EraRule "UTXOS" era))) ⇒ FromCBOR (UtxoPredicateFailure era) | |
(Era era, FromCBOR (PredicateFailure (EraRule "PPUP" era))) ⇒ FromCBOR (UtxosPredicateFailure era) | |
Era era ⇒ FromCBOR (PpupPredicateFailure era) | |
Crypto crypto ⇒ FromCBOR (CollectError crypto) | |
(Era era, FromCBOR (PredicateFailure (EraRule "UTXO" era)), Typeable (Script era), Typeable (AuxiliaryData era)) ⇒ FromCBOR (UtxowPredicateFailure era) | |
(Typeable c, Crypto c) ⇒ FromCBOR (ScriptPurpose c) | |
(Era era, Typeable (Script era), Typeable (AuxiliaryData era), Compactible (Value era), Show (Value era), DecodeNonNegative (Value era), FromCBOR (Annotator (Script era)), FromCBOR (PParamsDelta era), ToCBOR (PParamsDelta era)) ⇒ FromCBOR (TxBodyRaw era) | |
FromCBOR (ABody ByteSpan) | |
FromCBOR (APayload ByteSpan) | |
FromCBOR (ABlockSignature ByteSpan) | |
FromCBOR (ATxPayload ByteSpan) | |
FromCBOR (APayload ByteSpan) | |
FromCBOR (Attributes ()) | |
FromCBOR (Attributes AddrAttributes) | |
FromCBOR a ⇒ FromCBOR (MerkleRoot a) | |
(FromCBOR a, ToCBOR a) ⇒ FromCBOR (MerkleTree a) | |
FromCBOR n ⇒ FromCBOR (TooLarge n) | |
(FromCBORGroup a, ToCBORGroup a) ⇒ FromCBOR (CBORGroup a) | |
Crypto crypto ⇒ FromCBOR (VestedDelegs crypto) | |
Crypto crypto ⇒ FromCBOR (CompactValue crypto) | |
(TransValue FromCBOR era, TransUTxO FromCBOR era, DecodeNonNegative (Value era), Show (Value era), FromCBOR (PredicateFailure (EraRule "PPUP" era))) ⇒ FromCBOR (UtxoPredicateFailure era) | |
FamsFrom era ⇒ FromCBOR (TxBodyRaw era) | |
Crypto crypto ⇒ FromCBOR (LastAppliedBlock crypto) | |
Crypto crypto ⇒ FromCBOR (OBftSlot crypto) | |
Crypto crypto ⇒ FromCBOR (Stake crypto) | |
Crypto crypto ⇒ FromCBOR (RewardSnapShot crypto) | |
Crypto crypto ⇒ FromCBOR (RewardUpdate crypto) | |
Crypto c ⇒ FromCBOR (RewardAns c) | |
Crypto c ⇒ FromCBOR (Pulser c) | |
Crypto crypto ⇒ FromCBOR (FreeVars crypto) | |
Crypto crypto ⇒ FromCBOR (Reward crypto) | |
(Era era, Typeable (Script era)) ⇒ FromCBOR (DelegPredicateFailure era) | |
(Era era, FromCBOR (PredicateFailure (EraRule "POOL" era)), FromCBOR (PredicateFailure (EraRule "DELEG" era)), Typeable (Script era)) ⇒ FromCBOR (DelplPredicateFailure era) | |
Era era ⇒ FromCBOR (PoolPredicateFailure era) | |
(SophieBased era, FromCBOR (PredicateFailure (EraRule "LEDGER" era))) ⇒ FromCBOR (LedgersPredicateFailure era) | |
(TransValue FromCBOR era, TransUTxO FromCBOR era, DecodeNonNegative (Value era), Show (Value era), FromCBOR (PredicateFailure (EraRule "PPUP" era))) ⇒ FromCBOR (UtxoPredicateFailure era) | |
Crypto crypto ⇒ FromCBOR (MIRCert crypto) | |
Crypto crypto ⇒ FromCBOR (MIRTarget crypto) | |
Crypto crypto ⇒ FromCBOR (StakeCreds crypto) | |
(FromCBOR (TxOut era), Era era, FromCBOR (PParamsDelta era), ToCBOR (PParamsDelta era)) ⇒ FromCBOR (TxBodyRaw era) | |
FromCBOR a ⇒ FromCBOR (CborSeq a) | |
FromCBOR (VerificationKey StakePoolKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey StakePoolKey) # label ∷ Proxy (VerificationKey StakePoolKey) → Text # | |
FromCBOR (VerificationKey VestedDelegateExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey VestedDelegateExtendedKey) # label ∷ Proxy (VerificationKey VestedDelegateExtendedKey) → Text # | |
FromCBOR (VerificationKey VestedDelegateKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey VestedDelegateKey) # | |
FromCBOR (VerificationKey VestedExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey VestedExtendedKey) # | |
FromCBOR (VerificationKey VestedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey VestedKey) # | |
FromCBOR (VerificationKey GenesisVestedDelegateExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey GenesisVestedDelegateExtendedKey) # label ∷ Proxy (VerificationKey GenesisVestedDelegateExtendedKey) → Text # | |
FromCBOR (VerificationKey GenesisVestedDelegateKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey GenesisVestedDelegateKey) # label ∷ Proxy (VerificationKey GenesisVestedDelegateKey) → Text # | |
FromCBOR (VerificationKey GenesisVestedExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey GenesisVestedExtendedKey) # label ∷ Proxy (VerificationKey GenesisVestedExtendedKey) → Text # | |
FromCBOR (VerificationKey GenesisVestedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey GenesisVestedKey) # | |
FromCBOR (VerificationKey VestedUTxOKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey VestedUTxOKey) # label ∷ Proxy (VerificationKey VestedUTxOKey) → Text # | |
FromCBOR (VerificationKey GenesisUTxOKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey GenesisUTxOKey) # label ∷ Proxy (VerificationKey GenesisUTxOKey) → Text # | |
FromCBOR (VerificationKey GenesisDelegateExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey GenesisDelegateExtendedKey) # label ∷ Proxy (VerificationKey GenesisDelegateExtendedKey) → Text # | |
FromCBOR (VerificationKey GenesisDelegateKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey GenesisDelegateKey) # | |
FromCBOR (VerificationKey GenesisExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey GenesisExtendedKey) # | |
FromCBOR (VerificationKey GenesisKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey GenesisKey) # label ∷ Proxy (VerificationKey GenesisKey) → Text # | |
FromCBOR (VerificationKey StakeExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey StakeExtendedKey) # | |
FromCBOR (VerificationKey StakeKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey StakeKey) # | |
FromCBOR (VerificationKey PaymentExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey PaymentExtendedKey) # | |
FromCBOR (VerificationKey PaymentKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (VerificationKey PaymentKey) # label ∷ Proxy (VerificationKey PaymentKey) → Text # | |
FromCBOR (VerificationKey ColeKeyLegacy) Source # | |
Defined in Bcc.Api.KeysCole Methods fromCBOR ∷ Decoder s (VerificationKey ColeKeyLegacy) # label ∷ Proxy (VerificationKey ColeKeyLegacy) → Text # | |
FromCBOR (VerificationKey ColeKey) Source # | |
Defined in Bcc.Api.KeysCole Methods fromCBOR ∷ Decoder s (VerificationKey ColeKey) # | |
FromCBOR (VerificationKey VrfKey) Source # | |
Defined in Bcc.Api.KeysOptimum Methods fromCBOR ∷ Decoder s (VerificationKey VrfKey) # | |
FromCBOR (VerificationKey KesKey) Source # | |
Defined in Bcc.Api.KeysOptimum Methods fromCBOR ∷ Decoder s (VerificationKey KesKey) # | |
FromCBOR (SigningKey StakePoolKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey StakePoolKey) # label ∷ Proxy (SigningKey StakePoolKey) → Text # | |
FromCBOR (SigningKey VestedDelegateExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey VestedDelegateExtendedKey) # label ∷ Proxy (SigningKey VestedDelegateExtendedKey) → Text # | |
FromCBOR (SigningKey VestedDelegateKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey VestedDelegateKey) # label ∷ Proxy (SigningKey VestedDelegateKey) → Text # | |
FromCBOR (SigningKey VestedExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey VestedExtendedKey) # label ∷ Proxy (SigningKey VestedExtendedKey) → Text # | |
FromCBOR (SigningKey VestedKey) Source # | |
Defined in Bcc.Api.KeysSophie | |
FromCBOR (SigningKey GenesisVestedDelegateExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey GenesisVestedDelegateExtendedKey) # label ∷ Proxy (SigningKey GenesisVestedDelegateExtendedKey) → Text # | |
FromCBOR (SigningKey GenesisVestedDelegateKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey GenesisVestedDelegateKey) # label ∷ Proxy (SigningKey GenesisVestedDelegateKey) → Text # | |
FromCBOR (SigningKey GenesisVestedExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey GenesisVestedExtendedKey) # label ∷ Proxy (SigningKey GenesisVestedExtendedKey) → Text # | |
FromCBOR (SigningKey GenesisVestedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey GenesisVestedKey) # label ∷ Proxy (SigningKey GenesisVestedKey) → Text # | |
FromCBOR (SigningKey VestedUTxOKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey VestedUTxOKey) # label ∷ Proxy (SigningKey VestedUTxOKey) → Text # | |
FromCBOR (SigningKey GenesisUTxOKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey GenesisUTxOKey) # label ∷ Proxy (SigningKey GenesisUTxOKey) → Text # | |
FromCBOR (SigningKey GenesisDelegateExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey GenesisDelegateExtendedKey) # label ∷ Proxy (SigningKey GenesisDelegateExtendedKey) → Text # | |
FromCBOR (SigningKey GenesisDelegateKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey GenesisDelegateKey) # label ∷ Proxy (SigningKey GenesisDelegateKey) → Text # | |
FromCBOR (SigningKey GenesisExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey GenesisExtendedKey) # label ∷ Proxy (SigningKey GenesisExtendedKey) → Text # | |
FromCBOR (SigningKey GenesisKey) Source # | |
Defined in Bcc.Api.KeysSophie | |
FromCBOR (SigningKey StakeExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey StakeExtendedKey) # label ∷ Proxy (SigningKey StakeExtendedKey) → Text # | |
FromCBOR (SigningKey StakeKey) Source # | |
Defined in Bcc.Api.KeysSophie | |
FromCBOR (SigningKey PaymentExtendedKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods fromCBOR ∷ Decoder s (SigningKey PaymentExtendedKey) # label ∷ Proxy (SigningKey PaymentExtendedKey) → Text # | |
FromCBOR (SigningKey PaymentKey) Source # | |
Defined in Bcc.Api.KeysSophie | |
FromCBOR (SigningKey ColeKeyLegacy) Source # | |
Defined in Bcc.Api.KeysCole Methods fromCBOR ∷ Decoder s (SigningKey ColeKeyLegacy) # label ∷ Proxy (SigningKey ColeKeyLegacy) → Text # | |
FromCBOR (SigningKey ColeKey) Source # | |
Defined in Bcc.Api.KeysCole | |
FromCBOR (SigningKey VrfKey) Source # | |
Defined in Bcc.Api.KeysOptimum | |
FromCBOR (SigningKey KesKey) Source # | |
Defined in Bcc.Api.KeysOptimum | |
(SerialiseAsRawBytes a, Typeable a) ⇒ FromCBOR (UsingRawBytes a) Source # | |
Defined in Bcc.Api.SerialiseUsing | |
(Typeable lang, HasTypeProxy lang) ⇒ FromCBOR (ZerepochScript lang) Source # | |
Defined in Bcc.Api.Script | |
(Typeable era, TransLedgerState FromCBOR (SophieLedgerEra era)) ⇒ FromCBOR (DebugLedgerState era) Source # | |
Defined in Bcc.Api.Query | |
(FromCBOR a, FromCBOR b) ⇒ FromCBOR (Either a b) | |
(FromCBOR a, FromCBOR b) ⇒ FromCBOR (a, b) | |
(Ord k, FromCBOR k, FromCBOR v) ⇒ FromCBOR (Map k v) | |
(HashAlgorithm h, Typeable a) ⇒ FromCBOR (Hash h a) | |
(Crypto crypto, Typeable disc) ⇒ FromCBOR (KeyHash disc crypto) | |
(Typeable index, Crypto c) ⇒ FromCBOR (SafeHash c index) | |
(Typeable kr, Crypto crypto) ⇒ FromCBOR (Credential kr crypto) | |
(Typeable algo, Typeable a, HashAlgorithm algo) ⇒ FromCBOR (AbstractHash algo a) | |
(Crypto crypto, Typeable kd) ⇒ FromCBOR (VKey kd crypto) | |
(VRFAlgorithm v, Typeable a) ⇒ FromCBOR (CertifiedVRF v a) | |
(FromCBOR a, Bounded (BoundedRatio b a), Bounded a, Integral a, Typeable b, Typeable a, Show a) ⇒ FromCBOR (BoundedRatio b a) | |
(FromCBOR a, FromCBOR b, FromCBOR c) ⇒ FromCBOR (a, b, c) | |
(Typeable s, FromCBOR a) ⇒ FromCBOR (Tagged s a) | |
(Ord a, Ord b, FromCBOR a, FromCBOR b) ⇒ FromCBOR (BiMap b a b) | |
(FromCBOR a, FromCBOR b, FromCBOR c, FromCBOR d) ⇒ FromCBOR (a, b, c, d) | |
(FromCBOR a, FromCBOR b, FromCBOR c, FromCBOR d, FromCBOR e) ⇒ FromCBOR (a, b, c, d, e) | |
(FromCBOR a, FromCBOR b, FromCBOR c, FromCBOR d, FromCBOR e, FromCBOR f, FromCBOR g) ⇒ FromCBOR (a, b, c, d, e, f, g) | |
serialiseToCBOR ∷ SerialiseAsCBOR a ⇒ a → ByteString Source #
deserialiseFromCBOR ∷ SerialiseAsCBOR a ⇒ AsType a → ByteString → Either DecoderError a Source #
JSON
Instances
ToJSON Bool | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Bool → Encoding # toJSONList ∷ [Bool] → Value # toEncodingList ∷ [Bool] → Encoding # | |
ToJSON Char | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Char → Encoding # toJSONList ∷ [Char] → Value # toEncodingList ∷ [Char] → Encoding # | |
ToJSON Double | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Double → Encoding # toJSONList ∷ [Double] → Value # toEncodingList ∷ [Double] → Encoding # | |
ToJSON Float | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Float → Encoding # toJSONList ∷ [Float] → Value # toEncodingList ∷ [Float] → Encoding # | |
ToJSON Int | |
Defined in Data.Aeson.Types.ToJSON | |
ToJSON Int8 | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Int8 → Encoding # toJSONList ∷ [Int8] → Value # toEncodingList ∷ [Int8] → Encoding # | |
ToJSON Int16 | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Int16 → Encoding # toJSONList ∷ [Int16] → Value # toEncodingList ∷ [Int16] → Encoding # | |
ToJSON Int32 | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Int32 → Encoding # toJSONList ∷ [Int32] → Value # toEncodingList ∷ [Int32] → Encoding # | |
ToJSON Int64 | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Int64 → Encoding # toJSONList ∷ [Int64] → Value # toEncodingList ∷ [Int64] → Encoding # | |
ToJSON Integer | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Integer → Encoding # toJSONList ∷ [Integer] → Value # toEncodingList ∷ [Integer] → Encoding # | |
ToJSON Natural | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Natural → Encoding # toJSONList ∷ [Natural] → Value # toEncodingList ∷ [Natural] → Encoding # | |
ToJSON Ordering | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Ordering → Encoding # toJSONList ∷ [Ordering] → Value # toEncodingList ∷ [Ordering] → Encoding # | |
ToJSON Word | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Word → Encoding # toJSONList ∷ [Word] → Value # toEncodingList ∷ [Word] → Encoding # | |
ToJSON Word8 | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Word8 → Encoding # toJSONList ∷ [Word8] → Value # toEncodingList ∷ [Word8] → Encoding # | |
ToJSON Word16 | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Word16 → Encoding # toJSONList ∷ [Word16] → Value # toEncodingList ∷ [Word16] → Encoding # | |
ToJSON Word32 | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Word32 → Encoding # toJSONList ∷ [Word32] → Value # toEncodingList ∷ [Word32] → Encoding # | |
ToJSON Word64 | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Word64 → Encoding # toJSONList ∷ [Word64] → Value # toEncodingList ∷ [Word64] → Encoding # | |
ToJSON () | |
Defined in Data.Aeson.Types.ToJSON | |
ToJSON Version | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Version → Encoding # toJSONList ∷ [Version] → Value # toEncodingList ∷ [Version] → Encoding # | |
ToJSON Void | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Void → Encoding # toJSONList ∷ [Void] → Value # toEncodingList ∷ [Void] → Encoding # | |
ToJSON CTime | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ CTime → Encoding # toJSONList ∷ [CTime] → Value # toEncodingList ∷ [CTime] → Encoding # | |
ToJSON IntSet | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ IntSet → Encoding # toJSONList ∷ [IntSet] → Value # toEncodingList ∷ [IntSet] → Encoding # | |
ToJSON Text | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Text → Encoding # toJSONList ∷ [Text] → Value # toEncodingList ∷ [Text] → Encoding # | |
ToJSON Text | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Text → Encoding # toJSONList ∷ [Text] → Value # toEncodingList ∷ [Text] → Encoding # | |
ToJSON ZonedTime | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ ZonedTime → Encoding # toJSONList ∷ [ZonedTime] → Value # toEncodingList ∷ [ZonedTime] → Encoding # | |
ToJSON LocalTime | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ LocalTime → Encoding # toJSONList ∷ [LocalTime] → Value # toEncodingList ∷ [LocalTime] → Encoding # | |
ToJSON TimeOfDay | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ TimeOfDay → Encoding # toJSONList ∷ [TimeOfDay] → Value # toEncodingList ∷ [TimeOfDay] → Encoding # | |
ToJSON CalendarDiffTime | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ CalendarDiffTime → Value # toEncoding ∷ CalendarDiffTime → Encoding # toJSONList ∷ [CalendarDiffTime] → Value # toEncodingList ∷ [CalendarDiffTime] → Encoding # | |
ToJSON UTCTime | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ UTCTime → Encoding # toJSONList ∷ [UTCTime] → Value # toEncodingList ∷ [UTCTime] → Encoding # | |
ToJSON SystemTime | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ SystemTime → Value # toEncoding ∷ SystemTime → Encoding # toJSONList ∷ [SystemTime] → Value # toEncodingList ∷ [SystemTime] → Encoding # | |
ToJSON NominalDiffTime | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ NominalDiffTime → Value # toEncoding ∷ NominalDiffTime → Encoding # toJSONList ∷ [NominalDiffTime] → Value # toEncodingList ∷ [NominalDiffTime] → Encoding # | |
ToJSON DiffTime | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ DiffTime → Encoding # toJSONList ∷ [DiffTime] → Value # toEncodingList ∷ [DiffTime] → Encoding # | |
ToJSON DayOfWeek | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ DayOfWeek → Encoding # toJSONList ∷ [DayOfWeek] → Value # toEncodingList ∷ [DayOfWeek] → Encoding # | |
ToJSON Day | |
Defined in Data.Aeson.Types.ToJSON | |
ToJSON CalendarDiffDays | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ CalendarDiffDays → Value # toEncoding ∷ CalendarDiffDays → Encoding # toJSONList ∷ [CalendarDiffDays] → Value # toEncodingList ∷ [CalendarDiffDays] → Encoding # | |
ToJSON Number | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Number → Encoding # toJSONList ∷ [Number] → Value # toEncodingList ∷ [Number] → Encoding # | |
ToJSON Scientific | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Scientific → Encoding # toJSONList ∷ [Scientific] → Value # toEncodingList ∷ [Scientific] → Encoding # | |
ToJSON DotNetTime | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ DotNetTime → Encoding # toJSONList ∷ [DotNetTime] → Value # toEncodingList ∷ [DotNetTime] → Encoding # | |
ToJSON Value | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Value → Encoding # toJSONList ∷ [Value] → Value # toEncodingList ∷ [Value] → Encoding # | |
ToJSON ByteSpan | |
Defined in Bcc.Binary.Annotated Methods toEncoding ∷ ByteSpan → Encoding # toJSONList ∷ [ByteSpan] → Value # toEncodingList ∷ [ByteSpan] → Encoding # | |
ToJSON EpochNo | |
Defined in Bcc.Slotting.Slot Methods toEncoding ∷ EpochNo → Encoding # toJSONList ∷ [EpochNo] → Value # toEncodingList ∷ [EpochNo] → Encoding # | |
ToJSON EpochSize | |
Defined in Bcc.Slotting.Slot Methods toEncoding ∷ EpochSize → Encoding # toJSONList ∷ [EpochSize] → Value # toEncodingList ∷ [EpochSize] → Encoding # | |
ToJSON SlotNo | |
Defined in Bcc.Slotting.Slot Methods toEncoding ∷ SlotNo → Encoding # toJSONList ∷ [SlotNo] → Value # toEncodingList ∷ [SlotNo] → Encoding # | |
ToJSON UUID | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ UUID → Encoding # toJSONList ∷ [UUID] → Value # toEncodingList ∷ [UUID] → Encoding # | |
ToJSON NonNegativeInterval | |
Defined in Bcc.Ledger.BaseTypes Methods toJSON ∷ NonNegativeInterval → Value # toEncoding ∷ NonNegativeInterval → Encoding # toJSONList ∷ [NonNegativeInterval] → Value # toEncodingList ∷ [NonNegativeInterval] → Encoding # | |
ToJSON UnitInterval | |
Defined in Bcc.Ledger.BaseTypes Methods toJSON ∷ UnitInterval → Value # toEncoding ∷ UnitInterval → Encoding # toJSONList ∷ [UnitInterval] → Value # toEncodingList ∷ [UnitInterval] → Encoding # | |
ToJSON ProtVer | |
Defined in Bcc.Protocol.TOptimum Methods toEncoding ∷ ProtVer → Encoding # toJSONList ∷ [ProtVer] → Value # toEncodingList ∷ [ProtVer] → Encoding # | |
ToJSON AurumGenesis Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ AurumGenesis → Value # toEncoding ∷ AurumGenesis → Encoding # toJSONList ∷ [AurumGenesis] → Value # toEncodingList ∷ [AurumGenesis] → Encoding # | |
ToJSON Coin | |
Defined in Bcc.Ledger.Coin Methods toEncoding ∷ Coin → Encoding # toJSONList ∷ [Coin] → Value # toEncodingList ∷ [Coin] → Encoding # | |
ToJSON Language Source # | |
Defined in Bcc.Api.Orphans Methods toEncoding ∷ Language → Encoding # toJSONList ∷ [Language] → Value # toEncodingList ∷ [Language] → Encoding # | |
ToJSON CostModel Source # | |
Defined in Bcc.Api.Orphans Methods toEncoding ∷ CostModel → Encoding # toJSONList ∷ [CostModel] → Value # toEncodingList ∷ [CostModel] → Encoding # | |
ToJSON Prices Source # | |
Defined in Bcc.Api.Orphans Methods toEncoding ∷ Prices → Encoding # toJSONList ∷ [Prices] → Value # toEncodingList ∷ [Prices] → Encoding # | |
ToJSON ExUnits Source # | |
Defined in Bcc.Api.Orphans Methods toEncoding ∷ ExUnits → Encoding # toJSONList ∷ [ExUnits] → Value # toEncodingList ∷ [ExUnits] → Encoding # | |
ToJSON AssetClass | |
Defined in Zerepoch.V1.Ledger.Value Methods toEncoding ∷ AssetClass → Encoding # toJSONList ∷ [AssetClass] → Value # toEncodingList ∷ [AssetClass] → Encoding # | |
ToJSON CurrencySymbol | |
Defined in Zerepoch.V1.Ledger.Value Methods toJSON ∷ CurrencySymbol → Value # toEncoding ∷ CurrencySymbol → Encoding # toJSONList ∷ [CurrencySymbol] → Value # toEncodingList ∷ [CurrencySymbol] → Encoding # | |
ToJSON TokenName | |
Defined in Zerepoch.V1.Ledger.Value Methods toEncoding ∷ TokenName → Encoding # toJSONList ∷ [TokenName] → Value # toEncodingList ∷ [TokenName] → Encoding # | |
ToJSON Value | |
Defined in Zerepoch.V1.Ledger.Value Methods toEncoding ∷ Value → Encoding # toJSONList ∷ [Value] → Value0 # toEncodingList ∷ [Value] → Encoding # | |
ToJSON MintingPolicyHash | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toJSON ∷ MintingPolicyHash → Value # toEncoding ∷ MintingPolicyHash → Encoding # toJSONList ∷ [MintingPolicyHash] → Value # toEncodingList ∷ [MintingPolicyHash] → Encoding # | |
ToJSON Context | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toEncoding ∷ Context → Encoding # toJSONList ∷ [Context] → Value # toEncodingList ∷ [Context] → Encoding # | |
ToJSON Datum | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toEncoding ∷ Datum → Encoding # toJSONList ∷ [Datum] → Value # toEncodingList ∷ [Datum] → Encoding # | |
ToJSON DatumHash | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toEncoding ∷ DatumHash → Encoding # toJSONList ∷ [DatumHash] → Value # toEncodingList ∷ [DatumHash] → Encoding # | |
ToJSON MintingPolicy | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toJSON ∷ MintingPolicy → Value # toEncoding ∷ MintingPolicy → Encoding # toJSONList ∷ [MintingPolicy] → Value # toEncodingList ∷ [MintingPolicy] → Encoding # | |
ToJSON Redeemer | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toEncoding ∷ Redeemer → Encoding # toJSONList ∷ [Redeemer] → Value # toEncodingList ∷ [Redeemer] → Encoding # | |
ToJSON RedeemerHash | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toJSON ∷ RedeemerHash → Value # toEncoding ∷ RedeemerHash → Encoding # toJSONList ∷ [RedeemerHash] → Value # toEncodingList ∷ [RedeemerHash] → Encoding # | |
ToJSON Script | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toEncoding ∷ Script → Encoding # toJSONList ∷ [Script] → Value # toEncodingList ∷ [Script] → Encoding # | |
ToJSON ScriptError | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toJSON ∷ ScriptError → Value # toEncoding ∷ ScriptError → Encoding # toJSONList ∷ [ScriptError] → Value # toEncodingList ∷ [ScriptError] → Encoding # | |
ToJSON StakeValidator | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toJSON ∷ StakeValidator → Value # toEncoding ∷ StakeValidator → Encoding # toJSONList ∷ [StakeValidator] → Value # toEncodingList ∷ [StakeValidator] → Encoding # | |
ToJSON StakeValidatorHash | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toJSON ∷ StakeValidatorHash → Value # toEncoding ∷ StakeValidatorHash → Encoding # toJSONList ∷ [StakeValidatorHash] → Value # toEncodingList ∷ [StakeValidatorHash] → Encoding # | |
ToJSON Validator | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toEncoding ∷ Validator → Encoding # toJSONList ∷ [Validator] → Value # toEncodingList ∷ [Validator] → Encoding # | |
ToJSON ValidatorHash | |
Defined in Zerepoch.V1.Ledger.Scripts Methods toJSON ∷ ValidatorHash → Value # toEncoding ∷ ValidatorHash → Encoding # toJSONList ∷ [ValidatorHash] → Value # toEncodingList ∷ [ValidatorHash] → Encoding # | |
ToJSON ExBudget | |
Defined in ZerepochCore.Evaluation.Machine.ExBudget Methods toEncoding ∷ ExBudget → Encoding # toJSONList ∷ [ExBudget] → Value # toEncodingList ∷ [ExBudget] → Encoding # | |
ToJSON AssetName Source # | |
Defined in Bcc.Api.Orphans Methods toEncoding ∷ AssetName → Encoding # toJSONList ∷ [AssetName] → Value # toEncodingList ∷ [AssetName] → Encoding # | |
ToJSON Likelihood Source # | |
Defined in Bcc.Api.Orphans Methods toEncoding ∷ Likelihood → Encoding # toJSONList ∷ [Likelihood] → Value # toEncodingList ∷ [Likelihood] → Encoding # | |
ToJSON Ptr Source # | |
Defined in Bcc.Api.Orphans | |
ToJSON Nonce | |
Defined in Bcc.Ledger.BaseTypes Methods toEncoding ∷ Nonce → Encoding # toJSONList ∷ [Nonce] → Value # toEncodingList ∷ [Nonce] → Encoding # | |
ToJSON Desirability | |
Defined in Sophie.Spec.Ledger.RewardProvenance Methods toJSON ∷ Desirability → Value # toEncoding ∷ Desirability → Encoding # toJSONList ∷ [Desirability] → Value # toEncodingList ∷ [Desirability] → Encoding # | |
ToJSON StakePoolRelay | |
Defined in Sophie.Spec.Ledger.TxBody Methods toJSON ∷ StakePoolRelay → Value # toEncoding ∷ StakePoolRelay → Encoding # toJSONList ∷ [StakePoolRelay] → Value # toEncodingList ∷ [StakePoolRelay] → Encoding # | |
ToJSON PoolMetadata | |
Defined in Sophie.Spec.Ledger.TxBody Methods toJSON ∷ PoolMetadata → Value # toEncoding ∷ PoolMetadata → Encoding # toJSONList ∷ [PoolMetadata] → Value # toEncodingList ∷ [PoolMetadata] → Encoding # | |
ToJSON Network | |
Defined in Bcc.Ledger.BaseTypes Methods toEncoding ∷ Network → Encoding # toJSONList ∷ [Network] → Value # toEncodingList ∷ [Network] → Encoding # | |
ToJSON AnyBccEra Source # | |
Defined in Bcc.Api.Eras Methods toEncoding ∷ AnyBccEra → Encoding # toJSONList ∷ [AnyBccEra] → Value # toEncodingList ∷ [AnyBccEra] → Encoding # | |
ToJSON Month | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Month → Encoding # toJSONList ∷ [Month] → Value # toEncodingList ∷ [Month] → Encoding # | |
ToJSON Quarter | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Quarter → Encoding # toJSONList ∷ [Quarter] → Value # toEncodingList ∷ [Quarter] → Encoding # | |
ToJSON QuarterOfYear | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ QuarterOfYear → Value # toEncoding ∷ QuarterOfYear → Encoding # toJSONList ∷ [QuarterOfYear] → Value # toEncodingList ∷ [QuarterOfYear] → Encoding # | |
ToJSON PositiveUnitInterval | |
Defined in Bcc.Ledger.BaseTypes Methods toJSON ∷ PositiveUnitInterval → Value # toEncoding ∷ PositiveUnitInterval → Encoding # toJSONList ∷ [PositiveUnitInterval] → Value # toEncodingList ∷ [PositiveUnitInterval] → Encoding # | |
ToJSON EpochNumber | |
Defined in Bcc.Chain.Slotting.EpochNumber Methods toJSON ∷ EpochNumber → Value # toEncoding ∷ EpochNumber → Encoding # toJSONList ∷ [EpochNumber] → Value # toEncodingList ∷ [EpochNumber] → Encoding # | |
ToJSON SlotNumber | |
Defined in Bcc.Chain.Slotting.SlotNumber Methods toEncoding ∷ SlotNumber → Encoding # toJSONList ∷ [SlotNumber] → Value # toEncodingList ∷ [SlotNumber] → Encoding # | |
ToJSON RequiresNetworkMagic | |
Defined in Bcc.Crypto.ProtocolMagic Methods toJSON ∷ RequiresNetworkMagic → Value # toEncoding ∷ RequiresNetworkMagic → Encoding # toJSONList ∷ [RequiresNetworkMagic] → Value # toEncodingList ∷ [RequiresNetworkMagic] → Encoding # | |
ToJSON ProtocolVersion | |
Defined in Bcc.Chain.Update.ProtocolVersion Methods toJSON ∷ ProtocolVersion → Value # toEncoding ∷ ProtocolVersion → Encoding # toJSONList ∷ [ProtocolVersion] → Value # toEncodingList ∷ [ProtocolVersion] → Encoding # | |
ToJSON ProtocolMagicId | |
Defined in Bcc.Crypto.ProtocolMagic Methods toJSON ∷ ProtocolMagicId → Value # toEncoding ∷ ProtocolMagicId → Encoding # toJSONList ∷ [ProtocolMagicId] → Value # toEncodingList ∷ [ProtocolMagicId] → Encoding # | |
ToJSON SoftwareVersion | |
Defined in Bcc.Chain.Update.SoftwareVersion Methods toJSON ∷ SoftwareVersion → Value # toEncoding ∷ SoftwareVersion → Encoding # toJSONList ∷ [SoftwareVersion] → Value # toEncodingList ∷ [SoftwareVersion] → Encoding # | |
ToJSON VerificationKey | |
Defined in Bcc.Crypto.Signing.VerificationKey Methods toJSON ∷ VerificationKey → Value # toEncoding ∷ VerificationKey → Encoding # toJSONList ∷ [VerificationKey] → Value # toEncodingList ∷ [VerificationKey] → Encoding # | |
ToJSON GenesisHash | |
Defined in Bcc.Chain.Genesis.Hash Methods toJSON ∷ GenesisHash → Value # toEncoding ∷ GenesisHash → Encoding # toJSONList ∷ [GenesisHash] → Value # toEncodingList ∷ [GenesisHash] → Encoding # | |
ToJSON Tx | |
Defined in Bcc.Chain.UTxO.Tx | |
ToJSON ProtocolMagic | |
Defined in Bcc.Crypto.ProtocolMagic Methods toJSON ∷ ProtocolMagic → Value # toEncoding ∷ ProtocolMagic → Encoding # toJSONList ∷ [ProtocolMagic] → Value # toEncodingList ∷ [ProtocolMagic] → Encoding # | |
ToJSON CompactRedeemVerificationKey | |
Defined in Bcc.Crypto.Signing.Redeem.Compact Methods toJSON ∷ CompactRedeemVerificationKey → Value # toEncoding ∷ CompactRedeemVerificationKey → Encoding # toJSONList ∷ [CompactRedeemVerificationKey] → Value # toEncodingList ∷ [CompactRedeemVerificationKey] → Encoding # | |
ToJSON Entropic | |
Defined in Bcc.Chain.Common.Entropic Methods toEncoding ∷ Entropic → Encoding # toJSONList ∷ [Entropic] → Value # toEncodingList ∷ [Entropic] → Encoding # | |
ToJSON SystemStart Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ SystemStart → Value # toEncoding ∷ SystemStart → Encoding # toJSONList ∷ [SystemStart] → Value # toEncodingList ∷ [SystemStart] → Encoding # | |
ToJSON ByteString64 | |
Defined in Data.ByteString.Base64.Type Methods toJSON ∷ ByteString64 → Value # toEncoding ∷ ByteString64 → Encoding # toJSONList ∷ [ByteString64] → Value # toEncodingList ∷ [ByteString64] → Encoding # | |
ToJSON RedeemVerificationKey | |
Defined in Bcc.Crypto.Signing.Redeem.VerificationKey Methods toJSON ∷ RedeemVerificationKey → Value # toEncoding ∷ RedeemVerificationKey → Encoding # toJSONList ∷ [RedeemVerificationKey] → Value # toEncodingList ∷ [RedeemVerificationKey] → Encoding # | |
ToJSON StakingCredential | |
Defined in Zerepoch.V1.Ledger.Credential Methods toJSON ∷ StakingCredential → Value # toEncoding ∷ StakingCredential → Encoding # toJSONList ∷ [StakingCredential] → Value # toEncodingList ∷ [StakingCredential] → Encoding # | |
ToJSON POSIXTime | |
Defined in Zerepoch.V1.Ledger.Time Methods toEncoding ∷ POSIXTime → Encoding # toJSONList ∷ [POSIXTime] → Value # toEncodingList ∷ [POSIXTime] → Encoding # | |
ToJSON Address | |
Defined in Zerepoch.V1.Ledger.Address Methods toEncoding ∷ Address → Encoding # toJSONList ∷ [Address] → Value # toEncodingList ∷ [Address] → Encoding # | |
ToJSON DCert | |
Defined in Zerepoch.V1.Ledger.DCert Methods toEncoding ∷ DCert → Encoding # toJSONList ∷ [DCert] → Value # toEncodingList ∷ [DCert] → Encoding # | |
ToJSON Credential | |
Defined in Zerepoch.V1.Ledger.Credential Methods toEncoding ∷ Credential → Encoding # toJSONList ∷ [Credential] → Value # toEncodingList ∷ [Credential] → Encoding # | |
ToJSON TxOut | |
Defined in Zerepoch.V1.Ledger.Tx Methods toEncoding ∷ TxOut → Encoding # toJSONList ∷ [TxOut] → Value # toEncodingList ∷ [TxOut] → Encoding # | |
ToJSON PubKeyHash | |
Defined in Zerepoch.V1.Ledger.Crypto Methods toEncoding ∷ PubKeyHash → Encoding # toJSONList ∷ [PubKeyHash] → Value # toEncodingList ∷ [PubKeyHash] → Encoding # | |
ToJSON TxId | |
Defined in Zerepoch.V1.Ledger.TxId Methods toEncoding ∷ TxId → Encoding # toJSONList ∷ [TxId] → Value # toEncodingList ∷ [TxId] → Encoding # | |
ToJSON TxOutRef | |
Defined in Zerepoch.V1.Ledger.Tx Methods toEncoding ∷ TxOutRef → Encoding # toJSONList ∷ [TxOutRef] → Value # toEncodingList ∷ [TxOutRef] → Encoding # | |
ToJSON ChainDifficulty | |
Defined in Bcc.Chain.Common.ChainDifficulty Methods toJSON ∷ ChainDifficulty → Value # toEncoding ∷ ChainDifficulty → Encoding # toJSONList ∷ [ChainDifficulty] → Value # toEncodingList ∷ [ChainDifficulty] → Encoding # | |
ToJSON Proof | |
Defined in Bcc.Chain.Block.Proof Methods toEncoding ∷ Proof → Encoding # toJSONList ∷ [Proof] → Value # toEncodingList ∷ [Proof] → Encoding # | |
ToJSON SscPayload | |
Defined in Bcc.Chain.Ssc Methods toEncoding ∷ SscPayload → Encoding # toJSONList ∷ [SscPayload] → Value # toEncodingList ∷ [SscPayload] → Encoding # | |
ToJSON ProposalBody | |
Defined in Bcc.Chain.Update.Proposal Methods toJSON ∷ ProposalBody → Value # toEncoding ∷ ProposalBody → Encoding # toJSONList ∷ [ProposalBody] → Value # toEncodingList ∷ [ProposalBody] → Encoding # | |
ToJSON TxInWitness | |
Defined in Bcc.Chain.UTxO.TxWitness Methods toJSON ∷ TxInWitness → Value # toEncoding ∷ TxInWitness → Encoding # toJSONList ∷ [TxInWitness] → Value # toEncodingList ∷ [TxInWitness] → Encoding # | |
ToJSON TxProof | |
Defined in Bcc.Chain.UTxO.TxProof Methods toEncoding ∷ TxProof → Encoding # toJSONList ∷ [TxProof] → Value # toEncodingList ∷ [TxProof] → Encoding # | |
ToJSON SscProof | |
Defined in Bcc.Chain.Ssc Methods toEncoding ∷ SscProof → Encoding # toJSONList ∷ [SscProof] → Value # toEncodingList ∷ [SscProof] → Encoding # | |
ToJSON ApplicationName | |
Defined in Bcc.Chain.Update.ApplicationName Methods toJSON ∷ ApplicationName → Value # toEncoding ∷ ApplicationName → Encoding # toJSONList ∷ [ApplicationName] → Value # toEncodingList ∷ [ApplicationName] → Encoding # | |
ToJSON AddrAttributes | |
Defined in Bcc.Chain.Common.AddrAttributes Methods toJSON ∷ AddrAttributes → Value # toEncoding ∷ AddrAttributes → Encoding # toJSONList ∷ [AddrAttributes] → Value # toEncodingList ∷ [AddrAttributes] → Encoding # | |
ToJSON HDAddressPayload | |
Defined in Bcc.Chain.Common.AddrAttributes Methods toJSON ∷ HDAddressPayload → Value # toEncoding ∷ HDAddressPayload → Encoding # toJSONList ∷ [HDAddressPayload] → Value # toEncodingList ∷ [HDAddressPayload] → Encoding # | |
ToJSON NetworkMagic | |
Defined in Bcc.Chain.Common.NetworkMagic Methods toJSON ∷ NetworkMagic → Value # toEncoding ∷ NetworkMagic → Encoding # toJSONList ∷ [NetworkMagic] → Value # toEncodingList ∷ [NetworkMagic] → Encoding # | |
ToJSON UnparsedFields | |
Defined in Bcc.Chain.Common.Attributes Methods toJSON ∷ UnparsedFields → Value # toEncoding ∷ UnparsedFields → Encoding # toJSONList ∷ [UnparsedFields] → Value # toEncodingList ∷ [UnparsedFields] → Encoding # | |
ToJSON AddrType | |
Defined in Bcc.Chain.Common.AddrSpendingData Methods toEncoding ∷ AddrType → Encoding # toJSONList ∷ [AddrType] → Value # toEncodingList ∷ [AddrType] → Encoding # | |
ToJSON Address | |
Defined in Bcc.Chain.Common.Address Methods toEncoding ∷ Address → Encoding # toJSONList ∷ [Address] → Value # toEncodingList ∷ [Address] → Encoding # | |
ToJSON EntropicPortion | |
Defined in Bcc.Chain.Common.EntropicPortion Methods toJSON ∷ EntropicPortion → Value # toEncoding ∷ EntropicPortion → Encoding # toJSONList ∷ [EntropicPortion] → Value # toEncodingList ∷ [EntropicPortion] → Encoding # | |
ToJSON TxFeePolicy | |
Defined in Bcc.Chain.Common.TxFeePolicy Methods toJSON ∷ TxFeePolicy → Value # toEncoding ∷ TxFeePolicy → Encoding # toJSONList ∷ [TxFeePolicy] → Value # toEncodingList ∷ [TxFeePolicy] → Encoding # | |
ToJSON TxSizeLinear | |
Defined in Bcc.Chain.Common.TxSizeLinear Methods toJSON ∷ TxSizeLinear → Value # toEncoding ∷ TxSizeLinear → Encoding # toJSONList ∷ [TxSizeLinear] → Value # toEncodingList ∷ [TxSizeLinear] → Encoding # | |
ToJSON TxIn | |
Defined in Bcc.Chain.UTxO.Tx Methods toEncoding ∷ TxIn → Encoding # toJSONList ∷ [TxIn] → Value # toEncodingList ∷ [TxIn] → Encoding # | |
ToJSON TxOut | |
Defined in Bcc.Chain.UTxO.Tx Methods toEncoding ∷ TxOut → Encoding # toJSONList ∷ [TxOut] → Value # toEncodingList ∷ [TxOut] → Encoding # | |
ToJSON TxSigData | |
Defined in Bcc.Chain.UTxO.TxWitness Methods toEncoding ∷ TxSigData → Encoding # toJSONList ∷ [TxSigData] → Value # toEncodingList ∷ [TxSigData] → Encoding # | |
ToJSON InstallerHash | |
Defined in Bcc.Chain.Update.InstallerHash Methods toJSON ∷ InstallerHash → Value # toEncoding ∷ InstallerHash → Encoding # toJSONList ∷ [InstallerHash] → Value # toEncodingList ∷ [InstallerHash] → Encoding # | |
ToJSON SystemTag | |
Defined in Bcc.Chain.Update.SystemTag Methods toEncoding ∷ SystemTag → Encoding # toJSONList ∷ [SystemTag] → Value # toEncodingList ∷ [SystemTag] → Encoding # | |
ToJSON ProtocolParametersUpdate | |
Defined in Bcc.Chain.Update.ProtocolParametersUpdate Methods toJSON ∷ ProtocolParametersUpdate → Value # toEncoding ∷ ProtocolParametersUpdate → Encoding # toJSONList ∷ [ProtocolParametersUpdate] → Value # toEncodingList ∷ [ProtocolParametersUpdate] → Encoding # | |
ToJSON SoftforkRule | |
Defined in Bcc.Chain.Update.SoftforkRule Methods toJSON ∷ SoftforkRule → Value # toEncoding ∷ SoftforkRule → Encoding # toJSONList ∷ [SoftforkRule] → Value # toEncodingList ∷ [SoftforkRule] → Encoding # | |
ToJSON DnsName | |
Defined in Bcc.Ledger.BaseTypes Methods toEncoding ∷ DnsName → Encoding # toJSONList ∷ [DnsName] → Value # toEncodingList ∷ [DnsName] → Encoding # | |
ToJSON Port | |
Defined in Bcc.Ledger.BaseTypes Methods toEncoding ∷ Port → Encoding # toJSONList ∷ [Port] → Value # toEncodingList ∷ [Port] → Encoding # | |
ToJSON PositiveInterval | |
Defined in Bcc.Ledger.BaseTypes Methods toJSON ∷ PositiveInterval → Value # toEncoding ∷ PositiveInterval → Encoding # toJSONList ∷ [PositiveInterval] → Value # toEncodingList ∷ [PositiveInterval] → Encoding # | |
ToJSON Url | |
Defined in Bcc.Ledger.BaseTypes | |
ToJSON DeltaCoin Source # | |
Defined in Bcc.Api.Orphans Methods toEncoding ∷ DeltaCoin → Encoding # toJSONList ∷ [DeltaCoin] → Value # toEncodingList ∷ [DeltaCoin] → Encoding # | |
ToJSON AccountState Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ AccountState → Value # toEncoding ∷ AccountState → Encoding # toJSONList ∷ [AccountState] → Value # toEncodingList ∷ [AccountState] → Encoding # | |
ToJSON RewardType Source # | |
Defined in Bcc.Api.Orphans Methods toEncoding ∷ RewardType → Encoding # toJSONList ∷ [RewardType] → Value # toEncodingList ∷ [RewardType] → Encoding # | |
ToJSON SatInt | |
Defined in Data.SatInt Methods toEncoding ∷ SatInt → Encoding # toJSONList ∷ [SatInt] → Value # toEncodingList ∷ [SatInt] → Encoding # | |
ToJSON CekMachineCosts | |
Defined in UntypedZerepochCore.Evaluation.Machine.Cek.CekMachineCosts Methods toJSON ∷ CekMachineCosts → Value # toEncoding ∷ CekMachineCosts → Encoding # toJSONList ∷ [CekMachineCosts] → Value # toEncodingList ∷ [CekMachineCosts] → Encoding # | |
ToJSON ModelAddedSizes | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelAddedSizes → Value # toEncoding ∷ ModelAddedSizes → Encoding # toJSONList ∷ [ModelAddedSizes] → Value # toEncodingList ∷ [ModelAddedSizes] → Encoding # | |
ToJSON ModelConstantOrLinear | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelConstantOrLinear → Value # toEncoding ∷ ModelConstantOrLinear → Encoding # toJSONList ∷ [ModelConstantOrLinear] → Value # toEncodingList ∷ [ModelConstantOrLinear] → Encoding # | |
ToJSON ModelConstantOrTwoArguments | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelConstantOrTwoArguments → Value # toEncoding ∷ ModelConstantOrTwoArguments → Encoding # toJSONList ∷ [ModelConstantOrTwoArguments] → Value # toEncodingList ∷ [ModelConstantOrTwoArguments] → Encoding # | |
ToJSON ModelFiveArguments | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelFiveArguments → Value # toEncoding ∷ ModelFiveArguments → Encoding # toJSONList ∷ [ModelFiveArguments] → Value # toEncodingList ∷ [ModelFiveArguments] → Encoding # | |
ToJSON ModelFourArguments | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelFourArguments → Value # toEncoding ∷ ModelFourArguments → Encoding # toJSONList ∷ [ModelFourArguments] → Value # toEncodingList ∷ [ModelFourArguments] → Encoding # | |
ToJSON ModelLinearSize | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelLinearSize → Value # toEncoding ∷ ModelLinearSize → Encoding # toJSONList ∷ [ModelLinearSize] → Value # toEncodingList ∷ [ModelLinearSize] → Encoding # | |
ToJSON ModelMaxSize | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelMaxSize → Value # toEncoding ∷ ModelMaxSize → Encoding # toJSONList ∷ [ModelMaxSize] → Value # toEncodingList ∷ [ModelMaxSize] → Encoding # | |
ToJSON ModelMinSize | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelMinSize → Value # toEncoding ∷ ModelMinSize → Encoding # toJSONList ∷ [ModelMinSize] → Value # toEncodingList ∷ [ModelMinSize] → Encoding # | |
ToJSON ModelMultipliedSizes | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelMultipliedSizes → Value # toEncoding ∷ ModelMultipliedSizes → Encoding # toJSONList ∷ [ModelMultipliedSizes] → Value # toEncodingList ∷ [ModelMultipliedSizes] → Encoding # | |
ToJSON ModelOneArgument | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelOneArgument → Value # toEncoding ∷ ModelOneArgument → Encoding # toJSONList ∷ [ModelOneArgument] → Value # toEncodingList ∷ [ModelOneArgument] → Encoding # | |
ToJSON ModelSixArguments | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelSixArguments → Value # toEncoding ∷ ModelSixArguments → Encoding # toJSONList ∷ [ModelSixArguments] → Value # toEncodingList ∷ [ModelSixArguments] → Encoding # | |
ToJSON ModelSubtractedSizes | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelSubtractedSizes → Value # toEncoding ∷ ModelSubtractedSizes → Encoding # toJSONList ∷ [ModelSubtractedSizes] → Value # toEncodingList ∷ [ModelSubtractedSizes] → Encoding # | |
ToJSON ModelThreeArguments | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelThreeArguments → Value # toEncoding ∷ ModelThreeArguments → Encoding # toJSONList ∷ [ModelThreeArguments] → Value # toEncodingList ∷ [ModelThreeArguments] → Encoding # | |
ToJSON ModelTwoArguments | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ ModelTwoArguments → Value # toEncoding ∷ ModelTwoArguments → Encoding # toJSONList ∷ [ModelTwoArguments] → Value # toEncodingList ∷ [ModelTwoArguments] → Encoding # | |
ToJSON ExMemory | |
Defined in ZerepochCore.Evaluation.Machine.ExMemory Methods toEncoding ∷ ExMemory → Encoding # toJSONList ∷ [ExMemory] → Value # toEncodingList ∷ [ExMemory] → Encoding # | |
ToJSON ExCPU | |
Defined in ZerepochCore.Evaluation.Machine.ExMemory Methods toEncoding ∷ ExCPU → Encoding # toJSONList ∷ [ExCPU] → Value # toEncodingList ∷ [ExCPU] → Encoding # | |
ToJSON Bcc | |
Defined in Zerepoch.V1.Ledger.Bcc | |
ToJSON LedgerBytes | |
Defined in Zerepoch.V1.Ledger.Bytes Methods toJSON ∷ LedgerBytes → Value # toEncoding ∷ LedgerBytes → Encoding # toJSONList ∷ [LedgerBytes] → Value # toEncodingList ∷ [LedgerBytes] → Encoding # | |
ToJSON Signature | |
Defined in Zerepoch.V1.Ledger.Crypto Methods toEncoding ∷ Signature → Encoding # toJSONList ∷ [Signature] → Value # toEncodingList ∷ [Signature] → Encoding # | |
ToJSON PubKey | |
Defined in Zerepoch.V1.Ledger.Crypto Methods toEncoding ∷ PubKey → Encoding # toJSONList ∷ [PubKey] → Value # toEncodingList ∷ [PubKey] → Encoding # | |
ToJSON PrivateKey | |
Defined in Zerepoch.V1.Ledger.Crypto Methods toEncoding ∷ PrivateKey → Encoding # toJSONList ∷ [PrivateKey] → Value # toEncodingList ∷ [PrivateKey] → Encoding # | |
ToJSON Slot | |
Defined in Zerepoch.V1.Ledger.Slot Methods toEncoding ∷ Slot → Encoding # toJSONList ∷ [Slot] → Value # toEncodingList ∷ [Slot] → Encoding # | |
ToJSON DiffMilliSeconds | |
Defined in Zerepoch.V1.Ledger.Time Methods toJSON ∷ DiffMilliSeconds → Value # toEncoding ∷ DiffMilliSeconds → Encoding # toJSONList ∷ [DiffMilliSeconds] → Value # toEncodingList ∷ [DiffMilliSeconds] → Encoding # | |
ToJSON RedeemerPtr | |
Defined in Zerepoch.V1.Ledger.Tx Methods toJSON ∷ RedeemerPtr → Value # toEncoding ∷ RedeemerPtr → Encoding # toJSONList ∷ [RedeemerPtr] → Value # toEncodingList ∷ [RedeemerPtr] → Encoding # | |
ToJSON ScriptTag | |
Defined in Zerepoch.V1.Ledger.Tx Methods toEncoding ∷ ScriptTag → Encoding # toJSONList ∷ [ScriptTag] → Value # toEncodingList ∷ [ScriptTag] → Encoding # | |
ToJSON Tx | |
Defined in Zerepoch.V1.Ledger.Tx | |
ToJSON TxIn | |
Defined in Zerepoch.V1.Ledger.Tx Methods toEncoding ∷ TxIn → Encoding # toJSONList ∷ [TxIn] → Value # toEncodingList ∷ [TxIn] → Encoding # | |
ToJSON TxInType | |
Defined in Zerepoch.V1.Ledger.Tx Methods toEncoding ∷ TxInType → Encoding # toJSONList ∷ [TxInType] → Value # toEncodingList ∷ [TxInType] → Encoding # | |
ToJSON TxOutTx | |
Defined in Zerepoch.V1.Ledger.Tx Methods toEncoding ∷ TxOutTx → Encoding # toJSONList ∷ [TxOutTx] → Value # toEncodingList ∷ [TxOutTx] → Encoding # | |
ToJSON StudentT | |
Defined in Statistics.Distribution.StudentT Methods toEncoding ∷ StudentT → Encoding # toJSONList ∷ [StudentT] → Value # toEncodingList ∷ [StudentT] → Encoding # | |
ToJSON TextEnvelope Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods toJSON ∷ TextEnvelope → Value # toEncoding ∷ TextEnvelope → Encoding # toJSONList ∷ [TextEnvelope] → Value # toEncodingList ∷ [TextEnvelope] → Encoding # | |
ToJSON TextEnvelopeDescr Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods toJSON ∷ TextEnvelopeDescr → Value # toEncoding ∷ TextEnvelopeDescr → Encoding # toJSONList ∷ [TextEnvelopeDescr] → Value # toEncodingList ∷ [TextEnvelopeDescr] → Encoding # | |
ToJSON TextEnvelopeType Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods toJSON ∷ TextEnvelopeType → Value # toEncoding ∷ TextEnvelopeType → Encoding # toJSONList ∷ [TextEnvelopeType] → Value # toEncodingList ∷ [TextEnvelopeType] → Encoding # | |
ToJSON TxSubmitStatus Source # | |
Defined in Bcc.Api.TxSubmit.Types Methods toJSON ∷ TxSubmitStatus → Value # toEncoding ∷ TxSubmitStatus → Encoding # toJSONList ∷ [TxSubmitStatus] → Value # toEncodingList ∷ [TxSubmitStatus] → Encoding # | |
ToJSON ScriptHash Source # | |
Defined in Bcc.Api.Script Methods toJSON ∷ ScriptHash → Value # toEncoding ∷ ScriptHash → Encoding # toJSONList ∷ [ScriptHash] → Value # toEncodingList ∷ [ScriptHash] → Encoding # | |
ToJSON ExecutionUnits Source # | |
Defined in Bcc.Api.Script Methods toJSON ∷ ExecutionUnits → Value # toEncoding ∷ ExecutionUnits → Encoding # toJSONList ∷ [ExecutionUnits] → Value # toEncodingList ∷ [ExecutionUnits] → Encoding # | |
ToJSON AnyZerepochScriptVersion Source # | |
Defined in Bcc.Api.Script Methods toJSON ∷ AnyZerepochScriptVersion → Value # toEncoding ∷ AnyZerepochScriptVersion → Encoding # toJSONList ∷ [AnyZerepochScriptVersion] → Value # toEncodingList ∷ [AnyZerepochScriptVersion] → Encoding # | |
ToJSON ValueNestedRep Source # | |
Defined in Bcc.Api.Value Methods toJSON ∷ ValueNestedRep → Value # toEncoding ∷ ValueNestedRep → Encoding # toJSONList ∷ [ValueNestedRep] → Value # toEncodingList ∷ [ValueNestedRep] → Encoding # | |
ToJSON Value Source # | |
Defined in Bcc.Api.Value Methods toEncoding ∷ Value → Encoding # toJSONList ∷ [Value] → Value0 # toEncodingList ∷ [Value] → Encoding # | |
ToJSON AssetName Source # | |
Defined in Bcc.Api.Value Methods toEncoding ∷ AssetName → Encoding # toJSONList ∷ [AssetName] → Value # toEncodingList ∷ [AssetName] → Encoding # | |
ToJSON PolicyId Source # | |
Defined in Bcc.Api.Value Methods toEncoding ∷ PolicyId → Encoding # toJSONList ∷ [PolicyId] → Value # toEncodingList ∷ [PolicyId] → Encoding # | |
ToJSON Quantity Source # | |
Defined in Bcc.Api.Value Methods toEncoding ∷ Quantity → Encoding # toJSONList ∷ [Quantity] → Value # toEncodingList ∷ [Quantity] → Encoding # | |
ToJSON Entropic Source # | |
Defined in Bcc.Api.Value Methods toEncoding ∷ Entropic → Encoding # toJSONList ∷ [Entropic] → Value # toEncodingList ∷ [Entropic] → Encoding # | |
ToJSON CostModel Source # | |
Defined in Bcc.Api.ProtocolParameters Methods toEncoding ∷ CostModel → Encoding # toJSONList ∷ [CostModel] → Value # toEncodingList ∷ [CostModel] → Encoding # | |
ToJSON ExecutionUnitPrices Source # | |
Defined in Bcc.Api.ProtocolParameters Methods toJSON ∷ ExecutionUnitPrices → Value # toEncoding ∷ ExecutionUnitPrices → Encoding # toJSONList ∷ [ExecutionUnitPrices] → Value # toEncodingList ∷ [ExecutionUnitPrices] → Encoding # | |
ToJSON OptimumNonce Source # | |
Defined in Bcc.Api.ProtocolParameters Methods toJSON ∷ OptimumNonce → Value # toEncoding ∷ OptimumNonce → Encoding # toJSONList ∷ [OptimumNonce] → Value # toEncodingList ∷ [OptimumNonce] → Encoding # | |
ToJSON ProtocolParameters Source # | |
Defined in Bcc.Api.ProtocolParameters Methods toJSON ∷ ProtocolParameters → Value # toEncoding ∷ ProtocolParameters → Encoding # toJSONList ∷ [ProtocolParameters] → Value # toEncodingList ∷ [ProtocolParameters] → Encoding # | |
ToJSON TxIx Source # | |
Defined in Bcc.Api.TxBody Methods toEncoding ∷ TxIx → Encoding # toJSONList ∷ [TxIx] → Value # toEncodingList ∷ [TxIx] → Encoding # | |
ToJSON TxIn Source # | |
Defined in Bcc.Api.TxBody Methods toEncoding ∷ TxIn → Encoding # toJSONList ∷ [TxIn] → Value # toEncodingList ∷ [TxIn] → Encoding # | |
ToJSON TxId Source # | |
Defined in Bcc.Api.TxBody Methods toEncoding ∷ TxId → Encoding # toJSONList ∷ [TxId] → Value # toEncodingList ∷ [TxId] → Encoding # | |
ToJSON ChainTip Source # | |
Defined in Bcc.Api.Block Methods toEncoding ∷ ChainTip → Encoding # toJSONList ∷ [ChainTip] → Value # toEncodingList ∷ [ChainTip] → Encoding # | |
ToJSON a ⇒ ToJSON [a] | |
Defined in Data.Aeson.Types.ToJSON | |
ToJSON a ⇒ ToJSON (Maybe a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Maybe a → Encoding # toJSONList ∷ [Maybe a] → Value # toEncodingList ∷ [Maybe a] → Encoding # | |
(ToJSON a, Integral a) ⇒ ToJSON (Ratio a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Ratio a → Encoding # toJSONList ∷ [Ratio a] → Value # toEncodingList ∷ [Ratio a] → Encoding # | |
ToJSON a ⇒ ToJSON (First a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ First a → Encoding # toJSONList ∷ [First a] → Value # toEncodingList ∷ [First a] → Encoding # | |
ToJSON a ⇒ ToJSON (Last a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Last a → Encoding # toJSONList ∷ [Last a] → Value # toEncodingList ∷ [Last a] → Encoding # | |
ToJSON a ⇒ ToJSON (Set a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Set a → Encoding # toJSONList ∷ [Set a] → Value # toEncodingList ∷ [Set a] → Encoding # | |
ToJSON a ⇒ ToJSON (NonEmpty a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ NonEmpty a → Encoding # toJSONList ∷ [NonEmpty a] → Value # toEncodingList ∷ [NonEmpty a] → Encoding # | |
ToJSON a ⇒ ToJSON (Identity a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Identity a → Encoding # toJSONList ∷ [Identity a] → Value # toEncodingList ∷ [Identity a] → Encoding # | |
ToJSON a ⇒ ToJSON (Min a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Min a → Encoding # toJSONList ∷ [Min a] → Value # toEncodingList ∷ [Min a] → Encoding # | |
ToJSON a ⇒ ToJSON (Max a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Max a → Encoding # toJSONList ∷ [Max a] → Value # toEncodingList ∷ [Max a] → Encoding # | |
ToJSON a ⇒ ToJSON (WrappedMonoid a) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ WrappedMonoid a → Value # toEncoding ∷ WrappedMonoid a → Encoding # toJSONList ∷ [WrappedMonoid a] → Value # toEncodingList ∷ [WrappedMonoid a] → Encoding # | |
ToJSON a ⇒ ToJSON (Option a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Option a → Encoding # toJSONList ∷ [Option a] → Value # toEncodingList ∷ [Option a] → Encoding # | |
ToJSON a ⇒ ToJSON (First a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ First a → Encoding # toJSONList ∷ [First a] → Value # toEncodingList ∷ [First a] → Encoding # | |
ToJSON a ⇒ ToJSON (Last a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Last a → Encoding # toJSONList ∷ [Last a] → Value # toEncodingList ∷ [Last a] → Encoding # | |
ToJSON a ⇒ ToJSON (Dual a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Dual a → Encoding # toJSONList ∷ [Dual a] → Value # toEncodingList ∷ [Dual a] → Encoding # | |
ToJSON a ⇒ ToJSON (IntMap a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ IntMap a → Encoding # toJSONList ∷ [IntMap a] → Value # toEncodingList ∷ [IntMap a] → Encoding # | |
ToJSON v ⇒ ToJSON (Tree v) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Tree v → Encoding # toJSONList ∷ [Tree v] → Value # toEncodingList ∷ [Tree v] → Encoding # | |
ToJSON a ⇒ ToJSON (Seq a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Seq a → Encoding # toJSONList ∷ [Seq a] → Value # toEncodingList ∷ [Seq a] → Encoding # | |
(Vector Vector a, ToJSON a) ⇒ ToJSON (Vector a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Vector a → Encoding # toJSONList ∷ [Vector a] → Value # toEncodingList ∷ [Vector a] → Encoding # | |
ToJSON a ⇒ ToJSON (Vector a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Vector a → Encoding # toJSONList ∷ [Vector a] → Value # toEncodingList ∷ [Vector a] → Encoding # | |
ToJSON1 f ⇒ ToJSON (Fix f) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Fix f → Encoding # toJSONList ∷ [Fix f] → Value # toEncodingList ∷ [Fix f] → Encoding # | |
(ToJSON1 f, Functor f) ⇒ ToJSON (Mu f) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Mu f → Encoding # toJSONList ∷ [Mu f] → Value # toEncodingList ∷ [Mu f] → Encoding # | |
(ToJSON1 f, Functor f) ⇒ ToJSON (Nu f) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Nu f → Encoding # toJSONList ∷ [Nu f] → Value # toEncodingList ∷ [Nu f] → Encoding # | |
ToJSON a ⇒ ToJSON (DNonEmpty a) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ DNonEmpty a → Value # toEncoding ∷ DNonEmpty a → Encoding # toJSONList ∷ [DNonEmpty a] → Value # toEncodingList ∷ [DNonEmpty a] → Encoding # | |
ToJSON a ⇒ ToJSON (DList a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ DList a → Encoding # toJSONList ∷ [DList a] → Value # toEncodingList ∷ [DList a] → Encoding # | |
ToJSON a ⇒ ToJSON (Array a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Array a → Encoding # toJSONList ∷ [Array a] → Value # toEncodingList ∷ [Array a] → Encoding # | |
(Prim a, ToJSON a) ⇒ ToJSON (PrimArray a) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ PrimArray a → Value # toEncoding ∷ PrimArray a → Encoding # toJSONList ∷ [PrimArray a] → Value # toEncodingList ∷ [PrimArray a] → Encoding # | |
ToJSON a ⇒ ToJSON (SmallArray a) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ SmallArray a → Value # toEncoding ∷ SmallArray a → Encoding # toJSONList ∷ [SmallArray a] → Value # toEncodingList ∷ [SmallArray a] → Encoding # | |
ToJSON a ⇒ ToJSON (Maybe a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Maybe a → Encoding # toJSONList ∷ [Maybe a] → Value # toEncodingList ∷ [Maybe a] → Encoding # | |
ToJSON a ⇒ ToJSON (HashSet a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ HashSet a → Encoding # toJSONList ∷ [HashSet a] → Value # toEncodingList ∷ [HashSet a] → Encoding # | |
(Prim a, ToJSON a) ⇒ ToJSON (Vector a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Vector a → Encoding # toJSONList ∷ [Vector a] → Value # toEncodingList ∷ [Vector a] → Encoding # | |
(Storable a, ToJSON a) ⇒ ToJSON (Vector a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Vector a → Encoding # toJSONList ∷ [Vector a] → Value # toEncodingList ∷ [Vector a] → Encoding # | |
(ToJSON (PParamsDelta era), UsesPParams era) ⇒ ToJSON (PPUPState era) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ PPUPState era → Value # toEncoding ∷ PPUPState era → Encoding # toJSONList ∷ [PPUPState era] → Value # toEncodingList ∷ [PPUPState era] → Encoding # | |
ToJSON a ⇒ ToJSON (StrictMaybe a) | |
Defined in Data.Maybe.Strict Methods toJSON ∷ StrictMaybe a → Value # toEncoding ∷ StrictMaybe a → Encoding # toJSONList ∷ [StrictMaybe a] → Value # toEncodingList ∷ [StrictMaybe a] → Encoding # | |
(SophieBasedEra era, ToJSON (TxOut era), ToJSON (PParamsDelta era)) ⇒ ToJSON (UTxOState era) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ UTxOState era → Value # toEncoding ∷ UTxOState era → Encoding # toJSONList ∷ [UTxOState era] → Value # toEncodingList ∷ [UTxOState era] → Encoding # | |
Crypto crypto ⇒ ToJSON (DPState crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ DPState crypto → Value # toEncoding ∷ DPState crypto → Encoding # toJSONList ∷ [DPState crypto] → Value # toEncodingList ∷ [DPState crypto] → Encoding # | |
ToJSON (PParamsUpdate (AurumEra StandardCrypto)) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ PParamsUpdate (AurumEra StandardCrypto) → Value # toEncoding ∷ PParamsUpdate (AurumEra StandardCrypto) → Encoding # toJSONList ∷ [PParamsUpdate (AurumEra StandardCrypto)] → Value # toEncodingList ∷ [PParamsUpdate (AurumEra StandardCrypto)] → Encoding # | |
ToJSON (PParams era) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ PParams era → Value # toEncoding ∷ PParams era → Encoding # toJSONList ∷ [PParams era] → Value # toEncodingList ∷ [PParams era] → Encoding # | |
ToJSON (PParams era) | |
Defined in Sophie.Spec.Ledger.PParams Methods toJSON ∷ PParams era → Value # toEncoding ∷ PParams era → Encoding # toJSONList ∷ [PParams era] → Value # toEncodingList ∷ [PParams era] → Encoding # | |
ToJSON (PParamsUpdate era) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ PParamsUpdate era → Value # toEncoding ∷ PParamsUpdate era → Encoding # toJSONList ∷ [PParamsUpdate era] → Value # toEncodingList ∷ [PParamsUpdate era] → Encoding # | |
Crypto crypto ⇒ ToJSON (ScriptHash crypto) | |
Defined in Bcc.Ledger.Hashes Methods toJSON ∷ ScriptHash crypto → Value # toEncoding ∷ ScriptHash crypto → Encoding # toJSONList ∷ [ScriptHash crypto] → Value # toEncodingList ∷ [ScriptHash crypto] → Encoding # | |
(SophieBasedEra era, ToJSON (TxOut era), ToJSON (PParams era), ToJSON (PParamsDelta era)) ⇒ ToJSON (EpochState era) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ EpochState era → Value # toEncoding ∷ EpochState era → Encoding # toJSONList ∷ [EpochState era] → Value # toEncodingList ∷ [EpochState era] → Encoding # | |
(SophieBasedEra era, ToJSON (TxOut era), ToJSON (PParamsDelta era)) ⇒ ToJSON (LedgerState era) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ LedgerState era → Value # toEncoding ∷ LedgerState era → Encoding # toJSONList ∷ [LedgerState era] → Value # toEncodingList ∷ [LedgerState era] → Encoding # | |
(SophieBasedEra era, ToJSON (Value era)) ⇒ ToJSON (TxOut era) Source # | |
Defined in Bcc.Api.Orphans Methods toEncoding ∷ TxOut era → Encoding # toJSONList ∷ [TxOut era] → Value # toEncodingList ∷ [TxOut era] → Encoding # | |
ToJSON (Addr crypto) | |
Defined in Bcc.Ledger.Address Methods toJSON ∷ Addr crypto → Value # toEncoding ∷ Addr crypto → Encoding # toJSONList ∷ [Addr crypto] → Value # toEncodingList ∷ [Addr crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (BlocksMade crypto) | |
Defined in Sophie.Spec.Ledger.EpochBoundary Methods toJSON ∷ BlocksMade crypto → Value # toEncoding ∷ BlocksMade crypto → Encoding # toJSONList ∷ [BlocksMade crypto] → Value # toEncodingList ∷ [BlocksMade crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (SnapShots crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ SnapShots crypto → Value # toEncoding ∷ SnapShots crypto → Encoding # toJSONList ∷ [SnapShots crypto] → Value # toEncodingList ∷ [SnapShots crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (NonMyopic crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ NonMyopic crypto → Value # toEncoding ∷ NonMyopic crypto → Encoding # toJSONList ∷ [NonMyopic crypto] → Value # toEncodingList ∷ [NonMyopic crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (PulsingRewUpdate crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ PulsingRewUpdate crypto → Value # toEncoding ∷ PulsingRewUpdate crypto → Encoding # toJSONList ∷ [PulsingRewUpdate crypto] → Value # toEncodingList ∷ [PulsingRewUpdate crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (PoolDistr crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ PoolDistr crypto → Value # toEncoding ∷ PoolDistr crypto → Encoding # toJSONList ∷ [PoolDistr crypto] → Value # toEncodingList ∷ [PoolDistr crypto] → Encoding # | |
(ToJSON (PParamsDelta era), UsesPParams era) ⇒ ToJSON (ProposedPPUpdates era) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ ProposedPPUpdates era → Value # toEncoding ∷ ProposedPPUpdates era → Encoding # toJSONList ∷ [ProposedPPUpdates era] → Value # toEncodingList ∷ [ProposedPPUpdates era] → Encoding # | |
Era era ⇒ ToJSON (SophieGenesis era) | |
Defined in Sophie.Spec.Ledger.Genesis Methods toJSON ∷ SophieGenesis era → Value # toEncoding ∷ SophieGenesis era → Encoding # toJSONList ∷ [SophieGenesis era] → Value # toEncodingList ∷ [SophieGenesis era] → Encoding # | |
Crypto crypto ⇒ ToJSON (GenDelegPair crypto) | |
Defined in Bcc.Ledger.Keys Methods toJSON ∷ GenDelegPair crypto → Value # toEncoding ∷ GenDelegPair crypto → Encoding # toJSONList ∷ [GenDelegPair crypto] → Value # toEncodingList ∷ [GenDelegPair crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (VestedDelegPair crypto) | |
Defined in Bcc.Ledger.Keys Methods toJSON ∷ VestedDelegPair crypto → Value # toEncoding ∷ VestedDelegPair crypto → Encoding # toJSONList ∷ [VestedDelegPair crypto] → Value # toEncodingList ∷ [VestedDelegPair crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (SophieGenesisStaking crypto) | |
Defined in Sophie.Spec.Ledger.Genesis Methods toJSON ∷ SophieGenesisStaking crypto → Value # toEncoding ∷ SophieGenesisStaking crypto → Encoding # toJSONList ∷ [SophieGenesisStaking crypto] → Value # toEncodingList ∷ [SophieGenesisStaking crypto] → Encoding # | |
(SophieBasedEra era, ToJSON (TxOut era)) ⇒ ToJSON (UTxO era) Source # | |
Defined in Bcc.Api.Orphans Methods toEncoding ∷ UTxO era → Encoding # toJSONList ∷ [UTxO era] → Value # toEncodingList ∷ [UTxO era] → Encoding # | |
Crypto crypto ⇒ ToJSON (TxIn crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ TxIn crypto → Value # toEncoding ∷ TxIn crypto → Encoding # toJSONList ∷ [TxIn crypto] → Value # toEncodingList ∷ [TxIn crypto] → Encoding # | |
(Era era, Show (Value era), ToJSON (Value era)) ⇒ ToJSON (TxOut era) Source # | |
Defined in Bcc.Api.Orphans Methods toEncoding ∷ TxOut era → Encoding # toJSONList ∷ [TxOut era] → Value # toEncodingList ∷ [TxOut era] → Encoding # | |
ToJSON (Value era) Source # | |
Defined in Bcc.Api.Orphans Methods toEncoding ∷ Value era → Encoding # toJSONList ∷ [Value era] → Value0 # toEncodingList ∷ [Value era] → Encoding # | |
ToJSON (PolicyID era) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ PolicyID era → Value # toEncoding ∷ PolicyID era → Encoding # toJSONList ∷ [PolicyID era] → Value # toEncodingList ∷ [PolicyID era] → Encoding # | |
Crypto crypto ⇒ ToJSON (PState crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ PState crypto → Value # toEncoding ∷ PState crypto → Encoding # toJSONList ∷ [PState crypto] → Value # toEncodingList ∷ [PState crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (PoolParams crypto) | |
Defined in Sophie.Spec.Ledger.TxBody Methods toJSON ∷ PoolParams crypto → Value # toEncoding ∷ PoolParams crypto → Encoding # toJSONList ∷ [PoolParams crypto] → Value # toEncodingList ∷ [PoolParams crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (InstantaneousRewards crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ InstantaneousRewards crypto → Value # toEncoding ∷ InstantaneousRewards crypto → Encoding # toJSONList ∷ [InstantaneousRewards crypto] → Value # toEncodingList ∷ [InstantaneousRewards crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (SnapShot crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ SnapShot crypto → Value # toEncoding ∷ SnapShot crypto → Encoding # toJSONList ∷ [SnapShot crypto] → Value # toEncodingList ∷ [SnapShot crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (FutureGenDeleg crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ FutureGenDeleg crypto → Value # toEncoding ∷ FutureGenDeleg crypto → Encoding # toJSONList ∷ [FutureGenDeleg crypto] → Value # toEncodingList ∷ [FutureGenDeleg crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (DState crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ DState crypto → Value # toEncoding ∷ DState crypto → Encoding # toJSONList ∷ [DState crypto] → Value # toEncodingList ∷ [DState crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (IndividualPoolStake crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ IndividualPoolStake crypto → Value # toEncoding ∷ IndividualPoolStake crypto → Encoding # toJSONList ∷ [IndividualPoolStake crypto] → Value # toEncodingList ∷ [IndividualPoolStake crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (RewardProvenance crypto) | |
Defined in Sophie.Spec.Ledger.RewardProvenance Methods toJSON ∷ RewardProvenance crypto → Value # toEncoding ∷ RewardProvenance crypto → Encoding # toJSONList ∷ [RewardProvenance crypto] → Value # toEncodingList ∷ [RewardProvenance crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (RewardProvenancePool crypto) | |
Defined in Sophie.Spec.Ledger.RewardProvenance Methods toJSON ∷ RewardProvenancePool crypto → Value # toEncoding ∷ RewardProvenancePool crypto → Encoding # toJSONList ∷ [RewardProvenancePool crypto] → Value # toEncodingList ∷ [RewardProvenancePool crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (RewardAcnt crypto) | |
Defined in Bcc.Ledger.Address Methods toJSON ∷ RewardAcnt crypto → Value # toEncoding ∷ RewardAcnt crypto → Encoding # toJSONList ∷ [RewardAcnt crypto] → Value # toEncodingList ∷ [RewardAcnt crypto] → Encoding # | |
ToJSON (BccEra era) Source # | |
Defined in Bcc.Api.Eras Methods toEncoding ∷ BccEra era → Encoding # toJSONList ∷ [BccEra era] → Value # toEncodingList ∷ [BccEra era] → Encoding # | |
ToJSON (Hash StakePoolKey) Source # | |
Defined in Bcc.Api.KeysSophie Methods toJSON ∷ Hash StakePoolKey → Value # toEncoding ∷ Hash StakePoolKey → Encoding # toJSONList ∷ [Hash StakePoolKey] → Value # toEncodingList ∷ [Hash StakePoolKey] → Encoding # | |
ToJSON (Hash ScriptData) Source # | |
Defined in Bcc.Api.ScriptData Methods toJSON ∷ Hash ScriptData → Value # toEncoding ∷ Hash ScriptData → Encoding # toJSONList ∷ [Hash ScriptData] → Value # toEncodingList ∷ [Hash ScriptData] → Encoding # | |
ToJSON a ⇒ ToJSON (AHeader a) | |
Defined in Bcc.Chain.Block.Header Methods toEncoding ∷ AHeader a → Encoding # toJSONList ∷ [AHeader a] → Value # toEncodingList ∷ [AHeader a] → Encoding # | |
ToJSON a ⇒ ToJSON (ATxAux a) | |
Defined in Bcc.Chain.UTxO.TxAux Methods toEncoding ∷ ATxAux a → Encoding # toJSONList ∷ [ATxAux a] → Value # toEncodingList ∷ [ATxAux a] → Encoding # | |
ToJSON a ⇒ ToJSON (ACertificate a) | |
Defined in Bcc.Chain.Delegation.Certificate Methods toJSON ∷ ACertificate a → Value # toEncoding ∷ ACertificate a → Encoding # toJSONList ∷ [ACertificate a] → Value # toEncodingList ∷ [ACertificate a] → Encoding # | |
ToJSON a ⇒ ToJSON (AProposal a) | |
Defined in Bcc.Chain.Update.Proposal Methods toJSON ∷ AProposal a → Value # toEncoding ∷ AProposal a → Encoding # toJSONList ∷ [AProposal a] → Value # toEncodingList ∷ [AProposal a] → Encoding # | |
ToJSON a ⇒ ToJSON (AVote a) | |
Defined in Bcc.Chain.Update.Vote Methods toEncoding ∷ AVote a → Encoding # toJSONList ∷ [AVote a] → Value # toEncodingList ∷ [AVote a] → Encoding # | |
ToJSON a ⇒ ToJSON (ABlockOrBoundary a) | |
Defined in Bcc.Chain.Block.Block Methods toJSON ∷ ABlockOrBoundary a → Value # toEncoding ∷ ABlockOrBoundary a → Encoding # toJSONList ∷ [ABlockOrBoundary a] → Value # toEncodingList ∷ [ABlockOrBoundary a] → Encoding # | |
ToJSON a ⇒ ToJSON (ABoundaryHeader a) | |
Defined in Bcc.Chain.Block.Header Methods toJSON ∷ ABoundaryHeader a → Value # toEncoding ∷ ABoundaryHeader a → Encoding # toJSONList ∷ [ABoundaryHeader a] → Value # toEncodingList ∷ [ABoundaryHeader a] → Encoding # | |
ToJSON a ⇒ ToJSON (ABoundaryBlock a) | |
Defined in Bcc.Chain.Block.Block Methods toJSON ∷ ABoundaryBlock a → Value # toEncoding ∷ ABoundaryBlock a → Encoding # toJSONList ∷ [ABoundaryBlock a] → Value # toEncodingList ∷ [ABoundaryBlock a] → Encoding # | |
ToJSON a ⇒ ToJSON (ABlock a) | |
Defined in Bcc.Chain.Block.Block Methods toEncoding ∷ ABlock a → Encoding # toJSONList ∷ [ABlock a] → Value # toEncodingList ∷ [ABlock a] → Encoding # | |
ToJSON a ⇒ ToJSON (RedeemSignature a) | |
Defined in Bcc.Crypto.Signing.Redeem.Signature Methods toJSON ∷ RedeemSignature a → Value # toEncoding ∷ RedeemSignature a → Encoding # toJSONList ∷ [RedeemSignature a] → Value # toEncodingList ∷ [RedeemSignature a] → Encoding # | |
ToJSON (Signature w) | |
Defined in Bcc.Crypto.Signing.Signature Methods toJSON ∷ Signature w → Value # toEncoding ∷ Signature w → Encoding # toJSONList ∷ [Signature w] → Value # toEncodingList ∷ [Signature w] → Encoding # | |
Crypto crypto ⇒ ToJSON (GenDelegs crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ GenDelegs crypto → Value # toEncoding ∷ GenDelegs crypto → Encoding # toJSONList ∷ [GenDelegs crypto] → Value # toEncodingList ∷ [GenDelegs crypto] → Encoding # | |
ToJSON a ⇒ ToJSON (ABoundaryBody a) | |
Defined in Bcc.Chain.Block.Block Methods toJSON ∷ ABoundaryBody a → Value # toEncoding ∷ ABoundaryBody a → Encoding # toJSONList ∷ [ABoundaryBody a] → Value # toEncodingList ∷ [ABoundaryBody a] → Encoding # | |
ToJSON a ⇒ ToJSON (ABody a) | |
Defined in Bcc.Chain.Block.Body Methods toEncoding ∷ ABody a → Encoding # toJSONList ∷ [ABody a] → Value # toEncodingList ∷ [ABody a] → Encoding # | |
ToJSON a ⇒ ToJSON (APayload a) | |
Defined in Bcc.Chain.Delegation.Payload Methods toEncoding ∷ APayload a → Encoding # toJSONList ∷ [APayload a] → Value # toEncodingList ∷ [APayload a] → Encoding # | |
ToJSON a ⇒ ToJSON (ABlockSignature a) | |
Defined in Bcc.Chain.Block.Header Methods toJSON ∷ ABlockSignature a → Value # toEncoding ∷ ABlockSignature a → Encoding # toJSONList ∷ [ABlockSignature a] → Value # toEncodingList ∷ [ABlockSignature a] → Encoding # | |
ToJSON a ⇒ ToJSON (ATxPayload a) | |
Defined in Bcc.Chain.UTxO.TxPayload Methods toJSON ∷ ATxPayload a → Value # toEncoding ∷ ATxPayload a → Encoding # toJSONList ∷ [ATxPayload a] → Value # toEncodingList ∷ [ATxPayload a] → Encoding # | |
ToJSON a ⇒ ToJSON (APayload a) | |
Defined in Bcc.Chain.Update.Payload Methods toEncoding ∷ APayload a → Encoding # toJSONList ∷ [APayload a] → Value # toEncodingList ∷ [APayload a] → Encoding # | |
ToJSON a ⇒ ToJSON (Attributes a) | |
Defined in Bcc.Chain.Common.Attributes Methods toJSON ∷ Attributes a → Value # toEncoding ∷ Attributes a → Encoding # toJSONList ∷ [Attributes a] → Value # toEncodingList ∷ [Attributes a] → Encoding # | |
ToJSON a ⇒ ToJSON (MerkleRoot a) | |
Defined in Bcc.Chain.Common.Merkle Methods toJSON ∷ MerkleRoot a → Value # toEncoding ∷ MerkleRoot a → Encoding # toJSONList ∷ [MerkleRoot a] → Value # toEncodingList ∷ [MerkleRoot a] → Encoding # | |
Crypto crypto ⇒ ToJSON (Stake crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ Stake crypto → Value # toEncoding ∷ Stake crypto → Encoding # toJSONList ∷ [Stake crypto] → Value # toEncodingList ∷ [Stake crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (RewardUpdate crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ RewardUpdate crypto → Value # toEncoding ∷ RewardUpdate crypto → Encoding # toJSONList ∷ [RewardUpdate crypto] → Value # toEncodingList ∷ [RewardUpdate crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (Reward crypto) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ Reward crypto → Value # toEncoding ∷ Reward crypto → Encoding # toJSONList ∷ [Reward crypto] → Value # toEncodingList ∷ [Reward crypto] → Encoding # | |
Crypto crypto ⇒ ToJSON (StakeCreds crypto) | |
Defined in Sophie.Spec.Ledger.TxBody Methods toJSON ∷ StakeCreds crypto → Value # toEncoding ∷ StakeCreds crypto → Encoding # toJSONList ∷ [StakeCreds crypto] → Value # toEncodingList ∷ [StakeCreds crypto] → Encoding # | |
ToJSON (BuiltinCostModelBase CostingFun) | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ BuiltinCostModelBase CostingFun → Value # toEncoding ∷ BuiltinCostModelBase CostingFun → Encoding # toJSONList ∷ [BuiltinCostModelBase CostingFun] → Value # toEncodingList ∷ [BuiltinCostModelBase CostingFun] → Encoding # | |
ToJSON model ⇒ ToJSON (CostingFun model) | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods toJSON ∷ CostingFun model → Value # toEncoding ∷ CostingFun model → Encoding # toJSONList ∷ [CostingFun model] → Value # toEncodingList ∷ [CostingFun model] → Encoding # | |
ToJSON a ⇒ ToJSON (Interval a) | |
Defined in Zerepoch.V1.Ledger.Interval Methods toEncoding ∷ Interval a → Encoding # toJSONList ∷ [Interval a] → Value # toEncodingList ∷ [Interval a] → Encoding # | |
ToJSON a ⇒ ToJSON (Extended a) | |
Defined in Zerepoch.V1.Ledger.Interval Methods toEncoding ∷ Extended a → Encoding # toJSONList ∷ [Extended a] → Value # toEncodingList ∷ [Extended a] → Encoding # | |
ToJSON a ⇒ ToJSON (LowerBound a) | |
Defined in Zerepoch.V1.Ledger.Interval Methods toJSON ∷ LowerBound a → Value # toEncoding ∷ LowerBound a → Encoding # toJSONList ∷ [LowerBound a] → Value # toEncodingList ∷ [LowerBound a] → Encoding # | |
ToJSON a ⇒ ToJSON (UpperBound a) | |
Defined in Zerepoch.V1.Ledger.Interval Methods toJSON ∷ UpperBound a → Value # toEncoding ∷ UpperBound a → Encoding # toJSONList ∷ [UpperBound a] → Value # toEncodingList ∷ [UpperBound a] → Encoding # | |
ToJSON a ⇒ ToJSON (Ratio a) | |
Defined in ZerepochTx.Ratio Methods toEncoding ∷ Ratio a → Encoding # toJSONList ∷ [Ratio a] → Value # toEncodingList ∷ [Ratio a] → Encoding # | |
ToJSON d ⇒ ToJSON (LinearTransform d) | |
Defined in Statistics.Distribution.Transform Methods toJSON ∷ LinearTransform d → Value # toEncoding ∷ LinearTransform d → Encoding # toJSONList ∷ [LinearTransform d] → Value # toEncodingList ∷ [LinearTransform d] → Encoding # | |
SerialiseAsBech32 a ⇒ ToJSON (UsingBech32 a) Source # | |
Defined in Bcc.Api.SerialiseUsing Methods toJSON ∷ UsingBech32 a → Value # toEncoding ∷ UsingBech32 a → Encoding # toJSONList ∷ [UsingBech32 a] → Value # toEncodingList ∷ [UsingBech32 a] → Encoding # | |
SerialiseAsRawBytes a ⇒ ToJSON (UsingRawBytesHex a) Source # | |
Defined in Bcc.Api.SerialiseUsing Methods toJSON ∷ UsingRawBytesHex a → Value # toEncoding ∷ UsingRawBytesHex a → Encoding # toJSONList ∷ [UsingRawBytesHex a] → Value # toEncodingList ∷ [UsingRawBytesHex a] → Encoding # | |
ToJSON (SimpleScript lang) Source # | |
Defined in Bcc.Api.Script Methods toJSON ∷ SimpleScript lang → Value # toEncoding ∷ SimpleScript lang → Encoding # toJSONList ∷ [SimpleScript lang] → Value # toEncodingList ∷ [SimpleScript lang] → Encoding # | |
IsBccEra era ⇒ ToJSON (AddressInEra era) Source # | |
Defined in Bcc.Api.Address Methods toJSON ∷ AddressInEra era → Value # toEncoding ∷ AddressInEra era → Encoding # toJSONList ∷ [AddressInEra era] → Value # toEncodingList ∷ [AddressInEra era] → Encoding # | |
ToJSON (TxOutValue era) Source # | |
Defined in Bcc.Api.TxBody Methods toJSON ∷ TxOutValue era → Value # toEncoding ∷ TxOutValue era → Encoding # toJSONList ∷ [TxOutValue era] → Value # toEncodingList ∷ [TxOutValue era] → Encoding # | |
ToJSON (MultiAssetSupportedInEra era) Source # | |
Defined in Bcc.Api.TxBody Methods toJSON ∷ MultiAssetSupportedInEra era → Value # toEncoding ∷ MultiAssetSupportedInEra era → Encoding # toJSONList ∷ [MultiAssetSupportedInEra era] → Value # toEncodingList ∷ [MultiAssetSupportedInEra era] → Encoding # | |
IsBccEra era ⇒ ToJSON (TxOut era) Source # | |
Defined in Bcc.Api.TxBody Methods toEncoding ∷ TxOut era → Encoding # toJSONList ∷ [TxOut era] → Value # toEncodingList ∷ [TxOut era] → Encoding # | |
(IsSophieBasedEra era, SophieLedgerEra era ~ ledgerera, SophieBasedEra ledgerera, ToJSON (PParams ledgerera), ToJSON (PParamsDelta ledgerera), ToJSON (TxOut ledgerera)) ⇒ ToJSON (DebugLedgerState era) Source # | |
Defined in Bcc.Api.Query Methods toJSON ∷ DebugLedgerState era → Value # toEncoding ∷ DebugLedgerState era → Encoding # toJSONList ∷ [DebugLedgerState era] → Value # toEncodingList ∷ [DebugLedgerState era] → Encoding # | |
IsBccEra era ⇒ ToJSON (UTxO era) Source # | |
Defined in Bcc.Api.Query Methods toEncoding ∷ UTxO era → Encoding # toJSONList ∷ [UTxO era] → Value # toEncodingList ∷ [UTxO era] → Encoding # | |
(ToJSON a, ToJSON b) ⇒ ToJSON (Either a b) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Either a b → Encoding # toJSONList ∷ [Either a b] → Value # toEncodingList ∷ [Either a b] → Encoding # | |
(ToJSON a, ToJSON b) ⇒ ToJSON (a, b) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ (a, b) → Encoding # toJSONList ∷ [(a, b)] → Value # toEncodingList ∷ [(a, b)] → Encoding # | |
(ToJSON v, ToJSONKey k) ⇒ ToJSON (Map k v) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Map k v → Encoding # toJSONList ∷ [Map k v] → Value # toEncodingList ∷ [Map k v] → Encoding # | |
ToJSON (Proxy a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Proxy a → Encoding # toJSONList ∷ [Proxy a] → Value # toEncodingList ∷ [Proxy a] → Encoding # | |
HasResolution a ⇒ ToJSON (Fixed a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Fixed a → Encoding # toJSONList ∷ [Fixed a] → Value # toEncodingList ∷ [Fixed a] → Encoding # | |
(ToJSON v, ToJSONKey k) ⇒ ToJSON (HashMap k v) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ HashMap k v → Value # toEncoding ∷ HashMap k v → Encoding # toJSONList ∷ [HashMap k v] → Value # toEncodingList ∷ [HashMap k v] → Encoding # | |
ToJSON b ⇒ ToJSON (Annotated b a) | |
Defined in Bcc.Binary.Annotated Methods toJSON ∷ Annotated b a → Value # toEncoding ∷ Annotated b a → Encoding # toJSONList ∷ [Annotated b a] → Value # toEncodingList ∷ [Annotated b a] → Encoding # | |
(ToJSON a, ToJSON b) ⇒ ToJSON (Either a b) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Either a b → Encoding # toJSONList ∷ [Either a b] → Value # toEncodingList ∷ [Either a b] → Encoding # | |
(ToJSON a, ToJSON b) ⇒ ToJSON (These a b) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ These a b → Encoding # toJSONList ∷ [These a b] → Value # toEncodingList ∷ [These a b] → Encoding # | |
(ToJSON a, ToJSON b) ⇒ ToJSON (These a b) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ These a b → Encoding # toJSONList ∷ [These a b] → Value # toEncodingList ∷ [These a b] → Encoding # | |
(ToJSON a, ToJSON b) ⇒ ToJSON (Pair a b) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Pair a b → Encoding # toJSONList ∷ [Pair a b] → Value # toEncodingList ∷ [Pair a b] → Encoding # | |
HashAlgorithm h ⇒ ToJSON (Hash h a) | |
Defined in Bcc.Crypto.Hash.Class Methods toEncoding ∷ Hash h a → Encoding # toJSONList ∷ [Hash h a] → Value # toEncodingList ∷ [Hash h a] → Encoding # | |
Crypto crypto ⇒ ToJSON (KeyHash disc crypto) | |
Defined in Bcc.Ledger.Keys Methods toJSON ∷ KeyHash disc crypto → Value # toEncoding ∷ KeyHash disc crypto → Encoding # toJSONList ∷ [KeyHash disc crypto] → Value # toEncodingList ∷ [KeyHash disc crypto] → Encoding # | |
Crypto c ⇒ ToJSON (SafeHash c a) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ SafeHash c a → Value # toEncoding ∷ SafeHash c a → Encoding # toJSONList ∷ [SafeHash c a] → Value # toEncodingList ∷ [SafeHash c a] → Encoding # | |
Crypto crypto ⇒ ToJSON (Credential kr crypto) | |
Defined in Bcc.Ledger.Credential Methods toJSON ∷ Credential kr crypto → Value # toEncoding ∷ Credential kr crypto → Encoding # toJSONList ∷ [Credential kr crypto] → Value # toEncodingList ∷ [Credential kr crypto] → Encoding # | |
ToJSON (AbstractHash algo a) | |
Defined in Bcc.Crypto.Hashing Methods toJSON ∷ AbstractHash algo a → Value # toEncoding ∷ AbstractHash algo a → Encoding # toJSONList ∷ [AbstractHash algo a] → Value # toEncodingList ∷ [AbstractHash algo a] → Encoding # | |
ToJSON (BoundedRatio b Word64) | |
Defined in Bcc.Ledger.BaseTypes Methods toJSON ∷ BoundedRatio b Word64 → Value # toEncoding ∷ BoundedRatio b Word64 → Encoding # toJSONList ∷ [BoundedRatio b Word64] → Value # toEncodingList ∷ [BoundedRatio b Word64] → Encoding # | |
(ToJSON a, ToJSONKey k) ⇒ ToJSON (MonoidalMap k a) | |
Defined in Data.Map.Monoidal Methods toJSON ∷ MonoidalMap k a → Value # toEncoding ∷ MonoidalMap k a → Encoding # toJSONList ∷ [MonoidalMap k a] → Value # toEncodingList ∷ [MonoidalMap k a] → Encoding # | |
Crypto crypto ⇒ ToJSON (Bimap Ptr (Credential 'Staking crypto)) Source # | |
Defined in Bcc.Api.Orphans Methods toJSON ∷ Bimap Ptr (Credential 'Staking crypto) → Value # toEncoding ∷ Bimap Ptr (Credential 'Staking crypto) → Encoding # toJSONList ∷ [Bimap Ptr (Credential 'Staking crypto)] → Value # toEncodingList ∷ [Bimap Ptr (Credential 'Staking crypto)] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c) ⇒ ToJSON (a, b, c) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ (a, b, c) → Encoding # toJSONList ∷ [(a, b, c)] → Value # toEncodingList ∷ [(a, b, c)] → Encoding # | |
ToJSON a ⇒ ToJSON (Const a b) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Const a b → Encoding # toJSONList ∷ [Const a b] → Value # toEncodingList ∷ [Const a b] → Encoding # | |
ToJSON b ⇒ ToJSON (Tagged a b) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Tagged a b → Encoding # toJSONList ∷ [Tagged a b] → Value # toEncodingList ∷ [Tagged a b] → Encoding # | |
(ToJSON1 f, ToJSON1 g, ToJSON a) ⇒ ToJSON (These1 f g a) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ These1 f g a → Value # toEncoding ∷ These1 f g a → Encoding # toJSONList ∷ [These1 f g a] → Value # toEncodingList ∷ [These1 f g a] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d) ⇒ ToJSON (a, b, c, d) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ (a, b, c, d) → Value # toEncoding ∷ (a, b, c, d) → Encoding # toJSONList ∷ [(a, b, c, d)] → Value # toEncodingList ∷ [(a, b, c, d)] → Encoding # | |
(ToJSON1 f, ToJSON1 g, ToJSON a) ⇒ ToJSON (Product f g a) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ Product f g a → Value # toEncoding ∷ Product f g a → Encoding # toJSONList ∷ [Product f g a] → Value # toEncodingList ∷ [Product f g a] → Encoding # | |
(ToJSON1 f, ToJSON1 g, ToJSON a) ⇒ ToJSON (Sum f g a) | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding ∷ Sum f g a → Encoding # toJSONList ∷ [Sum f g a] → Value # toEncodingList ∷ [Sum f g a] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d, ToJSON e) ⇒ ToJSON (a, b, c, d, e) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ (a, b, c, d, e) → Value # toEncoding ∷ (a, b, c, d, e) → Encoding # toJSONList ∷ [(a, b, c, d, e)] → Value # toEncodingList ∷ [(a, b, c, d, e)] → Encoding # | |
(ToJSON1 f, ToJSON1 g, ToJSON a) ⇒ ToJSON (Compose f g a) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ Compose f g a → Value # toEncoding ∷ Compose f g a → Encoding # toJSONList ∷ [Compose f g a] → Value # toEncodingList ∷ [Compose f g a] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d, ToJSON e, ToJSON f) ⇒ ToJSON (a, b, c, d, e, f) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ (a, b, c, d, e, f) → Value # toEncoding ∷ (a, b, c, d, e, f) → Encoding # toJSONList ∷ [(a, b, c, d, e, f)] → Value # toEncodingList ∷ [(a, b, c, d, e, f)] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d, ToJSON e, ToJSON f, ToJSON g) ⇒ ToJSON (a, b, c, d, e, f, g) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ (a, b, c, d, e, f, g) → Value # toEncoding ∷ (a, b, c, d, e, f, g) → Encoding # toJSONList ∷ [(a, b, c, d, e, f, g)] → Value # toEncodingList ∷ [(a, b, c, d, e, f, g)] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d, ToJSON e, ToJSON f, ToJSON g, ToJSON h) ⇒ ToJSON (a, b, c, d, e, f, g, h) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ (a, b, c, d, e, f, g, h) → Value # toEncoding ∷ (a, b, c, d, e, f, g, h) → Encoding # toJSONList ∷ [(a, b, c, d, e, f, g, h)] → Value # toEncodingList ∷ [(a, b, c, d, e, f, g, h)] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d, ToJSON e, ToJSON f, ToJSON g, ToJSON h, ToJSON i) ⇒ ToJSON (a, b, c, d, e, f, g, h, i) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ (a, b, c, d, e, f, g, h, i) → Value # toEncoding ∷ (a, b, c, d, e, f, g, h, i) → Encoding # toJSONList ∷ [(a, b, c, d, e, f, g, h, i)] → Value # toEncodingList ∷ [(a, b, c, d, e, f, g, h, i)] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d, ToJSON e, ToJSON f, ToJSON g, ToJSON h, ToJSON i, ToJSON j) ⇒ ToJSON (a, b, c, d, e, f, g, h, i, j) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ (a, b, c, d, e, f, g, h, i, j) → Value # toEncoding ∷ (a, b, c, d, e, f, g, h, i, j) → Encoding # toJSONList ∷ [(a, b, c, d, e, f, g, h, i, j)] → Value # toEncodingList ∷ [(a, b, c, d, e, f, g, h, i, j)] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d, ToJSON e, ToJSON f, ToJSON g, ToJSON h, ToJSON i, ToJSON j, ToJSON k) ⇒ ToJSON (a, b, c, d, e, f, g, h, i, j, k) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ (a, b, c, d, e, f, g, h, i, j, k) → Value # toEncoding ∷ (a, b, c, d, e, f, g, h, i, j, k) → Encoding # toJSONList ∷ [(a, b, c, d, e, f, g, h, i, j, k)] → Value # toEncodingList ∷ [(a, b, c, d, e, f, g, h, i, j, k)] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d, ToJSON e, ToJSON f, ToJSON g, ToJSON h, ToJSON i, ToJSON j, ToJSON k, ToJSON l) ⇒ ToJSON (a, b, c, d, e, f, g, h, i, j, k, l) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ (a, b, c, d, e, f, g, h, i, j, k, l) → Value # toEncoding ∷ (a, b, c, d, e, f, g, h, i, j, k, l) → Encoding # toJSONList ∷ [(a, b, c, d, e, f, g, h, i, j, k, l)] → Value # toEncodingList ∷ [(a, b, c, d, e, f, g, h, i, j, k, l)] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d, ToJSON e, ToJSON f, ToJSON g, ToJSON h, ToJSON i, ToJSON j, ToJSON k, ToJSON l, ToJSON m) ⇒ ToJSON (a, b, c, d, e, f, g, h, i, j, k, l, m) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ (a, b, c, d, e, f, g, h, i, j, k, l, m) → Value # toEncoding ∷ (a, b, c, d, e, f, g, h, i, j, k, l, m) → Encoding # toJSONList ∷ [(a, b, c, d, e, f, g, h, i, j, k, l, m)] → Value # toEncodingList ∷ [(a, b, c, d, e, f, g, h, i, j, k, l, m)] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d, ToJSON e, ToJSON f, ToJSON g, ToJSON h, ToJSON i, ToJSON j, ToJSON k, ToJSON l, ToJSON m, ToJSON n) ⇒ ToJSON (a, b, c, d, e, f, g, h, i, j, k, l, m, n) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ (a, b, c, d, e, f, g, h, i, j, k, l, m, n) → Value # toEncoding ∷ (a, b, c, d, e, f, g, h, i, j, k, l, m, n) → Encoding # toJSONList ∷ [(a, b, c, d, e, f, g, h, i, j, k, l, m, n)] → Value # toEncodingList ∷ [(a, b, c, d, e, f, g, h, i, j, k, l, m, n)] → Encoding # | |
(ToJSON a, ToJSON b, ToJSON c, ToJSON d, ToJSON e, ToJSON f, ToJSON g, ToJSON h, ToJSON i, ToJSON j, ToJSON k, ToJSON l, ToJSON m, ToJSON n, ToJSON o) ⇒ ToJSON (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) | |
Defined in Data.Aeson.Types.ToJSON Methods toJSON ∷ (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) → Value # toEncoding ∷ (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) → Encoding # toJSONList ∷ [(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)] → Value # toEncodingList ∷ [(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)] → Encoding # |
Instances
FromJSON Bool | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Char | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Double | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Float | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Int | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Int8 | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Int16 | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Int32 | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Int64 | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Integer | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Natural | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Ordering | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Word | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Word8 | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Word16 | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Word32 | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Word64 | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON () | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Version | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Void | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON CTime | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON IntSet | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Text | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Text | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON ZonedTime | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON LocalTime | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON TimeOfDay | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON CalendarDiffTime | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser CalendarDiffTime # parseJSONList ∷ Value → Parser [CalendarDiffTime] # | |
FromJSON UTCTime | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON SystemTime | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON NominalDiffTime | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser NominalDiffTime # parseJSONList ∷ Value → Parser [NominalDiffTime] # | |
FromJSON DiffTime | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON DayOfWeek | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Day | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON CalendarDiffDays | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser CalendarDiffDays # parseJSONList ∷ Value → Parser [CalendarDiffDays] # | |
FromJSON Scientific | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON DotNetTime | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Value | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON EpochNo | |
Defined in Bcc.Slotting.Slot | |
FromJSON EpochSize | |
Defined in Bcc.Slotting.Slot | |
FromJSON SlotNo | |
Defined in Bcc.Slotting.Slot | |
FromJSON UUID | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON NonNegativeInterval | |
Defined in Bcc.Ledger.BaseTypes Methods parseJSON ∷ Value → Parser NonNegativeInterval # parseJSONList ∷ Value → Parser [NonNegativeInterval] # | |
FromJSON UnitInterval | |
Defined in Bcc.Ledger.BaseTypes | |
FromJSON ProtVer | |
Defined in Bcc.Protocol.TOptimum | |
FromJSON AurumGenesis Source # | |
Defined in Bcc.Api.Orphans | |
FromJSON Coin | |
Defined in Bcc.Ledger.Coin | |
FromJSON Language Source # | |
Defined in Bcc.Api.Orphans | |
FromJSON CostModel Source # | |
Defined in Bcc.Api.Orphans | |
FromJSON Prices Source # | |
Defined in Bcc.Api.Orphans | |
FromJSON ExUnits Source # | |
Defined in Bcc.Api.Orphans | |
FromJSON AssetClass | |
Defined in Zerepoch.V1.Ledger.Value | |
FromJSON CurrencySymbol | |
Defined in Zerepoch.V1.Ledger.Value | |
FromJSON TokenName | |
Defined in Zerepoch.V1.Ledger.Value | |
FromJSON Value | |
Defined in Zerepoch.V1.Ledger.Value | |
FromJSON MintingPolicyHash | |
Defined in Zerepoch.V1.Ledger.Scripts Methods parseJSON ∷ Value → Parser MintingPolicyHash # parseJSONList ∷ Value → Parser [MintingPolicyHash] # | |
FromJSON Context | |
Defined in Zerepoch.V1.Ledger.Scripts | |
FromJSON Datum | |
Defined in Zerepoch.V1.Ledger.Scripts | |
FromJSON DatumHash | |
Defined in Zerepoch.V1.Ledger.Scripts | |
FromJSON MintingPolicy | |
Defined in Zerepoch.V1.Ledger.Scripts | |
FromJSON Redeemer | |
Defined in Zerepoch.V1.Ledger.Scripts | |
FromJSON RedeemerHash | |
Defined in Zerepoch.V1.Ledger.Scripts | |
FromJSON Script | |
Defined in Zerepoch.V1.Ledger.Scripts | |
FromJSON ScriptError | |
Defined in Zerepoch.V1.Ledger.Scripts | |
FromJSON StakeValidator | |
Defined in Zerepoch.V1.Ledger.Scripts | |
FromJSON StakeValidatorHash | |
Defined in Zerepoch.V1.Ledger.Scripts Methods parseJSON ∷ Value → Parser StakeValidatorHash # parseJSONList ∷ Value → Parser [StakeValidatorHash] # | |
FromJSON Validator | |
Defined in Zerepoch.V1.Ledger.Scripts | |
FromJSON ValidatorHash | |
Defined in Zerepoch.V1.Ledger.Scripts | |
FromJSON ExBudget | |
Defined in ZerepochCore.Evaluation.Machine.ExBudget | |
FromJSON Nonce | |
Defined in Bcc.Ledger.BaseTypes | |
FromJSON Desirability | |
Defined in Sophie.Spec.Ledger.RewardProvenance | |
FromJSON StakePoolRelay | |
Defined in Sophie.Spec.Ledger.TxBody | |
FromJSON PoolMetadata | |
Defined in Sophie.Spec.Ledger.TxBody | |
FromJSON Network | |
Defined in Bcc.Ledger.BaseTypes | |
FromJSON Month | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON Quarter | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON QuarterOfYear | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON PositiveUnitInterval | |
Defined in Bcc.Ledger.BaseTypes Methods parseJSON ∷ Value → Parser PositiveUnitInterval # parseJSONList ∷ Value → Parser [PositiveUnitInterval] # | |
FromJSON RequiresNetworkMagic | |
Defined in Bcc.Crypto.ProtocolMagic Methods parseJSON ∷ Value → Parser RequiresNetworkMagic # parseJSONList ∷ Value → Parser [RequiresNetworkMagic] # | |
FromJSON ProtocolMagicId | |
Defined in Bcc.Crypto.ProtocolMagic Methods parseJSON ∷ Value → Parser ProtocolMagicId # parseJSONList ∷ Value → Parser [ProtocolMagicId] # | |
FromJSON VerificationKey | |
Defined in Bcc.Crypto.Signing.VerificationKey Methods parseJSON ∷ Value → Parser VerificationKey # parseJSONList ∷ Value → Parser [VerificationKey] # | |
FromJSON ProtocolMagic | |
Defined in Bcc.Crypto.ProtocolMagic | |
FromJSON CompactRedeemVerificationKey | |
Defined in Bcc.Crypto.Signing.Redeem.Compact Methods parseJSON ∷ Value → Parser CompactRedeemVerificationKey # parseJSONList ∷ Value → Parser [CompactRedeemVerificationKey] # | |
FromJSON SystemStart Source # | |
Defined in Bcc.Api.Orphans | |
FromJSON ByteString64 | |
Defined in Data.ByteString.Base64.Type | |
FromJSON RedeemVerificationKey | |
Defined in Bcc.Crypto.Signing.Redeem.VerificationKey Methods parseJSON ∷ Value → Parser RedeemVerificationKey # parseJSONList ∷ Value → Parser [RedeemVerificationKey] # | |
FromJSON StakingCredential | |
Defined in Zerepoch.V1.Ledger.Credential Methods parseJSON ∷ Value → Parser StakingCredential # parseJSONList ∷ Value → Parser [StakingCredential] # | |
FromJSON POSIXTime | |
Defined in Zerepoch.V1.Ledger.Time | |
FromJSON Address | |
Defined in Zerepoch.V1.Ledger.Address | |
FromJSON DCert | |
Defined in Zerepoch.V1.Ledger.DCert | |
FromJSON Credential | |
Defined in Zerepoch.V1.Ledger.Credential | |
FromJSON TxOut | |
Defined in Zerepoch.V1.Ledger.Tx | |
FromJSON PubKeyHash | |
Defined in Zerepoch.V1.Ledger.Crypto | |
FromJSON TxId | |
Defined in Zerepoch.V1.Ledger.TxId | |
FromJSON TxOutRef | |
Defined in Zerepoch.V1.Ledger.Tx | |
FromJSON DnsName | |
Defined in Bcc.Ledger.BaseTypes | |
FromJSON Port | |
Defined in Bcc.Ledger.BaseTypes | |
FromJSON PositiveInterval | |
Defined in Bcc.Ledger.BaseTypes Methods parseJSON ∷ Value → Parser PositiveInterval # parseJSONList ∷ Value → Parser [PositiveInterval] # | |
FromJSON Url | |
Defined in Bcc.Ledger.BaseTypes | |
FromJSON SatInt | |
Defined in Data.SatInt | |
FromJSON CekMachineCosts | |
Defined in UntypedZerepochCore.Evaluation.Machine.Cek.CekMachineCosts Methods parseJSON ∷ Value → Parser CekMachineCosts # parseJSONList ∷ Value → Parser [CekMachineCosts] # | |
FromJSON ModelAddedSizes | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser ModelAddedSizes # parseJSONList ∷ Value → Parser [ModelAddedSizes] # | |
FromJSON ModelConstantOrLinear | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser ModelConstantOrLinear # parseJSONList ∷ Value → Parser [ModelConstantOrLinear] # | |
FromJSON ModelConstantOrTwoArguments | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser ModelConstantOrTwoArguments # parseJSONList ∷ Value → Parser [ModelConstantOrTwoArguments] # | |
FromJSON ModelFiveArguments | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser ModelFiveArguments # parseJSONList ∷ Value → Parser [ModelFiveArguments] # | |
FromJSON ModelFourArguments | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser ModelFourArguments # parseJSONList ∷ Value → Parser [ModelFourArguments] # | |
FromJSON ModelLinearSize | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser ModelLinearSize # parseJSONList ∷ Value → Parser [ModelLinearSize] # | |
FromJSON ModelMaxSize | |
FromJSON ModelMinSize | |
FromJSON ModelMultipliedSizes | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser ModelMultipliedSizes # parseJSONList ∷ Value → Parser [ModelMultipliedSizes] # | |
FromJSON ModelOneArgument | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser ModelOneArgument # parseJSONList ∷ Value → Parser [ModelOneArgument] # | |
FromJSON ModelSixArguments | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser ModelSixArguments # parseJSONList ∷ Value → Parser [ModelSixArguments] # | |
FromJSON ModelSubtractedSizes | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser ModelSubtractedSizes # parseJSONList ∷ Value → Parser [ModelSubtractedSizes] # | |
FromJSON ModelThreeArguments | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser ModelThreeArguments # parseJSONList ∷ Value → Parser [ModelThreeArguments] # | |
FromJSON ModelTwoArguments | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser ModelTwoArguments # parseJSONList ∷ Value → Parser [ModelTwoArguments] # | |
FromJSON ExMemory | |
Defined in ZerepochCore.Evaluation.Machine.ExMemory | |
FromJSON ExCPU | |
Defined in ZerepochCore.Evaluation.Machine.ExMemory | |
FromJSON Bcc | |
Defined in Zerepoch.V1.Ledger.Bcc | |
FromJSON LedgerBytes | |
Defined in Zerepoch.V1.Ledger.Bytes | |
FromJSON Signature | |
Defined in Zerepoch.V1.Ledger.Crypto | |
FromJSON PubKey | |
Defined in Zerepoch.V1.Ledger.Crypto | |
FromJSON PrivateKey | |
Defined in Zerepoch.V1.Ledger.Crypto | |
FromJSON Slot | |
Defined in Zerepoch.V1.Ledger.Slot | |
FromJSON DiffMilliSeconds | |
Defined in Zerepoch.V1.Ledger.Time Methods parseJSON ∷ Value → Parser DiffMilliSeconds # parseJSONList ∷ Value → Parser [DiffMilliSeconds] # | |
FromJSON RedeemerPtr | |
Defined in Zerepoch.V1.Ledger.Tx | |
FromJSON ScriptTag | |
Defined in Zerepoch.V1.Ledger.Tx | |
FromJSON Tx | |
Defined in Zerepoch.V1.Ledger.Tx | |
FromJSON TxIn | |
Defined in Zerepoch.V1.Ledger.Tx | |
FromJSON TxInType | |
Defined in Zerepoch.V1.Ledger.Tx | |
FromJSON TxOutTx | |
Defined in Zerepoch.V1.Ledger.Tx | |
FromJSON StudentT | |
Defined in Statistics.Distribution.StudentT | |
FromJSON TextEnvelope Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope | |
FromJSON TextEnvelopeDescr Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods parseJSON ∷ Value → Parser TextEnvelopeDescr # parseJSONList ∷ Value → Parser [TextEnvelopeDescr] # | |
FromJSON TextEnvelopeType Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods parseJSON ∷ Value → Parser TextEnvelopeType # parseJSONList ∷ Value → Parser [TextEnvelopeType] # | |
FromJSON ScriptHash Source # | |
Defined in Bcc.Api.Script | |
FromJSON ExecutionUnits Source # | |
Defined in Bcc.Api.Script | |
FromJSON AnyZerepochScriptVersion Source # | |
Defined in Bcc.Api.Script Methods parseJSON ∷ Value → Parser AnyZerepochScriptVersion # parseJSONList ∷ Value → Parser [AnyZerepochScriptVersion] # | |
FromJSON StakePoolMetadata Source # | |
Defined in Bcc.Api.StakePoolMetadata Methods parseJSON ∷ Value → Parser StakePoolMetadata # parseJSONList ∷ Value → Parser [StakePoolMetadata] # | |
FromJSON ValueNestedRep Source # | |
Defined in Bcc.Api.Value | |
FromJSON Value Source # | |
Defined in Bcc.Api.Value | |
FromJSON AssetName Source # | |
Defined in Bcc.Api.Value | |
FromJSON PolicyId Source # | |
Defined in Bcc.Api.Value | |
FromJSON Quantity Source # | |
Defined in Bcc.Api.Value | |
FromJSON Entropic Source # | |
Defined in Bcc.Api.Value | |
FromJSON CostModel Source # | |
Defined in Bcc.Api.ProtocolParameters | |
FromJSON ExecutionUnitPrices Source # | |
Defined in Bcc.Api.ProtocolParameters Methods parseJSON ∷ Value → Parser ExecutionUnitPrices # parseJSONList ∷ Value → Parser [ExecutionUnitPrices] # | |
FromJSON OptimumNonce Source # | |
Defined in Bcc.Api.ProtocolParameters | |
FromJSON ProtocolParameters Source # | |
Defined in Bcc.Api.ProtocolParameters Methods parseJSON ∷ Value → Parser ProtocolParameters # parseJSONList ∷ Value → Parser [ProtocolParameters] # | |
FromJSON TxIx Source # | |
Defined in Bcc.Api.TxBody | |
FromJSON TxId Source # | |
Defined in Bcc.Api.TxBody | |
FromJSON a ⇒ FromJSON [a] | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (Maybe a) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON a, Integral a) ⇒ FromJSON (Ratio a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (First a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (Last a) | |
Defined in Data.Aeson.Types.FromJSON | |
(Ord a, FromJSON a) ⇒ FromJSON (Set a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (NonEmpty a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (Identity a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (Min a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (Max a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (WrappedMonoid a) | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser (WrappedMonoid a) # parseJSONList ∷ Value → Parser [WrappedMonoid a] # | |
FromJSON a ⇒ FromJSON (Option a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (First a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (Last a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (Dual a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (IntMap a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON v ⇒ FromJSON (Tree v) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (Seq a) | |
Defined in Data.Aeson.Types.FromJSON | |
(Vector Vector a, FromJSON a) ⇒ FromJSON (Vector a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (Vector a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON1 f ⇒ FromJSON (Fix f) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON1 f, Functor f) ⇒ FromJSON (Mu f) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON1 f, Functor f) ⇒ FromJSON (Nu f) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (DNonEmpty a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (DList a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (Array a) | |
Defined in Data.Aeson.Types.FromJSON | |
(Prim a, FromJSON a) ⇒ FromJSON (PrimArray a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (SmallArray a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (Maybe a) | |
Defined in Data.Aeson.Types.FromJSON | |
(Eq a, Hashable a, FromJSON a) ⇒ FromJSON (HashSet a) | |
Defined in Data.Aeson.Types.FromJSON | |
(Prim a, FromJSON a) ⇒ FromJSON (Vector a) | |
Defined in Data.Aeson.Types.FromJSON | |
(Storable a, FromJSON a) ⇒ FromJSON (Vector a) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (StrictMaybe a) | |
Defined in Data.Maybe.Strict | |
FromJSON (PParams era) Source # | |
Defined in Bcc.Api.Orphans | |
FromJSON (PParams era) | |
Defined in Sophie.Spec.Ledger.PParams | |
Crypto crypto ⇒ FromJSON (ScriptHash crypto) | |
Defined in Bcc.Ledger.Hashes Methods parseJSON ∷ Value → Parser (ScriptHash crypto) # parseJSONList ∷ Value → Parser [ScriptHash crypto] # | |
Crypto crypto ⇒ FromJSON (Addr crypto) | |
Defined in Bcc.Ledger.Address | |
Crypto crypto ⇒ FromJSON (BlocksMade crypto) | |
Defined in Sophie.Spec.Ledger.EpochBoundary Methods parseJSON ∷ Value → Parser (BlocksMade crypto) # parseJSONList ∷ Value → Parser [BlocksMade crypto] # | |
Era era ⇒ FromJSON (SophieGenesis era) | |
Defined in Sophie.Spec.Ledger.Genesis Methods parseJSON ∷ Value → Parser (SophieGenesis era) # parseJSONList ∷ Value → Parser [SophieGenesis era] # | |
Crypto crypto ⇒ FromJSON (GenDelegPair crypto) | |
Defined in Bcc.Ledger.Keys Methods parseJSON ∷ Value → Parser (GenDelegPair crypto) # parseJSONList ∷ Value → Parser [GenDelegPair crypto] # | |
Crypto crypto ⇒ FromJSON (VestedDelegPair crypto) | |
Defined in Bcc.Ledger.Keys Methods parseJSON ∷ Value → Parser (VestedDelegPair crypto) # parseJSONList ∷ Value → Parser [VestedDelegPair crypto] # | |
Crypto crypto ⇒ FromJSON (SophieGenesisStaking crypto) | |
Defined in Sophie.Spec.Ledger.Genesis Methods parseJSON ∷ Value → Parser (SophieGenesisStaking crypto) # parseJSONList ∷ Value → Parser [SophieGenesisStaking crypto] # | |
Crypto crypto ⇒ FromJSON (PoolParams crypto) | |
Defined in Sophie.Spec.Ledger.TxBody Methods parseJSON ∷ Value → Parser (PoolParams crypto) # parseJSONList ∷ Value → Parser [PoolParams crypto] # | |
Crypto crypto ⇒ FromJSON (RewardProvenance crypto) | |
Defined in Sophie.Spec.Ledger.RewardProvenance Methods parseJSON ∷ Value → Parser (RewardProvenance crypto) # parseJSONList ∷ Value → Parser [RewardProvenance crypto] # | |
Crypto crypto ⇒ FromJSON (RewardProvenancePool crypto) | |
Defined in Sophie.Spec.Ledger.RewardProvenance Methods parseJSON ∷ Value → Parser (RewardProvenancePool crypto) # parseJSONList ∷ Value → Parser [RewardProvenancePool crypto] # | |
Crypto crypto ⇒ FromJSON (RewardAcnt crypto) | |
Defined in Bcc.Ledger.Address Methods parseJSON ∷ Value → Parser (RewardAcnt crypto) # parseJSONList ∷ Value → Parser [RewardAcnt crypto] # | |
FromJSON (Hash ScriptData) Source # | |
Defined in Bcc.Api.ScriptData Methods parseJSON ∷ Value → Parser (Hash ScriptData) # parseJSONList ∷ Value → Parser [Hash ScriptData] # | |
FromJSON a ⇒ FromJSON (RedeemSignature a) | |
Defined in Bcc.Crypto.Signing.Redeem.Signature Methods parseJSON ∷ Value → Parser (RedeemSignature a) # parseJSONList ∷ Value → Parser [RedeemSignature a] # | |
FromJSON (Signature w) | |
Defined in Bcc.Crypto.Signing.Signature | |
Crypto crypto ⇒ FromJSON (StakeCreds crypto) | |
Defined in Sophie.Spec.Ledger.TxBody Methods parseJSON ∷ Value → Parser (StakeCreds crypto) # parseJSONList ∷ Value → Parser [StakeCreds crypto] # | |
FromJSON (BuiltinCostModelBase CostingFun) | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser (BuiltinCostModelBase CostingFun) # parseJSONList ∷ Value → Parser [BuiltinCostModelBase CostingFun] # | |
FromJSON model ⇒ FromJSON (CostingFun model) | |
Defined in ZerepochCore.Evaluation.Machine.BuiltinCostModel Methods parseJSON ∷ Value → Parser (CostingFun model) # parseJSONList ∷ Value → Parser [CostingFun model] # | |
FromJSON a ⇒ FromJSON (Interval a) | |
Defined in Zerepoch.V1.Ledger.Interval | |
FromJSON a ⇒ FromJSON (Extended a) | |
Defined in Zerepoch.V1.Ledger.Interval | |
FromJSON a ⇒ FromJSON (LowerBound a) | |
Defined in Zerepoch.V1.Ledger.Interval | |
FromJSON a ⇒ FromJSON (UpperBound a) | |
Defined in Zerepoch.V1.Ledger.Interval | |
FromJSON a ⇒ FromJSON (Ratio a) | |
Defined in ZerepochTx.Ratio | |
FromJSON d ⇒ FromJSON (LinearTransform d) | |
Defined in Statistics.Distribution.Transform Methods parseJSON ∷ Value → Parser (LinearTransform d) # parseJSONList ∷ Value → Parser [LinearTransform d] # | |
(SerialiseAsBech32 a, Typeable a) ⇒ FromJSON (UsingBech32 a) Source # | |
Defined in Bcc.Api.SerialiseUsing | |
(SerialiseAsRawBytes a, Typeable a) ⇒ FromJSON (UsingRawBytesHex a) Source # | |
Defined in Bcc.Api.SerialiseUsing Methods parseJSON ∷ Value → Parser (UsingRawBytesHex a) # parseJSONList ∷ Value → Parser [UsingRawBytesHex a] # | |
IsSimpleScriptLanguage lang ⇒ FromJSON (SimpleScript lang) Source # | |
Defined in Bcc.Api.Script Methods parseJSON ∷ Value → Parser (SimpleScript lang) # parseJSONList ∷ Value → Parser [SimpleScript lang] # | |
(FromJSON a, FromJSON b) ⇒ FromJSON (Either a b) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON a, FromJSON b) ⇒ FromJSON (a, b) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSONKey k, Ord k, FromJSON v) ⇒ FromJSON (Map k v) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON (Proxy a) | |
Defined in Data.Aeson.Types.FromJSON | |
HasResolution a ⇒ FromJSON (Fixed a) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON v, FromJSONKey k, Eq k, Hashable k) ⇒ FromJSON (HashMap k v) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON b ⇒ FromJSON (Annotated b ()) | |
Defined in Bcc.Binary.Annotated Methods parseJSON ∷ Value → Parser (Annotated b ()) # parseJSONList ∷ Value → Parser [Annotated b ()] # | |
(FromJSON a, FromJSON b) ⇒ FromJSON (Either a b) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON a, FromJSON b) ⇒ FromJSON (These a b) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON a, FromJSON b) ⇒ FromJSON (These a b) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON a, FromJSON b) ⇒ FromJSON (Pair a b) | |
Defined in Data.Aeson.Types.FromJSON | |
HashAlgorithm h ⇒ FromJSON (Hash h a) | |
Defined in Bcc.Crypto.Hash.Class | |
Crypto crypto ⇒ FromJSON (KeyHash disc crypto) | |
Defined in Bcc.Ledger.Keys Methods parseJSON ∷ Value → Parser (KeyHash disc crypto) # parseJSONList ∷ Value → Parser [KeyHash disc crypto] # | |
Crypto crypto ⇒ FromJSON (Credential kr crypto) | |
Defined in Bcc.Ledger.Credential Methods parseJSON ∷ Value → Parser (Credential kr crypto) # parseJSONList ∷ Value → Parser [Credential kr crypto] # | |
HashAlgorithm algo ⇒ FromJSON (AbstractHash algo a) | |
Defined in Bcc.Crypto.Hashing Methods parseJSON ∷ Value → Parser (AbstractHash algo a) # parseJSONList ∷ Value → Parser [AbstractHash algo a] # | |
Bounded (BoundedRatio b Word64) ⇒ FromJSON (BoundedRatio b Word64) | |
Defined in Bcc.Ledger.BaseTypes | |
(FromJSONKey k, Ord k, FromJSON a) ⇒ FromJSON (MonoidalMap k a) | |
Defined in Data.Map.Monoidal Methods parseJSON ∷ Value → Parser (MonoidalMap k a) # parseJSONList ∷ Value → Parser [MonoidalMap k a] # | |
(FromJSON a, FromJSON b, FromJSON c) ⇒ FromJSON (a, b, c) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON a ⇒ FromJSON (Const a b) | |
Defined in Data.Aeson.Types.FromJSON | |
FromJSON b ⇒ FromJSON (Tagged a b) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON1 f, FromJSON1 g, FromJSON a) ⇒ FromJSON (These1 f g a) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON a, FromJSON b, FromJSON c, FromJSON d) ⇒ FromJSON (a, b, c, d) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON1 f, FromJSON1 g, FromJSON a) ⇒ FromJSON (Product f g a) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON1 f, FromJSON1 g, FromJSON a) ⇒ FromJSON (Sum f g a) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON a, FromJSON b, FromJSON c, FromJSON d, FromJSON e) ⇒ FromJSON (a, b, c, d, e) | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser (a, b, c, d, e) # parseJSONList ∷ Value → Parser [(a, b, c, d, e)] # | |
(FromJSON1 f, FromJSON1 g, FromJSON a) ⇒ FromJSON (Compose f g a) | |
Defined in Data.Aeson.Types.FromJSON | |
(FromJSON a, FromJSON b, FromJSON c, FromJSON d, FromJSON e, FromJSON f) ⇒ FromJSON (a, b, c, d, e, f) | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser (a, b, c, d, e, f) # parseJSONList ∷ Value → Parser [(a, b, c, d, e, f)] # | |
(FromJSON a, FromJSON b, FromJSON c, FromJSON d, FromJSON e, FromJSON f, FromJSON g) ⇒ FromJSON (a, b, c, d, e, f, g) | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser (a, b, c, d, e, f, g) # parseJSONList ∷ Value → Parser [(a, b, c, d, e, f, g)] # | |
(FromJSON a, FromJSON b, FromJSON c, FromJSON d, FromJSON e, FromJSON f, FromJSON g, FromJSON h) ⇒ FromJSON (a, b, c, d, e, f, g, h) | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser (a, b, c, d, e, f, g, h) # parseJSONList ∷ Value → Parser [(a, b, c, d, e, f, g, h)] # | |
(FromJSON a, FromJSON b, FromJSON c, FromJSON d, FromJSON e, FromJSON f, FromJSON g, FromJSON h, FromJSON i) ⇒ FromJSON (a, b, c, d, e, f, g, h, i) | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser (a, b, c, d, e, f, g, h, i) # parseJSONList ∷ Value → Parser [(a, b, c, d, e, f, g, h, i)] # | |
(FromJSON a, FromJSON b, FromJSON c, FromJSON d, FromJSON e, FromJSON f, FromJSON g, FromJSON h, FromJSON i, FromJSON j) ⇒ FromJSON (a, b, c, d, e, f, g, h, i, j) | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser (a, b, c, d, e, f, g, h, i, j) # parseJSONList ∷ Value → Parser [(a, b, c, d, e, f, g, h, i, j)] # | |
(FromJSON a, FromJSON b, FromJSON c, FromJSON d, FromJSON e, FromJSON f, FromJSON g, FromJSON h, FromJSON i, FromJSON j, FromJSON k) ⇒ FromJSON (a, b, c, d, e, f, g, h, i, j, k) | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser (a, b, c, d, e, f, g, h, i, j, k) # parseJSONList ∷ Value → Parser [(a, b, c, d, e, f, g, h, i, j, k)] # | |
(FromJSON a, FromJSON b, FromJSON c, FromJSON d, FromJSON e, FromJSON f, FromJSON g, FromJSON h, FromJSON i, FromJSON j, FromJSON k, FromJSON l) ⇒ FromJSON (a, b, c, d, e, f, g, h, i, j, k, l) | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser (a, b, c, d, e, f, g, h, i, j, k, l) # parseJSONList ∷ Value → Parser [(a, b, c, d, e, f, g, h, i, j, k, l)] # | |
(FromJSON a, FromJSON b, FromJSON c, FromJSON d, FromJSON e, FromJSON f, FromJSON g, FromJSON h, FromJSON i, FromJSON j, FromJSON k, FromJSON l, FromJSON m) ⇒ FromJSON (a, b, c, d, e, f, g, h, i, j, k, l, m) | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser (a, b, c, d, e, f, g, h, i, j, k, l, m) # parseJSONList ∷ Value → Parser [(a, b, c, d, e, f, g, h, i, j, k, l, m)] # | |
(FromJSON a, FromJSON b, FromJSON c, FromJSON d, FromJSON e, FromJSON f, FromJSON g, FromJSON h, FromJSON i, FromJSON j, FromJSON k, FromJSON l, FromJSON m, FromJSON n) ⇒ FromJSON (a, b, c, d, e, f, g, h, i, j, k, l, m, n) | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser (a, b, c, d, e, f, g, h, i, j, k, l, m, n) # parseJSONList ∷ Value → Parser [(a, b, c, d, e, f, g, h, i, j, k, l, m, n)] # | |
(FromJSON a, FromJSON b, FromJSON c, FromJSON d, FromJSON e, FromJSON f, FromJSON g, FromJSON h, FromJSON i, FromJSON j, FromJSON k, FromJSON l, FromJSON m, FromJSON n, FromJSON o) ⇒ FromJSON (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) | |
Defined in Data.Aeson.Types.FromJSON Methods parseJSON ∷ Value → Parser (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) # parseJSONList ∷ Value → Parser [(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)] # |
serialiseToJSON ∷ ToJSON a ⇒ a → ByteString Source #
deserialiseFromJSON ∷ FromJSON a ⇒ AsType a → ByteString → Either JsonDecodeError a Source #
newtype JsonDecodeError Source #
Constructors
JsonDecodeError String |
Instances
Eq JsonDecodeError Source # | |
Defined in Bcc.Api.SerialiseJSON Methods | |
Show JsonDecodeError Source # | |
Defined in Bcc.Api.SerialiseJSON | |
Error JsonDecodeError Source # | |
Defined in Bcc.Api.SerialiseJSON Methods |
readFileJSON ∷ FromJSON a ⇒ AsType a → FilePath → IO (Either (FileError JsonDecodeError) a) Source #
prettyPrintJSON ∷ ToJSON a ⇒ a → ByteString Source #
Bech32
class (HasTypeProxy a, SerialiseAsRawBytes a) ⇒ SerialiseAsBech32 a Source #
Minimal complete definition
Instances
serialiseToBech32 ∷ SerialiseAsBech32 a ⇒ a → Text Source #
deserialiseFromBech32 ∷ SerialiseAsBech32 a ⇒ AsType a → Text → Either Bech32DecodeError a Source #
deserialiseAnyOfFromBech32 ∷ ∀ b. [FromSomeType SerialiseAsBech32 b] → Text → Either Bech32DecodeError b Source #
data Bech32DecodeError Source #
Bech32 decoding error.
Constructors
Bech32DecodingError !DecodingError | There was an error decoding the string as Bech32. |
Bech32UnexpectedPrefix !Text !(Set Text) | The human-readable prefix in the Bech32-encoded string is not one of the ones expected. |
Bech32DataPartToBytesError !Text | There was an error in extracting a |
Bech32DeserialiseFromBytesError !ByteString | There was an error in deserialising the bytes into a value of the expected type. |
Bech32WrongPrefix !Text !Text | The human-readable prefix in the Bech32-encoded string does not correspond to the prefix that should be used for the payload value. |
Instances
Eq Bech32DecodeError Source # | |
Defined in Bcc.Api.SerialiseBech32 Methods (==) ∷ Bech32DecodeError → Bech32DecodeError → Bool Source # (/=) ∷ Bech32DecodeError → Bech32DecodeError → Bool Source # | |
Show Bech32DecodeError Source # | |
Defined in Bcc.Api.SerialiseBech32 | |
Error Bech32DecodeError Source # | |
Defined in Bcc.Api.SerialiseBech32 Methods |
Addresses
Address serialisation is (sadly) special
class HasTypeProxy addr ⇒ SerialiseAddress addr Source #
Address serialisation uses different serialisation formats for different kinds of addresses, so it needs its own class.
In particular, Cole addresses are typically formatted in base 58, while Sophie addresses (payment and stake) are formatted using Bech32.
Minimal complete definition
Instances
SerialiseAddress StakeAddress Source # | |
Defined in Bcc.Api.Address Methods serialiseAddress ∷ StakeAddress → Text Source # deserialiseAddress ∷ AsType StakeAddress → Text → Maybe StakeAddress Source # | |
SerialiseAddress AddressAny Source # | |
Defined in Bcc.Api.Address Methods serialiseAddress ∷ AddressAny → Text Source # deserialiseAddress ∷ AsType AddressAny → Text → Maybe AddressAny Source # | |
IsBccEra era ⇒ SerialiseAddress (AddressInEra era) Source # | |
Defined in Bcc.Api.Address Methods serialiseAddress ∷ AddressInEra era → Text Source # deserialiseAddress ∷ AsType (AddressInEra era) → Text → Maybe (AddressInEra era) Source # | |
SerialiseAddress (Address SophieAddr) Source # | |
Defined in Bcc.Api.Address Methods serialiseAddress ∷ Address SophieAddr → Text Source # deserialiseAddress ∷ AsType (Address SophieAddr) → Text → Maybe (Address SophieAddr) Source # | |
SerialiseAddress (Address ColeAddr) Source # | |
serialiseAddress ∷ SerialiseAddress addr ⇒ addr → Text Source #
deserialiseAddress ∷ SerialiseAddress addr ⇒ AsType addr → Text → Maybe addr Source #
Raw binary
Some types have a natural raw binary format.
class HasTypeProxy a ⇒ SerialiseAsRawBytes a Source #
Minimal complete definition
Instances
serialiseToRawBytes ∷ SerialiseAsRawBytes a ⇒ a → ByteString Source #
deserialiseFromRawBytes ∷ SerialiseAsRawBytes a ⇒ AsType a → ByteString → Maybe a Source #
deserialiseFromRawBytesHex ∷ SerialiseAsRawBytes a ⇒ AsType a → ByteString → Maybe a Source #
serialiseToRawBytesHexText ∷ SerialiseAsRawBytes a ⇒ a → Text Source #
Text envelope
Support for a envelope file format with text headers and a hex-encoded binary payload.
class SerialiseAsCBOR a ⇒ HasTextEnvelope a where Source #
Minimal complete definition
Methods
Instances
data TextEnvelope Source #
A TextEnvelope
is a structured envelope for serialised binary values
with an external format with a semi-readable textual format.
It contains a "type" field, e.g. "PublicKeyCole" or "TxSignedSophie" to indicate the type of the encoded data. This is used as a sanity check and to help readers.
It also contains a "title" field which is free-form, and could be used to indicate the role or purpose to a reader.
Constructors
TextEnvelope | |
Fields |
Instances
Eq TextEnvelope Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods (==) ∷ TextEnvelope → TextEnvelope → Bool Source # (/=) ∷ TextEnvelope → TextEnvelope → Bool Source # | |
Show TextEnvelope Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope | |
FromJSON TextEnvelope Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope | |
ToJSON TextEnvelope Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods toJSON ∷ TextEnvelope → Value # toEncoding ∷ TextEnvelope → Encoding # toJSONList ∷ [TextEnvelope] → Value # toEncodingList ∷ [TextEnvelope] → Encoding # | |
HasTypeProxy TextEnvelope Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Associated Types data AsType TextEnvelope Source # Methods proxyToAsType ∷ Proxy TextEnvelope → AsType TextEnvelope Source # | |
data AsType TextEnvelope Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope |
newtype TextEnvelopeType Source #
Constructors
TextEnvelopeType String |
Instances
Eq TextEnvelopeType Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods | |
Show TextEnvelopeType Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope | |
IsString TextEnvelopeType Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods | |
Semigroup TextEnvelopeType Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods (<>) ∷ TextEnvelopeType → TextEnvelopeType → TextEnvelopeType Source # sconcat ∷ NonEmpty TextEnvelopeType → TextEnvelopeType Source # stimes ∷ Integral b ⇒ b → TextEnvelopeType → TextEnvelopeType Source # | |
FromJSON TextEnvelopeType Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods parseJSON ∷ Value → Parser TextEnvelopeType # parseJSONList ∷ Value → Parser [TextEnvelopeType] # | |
ToJSON TextEnvelopeType Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods toJSON ∷ TextEnvelopeType → Value # toEncoding ∷ TextEnvelopeType → Encoding # toJSONList ∷ [TextEnvelopeType] → Value # toEncodingList ∷ [TextEnvelopeType] → Encoding # |
data TextEnvelopeDescr Source #
Instances
data TextEnvelopeError Source #
The errors that the pure TextEnvelope
parsing/decoding functions can return.
Constructors
TextEnvelopeTypeError ![TextEnvelopeType] !TextEnvelopeType | expected, actual |
TextEnvelopeDecodeError !DecoderError | |
TextEnvelopeAesonDecodeError !String |
Instances
Eq TextEnvelopeError Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods (==) ∷ TextEnvelopeError → TextEnvelopeError → Bool Source # (/=) ∷ TextEnvelopeError → TextEnvelopeError → Bool Source # | |
Show TextEnvelopeError Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope | |
Error TextEnvelopeError Source # | |
Defined in Bcc.Api.SerialiseTextEnvelope Methods |
serialiseToTextEnvelope ∷ ∀ a. HasTextEnvelope a ⇒ Maybe TextEnvelopeDescr → a → TextEnvelope Source #
deserialiseFromTextEnvelope ∷ HasTextEnvelope a ⇒ AsType a → TextEnvelope → Either TextEnvelopeError a Source #
readFileTextEnvelope ∷ HasTextEnvelope a ⇒ AsType a → FilePath → IO (Either (FileError TextEnvelopeError) a) Source #
writeFileTextEnvelope ∷ HasTextEnvelope a ⇒ FilePath → Maybe TextEnvelopeDescr → a → IO (Either (FileError ()) ()) Source #
writeFileTextEnvelopeWithOwnerPermissions ∷ HasTextEnvelope a ⇒ FilePath → Maybe TextEnvelopeDescr → a → IO (Either (FileError ()) ()) Source #
readTextEnvelopeFromFile ∷ FilePath → IO (Either (FileError TextEnvelopeError) TextEnvelope) Source #
readTextEnvelopeOfTypeFromFile ∷ TextEnvelopeType → FilePath → IO (Either (FileError TextEnvelopeError) TextEnvelope) Source #
Reading one of several key types
data FromSomeType (c ∷ Type → Constraint) b where Source #
Constructors
FromSomeType ∷ c a ⇒ AsType a → (a → b) → FromSomeType c b |
deserialiseFromTextEnvelopeAnyOf ∷ [FromSomeType HasTextEnvelope b] → TextEnvelope → Either TextEnvelopeError b Source #
readFileTextEnvelopeAnyOf ∷ [FromSomeType HasTextEnvelope b] → FilePath → IO (Either (FileError TextEnvelopeError) b) Source #
Errors
class Show e ⇒ Error e where Source #
Methods
displayError ∷ e → String Source #
Instances
throwErrorAsException ∷ Error e ⇒ e → IO a Source #
The preferred approach is to use Except
or ExceptT
, but you can if
necessary use IO exceptions.
Constructors
FileError FilePath e | |
FileErrorTempFile | |
FileIOError FilePath IOException |
Node interaction
Operations that involve talking to a local Bcc node.
Queries
Submitting transactions
High level protocol interaction with a Bcc node
Initialization / Accumulation
Constructors
Env | |
Fields
|
envSecurityParam ∷ Env → Word64 Source #
newtype LedgerState Source #
Constructors
LedgerState | |
Fields
|
Bundled Patterns
pattern LedgerStateCole ∷ LedgerState ColeBlock → LedgerState | |
pattern LedgerStateSophie ∷ LedgerState (SophieBlock (SophieEra StandardCrypto)) → LedgerState | |
pattern LedgerStateEvie ∷ LedgerState (SophieBlock (EvieEra StandardCrypto)) → LedgerState | |
pattern LedgerStateJen ∷ LedgerState (SophieBlock (JenEra StandardCrypto)) → LedgerState |
Arguments
∷ FilePath | Path to the bcc-node config file (e.g. to bcc-node projectconfigurationbcc/mainnet-config.json) |
→ ExceptT InitialLedgerStateError IO (Env, LedgerState) | The environment and initial ledger state |
Get the environment and initial ledger state.
Arguments
∷ Env | The environment returned by |
→ LedgerState | The current ledger state |
→ ValidationMode | |
→ Block era | Some block to apply |
→ Either Text LedgerState | The new ledger state (or an error). |
Apply a single block to the current ledger state.
data ValidationMode Source #
How to do validation when applying a block to a ledger state.
Constructors
FullValidation | Do all validation implied by the ledger layer's |
QuickValidation | Only check that the previous hash from the block matches the head hash of the ledger state. |
Traversing the block chain
Arguments
∷ ∀ a. FilePath | Path to the bcc-node config file (e.g. to bcc-node projectconfigurationbcc/mainnet-config.json) |
→ ConsensusModeParams BccMode | This is needed for the number of slots per epoch for the Cole era (on mainnet that should be 21600). |
→ FilePath | Path to local bcc-node socket. This is the path specified by the |
→ ValidationMode | |
→ a | The initial accumulator state. |
→ (Env → LedgerState → BlockInMode BccMode → a → IO a) | Accumulator function Takes:
And returns:
Note: This function can safely assume no rollback will occur even though internally this is implemented with a client protocol that may require rollback. This is achieved by only calling the accumulator on states/blocks that are older than the security parameter, k. This has the side effect of truncating the last k blocks before the node's tip. |
→ ExceptT FoldBlocksError IO a | The final state |
Monadic fold over all blocks and ledger states. Stopping k
blocks before
the node's tip where k
is the security parameter.
chainSyncClientWithLedgerState Source #
Arguments
∷ ∀ m a. Monad m | |
⇒ Env | |
→ LedgerState | Initial ledger state |
→ ValidationMode | |
→ ChainSyncClient (BlockInMode BccMode, Either Text LedgerState) ChainPoint ChainTip m a | A client to wrap. The block is annotated with a 'Either Text
LedgerState'. This is either an error from validating a block or
the current |
→ ChainSyncClient (BlockInMode BccMode) ChainPoint ChainTip m a | A client that acts just like the wrapped client but doesn't require the
|
Wrap a ChainSyncClient
with logic that tracks the ledger state.
chainSyncClientPipelinedWithLedgerState ∷ ∀ m a. Monad m ⇒ Env → LedgerState → ValidationMode → ChainSyncClientPipelined (BlockInMode BccMode, Either Text LedgerState) ChainPoint ChainTip m a → ChainSyncClientPipelined (BlockInMode BccMode) ChainPoint ChainTip m a Source #
Errors
data FoldBlocksError Source #
data GenesisConfigError Source #
Constructors
NEError !Text | |
NEColeConfig !FilePath !ConfigurationError | |
NESophieConfig !FilePath !Text | |
NEAurumConfig !FilePath !Text | |
NEBccConfig !Text |
data InitialLedgerStateError Source #
Constructors
ILSEConfigFile Text | Failed to read or parse the network config file. |
ILSEGenesisFile GenesisConfigError | Failed to read or parse a genesis file linked from the network config file. |
ILSELedgerConsensusConfig GenesisConfigError | Failed to derive the Ledger or Consensus config. |
Low level protocol interaction with a Bcc node
connectToLocalNode ∷ LocalNodeConnectInfo mode → LocalNodeClientProtocolsInMode mode → IO () Source #
Establish a connection to a local node and execute the given set of protocol handlers.
connectToLocalNodeWithVersion ∷ LocalNodeConnectInfo mode → (NodeToClientVersion → LocalNodeClientProtocolsInMode mode) → IO () Source #
Establish a connection to a local node and execute the given set of protocol handlers parameterized on the negotiated node-to-client protocol version.
data LocalNodeConnectInfo mode Source #
Constructors
LocalNodeConnectInfo | |
data AnyConsensusMode where Source #
Constructors
AnyConsensusMode ∷ ConsensusMode mode → AnyConsensusMode |
Instances
Show AnyConsensusMode Source # | |
Defined in Bcc.Api.Modes |
data ConsensusMode mode where Source #
This GADT provides a value-level representation of all the consensus modes. This enables pattern matching on the era to allow them to be treated in a non-uniform way.
Constructors
BccMode ∷ ConsensusMode BccMode |
Instances
Show (ConsensusMode mode) Source # | |
Defined in Bcc.Api.Modes |
consensusModeOnly ∷ ConsensusModeParams mode → ConsensusMode mode Source #
data ConsensusModeIsMultiEra mode where Source #
The subset of consensus modes that consist of multiple eras. Some features are not supported in single-era modes (for exact compatibility with not using the hard fork combinatior at all).
Constructors
BccModeIsMultiEra ∷ ConsensusModeIsMultiEra BccMode |
Instances
Show (ConsensusModeIsMultiEra mode) Source # | |
Defined in Bcc.Api.Modes |
data AnyConsensusModeParams where Source #
Constructors
AnyConsensusModeParams ∷ ConsensusModeParams mode → AnyConsensusModeParams |
Instances
Show AnyConsensusModeParams Source # | |
Defined in Bcc.Api.Modes |
data ConsensusModeParams mode where Source #
The consensus-mode-specific parameters needed to connect to a local node that is using each consensus mode.
It is in fact only the Cole era that requires extra parameters, but this is
of course inherited by the BccMode
that uses the Cole era. The reason
this parameter is needed stems from unfortunate design decisions from the
legacy Cole era. The slots per epoch are needed to be able to decode
epoch boundary blocks from the Cole era.
It is possible in future that we may be able to eliminate this parameter by discovering it from the node during the initial handshake.
Constructors
ColeModeParams ∷ EpochSlots → ConsensusModeParams ColeMode | |
SophieModeParams ∷ ConsensusModeParams SophieMode | |
BccModeParams ∷ EpochSlots → ConsensusModeParams BccMode |
Instances
Show (ConsensusModeParams mode) Source # | |
Defined in Bcc.Api.Modes |
data EraInMode era mode where Source #
A representation of which BccEra
s are included in each
ConsensusMode
.
Constructors
toEraInMode ∷ BccEra era → ConsensusMode mode → Maybe (EraInMode era mode) Source #
data LocalNodeClientProtocols block point tip tx txerr query m Source #
The protocols we can use with a local node. Use in conjunction with
connectToLocalNode
.
These protocols use the types from the rest of this API. The conversion
to/from the types used by the underlying wire formats is handled by
connectToLocalNode
.
Constructors
LocalNodeClientProtocols | |
Fields
|
data LocalChainSyncClient block point tip m Source #
Constructors
NoLocalChainSyncClient | |
LocalChainSyncClientPipelined (ChainSyncClientPipelined block point tip m ()) | |
LocalChainSyncClient (ChainSyncClient block point tip m ()) |
Chain sync protocol
To construct a ChainSyncClient
see Bcc.Api.Client
or
Bcc.Api.ClientPipelined
.
newtype ChainSyncClient header point tip (m ∷ Type → Type) a #
Constructors
ChainSyncClient | |
Fields
|
newtype ChainSyncClientPipelined header point tip (m ∷ Type → Type) a #
Constructors
ChainSyncClientPipelined | |
Fields
|
data BlockInMode mode where Source #
A Block
in one of the eras supported by a given protocol mode.
For multi-era modes such as the BccMode
this type is a sum of the
different block types for all the eras. It is used in the ChainSync protocol.
Constructors
BlockInMode ∷ Block era → EraInMode era mode → BlockInMode mode |
Instances
Show (BlockInMode mode) Source # | |
Defined in Bcc.Api.Block |
type LocalNodeClientProtocolsInMode mode = LocalNodeClientProtocols (BlockInMode mode) ChainPoint ChainTip (TxInMode mode) (TxValidationErrorInMode mode) (QueryInMode mode) IO Source #
Local tx submission
data LocalTxSubmissionClient tx reject (m ∷ Type → Type) a #
data TxInMode mode where Source #
A Tx
in one of the eras supported by a given protocol mode.
For multi-era modes such as the BccMode
this type is a sum of the
different transaction types for all the eras. It is used in the
LocalTxSubmission protocol.
Constructors
TxInMode ∷ Tx era → EraInMode era mode → TxInMode mode | Everything we consider a normal transaction. |
TxInColeSpecial ∷ GenTx ColeBlock → EraInMode ColeEra mode → TxInMode mode | Cole has various things we can post to the chain which are not actually transactions. This covers: update proposals, votes and delegation certs. |
data TxValidationErrorInMode mode where Source #
A TxValidationError
in one of the eras supported by a given protocol
mode.
This is used in the LocalStateQuery protocol.
Constructors
TxValidationErrorInMode ∷ TxValidationError era → EraInMode era mode → TxValidationErrorInMode mode | |
TxValidationEraMismatch ∷ EraMismatch → TxValidationErrorInMode mode |
Instances
Show (TxValidationErrorInMode mode) Source # | |
Defined in Bcc.Api.TxInMode |
runLocalTxSubmissionClient ∷ LocalTxSubmissionClient tx reject m a → m (LocalTxClientStIdle tx reject m a) #
submitTxToNodeLocal ∷ ∀ mode. LocalNodeConnectInfo mode → TxInMode mode → IO (SubmitResult (TxValidationErrorInMode mode)) Source #
Local state query
newtype LocalStateQueryClient block point (query ∷ Type → Type) (m ∷ Type → Type) a #
Constructors
LocalStateQueryClient | |
Fields
|
data QueryInMode mode result where Source #
Constructors
QueryCurrentEra ∷ ConsensusModeIsMultiEra mode → QueryInMode mode AnyBccEra | |
QueryInEra ∷ EraInMode era mode → QueryInEra era result → QueryInMode mode (Either EraMismatch result) | |
QueryEraHistory ∷ ConsensusModeIsMultiEra mode → QueryInMode mode (EraHistory mode) | |
QuerySystemStart ∷ QueryInMode mode SystemStart |
Instances
Show (QueryInMode mode result) Source # | |
Defined in Bcc.Api.Query |
data QueryInEra era result where Source #
Constructors
QueryColeUpdateState ∷ QueryInEra ColeEra ColeUpdateState | |
QueryInSophieBasedEra ∷ SophieBasedEra era → QueryInSophieBasedEra era result → QueryInEra era result |
Instances
Show (QueryInEra era result) Source # | |
Defined in Bcc.Api.Query |
data QueryInSophieBasedEra era result where Source #
Constructors
Instances
Show (QueryInSophieBasedEra era result) Source # | |
Defined in Bcc.Api.Query |
data QueryUTxOFilter Source #
Getting the whole UTxO is obviously not efficient since the result can be huge. Filtering by address is also not efficient because it requires a linear search.
The QueryUTxOFilterByTxIn
is efficient since it fits with the structure of
the UTxO (which is indexed by TxIn
).
Constructors
QueryUTxOWhole | O(n) time and space for utxo size n |
QueryUTxOByAddress (Set AddressAny) | O(n) time, O(m) space for utxo size n, and address set size m |
QueryUTxOByTxIn (Set TxIn) | O(m log n) time, O(m) space for utxo size n, and address set size m |
Instances
Eq QueryUTxOFilter Source # | |
Defined in Bcc.Api.Query Methods | |
Show QueryUTxOFilter Source # | |
Defined in Bcc.Api.Query |
queryNodeLocalState ∷ ∀ mode result. LocalNodeConnectInfo mode → Maybe ChainPoint → QueryInMode mode result → IO (Either AcquireFailure result) Source #
Establish a connection to a node and execute a single query using the local state query protocol.
data EraHistory mode where Source #
Constructors
EraHistory ∷ ConsensusBlockForMode mode ~ HardForkBlock xs ⇒ ConsensusMode mode → Interpreter xs → EraHistory mode |
getProgress ∷ SlotNo → EraHistory mode → Either PastHorizonException (RelativeTime, SlotLength) Source #
Common queries
getLocalChainTip ∷ LocalNodeConnectInfo mode → IO ChainTip Source #
Node operation
Support for the steps needed to operate a node
Operational certificates
data OperationalCertificate Source #
Instances
data OperationalCertificateIssueCounter Source #
Instances
Eq OperationalCertificateIssueCounter Source # | |
Show OperationalCertificateIssueCounter Source # | |
FromCBOR OperationalCertificateIssueCounter Source # | |
Defined in Bcc.Api.OperationalCertificate Methods fromCBOR ∷ Decoder s OperationalCertificateIssueCounter # | |
ToCBOR OperationalCertificateIssueCounter Source # | |
Defined in Bcc.Api.OperationalCertificate Methods toCBOR ∷ OperationalCertificateIssueCounter → Encoding # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy OperationalCertificateIssueCounter → Size # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [OperationalCertificateIssueCounter] → Size # | |
HasTypeProxy OperationalCertificateIssueCounter Source # | |
Defined in Bcc.Api.OperationalCertificate Associated Types | |
SerialiseAsCBOR OperationalCertificateIssueCounter Source # | |
Defined in Bcc.Api.OperationalCertificate | |
HasTextEnvelope OperationalCertificateIssueCounter Source # | |
data AsType OperationalCertificateIssueCounter Source # | |
data OperationalCertIssueError Source #
Instances
Show OperationalCertIssueError Source # | |
Defined in Bcc.Api.OperationalCertificate | |
Error OperationalCertIssueError Source # | |
Defined in Bcc.Api.OperationalCertificate Methods |
issueOperationalCertificate ∷ VerificationKey KesKey → Either (SigningKey StakePoolKey) (SigningKey GenesisDelegateExtendedKey) → KESPeriod → OperationalCertificateIssueCounter → Either OperationalCertIssueError (OperationalCertificate, OperationalCertificateIssueCounter) Source #
Genesis file
Types and functions needed to inspect or create a genesis file.
data GenesisKey Source #
Instances
data GenesisExtendedKey Source #
Sophie-era vested keys using extended ed25519 cryptographic keys.
These serve the same role as normal vested keys, but are here to support legacy Cole vested keys which used extended keys.
The extended verification keys can be converted (via castVerificationKey
)
to ordinary keys (i.e. VerificationKey
GenesisKey
) but this is not the
case for the signing keys. The signing keys can be used to witness
transactions directly, with verification via their non-extended verification
key (VerificationKey
GenesisKey
).
This is a type level tag, used with other interfaces like Key
.
Instances
data GenesisDelegateKey Source #
Instances
data GenesisDelegateExtendedKey Source #
Sophie-era vested keys using extended ed25519 cryptographic keys.
These serve the same role as normal vested keys, but are here to support legacy Cole vested keys which used extended keys.
The extended verification keys can be converted (via castVerificationKey
)
to ordinary keys (i.e. VerificationKey
GenesisKey
) but this is not the
case for the signing keys. The signing keys can be used to witness
transactions directly, with verification via their non-extended verification
key (VerificationKey
GenesisKey
).
This is a type level tag, used with other interfaces like Key
.
Instances
data GenesisUTxOKey Source #
Instances
genesisUTxOPseudoTxIn ∷ NetworkId → Hash GenesisUTxOKey → TxIn Source #
Compute the TxIn
of the initial UTxO pseudo-transaction corresponding
to the given address in the genesis initial funds.
The Sophie initial UTxO is constructed from the sgInitialFunds
which
is not a full UTxO but just a map from addresses to coin values.
This gets turned into a UTxO by making a pseudo-transaction for each address,
with the 0th output being the coin value. So to spend from the initial UTxO
we need this same TxIn
to use as an input to the spending transaction.
data GenesisVestedKey Source #
Instances
data GenesisVestedExtendedKey Source #
Sophie-era vested keys using extended ed25519 cryptographic keys.
These serve the same role as normal vested keys, but are here to support legacy Cole vested keys which used extended keys.
The extended verification keys can be converted (via castVerificationKey
)
to ordinary keys (i.e. VerificationKey
GenesisKey
) but this is not the
case for the signing keys. The signing keys can be used to witness
transactions directly, with verification via their non-extended verification
key (VerificationKey
GenesisKey
).
This is a type level tag, used with other interfaces like Key
.
Instances
data GenesisVestedDelegateKey Source #
Instances
data GenesisVestedDelegateExtendedKey Source #
Sophie-era vested keys using extended ed25519 cryptographic keys.
These serve the same role as normal vested keys, but are here to support legacy Cole vested keys which used extended keys.
The extended verification keys can be converted (via castVerificationKey
)
to ordinary keys (i.e. VerificationKey
GenesisKey
) but this is not the
case for the signing keys. The signing keys can be used to witness
transactions directly, with verification via their non-extended verification
key (VerificationKey
GenesisKey
).
This is a type level tag, used with other interfaces like Key
.
Instances
Genesis paramaters
data GenesisParameters Source #
Constructors
GenesisParameters | |
Fields
|
Types and functions needed to inspect or create a genesis file.
Instances
data VestedExtendedKey Source #
Sophie-era vested keys using extended ed25519 cryptographic keys.
These serve the same role as normal vested keys, but are here to support legacy Cole vested keys which used extended keys.
The extended verification keys can be converted (via castVerificationKey
)
to ordinary keys (i.e. VerificationKey
VestedKey
) but this is not the
case for the signing keys. The signing keys can be used to witness
transactions directly, with verification via their non-extended verification
key (VerificationKey
VestedKey
).
This is a type level tag, used with other interfaces like Key
.
Instances
data VestedDelegateKey Source #
Instances
data VestedDelegateExtendedKey Source #
Sophie-era vested keys using extended ed25519 cryptographic keys.
These serve the same role as normal vested keys, but are here to support legacy Cole vested keys which used extended keys.
The extended verification keys can be converted (via castVerificationKey
)
to ordinary keys (i.e. VerificationKey
VestedKey
) but this is not the
case for the signing keys. The signing keys can be used to witness
transactions directly, with verification via their non-extended verification
key (VerificationKey
VestedKey
).
This is a type level tag, used with other interfaces like Key
.
Instances
data VestedUTxOKey Source #
Vested UTxO keys
Instances
Special transactions
There are various additional things that can be embedded in a transaction for special operations.
makeMIRCertificate ∷ MIRPot → MIRTarget → Certificate Source #
makeGenesisKeyDelegationCertificate ∷ Hash GenesisKey → Hash GenesisDelegateKey → Hash VrfKey → Certificate Source #
makeVestedKeyDelegationCertificate ∷ Hash VestedKey → Hash VestedDelegateKey → Hash VrfKey → Certificate Source #
The MIRTarget
determines the target of a MIRCertificate
.
A MIRCertificate
moves entropic from either the reserves or the treasury
to either a collection of stake credentials or to the other pot.
Constructors
StakeAddressesMIR [(StakeCredential, Entropic)] | Use |
SendToReservesMIR Entropic | Use |
SendToTreasuryMIR Entropic | Use |
Protocol parameter updates
data UpdateProposal Source #
Constructors
UpdateProposal !(Map (Hash GenesisKey) ProtocolParametersUpdate) !EpochNo |
Instances
data ProtocolParametersUpdate Source #
The representation of a change in the ProtocolParameters
.
Constructors
ProtocolParametersUpdate | |
Fields
|
Instances
Eq ProtocolParametersUpdate Source # | |
Defined in Bcc.Api.ProtocolParameters | |
Show ProtocolParametersUpdate Source # | |
Defined in Bcc.Api.ProtocolParameters | |
Semigroup ProtocolParametersUpdate Source # | |
Defined in Bcc.Api.ProtocolParameters | |
Monoid ProtocolParametersUpdate Source # | |
FromCBOR ProtocolParametersUpdate Source # | |
Defined in Bcc.Api.ProtocolParameters Methods fromCBOR ∷ Decoder s ProtocolParametersUpdate # | |
ToCBOR ProtocolParametersUpdate Source # | |
Defined in Bcc.Api.ProtocolParameters Methods toCBOR ∷ ProtocolParametersUpdate → Encoding # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy ProtocolParametersUpdate → Size # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [ProtocolParametersUpdate] → Size # |
makeSophieUpdateProposal ∷ ProtocolParametersUpdate → [Hash GenesisKey] → EpochNo → UpdateProposal Source #
data OptimumNonce Source #
Instances
newtype NetworkMagic #
Constructors
NetworkMagic | |
Fields |
Instances
Eq NetworkMagic | |
Defined in Shardagnostic.Network.Magic Methods (==) ∷ NetworkMagic → NetworkMagic → Bool Source # (/=) ∷ NetworkMagic → NetworkMagic → Bool Source # | |
Show NetworkMagic | |
Defined in Shardagnostic.Network.Magic | |
Generic NetworkMagic | |
Defined in Shardagnostic.Network.Magic Methods from ∷ NetworkMagic → Rep NetworkMagic x Source # to ∷ Rep NetworkMagic x → NetworkMagic Source # | |
NoThunks NetworkMagic | |
Defined in Shardagnostic.Network.Magic Methods noThunks ∷ Context → NetworkMagic → IO (Maybe ThunkInfo) wNoThunks ∷ Context → NetworkMagic → IO (Maybe ThunkInfo) | |
type Rep NetworkMagic | |
Defined in Shardagnostic.Network.Magic type Rep NetworkMagic = D1 ('MetaData "NetworkMagic" "Shardagnostic.Network.Magic" "shardagnostic-network-0.1.0.0-5c350aed8ecd813d3e0e78a45ca35fdda83036491303e35a58d283b38c865e88" 'True) (C1 ('MetaCons "NetworkMagic" 'PrefixI 'True) (S1 ('MetaSel ('Just "unNetworkMagic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32))) |
Conversions
toLedgerPParams ∷ SophieBasedEra era → ProtocolParameters → PParams (SophieLedgerEra era) Source #
fromLedgerPParams ∷ SophieBasedEra era → PParams (SophieLedgerEra era) → ProtocolParameters Source #
fromLedgerTxOuts ∷ SophieBasedEra era → TxBody (SophieLedgerEra era) → [TxOut era] Source #
toLedgerUTxO ∷ SophieLedgerEra era ~ ledgerera ⇒ Crypto ledgerera ~ StandardCrypto ⇒ SophieBasedEra era → UTxO era → UTxO ledgerera Source #
data SomeNodeClientProtocol where Source #
Constructors
SomeNodeClientProtocol ∷ (RunNode blk, ProtocolClient blk) ⇒ ProtocolClientInfoArgs blk → SomeNodeClientProtocol |
newtype SlotsInEpoch Source #
Constructors
SlotsInEpoch Word64 |
newtype SlotsToEpochEnd Source #
Constructors
SlotsToEpochEnd Word64 |
slotToEpoch ∷ SlotNo → EraHistory mode → Either PastHorizonException (EpochNo, SlotsInEpoch, SlotsToEpochEnd) Source #
data NodeToClientVersion #
Constructors
NodeToClientV_1 | |
NodeToClientV_2 | |
NodeToClientV_3 | |
NodeToClientV_4 | |
NodeToClientV_5 | |
NodeToClientV_6 | |
NodeToClientV_7 | |
NodeToClientV_8 | |
NodeToClientV_9 |
Instances
Monadic queries
data LocalStateQueryExpr block point query r m a Source #
Monadic type for constructing local state query expressions.
Use queryExpr
in a do block to construct queries of this type and convert
the expression to a LocalStateQueryClient
with setupLocalStateQueryExpr
.
Some consideration was made to use Applicative instead of Monad as the abstraction in order to support pipelining, but we actually have a fair amount of code where the next query depends on the result of the former and therefore actually need Monad.
In order to make pipelining still possible we can explore the use of Selective Functors which would allow us to straddle both worlds.
Instances
Monad (LocalStateQueryExpr block point query r m) Source # | |
Defined in Bcc.Api.IPC.Monad Methods (>>=) ∷ LocalStateQueryExpr block point query r m a → (a → LocalStateQueryExpr block point query r m b) → LocalStateQueryExpr block point query r m b Source # (>>) ∷ LocalStateQueryExpr block point query r m a → LocalStateQueryExpr block point query r m b → LocalStateQueryExpr block point query r m b Source # return ∷ a → LocalStateQueryExpr block point query r m a Source # | |
Functor (LocalStateQueryExpr block point query r m) Source # | |
Defined in Bcc.Api.IPC.Monad Methods fmap ∷ (a → b) → LocalStateQueryExpr block point query r m a → LocalStateQueryExpr block point query r m b Source # (<$) ∷ a → LocalStateQueryExpr block point query r m b → LocalStateQueryExpr block point query r m a Source # | |
Applicative (LocalStateQueryExpr block point query r m) Source # | |
Defined in Bcc.Api.IPC.Monad Methods pure ∷ a → LocalStateQueryExpr block point query r m a Source # (<*>) ∷ LocalStateQueryExpr block point query r m (a → b) → LocalStateQueryExpr block point query r m a → LocalStateQueryExpr block point query r m b Source # liftA2 ∷ (a → b → c) → LocalStateQueryExpr block point query r m a → LocalStateQueryExpr block point query r m b → LocalStateQueryExpr block point query r m c Source # (*>) ∷ LocalStateQueryExpr block point query r m a → LocalStateQueryExpr block point query r m b → LocalStateQueryExpr block point query r m b Source # (<*) ∷ LocalStateQueryExpr block point query r m a → LocalStateQueryExpr block point query r m b → LocalStateQueryExpr block point query r m a Source # | |
MonadIO m ⇒ MonadIO (LocalStateQueryExpr block point query r m) Source # | |
Defined in Bcc.Api.IPC.Monad Methods liftIO ∷ IO a → LocalStateQueryExpr block point query r m a Source # |
executeLocalStateQueryExpr ∷ LocalNodeConnectInfo mode → Maybe ChainPoint → (NodeToClientVersion → LocalStateQueryExpr (BlockInMode mode) ChainPoint (QueryInMode mode) () IO a) → IO (Either AcquireFailure a) Source #
Execute a local state query expression.
executeLocalStateQueryExprWithChainSync ∷ LocalNodeConnectInfo mode → Maybe ChainPoint → (NodeToClientVersion → LocalStateQueryExpr (BlockInMode mode) ChainPoint (QueryInMode mode) () IO a) → IO (ChainTip, Either AcquireFailure a) Source #
Execute a local state query expression concurrently with a chain sync.
queryExpr ∷ QueryInMode mode a → LocalStateQueryExpr block point (QueryInMode mode) r IO a Source #
Use queryExpr
in a do block to construct monadic local state queries.
determineEraExpr ∷ ConsensusModeParams mode → LocalStateQueryExpr block point (QueryInMode mode) r IO AnyBccEra Source #
A monad expresion that determines what era the node is in.