Skip to content

Commit

Permalink
docs: including sandbox diagrams in the sandbox section (#2573)
Browse files Browse the repository at this point in the history
A while ago I've created diagrams as part of [this
issue](#1802) but
they were forgotten. In this PR I include them in the sandbox section.
  • Loading branch information
benesjan authored Sep 28, 2023
1 parent 89e280a commit 2fa143e
Show file tree
Hide file tree
Showing 3 changed files with 5,867 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/docs/dev_docs/getting_started/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ In this section, we created 2 instances of the `TokenContract` contract abstract

We can see that each account has the expected balance of tokens.

### Diagram of calling an unconstrained (view) function
<img src="/img/sandbox_unconstrained_function.svg" alt="Unconstrained function call" />

## Creating and submitting transactions

Now lets transfer some funds from Alice to Bob by calling the `transfer` function on the contract. This function takes 4 arguments:
Expand Down Expand Up @@ -346,6 +349,9 @@ That's it! We have successfully deployed a private token contract to an instance

You can find the [complete tutorial code here](https://github.com/AztecProtocol/dev-rel/tree/main/tutorials/sandbox-tutorial/token).

### Diagram of sending a transaction
<img src="/img/sandbox_sending_a_tx.svg" alt="Sending a transaction" />

## Next Steps

Here we showed how to interact with the sandbox, but didn't go into details on how to write your own contract or any relevant setup needed for it.
Expand Down
Loading

0 comments on commit 2fa143e

Please sign in to comment.