soroban-cli icon indicating copy to clipboard operation
soroban-cli copied to clipboard

feat: add `tx::builder` module and initial classic commands

Open willemneal opened this issue 6 months ago • 1 comments

What

Add a transaction builder and operation builder trait. Also adds the first two stellar classic commands under the subcommand tx new:

  • [x] Create account
  • [x] Payment
  • [x] Set options
  • [x] Bump sequence
  • [x] Account Merge
  • [x] Manage data
  • [x] InvokeFunction
  • [x] Extend footprint ttl
  • [x] Restore footprint
  • [x] Allow trust
  • [x] Change trust
  • [x] Set trustline flags
  • [x] Doc review

Todo:

  • [x] Tests

Why

Currently all transactions are built by hand and require a lot of knowledge around the internal types. Furthermore, there is a lot of redundant code around creating, submitting transaction.

These examples should make it easy to have a quick design discussion before adding the rest of the operations.

Known limitations

[TODO or N/A]

willemneal avatar Aug 19 '24 17:08 willemneal