0xMiden / 0xMiden/rust-sdk

Add `deploy` CLI command

Abierto
#1,397 3 comentarios 0 reacciones 0 asignados Ver en GitHub
cli
Lenguaje dominante
Rust
Estrellas
78
Forks
129
Merge medio
4 d 14 h
PR fusionados (30 d)
52

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.