foundry-rs / foundry-rs/foundry

feat: support atomic deployment / batch submit

Open
#7,452 1 comment 2 reactions 0 assignees View on GitHub
A-private-transactions C-forge Cmd-forge-script T-feature
Dominant language
Rust
Stars
10.6k
Forks
2.6k
Avg merge
16h 38m
Merged PRs (30d)
511

Description

### Component

Forge

### Describe the feature you would like

I would like to batch-submit deployment script transactions within the same block. With this feature, users can deploy two contracts, execute multiple txs, atomically.

From my current understanding, each tx is submitted individually. This could cause problems on a multi-step deployment where action B should only succeed if the state changed from action A remains constant, but the contract is built in a way such that the state can be modified during/afterwards.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing how Forge deployment scripts submit transactions individually. Define the batching and atomicity requirements for deploying multiple contracts and executing multiple transactions within one block. Done means a deployment script can submit the batch so the operations succeed or fail atomically.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, solidity
Domain
blockchain, cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.