-
Notifications
You must be signed in to change notification settings - Fork 12
Optimize espresso-dev-node startup #281
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
Conversation
🦋 Changeset detectedLatest commit: 5da851a The changes in this PR will be included in the next version bump. This PR includes no changesetsWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Coverage Report for ./apps/cli
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||
|
CI will keep failing while cannon package is not published to registry |
6a60701 to
0ddb6c9
Compare
6601b6a to
ff69f85
Compare
|
My latest test showed this error (and a lot more after that). |
207efd6 to
9c42c33
Compare
9c42c33 to
5da851a
Compare
|
Integrated into draft PR at #304 |
This PR tries to speed up espresso-dev-node startup time by using a new option called
ESPRESSO_DEV_NODE_L1_DEPLOYMENT=skiponly currently available at themainunreleased version ofespresso-dev-node. It expects the smart contract to already be deployed to the L1 provider (anvil).For that to work we first created a cannon package for the espresso network smart contracts.
That is available at https://github.com/cartesi/espresso-network/tree/cartesi
So the first step to test this PR is to clone that repo, switch to branch
cartesiand runcannon build(assuming cannon is installed).Then we integrated the cannon package into our devnet, which can be built using
That assumes the cannon package
espresso-network:0.0.1@mainwas built locally.ps: when a stable version exists, we can publish to cannon registry.
Then we changed the binary used by the SDK to a
mainunreleased version.Copy the unreleased devnet into SDK and build it.
Then run the CLI with a
develimage: