-
Notifications
You must be signed in to change notification settings - Fork 17
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
cargo near new
command to initialize a new smart contract project
#100
Comments
Hey I am currently learning rust, as it is a good first issue can you please assign this to me |
@ShivangRawat30 Sure, go ahead! |
In addition to the regular Rust project setup, I suggest also including GitHub Actions setup for fmt/linting checks on PRs, and build and deploy to testnet and (optional) mainnet on merges to A very basic one can be found here: https://github.com/frol/transfer-near-contract/blob/main/.github/workflows/rust.yml (there is no deployment part there) |
And also setup tests environment (workspaces-rs) |
I think we could start with polishing one contract repo to a reasonable state before scripting it into So to summarize it, a new project should have the following:
|
@ShivangRawat30 Hi. How is your progress? Can I take this task? |
Here is a bootstrap project that |
Resolves #100 --------- Co-authored-by: Vlad Frolov <frolvlad@gmail.com>
It would be great to have a
new
command to initialize an empty project.There is
cargo-generate
andnear-create-app
that are currently suggested in the docs, but I would prefer avoiding having extra dependency (cargo-generate) or a whole different stack (near-create-app requires Node.js) and rather build the whole DevX aroundcargo near ...
commands.I believe near-create-app does too much (initializes the frontend and the contract inside a single project), and
cargo-generate
makes things harder to use than necessary, and currently developers face the whole page of just "Create a new project" where I would love to see:and the next commands:
P.S. It might also be useful to initialize common projects like basic FT, NFT contracts (see https://github.com/near/near-sdk-rs/tree/master/examples).
The text was updated successfully, but these errors were encountered: