Skip to content

Commit 966f070

Browse files
authored
Merge pull request #83 from OpenZeppelin/update-relayer-docs
chore: update relayer docs, v1.2.x
2 parents f1cf40f + 0c41616 commit 966f070

94 files changed

Lines changed: 5955 additions & 718 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ content/
6464
```
6565

6666
Each product directory contains:
67+
6768
- `index.mdx` - Main documentation entry point
6869
- `changelog.mdx` - Version history and changes
6970
- Subdirectories for specific features/modules
@@ -107,32 +108,38 @@ Sidebar navigation is handled in `src/navigation/` where multiple navigation JSO
107108
### Key Components
108109

109110
#### Layout Components
111+
110112
- `DocsLayoutClient` - Client-side docs layout with sidebar
111113
- `BaseLayoutProps` - Shared layout configuration
112114
- `PageClient` - Individual page wrapper
113115

114116
#### UI Components
117+
115118
- `Card` & `SmallCard` - Content cards for homepage
116119
- `TOC` - Table of contents with scrollspy
117120
- `Search` - Search interface with custom results
118121
- `ThemeToggle` - Theme switching
119122
- `VersionBanner` - Version-specific messaging
120123

121124
#### Custom Icons
125+
122126
Product-specific icons located in `src/components/icons/`:
127+
123128
- Ethereum, Arbitrum, StarkNet, Stellar, Polkadot chains
124129
- Product icons for Contracts, Defender, Monitor, etc.
125130
- Tool icons for Wizard, Ethernaut, etc.
126131

127132
### Content Features
128133

129134
#### MDX Enhancements
135+
130136
- **Math Support**: LaTeX math rendering with KaTeX
131137
- **Mermaid Diagrams**: Flowcharts and diagrams
132138
- **Code Highlighting**: Multi-theme syntax highlighting
133139
- **OpenAPI Integration**: Automatic API documentation generation
134140

135141
#### Interactive Elements
142+
136143
- **OpenZeppelin Wizard**: Embedded contract generation tool
137144
- **Code Examples**: Copy-to-clipboard functionality
138145
- **Version Switching**: Multi-version documentation support
@@ -178,8 +185,6 @@ node scripts/generate-api-docs.js \
178185
--examples-output examples
179186
```
180187

181-
This wil lexport the contents to
182-
183188
### Automated Setup
184189

185190
In the case you want to setup an automated GitHub workflow to create these API docs visit the [docs-api-generation-workflows](https://github.com/OpenZeppelin/docs-api-generation-workflows) for more info. This repo (`OpenZeppelin/docs`) is the `Docs Receiver` side of the equation.

content/relayer/1.1.x/changelog.mdx

Lines changed: 3 additions & 240 deletions
Large diffs are not rendered by default.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: Execute a plugin and receive the sanitized result
3+
full: true
4+
_openapi:
5+
method: POST
6+
route: /api/v1/plugins/{plugin_id}/call
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents:
11+
- content: >-
12+
Logs and traces are only returned when the plugin is configured with
13+
`emit_logs` / `emit_traces`.
14+
15+
Plugin-provided errors are normalized into a consistent payload
16+
(`code`, `details`) and a derived
17+
18+
message so downstream clients receive a stable shape regardless of how
19+
the handler threw.
20+
---
21+
22+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
23+
24+
Logs and traces are only returned when the plugin is configured with `emit_logs` / `emit_traces`.
25+
Plugin-provided errors are normalized into a consistent payload (`code`, `details`) and a derived
26+
message so downstream clients receive a stable shape regardless of how the handler threw.
27+
28+
<APIPage document={"https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-relayer/refs/heads/release-v1.2.0/openapi.json"} operations={[{"path":"/api/v1/plugins/{plugin_id}/call","method":"post"}]} webhooks={[]} hasHead={false} />
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Cancels a specific transaction by its ID.
3+
full: true
4+
_openapi:
5+
method: DELETE
6+
route: /api/v1/relayers/{relayer_id}/transactions/{transaction_id}
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents: []
11+
---
12+
13+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
14+
15+
<APIPage document={"https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-relayer/refs/heads/release-v1.2.0/openapi.json"} operations={[{"path":"/api/v1/relayers/{relayer_id}/transactions/{transaction_id}","method":"delete"}]} webhooks={[]} hasHead={false} />
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Creates a new notification.
3+
full: true
4+
_openapi:
5+
method: POST
6+
route: /api/v1/notifications
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents: []
11+
---
12+
13+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
14+
15+
<APIPage document={"https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-relayer/refs/heads/release-v1.2.0/openapi.json"} operations={[{"path":"/api/v1/notifications","method":"post"}]} webhooks={[]} hasHead={false} />
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Creates a new relayer.
3+
full: true
4+
_openapi:
5+
method: POST
6+
route: /api/v1/relayers
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents: []
11+
---
12+
13+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
14+
15+
<APIPage document={"https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-relayer/refs/heads/release-v1.2.0/openapi.json"} operations={[{"path":"/api/v1/relayers","method":"post"}]} webhooks={[]} hasHead={false} />
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Creates a new signer.
3+
full: true
4+
_openapi:
5+
method: POST
6+
route: /api/v1/signers
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents: []
11+
---
12+
13+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
14+
15+
<APIPage document={"https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-relayer/refs/heads/release-v1.2.0/openapi.json"} operations={[{"path":"/api/v1/signers","method":"post"}]} webhooks={[]} hasHead={false} />
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Deletes a notification by ID.
3+
full: true
4+
_openapi:
5+
method: DELETE
6+
route: /api/v1/notifications/{notification_id}
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents: []
11+
---
12+
13+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
14+
15+
<APIPage document={"https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-relayer/refs/heads/release-v1.2.0/openapi.json"} operations={[{"path":"/api/v1/notifications/{notification_id}","method":"delete"}]} webhooks={[]} hasHead={false} />
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Deletes all pending transactions for a specific relayer.
3+
full: true
4+
_openapi:
5+
method: DELETE
6+
route: /api/v1/relayers/{relayer_id}/transactions/pending
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents: []
11+
---
12+
13+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
14+
15+
<APIPage document={"https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-relayer/refs/heads/release-v1.2.0/openapi.json"} operations={[{"path":"/api/v1/relayers/{relayer_id}/transactions/pending","method":"delete"}]} webhooks={[]} hasHead={false} />
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Deletes a relayer by ID.
3+
full: true
4+
_openapi:
5+
method: DELETE
6+
route: /api/v1/relayers/{relayer_id}
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents: []
11+
---
12+
13+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
14+
15+
<APIPage document={"https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-relayer/refs/heads/release-v1.2.0/openapi.json"} operations={[{"path":"/api/v1/relayers/{relayer_id}","method":"delete"}]} webhooks={[]} hasHead={false} />

0 commit comments

Comments
 (0)