soroban-cli: Refactor `contract deploy` to use a single transaction

Open
#648 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
cli

Research direction

Start at the soroban contract deploy CLI entry point and trace how deployment currently creates transactions and invokes host functions. Refactor it to use one transaction for the deployment flow; completion means multiple host functions execute in that transaction. Treat the initialization-function option as a bonus scope item.

Written by the indexing model from the issue text.

Description

cli soroban-scrum

Now that you can invoke multiple host functions in a single transaction, we should do that in soroban contract deploy.

Bonus: We could also offer a way to invoke an "initialization" function in the same transaction.

Dominant language
Rust
Stars
123
Forks
141
Avg merge
2d 21h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stellar/stellar-cli

All issues in stellar/stellar-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.