From 8dd10ba4493bb0baa6d76516a81c0f4b6f2765e1 Mon Sep 17 00:00:00 2001 From: sergey-melnychuk <8093171+sergey-melnychuk@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:45:48 +0200 Subject: [PATCH] doc: update stateless call diagram --- doc/architecture.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/doc/architecture.md b/doc/architecture.md index 457b0482..d3924e46 100644 --- a/doc/architecture.md +++ b/doc/architecture.md @@ -68,13 +68,20 @@ Blockifier->>Blockifier: Create Starknet client Blockifier->>Blockifier: Create State reader & write loop Stateless Execution Blockifier->>State Reader: State Request -State Reader->>(Starknet RPC): Query State -(Starknet RPC)->>State Reader: State Result -State Reader->>(Starknet RPC): Query State Proof -(Starknet RPC)->>State Reader: State Proof -State Reader->>State Reader: Verify State Proof +State Reader->>(Starknet RPC): starknet_getStorageAt +(Starknet RPC)->>State Reader: storage result +State Reader->>(Starknet RPC): pathfinder_getProof +(Starknet RPC)->>State Reader: merkle proof +State Reader->>State Reader: verify merkle proof State Reader->>Blockifier: State Result end + +(RPC Server)->>Beerus: starknet_getStorageAt +Beerus->>(Starknet RPC): pathfinder_getProof +(Starknet RPC)->>Beerus: merkle proof +Beerus->>Beerus: verify merkle proof +Beerus->>(RPC Server): storage result + Note right of (RPC Server): Other methods are proxied (RPC Server)->>Beerus: starknet_* Beerus->>(Starknet RPC): (proxy the request)