Skip to content

Commit d7cb0c9

Browse files
committed
refactor!: fix typo
1 parent 59afa9d commit d7cb0c9

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

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

Lines changed: 1 addition & 1 deletion
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
}
116116

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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class PoolVotingThresholds {
113113
*/
114114
toCore(): Cardano.PoolVotingThresholds {
115115
return {
116-
commiteeNoConfidence: this.#committeeNoConfidence.toCore(),
116+
committeeNoConfidence: this.#committeeNoConfidence.toCore(),
117117
committeeNormal: this.#committeeNormal.toCore(),
118118
hardForkInitiation: this.#hardForkInitiation.toCore(),
119119
motionNoConfidence: this.#motionNoConfidence.toCore()
@@ -129,7 +129,7 @@ export class PoolVotingThresholds {
129129
return new PoolVotingThresholds(
130130
UnitInterval.fromCore(core.motionNoConfidence),
131131
UnitInterval.fromCore(core.committeeNormal),
132-
UnitInterval.fromCore(core.commiteeNoConfidence),
132+
UnitInterval.fromCore(core.committeeNoConfidence),
133133
UnitInterval.fromCore(core.hardForkInitiation)
134134
);
135135
}

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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { PoolVotingThresholds } from '../../../src/Serialization';
77
const cbor = HexBlob('84d81e820000d81e820101d81e820202d81e820303');
88

99
const core = {
10-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
10+
committeeNoConfidence: { denominator: 2, numerator: 2 },
1111
committeeNormal: { denominator: 1, numerator: 1 },
1212
hardForkInitiation: { denominator: 3, numerator: 3 },
1313
motionNoConfidence: { denominator: 0, numerator: 0 }
@@ -17,7 +17,7 @@ describe('PoolVotingThresholds', () => {
1717
it('can decode PoolVotingThresholds from CBOR', () => {
1818
const thresholds = PoolVotingThresholds.fromCbor(cbor);
1919

20-
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.commiteeNoConfidence);
20+
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.committeeNoConfidence);
2121
expect(thresholds.committeeNormal().toCore()).toEqual(core.committeeNormal);
2222
expect(thresholds.hardForkInitiation().toCore()).toEqual(core.hardForkInitiation);
2323
expect(thresholds.motionNoConfidence().toCore()).toEqual(core.motionNoConfidence);
@@ -26,7 +26,7 @@ describe('PoolVotingThresholds', () => {
2626
it('can decode PoolVotingThresholds from Core', () => {
2727
const thresholds = PoolVotingThresholds.fromCore(core);
2828

29-
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.commiteeNoConfidence);
29+
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.committeeNoConfidence);
3030
expect(thresholds.committeeNormal().toCore()).toEqual(core.committeeNormal);
3131
expect(thresholds.hardForkInitiation().toCore()).toEqual(core.hardForkInitiation);
3232
expect(thresholds.motionNoConfidence().toCore()).toEqual(core.motionNoConfidence);

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const conwayCore = {
7878
dRepDeposit: 2000,
7979
dRepInactivityPeriod: EpochNo(5000),
8080
dRepVotingThresholds: {
81-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
81+
committeeNoConfidence: { denominator: 2, numerator: 2 },
8282
committeeNormal: { denominator: 1, numerator: 1 },
8383
hardForkInitiation: { denominator: 4, numerator: 4 },
8484
motionNoConfidence: { denominator: 0, numerator: 0 },
@@ -110,7 +110,7 @@ const conwayCore = {
110110
poolInfluence: '0.5',
111111
poolRetirementEpochBound: 800,
112112
poolVotingThresholds: {
113-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
113+
committeeNoConfidence: { denominator: 2, numerator: 2 },
114114
committeeNormal: { denominator: 1, numerator: 1 },
115115
hardForkInitiation: { denominator: 3, numerator: 3 },
116116
motionNoConfidence: { denominator: 0, numerator: 0 }
@@ -211,7 +211,7 @@ describe('ProtocolParamUpdate', () => {
211211
expect(proposedParams.drepDeposit()).toEqual(2000);
212212
expect(proposedParams.drepInactivityPeriod()).toEqual(5000);
213213
expect(proposedParams.drepVotingThresholds()?.toCore()).toEqual({
214-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
214+
committeeNoConfidence: { denominator: 2, numerator: 2 },
215215
committeeNormal: { denominator: 1, numerator: 1 },
216216
hardForkInitiation: { denominator: 4, numerator: 4 },
217217
motionNoConfidence: { denominator: 0, numerator: 0 },
@@ -223,7 +223,7 @@ describe('ProtocolParamUpdate', () => {
223223
updateConstitution: { denominator: 3, numerator: 3 }
224224
});
225225
expect(proposedParams.poolVotingThresholds()?.toCore()).toEqual({
226-
commiteeNoConfidence: { denominator: 2, numerator: 2 },
226+
committeeNoConfidence: { denominator: 2, numerator: 2 },
227227
committeeNormal: { denominator: 1, numerator: 1 },
228228
hardForkInitiation: { denominator: 3, numerator: 3 },
229229
motionNoConfidence: { denominator: 0, numerator: 0 }

0 commit comments

Comments
 (0)