-
Notifications
You must be signed in to change notification settings - Fork 399
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
feat: refactor valopers to remove r/sys/validators
dependency
#3830
base: master
Are you sure you want to change the base?
Conversation
🛠 PR Checks Summary🔴 Pending initial approval by a review team member, or review from tech-staff Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):🟢 Maintainers must be able to edit this pull request (more info) ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
r/sys/validators
dependency
r/sys/validators
dependencyr/sys/validators
dependency
|
||
// MakeProposal creates a proposal to the GovDAO | ||
// for adding the given valoper to the validator set. | ||
func MakeProposal(strAddress string) { |
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.
Why strAddress string
and not just std.Address
?
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.
To be able to call this function from gnokey CLI directly, e.g.:
gnokey maketx call -pkgpath "gno.land/r/gnoland/valoper_dao_proposal" -func "MakeProposal" -gas-fee 1000000ugnot -gas-wanted 20000000 -broadcast -chainid "dev" -args "g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5" -remote "tcp://127.0.0.1:26657" test1
and so don't need to create a gno file to create a std.Address
object and run it with gnokey maketx run...
.
Do you think it isn't worth it?
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.
proposal.MakeProposal
calls simpledao.Propose
under the wood. This function requires us to send some coins to succeed.
So if func MakeProposal(strAddress string)
as its parameter as a string, we can call it directly with gnokey maketx call -send 100000000 ...
instead of having to do 2 steps:
- Deploy realm with
gnokey maketx addpkg ...
- Call it with
gnokey maketx call -send 100000000 ...
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
b07ae3c
to
87b5649
Compare
…link to r/demo/profile, and add questions for valopers. Signed-off-by: D4ryl00 <[email protected]>
Signed-off-by: D4ryl00 <[email protected]>
d4d9cbc
to
ab8ad02
Compare
fixes #3567
Process to be a validator:
Valoper
. You should fill out the question fields in the/r/gnoland/valopers.Valoper
structure./r/sys/validators/v2
).This is a script to help you to test the whole flow with the
test1
gnokey key.