Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Ledger Orphans: derive ToSchema for DiffMilliSeconds #326

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plutus-ledger/src/Ledger/Orphans.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down