@@ -22,7 +22,6 @@ import Hydra.Data.Party (Party (vkey))
22
22
import Hydra.Plutus.Extras (ValidatorType , scriptValidatorHash , wrapValidator )
23
23
import PlutusLedgerApi.Common (SerialisedScript , serialiseCompiledCode )
24
24
import PlutusLedgerApi.V1.Time (fromMilliSeconds )
25
- import PlutusLedgerApi.V1.Value (valueOf )
26
25
import PlutusLedgerApi.V2 (
27
26
Address ,
28
27
CurrencySymbol ,
@@ -44,8 +43,6 @@ import PlutusLedgerApi.V2 (
44
43
TxOutRef (.. ),
45
44
UpperBound (.. ),
46
45
Value (Value ),
47
- adaSymbol ,
48
- adaToken ,
49
46
)
50
47
import PlutusLedgerApi.V2.Contexts (findOwnInput )
51
48
import PlutusTx (CompiledCode )
@@ -542,18 +539,6 @@ checkFanout ScriptContext{scriptContextTxInfo = txInfo} closedDatum numberOfFano
542
539
-- Helpers
543
540
--------------------------------------------------------------------------------
544
541
545
- (&) :: a -> (a -> b ) -> b
546
- (&) = flip ($)
547
- {-# INLINEABLE (&) #-}
548
-
549
- txOutAdaValue :: TxOut -> Integer
550
- txOutAdaValue o = valueOf (txOutValue o) adaSymbol adaToken
551
- {-# INLINEABLE txOutAdaValue #-}
552
-
553
- txInfoAdaFee :: TxInfo -> Integer
554
- txInfoAdaFee tx = valueOf (txInfoFee tx) adaSymbol adaToken
555
- {-# INLINEABLE txInfoAdaFee #-}
556
-
557
542
makeContestationDeadline :: ContestationPeriod -> ScriptContext -> POSIXTime
558
543
makeContestationDeadline cperiod ScriptContext {scriptContextTxInfo} =
559
544
case ivTo (txInfoValidRange scriptContextTxInfo) of
0 commit comments