-
Notifications
You must be signed in to change notification settings - Fork 375
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
Support governance proposals/hotfixes in contractkit #1570
Conversation
c7f18cf
to
2e823a9
Compare
744bfa5
to
9051b02
Compare
} | ||
|
||
type ProposalTxParams = Pick<ProposalTransaction, 'to' | 'value'> | ||
export class ProposalBuilder { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that these two technically do two different things, but what do you think about merging ProposalUtility and ProposalBuilder?
uint256 tally = 0; | ||
uint256 n = numberValidatorsInCurrentSet(); | ||
for (uint256 idx = 0; idx < n; idx++) { | ||
address validator = validatorAddressFromCurrentSet(idx); | ||
if (hotfixes[hash].whitelisted[validator]) { | ||
if (isHotfixWhitelistedBy(hash, validator)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be off topic and I don't fully remember, but I believe the validator set contains the addresses of the validating keys, but is that the keys we expect validators to whitelist with? cc @asaj
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix in a followup PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened #1832
dafede4
to
f0d5274
Compare
…des/contract-upgrades
f0d5274
to
6f3c771
Compare
Closing for merge of #2139 |
Description
Adds interfaces to
src/wrappers/Governance
for interacting with proposals/hotfixesAdds
src/governance/proposals
for constructing proposal/hotfix inputsTested
Added
src/wrappers/Governance.test
to test e2e proposal functionalityHotfix tests disabled until #1737 is fixed
Other changes
Adds
timeTravel
totest-utils/test-ganache
Updates, simplifies, and dedupes type converters in
src/wrappers/BaseWrapper
Migrates util functionality to
/packages/utils/src/address
Adds positional
args
tosrc/explorer/block-explorer/CallDetails
interface