0xMiden / 0xMiden/rust-sdk

Add `deploy` CLI command

オープン
#1,397 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
cli
主要言語
Rust
スター
78
フォーク
129
平均マージ
4日 14時間
マージ済み PR(30日)
52

説明

# Summary

This issue is a result of the `miden-client` and `midenup` CLI Improvement Proposal discussions.

For context, take a look here:
- [`miden-client` CLI improvement proposal](https://github.com/0xMiden/miden-client/discussions/1394)
- [`midenup` improvement proposal](https://github.com/0xMiden/midenup/discussions/108)

## Description

We should add a command to deploy custom Smart Contract code specified by a file path. This would be a great addition for developers that want to be able to quickly deploy custom Account code directly from their CLI.

Also, this would perfectly integrate into the project template that the midenup `miden new` command initializes and its dev experience.

## User experience

### Intended Input command

```bash
miden deploy
```

Examples:

Masm file:
```bash
miden deploy accounts/counter.masm
```

Rust file (Rust contract code):
```bash
miden deploy accounts/counter.rs
```

### Output

```bash
Info message containing information about the deployment TX / note consumption
```

## Note on deployments `miden-base` discussion

Currently, there is an ongoing discussion in `miden-base` in regards to standardizing contract deployment: https://github.com/0xMiden/miden-base/issues/1663

It may make sense to wait until the discussion there has concluded before adding this command.

- current discussion in miden-base regarding this (might have to await until that is concluded)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。