Francisco 1f0d3db597 Add warning about issue with Arbitrum cross-chain utilities (#3626) před 3 roky
..
amb 8c49ad74ea 4.7.0 před 3 roky
arbitrum 1f0d3db597 Add warning about issue with Arbitrum cross-chain utilities (#3626) před 3 roky
optimism 8c49ad74ea 4.7.0 před 3 roky
polygon 8c49ad74ea 4.7.0 před 3 roky
CrossChainEnabled.sol a035b235b4 Release v4.6 (#3358) před 3 roky
README.adoc 6d00281593 Fix typo in README.adoc (#3445) před 3 roky
errors.sol a035b235b4 Release v4.6 (#3358) před 3 roky

README.adoc

= Cross Chain Awareness

[.readme-notice]
NOTE: This document is better viewed at https://docs.openzeppelin.com/contracts/api/crosschain

This directory provides building blocks to improve cross-chain awareness of smart contracts.

- {CrossChainEnabled} is an abstraction that contains accessors and modifiers to control the execution flow when receiving cross-chain messages.

== CrossChainEnabled specializations

The following specializations of {CrossChainEnabled} provide implementations of the {CrossChainEnabled} abstraction for specific bridges. This can be used to complex cross-chain aware components such as {AccessControlCrossChain}.

{{CrossChainEnabledAMB}}

{{CrossChainEnabledArbitrumL1}}

{{CrossChainEnabledArbitrumL2}}

{{CrossChainEnabledOptimism}}

{{CrossChainEnabledPolygonChild}}

== Libraries for cross-chain

In addition to the {CrossChainEnabled} abstraction, cross-chain awareness is also available through libraries. These libraries can be used to build complex designs such as contracts with the ability to interact with multiple bridges.

{{LibAMB}}

{{LibArbitrumL1}}

{{LibArbitrumL2}}

{{LibOptimism}}