@@ -23,10 +23,6 @@ module Hydra.Cardano.Api (
23
23
-- * Wrapped Types
24
24
module Hydra.Cardano.Api ,
25
25
26
- -- ** UTxO
27
- UTxO ,
28
- UTxO' (UTxO ),
29
-
30
26
-- * Extras
31
27
module Extras ,
32
28
@@ -38,9 +34,10 @@ import Cardano.Api as X hiding (
38
34
AddressInEra (.. ),
39
35
AddressTypeInEra (.. ),
40
36
BalancedTxBody (.. ),
41
- Key (.. ),
42
- KeyWitness ,
37
+ KeyWitness (.. ),
43
38
PlutusScript ,
39
+ PlutusScriptSerialised ,
40
+ ReferenceScript (.. ),
44
41
Script (.. ),
45
42
ScriptInEra (.. ),
46
43
ScriptLanguage (.. ),
@@ -85,42 +82,15 @@ import Cardano.Api as X hiding (
85
82
import Cardano.Api.Ledger as X (
86
83
PParams ,
87
84
)
88
- import Cardano.Api.Shelley as X (
89
- AcquiringFailure (.. ),
90
- Hash (HeaderHash ),
91
- Key (.. ),
92
- PlutusScriptOrReferenceInput (PScript ),
93
- PoolId ,
94
- ShelleyGenesis (.. ),
95
- ShelleyLedgerEra ,
96
- SigningKey (.. ),
97
- StakeCredential (.. ),
98
- VerificationKey (.. ),
99
- fromAlonzoCostModels ,
100
- fromAlonzoPrices ,
101
- fromPlutusData ,
102
- fromShelleyMetadata ,
103
- toAlonzoPrices ,
104
- toPlutusData ,
105
- toShelleyMetadata ,
106
- toShelleyNetwork ,
107
- )
108
- import Cardano.Api.UTxO (
109
- UTxO ,
110
- UTxO' (.. ),
111
- )
112
- import Cardano.Ledger.Coin as X (Coin (.. ))
113
85
import Hydra.Cardano.Api.Prelude (
114
86
Era ,
115
87
LedgerEra ,
116
- LedgerProtocolParameters ,
117
88
Map ,
118
89
ledgerEraVersion ,
119
90
)
120
91
121
92
import Hydra.Cardano.Api.Address ()
122
93
import Hydra.Cardano.Api.AddressInEra as Extras
123
- import Hydra.Cardano.Api.BlockHeader as Extras
124
94
import Hydra.Cardano.Api.ChainPoint as Extras
125
95
import Hydra.Cardano.Api.ExecutionUnits as Extras
126
96
import Hydra.Cardano.Api.Hash as Extras
@@ -145,8 +115,6 @@ import Hydra.Cardano.Api.Value as Extras
145
115
import Hydra.Cardano.Api.Witness as Extras
146
116
147
117
import Cardano.Api qualified
148
- import Cardano.Api.Internal.Tx.Body (TxInsReferenceDatums )
149
- import Cardano.Api.Shelley qualified
150
118
import Cardano.Ledger.Alonzo.TxAuxData qualified as Ledger
151
119
import Cardano.Ledger.Alonzo.TxWits qualified as Ledger
152
120
import Cardano.Ledger.BaseTypes as X (Network )
@@ -212,17 +180,17 @@ type KeyWitness = Cardano.Api.KeyWitness Era
212
180
213
181
pattern ShelleyBootstrapWitness :: Ledger. BootstrapWitness -> KeyWitness
214
182
pattern ShelleyBootstrapWitness {shelleyBootstrapWitness} <-
215
- Cardano.Api.Shelley. ShelleyBootstrapWitness _ shelleyBootstrapWitness
183
+ Cardano.Api. ShelleyBootstrapWitness _ shelleyBootstrapWitness
216
184
where
217
185
ShelleyBootstrapWitness =
218
- Cardano.Api.Shelley. ShelleyBootstrapWitness shelleyBasedEra
186
+ Cardano.Api. ShelleyBootstrapWitness shelleyBasedEra
219
187
220
188
pattern ShelleyKeyWitness :: Ledger. WitVKey 'Ledger.Witness -> KeyWitness
221
189
pattern ShelleyKeyWitness {shelleyKeyWitness} <-
222
- Cardano.Api.Shelley. ShelleyKeyWitness _ shelleyKeyWitness
190
+ Cardano.Api. ShelleyKeyWitness _ shelleyKeyWitness
223
191
where
224
192
ShelleyKeyWitness =
225
- Cardano.Api.Shelley. ShelleyKeyWitness shelleyBasedEra
193
+ Cardano.Api. ShelleyKeyWitness shelleyBasedEra
226
194
227
195
-- ** PlutusScript
228
196
@@ -231,10 +199,10 @@ type PlutusScript = Cardano.Api.PlutusScript PlutusScriptV3
231
199
232
200
pattern PlutusScriptSerialised :: ShortByteString -> PlutusScript
233
201
pattern PlutusScriptSerialised {plutusScriptSerialised} <-
234
- Cardano.Api.Shelley. PlutusScriptSerialised plutusScriptSerialised
202
+ Cardano.Api. PlutusScriptSerialised plutusScriptSerialised
235
203
where
236
204
PlutusScriptSerialised =
237
- Cardano.Api.Shelley. PlutusScriptSerialised
205
+ Cardano.Api. PlutusScriptSerialised
238
206
239
207
-- ** Script
240
208
@@ -243,10 +211,10 @@ type Script = Cardano.Api.Script PlutusScriptV3
243
211
244
212
pattern PlutusScript :: PlutusScript -> Script
245
213
pattern PlutusScript {plutusScript} <-
246
- Cardano.Api.Shelley. PlutusScript _ plutusScript
214
+ Cardano.Api. PlutusScript _ plutusScript
247
215
where
248
216
PlutusScript =
249
- Cardano.Api.Shelley. PlutusScript PlutusScriptV3
217
+ Cardano.Api. PlutusScript PlutusScriptV3
250
218
251
219
-- ** ScriptInEra
252
220
@@ -259,10 +227,10 @@ type ScriptLanguage = Cardano.Api.ScriptLanguage PlutusScriptV3
259
227
260
228
pattern PlutusScriptLanguage :: ScriptLanguage
261
229
pattern PlutusScriptLanguage <-
262
- Cardano.Api.Shelley. PlutusScriptLanguage _
230
+ Cardano.Api. PlutusScriptLanguage _
263
231
where
264
232
PlutusScriptLanguage =
265
- Cardano.Api.Shelley. PlutusScriptLanguage PlutusScriptV3
233
+ Cardano.Api. PlutusScriptLanguage PlutusScriptV3
266
234
267
235
-- ** ScriptWitness
268
236
@@ -322,7 +290,7 @@ pattern ShelleyTxBody
322
290
, txBodyAuxiliaryData
323
291
, txBodyScriptValidity
324
292
} <-
325
- Cardano.Api.Shelley. ShelleyTxBody
293
+ Cardano.Api. ShelleyTxBody
326
294
_
327
295
txBodyLedgerTxBody
328
296
txBodyScripts
@@ -331,7 +299,7 @@ pattern ShelleyTxBody
331
299
txBodyScriptValidity
332
300
where
333
301
ShelleyTxBody =
334
- Cardano.Api.Shelley. ShelleyTxBody shelleyBasedEra
302
+ Cardano.Api. ShelleyTxBody shelleyBasedEra
335
303
336
304
signShelleyTransaction :: TxBody -> [ShelleyWitnessSigningKey ] -> Tx
337
305
signShelleyTransaction = Cardano.Api. signShelleyTransaction shelleyBasedEra
@@ -600,25 +568,25 @@ pattern TxOut{txOutAddress, txOutValue, txOutDatum, txOutReferenceScript} <-
600
568
601
569
-- ** ReferenceScript
602
570
603
- type ReferenceScript = Cardano.Api.Shelley. ReferenceScript Era
571
+ type ReferenceScript = Cardano.Api. ReferenceScript Era
604
572
{-# COMPLETE ReferenceScript, ReferenceScriptNone #-}
605
573
606
574
pattern ReferenceScript :: ScriptInAnyLang -> ReferenceScript
607
575
pattern ReferenceScript {referenceScript} <-
608
- Cardano.Api.Shelley. ReferenceScript
576
+ Cardano.Api. ReferenceScript
609
577
_
610
578
referenceScript
611
579
where
612
580
ReferenceScript =
613
- Cardano.Api.Shelley. ReferenceScript
581
+ Cardano.Api. ReferenceScript
614
582
babbageBasedEra
615
583
616
- pattern ReferenceScriptNone :: Cardano.Api.Shelley. ReferenceScript Era
584
+ pattern ReferenceScriptNone :: Cardano.Api. ReferenceScript Era
617
585
pattern ReferenceScriptNone <-
618
- Cardano.Api.Shelley. ReferenceScriptNone
586
+ Cardano.Api. ReferenceScriptNone
619
587
where
620
588
ReferenceScriptNone =
621
- Cardano.Api.Shelley. ReferenceScriptNone
589
+ Cardano.Api. ReferenceScriptNone
622
590
623
591
-- ** TxOutDatum
624
592
@@ -729,3 +697,15 @@ pattern ScriptWitness scriptWitnessInCtx scriptWitness <-
729
697
730
698
makeShelleyKeyWitness :: TxBody -> ShelleyWitnessSigningKey -> KeyWitness
731
699
makeShelleyKeyWitness = Cardano.Api. makeShelleyKeyWitness shelleyBasedEra
700
+
701
+ type UTxO = Cardano.Api. UTxO Era
702
+
703
+ {-# COMPLETE UTxO #-}
704
+ pattern UTxO ::
705
+ Map TxIn (TxOut CtxUTxO ) ->
706
+ UTxO
707
+ pattern UTxO {utxo} <-
708
+ Cardano.Api. UTxO utxo
709
+ where
710
+ UTxO =
711
+ Cardano.Api. UTxO
0 commit comments