Skip to content

Commit 6de6de1

Browse files
authored
Mermaid diagram fixes (#80)
Fixes mermaid diagrams in 3 files
1 parent 48d19fc commit 6de6de1

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

docs/protocol/off-chain/app-sessions.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,13 @@ When an <Tooltip content={tooltipDefinitions.appChannel}>app session</Tooltip> i
250250

251251
```mermaid
252252
graph TB
253-
A[Alice's Unified Account<br/>Balance: 200 USDC]
253+
A["Alice's Unified Account<br/>Balance: 200 USDC"]
254254
255-
B[Create App Session<br/>Alice transfers 100 USDC]
255+
B["Create App Session<br/>Alice transfers 100 USDC"]
256256
257-
C[Alice's Unified Account<br/>Balance: 100 USDC]
257+
C["Alice's Unified Account<br/>Balance: 100 USDC"]
258258
259-
D[App Session Account<br/>Balance: 100 USDC<br/>(Beneficiary: Alice)]
259+
D["App Session Account<br/>Balance: 100 USDC<br/>(Beneficiary: Alice)"]
260260
261261
A -->|create_app_session| B
262262
B --> C

docs/protocol/off-chain/channel-methods.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Payment channels are the foundation of the Nitrolite protocol. They lock funds o
2222
stateDiagram-v2
2323
[*] --> Requesting: create_channel (off-chain)
2424
Requesting --> OnChain: User submits create() transaction
25-
OnChain --> ACTIVE: Contract locks user funds (status: open)
25+
OnChain --> ACTIVE: Contract locks user funds (status = open)
2626
2727
ACTIVE --> Resizing: resize_channel (optional)
2828
Resizing --> ACTIVE: User submits resize() transaction
@@ -31,7 +31,8 @@ stateDiagram-v2
3131
Closing --> [*]: Funds distributed
3232
3333
ACTIVE --> Disputing: challenge() (non-cooperative)
34-
Disputing --> [*]: Challenge period → close()
34+
Disputing --> [*]: Challenge period then close()
35+
3536
3637
```
3738

docs/protocol/on-chain/security.mdx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,18 @@ The security of <Tooltip content={tooltipDefinitions.nitroliteProtocol}>Nitrolit
7676

7777
```mermaid
7878
graph TB
79-
A[User has latest<br/>signed state] --> B{Other participant responsive?}
80-
B -->|Yes| C[Cooperative close<br/>Fast & cheap]
81-
B -->|No| D[Challenge with<br/>latest state]
82-
D --> E[Wait challenge<br/>period]
83-
E --> F{Communication continuation suggested?}
84-
F -->|No| G[Close & recover funds]
85-
F -->|Yes| H[Create and submit a<br/>newer state via `checkpoint(...)`]
79+
A["User has latest<br/>signed state"] --> B{"Other participant responsive?"}
80+
B -->|Yes| C["Cooperative close<br/>Fast & cheap"]
81+
B -->|No| D["Challenge with<br/>latest state"]
82+
D --> E["Wait challenge<br/>period"]
83+
E --> F{"Communication continuation suggested?"}
84+
F -->|No| G["Close & recover funds"]
85+
F -->|Yes| H["Create and submit a<br/>newer state via checkpoint(...)"]
8686
H --> E
8787
8888
style C fill:#90EE90
8989
style G fill:#90EE90
90+
9091
```
9192

9293
### State Validity

0 commit comments

Comments
 (0)