atlas-cardano-0.5.0: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellSafe-Inferred
LanguageGHC2021

GeniusYield.Transaction.Common

Description

 
Synopsis

Documentation

data GYBalancedTx v #

An *almost* finalized Tx.

This is fully balanced _except_ potentially missing an ada change output, and missing the exact fee. Both of these will be set by finalizeGYBalancedTx.

data GYTxInDetailed v #

A further detailed version of GYTxIn, containing all information about a UTxO.

Instances

Instances details
Show (GYTxInDetailed v) # 
Instance details

Defined in GeniusYield.Transaction.Common

Eq (GYTxInDetailed v) # 
Instance details

Defined in GeniusYield.Transaction.Common

data GYBuildTxError #

GYBuildTxError may be raised when building transactions, for non-trivial errors. Insufficient funds and similar are considered trivial transaction building errors.

Constructors

GYBuildTxBalancingError !GYBalancingError 
GYBuildTxBodyErrorAutoBalance !(TxBodyErrorAutoBalance BabbageEra) 
GYBuildTxPPConversionError !ProtocolParametersConversionError 
GYBuildTxMissingMaxExUnitsParam

Missing max ex units in protocol params

GYBuildTxExUnitsTooBig

Execution units required is higher than the maximum as specified by protocol params.

Fields

  • (Natural, Natural)

    Tuple of maximum execution steps & memory as given by protocol parameters.

  • (Natural, Natural)

    Tuple of execution steps & memory as taken by built transaction.

GYBuildTxSizeTooBig

Transaction size is higher than the maximum as specified by protocol params.

Fields

  • !Natural

    Maximum size as specified by protocol parameters.

  • !Natural

    Size our built transaction took.

GYBuildTxCollateralShortFall

Shortfall (in collateral inputs) for collateral requirement.

Fields

  • !Natural

    Transaction collateral requirement.

  • !Natural

    Lovelaces in given collateral UTxO.

GYBuildTxNoSuitableCollateral

Couldn't find a UTxO to use as collateral.

GYBuildTxCborSimplificationError !CborSimplificationError 
GYBuildTxCollapseExtraOutError !TxBodyError 

Instances

Instances details
Show GYBuildTxError # 
Instance details

Defined in GeniusYield.Transaction.Common

adjustTxOut ∷ (GYTxOut v → Natural) → GYTxOut v → GYTxOut v #