0xMiden / 0xMiden/rust-sdk

Add `deploy` CLI command

Aberta
#1,397 3 comentários 0 reações 0 responsáveis Ver no GitHub
cli
Linguagem predominante
Rust
Estrelas
78
Forks
129
Merge médio
4d 14h
PRs com merge (30d)
52

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.