Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(CLI): Assembled Transaction that handle preparing transaction post simulation #1049

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

willemneal
Copy link
Member

@willemneal willemneal commented Oct 24, 2023

This renames the transaction module to txn. Adds txn::Assembled. Assembled handles the different steps in preparing a transaction to be submitted. This is the first step in allowing intermediate transactions be returned and externally signed.
Also in improving error messages from failed transactions.

@willemneal willemneal force-pushed the cli/feat/txn_handler branch 2 times, most recently from 1ecd504 to cd165ef Compare October 26, 2023 19:58
@willemneal willemneal changed the title feat(CLI): Transaction Handler that handles the state transitions feat(CLI): Assembled Transaction that handle preparing transaction post simulation Oct 26, 2023
@willemneal willemneal marked this pull request as ready for review October 26, 2023 20:01
Copy link
Contributor

@chadoh chadoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it

@willemneal willemneal force-pushed the cli/feat/txn_handler branch 4 times, most recently from 3620f9f to 8be0e32 Compare November 6, 2023 16:43
@willemneal willemneal requested review from leighmcculloch and removed request for tsachiherman November 6, 2023 18:18
@leighmcculloch leighmcculloch requested review from 2opremio and removed request for leighmcculloch November 6, 2023 18:22
This renames the `transaction` module to `txn`. Added `txn::Handler` and `txn::State`. The Handler handles the different steps in preparing a transaction to be submitted. From simulation, authentication, and signing.

This is the first step in allowing intermediate transactions be returned and used.
Also in improving error messages from failed transactions.

- [ ] Do not submit transactions that have no auth or writes. We have the data from simulation already.
@willemneal willemneal merged commit 9259e08 into stellar:main Nov 7, 2023
21 checks passed
@willemneal willemneal deleted the cli/feat/txn_handler branch November 7, 2023 15:04
willemneal added a commit to AhaLabs/stellar-cli that referenced this pull request Nov 7, 2023
…st simulation (stellar#1049)

* feat(CLI): Transaction Handler that handles the state transitions

* fix: assembly transaction after authorizing & improve txn error output

* feat: Handler->Assembled - simplify to assembled txn with simulation
willemneal added a commit to AhaLabs/stellar-cli that referenced this pull request Nov 8, 2023
…st simulation (stellar#1049)

* feat(CLI): Transaction Handler that handles the state transitions

* fix: assembly transaction after authorizing & improve txn error output

* feat: Handler->Assembled - simplify to assembled txn with simulation

(cherry picked from commit c51c141)
leighmcculloch pushed a commit that referenced this pull request Nov 9, 2023
…st simulation (#1049)

* feat(CLI): Transaction Handler that handles the state transitions

* fix: assembly transaction after authorizing & improve txn error output

* feat: Handler->Assembled - simplify to assembled txn with simulation

(cherry picked from commit 9259e08)

Conflicts:
cmd/soroban-cli/src/rpc/mod.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants