Skip to content

Commit c390b89

Browse files
committed
fix: fixed broken links
1 parent 76a24c5 commit c390b89

14 files changed

Lines changed: 406 additions & 430 deletions

File tree

content/contracts/5.x/api/account.mdx

Lines changed: 43 additions & 44 deletions
Large diffs are not rendered by default.

content/contracts/5.x/api/crosschain.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This directory contains contracts for sending and receiving cross chain messages
1515

1616
<div style={{marginTop: "4em"}} className="w-full flex flex-row items-center justify-between">
1717

18-
## `ERC7786Recipient`
18+
## `ERC7786Recipient`
1919

2020
<a target="_blank" style={{marginTop: "1.5em"}} href="https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.5.0/contracts/crosschain/ERC7786Recipient.sol">
2121
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-github-icon lucide-github"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/><path d="M9 18c-4.51 2-5-2-7-2"/></svg>
@@ -94,7 +94,7 @@ This function may be called directly by the gateway.
9494
Virtual getter that returns whether an address is a valid ERC-7786 gateway for a given sender.
9595

9696
The `sender` parameter is an interoperable address that include the source chain. The chain part can be
97-
extracted using the [`InteroperableAddress`](utils#InteroperableAddress) library to selectively authorize gateways based on the origin chain
97+
extracted using the [`InteroperableAddress`](/contracts/5.x/api/utils#InteroperableAddress) library to selectively authorize gateways based on the origin chain
9898
of a message.
9999

100100
</div>
@@ -146,4 +146,3 @@ Virtual function that should contain the logic to execute when a cross-chain mes
146146

147147
</div>
148148
</div>
149-

content/contracts/5.x/api/finance.mdx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This directory includes primitives for financial systems:
1717

1818
<div style={{marginTop: "4em"}} className="w-full flex flex-row items-center justify-between">
1919

20-
## `VestingWallet`
20+
## `VestingWallet`
2121

2222
<a target="_blank" style={{marginTop: "1.5em"}} href="https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.5.0/contracts/finance/VestingWallet.sol">
2323
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-github-icon lucide-github"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/><path d="M9 18c-4.51 2-5-2-7-2"/></svg>
@@ -40,7 +40,7 @@ By setting the duration to 0, one can configure this contract to behave like an
4040
a beneficiary until a specified time.
4141

4242
<Callout>
43-
Since the wallet is [`Ownable`](access#Ownable), and ownership can be transferred, it is possible to sell unvested tokens.
43+
Since the wallet is [`Ownable`](/contracts/5.x/api/access#Ownable), and ownership can be transferred, it is possible to sell unvested tokens.
4444
Preventing this in a smart contract is difficult, considering that: 1) a beneficiary address could be a
4545
counterfactually deployed contract, 2) there is likely to be a migration path for EOAs to become contracts in the
4646
near future.
@@ -253,7 +253,7 @@ Getter for the amount of releasable eth.
253253
<div className="px-4">
254254

255255
Getter for the amount of releasable `token` tokens. `token` should be the address of an
256-
[`IERC20`](token/ERC20#IERC20) contract.
256+
[`IERC20`](/contracts/5.x/api/token/ERC20#IERC20) contract.
257257

258258
</div>
259259
</div>
@@ -383,7 +383,7 @@ an asset given its total historical allocation.
383383

384384
<div style={{marginTop: "4em"}} className="w-full flex flex-row items-center justify-between">
385385

386-
## `VestingWalletCliff`
386+
## `VestingWalletCliff`
387387

388388
<a target="_blank" style={{marginTop: "1.5em"}} href="https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.5.0/contracts/finance/VestingWalletCliff.sol">
389389
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-github-icon lucide-github"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/><path d="M9 18c-4.51 2-5-2-7-2"/></svg>
@@ -524,4 +524,3 @@ The specified cliff duration is larger than the vesting duration.
524524

525525
</div>
526526
</div>
527-

content/contracts/5.x/api/governance.mdx

Lines changed: 63 additions & 64 deletions
Large diffs are not rendered by default.

content/contracts/5.x/api/interfaces.mdx

Lines changed: 70 additions & 71 deletions
Large diffs are not rendered by default.

content/contracts/5.x/api/metatx.mdx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This directory includes contracts for adding meta-transaction capabilities (i.e.
2020

2121
<div style={{marginTop: "4em"}} className="w-full flex flex-row items-center justify-between">
2222

23-
## `ERC2771Context`
23+
## `ERC2771Context`
2424

2525
<a target="_blank" style={{marginTop: "1.5em"}} href="https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.5.0/contracts/metatx/ERC2771Context.sol">
2626
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-github-icon lucide-github"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/><path d="M9 18c-4.51 2-5-2-7-2"/></svg>
@@ -168,7 +168,7 @@ ERC-2771 specifies the context as being a single address (20 bytes).
168168

169169
<div style={{marginTop: "4em"}} className="w-full flex flex-row items-center justify-between">
170170

171-
## `ERC2771Forwarder`
171+
## `ERC2771Forwarder`
172172

173173
<a target="_blank" style={{marginTop: "1.5em"}} href="https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.5.0/contracts/metatx/ERC2771Forwarder.sol">
174174
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-github-icon lucide-github"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/><path d="M9 18c-4.51 2-5-2-7-2"/></svg>
@@ -281,7 +281,7 @@ used to execute arbitrary code.
281281
</div>
282282
<div className="px-4">
283283

284-
See [`EIP712.constructor`](utils/cryptography#EIP712-constructor-string-string-).
284+
See [`EIP712.constructor`](/contracts/5.x/api/utils/cryptography#EIP712-constructor-string-string-).
285285

286286
</div>
287287
</div>
@@ -304,7 +304,7 @@ A transaction is considered valid when the target trusts this forwarder, the req
304304
(deadline is not met), and the signer matches the `from` parameter of the signed request.
305305

306306
<Callout>
307-
A request may return false here but it won't cause [`TimelockController.executeBatch`](governance#TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-) to revert if a refund
307+
A request may return false here but it won't cause [`TimelockController.executeBatch`](/contracts/5.x/api/governance#TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-) to revert if a refund
308308
receiver is provided.
309309
</Callout>
310310

@@ -330,7 +330,7 @@ out of gas. Will revert if the request is invalid or the call reverts, in this c
330330
Requirements:
331331

332332
- The request value should be equal to the provided `msg.value`.
333-
- The request should be valid according to [`IERC7913SignatureVerifier.verify`](interfaces#IERC7913SignatureVerifier-verify-bytes-bytes32-bytes-).
333+
- The request should be valid according to [`IERC7913SignatureVerifier.verify`](/contracts/5.x/api/interfaces#IERC7913SignatureVerifier-verify-bytes-bytes32-bytes-).
334334

335335
</div>
336336
</div>
@@ -347,9 +347,9 @@ Requirements:
347347
</div>
348348
<div className="px-4">
349349

350-
Batch version of [`AccessManager.execute`](access#AccessManager-execute-address-bytes-) with optional refunding and atomic execution.
350+
Batch version of [`AccessManager.execute`](/contracts/5.x/api/access#AccessManager-execute-address-bytes-) with optional refunding and atomic execution.
351351

352-
In case a batch contains at least one invalid request (see [`IERC7913SignatureVerifier.verify`](interfaces#IERC7913SignatureVerifier-verify-bytes-bytes32-bytes-)), the
352+
In case a batch contains at least one invalid request (see [`IERC7913SignatureVerifier.verify`](/contracts/5.x/api/interfaces#IERC7913SignatureVerifier-verify-bytes-bytes32-bytes-)), the
353353
request will be skipped and the `refundReceiver` parameter will receive back the
354354
unused requested value at the end of the execution. This is done to prevent reverting
355355
the entire batch when a request is invalid or has already been submitted.
@@ -363,7 +363,7 @@ including reverted transactions.
363363
Requirements:
364364

365365
- The sum of the requests' values should be equal to the provided `msg.value`.
366-
- All of the requests should be valid (see [`IERC7913SignatureVerifier.verify`](interfaces#IERC7913SignatureVerifier-verify-bytes-bytes32-bytes-)) when `refundReceiver` is the zero address.
366+
- All of the requests should be valid (see [`IERC7913SignatureVerifier.verify`](/contracts/5.x/api/interfaces#IERC7913SignatureVerifier-verify-bytes-bytes32-bytes-)) when `refundReceiver` is the zero address.
367367

368368
<Callout>
369369
Setting a zero `refundReceiver` guarantees an all-or-nothing requests execution only for
@@ -408,7 +408,7 @@ Returns a tuple with the recovered the signer of an EIP712 forward request messa
408408
and a boolean indicating if the signature is valid.
409409

410410
<Callout>
411-
The signature is considered valid if [`ECDSA.tryRecover`](utils/cryptography#ECDSA-tryRecover-bytes32-uint8-bytes32-bytes32-) indicates no recover error for it.
411+
The signature is considered valid if [`ECDSA.tryRecover`](/contracts/5.x/api/utils/cryptography#ECDSA-tryRecover-bytes32-uint8-bytes32-bytes32-) indicates no recover error for it.
412412
</Callout>
413413

414414
</div>
@@ -433,7 +433,7 @@ Internal function without msg.value validation.
433433
Requirements:
434434

435435
- The caller must have provided enough gas to forward with the call.
436-
- The request must be valid (see [`IERC7913SignatureVerifier.verify`](interfaces#IERC7913SignatureVerifier-verify-bytes-bytes32-bytes-)) if the `requireValidRequest` is true.
436+
- The request must be valid (see [`IERC7913SignatureVerifier.verify`](/contracts/5.x/api/interfaces#IERC7913SignatureVerifier-verify-bytes-bytes32-bytes-)) if the `requireValidRequest` is true.
437437

438438
Emits an [`ERC2771Forwarder.ExecutedForwardRequest`](#ERC2771Forwarder-ExecutedForwardRequest-address-uint256-bool-) event.
439439

@@ -561,4 +561,3 @@ The request target doesn't trust the `forwarder`.
561561

562562
</div>
563563
</div>
564-

0 commit comments

Comments
 (0)