@@ -227,17 +227,17 @@ mkPaymentTx' inputIndex outputIndices fees donation state' = do
227227 NoDatum
228228 SNothing
229229
230- pure $
231- mkSimpleTx True $
232- consPaymentTxBody
233- inputs
234- mempty
235- mempty
236- (StrictSeq. fromList $ outputs <> [change])
237- SNothing
238- (Coin fees)
239- mempty
240- (Coin donation)
230+ pure
231+ $ mkSimpleTx True
232+ $ consPaymentTxBody
233+ inputs
234+ mempty
235+ mempty
236+ (StrictSeq. fromList $ outputs <> [change])
237+ SNothing
238+ (Coin fees)
239+ mempty
240+ (Coin donation)
241241 where
242242 mkOutputs (outIx, val) = do
243243 addr <- resolveAddress outIx state'
@@ -268,17 +268,17 @@ mkLockByScriptTx inputIndex txOutTypes amount fees state' = do
268268 NoDatum
269269 SNothing
270270
271- pure $
272- mkSimpleTx True $
273- consPaymentTxBody
274- inputs
275- mempty
276- mempty
277- (StrictSeq. fromList $ outputs <> [change])
278- SNothing
279- (Coin fees)
280- mempty
281- (Coin 0 )
271+ pure
272+ $ mkSimpleTx True
273+ $ consPaymentTxBody
274+ inputs
275+ mempty
276+ mempty
277+ (StrictSeq. fromList $ outputs <> [change])
278+ SNothing
279+ (Coin fees)
280+ mempty
281+ (Coin 0 )
282282
283283mkUnlockScriptTx ::
284284 [ConwayUTxOIndex ] ->
@@ -348,9 +348,9 @@ mkDCertPoolTx consDCert state' = do
348348
349349mkDCertTxPools :: ConwayLedgerState -> Either ForgingError (AlonzoTx StandardConway )
350350mkDCertTxPools state' =
351- Right $
352- mkSimpleTx True $
353- consCertTxBody Nothing (allPoolStakeCert' state') (Withdrawals mempty )
351+ Right
352+ $ mkSimpleTx True
353+ $ consCertTxBody Nothing (allPoolStakeCert' state') (Withdrawals mempty )
354354
355355mkSimpleTx :: Bool -> ConwayTxBody StandardConway -> AlonzoTx StandardConway
356356mkSimpleTx isValid' txBody =
@@ -394,9 +394,9 @@ mkScriptDCertTx consCert isValid' state' = do
394394 cred <- resolveStakeCreds stakeIndex state'
395395 pure $ mkDCert cred
396396
397- pure $
398- mkScriptTx isValid' (mapMaybe prepareRedeemer . zip [0 .. ] $ consCert) $
399- consCertTxBody Nothing dcerts (Withdrawals mempty )
397+ pure
398+ $ mkScriptTx isValid' (mapMaybe prepareRedeemer . zip [0 .. ] $ consCert)
399+ $ consCertTxBody Nothing dcerts (Withdrawals mempty )
400400 where
401401 prepareRedeemer (n, (StakeIndexScript bl, shouldAddRedeemer, _))
402402 | not shouldAddRedeemer = Nothing
@@ -428,24 +428,24 @@ mkMultiAssetsScriptTx inputIx colInputIx outputIx refInput minted succeeds fees
428428 refInputs' = Set. fromList $ map (fst . fst ) refs
429429 colInputs' = Set. singleton $ fst colInput
430430
431- pure $
432- mkScriptTx succeeds (mkScriptInps (map fst inputs) ++ mkScriptMint' minted) $
433- consTxBody
434- inputs'
435- colInputs'
436- refInputs'
437- (StrictSeq. fromList outputs)
438- SNothing
439- (Coin fees)
440- mempty
441- mempty -- TODO[sgillespie]: minted?
442- (Withdrawals mempty )
443- (Coin 0 )
431+ pure
432+ $ mkScriptTx succeeds (mkScriptInps (map fst inputs) ++ mkScriptMint' minted)
433+ $ consTxBody
434+ inputs'
435+ colInputs'
436+ refInputs'
437+ (StrictSeq. fromList outputs)
438+ SNothing
439+ (Coin fees)
440+ mempty
441+ mempty -- TODO[sgillespie]: minted?
442+ (Withdrawals mempty )
443+ (Coin 0 )
444444 where
445445 mkOuts (outIx, val) = do
446446 addr <- resolveAddress outIx state'
447- pure $
448- BabbageTxOut
447+ pure
448+ $ BabbageTxOut
449449 addr
450450 val
451451 (DatumHash $ hashData @ StandardConway plutusDataList)
@@ -468,19 +468,19 @@ mkDepositTxPools inputIndex deposit state' = do
468468 NoDatum
469469 SNothing
470470
471- pure $
472- mkSimpleTx True $
473- consTxBody
474- input
475- mempty
476- mempty
477- (StrictSeq. fromList [change])
478- SNothing
479- (Coin 0 )
480- mempty
481- (allPoolStakeCert' state')
482- (Withdrawals mempty )
483- (Coin 0 )
471+ pure
472+ $ mkSimpleTx True
473+ $ consTxBody
474+ input
475+ mempty
476+ mempty
477+ (StrictSeq. fromList [change])
478+ SNothing
479+ (Coin 0 )
480+ mempty
481+ (allPoolStakeCert' state')
482+ (Withdrawals mempty )
483+ (Coin 0 )
484484
485485mkRegisterDRepTx ::
486486 Credential 'DRepRole StandardCrypto ->
@@ -663,8 +663,8 @@ mkFullTx n m state' = do
663663 refInputPairs <- fmap fst <$> mapM (`resolveUTxOIndex` state') refInputs
664664 collateralInput <- Set. singleton . fst . fst <$> resolveUTxOIndex collateralInputs state'
665665
666- pure $
667- AlonzoTx
666+ pure
667+ $ AlonzoTx
668668 { body =
669669 txBody
670670 (mkInputs inputPairs)
@@ -748,8 +748,8 @@ mkFullTx n m state' = do
748748 , ConwayTxCertPool $ Core. RegPool poolParams1
749749 , ConwayTxCertPool $ Core. RetirePool (Prelude. head unregisteredPools) (EpochNo 0 )
750750 , ConwayTxCertDeleg $ ConwayUnRegCert (unregisteredStakeCredentials !! 2 ) SNothing
751- , ConwayTxCertDeleg $
752- ConwayDelegCert
751+ , ConwayTxCertDeleg
752+ $ ConwayDelegCert
753753 (unregisteredStakeCredentials !! 1 )
754754 (DelegStake $ unregisteredPools !! 2 )
755755 ]
@@ -766,8 +766,8 @@ mkFullTx n m state' = do
766766
767767 -- Withdrawals
768768 withdrawals =
769- Withdrawals $
770- Map. fromList
769+ Withdrawals
770+ $ Map. fromList
771771 [ (RewardAccount Testnet (unregisteredStakeCredentials !! 1 ), Coin 100 )
772772 , (RewardAccount Testnet (unregisteredStakeCredentials !! 1 ), Coin 100 )
773773 ]
@@ -899,17 +899,17 @@ mkUnlockScriptTx' inputIndex colInputIndex outputIndex refInput colOut succeeds
899899 NoDatum
900900 SNothing
901901
902- pure $
903- mkScriptTx succeeds (mkScriptInps inputPairs) $
904- consPaymentTxBody
905- inputs
906- colInputs
907- refInputs
908- (StrictSeq. singleton output)
909- (maybeToStrictMaybe colOut)
910- (Coin fees)
911- mempty
912- (Coin 0 )
902+ pure
903+ $ mkScriptTx succeeds (mkScriptInps inputPairs)
904+ $ consPaymentTxBody
905+ inputs
906+ colInputs
907+ refInputs
908+ (StrictSeq. singleton output)
909+ (maybeToStrictMaybe colOut)
910+ (Coin fees)
911+ mempty
912+ (Coin 0 )
913913
914914allPoolStakeCert' :: ConwayLedgerState -> [ConwayTxCert StandardConway ]
915915allPoolStakeCert' st = map (mkRegTxCert SNothing ) (getCreds st)
0 commit comments