| Copyright | (c) 2023 GYELD GMBH |
|---|---|
| License | Apache 2.0 |
| Maintainer | support@geniusyield.co |
| Stability | develop |
| Safe Haskell | None |
| Language | Haskell2010 |
GeniusYield.Types.TxIn
Description
Synopsis
- data GYTxIn v = GYTxIn {}
- data GYInScript (u ∷ PlutusVersion) where
- GYInScript ∷ v `VersionIsGreaterOrEqual` u ⇒ GYValidator v → GYInScript u
- GYInReference ∷ !GYTxOutRef → !(GYScript PlutusV2) → GYInScript PlutusV2
- inScriptVersion ∷ GYInScript v → PlutusVersion
- data GYTxInWitness v
- txInToApi ∷ Bool → GYTxIn v → (TxIn, BuildTxWith BuildTx (Witness WitCtxTxIn BabbageEra))
Documentation
Transaction input:
- an UTxO
- non-key witness for script utxos
The parameter v indicates the minimum version of scripts allowed as inputs
in the transaction.
Constructors
| GYTxIn | |
Fields
| |
data GYInScript (u ∷ PlutusVersion) where #
Constructors
| GYInScript ∷ v `VersionIsGreaterOrEqual` u ⇒ GYValidator v → GYInScript u |
|
| GYInReference ∷ !GYTxOutRef → !(GYScript PlutusV2) → GYInScript PlutusV2 | Reference inputs can be only used in V2 transactions. |
Instances
| Eq (GYInScript v) # | |
Defined in GeniusYield.Types.TxIn | |
| Show (GYInScript v) # | |
Defined in GeniusYield.Types.TxIn Methods showsPrec ∷ Int → GYInScript v → ShowS # show ∷ GYInScript v → String # showList ∷ [GYInScript v] → ShowS # | |
inScriptVersion ∷ GYInScript v → PlutusVersion #
Returns the PlutusVersion of the given GYInScript.
data GYTxInWitness v #
Represents witness type and associated information for tx inputs.
Constructors
| GYTxInWitnessKey | Key witness without datum. |
| GYTxInWitnessScript !(GYInScript v) !GYDatum !GYRedeemer | Script witness with associated script, datum, and redeemer. |
Instances
| Eq (GYTxInWitness v) # | |
Defined in GeniusYield.Types.TxIn Methods (==) ∷ GYTxInWitness v → GYTxInWitness v → Bool # (/=) ∷ GYTxInWitness v → GYTxInWitness v → Bool # | |
| Show (GYTxInWitness v) # | |
Defined in GeniusYield.Types.TxIn Methods showsPrec ∷ Int → GYTxInWitness v → ShowS # show ∷ GYTxInWitness v → String # showList ∷ [GYTxInWitness v] → ShowS # | |
Arguments
| ∷ Bool | does corresponding utxo contains inline datum? |
| → GYTxIn v | |
| → (TxIn, BuildTxWith BuildTx (Witness WitCtxTxIn BabbageEra)) |
Note: TxIns type synonym is not exported: https://github.com/input-output-hk/cardano-node/issues/3732