-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
125 changed files
with
118 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
[book] | ||
authors = ["msaug"] | ||
authors = ["msaug", "julio4"] | ||
language = "en" | ||
multilingual = false | ||
src = "src" | ||
title = "Starknet by Example" | ||
|
||
[build] | ||
# Eventual translations | ||
# extra-watch-dirs = ["po"] | ||
extra-watch-dirs = ["listings"] | ||
|
||
[preprocessor.gettext] | ||
after = ["links"] | ||
|
||
[output.html] | ||
git-repository-url = "https://github.com/NethermindEth/StarknetByExample/" | ||
edit-url-template = "https://github.com/NethermindEth/StarknetByExample/edit/main/{path}" | ||
playground.runnable = false | ||
playground.runnable = false | ||
fold.enable = true | ||
fold.level = 2 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
Summary | ||
|
||
- [Starknet by Example](./starknet-by-example.md) | ||
|
||
- [Basics of Smart Contracts in Cairo](./ch00/introduction.md) | ||
|
||
- [Constructor](./ch00/constructor.md) | ||
- [Visibility and Mutability](./ch00/visibility-mutability.md) | ||
- [Events](./ch00/events.md) | ||
- [Variables](./ch00/variables.md) | ||
- [Mappings](./ch00/mappings.md) | ||
- [Counter contract example](./ch00/counter.md) | ||
- [Storing Custom Types](./ch00/storing-custom-types.md) | ||
- [Custom types in entrypoints](./ch00/custom-types-in-entrypoints.md) | ||
- [Errors](./ch00/errors.md) | ||
- [Calling other contracts](./ch00/calling_other_contracts.md) | ||
- [Contract interfaces and Traits generation](./ch00/interfaces-traits.md) | ||
- [Contract testing](./ch00/contract-testing.md) | ||
|
||
- [Advanced concepts](./ch01/advanced-concepts.md) | ||
|
||
- [Writing to any storage slot](./ch01/write_to_any_slot.md) | ||
- [Storing Arrays](./ch01/storing_arrays.md) | ||
- [Struct as mapping key](./ch01/struct-mapping-key.md) | ||
|
||
- [Applications](./ch02/applications.md) | ||
|
||
- [Upgradeable Contract](./ch02/upgradeable_contract.md) | ||
- [Defi Vault](./ch02/simple_vault.md) | ||
|
||
- [Optimisations](./ch03/optimisations.md) | ||
|
||
- [Storage Optimisations](./ch03/store_using_packing.md) | ||
[Introduction](./starknet-by-example.md) | ||
|
||
<!-- ch00 --> | ||
# Getting Started | ||
<!-- - [Local environnement setup](./ch00/env_setup.md) --> | ||
- [Basics of a Starknet contract](./ch00/basics/introduction.md) | ||
- [Variables](./ch00/basics/variables.md) | ||
- [Constructor](./ch00/basics/constructor.md) | ||
- [Visibility and Mutability](./ch00/basics/visibility-mutability.md) | ||
- [Counter contract example](./ch00/basics/counter.md) | ||
- [Mappings](./ch00/basics/mappings.md) | ||
- [Errors](./ch00/basics/errors.md) | ||
- [Events](./ch00/basics/events.md) | ||
- [Storing Custom Types](./ch00/basics/storing-custom-types.md) | ||
- [Custom types in entrypoints](./ch00/basics/custom-types-in-entrypoints.md) | ||
- [Interfaces and interacting with contracts](./ch00/interacting/interacting.md) | ||
- [Contract interfaces and Traits generation](./ch00/interacting/interfaces-traits.md) | ||
- [Calling other contracts](./ch00/interacting/calling_other_contracts.md) | ||
- [Testing contracts](./ch00/testing/contract-testing.md) | ||
|
||
<!-- ch01 --> | ||
# Applications examples | ||
- [Upgradeable Contract](./ch01/upgradeable_contract.md) | ||
- [Defi Vault](./ch01/simple_vault.md) | ||
|
||
<!-- ch02 --> | ||
# Advanced concepts | ||
- [Writing to any storage slot](./ch02/write_to_any_slot.md) | ||
- [Storing Arrays](./ch02/storing_arrays.md) | ||
- [Struct as mapping key](./ch02/struct-mapping-key.md) | ||
- [Optimisations](./ch02/optimisations/optimisations.md) | ||
- [Storage Optimisations](./ch02/optimisations/store_using_packing.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Local environnement setup | ||
|
||
The current version of this book use `{{#include ../../.tool-versions}}` | ||
|
||
<!-- TODO --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Interacting with contracts | ||
|
||
In this chapter, we will see how to interact with contracts. |
Oops, something went wrong.