Skip to content
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(cli-tools): Add internal operator and sponsorship commands #2926

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

teogeb
Copy link
Contributor

@teogeb teogeb commented Dec 3, 2024

Added these internal commands:

  • sponsorship-sponsor
  • operator-deletage
  • operator-undeletage
  • operator-stake
  • operator-unstake

Also refactored some operatorContractUtils method signatures: user authentication is passed as Signer instead of Wallet, so that client.getSigner() can be used as an argument.

TODO

  • Test manually

Future improvements

  • These commands could be normal CLI tools commands, i.e. just not for the internal use. That would be possible if we add support for DataV2 token to the SDK. Currently the only token contract available for operatorContractUtils is the test token contract. (Note that most likely there is no need to have both the DataV2 and TestToken, as DataV2 can be used also for tests.)

@github-actions github-actions bot added cli-tools Related to CLI Tools Package sdk labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli-tools Related to CLI Tools Package sdk
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant