From 41da2dd534f02e049ab40f07b7b7fe7a751b3e05 Mon Sep 17 00:00:00 2001 From: fanghr Date: Tue, 3 May 2022 18:51:30 +0800 Subject: [PATCH] run formatter and linter --- agora-test/Spec/Sample/Governor.hs | 8 ++++---- agora-test/Spec/Sample/Shared.hs | 14 +++++++------- agora/Agora/Governor/Scripts.hs | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/agora-test/Spec/Sample/Governor.hs b/agora-test/Spec/Sample/Governor.hs index 1dbbfba..34851ee 100644 --- a/agora-test/Spec/Sample/Governor.hs +++ b/agora-test/Spec/Sample/Governor.hs @@ -158,7 +158,7 @@ proposalCreation = --- ownInputRef :: TxOutRef - ownInputRef = (TxOutRef "4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865" 1) + ownInputRef = TxOutRef "4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865" 1 in ScriptContext { scriptContextTxInfo = TxInfo @@ -306,7 +306,7 @@ mintGAT = -- ownInputRef :: TxOutRef - ownInputRef = (TxOutRef "4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865" 1) + ownInputRef = TxOutRef "4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865" 1 in ScriptContext { scriptContextTxInfo = TxInfo @@ -421,7 +421,7 @@ mutateState = -- ownInputRef :: TxOutRef - ownInputRef = (TxOutRef "f867238a04597c99a0b9858746557d305025cca3b9f78ea14d5c88c4cfcf58ff" 1) + ownInputRef = TxOutRef "f867238a04597c99a0b9858746557d305025cca3b9f78ea14d5c88c4cfcf58ff" 1 in ScriptContext { scriptContextTxInfo = TxInfo @@ -451,4 +451,4 @@ mutateState = , txInfoId = "9a12a605086a9f866731869a42d0558036fc739c74fea3849aa41562c015aaf9" } , scriptContextPurpose = Spending ownInputRef - } \ No newline at end of file + } diff --git a/agora-test/Spec/Sample/Shared.hs b/agora-test/Spec/Sample/Shared.hs index 771299f..9375718 100644 --- a/agora-test/Spec/Sample/Shared.hs +++ b/agora-test/Spec/Sample/Shared.hs @@ -38,14 +38,17 @@ module Spec.Sample.Shared ( proposalValidatorAddress, -- ** Authority - authorityToken , + authorityToken, authorityTokenSymbol, ) where +import Agora.AuthorityToken import Agora.Governor ( Governor (Governor), ) import Agora.Governor.Scripts ( + authorityTokenFromGovernor, + authorityTokenSymbolFromGovernor, governorPolicy, governorSTAssetClassFromGovernor, governorValidator, @@ -56,9 +59,7 @@ import Agora.Governor.Scripts ( stakeFromGovernor, stakeSTAssetClassFromGovernor, stakeSTSymbolFromGovernor, - stakeValidatorHashFromGovernor, - authorityTokenFromGovernor, - authorityTokenSymbolFromGovernor, + stakeValidatorHashFromGovernor, ) import Agora.Proposal ( Proposal (..), @@ -84,7 +85,6 @@ import Plutus.V1.Ledger.Api ( import Plutus.V1.Ledger.Scripts (Validator, ValidatorHash) import Plutus.V1.Ledger.Value (AssetClass) import Plutus.V1.Ledger.Value qualified as Value -import Agora.AuthorityToken -------------------------------------------------------------------------------- @@ -170,5 +170,5 @@ withMinAda v = v <> minAda authorityToken :: AuthorityToken authorityToken = authorityTokenFromGovernor governor -authorityTokenSymbol :: CurrencySymbol -authorityTokenSymbol = authorityTokenSymbolFromGovernor governor \ No newline at end of file +authorityTokenSymbol :: CurrencySymbol +authorityTokenSymbol = authorityTokenSymbolFromGovernor governor diff --git a/agora/Agora/Governor/Scripts.hs b/agora/Agora/Governor/Scripts.hs index 0ed9a9e..63601dc 100644 --- a/agora/Agora/Governor/Scripts.hs +++ b/agora/Agora/Governor/Scripts.hs @@ -761,4 +761,4 @@ authorityTokenSymbolFromGovernor :: Governor -> CurrencySymbol authorityTokenSymbolFromGovernor gov = mintingPolicySymbol policy where policy = mkMintingPolicy $ authorityTokenPolicy params - params = authorityTokenFromGovernor gov \ No newline at end of file + params = authorityTokenFromGovernor gov