Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename PParams #216

Merged
merged 3 commits into from
Sep 26, 2023
Merged

Rename PParams #216

merged 3 commits into from
Sep 26, 2023

Conversation

WhatisRT
Copy link
Collaborator

Description

Renames the PParams to be in line with the CIP & adds a check that new CC members have their term below the maximum.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • Code is formatted according to CONTRIBUTING.md
  • Self-reviewed the diff

Also adds a check to enactment that all CC members have their term
below the max term.
@WhatisRT WhatisRT force-pushed the andre/rename-pparams branch from 83d01b9 to 5279021 Compare September 19, 2023 13:48
@WhatisRT
Copy link
Collaborator Author

I've added a tiny commit that also closes #219

@WhatisRT WhatisRT linked an issue Sep 19, 2023 that may be closed by this pull request
Copy link
Contributor

@williamdemeo williamdemeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one minor (whitespace/alignment) change requested. Otherwise, just wondering why we use Decidable²⇒Dec instead of just applying Decidable. Maybe you could comment on that...?

@@ -72,6 +73,9 @@ record EpochStructure : Set₁ where
addEpoch : HasAdd Epoch
addEpoch = record { _+_ = _+ᵉ'_ }

Dec-≤ᵉ : ∀ {n m} → Dec (n ≤ᵉ m)
Dec-≤ᵉ = Decidable²⇒Dec _≤ᵉ?_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like this should have been part of my type classes PR, but okay...

Also, what's the point of Decidable²⇒Dec? Why don't we use Decidable directly?

    Dec-≤ᵉ :  {n m}  Dec (n ≤ᵉ m)
    Dec-≤ᵉ {n}{m} = n ≤ᵉ? m

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but your PR is not even out of WIP yet, and I needed this now so that it can be included in the 0.9 release.

I guess Dec-≤ᵉ could have been implemented directly, but this highlights a general pattern that we could use in the future.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll "unblock" it now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I didn't realize you were waiting for me to approve the change.

src/Ledger/Foreign/HSLedger.agda Outdated Show resolved Hide resolved
@WhatisRT WhatisRT force-pushed the andre/rename-pparams branch from 724a15f to d93d6fb Compare September 25, 2023 13:41
@WhatisRT WhatisRT enabled auto-merge (rebase) September 25, 2023 13:48
@WhatisRT
Copy link
Collaborator Author

@williamdemeo I've included your suggestion, could you unblock this PR?

@WhatisRT WhatisRT merged commit aded9f3 into master Sep 26, 2023
@WhatisRT WhatisRT deleted the andre/rename-pparams branch September 26, 2023 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NewCommittee restrictions
3 participants