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

feat: devnet #238

merged 26 commits into from
Sep 10, 2024

Conversation

cchudant
Copy link
Member

Pull Request type

  • Feature

What is the new behavior?

Make a genesis block and add a simple test

Does this introduce a breaking change?

No

@cchudant
Copy link
Member Author

i ended up going back and forth a lot on the approach, and i'm still quite not happy with it

@cchudant
Copy link
Member Author

i think it's in a state where you could review it but my two tests are kinda verbose i'll fix that real quick

@cchudant cchudant marked this pull request as ready for review August 29, 2024 10:02
@cchudant
Copy link
Member Author

i also added the launching of anvil in the scripts/e2e-coverage.sh, if you didnt know that script existed it just launches all the tests and outputs coverage

Copy link
Contributor

@EvolveArt EvolveArt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see there is a test using some kind of PreparedDevnet, is Genesis usable with an node in authority mode yet ?

crates/client/mempool/src/block_production.rs Show resolved Hide resolved
crates/client/mempool/src/genesis/balances.rs Outdated Show resolved Hide resolved
crates/client/mempool/src/genesis/mod.rs Outdated Show resolved Hide resolved
crates/client/mempool/src/genesis/mod.rs Outdated Show resolved Hide resolved
crates/client/mempool/src/genesis/mod.rs Outdated Show resolved Hide resolved
@cchudant cchudant mentioned this pull request Sep 3, 2024
@cchudant cchudant changed the title Genesis feat: devnet Sep 6, 2024
Copy link

github-actions bot commented Sep 6, 2024

Coverage report

The coverage rate is 74.36512852276248%

63% of new lines are covered.

Diff Coverage details (click to unfold)

crates/node/src/service/rpc/server.rs

100.0% of new lines are covered

crates/client/devnet/src/predeployed_contracts.rs

57.142857142857146% of new lines are covered

crates/node/src/service/block_production.rs

0.0% of new lines are covered

crates/client/mempool/src/lib.rs

34.722222222222214% of new lines are covered

crates/client/db/src/lib.rs

100.0% of new lines are covered

crates/client/devnet/src/entrypoint.rs

100.0% of new lines are covered

crates/client/block_import/src/lib.rs

100.0% of new lines are covered

crates/client/rpc/src/versions/v0_7_1/methods/read/estimate_message_fee.rs

0.0% of new lines are covered

crates/node/src/cli/block_production.rs

33.33333333333334% of new lines are covered

crates/client/mempool/src/close_block.rs

0.0% of new lines are covered

crates/client/rpc/src/errors.rs

0.0% of new lines are covered

crates/node/src/main.rs

85.71428571428572% of new lines are covered

crates/client/rpc/src/providers/mempool.rs

0.0% of new lines are covered

crates/client/devnet/src/contracts.rs

100.0% of new lines are covered

crates/primitives/chain_config/src/chain_config.rs

100.0% of new lines are covered

crates/client/exec/src/block_context.rs

40.0% of new lines are covered

crates/client/db/src/class_db.rs

100.0% of new lines are covered

crates/client/devnet/src/classes.rs

85.29411764705883% of new lines are covered

crates/client/exec/src/blockifier_state_adapter.rs

88.88888888888889% of new lines are covered

crates/client/rpc/src/utils/mod.rs

0.0% of new lines are covered

crates/client/rpc/src/versions/v0_7_1/methods/read/call.rs

0.0% of new lines are covered

crates/client/block_import/src/rayon.rs

100.0% of new lines are covered

crates/client/mempool/src/block_production.rs

56.52173913043478% of new lines are covered

crates/client/rpc/src/versions/v0_7_1/methods/trace/trace_block_transactions.rs

0.0% of new lines are covered

crates/client/rpc/src/versions/v0_7_1/methods/trace/trace_transaction.rs

0.0% of new lines are covered

crates/client/sync/src/l2.rs

91.66666666666667% of new lines are covered

crates/primitives/utils/src/lib.rs

80.0% of new lines are covered

crates/client/db/src/devnet_db.rs

0.0% of new lines are covered

crates/client/devnet/src/lib.rs

75.0% of new lines are covered

crates/client/rpc/src/versions/v0_7_1/methods/read/estimate_fee.rs

0.0% of new lines are covered

crates/node/src/cli/mod.rs

100.0% of new lines are covered

crates/node/src/service/l1.rs

0.0% of new lines are covered

crates/client/block_import/src/verify_apply.rs

100.0% of new lines are covered

crates/client/mempool/src/l1.rs

100.0% of new lines are covered

crates/client/rpc/src/versions/v0_7_1/methods/trace/simulate_transactions.rs

0.0% of new lines are covered

crates/client/block_import/src/pre_validate.rs

97.29729729729729% of new lines are covered

crates/client/sync/src/lib.rs

100.0% of new lines are covered

crates/client/block_import/src/types.rs

35.0% of new lines are covered

crates/client/devnet/src/balances.rs

90.0% of new lines are covered

crates/client/sync/src/fetch/fetchers.rs

54.54545454545455% of new lines are covered

@antiyro antiyro merged commit 0606505 into main Sep 10, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants