Skip to content

Commit 42001d3

Browse files
Merge pull request #45 from OpenZeppelin/chore/link-fragments
chore/link fragments
2 parents 41b282a + 20fe468 commit 42001d3

Some content is hidden

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

53 files changed

+97
-82
lines changed

content/community-contracts/utilities.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Multiple libraries and general purpose utilities included in the community versi
88

99
### Validating Typed Data Signatures
1010

11-
_For prior knowledge on how to validate signatures on-chain, check out the [OpenZeppelin Contracts documentation](/contracts/5.x/utilities#checking_signatures_on_chain)_
11+
_For prior knowledge on how to validate signatures on-chain, check out the [OpenZeppelin Contracts documentation](/contracts/5.x/utilities#checking-signatures-on-chain)_
1212

1313
As opposed to validating plain-text messages, it is possible to let your users sign structured data (i.e. typed values) in a way that is still readable on their wallets. This is possible by implementing [`EIP712`](/contracts/5.x/api/utils/cryptography#EIP712), a standard way to encode structured data into a typed data hash.
1414

content/contracts-cairo/1.0.0/components.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ Creating a custom implementation of an interface must define **all** methods fro
622622
This is true even if the behavior of a method does not change from the component implementation (as `total_supply` exemplifies in this example).
623623

624624
<Callout>
625-
The ERC20 documentation provides another custom implementation guide for [Customizing decimals](/contracts-cairo/1.0.0/erc20#customizing_decimals).
625+
The ERC20 documentation provides another custom implementation guide for [Customizing decimals](/contracts-cairo/1.0.0/erc20#customizing-decimals).
626626
</Callout>
627627

628628
### Accessing component storage

content/contracts-cairo/1.0.0/erc20.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The ERC20 token standard is a specification for [fungible tokens](https://docs.o
88
<Callout type='warn'>
99
Prior to [Contracts v0.7.0](https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.7.0), ERC20 contracts store and read `decimals` from storage; however, this implementation returns a static `18`.
1010
If upgrading an older ERC20 contract that has a decimals value other than `18`, the upgraded contract **must** use a custom `decimals` implementation.
11-
See the [Customizing decimals](/contracts-cairo/1.0.0/erc20#customizing_decimals) guide.
11+
See the [Customizing decimals](/contracts-cairo/1.0.0/erc20#customizing-decimals) guide.
1212
</Callout>
1313

1414
## Usage

content/contracts-cairo/1.0.0/governance/governor.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ When using a timelock, it is the timelock that will execute proposals and thus t
231231
hold any funds, ownership, and access control roles.
232232
</Callout>
233233

234-
TimelockController uses an [AccessControl](/contracts-cairo/1.0.0/access#role_based_accesscontrol) setup that we need to understand in order to set up roles.
234+
TimelockController uses an [AccessControl](/contracts-cairo/1.0.0/access#role-based-accesscontrol) setup that we need to understand in order to set up roles.
235235

236236
The Proposer role is in charge of queueing operations: this is the role the Governor instance must be granted,
237237
and it MUST be the only proposer (and canceller) in the system.

content/contracts-cairo/1.0.0/governance/votes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ By default, token balance does not account for voting power. This makes transfer
99
</Callout>
1010

1111
<Callout type='warn'>
12-
The transferring of voting units must be handled by the implementing contract. In the case of `ERC20` and `ERC721` this is usually done via the hooks. You can check the [usage](/contracts-cairo/1.0.0/governance/governor#usage_2) section for examples of how to implement this.
12+
The transferring of voting units must be handled by the implementing contract. In the case of `ERC20` and `ERC721` this is usually done via the hooks. You can check the [usage](/contracts-cairo/1.0.0/governance/governor#usage-and-setup) section for examples of how to implement this.
1313
</Callout>
1414

1515
## Key Features

content/contracts-cairo/2.0.0/erc20.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The ERC20 token standard is a specification for [fungible tokens](https://docs.o
88
<Callout type='warn'>
99
Prior to [Contracts v0.7.0](https://github.com/OpenZeppelin/cairo-contracts/releases/tag/v0.7.0), ERC20 contracts store and read `decimals` from storage; however, this implementation returns a static `18`.
1010
If upgrading an older ERC20 contract that has a decimals value other than `18`, the upgraded contract **must** use a custom `decimals` implementation.
11-
See the [Customizing decimals](/contracts-cairo/2.0.0/erc20#customizing_decimals) guide.
11+
See the [Customizing decimals](/contracts-cairo/2.0.0/erc20#customizing-decimals) guide.
1212
</Callout>
1313

1414
## Usage

content/contracts-cairo/2.0.0/governance/governor.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ When using a timelock, it is the timelock that will execute proposals and thus t
231231
hold any funds, ownership, and access control roles.
232232
</Callout>
233233

234-
TimelockController uses an [AccessControl](/contracts-cairo/2.0.0/access#role_based_accesscontrol) setup that we need to understand in order to set up roles.
234+
TimelockController uses an [AccessControl](/contracts-cairo/2.0.0/access#role-based-accesscontrol) setup that we need to understand in order to set up roles.
235235

236236
The Proposer role is in charge of queueing operations: this is the role the Governor instance must be granted,
237237
and it MUST be the only proposer (and canceller) in the system.

content/contracts-cairo/2.0.0/presets.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ starkli deploy {ERC20Upgradeable-class-hash} \
4646
```
4747

4848
If a class hash has yet to be declared, copy/paste the preset contract code and declare it locally.
49-
Start by [setting up a project](/contracts-cairo/2.0.0#set_up_your_project) and [installing the Contracts for Cairo library](/contracts-cairo/2.0.0#install_the_library).
49+
Start by [setting up a project](/contracts-cairo/2.0.0#set-up-your-project) and [installing the Contracts for Cairo library](/contracts-cairo/2.0.0#install-the-library).
5050
Copy the target preset contract from the [presets directory](https://github.com/OpenZeppelin/cairo-contracts/blob/release-v2.0.0/packages/presets/src) and paste it in the new project’s `src/lib.cairo` like this:
5151

5252
```cairo

content/contracts-cairo/api/finance.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Internal implementations
162162

163163
A trait that defines the logic for calculating the vested amount based on a given timestamp.
164164

165-
You can read more about the trait's purpose and how to use it [here](../finance#vesting_schedule).
165+
You can read more about the trait's purpose and how to use it [here](../finance#vesting-schedule).
166166

167167
<APIItem
168168
functionSignature="calculate_vested_amount(self: @ContractState, token: ContractAddress, total_allocation: u256, timestamp: u64, start: u64, duration: u64, cliff: u64) → u256"

content/contracts-cairo/governance/governor.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ When using a timelock, it is the timelock that will execute proposals and thus t
231231
hold any funds, ownership, and access control roles.
232232
</Callout>
233233

234-
TimelockController uses an [AccessControl](../access#role_based_accesscontrol) setup that we need to understand in order to set up roles.
234+
TimelockController uses an [AccessControl](../access#role-based-accesscontrol) setup that we need to understand in order to set up roles.
235235

236236
The Proposer role is in charge of queueing operations: this is the role the Governor instance must be granted,
237237
and it MUST be the only proposer (and canceller) in the system.

0 commit comments

Comments
 (0)