Skip to content

Commit

Permalink
fix(core)!: typo commiteeNoConfidence committeeNoConfidence
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceahasegan committed Apr 17, 2024
1 parent a3bee47 commit 550710f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/Cardano/types/ProtocolParameters.ts
Expand Up @@ -110,7 +110,7 @@ type BabbageProtocolParameters = Omit<AlonzoProtocolParams, 'coinsPerUtxoWord' |
export interface PoolVotingThresholds {
motionNoConfidence: Fraction;
committeeNormal: Fraction;
commiteeNoConfidence: Fraction;
committeeNoConfidence: Fraction;
hardForkInitiation: Fraction;
securityRelevantParamVotingThreshold: Fraction;
}
Expand Down
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
Expand Up @@ -120,7 +120,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 @@ -137,7 +137,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),
UnitInterval.fromCore(core.securityRelevantParamVotingThreshold)
);
Expand Down
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
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
Expand Up @@ -8,7 +8,7 @@ import { PoolVotingThresholds } from '../../../src/Serialization';
const cbor = HexBlob('85d81e820000d81e820101d81e820202d81e820303d81e820101');

const core: Cardano.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 All @@ -19,7 +19,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 @@ -31,7 +31,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
Expand Up @@ -79,7 +79,7 @@ const conwayCore: Cardano.ProtocolParametersUpdate = {
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 @@ -112,7 +112,7 @@ const conwayCore: Cardano.ProtocolParametersUpdate = {
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

0 comments on commit 550710f

Please sign in to comment.