use-ink/cargo-contract

Add `cargo contract deploy` command

Open

#962 建立於 2023年2月8日

在 GitHub 查看
 (1 留言) (2 反應) (1 負責人)Rust (127 fork)github user discovery
OpenZeppelinenhancementgood first issue

倉庫指標

Star
 (280 star)
PR 合併指標
 (PR 指標待抓取)

描述

I often find myself scripting something along the lines of:

cargo contract build --manifest-path flipper/Cargo.toml
cargo contract instantiate --constructor new \
    --suri //Alice --salt $(date +%s) \
    --manifest-path flipper/Cargo.toml

We should add a deploy subcommand which is able to do both of these steps (and possible more if we think of anything else) in one go.

cargo contract deploy --manifest-path flipper/Cargo.toml

The main motivation here is that we should make common development workflows as easy as possible to do from within cargo-contract, instead of having developers make their own wrappers.

There may be other subcommand we want to streamline, but this seems like low-hanging fruit.

貢獻者指南