-
Module Affected
Rust Versionna Operating System
Issue DescriptionAre there any deployed testnets where we can test the custom ERC20 gas token functionality? Can you point me to the bridging contracts that will be used for custom gas chains in this repo? For chains that do not use custom gas tokens, will this legacy contract still be deployed? Or is that only going to be available on Era? One more question: the L1ERC20 bridge indicates that it is legacy, but I don’t see any other methods that would allow bridging in arbitrary ERC20 tokens. What’s the right method to call? Expected BehaviorWe want to verify that our Across bridge adaptors should work OOTB for ZK Stack chains and what changes are necessary to support ZK Stack Custom Gas tokens. Current Behaviorn/a Repository Link (if applicable)(https://github.com/matter-labs/era-contracts/tree/main) Additional DetailsFrom Across/UMA. Prior Research
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Testing Custom ERC20 Gas Token FunctionalityCurrently, there isn't specific documentation available on deployed testnets for testing custom ERC20 gas token functionality within the ZKsync ecosystem. For the most accurate and updated information, it's recommended to check the official ZKsync documentation or directly engage with the development community on ZKsync's GitHub discussions. Bridging Contracts for Custom Gas ChainsFor bridging contracts related to custom gas tokens, you can refer to the general bridging contracts within the same repository you mentioned. While the repository might not explicitly list contracts for custom gas tokens, the existing contracts like the L1ERC20Bridge might give insights into how bridging is handled. For custom implementations, modifications might be necessary. Legacy Contracts DeploymentFor chains not utilizing custom gas tokens, the deployment of legacy contracts like the L1ERC20Bridge will depend on the specific requirements of those chains. Typically, such contracts are deployed to ensure compatibility and facilitate bridging operations between L1 and L2. However, for ZKsync Era-specific functionalities, these might still be deployed to maintain backward compatibility or to support specific bridging functions. For detailed and specific inquiries, especially regarding integration with Across bridge adaptors and support for ZK Stack Custom Gas tokens, it's advisable to directly consult with the ZKsync development team or contribute to the discussions on their GitHub repository to get tailored advice and updates. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
Thanks for the post and great to see the Across team here!
Yes, you can test this out on Zero Network as well as Cronos. You could also spin up a custom token chain and test things out as well with our new tutorial
The L1SharedBridge is the contract that stores the funds. The actual call has to be started on the Bridgehub here:
https://github.com/matter-labs/era-contracts/blob/bce4b2d0f34bd87f1aaadd291772935afb1c3bd6/l1-contracts/contracts…