@@ -95,15 +95,15 @@ import Lorentz hiding (div, now)
9595import Lorentz.Annotation ()
9696import Lorentz.Contracts.Spec.FA2Interface qualified as FA2
9797import Lorentz.Contracts.Spec.TZIP16Interface qualified as TZIP16
98- import Morley.AsRPC (HasRPCRepr (.. ), deriveRPCWithOptions , DeriveRPCOptions (.. ))
98+ import Morley.AsRPC (DeriveRPCOptions (.. ), HasRPCRepr (.. ), deriveRPCWithOptions , deriveRPC )
9999import Morley.Michelson.Typed.Annotation
100100import Morley.Michelson.Typed.Scope
101101 (HasNoBigMap , HasNoContract , HasNoNestedBigMaps , HasNoOp , HasNoTicket )
102102import Morley.Michelson.Typed.T (T (TUnit ))
103103import Morley.Michelson.Untyped.Annotation
104+ import Morley.Tezos.Address
104105import Morley.Util.Markdown
105106import Morley.Util.Named
106- import Morley.Tezos.Address
107107import Test.Cleveland.Instances ()
108108
109109-- | A data type to track and specify the different DAO variants in existence
@@ -147,8 +147,8 @@ instance HasAnnotation FA2.Parameter
147147frozenTokenId :: FA2. TokenId
148148frozenTokenId = FA2. TokenId0
149149
150- baseDaoAnnOptions :: AnnOptions
151- baseDaoAnnOptions = defaultAnnOptions { fieldAnnModifier = dropPrefixThen toSnake }
150+ baseDaoAnnOptions :: Maybe AnnOptions
151+ baseDaoAnnOptions = Just def { fieldAnnModifier = toSnake. dropPrefix }
152152
153153------------------------------------------------------------------------
154154-- Proposals
@@ -316,7 +316,7 @@ instance HasAnnotation Delegate where
316316instance Buildable Delegate where
317317 build = genericF
318318
319- type Delegates' big_map = big_map Delegate ()
319+ type Delegates' ( big_map :: Type -> Type -> Type ) = big_map Delegate ()
320320
321321type Delegates = Delegates' BigMap
322322
@@ -658,8 +658,7 @@ instance Buildable ProposalDoublyLinkedList where
658658instance HasAnnotation ProposalDoublyLinkedList where
659659 annOptions = baseDaoAnnOptions
660660
661- -- TODO [morley#922]: remove droRecursive=False here
662- deriveRPCWithOptions " ProposalDoublyLinkedList" def{droRecursive= False }
661+ deriveRPC " ProposalDoublyLinkedList"
663662
664663instance HasRPCRepr (DynamicRec s ) where
665664type AsRPC (DynamicRec s ) = DynamicRecView s
@@ -758,7 +757,6 @@ instance HasAnnotation ce => HasAnnotation (StorageSkeleton ce) where
758757 annOptions = baseDaoAnnOptions
759758deriving anyclass instance IsoValue ce => IsoValue (StorageSkeleton ce )
760759
761- -- TODO [morley#922]: remove droRecursive=False here
762760deriveRPCWithOptions " StorageSkeleton" def{droStrategy= ligoLayout, droRecursive= False }
763761type StorageRPC = StorageSkeletonRPC (VariantToExtra 'Base)
764762
0 commit comments