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

cargo near deploy command to deploy the current project to blockchain #107

Closed
frol opened this issue Oct 3, 2023 · 0 comments
Closed

cargo near deploy command to deploy the current project to blockchain #107

frol opened this issue Oct 3, 2023 · 0 comments
Assignees

Comments

@frol
Copy link
Contributor

frol commented Oct 3, 2023

cargo near deploy should do the following:

  1. Run cargo near build code internally
  2. Integrate with near-cli-rs code in such a way that interactive part picks up from near contract deploy my-new-dev-account.testnet use-file ./target/near/adder.wasm ...

So the final command could look like:

cargo near deploy \
    frol.near \
    with-init-call \
        new \
        json-args '{"param1": 1}' \
        prepaid-gas '100.000 TeraGas' \
        attached-deposit '0 NEAR' \
    network-config testnet \
    sign-with-...
cargo near deploy \
    frol.near \
    without-init-call \
    network-config testnet \
    sign-with-...

Note: We don't want to implement dev-deploy magic in cargo-near, instead, I suggest to introduce cargo near create-dev-account #106

Note: All the features available in near-cli-rs for deployment should be inherited here, so near-cli-rs should be reused here.

@FroVolod FroVolod self-assigned this Oct 5, 2023
@frol frol closed this as completed Nov 14, 2023
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

No branches or pull requests

2 participants