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

Hardhat task to add an operator to beta operators set for ecdsa #3302

Merged
merged 2 commits into from
Sep 26, 2022

Conversation

pdyraga
Copy link
Member

@pdyraga pdyraga commented Sep 23, 2022

Depends on #3301; Dependency update in package.json will be needed.

See #3297
See keep-network/sortition-pools#188

After adding chaosnet feature to the sortition pool, we need to add an operator to the beta operators set during the operator initialization.

@pdyraga pdyraga requested a review from a team September 23, 2022 14:36
After adding chaosnet feature to the sortition pool, we need to add an operator
to the beta operators set during the operator initialization.
tomaszslabon
tomaszslabon previously approved these changes Sep 23, 2022
Base automatically changed from chaosnet-tasks to main September 23, 2022 15:46
The new version contains definition of a hardhat task registering
operators as beta operators for chaosnet.
@pdyraga pdyraga marked this pull request as ready for review September 26, 2022 12:56
@pdyraga
Copy link
Member Author

pdyraga commented Sep 26, 2022

After the dependency update in 2934ac5 this is now ready @tomaszslabon:

❯ ./scripts/initialize.sh --stake-owner 0x3365d0ed0e526d3b1d8b417fc0fde5b1cef2f416

Initializing beacon...
Account 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416 balance is 0.0 T
Minting 1000000 T for 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416...
Account 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416 allowance for 0x4116596912D8cC50c19ed674540E7B742d0c2030 is 0.0 T
Approving 1000000 T for 0x4116596912D8cC50c19ed674540E7B742d0c2030...
Current stake for 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416 is 0.0 T
Staking 1000000 T to the staking provider 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416...
Authorizing provider's 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416 stake in RandomBeacon application (0xde3C52B6fb91D191791339Da42394Fa8c2808169)
Increasing authorization by 40000 T to 40000 T...
Registering operator 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416 in RandomBeacon application (0xde3C52B6fb91D191791339Da42394Fa8c2808169)
Registering operator 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416 for a staking provider 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416...
Adding 0x3365d0ed0e526d3b1d8b417fc0fde5b1cef2f416 to the set of beta operators...

Initializing ecdsa...
Current stake for 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416 is 1000000 T
Authorizing provider's 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416 stake in WalletRegistry application (0x0D15713e375BcbC611A69f3afC7708269902d62F)
Increasing authorization by 40000 T to 40000 T...
Registering operator 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416 in WalletRegistry application (0x0D15713e375BcbC611A69f3afC7708269902d62F)
Registering operator 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416 for a staking provider 0x3365D0Ed0e526D3B1d8b417fc0fdE5b1cEF2f416...
Adding 0x3365d0ed0e526d3b1d8b417fc0fde5b1cef2f416 to the set of beta operators...

Initialization completed!

@tomaszslabon tomaszslabon merged commit 3354396 into main Sep 26, 2022
@tomaszslabon tomaszslabon deleted the chaosnet-tasks-2 branch September 26, 2022 13:32
@pdyraga pdyraga added this to the solidity/v2.0.0 milestone Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants