Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: devnet #238

Merged
merged 26 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8ece8dd
refactor: move convert block and global trie computations to block_im…
cchudant Aug 20, 2024
230e5e0
Merge remote-tracking branch 'origin/main' into genesis
cchudant Aug 23, 2024
813fe31
address review comments
cchudant Aug 23, 2024
3827575
make genesis
cchudant Aug 25, 2024
8bafc5c
genesis basic transfer
cchudant Aug 27, 2024
b8daa52
basic transfer almost works
cchudant Aug 28, 2024
513e7a3
basic transfers and revert works :)
cchudant Aug 28, 2024
6dec172
Merge remote-tracking branch 'origin/main' into genesis2
cchudant Aug 29, 2024
5226bb4
fmt and fix errors
cchudant Aug 29, 2024
bdc92a4
errors: rpc use display_internal_server_error function
cchudant Aug 29, 2024
a1024c4
clear up reverted txs
cchudant Aug 29, 2024
516b29e
fix and clean up test
cchudant Aug 29, 2024
26402cc
Move the genesis creation to devnet crate
cchudant Sep 4, 2024
4d23866
hook devnet config to cli
cchudant Sep 5, 2024
bc00443
fix: changelog and minor fixes
cchudant Sep 6, 2024
b91b517
Merge remote-tracking branch 'origin/main' into genesis2
cchudant Sep 6, 2024
eefb18b
fix: Fetched a pending block, got a closed one
cchudant Sep 6, 2024
5c3520d
fix(ci): install scarb
cchudant Sep 6, 2024
513c943
fix(ci): install scarb in rust-check
cchudant Sep 6, 2024
91fef76
fix(ci): install scarb
cchudant Sep 6, 2024
9a143bd
fix(ci): install scarb in cargo linters
cchudant Sep 6, 2024
4353540
Merge branch 'main' into genesis2
antiyro Sep 6, 2024
8041645
fix: current pending tick
cchudant Sep 9, 2024
eab2d82
Merge remote-tracking branch 'origin/main' into genesis2
cchudant Sep 9, 2024
d9418a1
fix: compiled class db key
cchudant Sep 9, 2024
036f380
fix: fmt
cchudant Sep 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading