zksync-sdk / zksync2-js

MIT License
25 stars 28 forks source link

Feature: New contracts for shared bridge and hyperscaling #19

Open kelemeno opened 1 year ago

kelemeno commented 1 year 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 1 year ago

@kelemeno Are mentioning about this change.

kelemeno commented 1 year ago

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

danijelTxFusion commented 1 year ago

SDK version that support shared bridges: