Skip to content

Commit 86bba7b

Browse files
committed
fix(core)!: typo commiteeNoConfidence committeeNoConfidence
1 parent 8226fd9 commit 86bba7b

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ type BabbageProtocolParameters = Omit<AlonzoProtocolParams, 'coinsPerUtxoWord' |
110110
export interface PoolVotingThresholds {
111111
motionNoConfidence: Fraction;
112112
committeeNormal: Fraction;
113-
commiteeNoConfidence: Fraction;
113+
committeeNoConfidence: Fraction;
114114
hardForkInitiation: Fraction;
115115
securityRelevantParamVotingThreshold: Fraction;
116116
}

packages/core/src/Serialization/Update/DrepVotingThresholds.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class DrepVotingThresholds {
168168
*/
169169
toCore(): Cardano.DelegateRepresentativeThresholds {
170170
return {
171-
commiteeNoConfidence: this.#committeeNoConfidence.toCore(),
171+
committeeNoConfidence: this.#committeeNoConfidence.toCore(),
172172
committeeNormal: this.#committeeNormal.toCore(),
173173
hardForkInitiation: this.#hardForkInitiation.toCore(),
174174
motionNoConfidence: this.#motionNoConfidence.toCore(),
@@ -190,7 +190,7 @@ export class DrepVotingThresholds {
190190
return new DrepVotingThresholds(
191191
UnitInterval.fromCore(core.motionNoConfidence),
192192
UnitInterval.fromCore(core.committeeNormal),
193-
UnitInterval.fromCore(core.commiteeNoConfidence),
193+
UnitInterval.fromCore(core.committeeNoConfidence),
194194
UnitInterval.fromCore(core.updateConstitution),
195195
UnitInterval.fromCore(core.hardForkInitiation),
196196
UnitInterval.fromCore(core.ppNetworkGroup),

packages/core/src/Serialization/Update/PoolVotingThresholds.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class PoolVotingThresholds {
120120
*/
121121
toCore(): Cardano.PoolVotingThresholds {
122122
return {
123-
commiteeNoConfidence: this.#committeeNoConfidence.toCore(),
123+
committeeNoConfidence: this.#committeeNoConfidence.toCore(),
124124
committeeNormal: this.#committeeNormal.toCore(),
125125
hardForkInitiation: this.#hardForkInitiation.toCore(),
126126
motionNoConfidence: this.#motionNoConfidence.toCore(),
@@ -137,7 +137,7 @@ export class PoolVotingThresholds {
137137
return new PoolVotingThresholds(
138138
UnitInterval.fromCore(core.motionNoConfidence),
139139
UnitInterval.fromCore(core.committeeNormal),
140-
UnitInterval.fromCore(core.commiteeNoConfidence),
140+
UnitInterval.fromCore(core.committeeNoConfidence),
141141
UnitInterval.fromCore(core.hardForkInitiation),
142142
UnitInterval.fromCore(core.securityRelevantParamVotingThreshold)
143143
);

packages/core/test/Serialization/TransactionBody/ProposalProcedure/ParameterChangeAction.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const core = {
4949
dRepDeposit: 2000,
5050
dRepInactivityPeriod: EpochNo(5000),
5151
dRepVotingThresholds: {
52-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
52+
committeeNoConfidence: { denominator: 2, numerator: 2 },
5353
committeeNormal: { denominator: 1, numerator: 1 },
5454
hardForkInitiation: { denominator: 4, numerator: 4 },
5555
motionNoConfidence: { denominator: 0, numerator: 0 },
@@ -81,7 +81,7 @@ const core = {
8181
poolInfluence: '0.5',
8282
poolRetirementEpochBound: 800,
8383
poolVotingThresholds: {
84-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
84+
committeeNoConfidence: { denominator: 2, numerator: 2 },
8585
committeeNormal: { denominator: 1, numerator: 1 },
8686
hardForkInitiation: { denominator: 3, numerator: 3 },
8787
motionNoConfidence: { denominator: 0, numerator: 0 },

packages/core/test/Serialization/Update/DrepVotingThresholds.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const cbor = HexBlob(
99
);
1010

1111
const core = {
12-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
12+
committeeNoConfidence: { denominator: 2, numerator: 2 },
1313
committeeNormal: { denominator: 1, numerator: 1 },
1414
hardForkInitiation: { denominator: 4, numerator: 4 },
1515
motionNoConfidence: { denominator: 0, numerator: 0 },
@@ -25,7 +25,7 @@ describe('DrepVotingThresholds', () => {
2525
it('can decode DrepVotingThresholds from CBOR', () => {
2626
const thresholds = DrepVotingThresholds.fromCbor(cbor);
2727

28-
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.commiteeNoConfidence);
28+
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.committeeNoConfidence);
2929
expect(thresholds.committeeNormal().toCore()).toEqual(core.committeeNormal);
3030
expect(thresholds.hardForkInitiation().toCore()).toEqual(core.hardForkInitiation);
3131
expect(thresholds.motionNoConfidence().toCore()).toEqual(core.motionNoConfidence);
@@ -40,7 +40,7 @@ describe('DrepVotingThresholds', () => {
4040
it('can decode DrepVotingThresholds from Core', () => {
4141
const thresholds = DrepVotingThresholds.fromCore(core);
4242

43-
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.commiteeNoConfidence);
43+
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.committeeNoConfidence);
4444
expect(thresholds.committeeNormal().toCore()).toEqual(core.committeeNormal);
4545
expect(thresholds.hardForkInitiation().toCore()).toEqual(core.hardForkInitiation);
4646
expect(thresholds.motionNoConfidence().toCore()).toEqual(core.motionNoConfidence);

packages/core/test/Serialization/Update/PoolVotingThresholds.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { PoolVotingThresholds } from '../../../src/Serialization';
88
const cbor = HexBlob('85d81e820000d81e820101d81e820202d81e820303d81e820101');
99

1010
const core: Cardano.PoolVotingThresholds = {
11-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
11+
committeeNoConfidence: { denominator: 2, numerator: 2 },
1212
committeeNormal: { denominator: 1, numerator: 1 },
1313
hardForkInitiation: { denominator: 3, numerator: 3 },
1414
motionNoConfidence: { denominator: 0, numerator: 0 },
@@ -19,7 +19,7 @@ describe('PoolVotingThresholds', () => {
1919
it('can decode PoolVotingThresholds from CBOR', () => {
2020
const thresholds = PoolVotingThresholds.fromCbor(cbor);
2121

22-
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.commiteeNoConfidence);
22+
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.committeeNoConfidence);
2323
expect(thresholds.committeeNormal().toCore()).toEqual(core.committeeNormal);
2424
expect(thresholds.hardForkInitiation().toCore()).toEqual(core.hardForkInitiation);
2525
expect(thresholds.motionNoConfidence().toCore()).toEqual(core.motionNoConfidence);
@@ -31,7 +31,7 @@ describe('PoolVotingThresholds', () => {
3131
it('can decode PoolVotingThresholds from Core', () => {
3232
const thresholds = PoolVotingThresholds.fromCore(core);
3333

34-
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.commiteeNoConfidence);
34+
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.committeeNoConfidence);
3535
expect(thresholds.committeeNormal().toCore()).toEqual(core.committeeNormal);
3636
expect(thresholds.hardForkInitiation().toCore()).toEqual(core.hardForkInitiation);
3737
expect(thresholds.motionNoConfidence().toCore()).toEqual(core.motionNoConfidence);

packages/core/test/Serialization/Update/ProtocolParamUpdate.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const conwayCore: Cardano.ProtocolParametersUpdate = {
7979
dRepDeposit: 2000,
8080
dRepInactivityPeriod: EpochNo(5000),
8181
dRepVotingThresholds: {
82-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
82+
committeeNoConfidence: { denominator: 2, numerator: 2 },
8383
committeeNormal: { denominator: 1, numerator: 1 },
8484
hardForkInitiation: { denominator: 4, numerator: 4 },
8585
motionNoConfidence: { denominator: 0, numerator: 0 },
@@ -112,7 +112,7 @@ const conwayCore: Cardano.ProtocolParametersUpdate = {
112112
poolInfluence: '0.5',
113113
poolRetirementEpochBound: 800,
114114
poolVotingThresholds: {
115-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
115+
committeeNoConfidence: { denominator: 2, numerator: 2 },
116116
committeeNormal: { denominator: 1, numerator: 1 },
117117
hardForkInitiation: { denominator: 3, numerator: 3 },
118118
motionNoConfidence: { denominator: 0, numerator: 0 },
@@ -214,7 +214,7 @@ describe('ProtocolParamUpdate', () => {
214214
expect(proposedParams.drepDeposit()).toEqual(2000);
215215
expect(proposedParams.drepInactivityPeriod()).toEqual(5000);
216216
expect(proposedParams.drepVotingThresholds()?.toCore()).toEqual({
217-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
217+
committeeNoConfidence: { denominator: 2, numerator: 2 },
218218
committeeNormal: { denominator: 1, numerator: 1 },
219219
hardForkInitiation: { denominator: 4, numerator: 4 },
220220
motionNoConfidence: { denominator: 0, numerator: 0 },
@@ -226,7 +226,7 @@ describe('ProtocolParamUpdate', () => {
226226
updateConstitution: { denominator: 3, numerator: 3 }
227227
});
228228
expect(proposedParams.poolVotingThresholds()?.toCore()).toEqual({
229-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
229+
committeeNoConfidence: { denominator: 2, numerator: 2 },
230230
committeeNormal: { denominator: 1, numerator: 1 },
231231
hardForkInitiation: { denominator: 3, numerator: 3 },
232232
motionNoConfidence: { denominator: 0, numerator: 0 },

0 commit comments

Comments
 (0)