Files
smom-dbis-138/script/mainnet-checkpoint/UpgradeChain138MainnetCheckpointV4.s.sol
T
defiQUGandCursor 651fb59786 Add mainnet checkpoint stack: ISO attestation, participant Etherscan surface, and services.
Ship AddressActivityRegistry V1/V2, ISO20022IntakeGateway, Chain138ParticipantSurface,
checkpoint hub contracts, checkpoint-core package, aggregator/indexer/sdk services,
relay profile guards, M00 diamond bridge facet, and OMNL compliance contracts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 21:54:05 -07:00

21 lines
902 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {Script, console} from "forge-std/Script.sol";
import {Chain138MainnetCheckpoint} from "../../contracts/mainnet-checkpoint/Chain138MainnetCheckpoint.sol";
/// @notice UUPS upgrade: PaymentLeafV2 submit + V2 extension payloads. IMPLEMENTATION_VERSION 4.
contract UpgradeChain138MainnetCheckpointV4 is Script {
function run() external {
address proxy = vm.envAddress("CHAIN138_MAINNET_CHECKPOINT_PROXY");
uint256 pk = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(pk);
Chain138MainnetCheckpoint newImpl = new Chain138MainnetCheckpoint();
console.log("New impl v4:", address(newImpl));
Chain138MainnetCheckpoint(proxy).upgradeToAndCall(address(newImpl), "");
require(Chain138MainnetCheckpoint(proxy).IMPLEMENTATION_VERSION() == 4, "version");
vm.stopBroadcast();
}
}