0xMiden / 0xMiden/rust-sdk

Add `deploy` CLI command

Offen
#1,397 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
cli
Vorherrschende Sprache
Rust
Sterne
78
Forks
129
Ø Merge
4 T. 14 Std.
Gemergte PRs (30 T.)
52

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.