Skip to content

Commit 2cb831c

Browse files
authored
Revisit searcher docs (#165)
* Review overview section, split auction cycle to separate page, rename searchers section to getting started * Revisit capitalization * Use term 'bid phase' instead of bidding phase * Fix remnants of bad capitalization * Fix dApps catalog in OEV docs * Reword getting started * Do not use dAPI as a product * Explain auctions at a high level * Move auctions documentation to overview * Update glossary * Make dApps catalog a table instead * Add dApp alias instead * Update data feeds section * Use same style for helper sections * Remove examples, clarify some of the sections content * Fix OEV searching docs * Remove unmaintained /dev docs, prune README * Fix title casing * Clarify difference between oev proceeds and rewards * Fix remaining TODOs * Show OEV extended explorer * Avoid word recapture, improve proceeds clarification * CI fixes * Self proofread * Fix links * Apply PR suggestions * Apply PR suggestions
1 parent 1b91812 commit 2cb831c

40 files changed

+449
-1217
lines changed

.github/issue_template.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,13 @@ pnpm-lock.yaml
1111
/docs/.vitepress/public
1212
/docs/.vuepress/styles
1313

14-
#dev
15-
/docs/dev/using-metamask/src/HelloWorld.sol.js
16-
/docs/dev/using-metamask/src/HelloWorld.sol
17-
18-
1914
/docs/public/img
2015
/docs/public/api3-whitepaper-v1.0.3.pdf
2116

2217
# assets
2318
/docs/reference/ois/latest/assets
2419
/docs/reference/airnode/latest/assets
2520
/docs/reference/dao-members/assets
26-
/docs/dapis/reference/assets
2721
/docs/reference/chainapi/assets
2822
/docs/reference/qrng/assets
2923
/docs/oev-searchers/assets
30-
/docs/dapis/assets

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"collateralized",
1919
"composability",
2020
"dapi",
21-
"dapis",
2221
"decentrally",
2322
"docset",
2423
"docsets",

CONTRIBUTING.md

Lines changed: 15 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,29 @@
1-
## Contributor's Guide
1+
# Contributors' guide
22

3-
Welcome to the Api3 Documentation Repository. This guide will help you get
4-
started with contributing to the Api3 documentation.
5-
6-
## How to get started
7-
8-
The Api3 Docs uses [VitePress](https://vitepress.dev/), a Vue-powered static
3+
Welcome to the Api3 documentation repository. This guide will help you get
4+
started with contributing to the Api3 documentation. The docs use [VitePress](https://vitepress.dev/), a Vue-powered static
95
site generator. Follow the steps below to get started.
106

11-
Make sure to check out https://docs.api3.org/dev/ for more details and
12-
information about getting started and making a contribution to the Api3 Docs.
13-
14-
### Pre-requisites
15-
16-
- [Node.js](https://nodejs.org/en/) (version 20 or higher).
17-
- Unix/macOS/WSL for the scripts to work properly.
18-
19-
### Installation
20-
21-
```bash
22-
pnpm install
23-
```
24-
25-
### Running the local development server
26-
27-
Run the following command to start the local development server on port `5173`:
28-
29-
```bash
30-
pnpm docs:dev
31-
```
32-
33-
### Structure
34-
35-
The Api3 Docs repository is structured as follows:
36-
37-
- `/docs/dapis`: Explore section within the Api3 Docs.
38-
- `/docs/oev`: All the guides that demonstrate the use of Airnode, QRNG and
39-
dAPIs.
40-
- `/docs/reference`: Contains the core documentation for Airnode, QRNG and
41-
dAPIs.
42-
43-
Each section will have a `sidebar.js` file that contains the sidebar structure
44-
for that section.
45-
46-
`/_components`: Contains the custom vue components used in the Api3 Docs.
47-
48-
[Check this out](https://docs.api3.org/dev/docsets.html) for more info about the
49-
structure of the docs.
50-
51-
### Building the static site
52-
53-
```bash
54-
pnpm docs:build
55-
```
56-
57-
### Prettier Formatting
58-
59-
Make sure to run the following command before submitting a PR to format the
60-
markdown. The Github action will check for prettier formatting:
61-
62-
```bash
63-
pnpm format
64-
```
65-
66-
### Formatting and Styling
67-
68-
You can use markdown to format the content. Check out the
69-
[docs development section](https://docs.api3.org/dev/) for more info. Some
70-
useful links:
71-
72-
- [Page styling](https://docs.api3.org/dev/page-styling.html)
73-
- [Formatting guides](https://docs.api3.org/dev/oev-format.html)
74-
- [VitePress Containers](https://docs.api3.org/dev/containers.html)
75-
76-
### Git Workflow:
77-
78-
- `main` branch: for the current live site
79-
[docs.api3.org](https://docs.api3.org)
80-
81-
[Check this out](https://docs.api3.org/dev/firebase.html#repo-branches) for more
82-
info about the branches.
83-
84-
### Submitting an Issue
7+
## Submitting an issue
858

869
You can submit an issue if you find any bugs or have any feature requests.
8710
Please make sure to check if the issue already exists before submitting a new
8811
one.
8912

90-
You can:
91-
92-
- Submit an issue for a bug.
93-
- Submit an issue for a feature request.
94-
- Submit an issue for a documentation request.
13+
## Making a pull request
9514

96-
### Making a PR
97-
98-
After making changes in a feature branch, submit a PR against the `main` branch.
15+
After making changes in a feature branch, submit a pull request (PR) against the `main` branch.
9916
Make sure to link the corresponding GitHub Issue in the PR description e.g.
10017
`Closes #1`. You will be able to see the changes within a Firebase preview
10118
deployment that is unique to the PR. The PR will be reviewed by the team and
10219
merged into the `main` branch, which will result in the changes going live into
10320
production.
21+
22+
### Getting started
23+
24+
After cloning the repo locally, install the dependencies and run the docs locally.
25+
26+
```bash
27+
pnpm install
28+
pnpm docs:dev
29+
```

README.md

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
1-
# OEV docs preview
1+
# OEV docs
22

3-
This technical documentation is a fork of the official
4-
[Api3 technical documentation](https://docs.api3.org). The intent is to develop
5-
OEV-related documentation here privately then merge into the official repo when
6-
ready.
3+
> The main API3 documentation
74
8-
## Instructions
5+
## Contributing
96

10-
To install deps:
11-
12-
```sh
13-
pnpm install
14-
```
15-
16-
and to run in dev mode:
17-
18-
```sh
19-
pnpm run docs:dev
20-
```
21-
22-
## Deployment
23-
24-
Firebase is used to host the `oev-docs` technical documentation. A preview
25-
deployment is generated for every PR, while the main deployment is updated with
26-
every merge to the `main` branch. The url for the main deployment is:
27-
[https://oev-docs.web.app](https://oev-docs.web.app).
7+
Head out to [CONTRIBUTING.md](./CONTRIBUTING.md) for details.

docs/.vitepress/config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export default {
8585
sidebar: {
8686
'/dapps/': require('../dapps/sidebar.js'),
8787
'/oev-searchers/': require('../oev-searchers/sidebar.js'),
88-
'/dev/': require('../dev/sidebar.js'),
8988
},
9089
nav: nav(),
9190
},

docs/dapps/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Rent-seeking third parties can exploit this fact to extract funds from data feed
3030

3131
[Oracle Extractable Value (OEV)](https://medium.com/api3/oracle-extractable-value-oev-13c1b6d53c5b) is a subset of MEV that oracles have priority in extracting by batching additional operations with their updates.
3232
Furthermore, instead of searching for such OEV opportunities themselves, oracles can auction off this privilege.
33-
Api3 holds transparent and permissionless auctions for OEV opportunities on OEV Network, and [pays](/dapps/oev-rewards/) the auction proceeds to the respective dApps.
33+
Api3 holds transparent and permissionless auctions for OEV opportunities on OEV Network, and [pays](/dapps/oev-rewards/) 80% of the auction proceeds to the respective dApps.
3434
OEV Rewards serves as a new and sustainable revenue stream for dApps.
3535

3636
::: info ⚠️ Disclaimer

docs/dapps/oev-rewards/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pageHeader: dApps → OEV Rewards
1010
dApps that use traditional data feeds are constantly exploited by MEV bots that manipulate the order of operations around individual data feed updates.
1111
In practice, this causes dApps to suffer significant and continuous financial losses.
1212
As the antidote, Api3's OEV Network auctions off to OEV searchers the privilege to determine the order of operations around data feed updates.
13-
The resulting auction proceeds are paid to the dApp in the form of OEV Rewards.
13+
80% of resulting auction proceeds are paid to the dApp in the form of OEV Rewards.
1414
Assuming competitive auctions, OEV Rewards will be equal to the amount that would otherwise have been lost to the MEV bots.
1515

1616
Api3 data feeds work identically to traditional data feeds, which means that you do not need to modify your contracts in any way to use them.
-230 KB
Binary file not shown.
-39.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)