Skip to content

feat(devnet): Deploy withdrawal output builder#486

Open
brunomenezes wants to merge 4 commits into
prerelease/v2-alphafrom
feat/devnet-deploy-withdrawal-output-builder
Open

feat(devnet): Deploy withdrawal output builder#486
brunomenezes wants to merge 4 commits into
prerelease/v2-alphafrom
feat/devnet-deploy-withdrawal-output-builder

Conversation

@brunomenezes

Copy link
Copy Markdown
Contributor

Summary

This PR introduces a dedicated, deterministic deployment script for UsdWithdrawalOutputBuilder, making it available in the deployment and final anvil state dump (anvil_state.json) deliverables (devnet only, 31337). It will support the usage and testing of emergency withdrawal. Also, to avoid our own inline implementation of its UsdWithdrawalOutputBuilderFactory interface and avoid misalignments with subsequent changes in the rollups-contracts code, the cartesi-rollups-contracts was added as a soldeer dependency so the Factory definition can be used in the script.

PS: In future rollups-contracts releases, this contract will be deployed and available. Therefore, the script will be removed, and only the content from the artifacts will be necessary. Nonetheless, it will be transparent for clients using this package.

What Changed:

  • Add forge script in the build pipeline to deploy UsdWithdrawalOutputBuilder to be included in the deployments and anvil state dump.
  • Removed its own implementation of test tokens. Therefore, only those from rollups-contracts will be part of the distribution. Clients will need to update accordingly (e.g. cartesi-cli address-book)

* Also downgrade @openzeppelin-contracts from 5.5.0 to 5.2.0 to align with version used by cartesi-rollups-contracts.
… the factory.

* refactor: base-deployment-script to use @openzeppelin-contracts version 5.2.0.
@changeset-bot

changeset-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3e883b4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cartesi/devnet Patch

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant