-
Notifications
You must be signed in to change notification settings - Fork 0
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
sns-testing subcommands #7
base: serokell/sns-testing
Are you sure you want to change the base?
Conversation
} | ||
|
||
#[derive(Debug, Parser)] | ||
pub enum SnsTestingSubCommand { |
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.
Perhaps, it's worth splitting the sns-testing
into two binaries: one to do the init part, and the other to run "scenarios"
b2a8929
to
3ae1280
Compare
3c8c66a
to
ee3a1fd
Compare
c8e88ad
to
5023804
Compare
Currently, 'sns-testing' is only capable of deploying hardcoded SNS with the provided SNS-controlled canister. This makes it impossible to tweak SNS settings without recompiling 'sns-testing'. The suggested way to create SNSes is to use 'dfx sns propose' command. To support the workflow to deploy SNSes using this command, 'sns-testing' CLI was extended with the subcommand to complete the swap for the created SNS. 'sns-testing run swap-complete' will wait for swap to be open, generate required number of participation with sufficient amount of tokens to complete the swap, and wait for swap to be completed.
5023804
to
0d1a794
Compare
Extract NNS init part into a dedicated binary to simplify the interface.
0d1a794
to
96af6f0
Compare
rs/sns/testing/README.md
Outdated
|
||
The suggested way to do this is to use `dfx sns propose` command. For more information please refer to the [documentation](https://internetcomputer.org/docs/building-apps/governing-apps/launching/launch-steps-1proposal#3-submit-nns-proposal-to-create-sns). | ||
|
||
Make use to use `sns-testing` identity when creating the proposal. |
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.
Something seems off with this sentence.
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.
s/use/sure/
, apparently 😅
rs/sns/testing/README.md
Outdated
bazel run //rs/sns/testing:sns-testing -- --network http://127.0.0.1:8080 swap-complete --sns-name "<SNS name>" --follow-principal-neurons "$(dfx identity get-principal --identity sns-testing)" | ||
``` | ||
|
||
This command will generate required number of participations with the sufficient amount of direct participations to complete the swap. |
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.
required number of participations
Not sure if you meant "participants" here.
This PR adds two subcommands to the
sns-testing
binary:sns-testing
-related scenarios.