The design principle of ERC-7802 is "bridge agnosticism": in cross-chain scenarios, it aims to separate the token contract from specific cross-chain bridging technologies or protocols as much as possible.
Written by: Yue Xiaoyu
To start with the conclusion, in one sentence: ERC-7802 is a cross-chain standard that extends new features to existing ERC-20 tokens, enabling standard cross-chain functionality by calling the ERC-7802 interface.
01 Background
ERC-7802 is a cross-chain token standard proposed jointly by the Optimism team and the Uniswap team, aiming to maintain a unified standard for tokens during cross-chain operations.
We can see that the collaboration between Uniswap and Optimism is deepening: the Unichain that Uniswap previously announced to launch is part of the OP Superchain ecosystem, and now they have jointly proposed this cross-chain standard.
The introduction of ERC-7802 aims to standardize cross-chain operations, which is very important for DEXs (decentralized exchanges) like Uniswap and L2 solutions like Optimism.
The token standards on Ethereum have been evolving, from ERC-20 to ERC-721, ERC-1155, and so on. ERC-7802 is part of this evolution, focusing on solving the specific problem of cross-chain operations.
02 Design Principles
Overall, the design principle of ERC-7802 is "bridge agnosticism": in cross-chain scenarios, it aims to separate the token contract from specific cross-chain bridging technologies or protocols as much as possible.
This is a modular design that effectively shifts complexity to the cross-chain bridge, separating cross-chain logic from the token contract, making the structure of the token contract simpler and more modular.
The implementation of the token only needs to focus on its basic functions without having to consider the specific implementation of cross-chain transfers.
The bridging protocol takes on all the complexities related to cross-chain transfers, including transaction validation, asset locking and releasing, cross-chain communication protocols, etc.
ERC-7802 defines a standardized interface for how tokens interact with cross-chain bridges but does not concern itself with how these bridges are specifically implemented.
Any bridging protocol that complies with ERC-7802 can use this interface for cross-chain operations without needing to modify the token contract itself.
03 Specific Implementation
ERC-7802 defines a standardized interface that includes two key functions:
(1) crosschainMint: mints tokens on the target chain for the recipient as a result of burning tokens on the source chain.
(2) crosschainBurn: burns tokens on the source chain and initiates a cross-chain transfer, typically the starting point of the cross-chain transfer.
It is important to note that cross-chain minting and burning are different from local minting and burning. In cross-chain operations, the total circulating supply across all chains remains unchanged because tokens are transferred between chains rather than being truly created or destroyed.
The ERC-7802 contract supports ERC-165, which is an interface detection standard that allows smart contracts to declare which interfaces they support. This helps ensure compatibility of contracts for cross-chain operations.
More importantly, ERC-7802 is compatible with ERC-20.
ERC-20 is a widely used fungible token standard on Ethereum, so compatibility with ERC-20 is crucial for the new standard, making it easier for existing tokens to cross-chain into the new ecosystem.
In this way, existing tokens can exist as ordinary ERC-20 tokens and then achieve cross-chain functionality through the ERC-7802 interface.
04 Protocol Value
Addressing the multi-chain experience issue is a major trend, and ERC-7802 actually establishes a cross-chain standard from the foundational protocol layer, complementing the narrative of "chain abstraction."
ERC-7802 directly supports the goals of chain abstraction by providing a standardized cross-chain token transfer protocol, allowing assets to flow seamlessly across different chains.
The realization of chain abstraction requires the collaboration of various technical standards and protocols, and ERC-7802 can be seen as one of the key building blocks.
It can be said that ERC-7802 provides a concrete solution for chain abstraction at the technical level, addressing the technical issues of token cross-chain transfers, while chain abstraction utilizes these solutions to provide a higher level of user experience and application development framework.
More importantly, the standard proposed by OP also lays the foundation for interoperability within the OP Superchain ecosystem.
Currently, this protocol standard is still in the discussion phase, and we can continue to follow its developments.
免责声明:本文章仅代表作者个人观点,不代表本平台的立场和观点。本文章仅供信息分享,不构成对任何人的任何投资建议。用户与作者之间的任何争议,与本平台无关。如网页中刊载的文章或图片涉及侵权,请提供相关的权利证明和身份证明发送邮件到support@aicoin.com,本平台相关工作人员将会进行核查。