-
Notifications
You must be signed in to change notification settings - Fork 0
Includes smart contracts, libraries, scripts and tests required by automation registry #5
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
base: feature/blockmeta
Are you sure you want to change the base?
Includes smart contracts, libraries, scripts and tests required by automation registry #5
Conversation
aregng
left a comment
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.
First round of comments.
| /// Otherwise suspention is postponed until the end of the transition state. | ||
| /// Nothing will be done if automation cycle was already suspended, i.e. in READY state. | ||
| /// If native automation feature is enabled and automation lifecycle has been in READY state, then lifecycle is restarted. | ||
| function onNewCycle() public { |
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.
On Move Automation side as chain feature flags where applied from epoch to epoch, the feature suspension was done in the expected natural way by implementing and calling on_new_epoch function during chain reconfiguration which was causing epoch-change as well.
With Evm Automation we do not have this option available. So I think feature total suspension should be rather immediate action run by governance.
In that case this function should be updated to be guarded by onlyOwner and also can be named as toggleAutomationFeature(bool enable)
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.
What would be the use of bool enable argument? We already have functions to enable/disable automation. How this function would be different?
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.
What is the main reason of having controller and registry separate.
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.
Ethereum contracts have size limit of 24KB. The idea was to avoid exceeding the size limit by bifurcating the contracts.
…e state -created bash script for deployment and interacting to registry contracts
0bcdd7d to
11d5782
Compare
variable name fixes
-added priority and task type in parameters -updated test cases
This PR includes smart contracts, libraries, scripts and tests required by automation registry related to Entropy-Foundation/smr-moonshot#2523