Skip to content

Commit

Permalink
feat: eth spec conformation test suite (#373)
Browse files Browse the repository at this point in the history
* proof of concept for e2e integration tests + ETH spec compliance

* move spec tests to a separate crate + rework process spawning

* make legacy tx spec work for blocks

* update zksync deps to remove root tx receipt

* fix lint

* fix e2e tests
  • Loading branch information
itegulov authored Nov 4, 2024
1 parent a630f72 commit 43fe551
Show file tree
Hide file tree
Showing 18 changed files with 7,073 additions and 270 deletions.
2,078 changes: 1,878 additions & 200 deletions Cargo.lock

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ version = "0.1.0-alpha.30"
edition = "2018"
authors = ["The Matter Labs Team <hello@matterlabs.dev>"]
homepage = "https://zksync.io/"
repository = "https://github.com/matter-labs/zksync-era"
repository = "https://github.com/matter-labs/era-test-node"
license = "MIT OR Apache-2.0"
keywords = ["blockchain", "zksync"]
categories = ["cryptography"]
publish = false # We don't want to publish our binaries.

[dependencies]
zksync_multivm = { git = "https://github.com/matter-labs/zksync-era.git", rev = "cfbcc11be0826e8c55fafa84ae01b2aead25d127" }
zksync_contracts = { git = "https://github.com/matter-labs/zksync-era.git", rev = "cfbcc11be0826e8c55fafa84ae01b2aead25d127" }
zksync_types = { git = "https://github.com/matter-labs/zksync-era.git", rev = "cfbcc11be0826e8c55fafa84ae01b2aead25d127" }
zksync_utils = { git = "https://github.com/matter-labs/zksync-era.git", rev = "cfbcc11be0826e8c55fafa84ae01b2aead25d127" }
zksync_web3_decl = { git = "https://github.com/matter-labs/zksync-era.git", rev = "cfbcc11be0826e8c55fafa84ae01b2aead25d127", features = [
zksync_multivm = { git = "https://github.com/matter-labs/zksync-era.git", rev = "6c034f6e180cc92e99766f14c8840c90efa56cec" }
zksync_contracts = { git = "https://github.com/matter-labs/zksync-era.git", rev = "6c034f6e180cc92e99766f14c8840c90efa56cec" }
zksync_types = { git = "https://github.com/matter-labs/zksync-era.git", rev = "6c034f6e180cc92e99766f14c8840c90efa56cec" }
zksync_utils = { git = "https://github.com/matter-labs/zksync-era.git", rev = "6c034f6e180cc92e99766f14c8840c90efa56cec" }
zksync_web3_decl = { git = "https://github.com/matter-labs/zksync-era.git", rev = "6c034f6e180cc92e99766f14c8840c90efa56cec", features = [
"server",
] }
sha3 = "0.10.6"
Expand Down Expand Up @@ -64,6 +64,12 @@ tempdir = "0.3.7"
maplit = "1.0.2"
zksync-web3-rs = "0.1.1"
ethers = { version = "2.0.4", features = ["rustls"] }
jsonschema = "0.26.0"
schemars = "0.8.21"
openrpc-types = "0.4.0"
alloy = { version = "0.5", features = ["full"] }
test-log = "0.2.16"
fs2 = "0.4.3"

[profile.dev]
debug = 0
1 change: 1 addition & 0 deletions e2e-tests/test/zks-apis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ describe("zks_getBridgeContracts", function () {
l1SharedDefaultBridge: null,
l2Erc20DefaultBridge: null,
l2SharedDefaultBridge: null,
l2LegacySharedBridge: null,
l1WethBridge: null,
l2WethBridge: null,
});
Expand Down
2 changes: 2 additions & 0 deletions spec-tests/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
target-dir = "../target"
Loading

0 comments on commit 43fe551

Please sign in to comment.