-
Notifications
You must be signed in to change notification settings - Fork 8
Extend create-near-app to create CLI tools for smart contracts | Bounty: $2000 USD in NEAR #11
Comments
I want to start working on this. |
@ilblackdragon, @chadoh can you assign me this issue? |
I think there’s some design work to be done here. Before you get started coding, @luciotato, please document here how you plan to implement this and give us a chance to have a quick discussion about it. The sorts of questions I’d like to see answered:
To me it seems like this could turn into a research task that results in a change to near-cli, but depending on how the extension to create-near-app turns out, we may decide to not ship it at this point. Please document what you plan to deliver given that possibility, as I want to have clear expectations on both sides about what counts as fulfilling the bounty. |
|
@luciotato are you planning to work on this bounty? I like your suggestions on "100N" vs "100yN". Also generally, I think we should use N everywhere by default. |
@ilblackdragon I was waiting for your comments and approval. I can start working if you're OK with the plan. |
Ok, I'll start with this, this is the new plan: SECOND DRAFTConsidering the example:
I would split this in two parts Part 1:I'll make a minimal rust parser with enough knowledge to parse a contract's
With the parsed info I'll create a basic cli project for the contract with the least dependencies possible usage:
Part 2:
create-contract-cli will create a base/initial contract's cli app. It will handle standard parameters. Complex parameters like nested JSON structures will be left up to the user to define. Also the user can then extend the app to include commands like:
to schedule calls to get owner info, public staking key, staked amount, number of accounts, etc The cli will use -- END OF SECOND DRAFT This will be the first Minimum Viable Product for create-near-cli, and I propose closing the scope of this issue/bounty here. edit: syntax |
Update: I've completed the goals of Draft#2. - I'm the phase of testing, writing docs and creating a screen-cast demo. |
@ilblackdragon, I've a working tool for this bounty: Check: |
@chadoh will be able to review today or tomorrow. Thanks for this submission! This does look cool! |
Looks cool! Nice devx. I look forward to seeing how people use this! Some specific critiques on the approach here:
All-in-all, I think this is a great first version, and well deserving of the bounty. Thank you! We will shout this out in the next community newsletter 😊 |
Hi Chad!
Yes
You're right, I'll remove that from the roadmap
Yes The most common numeric argument type for contracts is U128/yoctos, that's why no-decorator means NEAR which in turn converts Thank you! |
I rewrote most of the readme based on your suggestions |
Description
Implement a template (in Node.js) that will help smart contract developers creating a dedicated command line util for their smart contracts.
We also want to extend
create-near-app
tool, so CLI is optionally initialized for the app.Context
Details are here: near/devx#207
Acceptance
near-shell
create-near-app staking-pool
asks set of questions and creates a CLI sub-projectBounty
USD $2000 in NEAR
The text was updated successfully, but these errors were encountered: