Deploying ERC20 with interop functionality / considerations around if we created a ZK L2 later on #993
-
Team or ProjectWild Goat Coin ZK chainEra, Abstract, Cronos zkEVM EnvironmentMainnet L2 block numberNo response Provide a brief description of the functionality you're trying to implement and the issue you are running into.Hello guys, I've asked a few questions in the discord and been asked to post in here... We're looking to deploy our LayerZero OFT token on ZK chains. I'm trying to understand, do we need to consider anything specifically so that the tokens will be compatible with Elastic Chain interop once live. For example, we've deployed on OP Superchain networks, contract includes ERC-7802 and we've needed to deploy the contract on all chains where we want native interop to be functional. I have a few questions, would appreciate any advice please...
We're far away from this right now but have discussed that we might someday look to create our own L2, and if we did, we'd probably look to do it on ZK Sync...
Thanks Repo Link (Optional)No response Additional DetailsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello! Our interop is designed differently from what OP Superchain has, the main difference being how we identify tokens across different chains. In OP it is required for them to be at the same address. In our framework, we define them by assetIDs, and there are three main components involved in bridging: AssetRouter, AssetHandler, and Token. The Token in this setup is something like this - it serves as the wrapper for the underlying asset that is deployed automatically on all the chains when the interop transaction happens. So on the chain where the token is native (e.g. Era), you would use the one you deployed (it can be just a normal ERC-20), and when it is bridged to other chains, it will be done automatically. On your questions:
No, it can be vanilla ERC-20
No, you only need to deploy to one chain, where this token will be "native". When full interop goes live - it will be deployed automatically during the first bridging operation.
No
Yes, any token will be interop-compatible as long as it is ERC-20 compatible. The right way to get it deployed on both chains now is to deploy it to an L1, and later bridge it to Era and Abstract via canonical bridges. Or if it is already deployed on one of them, you can withdraw it to L1 and deploy to another L2 (this is going to do the same thing as interop does) On the question of a separate chain, it is the same as using it across Abstract and Era - it will have a unique AssetID that will identify it across all chains. |
Beta Was this translation helpful? Give feedback.
Hello! Our interop is designed differently from what OP Superchain has, the main difference being how we identify tokens across different chains. In OP it is required for them to be at the same address. In our framework, we define them by assetIDs, and there are three main components involved in bridging: AssetRouter, AssetHandler, and Token.
The Token in this setup is something like this - it serves as the wrapper for the underlying asset that is deployed automatically on all the chains when the interop transaction happens. So on the chain where the token is native (e.g. Era), you would use the one you deployed (it can be just a normal ERC-20), and when it is bridged to other chains, it …