Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

feat: preparing system contracts for shared bridge #86

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

kelemeno
Copy link

What ❔

There are minimal changes to the interfaces due to contract changes.
The main change is the setChainId in the system context contract.

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

kelemeno and others added 13 commits September 13, 2023 13:50
…m-contracts into kl-factory"

This reverts commit 84df5a5, reversing
changes made to b69a488.
* System contracts test preprocessing mode

* Mock dependencies, event writer asm contract test, refactoring

* lint fix

* Small refactoring

* Change approach to use the test node

* Add docs, comments

* lint readme

* Fix hashes

* Regenerate yarn.lock to fix lints

* lint:fix

* Fix lints

* Restore lost tests

* Fix lints

* Restore yarn.lock from dev

* Update caches in workflows

* Try to disable lint cache

* Restore lint cache

* Cache contracts-preprocessed

* try to debug lint

* Regenerate yarn.lock from dev

* Restore correct deps

* Update lock

* Proposed improvements/fixes

* Use fast-glob instead glob

* Update bootloader_test artifact path

* Proposed improvements, update hashes

* Implement some fixes and improvements

* Fix lints

* Update zksync-era in bootloader tests

* Fix imports

Signed-off-by: Danil <[email protected]>

* Update contracts/test-contracts/MockContract.sol

Co-authored-by: Vlad Bochok <[email protected]>

* Fix test infra

* data -> input mock contract

* Update SC hashes

* Update zksync-era in bootloader/test_infra

* Update again

---------

Signed-off-by: Danil <[email protected]>
Co-authored-by: Danil <[email protected]>
Co-authored-by: Vlad Bochok <[email protected]>
Copy link
Collaborator

@StanislavBreadless StanislavBreadless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good & minimalistic.

I put the "request changes" so we don't merge it until the zksync-web3 dependency is fixed

kelemeno and others added 4 commits December 17, 2023 14:15
…into sync-sc-dev

# Conflicts:
#	scripts/process.ts
#	system/contracts/test-contracts/Callable.sol
#	system/contracts/test-contracts/DummyUpgrade.sol
#	system/contracts/test-contracts/EventWriterTest.sol
#	system/contracts/test-contracts/ExtraAbiCaller.zasm
#	system/contracts/test-contracts/MockContract.sol
#	system/contracts/test-contracts/MockERC20Approve.sol
#	system/contracts/test-contracts/MockKnownCodesStorage.sol
#	system/contracts/test-contracts/MockL1Messenger.sol
#	system/contracts/test-contracts/NotSystemCaller.sol
#	system/contracts/test-contracts/TestSystemContract.sol
#	system/contracts/test-contracts/TestSystemContractHelper.sol
#	system/scripts/compile-zasm.ts
#	system/scripts/preprocess-bootloader.ts
#	system/scripts/preprocess-system-contracts.ts
#	system/scripts/process.ts
#	system/scripts/quick-setup.sh
#	system/test/EcAdd.spec.ts
#	system/test/EcMul.spec.ts
#	system/test/shared/extraAbiCaller.ts
#	system/test/shared/mocks.ts
#	test/EcAdd.spec.ts
#	test/EcMul.spec.ts
#	test/precompiles/EcAdd.spec.ts
#	test/precompiles/EcMul.spec.ts
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants