Skip to content

Commit 67cde1a

Browse files
committed
update tutorials
1 parent cadc2b7 commit 67cde1a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+285
-1127
lines changed

docs/docs-words.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,3 +345,5 @@ woooh
345345
zcash
346346
Zcash
347347
Zybil
348+
nothin
349+
whoooaa

docs/docs/aztec/concepts/accounts/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ A request for executing an action requires:
7373
- The initial function to call (usually `entrypoint`).
7474
- The arguments (which encode the private and public calls to run as well as any signatures).
7575

76-
Read more about how to write an account contract [here](../../../developers/tutorials/codealong/contract_tutorials/write_accounts_contract.md).
76+
Read more about how to write an account contract [here](../../../developers/tutorials/contract_tutorials/write_accounts_contract.md).
7777

7878
### Non-standard entrypoints
7979

@@ -101,7 +101,7 @@ Account contracts are tightly coupled to the wallet software that users use to i
101101

102102
When a user wants to interact with the network's **public** state, they need to deploy their account contract. A contract instance is considered to be publicly deployed when it has been broadcasted to the network via the canonical `ContractInstanceRegistry` contract, which also emits a deployment nullifier associated to the deployed instance.
103103

104-
However, to send fully **private** transactions, it's enough to initialize the account contract (public deployment is not needed). The default state for any given address is to be uninitialized, meaning a function with the [initializer annotation](../../../developers/tutorials/codealong/contract_tutorials/nft_contract.md#initializer) has not been called. The contract is initialized when one of the functions marked with the `#[initializer]` annotation has been invoked. Multiple functions in the contract can be marked as initializers. Contracts may have functions that skip the initialization check (marked with `#[noinitcheck]`).
104+
However, to send fully **private** transactions, it's enough to initialize the account contract (public deployment is not needed). The default state for any given address is to be uninitialized, meaning a function with the [initializer annotation](../../../developers/tutorials/contract_tutorials/nft_contract.md#initializer) has not been called. The contract is initialized when one of the functions marked with the `#[initializer]` annotation has been invoked. Multiple functions in the contract can be marked as initializers. Contracts may have functions that skip the initialization check (marked with `#[noinitcheck]`).
105105

106106
Account deployment and initialization are not required to receive notes. The user address is deterministically derived from the encryption public key and the account contract they intend to deploy, so that funds can be sent to an account that hasn't been deployed yet.
107107

docs/docs/aztec/concepts/fees.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ These are:
6161

6262
A fee payer will have bridged fee-juice from L1. On Aztec this fee asset is non-transferrable, and only deducted by the protocol to pay for fees. A user can claim bridged fee juice and use it to pay for transaction fees in the same transaction.
6363

64-
The mechanisms for bridging is the same as any other token. For more on this concept see the start of the [Token Bridge Tutorial](../../developers/tutorials/codealong/js_tutorials/token_bridge.md) where it describes the components and how bridging works (under the hood this makes use of [portals](https://docs.aztec.network/aztec/concepts/communication/portals)).
64+
The mechanisms for bridging is the same as any other token. For more on this concept see the start of the [Token Bridge Tutorial](../../developers/tutorials/js_tutorials/token_bridge.md) where it describes the components and how bridging works (under the hood this makes use of [portals](https://docs.aztec.network/aztec/concepts/communication/portals)).
6565

6666
### Payment methods
6767

@@ -84,4 +84,4 @@ The fees section of the protocol specification explains this distribution of fee
8484

8585
More comprehensive technical details for implementers will be available from the updated protocol specifications soon.
8686

87-
For a guide showing ways to pay fees programmatically, see [here](../../developers/guides/js_apps/pay_fees).
87+
For a guide showing ways to pay fees programmatically, see [here](../../developers/guides/js_apps/how_to_pay_fees).

docs/docs/aztec/concepts/wallets/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Overview of wallet responsibilities in Aztec including account mana
77

88
On this page we will cover the main responsibilities of a wallet in the Aztec network.
99

10-
Refer to [writing an account contract](../../../developers/tutorials/codealong/contract_tutorials/write_accounts_contract.md) for a tutorial on how to write a contract to back a user's account.
10+
Refer to [writing an account contract](../../../developers/tutorials/contract_tutorials/write_accounts_contract.md) for a tutorial on how to write a contract to back a user's account.
1111

1212
Go to [wallet architecture](./architecture.md) for an overview of its architecture and a reference on the interface a wallet must implement.
1313

docs/docs/aztec/smart_contracts/contract_creation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ This modular approach to contract deployment creates a flexible system that supp
8484

8585
## Further reading
8686

87-
To see how to deploy a contract in practice, check out the [dapp development tutorial](../../developers/tutorials/codealong/js_tutorials/simple_dapp/index.md).
87+
To see how to deploy a contract in practice, check out the [dapp development tutorial](../../developers/tutorials/js_tutorials/aztecjs-getting-started.md).

docs/docs/aztec/smart_contracts/contract_structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ Here's a common layout for a basic Aztec.nr Contract project:
3939
```
4040

4141
- See the vanilla Noir docs for [more info on packages](https://noir-lang.org/docs/noir/modules_packages_crates/crates_and_packages).
42-
- You can review the structure of a complete contract in the NFT contract tutorial [here](../../developers/tutorials/codealong/contract_tutorials/nft_contract.md).
42+
- You can review the structure of a complete contract in the NFT contract tutorial [here](../../developers/tutorials/contract_tutorials/nft_contract.md).

docs/docs/aztec/smart_contracts/functions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Overview of Aztec contract functions, including private, public, an
77

88
Functions serve as the building blocks of smart contracts. Functions can be either **public**, ie they are publicly available for anyone to see and can directly interact with public state, or **private**, meaning they are executed completely client-side in the [PXE](../../concepts/pxe/index.md). Read more about how private functions work [here](./attributes.md#private-functions-private).
99

10-
For a more practical guide of using multiple types of functions, follow the [NFT tutorial](../../../developers/tutorials/codealong/contract_tutorials/nft_contract.md).
10+
For a more practical guide of using multiple types of functions, follow the [NFT tutorial](../../../developers/tutorials/contract_tutorials/nft_contract.md).
1111

1212
Currently, any function is "mutable" in the sense that it might alter state. However, we also support static calls, similarly to EVM. A static call is essentially a call that does not alter state (it keeps state static).
1313

docs/docs/aztec/smart_contracts/functions/visibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Understand function visibility modifiers in Aztec and how they affe
77

88
In Aztec there are multiple different types of visibility that can be applied to functions. Namely we have `data visibility` and `function visibility`. This page explains these types of visibility.
99

10-
For a practical guide of using multiple types of data and function visibility, follow the [NFT tutorial](../../../developers/tutorials/codealong/contract_tutorials/nft_contract.md).
10+
For a practical guide of using multiple types of data and function visibility, follow the [NFT tutorial](../../../developers/tutorials/contract_tutorials/nft_contract.md).
1111

1212
### Data Visibility
1313

docs/docs/aztec/smart_contracts_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ There are no plans for EVM compatibility or to support Solidity in Aztec. The pr
2626

2727
## Further reading
2828

29-
Jump in and write your first smart contract [here](../developers/tutorials/codealong/contract_tutorials/counter_contract.md)
29+
Jump in and write your first smart contract [here](../developers/tutorials/contract_tutorials/counter_contract.md)

docs/docs/aztec/writing_efficient_contracts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ When private functions are called, the overhead of a "kernel circuit" is added e
5050

5151
#### Profiling using FlameGraph
5252

53-
Measuring the gate count across a private function can be seen at the end of the counter tutorial [here](../developers/tutorials/codealong/contract_tutorials/counter_contract#investigate-the-increment-function). Full profiling and flamegraph commands explained [here](../developers/guides/smart_contracts/profiling_transactions).
53+
Measuring the gate count across a private function can be seen at the end of the counter tutorial [here](../developers/tutorials/contract_tutorials/counter_contract#investigate-the-increment-function). Full profiling and flamegraph commands explained [here](../developers/guides/smart_contracts/profiling_transactions).
5454

5555
### L2 Data costs
5656

0 commit comments

Comments
 (0)