zksync-sdk / zksync2-js

MIT License
25 stars 29 forks source link

Feature: New contracts for shared bridge and hyperscaling #19

Open kelemeno opened 10 months ago

kelemeno commented 10 months ago

🌟 Feature Request

We need the shared bridge contracts on L1 for hyperscaling. Messages, deposits and withdrawals will go to all hyperchains via a shared Bridgehub contract, and the assets will be locked in shared bridges. This means the contracts change, so this repo also has to change.

📝 Description

The main difference is we will have to specify the chainId of the hyperchain we are depositing to, this is in src/adapters.ts . For backwards compatibility I think we can preserve the old methods and point them to Era.

danijelTxFusion commented 10 months ago

@kelemeno Are mentioning about this change.

kelemeno commented 10 months ago

Yes, I have a local version but eventually it will need to be updated here as well.

danijelTxFusion commented 9 months ago

SDK version that support shared bridges: