Moved action specific predicates to actionWellFormed and fix a conformance failure#673
Moved action specific predicates to actionWellFormed and fix a conformance failure#673
Conversation
a716f3a to
7c35621
Compare
35e0909 to
10973d3
Compare
WhatisRT
left a comment
There was a problem hiding this comment.
Looks pretty good, but actionValid and actionWellFormed are now in hidden code blocks, i.e. this removes actual logic from the PDF. I think just making the two functions but not the decision procedures visible is good enough right now, but it probably needs to be improved later.
Also, I'm not so sure about the usage of ∙ in the new functions. It makes sense, but it's not consistent with how we write non-STS predicates elsewhere. Maybe remove them for now and we can open a discussion about that in a new issue?
5e773c0 to
ce34026
Compare
ce34026 to
90229ae
Compare
|
Sorry @Soupstraw I didn't see this earlier. I'll review it today! |
|
I've moved |
+ added some explanatory documentation + split figure involving types and functions used the GOV sts so they fit on the page + added `\clearpage` commands to make prose line up better with the figures they're explaining
williamdemeo
left a comment
There was a problem hiding this comment.
I just pushed my suggested changes directly to your branch since they merely reorganize and document the code a bit. Otherwise, looks really nice. Good work!
Description
This PR moves the action-specific predicates in
GOV-ProposetoactionWellFormedand adds a check that makes sure all the receiving staking credentials of aTreasuryWithdrawalare registered when the proposal is made.This probably requires some changes to the prose. It seemed like the prose about
actionWellFormedwas already outdated before these changes, because it only mentioned we check the parameter updates, but we also had some conditions about treasury withdrawals as well.I also added two other predicate checks to the GOV rule which are present in the implementation:
GOV-Propose: the return address of a new proposal must be a registered staking credentialGOV-Vote: the proposal being voted for must not be expiredChecklist
CHANGELOG.md