Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions script/BuildPointers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,17 @@ contract BuildPointers is Script {
"bytes32 constant STOX_PROD_AUTHORISER_V4_CLONE_CODEHASH ="
" 0x2089950d3cc1112dd66a58adcfadeadc490b50053ac67be8bc676b4a2dcd1717;"
);
// Ethereum V4 authoriser clone — same nonce-based `CloneFactory.clone`
// deploy as Base, so its address is non-deterministic and hand-provided
// here (placeholder `address(0)` until the Ethereum bootstrap deploys it
// and the hydrate PR replaces this literal). Shares the deterministic
// EIP-1167 codehash above (same impl on every chain).
vm.writeLine(GEN_V4_PATH, "address constant STOX_PROD_AUTHORISER_V4_CLONE_ETHEREUM = address(0);");
// Ethereum V4 authoriser clone — a nonce-based `CloneFactory.clone`
// deploy like Base's, so its address is not derivable and is carried
// here as a literal. Shares the EIP-1167 codehash above: both chains'
// clones embed the same authoriser impl, so both hash identically.
//
// The address is NOT chain-unique — a different clone occupies it on
// Base — so a consumer must match the codehash, not merely find code.
vm.writeLine(
GEN_V4_PATH,
"address constant STOX_PROD_AUTHORISER_V4_CLONE_ETHEREUM = address(0x66566cc91dEAf818859bD4b09B7903ac48998157);"
);
vm.writeLine(GEN_V4_PATH, "uint256 constant V4_SWAP_DEADLINE = 1_793_491_200;");
for (uint256 t = 0; t < tags.length; t++) {
for (uint256 c = 0; c < 12; c++) {
Expand Down
2 changes: 1 addition & 1 deletion src/generated/LibProdDeployV4.sol
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ library LibProdDeployV4 {
address constant STOX_PROD_AUTHORISER_V4_CLONE = address(0x315b16faa6eE413faBCa877d3851B3818369f0cD);
bytes32 constant STOX_PROD_AUTHORISER_V4_CLONE_CODEHASH =
0x2089950d3cc1112dd66a58adcfadeadc490b50053ac67be8bc676b4a2dcd1717;
address constant STOX_PROD_AUTHORISER_V4_CLONE_ETHEREUM = address(0);
address constant STOX_PROD_AUTHORISER_V4_CLONE_ETHEREUM = address(0x66566cc91dEAf818859bD4b09B7903ac48998157);
uint256 constant V4_SWAP_DEADLINE = 1_793_491_200;
address constant STOX_RECEIPT_0_1_1 = STOX_RECEIPT_ADDRESS_0_1_1_GEN;
bytes32 constant STOX_RECEIPT_CODEHASH_0_1_1 = STOX_RECEIPT_CODEHASH_0_1_1_GEN;
Expand Down
Loading