-
Notifications
You must be signed in to change notification settings - Fork 241
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
Problem: no permissions system in cronos #795
Problem: no permissions system in cronos #795
Conversation
Codecov Report
@@ Coverage Diff @@
## main #795 +/- ##
==========================================
- Coverage 36.76% 36.47% -0.30%
==========================================
Files 55 56 +1
Lines 3979 4058 +79
==========================================
+ Hits 1463 1480 +17
- Misses 2345 2407 +62
Partials 171 171
|
7ea5838
to
2073dad
Compare
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 is quite a big change -- could there first be a PR that just updates x/cronos's https://github.com/crypto-org-chain/cronos/tree/main/x/cronos/spec , so it's clearer what this is trying to do / what problem this is trying to solve? (I assume the spec won't be up to date if this is added?)
yes, you are totally right. I have created a PR to update the spec there |
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.
a few nits for considerations. Should the cronos module and/or protos be bumped to v2?
bdb04dd
to
0729b81
Compare
677b98e
to
cf858d2
Compare
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.
proto-check-breaking is red, you might try buf mod update
50d474f
to
dc2ea02
Compare
d8e8a8a
to
3b12c18
Compare
3b12c18
to
09c55ee
Compare
mmm seems that golangci-lint is failing after the change 7f12ef1#diff-107e910e9f2ebfb9a741fa10b2aa7100cc1fc4f5f3aca2dfe78b905cbd73c0d2 any clue @yihuang ? |
f49f011
to
15fa8e3
Compare
strange, I can run locally though, there are some errors about sdkerrors deprecation. |
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 not the ante handler return error instead of panic?
do we still need the CronosAdmin in parameters?
CronosAdmin is still needed for the sake of decentralisation. It is defined by governance and only the CronosAdmin can add/delete/update permissions |
oh, i thought the set permissios stuff is supposed to be controlled by gov |
its controlled by the new MsgUpdatePermissions that only admin can use |
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
add the abilities to define admins that has priviledge to execute some admin functions
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)