Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add more fields to AssetInfo type #68

Merged
merged 9 commits into from
Aug 19, 2024
Prev Previous commit
Next Next commit
feat: export AsAda, AsLovelace, AsBytes
sourabhxyz committed Aug 19, 2024
commit 2017bc1196243b7f0257edbce7933390df81699d
5 changes: 4 additions & 1 deletion src/Maestro/Types/V1/General.hs
Original file line number Diff line number Diff line change
@@ -11,6 +11,9 @@ module Maestro.Types.V1.General
, EraBoundTime (..)
, EpochSlotLength (..)
-- * Types for @/protocol-parameters@ endpoint
, AsAda (..)
, AsLovelace (..)
, AsBytes (..)
, ProtocolVersion (..)
, MemoryCpuWith (..)
, CostModel (..)
@@ -150,7 +153,7 @@ newtype AsBytes = AsBytes
-- | Represents lovelaces.
newtype AsAda = AsAda
{ asAdaAda :: AsLovelace
-- ^ See `Ada`.
-- ^ See `AsLovelace`.
}
deriving stock (Eq, Show, Generic)
deriving (FromJSON, ToJSON) via CustomJSON '[FieldLabelModifier '[StripPrefix "asAda", LowerFirst]] AsAda