Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/miden-bank/00-project-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,4 +381,4 @@ Your bank can be created, but doesn't do anything useful yet. In the next parts,

## Next Steps

Now that your project is set up, let's dive deeper into account components and storage in [Part 1: Account Components and Storage](./account-components).
Now that your project is set up, let's dive deeper into account components and storage in [Part 1: Account Components and Storage](./01-account-components.md).
2 changes: 1 addition & 1 deletion docs/src/miden-bank/01-account-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,4 +505,4 @@ See the complete bank account implementation in [contracts/bank-account/src/lib.

## Next Steps

Now that you understand account components and storage, let's learn how to define business rules with [Part 2: Constants and Constraints](./constants-constraints).
Now that you understand account components and storage, let's learn how to define business rules with [Part 2: Constants and Constraints](./02-constants-constraints.md).
2 changes: 1 addition & 1 deletion docs/src/miden-bank/02-constants-constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,4 +511,4 @@ See the complete constraint implementation in [contracts/bank-account/src/lib.rs

## Next Steps

Now that you can define and enforce business rules, let's learn how to handle assets in [Part 3: Asset Management](./asset-management).
Now that you can define and enforce business rules, let's learn how to handle assets in [Part 3: Asset Management](./03-asset-management.md).
2 changes: 1 addition & 1 deletion docs/src/miden-bank/03-asset-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -757,4 +757,4 @@ See the complete deposit and withdraw implementations in [contracts/bank-account

## Next Steps

Now that you understand asset management, let's learn how to trigger these operations with [Part 4: Note Scripts](./note-scripts).
Now that you understand asset management, let's learn how to trigger these operations with [Part 4: Note Scripts](./04-note-scripts.md).
4 changes: 2 additions & 2 deletions docs/src/miden-bank/04-note-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl DepositNote {
```

:::info Cross-Component Calls
The `#[account(bank_account::Bank)] pub struct Wallet;` declaration and the `account.deposit(...)` call use Miden's cross-component binding system. The `#[account(...)]` macro wraps the consuming account so the note can call the bank's `Bank` methods directly. We'll explain exactly how this works in [Part 5: Cross-Component Calls](./cross-component-calls). For now, just know that building `bank-account` first generates the WIT files that `deposit-note` binds against.
The `#[account(bank_account::Bank)] pub struct Wallet;` declaration and the `account.deposit(...)` call use Miden's cross-component binding system. The `#[account(...)]` macro wraps the consuming account so the note can call the bank's `Bank` methods directly. We'll explain exactly how this works in [Part 5: Cross-Component Calls](./05-cross-component-calls.md). For now, just know that building `bank-account` first generates the WIT files that `deposit-note` binds against.
:::

### The #[note] and #[note_script] Attributes
Expand Down Expand Up @@ -573,4 +573,4 @@ See the complete note script implementations:

## Next Steps

Now that you understand note scripts, let's learn how they call account methods in [Part 5: Cross-Component Calls](./cross-component-calls).
Now that you understand note scripts, let's learn how they call account methods in [Part 5: Cross-Component Calls](./05-cross-component-calls.md).
2 changes: 1 addition & 1 deletion docs/src/miden-bank/05-cross-component-calls.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,4 @@ See the complete `miden-project.toml` configurations:

## Next Steps

Now that you understand cross-component calls, let's create the transaction script that initializes the bank in [Part 6: Transaction Scripts](./transaction-scripts).
Now that you understand cross-component calls, let's create the transaction script that initializes the bank in [Part 6: Transaction Scripts](./06-transaction-scripts.md).
2 changes: 1 addition & 1 deletion docs/src/miden-bank/06-transaction-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,4 +576,4 @@ See the complete transaction script implementation in [contracts/init-tx-script/

## Next Steps

Now that you understand transaction scripts, let's learn the advanced topic of creating output notes in [Part 7: Creating Output Notes](./output-notes).
Now that you understand transaction scripts, let's learn the advanced topic of creating output notes in [Part 7: Creating Output Notes](./07-output-notes.md).
2 changes: 1 addition & 1 deletion docs/src/miden-bank/07-output-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -827,4 +827,4 @@ See the complete implementation in the [examples/miden-bank](https://github.com/

## Next Steps

Now that you've built all the components, let's see how they work together in [Part 8: Complete Flows](./complete-flows).
Now that you've built all the components, let's see how they work together in [Part 8: Complete Flows](./08-complete-flows.md).