Skip to content

Commit 55c5dcc

Browse files
committed
broken links
1 parent 1858c05 commit 55c5dcc

File tree

8 files changed

+23
-24
lines changed

8 files changed

+23
-24
lines changed

docs/docs/aztec/writing_efficient_contracts.md

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

5252
#### Profiling using FlameGraph
5353

54-
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/advanced/profiling_transactions).
54+
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/advanced/how_to_profile_transactions).
5555

5656
### L2 Data costs
5757

docs/docs/developers/guides/local_env/sandbox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Note that you do not need to restart the sandbox in order to start sending prove
206206
If this is the first time you are sending transactions with proving enabled, it will take a while to download a CRS file (which is several MBs) that is required for proving.
207207

208208
:::note
209-
You can also profile your transactions to get gate count, if you don't want to prove your transactions but check how many constraints it is. Follow the [guide here](../../guides/smart_contracts/advanced/profiling_transactions.md)
209+
You can also profile your transactions to get gate count, if you don't want to prove your transactions but check how many constraints it is. Follow the [guide here](../../guides/smart_contracts/advanced/how_to_profile_transactions.md)
210210
:::
211211

212212
## Running Multiple PXEs in the Sandbox

docs/docs/developers/guides/smart_contracts/advanced/common_patterns.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ pub fn verify_private_authwit(self, inner_hash: Field) -> Field {
5959
self.context.version(),
6060
inner_hash,
6161
);
62-
62+
6363
// 2. Verify the message is valid
6464
let valid_fn = self.is_valid_impl;
6565
assert(valid_fn(self.context, message_hash), "Message not authorized by account");
66-
66+
6767
// 3. Return the selector (nullifier is emitted automatically)
6868
IS_VALID_SELECTOR
6969
}
@@ -94,7 +94,7 @@ fn execute_private_action(
9494
) -> Field {
9595
// Read public storage value
9696
let config = storage.config.read();
97-
97+
9898
// Use the value for validation
9999
assert_eq(config.target_contract, target, "Target address mismatch");
100100
}
@@ -148,11 +148,11 @@ fn shield(amount: Field, secret_hash: Field) {
148148
fn redeem_shield(amount: Field, secret: Field) {
149149
// Verify the secret matches
150150
let secret_hash = poseidon2_hash([secret]);
151-
151+
152152
// Consume the transparent note
153153
let note = storage.pending_shields.get_note(secret_hash);
154154
storage.pending_shields.remove(note);
155-
155+
156156
// Create private note for the user
157157
let private_note = MyNote::new(amount, context.msg_sender());
158158
storage.private_balances.at(context.msg_sender()).insert(private_note);
@@ -167,7 +167,7 @@ fn redeem_shield(amount: Field, secret: Field) {
167167
#[private]
168168
fn create_note_with_log(value: Field, owner: AztecAddress) {
169169
let note = MyNote::new(value, owner);
170-
170+
171171
// Emit encrypted log so recipient can discover the note
172172
storage.notes.at(owner).insert(note).emit(
173173
encode_and_encrypt_note(&mut context, owner)
@@ -230,11 +230,11 @@ impl MyNote {
230230
fn create_shared_note(value: Field, users: [AztecAddress; 3]) {
231231
// Generate random nullifier that all users will know
232232
let shared_nullifier = unsafe { random() };
233-
233+
234234
// Create note with shared nullifier
235235
let note = SharedNote::new(value, shared_nullifier);
236236
storage.shared_notes.insert(note);
237-
237+
238238
// Encrypt note for each user
239239
for user in users {
240240
emit_encrypted_log(&mut context, user, note);
@@ -267,7 +267,7 @@ fn execute_once_per_user(param: Field) {
267267
// Get user's nullifier secret
268268
let msg_sender_npk_m_hash = get_public_keys(context.msg_sender()).npk_m.hash();
269269
let secret = context.request_nsk_app(msg_sender_npk_m_hash);
270-
270+
271271
// Derive nullifier with randomness
272272
let nullifier = poseidon2_hash([context.msg_sender().to_field(), secret]);
273273
context.push_nullifier(nullifier);
@@ -300,6 +300,6 @@ fn good_private_to_public() {
300300

301301
## Next steps
302302

303-
- Learn about [note discovery mechanisms](../../../aztec/concepts/advanced/storage/note_discovery.md)
303+
- Learn about [note discovery mechanisms](../../../../aztec/concepts/advanced/storage/note_discovery.md)
304304
- Implement [cross-chain messaging](../how_to_communicate_cross_chain.md)
305305
- Explore [authwit in detail](../how_to_use_authwit.md)

docs/docs/developers/guides/smart_contracts/advanced/profiling_transactions.md renamed to docs/docs/developers/guides/smart_contracts/advanced/how_to_profile_transactions.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fn check_conditions_optimized() {
193193
storage.value2.get(),
194194
storage.value3.get()
195195
];
196-
196+
197197
for value in values {
198198
assert(value > 0);
199199
}
@@ -289,6 +289,5 @@ await contract.methods.function().profile({
289289

290290
## Next steps
291291

292-
- Learn about [gas optimization techniques](../../../aztec/concepts/transactions.md)
293-
- Explore [circuit optimization patterns](../../../aztec/concepts/circuits.md)
292+
- Learn about [gas optimization techniques](../../../../aztec/concepts/transactions.md)
294293
- Review [benchmarking best practices](../how_to_test_contracts.md)

docs/docs/developers/guides/smart_contracts/advanced/get_notes.md renamed to docs/docs/developers/guides/smart_contracts/advanced/how_to_retrieve_filter_notes.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub fn filter_min_value(
9393
) -> [Option<RetrievedNote<MyNote>>; MAX_NOTE_HASH_READ_REQUESTS_PER_CALL] {
9494
let mut selected_notes = [Option::none(); MAX_NOTE_HASH_READ_REQUESTS_PER_CALL];
9595
let mut num_selected = 0;
96-
96+
9797
for i in 0..notes.len() {
9898
if notes[i].is_some() & notes[i].unwrap_unchecked().note.get_value() >= min_value {
9999
selected_notes[num_selected] = notes[i];
@@ -194,9 +194,9 @@ unconstrained fn read_notes(comparator: u8, value: Field) -> BoundedVec<MyNote,
194194
fn process_notes(owner: AztecAddress) {
195195
let options = NoteGetterOptions::new()
196196
.select(MyNote::properties().owner, Comparator.EQ, owner);
197-
197+
198198
let notes = storage.my_notes.at(owner).get_notes(options);
199-
199+
200200
for note in notes {
201201
// Process each note
202202
let value = note.get_value();
@@ -243,7 +243,7 @@ where
243243
.sort(MyNote::properties().value, SortOrder.DESC)
244244
.set_limit(1)
245245
);
246-
246+
247247
assert(notes.len() > 0, "No notes found");
248248
notes[0]
249249
}
@@ -252,5 +252,5 @@ where
252252
## Next steps
253253

254254
- Learn about [custom note implementations](../how_to_implement_custom_notes.md)
255-
- Explore [note discovery mechanisms](../../../aztec/concepts/advanced/storage/note_discovery.md)
256-
- Understand [note lifecycle](../../../aztec/concepts/advanced/storage/indexed_merkle_tree.mdx)
255+
- Explore [note discovery mechanisms](../../../../aztec/concepts/advanced/storage/note_discovery.md)
256+
- Understand [note lifecycle](../../../../aztec/concepts/advanced/storage/indexed_merkle_tree.mdx)

docs/docs/developers/guides/smart_contracts/how_to_implement_custom_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ For better performance:
487487

488488
- [What the `#[note]` macro does](../../../aztec/smart_contracts/functions/attributes.md#implementing-notes)
489489
- [Note lifecycle and nullifiers](../../../aztec/concepts/advanced/storage/indexed_merkle_tree.mdx)
490-
- [Advanced note patterns](./advanced/get_notes.md)
490+
- [Advanced note patterns](./advanced/how_to_retrieve_filter_notes.md)
491491
- [Note portals for L1 communication](./how_to_communicate_cross_chain.md)
492492
- [Macros reference](../../../developers/reference/smart_contract_reference/macros.md)
493493
- [Keys, including npk_m_hash](../../../aztec/concepts/accounts/keys.md)

docs/docs/developers/guides/smart_contracts/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ help you write Noir programs to deploy on the Aztec network.
2727
aztec = { git="https://github.com/AztecProtocol/aztec-packages/", tag="#include_aztec_version", directory="noir-projects/aztec-nr/aztec" }
2828
```
2929

30-
2. [Profile](./advanced/profiling_transactions.md) the private functions in your contract to get
30+
2. [Profile](./advanced/how_to_profile_transactions.md) the private functions in your contract to get
3131
a sense of how long generating client side proofs will take
3232
3. Write unit tests [directly in Noir](how_to_test_contracts.md) and end-to-end
3333
tests [with TypeScript](../js_apps/test.md)

docs/docs/developers/tutorials/contract_tutorials/counter_contract.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ SERVE=1 aztec flamegraph target/counter-Counter.json increment
164164

165165
Note the total gate count at the bottom of the image. The image is interactive; you can hover over different parts of the graph to see the full function name of the execution step and its gate count. This tool also provides insight into the low-level operations that are performed in the private function. Don't worry about the details of the internals of the function right now, just be aware that the more complex the function, the more gates it will use and try out the flamegraph tool on your own functions.
166166

167-
Read more about [profiling transactions with the flamegraph tool](../../guides/smart_contracts/advanced/profiling_transactions.md).
167+
Read more about [profiling transactions with the flamegraph tool](../../guides/smart_contracts/advanced/how_to_profile_transactions.md).
168168

169169
For more information about writing efficient private functions, see [this page](https://noir-lang.org/docs/explainers/explainer-writing-noir) of the Noir documentation.
170170

0 commit comments

Comments
 (0)