| Copyright | (c) 2023 GYELD GMBH |
|---|---|
| License | Apache 2.0 |
| Maintainer | support@geniusyield.co |
| Stability | develop |
| Safe Haskell | None |
| Language | Haskell2010 |
GeniusYield.Transaction.Common
Description
Synopsis
- data GYBalancedTx v = GYBalancedTx {
- gybtxIns ∷ ![GYTxInDetailed v]
- gybtxCollaterals ∷ !GYUTxOs
- gybtxOuts ∷ ![GYTxOut v]
- gybtxMint ∷ !(Maybe (GYValue, [(Some GYMintingPolicy, GYRedeemer)]))
- gybtxInvalidBefore ∷ !(Maybe GYSlot)
- gybtxInvalidAfter ∷ !(Maybe GYSlot)
- gybtxSigners ∷ !(Set GYPubKeyHash)
- gybtxRefIns ∷ !GYUTxOs
- data GYTxInDetailed v = GYTxInDetailed {}
- data BalancingError
- minimumUTxO ∷ Bool → ProtocolParameters → 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
| Eq (GYTxInDetailed v) # | |
Defined in GeniusYield.Transaction.Common Methods (==) ∷ GYTxInDetailed v → GYTxInDetailed v → Bool # (/=) ∷ GYTxInDetailed v → GYTxInDetailed v → Bool # | |
| Show (GYTxInDetailed v) # | |
Defined in GeniusYield.Transaction.Common Methods showsPrec ∷ Int → GYTxInDetailed v → ShowS # show ∷ GYTxInDetailed v → String # showList ∷ [GYTxInDetailed v] → ShowS # | |
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
| Eq BalancingError # | |
Defined in GeniusYield.Transaction.Common Methods (==) ∷ BalancingError → BalancingError → Bool # (/=) ∷ BalancingError → BalancingError → Bool # | |
| Show BalancingError # | |
Defined in GeniusYield.Transaction.Common Methods showsPrec ∷ Int → BalancingError → ShowS # show ∷ BalancingError → String # showList ∷ [BalancingError] → ShowS # | |
minimumUTxO ∷ Bool → ProtocolParameters → GYTxOut v → Natural #