Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
GeniusYield.Transaction.Common
Description
Synopsis
- data GYBalancedTx v = GYBalancedTx {
- gybtxIns ∷ ![GYTxInDetailed v]
- gybtxCollaterals ∷ !GYUTxOs
- gybtxOuts ∷ ![GYTxOut v]
- gybtxMint ∷ !(Maybe (GYValue, [(GYMintScript v, GYRedeemer)]))
- gybtxInvalidBefore ∷ !(Maybe GYSlot)
- gybtxInvalidAfter ∷ !(Maybe GYSlot)
- gybtxSigners ∷ !(Set GYPubKeyHash)
- gybtxRefIns ∷ !GYUTxOs
- data GYTxInDetailed v = GYTxInDetailed {
- gyTxInDet ∷ !(GYTxIn v)
- gyTxInDetAddress ∷ !GYAddress
- gyTxInDetValue ∷ !GYValue
- gyTxInDetDatum ∷ !GYOutDatum
- gyTxInDetScriptRef ∷ !(Maybe (Some GYScript))
- data BalancingError
- minimumUTxO ∷ BundledProtocolParameters BabbageEra → GYTxOut v → Natural
- adjustTxOut ∷ (GYTxOut v → Natural) → GYTxOut v → GYTxOut v
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
.
Constructors
GYBalancedTx | |
Fields
|
data GYTxInDetailed v #
A further detailed version of GYTxIn
, containing all information about a UTxO.
Constructors
GYTxInDetailed | |
Fields
|
Instances
Show (GYTxInDetailed v) # | |
Defined in GeniusYield.Transaction.Common | |
Eq (GYTxInDetailed v) # | |
Defined in GeniusYield.Transaction.Common Methods (==) ∷ GYTxInDetailed v → GYTxInDetailed v → Bool Source # (/=) ∷ GYTxInDetailed v → GYTxInDetailed v → Bool Source # |
data BalancingError #
Constructors
BalancingErrorInsufficientFunds !GYValue | |
∀ v. BalancingErrorNonPositiveTxOut !(GYTxOut v) | |
BalancingErrorChangeShortFall !Natural | Lovelace shortfall in constructing a change output. See: Cardano.CoinSelection.Balance.UnableToConstructChangeError |
BalancingErrorEmptyOwnUTxOs | User wallet has no utxos to select. |
Instances
Show BalancingError # | |
Defined in GeniusYield.Transaction.Common | |
Eq BalancingError # | |
Defined in GeniusYield.Transaction.Common Methods (==) ∷ BalancingError → BalancingError → Bool Source # (/=) ∷ BalancingError → BalancingError → Bool Source # |