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

[cli] Switch to WaitForEffectsCert for CLI #19375

Merged
merged 7 commits into from
Sep 17, 2024

Conversation

stefan-mysten
Copy link
Contributor

@stefan-mysten stefan-mysten commented Sep 14, 2024

Description

Added a new function execute_tx that is used only in the CLI that uses WaitForEffectsCert instead of WaitForLocalExecution to align with the deprecation of waiting for local execution.
Also added the polling for transaction like in https://github.com/MystenLabs/sui/pull/18996/files

Test plan

Existing tests.


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI: The CLI switched to using WaitForEffectsCert in the quorum driver for transaction execution. As a result, it uses polling to simulate WaitForLocalExecution.
  • Rust SDK:
  • REST API:

@stefan-mysten stefan-mysten requested review from lxfind and a team September 14, 2024 00:19
@stefan-mysten stefan-mysten self-assigned this Sep 14, 2024
Copy link

vercel bot commented Sep 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 17, 2024 6:52pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Sep 17, 2024 6:52pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Sep 17, 2024 6:52pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Sep 17, 2024 6:52pm

@stefan-mysten stefan-mysten changed the title [Rust SDK] Switch to WaitForEffectsCert for CLI [cli] Switch to WaitForEffectsCert for CLI Sep 16, 2024
@stefan-mysten stefan-mysten force-pushed the sdk_fix_local_execution branch 2 times, most recently from 0e69c51 to bc38d69 Compare September 16, 2024 21:03
crates/sui/src/client_commands.rs Outdated Show resolved Hide resolved
@stefan-mysten stefan-mysten merged commit bf86ff9 into MystenLabs:main Sep 17, 2024
43 of 44 checks passed
@stefan-mysten stefan-mysten deleted the sdk_fix_local_execution branch September 17, 2024 21:28
stefan-mysten added a commit to stefan-mysten/sui that referenced this pull request Sep 17, 2024
stefan-mysten added a commit that referenced this pull request Sep 17, 2024
## Description 

This reverts PR #19375. Unclear how to handle `waitForLocalExecution` in
the CLI for now.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
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.

2 participants