0xMiden / 0xMiden/rust-sdk

Add `deploy` CLI command

Đang mở
#1,397 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
cli
Ngôn ngữ chính
Rust
Star
78
Fork
129
Merge trung bình
4 ngày 14 giờ
Pull request đã merge (30 ngày)
52

Mô tả

# 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)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.