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

Add serial and parallel executor classes #17767

Merged
merged 10 commits into from
May 21, 2024

Conversation

hayes-mysten
Copy link
Contributor

Description

Describe the changes or additions included in this PR.

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:

Copy link

vercel bot commented May 15, 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 May 21, 2024 6:11pm
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 6:11pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 6:11pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 6:11pm

Copy link
Contributor

github-actions bot commented May 15, 2024

⚠️ 🦋 Changesets Warning: This PR has changes to public npm packages, but does not contain a changeset. You can create a changeset easily by running pnpm changeset in the root of the Sui repo, and following the prompts. If your change does not need a changeset (e.g. a documentation-only change), you can ignore this message. This warning will be removed when a changeset is added to this pull request.

Learn more about Changesets.

@hayes-mysten hayes-mysten force-pushed the mh--sdk-v1-serial-executor branch 2 times, most recently from 70d2427 to 342b539 Compare May 17, 2024 00:50
@hayes-mysten hayes-mysten changed the title Add serial executor Add executor classes May 17, 2024
@hayes-mysten hayes-mysten changed the title Add executor classes Add serial and parallel executor classes May 17, 2024
@hayes-mysten hayes-mysten force-pushed the mh--sdk-v1-serial-executor branch 3 times, most recently from 76b2dd0 to b2ee1df Compare May 20, 2024 23:05
sdk/docs/pages/typescript/executors.mdx Outdated Show resolved Hide resolved
sdk/docs/pages/typescript/executors.mdx Show resolved Hide resolved
sdk/docs/pages/typescript/executors.mdx Outdated Show resolved Hide resolved
sdk/docs/pages/typescript/executors.mdx Outdated Show resolved Hide resolved
- `initialCoinBalance`: The balance of new coins created for the gas pool in MIST (default
`200_000_000n`),
- `minimumCoinBalance`: After executing a transaction, the the gasCoin will be reused unless it's
balance is below this value (default `50_000_000n`),
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious where these defaults came from

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A lot of small transaction use a little less than 5_000_000 from what I've seen, I figured 10x that would be a reasonable minimum for to account for complex transactions. Then 4x seems safe enough for an initial coin we hope to re-use a lot since most transactions will use less, that would be ~50 cheap transactions for 5 very expensive ones.

200_000_000 * 50 (max size) is 10 SUI which seems like a decent amount to fully fund the initial pool.

It's mostly completely made up without a lot of data to back it up 🤷

sdk/docs/pages/typescript/executors.mdx Show resolved Hide resolved
@hayes-mysten hayes-mysten requested review from a team as code owners May 21, 2024 17:47
@hayes-mysten hayes-mysten requested review from pchrysochoidis and Nikhil-Mysten and removed request for a team May 21, 2024 17:47
@hayes-mysten hayes-mysten merged commit 8a95bb2 into mh--sdk-v1 May 21, 2024
48 checks passed
@hayes-mysten hayes-mysten deleted the mh--sdk-v1-serial-executor branch May 21, 2024 20:10
hayes-mysten added a commit that referenced this pull request May 28, 2024
## Description 

Describe the changes or additions included in this PR.

## 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:
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.

None yet

2 participants