Skip to content

feat: celestia to vanilla arbitrum nitro migration#20

Open
albertlai431 wants to merge 5 commits into
mainfrom
albert/celestia-to-vanilla-migration
Open

feat: celestia to vanilla arbitrum nitro migration#20
albertlai431 wants to merge 5 commits into
mainfrom
albert/celestia-to-vanilla-migration

Conversation

@albertlai431

Copy link
Copy Markdown
Member
  • updates seq inbox & inbox to vanilla 2.1.3
  • updates wasm module root to consensus-v32 root
  • new challenge manager and osp

@albertlai431 albertlai431 requested a review from InoMurko June 15, 2026 21:36
Comment on lines +19 to +26
bytes32 public constant WASM_MODULE_ROOT =
0x184884e1eb9fefdc158f6c8ac912bb183bf3cf83f0090317e0bc4ac5860baa39;

// celestia wasm module root the chain is migrated FROM; kept as condRoot so in-flight challenges
// anchored here are routed to the live (celestia) OSP after the swap
// https://github.com/celestiaorg/nitro/releases/tag/v3.2.1-rc.1
bytes32 public constant COND_WASM_MODULE_ROOT =
0xe81f986823a85105c5fd91bb53b4493d38c0c26652d23f76a7405ac889908287;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

correct!

Comment on lines +48 to +67
address newOsp = existingOsp;
if (newOsp == address(0)) {
address osp0 = deployBytecodeFromJSON(
'/node_modules/@arbitrum/nitro-contracts-2.1.0/build/contracts/src/osp/OneStepProver0.sol/OneStepProver0.json'
);
address ospMemory = deployBytecodeFromJSON(
'/node_modules/@arbitrum/nitro-contracts-2.1.0/build/contracts/src/osp/OneStepProverMemory.sol/OneStepProverMemory.json'
);
address ospMath = deployBytecodeFromJSON(
'/node_modules/@arbitrum/nitro-contracts-2.1.0/build/contracts/src/osp/OneStepProverMath.sol/OneStepProverMath.json'
);
address ospHostIo = deployBytecodeFromJSON(
'/node_modules/@arbitrum/nitro-contracts-2.1.0/build/contracts/src/osp/OneStepProverHostIo.sol/OneStepProverHostIo.json'
);

newOsp = deployBytecodeWithConstructorFromJSON(
'/node_modules/@arbitrum/nitro-contracts-2.1.0/build/contracts/src/osp/OneStepProofEntry.sol/OneStepProofEntry.json',
abi.encode(osp0, ospMemory, ospMath, ospHostIo)
);
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

will these get verified? if not, make sure to keep the artifacts and after deployment - verify them. l2beat wants to see them sometimes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

looks like on base sepolia they get auto-verified due to other contracts with identical bytecode but will make sure for mainnet

@InoMurko

Copy link
Copy Markdown
Collaborator

looks good, pls make sure Celestia team takes a look

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants