Skip to content

Commit 780745b

Browse files
committed
feat(core): align conway new protocol params
1 parent 2fdacf1 commit 780745b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/core/src/Cardano/types/ProtocolParameters.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@ export interface PoolVotingThresholds {
112112
committeeNormal: Fraction;
113113
commiteeNoConfidence: Fraction;
114114
hardForkInitiation: Fraction;
115+
securityRelevantParamVotingThreshold: Fraction;
115116
}
116117

117-
export interface DelegateRepresentativeThresholds extends PoolVotingThresholds {
118+
export interface DelegateRepresentativeThresholds
119+
extends Omit<PoolVotingThresholds, 'securityRelevantParamVotingThreshold'> {
118120
updateConstitution: Fraction;
119121
ppNetworkGroup: Fraction;
120122
ppEconomicGroup: Fraction;
@@ -127,19 +129,20 @@ type NewProtocolParamsInConway = {
127129
poolVotingThresholds: PoolVotingThresholds;
128130
dRepVotingThresholds: DelegateRepresentativeThresholds;
129131
minCommitteeSize: number;
130-
committeeTermLimit: number;
132+
committeeTermLimit: EpochNo;
131133
governanceActionValidityPeriod: EpochNo;
132134
governanceActionDeposit: number;
133135
dRepDeposit: number;
134136
dRepInactivityPeriod: EpochNo;
137+
minFeeRefScriptCostPerByte: string;
135138
};
136139

137140
type ConwayProtocolParameters = BabbageProtocolParameters & NewProtocolParamsInConway;
138141

139142
export type ProtocolParameters = ConwayProtocolParameters;
140143

141-
// Even tho extraEntropy was deprecated on babbage era, it is still present in the ProtocolParametersUpdate structure
142-
// since this structure is backward compatible with all eras.
144+
// Even tho extraEntropy was deprecated on babbage era, and protocolVersion was deprecated in conway era,
145+
// they are still present in the ProtocolParametersUpdate structure since this structure is backward compatible with all eras.
143146
export type ProtocolParametersUpdate = Partial<ProtocolParameters & Pick<AlonzoProtocolParams, 'extraEntropy'>>;
144147

145148
export type GenesisDelegateKeyHash = Crypto.Hash28ByteBase16;

0 commit comments

Comments
 (0)