From 9947f292cb138db1b3c0068ad633a523cd1a32cf Mon Sep 17 00:00:00 2001 From: Hai Nguyen Quang Date: Thu, 24 Feb 2022 19:05:16 +0700 Subject: [PATCH] Ledger Orphans: derive ToSchema for DiffMilliSeconds (#326) --- plutus-ledger/src/Ledger/Orphans.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plutus-ledger/src/Ledger/Orphans.hs b/plutus-ledger/src/Ledger/Orphans.hs index 823f67811b..9a27ef0f2d 100644 --- a/plutus-ledger/src/Ledger/Orphans.hs +++ b/plutus-ledger/src/Ledger/Orphans.hs @@ -38,6 +38,7 @@ import Plutus.V1.Ledger.Bytes (bytes) import Plutus.V1.Ledger.Crypto (PrivateKey (PrivateKey, getPrivateKey), PubKey (PubKey), Signature (Signature)) import Plutus.V1.Ledger.Scripts (ScriptHash (..)) import Plutus.V1.Ledger.Slot (Slot (Slot)) +import Plutus.V1.Ledger.Time (DiffMilliSeconds (DiffMilliSeconds)) import Plutus.V1.Ledger.Tx (RedeemerPtr, ScriptTag, Tx, TxIn, TxInType) import Plutus.V1.Ledger.Value (AssetClass (AssetClass)) import PlutusCore (Kind, Some, Term, Type, ValueOf, Version) @@ -156,6 +157,7 @@ deriving newtype instance OpenApi.ToSchema LedgerBytes deriving newtype instance OpenApi.ToSchema ValidatorHash deriving newtype instance OpenApi.ToSchema Signature deriving newtype instance OpenApi.ToSchema POSIXTime +deriving newtype instance OpenApi.ToSchema DiffMilliSeconds deriving newtype instance OpenApi.ToSchema BuiltinData deriving newtype instance OpenApi.ToSchema AssetClass deriving instance OpenApi.ToSchema a => OpenApi.ToSchema (Extended a)