You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,12 +140,18 @@ Then, from the root directory of the repository, run
140
140
```RUST_LOG=info cargo run --bin [example] --release```
141
141
142
142
where `[example]` is one of the following
143
-
*`uniswap`
143
+
*`uniswap-basic`
144
144
* Fetches the price of the UNI / WETH pair on Uniswap V3. By default, this does not generate a proof.
145
145
* Running `RUST_LOG=info cargo run --bin [example] --release -- --prove` will generate a plonk proof. This requires
146
146
significant computational resources, so we recommend using the [SP1 Prover network](https://docs.succinct.xyz/docs/generating-proofs/prover-network).
147
147
* Outputs a file called [plonk-fixture.json](examples/uniswap/contracts/src/fixtures/plonk-fixture.json), which contains everything you need to verify the proof on chain.
148
-
* To see an example of on-chain verification, take a look at the [contracts](./examples/uniswap/contracts/) directory.
148
+
*`uniswap-onchain-verify`
149
+
* Fetches the price of the WETH / USDC pair on Uniswap V3 on Sepolia.
150
+
* This example demonstrate on-chain verification, with the following variations:
151
+
* By default, the `blockhash()` opcode is used, allowing to verify up to 256 blocks old.
152
+
* If you provides a Beacon RPC endpoint with the `--beacon-sepolia-rpc-url` argument, the proof will be verified on chain with the beacon root using [EIP-4788](https://eips.ethereum.org/EIPS/eip-4788), up to 8191 blocks old (~27h).
153
+
* The window can even be extended up to the Cancun hardfork by chaining beacon roots (see the `--reference-block` argument).
154
+
* The contract can be found at the [contracts](./examples/uniswap/contracts/) directory.
149
155
*`multiplexer`
150
156
* Calls a contract that fetches the prices of many different collateral assets.
151
157
* The source code of this contract is found [here](./examples/multiplexer/ZkOracleHelper.sol).
0 commit comments