Skip to content

Commit

Permalink
add example and links
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivo25 committed May 15, 2024
1 parent 2ea2a91 commit 3787587
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/zkapps/o1js/offchain-storage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,13 @@ class MyContract extends SmartContract {
```

Currently, Offchain storage types of Field support `field.get()` and `field.set(newValue)`, while maps support `map.get(key)` and `map.set(key, newValue)`.

## Building a Smart Contract with Offchain Storage

## Additional Resources

This feature remains experimental, indicating that it is currently under active development. For further insight into its implementation, please refer to the following pull requests and examples on GitHub:

- [Experimental Offchain Storage part 1](https://github.com/o1-labs/o1js/pull/1630)
- [Experimental Offchain Storage part 2](https://github.com/o1-labs/o1js/pull/1652)
- [An end-to-end example utilizing Offchain storage](https://github.com/o1-labs/o1js/blob/main/src/lib/mina/actions/offchain-contract.unit-test.ts)

0 comments on commit 3787587

Please sign in to comment.