Skip to content

Commit c9cbea9

Browse files
committed
fix: resolved broken links
1 parent 3916de5 commit c9cbea9

File tree

3 files changed

+26
-29
lines changed

3 files changed

+26
-29
lines changed

content/community-contracts/api/account.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2379,7 +2379,7 @@ Clears all selectors.
23792379

23802380
<Callout type="warn">
23812381
This function has unbounded gas costs and may become uncallable if the set grows too large.
2382-
See [`EnumerableSetExtended.clear`](utils#EnumerableSetExtended-clear-struct-EnumerableSetExtended-Bytes32x2Set-).
2382+
See [`EnumerableSetExtended.clear`](/community-contracts/api/utils#EnumerableSetExtended-clear-struct-EnumerableSetExtended-Bytes32x2Set-).
23832383
</Callout>
23842384

23852385
</div>
@@ -4035,4 +4035,3 @@ Decodes the user operation's data from `paymasterAndData`.
40354035

40364036
</div>
40374037
</div>
4038-

content/community-contracts/api/crosschain.mdx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ This function revert if:
208208
chain.
209209
* someone tries re-execute a message that was already successfully delivered. This includes gateways that call
210210
this function a second time with a message that was already executed.
211-
* the execution of the message (on the [`IERC7786Receiver`](interfaces#IERC7786Receiver) receiver) is successful but fails to return the
211+
* the execution of the message (on the [`IERC7786Receiver`](/community-contracts/api/interfaces#IERC7786Receiver) receiver) is successful but fails to return the
212212
executed value.
213213

214214
This function does not revert if:
215215

216216
* A known gateway delivers a message for the first time, and that message was already executed. In that case
217217
the message is NOT re-executed, and the correct "magic value" is returned.
218-
* The execution of the message (on the [`IERC7786Receiver`](interfaces#IERC7786Receiver) receiver) reverts. In that case a [`ERC7786OpenBridge.ExecutionFailed`](#ERC7786OpenBridge-ExecutionFailed-bytes32-)
218+
* The execution of the message (on the [`IERC7786Receiver`](/community-contracts/api/interfaces#IERC7786Receiver) receiver) reverts. In that case a [`ERC7786OpenBridge.ExecutionFailed`](#ERC7786OpenBridge-ExecutionFailed-bytes32-)
219219
event is emitted.
220220

221221
This function emits:
@@ -734,7 +734,7 @@ import "@openzeppelin/contracts/crosschain/axelar/AxelarGatewayAdapter.sol";
734734

735735
Implementation of an ERC-7786 gateway destination adapter for the Axelar Network in dual mode.
736736

737-
The contract implements AxelarExecutable's [`ERC7579DelayedExecutor._execute`](account#ERC7579DelayedExecutor-_execute-address-bytes32-bytes32-bytes-) function to execute the message, converting Axelar's native
737+
The contract implements AxelarExecutable's [`ERC7579DelayedExecutor._execute`](/community-contracts/api/account#ERC7579DelayedExecutor-_execute-address-bytes32-bytes32-bytes-) function to execute the message, converting Axelar's native
738738
workflow into the standard ERC-7786.
739739

740740
<Callout>
@@ -963,9 +963,9 @@ Endpoint for creating a new message. If the message requires further (gateway sp
963963
it can be sent to the destination chain, then a non-zero `outboxId` must be returned. Otherwise, the
964964
message MUST be sent and this function must return 0.
965965

966-
* MUST emit a [`IERC7786GatewaySource.MessageSent`](interfaces#IERC7786GatewaySource-MessageSent-bytes32-bytes-bytes-bytes-uint256-bytes---) event.
966+
* MUST emit a [`IERC7786GatewaySource.MessageSent`](/community-contracts/api/interfaces#IERC7786GatewaySource-MessageSent-bytes32-bytes-bytes-bytes-uint256-bytes---) event.
967967

968-
If any of the `attributes` is not supported, this function SHOULD revert with an [`IERC7786GatewaySource.UnsupportedAttribute`](interfaces#IERC7786GatewaySource-UnsupportedAttribute-bytes4-) error.
968+
If any of the `attributes` is not supported, this function SHOULD revert with an [`IERC7786GatewaySource.UnsupportedAttribute`](/community-contracts/api/interfaces#IERC7786GatewaySource-UnsupportedAttribute-bytes4-) error.
969969
Other errors SHOULD revert with errors not specified in ERC-7786.
970970

971971
</div>
@@ -1721,9 +1721,9 @@ Endpoint for creating a new message. If the message requires further (gateway sp
17211721
it can be sent to the destination chain, then a non-zero `outboxId` must be returned. Otherwise, the
17221722
message MUST be sent and this function must return 0.
17231723

1724-
* MUST emit a [`IERC7786GatewaySource.MessageSent`](interfaces#IERC7786GatewaySource-MessageSent-bytes32-bytes-bytes-bytes-uint256-bytes---) event.
1724+
* MUST emit a [`IERC7786GatewaySource.MessageSent`](/community-contracts/api/interfaces#IERC7786GatewaySource-MessageSent-bytes32-bytes-bytes-bytes-uint256-bytes---) event.
17251725

1726-
If any of the `attributes` is not supported, this function SHOULD revert with an [`IERC7786GatewaySource.UnsupportedAttribute`](interfaces#IERC7786GatewaySource-UnsupportedAttribute-bytes4-) error.
1726+
If any of the `attributes` is not supported, this function SHOULD revert with an [`IERC7786GatewaySource.UnsupportedAttribute`](/community-contracts/api/interfaces#IERC7786GatewaySource-UnsupportedAttribute-bytes4-) error.
17271727
Other errors SHOULD revert with errors not specified in ERC-7786.
17281728

17291729
</div>
@@ -2009,4 +2009,3 @@ A chain equivalence has been registered.
20092009

20102010
</div>
20112011
</div>
2012-

content/community-contracts/api/token.mdx

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Set of extensions and utilities for tokens (e.g ERC-20, ERC-721, ERC-1155) and d
4242
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Allowlist.sol";
4343
```
4444

45-
Extension of [`PaymasterERC20`](account#PaymasterERC20) that allows to implement an allowlist
45+
Extension of [`PaymasterERC20`](/community-contracts/api/account#PaymasterERC20) that allows to implement an allowlist
4646
mechanism that can be managed by an authorized account with the
4747
[`ERC20Allowlist._disallowUser`](#ERC20Allowlist-_disallowUser-address-) and [`ERC20Allowlist._allowUser`](#ERC20Allowlist-_allowUser-address-) functions.
4848

@@ -270,7 +270,7 @@ The operation failed because the user is not allowed.
270270
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Blocklist.sol";
271271
```
272272

273-
Extension of [`PaymasterERC20`](account#PaymasterERC20) that allows to implement a blocklist
273+
Extension of [`PaymasterERC20`](/community-contracts/api/account#PaymasterERC20) that allows to implement a blocklist
274274
mechanism that can be managed by an authorized account with the
275275
[`ERC20Blocklist._blockUser`](#ERC20Blocklist-_blockUser-address-) and [`ERC20Blocklist._unblockUser`](#ERC20Blocklist-_unblockUser-address-) functions.
276276

@@ -498,7 +498,7 @@ The operation failed because the user is blocked.
498498
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Collateral.sol";
499499
```
500500

501-
Extension of [`PaymasterERC20`](account#PaymasterERC20) that limits the supply of tokens based
501+
Extension of [`PaymasterERC20`](/community-contracts/api/account#PaymasterERC20) that limits the supply of tokens based
502502
on a collateral amount and time-based expiration.
503503

504504
The [`ERC20Collateral.collateral`](#ERC20Collateral-collateral--) function must be implemented to return the collateral
@@ -721,7 +721,7 @@ Collateral amount has expired.
721721
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Custodian.sol";
722722
```
723723

724-
Extension of [`PaymasterERC20`](account#PaymasterERC20) that allows to implement a custodian
724+
Extension of [`PaymasterERC20`](/community-contracts/api/account#PaymasterERC20) that allows to implement a custodian
725725
mechanism that can be managed by an authorized account with the
726726
[`ERC20Custodian.freeze`](#ERC20Custodian-freeze-address-uint256-) function.
727727

@@ -909,7 +909,7 @@ Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints
909909
(or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
910910
this function.
911911

912-
Emits a [`ERC7786OpenBridge.UnsupportedNativeTransfer`](crosschain#ERC7786OpenBridge-UnsupportedNativeTransfer--) event.
912+
Emits a [`ERC7786OpenBridge.UnsupportedNativeTransfer`](/community-contracts/api/crosschain#ERC7786OpenBridge-UnsupportedNativeTransfer--) event.
913913

914914
</div>
915915
</div>
@@ -1016,7 +1016,7 @@ Error thrown when a non-custodian account attempts to perform a custodian-only o
10161016
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Freezable.sol";
10171017
```
10181018

1019-
Extension of [`PaymasterERC20`](account#PaymasterERC20) that allows to implement a freezing
1019+
Extension of [`PaymasterERC20`](/community-contracts/api/account#PaymasterERC20) that allows to implement a freezing
10201020
mechanism that can be managed by an authorized account with the
10211021
`_freezeTokens` and `_unfreezeTokens` functions.
10221022

@@ -1188,11 +1188,11 @@ The operation failed because the user has insufficient unfrozen balance.
11881188
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Restricted.sol";
11891189
```
11901190

1191-
Extension of [`PaymasterERC20`](account#PaymasterERC20) that allows to implement user account transfer restrictions
1192-
through the [`IERC7943Fungible.isUserAllowed`](interfaces#IERC7943Fungible-isUserAllowed-address-) function. Inspired by [EIP-7943](https://eips.ethereum.org/EIPS/eip-7943).
1191+
Extension of [`PaymasterERC20`](/community-contracts/api/account#PaymasterERC20) that allows to implement user account transfer restrictions
1192+
through the [`IERC7943Fungible.isUserAllowed`](/community-contracts/api/interfaces#IERC7943Fungible-isUserAllowed-address-) function. Inspired by [EIP-7943](https://eips.ethereum.org/EIPS/eip-7943).
11931193

1194-
By default, each account has no explicit restriction. The [`IERC7943Fungible.isUserAllowed`](interfaces#IERC7943Fungible-isUserAllowed-address-) function acts as
1195-
a blocklist. Developers can override [`IERC7943Fungible.isUserAllowed`](interfaces#IERC7943Fungible-isUserAllowed-address-) to check that `restriction == ALLOWED`
1194+
By default, each account has no explicit restriction. The [`IERC7943Fungible.isUserAllowed`](/community-contracts/api/interfaces#IERC7943Fungible-isUserAllowed-address-) function acts as
1195+
a blocklist. Developers can override [`IERC7943Fungible.isUserAllowed`](/community-contracts/api/interfaces#IERC7943Fungible-isUserAllowed-address-) to check that `restriction == ALLOWED`
11961196
to implement an allowlist.
11971197

11981198
<div className="bg-secondary p-4 rounded-md mb-6">
@@ -1318,8 +1318,8 @@ See `ERC20-_update`. Enforces restriction transfers (excluding minting and burni
13181318

13191319
Requirements:
13201320

1321-
* `from` must be allowed to transfer tokens (see [`IERC7943Fungible.isUserAllowed`](interfaces#IERC7943Fungible-isUserAllowed-address-)).
1322-
* `to` must be allowed to receive tokens (see [`IERC7943Fungible.isUserAllowed`](interfaces#IERC7943Fungible-isUserAllowed-address-)).
1321+
* `from` must be allowed to transfer tokens (see [`IERC7943Fungible.isUserAllowed`](/community-contracts/api/interfaces#IERC7943Fungible-isUserAllowed-address-)).
1322+
* `to` must be allowed to receive tokens (see [`IERC7943Fungible.isUserAllowed`](/community-contracts/api/interfaces#IERC7943Fungible-isUserAllowed-address-)).
13231323

13241324
</div>
13251325
</div>
@@ -1460,7 +1460,7 @@ The operation failed because the user account is restricted.
14601460
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20uRWA.sol";
14611461
```
14621462

1463-
Extension of [`PaymasterERC20`](account#PaymasterERC20) according to [EIP-7943](https://eips.ethereum.org/EIPS/eip-7943).
1463+
Extension of [`PaymasterERC20`](/community-contracts/api/account#PaymasterERC20) according to [EIP-7943](https://eips.ethereum.org/EIPS/eip-7943).
14641464

14651465
Combines standard ERC-20 functionality with RWA-specific features like user restrictions,
14661466
asset freezing, and forced asset transfers.
@@ -1619,7 +1619,7 @@ This function call must use less than 30 000 gas.
16191619
</div>
16201620
<div className="px-4">
16211621

1622-
See [`IERC7943Fungible.canTransfer`](interfaces#IERC7943Fungible-canTransfer-address-address-uint256-).
1622+
See [`IERC7943Fungible.canTransfer`](/community-contracts/api/interfaces#IERC7943Fungible-canTransfer-address-address-uint256-).
16231623

16241624
<Callout type="warn">
16251625
This function is only meant for external use. Overriding it will not apply the new checks to
@@ -1656,10 +1656,10 @@ the internal [`ERC20Allowlist._update`](#ERC20Allowlist-_update-address-address-
16561656
</div>
16571657
<div className="px-4">
16581658

1659-
See [`IERC7943Fungible.setFrozenTokens`](interfaces#IERC7943Fungible-setFrozenTokens-address-uint256-).
1659+
See [`IERC7943Fungible.setFrozenTokens`](/community-contracts/api/interfaces#IERC7943Fungible-setFrozenTokens-address-uint256-).
16601660

16611661
<Callout>
1662-
The `amount` is capped to the balance of the `user` to ensure the [`IERC7943Fungible.Frozen`](interfaces#IERC7943Fungible-Frozen-address-uint256-) event
1662+
The `amount` is capped to the balance of the `user` to ensure the [`IERC7943Fungible.Frozen`](/community-contracts/api/interfaces#IERC7943Fungible-Frozen-address-uint256-) event
16631663
emits values that consistently reflect the actual amount of tokens that are frozen.
16641664
</Callout>
16651665

@@ -1678,7 +1678,7 @@ emits values that consistently reflect the actual amount of tokens that are froz
16781678
</div>
16791679
<div className="px-4">
16801680

1681-
See [`IERC7943Fungible.forcedTransfer`](interfaces#IERC7943Fungible-forcedTransfer-address-address-uint256-).
1681+
See [`IERC7943Fungible.forcedTransfer`](/community-contracts/api/interfaces#IERC7943Fungible-forcedTransfer-address-address-uint256-).
16821682

16831683
Bypasses the [`ERC20Restricted`](#ERC20Restricted) restrictions for the `from` address and adjusts the frozen balance
16841684
to the new balance after the transfer.
@@ -1709,7 +1709,7 @@ Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints
17091709
(or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
17101710
this function.
17111711

1712-
Emits a [`ERC7786OpenBridge.UnsupportedNativeTransfer`](crosschain#ERC7786OpenBridge-UnsupportedNativeTransfer--) event.
1712+
Emits a [`ERC7786OpenBridge.UnsupportedNativeTransfer`](/community-contracts/api/crosschain#ERC7786OpenBridge-UnsupportedNativeTransfer--) event.
17131713

17141714
</div>
17151715
</div>
@@ -2075,4 +2075,3 @@ Chainlink's Link, that implement the 667 interface for transferAndCall.
20752075

20762076
</div>
20772077
</div>
2078-

0 commit comments

Comments
 (0)