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

Adds a section for bundles #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions concepts/bundles.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "Atomic Bundles"
sidebarTitle: "Atomic Bundles"
---

Users can submit atomic bundles, ensuring the provider is rewarded only when all transactions are executed as a single unit and in the defined order.

## Example Bundle Payload

Below is an example of a bundle payload that can be submitted by users. This payload ensures that all transactions are executed as a single unit and in the defined order.
```
{
"txHashes": ["0549fc7c57fffbdbfb2cf9d5e0de165fc68dadb5c27c42fdad0bdf506f4eacae", "0549fc7c57fffbdbfb2cf9d5e0de165fc68dadb5c27c42fdad0bdf506f4eacaf","0549fc7c57fffbdbfb2cf9d5e0de165fc68dadb5c27c42fdad0bdf506f4effff"],
"amount": "100040",
"blockNumber": 133459
}
```

If one of the transactions in the `txHashes` list is missing from the produced block, the pre-confirming provider will be slashed if they produced the block.

For example, if the transaction hash `"0549fc7c57fffbdbfb2cf9d5e0de165fc68dadb5c27c42fdad0bdf506f4eacae"` is missing from the produced block, the pre-confirming provider will be slashed, even if the rest of the transactions are included.
1 change: 1 addition & 0 deletions mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"concepts/privacy",
"concepts/bids",
"concepts/commitments",
"concepts/bundles",
{
"group": "mev-commit Chain",
"pages": [
Expand Down