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(dre): top up neuron request #752

Merged
merged 8 commits into from
Aug 19, 2024
Merged

feat(dre): top up neuron request #752

merged 8 commits into from
Aug 19, 2024

Conversation

NikolaMilosa
Copy link
Contributor

This PR implements two utility functions:

  1. Getting neuron balance (of any neuron)
./target/debug/dre neuron balance                                                 
 2024-08-19T09:41:44.014Z INFO  dre > Running version 0.5.0-124dff6a-dirty
 2024-08-19T09:41:44.105Z INFO  dre::ic_admin > Using ic-admin c7d517db67fde740f5e3338c86e95b4ec8beb00a because lock file was created less than 24 hours ago
251

Can be run with an override to get any neurons balance

./target/debug/dre neuron balance --neuron 58
 2024-08-19T09:42:19.761Z INFO  dre > Running version 0.5.0-124dff6a-dirty
251
  1. Generating the top-up request for a given neuron
    Run from HSM:
./target/debug/dre neuron top-up                                                  
 2024-08-19T09:42:42.992Z INFO  dre > Running version 0.5.0-124dff6a-dirty
 2024-08-19T09:42:43.078Z INFO  dre::ic_admin > Using ic-admin c7d517db67fde740f5e3338c86e95b4ec8beb00a because lock file was created less than 24 hours ago
Please request ICP in the #icp-to-go slack channel:
> Hi! Can I please get XX ICPs on the account address `3caec8ec72b87dde90d3359e30428827b2093deb100c9a150ea8fac7bd717304` for neuron ID 58 in order to be able to submit more NNS proposals. Thank you

You can check balance by running `dre neuron balance`

Run for release automation:

./target/debug/dre --private-key-pem ~/.config/dfx/identity/release-automation/identity.pem  --neuron-id 80 neuron top-up
 2024-08-19T09:47:18.695Z INFO  dre > Running version 0.5.0-124dff6a-dirty
 2024-08-19T09:47:18.782Z INFO  dre::ic_admin > Using ic-admin c7d517db67fde740f5e3338c86e95b4ec8beb00a because lock file was created less than 24 hours ago
Please request ICP in the #icp-to-go slack channel:
> Hi! Can I please get XX ICPs on the account address `1df42c22c67aac6de96838dc46dcbfbbb2d50ea7f030395105a8f153d6816fdf` for neuron ID 80 in order to be able to submit more NNS proposals. Thank you

You can check balance by running `dre neuron balance`

@NikolaMilosa NikolaMilosa requested a review from a team as a code owner August 19, 2024 09:48
Copy link
Member

@sasa-tomic sasa-tomic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AWESOME!

@NikolaMilosa NikolaMilosa merged commit 4866612 into main Aug 19, 2024
4 checks passed
@NikolaMilosa NikolaMilosa deleted the nm-top-up-neuron branch August 19, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants