-
Notifications
You must be signed in to change notification settings - Fork 373
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: improve p/ownable API #2330
Conversation
Signed-off-by: moul <[email protected]>
Signed-off-by: moul <[email protected]>
@linhpn99, I've left several comments. Your implementation is not yet ready. You'll need to update your pull request based on these new additions. |
Signed-off-by: moul <[email protected]>
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 was on my mind for some time now - thanks for adding this.
I think we should also add event support for TransferOwnership
& DropOwnership
while we're at it.
This could be simply one event, OwnershipTransfer
, which would show the new owner, and in case of DropOwnership
, would emit an empty address for the new owner.
Signed-off-by: moul <[email protected]>
Added std.Emit. But I don't know how to test them from unit tests. |
This PR introduces the `r/gnoland/monit` realm, which can be used by an external tool to verify if everything is working well, including: - gnokey compatibility (and all the tx/amino/etc) - networking (rpc) - realm state persistency (counter should be higher than the previous value) In addition to being a good target for an external monitoring agent, the realm displays (`Render`) some information, including whether the agent appears to be missing. - [x] improve ownable (depends on #2330) - [x] p/demo/watchdog - [x] r/gnoland/monit - [ ] ~update contribs/autocounterd~ -> let's @gnolang/devops tackle this in another PR. -> #1443 --------- Signed-off-by: moul <[email protected]> Co-authored-by: Miloš Živković <[email protected]>
This PR introduces the `r/gnoland/monit` realm, which can be used by an external tool to verify if everything is working well, including: - gnokey compatibility (and all the tx/amino/etc) - networking (rpc) - realm state persistency (counter should be higher than the previous value) In addition to being a good target for an external monitoring agent, the realm displays (`Render`) some information, including whether the agent appears to be missing. - [x] improve ownable (depends on gnolang#2330) - [x] p/demo/watchdog - [x] r/gnoland/monit - [ ] ~update contribs/autocounterd~ -> let's @gnolang/devops tackle this in another PR. -> gnolang#1443 --------- Signed-off-by: moul <[email protected]> Co-authored-by: Miloš Živković <[email protected]>
Improve the
p/ownable
API based on my needs encountered recently.std.TestSetRealm
(cc @thehowl)Part of #2150