Skip to content

Commit f4289a7

Browse files
committed
Cleanup import
1 parent d3c46ad commit f4289a7

37 files changed

+1854
-315
lines changed

Cargo.toml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,39 @@
22
name = "citrea-e2e"
33
version = "0.1.0"
44
edition = "2021"
5+
resolver = "2"
56

67
[dependencies]
7-
bollard = { version = "0.17.1" }
8+
anyhow = { version = "1.0.68", default-features = false, features = ["std"] }
9+
async-trait = "0.1.71"
810
bitcoin = { version = "0.32.2", features = ["serde", "rand"] }
911
bitcoincore-rpc = { version = "0.18.0" }
12+
bollard = { version = "0.17.1" }
1013
futures = "0.3"
14+
log = "0.4"
1115
rand = "0.8"
12-
toml = "0.8.0"
1316
serde = { version = "1.0.192", default-features = false, features = ["alloc", "derive"] }
1417
serde_json = { version = "1.0", default-features = false }
15-
tokio = { version = "1.39", features = ["full"] }
16-
anyhow = { version = "1.0.68", default-features = false, features = ["std"] }
1718
tempfile = "3.8"
18-
async-trait = "0.1.71"
19+
tokio = { version = "1.39", features = ["full"] }
20+
toml = "0.8.0"
21+
which = "6.0.3"
22+
23+
# Eth client dependencies
24+
alloy = { version = "0.2.1", features = ["hyper", "consensus", "rpc-types-eth", "provider-http", "signers", "signer-local"] }
25+
jsonrpsee = { version = "0.24.2", features = ["http-client", "ws-client"] }
26+
reqwest = { version = "0.12.5", features = ["rustls-tls", "json", "http2"], default-features = false }
27+
reth-primitives = { git = "https://github.com/paradigmxyz/reth", rev = "a206eb3690e5a51d3c797fed2a6ed722e36863eb", default-features = false }
28+
reth-rpc-eth-types = { git = "https://github.com/paradigmxyz/reth", rev = "a206eb3690e5a51d3c797fed2a6ed722e36863eb", default-features = false }
29+
reth-rpc-types = { git = "https://github.com/paradigmxyz/reth", rev = "a206eb3690e5a51d3c797fed2a6ed722e36863eb", default-features = false, features = ["jsonrpsee-types"] }
30+
31+
# Citrea dependencies
32+
bitcoin-da = { git = "https://github.com/chainwayxyz/citrea", features = ["native"] }
33+
citrea-primitives = { git = "https://github.com/chainwayxyz/citrea" }
34+
citrea-sequencer = { git = "https://github.com/chainwayxyz/citrea" }
35+
sov-ledger-rpc = { git = "https://github.com/chainwayxyz/citrea", features = ["client"] }
36+
sov-rollup-interface = { git = "https://github.com/chainwayxyz/citrea" }
37+
sov-stf-runner = { git = "https://github.com/chainwayxyz/citrea", features = ["native"] }
1938

2039
[patch.crates-io]
21-
bitcoincore-rpc = { version = "0.18.0", git = "https://github.com/chainwayxyz/rust-bitcoincore-rpc.git", rev = "0ae498d" }
40+
bitcoincore-rpc = { version = "0.18.0", git = "https://github.com/chainwayxyz/rust-bitcoincore-rpc.git", rev = "0ae498d" }

Makefile

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
.PHONY: help
2+
3+
help: ## Display this help message
4+
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
5+
6+
.PHONY: build
7+
build: ## Build the project
8+
@cargo build
9+
10+
11+
clean: ## Cleans compiled
12+
@cargo clean
13+
14+
install-dev-tools: ## Installs all necessary cargo helpers
15+
cargo install --locked dprint
16+
cargo install cargo-llvm-cov
17+
cargo install cargo-hack
18+
cargo install --locked cargo-udeps
19+
cargo install flaky-finder
20+
cargo install --locked cargo-nextest
21+
cargo install --version 1.7.0 cargo-binstall
22+
cargo binstall --no-confirm cargo-risczero@1.0.5
23+
cargo risczero install --version r0.1.79.0-2
24+
rustup target add thumbv6m-none-eabi
25+
rustup component add llvm-tools-preview
26+
27+
lint: ## cargo check and clippy. Skip clippy on guest code since it's not supported by risc0
28+
## fmt first, because it's the cheapest
29+
dprint check
30+
cargo +nightly fmt --all --check
31+
cargo check --all-targets --all-features
32+
$(MAKE) check-fuzz
33+
SKIP_GUEST_BUILD=1 cargo clippy --all-targets --all-features
34+
35+
lint-fix: ## dprint fmt, cargo fmt, fix and clippy. Skip clippy on guest code since it's not supported by risc0
36+
dprint fmt
37+
cargo +nightly fmt --all
38+
cargo fix --allow-dirty
39+
SKIP_GUEST_BUILD=1 cargo clippy --fix --allow-dirty
40+
41+
docs: ## Generates documentation locally
42+
cargo doc --open
43+
44+
set-git-hook:
45+
git config core.hooksPath .githooks

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# citrea-e2e
2+
23
E2E Test framework for citrea

dprint.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"markdown": {
3+
},
4+
"toml": {
5+
},
6+
"excludes": [],
7+
"plugins": [
8+
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
9+
"https://plugins.dprint.dev/toml-0.6.3.wasm"
10+
]
11+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"pub_keys": []
3+
}

resources/genesis/bitcoin-regtest/evm.json

Lines changed: 158 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"max_l2_blocks_per_l1": 86400,
3+
"authority": "sov1l6n2cku82yfqld30lanm2nfw43n2auc8clw7r5u5m6s7p8jrm4zqrr8r94"
4+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"pub_keys": []
3+
}

resources/genesis/devnet/evm.json

Lines changed: 38 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"max_l2_blocks_per_l1": 86400,
3+
"authority": "sov1tz5dqrfqrtcsejn4ux7a3dscljqcgvxzf4qarcl5tmqsgsymxw3se4x3a0"
4+
}

0 commit comments

Comments
 (0)