Skip to content

Commit

Permalink
refactor!: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
iccicci committed Jun 19, 2024
1 parent 59afa9d commit d7cb0c9
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/Cardano/types/ProtocolParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ type BabbageProtocolParameters = Omit<AlonzoProtocolParams, 'coinsPerUtxoWord' |
export interface PoolVotingThresholds {
motionNoConfidence: Fraction;
committeeNormal: Fraction;
commiteeNoConfidence: Fraction;
committeeNoConfidence: Fraction;
hardForkInitiation: Fraction;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class DrepVotingThresholds {
*/
toCore(): Cardano.DelegateRepresentativeThresholds {
return {
commiteeNoConfidence: this.#committeeNoConfidence.toCore(),
committeeNoConfidence: this.#committeeNoConfidence.toCore(),
committeeNormal: this.#committeeNormal.toCore(),
hardForkInitiation: this.#hardForkInitiation.toCore(),
motionNoConfidence: this.#motionNoConfidence.toCore(),
Expand All @@ -190,7 +190,7 @@ export class DrepVotingThresholds {
return new DrepVotingThresholds(
UnitInterval.fromCore(core.motionNoConfidence),
UnitInterval.fromCore(core.committeeNormal),
UnitInterval.fromCore(core.commiteeNoConfidence),
UnitInterval.fromCore(core.committeeNoConfidence),
UnitInterval.fromCore(core.updateConstitution),
UnitInterval.fromCore(core.hardForkInitiation),
UnitInterval.fromCore(core.ppNetworkGroup),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class PoolVotingThresholds {
*/
toCore(): Cardano.PoolVotingThresholds {
return {
commiteeNoConfidence: this.#committeeNoConfidence.toCore(),
committeeNoConfidence: this.#committeeNoConfidence.toCore(),
committeeNormal: this.#committeeNormal.toCore(),
hardForkInitiation: this.#hardForkInitiation.toCore(),
motionNoConfidence: this.#motionNoConfidence.toCore()
Expand All @@ -129,7 +129,7 @@ export class PoolVotingThresholds {
return new PoolVotingThresholds(
UnitInterval.fromCore(core.motionNoConfidence),
UnitInterval.fromCore(core.committeeNormal),
UnitInterval.fromCore(core.commiteeNoConfidence),
UnitInterval.fromCore(core.committeeNoConfidence),
UnitInterval.fromCore(core.hardForkInitiation)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const core = {
dRepDeposit: 2000,
dRepInactivityPeriod: EpochNo(5000),
dRepVotingThresholds: {
commiteeNoConfidence: { denominator: 2, numerator: 2 },
committeeNoConfidence: { denominator: 2, numerator: 2 },
committeeNormal: { denominator: 1, numerator: 1 },
hardForkInitiation: { denominator: 4, numerator: 4 },
motionNoConfidence: { denominator: 0, numerator: 0 },
Expand Down Expand Up @@ -81,7 +81,7 @@ const core = {
poolInfluence: '0.5',
poolRetirementEpochBound: 800,
poolVotingThresholds: {
commiteeNoConfidence: { denominator: 2, numerator: 2 },
committeeNoConfidence: { denominator: 2, numerator: 2 },
committeeNormal: { denominator: 1, numerator: 1 },
hardForkInitiation: { denominator: 3, numerator: 3 },
motionNoConfidence: { denominator: 0, numerator: 0 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const cbor = HexBlob(
);

const core = {
commiteeNoConfidence: { denominator: 2, numerator: 2 },
committeeNoConfidence: { denominator: 2, numerator: 2 },
committeeNormal: { denominator: 1, numerator: 1 },
hardForkInitiation: { denominator: 4, numerator: 4 },
motionNoConfidence: { denominator: 0, numerator: 0 },
Expand All @@ -25,7 +25,7 @@ describe('DrepVotingThresholds', () => {
it('can decode DrepVotingThresholds from CBOR', () => {
const thresholds = DrepVotingThresholds.fromCbor(cbor);

expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.commiteeNoConfidence);
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.committeeNoConfidence);
expect(thresholds.committeeNormal().toCore()).toEqual(core.committeeNormal);
expect(thresholds.hardForkInitiation().toCore()).toEqual(core.hardForkInitiation);
expect(thresholds.motionNoConfidence().toCore()).toEqual(core.motionNoConfidence);
Expand All @@ -40,7 +40,7 @@ describe('DrepVotingThresholds', () => {
it('can decode DrepVotingThresholds from Core', () => {
const thresholds = DrepVotingThresholds.fromCore(core);

expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.commiteeNoConfidence);
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.committeeNoConfidence);
expect(thresholds.committeeNormal().toCore()).toEqual(core.committeeNormal);
expect(thresholds.hardForkInitiation().toCore()).toEqual(core.hardForkInitiation);
expect(thresholds.motionNoConfidence().toCore()).toEqual(core.motionNoConfidence);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { PoolVotingThresholds } from '../../../src/Serialization';
const cbor = HexBlob('84d81e820000d81e820101d81e820202d81e820303');

const core = {
commiteeNoConfidence: { denominator: 2, numerator: 2 },
committeeNoConfidence: { denominator: 2, numerator: 2 },
committeeNormal: { denominator: 1, numerator: 1 },
hardForkInitiation: { denominator: 3, numerator: 3 },
motionNoConfidence: { denominator: 0, numerator: 0 }
Expand All @@ -17,7 +17,7 @@ describe('PoolVotingThresholds', () => {
it('can decode PoolVotingThresholds from CBOR', () => {
const thresholds = PoolVotingThresholds.fromCbor(cbor);

expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.commiteeNoConfidence);
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.committeeNoConfidence);
expect(thresholds.committeeNormal().toCore()).toEqual(core.committeeNormal);
expect(thresholds.hardForkInitiation().toCore()).toEqual(core.hardForkInitiation);
expect(thresholds.motionNoConfidence().toCore()).toEqual(core.motionNoConfidence);
Expand All @@ -26,7 +26,7 @@ describe('PoolVotingThresholds', () => {
it('can decode PoolVotingThresholds from Core', () => {
const thresholds = PoolVotingThresholds.fromCore(core);

expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.commiteeNoConfidence);
expect(thresholds.committeeNoConfidence().toCore()).toEqual(core.committeeNoConfidence);
expect(thresholds.committeeNormal().toCore()).toEqual(core.committeeNormal);
expect(thresholds.hardForkInitiation().toCore()).toEqual(core.hardForkInitiation);
expect(thresholds.motionNoConfidence().toCore()).toEqual(core.motionNoConfidence);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const conwayCore = {
dRepDeposit: 2000,
dRepInactivityPeriod: EpochNo(5000),
dRepVotingThresholds: {
commiteeNoConfidence: { denominator: 2, numerator: 2 },
committeeNoConfidence: { denominator: 2, numerator: 2 },
committeeNormal: { denominator: 1, numerator: 1 },
hardForkInitiation: { denominator: 4, numerator: 4 },
motionNoConfidence: { denominator: 0, numerator: 0 },
Expand Down Expand Up @@ -110,7 +110,7 @@ const conwayCore = {
poolInfluence: '0.5',
poolRetirementEpochBound: 800,
poolVotingThresholds: {
commiteeNoConfidence: { denominator: 2, numerator: 2 },
committeeNoConfidence: { denominator: 2, numerator: 2 },
committeeNormal: { denominator: 1, numerator: 1 },
hardForkInitiation: { denominator: 3, numerator: 3 },
motionNoConfidence: { denominator: 0, numerator: 0 }
Expand Down Expand Up @@ -211,7 +211,7 @@ describe('ProtocolParamUpdate', () => {
expect(proposedParams.drepDeposit()).toEqual(2000);
expect(proposedParams.drepInactivityPeriod()).toEqual(5000);
expect(proposedParams.drepVotingThresholds()?.toCore()).toEqual({
commiteeNoConfidence: { denominator: 2, numerator: 2 },
committeeNoConfidence: { denominator: 2, numerator: 2 },
committeeNormal: { denominator: 1, numerator: 1 },
hardForkInitiation: { denominator: 4, numerator: 4 },
motionNoConfidence: { denominator: 0, numerator: 0 },
Expand All @@ -223,7 +223,7 @@ describe('ProtocolParamUpdate', () => {
updateConstitution: { denominator: 3, numerator: 3 }
});
expect(proposedParams.poolVotingThresholds()?.toCore()).toEqual({
commiteeNoConfidence: { denominator: 2, numerator: 2 },
committeeNoConfidence: { denominator: 2, numerator: 2 },
committeeNormal: { denominator: 1, numerator: 1 },
hardForkInitiation: { denominator: 3, numerator: 3 },
motionNoConfidence: { denominator: 0, numerator: 0 }
Expand Down

0 comments on commit d7cb0c9

Please sign in to comment.