Skip to content

Commit

Permalink
fix toc generation, use new vs code ext
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris committed Oct 7, 2023
1 parent 4ac5691 commit b7e2daa
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 77 deletions.
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- no toc -->
# ☀️ SUAVE Protocol Specifications

<div class="hideInDocs">
Expand All @@ -18,13 +19,6 @@ Discussions about design rationale and proposed changes can be brought up and di

</div>

<!-- TOC depthfrom:10 -->



<!-- /TOC -->


---

# About Suave
Expand All @@ -45,10 +39,10 @@ Specifications for the SUAVE protocol are currently organized by testnet during

## In-development Specifications

| Testnet | Phase | ChainID | Specs |
| - | - | - | - |
| [**Rigil**](./specs/rigil/) | [Big Bang](/assets/future_roadmap_draft.png) | `16813125` |[SUAVE chain](./specs/rigil/suave-chain.md) <br/> • [MEVM](./specs/rigil/mevm.md) <br/> • [Confidential Data Store](./specs/rigil/confidential-data-store.md) <br/> • [Precompiles](./specs/rigil/precompiles.md) <br/> • [Bridge](./specs/rigil/bridge.md) |
| [**Sirrah**](./specs/sirrah/) | [Proto-Collision](/assets/future_roadmap_draft.png) | | |
| Testnet | Phase | ChainID | Specs |
| ----------------------------- | --------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [**Rigil**](./specs/rigil/) | [Big Bang](/assets/future_roadmap_draft.png) | `16813125` |[SUAVE chain](./specs/rigil/suave-chain.md) <br/> • [MEVM](./specs/rigil/mevm.md) <br/> • [Confidential Data Store](./specs/rigil/confidential-data-store.md) <br/> • [Precompiles](./specs/rigil/precompiles.md) <br/> • [Bridge](./specs/rigil/bridge.md) |
| [**Sirrah**](./specs/sirrah/) | [Proto-Collision](/assets/future_roadmap_draft.png) | | |

---

Expand All @@ -58,7 +52,7 @@ You are welcome to open PRs and issues. We invite you to discuss your ideas in t

<div class="hideInDocs">

For creating tables of contents, we use the [huntertran.auto-markdown-toc VS code extension](https://marketplace.visualstudio.com/items?itemName=huntertran.auto-markdown-toc).
For creating tables of contents, we use the ["Markdown All in One" VS code extension](https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one). This extension comes with a lot of keyboard shortcuts, which may override the ones you are already using. You can disable keyboard shortcuts for this extension by going to "Settings -> Keyboard Shortcuts" (cmd+K cmd+S) and searching for `markdown.ext` (see [#22](https://github.com/flashbots/suave-specs/pull/22) for more details).

However, we don't need the ToCs and some other content (like this paragraph) rendered in the documentation frontend. Therefore, please add the `<div class="hideInDocs"></div>` to any content that should not appear in the FE.

Expand Down
9 changes: 1 addition & 8 deletions specs/rigil/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- no toc -->
# SUAVE Rigil Testnet

[![Docs at https://suave.flashbots.net/](https://img.shields.io/badge/read-SUAVE%20docs-blue.svg)](https://suave.flashbots.net/)
Expand All @@ -13,14 +14,6 @@ This repository hosts the current SUAVE Rigil testnet specifications and design

<div class="hideInDocs">


<!-- TOC depthfrom:10 -->



<!-- /TOC -->


---


Expand Down
3 changes: 2 additions & 1 deletion specs/rigil/bridge.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Bridge
<!-- no toc -->
# Bridge <!-- omit from toc -->

SUAVE uses a bridge with the Goerli Ethereum network to transfer assets for gas and MEV applications.

Expand Down
41 changes: 24 additions & 17 deletions specs/rigil/computor.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
# Computor
# Computor <!-- omit from toc -->

<div class="hideInDocs">

**Table of Contents**

<!-- TOC -->

- [Overview](#overview)
- [Prerequisites](#prerequisites)
- [Computor Responsibilities](#computor-responsibilities)
- [Becoming a Computor](#becoming-a-computor)
- [Computor Identification](#computor-identification)
- [Computor Identification](#computor-identification)
- [Computor Architecture](#computor-architecture)
- [RPC](#rpc)
- [SUAVE PoA Chain](#suave-poa-chain)
- [MEVM](#mevm)
- [Confidential Data Store](#confidential-data-store)
- [Domain Specific Services](#domain-specific-services)
- [Precompiles](#precompiles)
- [RPC](#rpc)
- [SUAVE PoA Chain](#suave-poa-chain)
- [MEVM](#mevm)
- [Confidential Data Store](#confidential-data-store)
- [Domain Specific Services](#domain-specific-services)
- [Precompiles](#precompiles)
- [Containers](#containers)
- [Confidential Compute Record](#confidential-compute-record)
- [ConfidentialComputeRequest](#confidentialcomputerequest)
- [Suave Transaction](#suave-transaction)
- [Bid](#bid)
- [Confidential Compute Record](#confidential-compute-record)
- [ConfidentialComputeRequest](#confidentialcomputerequest)
- [Suave Transaction](#suave-transaction)
- [Bid](#bid)
- [Confidential Computation](#confidential-computation)
- [Confidential Compute Process](#confidential-compute-process)
- [Confidential Compute Process](#confidential-compute-process)
- [Honest Computor](#honest-computor)
- [Self Organization](#self-organization)

<!-- /TOC -->

</div>

## Overview
This document provides the technical specification for the SUAVE computor: one of the main protocol actors in the SUAVE protocol. The computor contains all necessary components to aceept, process, and route confidential compute requests and results. With these basic primitives computors can self-organize their topology and functionality to conform to specific portions of the MEV supply network.

Expand Down Expand Up @@ -55,7 +62,7 @@ A computor has several primary responsibilities within the SUAVE network:

## Becoming a Computor

Computors are currently permissioned in the SUAVE network, to become one you need your computor's ECDSA pubkey to be contained within the clique PoA genesis settings.
Computors are currently permissioned in the SUAVE network, to become one you need your computor's ECDSA pubkey to be contained within the clique PoA genesis settings.

While permissioned now, Computors will one day become permisisonless.

Expand Down Expand Up @@ -160,7 +167,7 @@ type SuaveTransaction struct {

### Bid

Bids are the underlying data structure used to track and access data from confidential data storage.
Bids are the underlying data structure used to track and access data from confidential data storage.

```go
type Bid struct {
Expand Down Expand Up @@ -197,8 +204,8 @@ On the Rigil testnet Computors do not live inside of Trusted Execution Environme

## Self Organization

Traditionally, synchrony has been viewed as a cooperative event. However, evidence from the mempool suggests that a collective synchronous display can also be an incidental outcome of signal "jamming" activities, often known as priority gas auctions, between actors competing for blockspace.
Traditionally, synchrony has been viewed as a cooperative event. However, evidence from the mempool suggests that a collective synchronous display can also be an incidental outcome of signal "jamming" activities, often known as priority gas auctions, between actors competing for blockspace.

In this light, the existing MEV supply chain we have today can be seen as a [Turing Pattern](https://en.wikipedia.org/wiki/Turing_pattern) resulting from instability in the supply chain.
In this light, the existing MEV supply chain we have today can be seen as a [Turing Pattern](https://en.wikipedia.org/wiki/Turing_pattern) resulting from instability in the supply chain.

SUAVE computors embrace this phenomenon with the capability to reconfigure their network communication to fit into the specific subsection of the MEV supply network they serve. Currently, SUAVE computors route the outcomes of confidential compute, bundles, and blocks directly to the desired recipient party as the network maintains a small and compact topology. The eventual goal is to foster a more dynamic self-organization to cater to a broader network topology and enable autonomous self organization.
14 changes: 7 additions & 7 deletions specs/rigil/confidential-data-store.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Confidential Data Store
# Confidential Data Store <!-- omit from toc -->

<div class="hideInDocs">

**Table of Contents**

<!-- TOC depthfrom:2 -->
<!-- TOC -->

- [Introduction](#introduction)
- [Architecture Diagram](#architecture-diagram)
- [Core Components](#core-components)
- [ConfidentialStore](#confidentialstore)
- [SUAVE Mempool](#suave-mempool)
- [Interface Definitions](#interface-definitions)
- [ConfidentialStore](#confidentialstore)
- [SUAVE Mempool](#suave-mempool)
- [Interface Definitions](#interface-definitions)
- [Data Management](#data-management)
- [Initialization & Access Control](#initialization--access-control)
- [Store & Retrieve Processes](#store--retrieve-processes)
- [Initialization \& Access Control](#initialization--access-control)
- [Store \& Retrieve Processes](#store--retrieve-processes)
- [Security and Confidentiality](#security-and-confidentiality)

<!-- /TOC -->
Expand Down
12 changes: 6 additions & 6 deletions specs/rigil/mevm.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# MEVM
# MEVM <!-- omit from toc -->

<div class="hideInDocs">

**Table of Contents**

<!-- TOC depthfrom:2 -->
<!-- TOC -->

- [Overview](#overview)
- [Core Architecture](#core-architecture)
- [SuaveExecutionBackend](#suaveexecutionbackend)
- [MEVM Interpreter](#mevm-interpreter)
- [SuaveExecutionBackend](#suaveexecutionbackend)
- [MEVM Interpreter](#mevm-interpreter)
- [Additional Capabilities](#additional-capabilities)
- [Confidential execution of smart contracts](#confidential-execution-of-smart-contracts)
- [Confidential APIs](#confidential-apis)
- [Confidential execution of smart contracts](#confidential-execution-of-smart-contracts)
- [Confidential APIs](#confidential-apis)
- [MEVM Example Flow + Diagram](#mevm-example-flow--diagram)

<!-- /TOC -->
Expand Down
24 changes: 12 additions & 12 deletions specs/rigil/precompiles.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# Precompiles
# Precompiles <!-- omit from toc -->

<div class="hideInDocs">

**Table of Contents**

<!-- TOC depthfrom:2 -->
<!-- TOC -->

- [Overview](#overview)
- [Precompiles Governance](#precompiles-governance)
- [Precompiles](#precompiles)
- [`IsConfidential`](#isconfidential)
- [`ConfidentialInputs`](#confidentialinputs)
- [`ConfidentialStore`](#confidentialstore)
- [`ConfidentialRetrieve`](#confidentialretrieve)
- [`NewBid`](#newbid)
- [`FetchBids`](#fetchbids)
- [`SimulateBundle`](#simulatebundle)
- [`ExtractHint`](#extracthint)
- [`BuildEthBlock`](#buildethblock)
- [`SubmitEthBlockBidToRelay`](#submitethblockbidtorelay)
- [`IsConfidential`](#isconfidential)
- [`ConfidentialInputs`](#confidentialinputs)
- [`ConfidentialStore`](#confidentialstore)
- [`ConfidentialRetrieve`](#confidentialretrieve)
- [`NewBid`](#newbid)
- [`FetchBids`](#fetchbids)
- [`SimulateBundle`](#simulatebundle)
- [`ExtractHint`](#extracthint)
- [`BuildEthBlock`](#buildethblock)
- [`SubmitEthBlockBidToRelay`](#submitethblockbidtorelay)

<!-- /TOC -->

Expand Down
28 changes: 14 additions & 14 deletions specs/rigil/suave-chain.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Suave Chain
# Suave Chain <!-- omit from toc -->

<div class="hideInDocs">

<!-- TOC depthfrom:2 -->
<!-- TOC -->

- [Introduction](#introduction)
- [Configuration](#configuration)
- [Network Parameters](#network-parameters)
- [Genesis Settings](#genesis-settings)
- [Network Parameters](#network-parameters)
- [Genesis Settings](#genesis-settings)
- [Consensus Mechanism](#consensus-mechanism)
- [MEVM Execution](#mevm-execution)
- [Geth Version](#geth-version)
- [MEVM Execution](#mevm-execution)
- [Geth Version](#geth-version)
- [Suave Transaction](#suave-transaction)
- [Suave JSON-RPC](#suave-json-rpc)
- [suavex namespace](#suavex-namespace)
- [`suavex` namespace](#suavex-namespace)
- [Node Requirements and Setup](#node-requirements-and-setup)
- [Gas and Transaction Fees](#gas-and-transaction-fees)
- [Security Considerations](#security-considerations)
Expand Down Expand Up @@ -44,13 +44,13 @@ In the initial phases of development, the SUAVE chain runs a proof-of-authority

### Genesis Settings

| Name | Value | Unit |
| - | - | - |
| `PERIOD` | 4 | `block`
| `EPOCH` | 30000 | `block`
| `BLOCK_TIME` | 3 | `second`
| `GAS_LIMIT`| 30000000 | `gwei`
| `NUM_VALIDATORS` | 3 | Nodes
| Name | Value | Unit |
| ---------------- | -------- | -------- |
| `PERIOD` | 4 | `block` |
| `EPOCH` | 30000 | `block` |
| `BLOCK_TIME` | 3 | `second` |
| `GAS_LIMIT` | 30000000 | `gwei` |
| `NUM_VALIDATORS` | 3 | Nodes |

## Consensus Mechanism

Expand Down

0 comments on commit b7e2daa

Please sign in to comment.