From 14abfa5154de32b692630826e2338170b80a76d3 Mon Sep 17 00:00:00 2001 From: Kartik Chopra Date: Wed, 15 May 2024 10:38:35 -0400 Subject: [PATCH] Adds a section for bundles. --- concepts/bundles.mdx | 21 +++++++++++++++++++++ mint.json | 1 + 2 files changed, 22 insertions(+) create mode 100644 concepts/bundles.mdx diff --git a/concepts/bundles.mdx b/concepts/bundles.mdx new file mode 100644 index 00000000..0ba7d785 --- /dev/null +++ b/concepts/bundles.mdx @@ -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. diff --git a/mint.json b/mint.json index d962d060..56368e84 100644 --- a/mint.json +++ b/mint.json @@ -64,6 +64,7 @@ "concepts/privacy", "concepts/bids", "concepts/commitments", + "concepts/bundles", { "group": "mev-commit Chain", "pages": [