-
Notifications
You must be signed in to change notification settings - Fork 24
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: guide user to call a parachain #316
base: main
Are you sure you want to change the base?
Conversation
Preliminary UX Feedback:
How does the user know what Pop CLI supports for chain calls? e.g. minting NFTs, minting assets? etc.
For example:
|
I don't personally like to have a list of chains. The users of this feature are devs, so in my opinion, the For example, if I’m deploying a smart contract on the Pop Network that interacts with an NFT, I would want to run For these two scenarios, I believe the current flow works best: first selecting the chain you are working on, and then focusing on the specific use cases available through |
If the audience are devs, it makes sense what you are saying:
I would still have Pop Network as a default, pre-defined chain. So the flow would be like this:
The following will be shown if the user selects "Pop Network":
The following will be shown if the user selects "Custom RPC":
|
…e integration test
7e61b40
to
f60c1e3
Compare
…at-call-ui-extrinsics-limited
20e0a36
to
047ddc3
Compare
This PR introduces the
pop call parachain
command, providing guidance for users to interact with a parachain in specific use cases, such as creating an asset, nfts, and other interesting developer focused actions.The initial approach was to parse all metadata, allowing users to call any extrinsic or query all storage. However, after testing and discussions, we realized this could generate unnecessary noise, as developers might not need access to everything. Additionally, the input of parameters wouldn’t be as intuitive or visual as Polkadot JS. As a result, focusing on specific use cases that developers can leverage during development seems more practical and valuable.
Additional use cases can be added in the future.
If the chain selected by the user doesn’t support certain operations, those options will not be displayed. For example:
To enable more experienced developers to quickly execute supported extrinsics, pop-cli also offer a the command-line interface for direct execution. For example:
pop call parachain --pallet Nfts --extrinsic mint --args 0 0 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty None --url ws://127.0.1:64966 --suri //Alice
Pending: To Be Finalized After High-Level Review
Unit tests of the functionality is still missing. And a refactor to use the statically generated interface instead of dynamic one.