Skip to content

Commit

Permalink
Merge pull request #19 from worldcoin/osiris/e2e-tests
Browse files Browse the repository at this point in the history
Osiris/e2e tests
  • Loading branch information
0xOsiris authored Oct 4, 2024
2 parents 25eecbc + 0d4821c commit a81cea7
Show file tree
Hide file tree
Showing 12 changed files with 855 additions and 45 deletions.
352 changes: 336 additions & 16 deletions world-chain-builder/Cargo.lock

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion world-chain-builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ reth-provider = { git = "https://github.com/ewoolsey/reth", rev = "b2848f", feat
alloy-primitives = "0.8"
serde_json = "1"
rand = "0.8"

reth-e2e-test-utils = { git = "https://github.com/ewoolsey/reth", rev = "b2848f" }
reth-consensus = { git = "https://github.com/ewoolsey/reth", rev = "b2848f" }
reth-node-core = { git = "https://github.com/ewoolsey/reth", rev = "b2848f" }
reth-tracing = { git = "https://github.com/ewoolsey/reth", rev = "b2848f" }
alloy-signer = "0.3"
alloy-signer-local = "0.3"

[features]
jemalloc = ["tikv-jemallocator"]
Expand Down
4 changes: 2 additions & 2 deletions world-chain-builder/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ set positional-arguments

# Tests the world-chain-builder
test:
cargo test
cargo test -- --test-threads=1

# Builds the world-chain-builder
# Formats the world-chain-builder
fmt:
cargo fmt
100 changes: 100 additions & 0 deletions world-chain-builder/src/e2e_tests/assets/genesis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"config": {
"chainId": 8453,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"muirGlacierBlock": 0,
"berlinBlock": 0,
"londonBlock": 0,
"arrowGlacierBlock": 0,
"grayGlacierBlock": 0,
"mergeNetsplitBlock": 0,
"bedrockBlock": 0,
"regolithTime": 0,
"terminalTotalDifficulty": 0,
"terminalTotalDifficultyPassed": true,
"optimism": {
"eip1559Elasticity": 6,
"eip1559Denominator": 50
}
},
"nonce": "0x0",
"timestamp": "0x0",
"extraData": "0x00",
"gasLimit": "0x1c9c380",
"difficulty": "0x0",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"alloc": {
"0x14dc79964da2c08b23698b3d3cc7ca32193d9955": {
"balance": "0xd3c21bcecceda1000000"
},
"0x15d34aaf54267db7d7c367839aaf71a00a2c6a65": {
"balance": "0xd3c21bcecceda1000000"
},
"0x1cbd3b2770909d4e10f157cabc84c7264073c9ec": {
"balance": "0xd3c21bcecceda1000000"
},
"0x23618e81e3f5cdf7f54c3d65f7fbc0abf5b21e8f": {
"balance": "0xd3c21bcecceda1000000"
},
"0x2546bcd3c84621e976d8185a91a922ae77ecec30": {
"balance": "0xd3c21bcecceda1000000"
},
"0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc": {
"balance": "0xd3c21bcecceda1000000"
},
"0x70997970c51812dc3a010c7d01b50e0d17dc79c8": {
"balance": "0xd3c21bcecceda1000000"
},
"0x71be63f3384f5fb98995898a86b02fb2426c5788": {
"balance": "0xd3c21bcecceda1000000"
},
"0x8626f6940e2eb28930efb4cef49b2d1f2c9c1199": {
"balance": "0xd3c21bcecceda1000000"
},
"0x90f79bf6eb2c4f870365e785982e1f101e93b906": {
"balance": "0xd3c21bcecceda1000000"
},
"0x976ea74026e726554db657fa54763abd0c3a0aa9": {
"balance": "0xd3c21bcecceda1000000"
},
"0x9965507d1a55bcc2695c58ba16fb37d819b0a4dc": {
"balance": "0xd3c21bcecceda1000000"
},
"0x9c41de96b2088cdc640c6182dfcf5491dc574a57": {
"balance": "0xd3c21bcecceda1000000"
},
"0xa0ee7a142d267c1f36714e4a8f75612f20a79720": {
"balance": "0xd3c21bcecceda1000000"
},
"0xbcd4042de499d14e55001ccbb24a551f3b954096": {
"balance": "0xd3c21bcecceda1000000"
},
"0xbda5747bfd65f08deb54cb465eb87d40e51b197e": {
"balance": "0xd3c21bcecceda1000000"
},
"0xcd3b766ccdd6ae721141f452c550ca635964ce71": {
"balance": "0xd3c21bcecceda1000000"
},
"0xdd2fd4581271e230360230f9337d5c0430bf44c0": {
"balance": "0xd3c21bcecceda1000000"
},
"0xdf3e18d64bc6a983f673ab319ccae4f1a57c7097": {
"balance": "0xd3c21bcecceda1000000"
},
"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266": {
"balance": "0xd3c21bcecceda1000000"
},
"0xfabb0ac9d68b0b445fb7357272ff202c5651694a": {
"balance": "0xd3c21bcecceda1000000"
}
},
"number": "0x0"
}
Loading

0 comments on commit a81cea7

Please sign in to comment.