@@ -206,6 +206,55 @@ func (b *ConwayTransactionBody) Donation() uint64 {
206
206
return b .TxDonation
207
207
}
208
208
209
+ type ConwayProtocolParameters struct {
210
+ BabbageProtocolParameters
211
+ PoolVotingThresholds PoolVotingThresholds
212
+ DRepVotingThresholds DRepVotingThresholds
213
+ MinCommitteeSize uint
214
+ CommitteeTermLimit uint64
215
+ GovActionValidityPeriod uint64
216
+ GovActionDeposit uint64
217
+ DRepDeposit uint64
218
+ DRepInactivityPeriod uint64
219
+ MinFeeRefScriptCostPerByte * cbor.Rat
220
+ }
221
+
222
+ type ConwayProtocolParameterUpdate struct {
223
+ BabbageProtocolParameterUpdate
224
+ PoolVotingThresholds PoolVotingThresholds `cbor:"25,keyasint"`
225
+ DRepVotingThresholds DRepVotingThresholds `cbor:"26,keyasint"`
226
+ MinCommitteeSize uint `cbor:"27,keyasint"`
227
+ CommitteeTermLimit uint64 `cbor:"28,keyasint"`
228
+ GovActionValidityPeriod uint64 `cbor:"29,keyasint"`
229
+ GovActionDeposit uint64 `cbor:"30,keyasint"`
230
+ DRepDeposit uint64 `cbor:"31,keyasint"`
231
+ DRepInactivityPeriod uint64 `cbor:"32,keyasint"`
232
+ MinFeeRefScriptCostPerByte * cbor.Rat `cbor:"33,keyasint"`
233
+ }
234
+
235
+ type PoolVotingThresholds struct {
236
+ cbor.StructAsArray
237
+ MotionNoConfidence cbor.Rat
238
+ CommitteeNormal cbor.Rat
239
+ CommitteeNoConfidence cbor.Rat
240
+ HardForkInitiation cbor.Rat
241
+ SecurityRelevantParameterVotingThreshold cbor.Rat
242
+ }
243
+
244
+ type DRepVotingThresholds struct {
245
+ cbor.StructAsArray
246
+ MotionNoConfidence cbor.Rat
247
+ CommitteeNormal cbor.Rat
248
+ CommitteeNoConfidence cbor.Rat
249
+ UpdateConstitution cbor.Rat
250
+ HardForkInitiation cbor.Rat
251
+ PPNetworkGroup cbor.Rat
252
+ PPEconomicGroup cbor.Rat
253
+ PPTechnicalGroup cbor.Rat
254
+ PPGovGroup cbor.Rat
255
+ TreasureWithdrawal cbor.Rat
256
+ }
257
+
209
258
// VotingProcedures is a convenience type to avoid needing to duplicate the full type definition everywhere
210
259
type VotingProcedures map [* Voter ]map [* GovActionId ]VotingProcedure
211
260
@@ -316,7 +365,7 @@ type ParameterChangeGovAction struct {
316
365
cbor.StructAsArray
317
366
Type uint
318
367
ActionId * GovActionId
319
- ParamUpdate BabbageProtocolParameterUpdate // TODO: use Conway params update type
368
+ ParamUpdate ConwayProtocolParameterUpdate
320
369
PolicyHash []byte
321
370
}
322
371
0 commit comments