Skip to content

Commit

Permalink
feat: devnet (#238)
Browse files Browse the repository at this point in the history
Co-authored-by: antiyro <[email protected]>
  • Loading branch information
cchudant and antiyro authored Sep 10, 2024
1 parent d50814a commit 0606505
Show file tree
Hide file tree
Showing 67 changed files with 1,904 additions and 258 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.8.1"

- uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/linters-cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
toolchain: 1.78
components: rustfmt, clippy

- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.8.1"

- name: Setup build deps
run: |
sudo apt-get update
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/rust-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
with:
toolchain: 1.78

- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.8.1"

- name: Check the project
run: |
cargo check --release --workspace
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Cargo
# will have compiled files and executables
**/target/
/target
# These are backup files generated by rustfmt
**/*.rs.bk

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Next release

- feat: add devnet via `--devnet` cli argument
- refactor: class import from FGW
- code docs: documented how get_storage_at is implemented
- fix: L1 rpc <=> network mismatch
Expand Down
123 changes: 123 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ members = [
"crates/client/rpc",
"crates/client/telemetry",
"crates/client/metrics",
"crates/client/devnet",
"crates/client/mempool",
"crates/client/block_import",
"crates/node",
Expand All @@ -30,6 +31,7 @@ default-members = [
"crates/client/rpc",
"crates/client/telemetry",
"crates/client/metrics",
"crates/client/devnet",
"crates/client/mempool",
"crates/client/block_import",
"crates/node",
Expand Down Expand Up @@ -101,12 +103,14 @@ mc-eth = { path = "crates/client/eth" }
mc-metrics = { path = "crates/client/metrics" }
mc-mempool = { path = "crates/client/mempool" }
mc-block-import = { path = "crates/client/block_import" }
mc-devnet = { path = "crates/client/devnet" }

# Starknet dependencies
cairo-vm = "=1.0.1"
starknet-core = "0.11"
starknet-crypto = "0.7"
starknet-providers = "0.11"
starknet-signers = "0.9"
starknet = "0.11.0"

starknet-types-core = { version = "0.1.5", default-features = false, features = [
Expand Down Expand Up @@ -168,6 +172,7 @@ dotenv = "0.15.0"
httpmock = "0.7.0"
tempfile = "3.10.1"
env_logger = "0.11.3"
mockall = "0.13.0"

[patch.crates-io]
starknet-core = { git = "https://github.com/kasarlabs/starknet-rs.git", branch = "fork" }
Expand Down
7 changes: 7 additions & 0 deletions cairo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
target/*
!target/dev
target/dev/*
!target/dev/madara_contracts_ERC20.contract_class.json
!target/dev/madara_contracts_UniversalDeployer.contract_class.json
!target/dev/madara_contracts_AccountUpgradeable.contract_class.json
.snfoundry_cache/
7 changes: 7 additions & 0 deletions cairo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Devnet contracts

These contracts are used for the genesis block in devnet mode. For real world use, the [madara bootstrapper] is used instead.
We use [OpenZeppelin] contracts.

[OpenZeppelin]: https://docs.openzeppelin.com
[madara bootstrapper]: https://github.com/madara-alliance/madara-bootstrapper
Loading

0 comments on commit 0606505

Please sign in to comment.