Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

fix: fix mermaid diagram in readme #1615

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,39 +460,35 @@ sequenceDiagram
note over A: Check EVM tx signature

A ->> RPC: eth_send_raw_unsigned_tx(...)
note over RPC: Decode tx<br><br>Check chain ID, nonce, gas params,<br>sender native balance, ...
note over RPC: Decode tx<br>Check chain ID, nonce, gas params,<br>sender native balance, ...

RPC ->> RPC: eth_send_transaction(...)
note over RPC: Verify caller address<br>(via safe_get_evm_address)

RPC ->> K: Kakarot.eth_call(...)

K ->> A: get_bytecode()
A ->> K:
A ->> K: Bytecode returned

K ->> I: Interpreter.execute(...)

note over I: Init state structs: (Message, EVM, stack, memory, ...)<br>Init called account if needed
note over I: Init state structs:<br>Message, EVM, stack, memory, ...<br>Init called account if needed

loop Interpreter loop
Note over I: exec_opcode(...) is the function handling individual opcodes
note over I: exec_opcode(...) is the function handling individual opcodes
end


note over I: State finalization<br>(squash memory dict, apply state balance changes, ...)
note over I: State finalization:<br>squash memory dict, apply state balance changes, ...

I ->> K: EVM state:<br>result, stack, memory, gas_used, ...

rect rgb(240,240,240)
K ->> K: Starknet.commit()
note over K: Update accounts nonce
note over K: Commit accounts storage
note over K: Emit events
note over K: Perform ERC20 balance transfers
note over K: Update accounts nonce<br>Commit accounts storage<br>Emit events<br>Perform ERC20 balance transfers
end

K ->> A: returndata, success, gas used
note over A: Emit transaction_executed event
note over A: Emit transaction_executed event
A ->> U: returndata
```

Expand Down
Loading