-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: common checks #14
Conversation
operate/cli.py
Outdated
|
||
# type: ignore |
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?
operate/services/service.py
Outdated
chain_id: str = "100", | ||
chain_id: str = "100", # pylint: disable=unused-argument |
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 disable and not remove instead?
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.
removed in next push
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.
Hmm I still cannot see where the _chain_id
is used in the method.
operate/services/service.py
Outdated
|
||
# type: ignore |
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 ignore the whole file?
operate/services/protocol.py
Outdated
# type: ignore | ||
"""This module implements the onchain manager.""" |
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 ignore the whole file?
@@ -650,7 +656,7 @@ async def _deploy_service_onchain(request: Request) -> JSONResponse: | |||
operate.service_manager().deploy_service_onchain( | |||
hash=request.path_params["service"] | |||
) | |||
operate.service_manager().stake_service_on_chain( | |||
operate.service_manager().stake_service_on_chain( # pylint: disable=no-value-for-parameter |
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.
The definition seems to require more args:
optimus-quickstart/operate/services/manage.py
Line 888 in bec0de5
self, hash: str, chain_id: int, staking_program_id: str |
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.
the endpoint not used yet and the function in not implemented
@@ -17,6 +17,7 @@ | |||
# limitations under the License. | |||
# | |||
# ------------------------------------------------------------------------------ | |||
# type: ignore |
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.
Same question here.
This has code cleanup and changes for common checks