Skip to content

Commit 2de0cc8

Browse files
committed
doc: feedbacks
1 parent 2f687f3 commit 2de0cc8

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

book/docs/custom-chains.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Custom chains
3+
sidebar_position: 8
4+
---
5+
6+
If you want to run SP1 Contract Call on a custom EVM chain, you can use the [`with_genesis()`] function while [building the `EvmSketch`](https://succinctlabs.github.io/sp1-contract-call/api/sp1_cc_host_executor/struct.EvmSketch.html#method.builder). The [`Genesis`] enum allows to specify a custom chain by using its genesis JSON.
7+
8+
:::tip
9+
10+
You can find examples of genesis JSON [here](https://github.com/succinctlabs/rsp/tree/main/bin/host/genesis).
11+
12+
:::
13+
14+
15+
16+
17+
18+
[`with_genesis()`]: pathname:///api/sp1_cc_host_executor/struct.EvmSketchBuilder.html#method.with_genesis
19+
[`Genesis`]: pathname:///api/sp1_cc_host_executor/enum.Genesis.html

book/docs/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sol! {
2323
}
2424
```
2525

26-
You'll nee to interact with the module generated by the `sol!` macro in both the host and the client, so it's a good practice to have the code above in a shared lib accessible in both environments.
26+
You'll need to interact with the module generated by the `sol!` macro in both the host and the client, so it's a good practice to have the code above in a shared lib accessible in both environments.
2727

2828
### Host-Side Event Processing
2929

book/docs/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Examples
3-
sidebar_position: 7
3+
sidebar_position: 8
44
---
55

66
## Uniswap (basic)

book/docs/proof-verification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let sketch = EvmSketch::builder()
3535

3636
### Chaining
3737

38-
The EIP-4788 anchor mechanism can be used to query view call state from blocks beyond the 8191 block limit by separating the anchor into two components: an execution block and a reference block. While the reference block acts as the anchor and must remain within the ~27 hour onchain validation timeframe, the execution block can extend significantly further into the past—covering periods of days, weeks, or even months.
38+
The EIP-4788 anchor mechanism can be used to query view call state from blocks beyond the 8191 block limit by separating the anchor into two components: an execution block and a reference block. While the reference block acts as the anchor and must remain within the ~27 hour onchain validation timeframe, the execution block can extend significantly further into the past—up to the Cancun hardfork (March 13, 2024 on Mainnet).
3939

4040
These two blocks have an inherent relationship: the execution block must always be an ancestor of the reference block. By validating a chain of beacon block roots between these two blocks, you can prove that the execution block exists within the committed chain.
4141

0 commit comments

Comments
 (0)