@@ -57,7 +57,7 @@ import qualified Codec.CBOR.Decoding as D
5757import qualified Codec.CBOR.Encoding as E
5858import Data.Map (Map )
5959import Data.Text (Text )
60- import Data.Word (Word8 )
60+ import Data.Word (Word64 , Word8 )
6161import Lens.Micro
6262
6363type instance NamespaceEra " blocks/v0" = ConwayEra
@@ -245,24 +245,28 @@ instance KnownNamespace "gov/proposals/v0" where
245245 type NamespaceEntry " gov/proposals/v0" = GovProposalOut CanonicalGovActionState
246246
247247fromGovActionState ::
248- GovActionState ConwayEra -> (GovProposalIn , GovProposalOut CanonicalGovActionState )
249- fromGovActionState GovActionState {.. } =
248+ Word64 -> GovActionState ConwayEra -> (GovProposalIn , GovProposalOut CanonicalGovActionState )
249+ fromGovActionState n GovActionState {.. } =
250250 ( mkGovProposalIn gasId
251- , GovProposalOut $
252- CanonicalGovActionState
253- { gasProposalProcedure = mkOnChain @ ConwayEra gasProposalProcedure
254- , ..
255- }
251+ , GovProposalOut
252+ ( n
253+ , CanonicalGovActionState
254+ { gasProposalProcedure = mkOnChain @ ConwayEra gasProposalProcedure
255+ , ..
256+ }
257+ )
256258 )
257259
258260toGovActionState ::
259- (GovProposalIn , GovProposalOut CanonicalGovActionState ) -> GovActionState ConwayEra
260- toGovActionState (govIn, GovProposalOut CanonicalGovActionState {.. }) =
261- GovActionState
262- { gasProposalProcedure = getValue gasProposalProcedure
263- , gasId = fromGovProposalIn govIn
264- , ..
265- }
261+ (GovProposalIn , GovProposalOut CanonicalGovActionState ) -> (Word64 , GovActionState ConwayEra )
262+ toGovActionState (govIn, GovProposalOut (n, CanonicalGovActionState {.. })) =
263+ ( n
264+ , GovActionState
265+ { gasProposalProcedure = getValue gasProposalProcedure
266+ , gasId = fromGovProposalIn govIn
267+ , ..
268+ }
269+ )
266270
267271mkGovProposalIn :: GovActionId -> GovProposalIn
268272mkGovProposalIn GovActionId {gaidGovActionIx = GovActionIx idx, gaidTxId} =
0 commit comments