Files
smom-dbis-138/script/DeployMonad138OutboundLane.s.sol
defiQUG 11c97777d4
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m11s
CI/CD Pipeline / Security Scanning (push) Has been cancelled
CI/CD Pipeline / Lint and Format (push) Has been cancelled
CI/CD Pipeline / Terraform Validation (push) Has been cancelled
CI/CD Pipeline / Kubernetes Validation (push) Has been cancelled
Validation / validate-genesis (push) Has been cancelled
Validation / validate-terraform (push) Has been cancelled
Validation / validate-kubernetes (push) Has been cancelled
Validation / validate-smart-contracts (push) Has been cancelled
Validation / validate-security (push) Has been cancelled
Validation / validate-documentation (push) Has been cancelled
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 1m4s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 31s
OMNL reconcile anchor / Run omnl:reconcile and upload artifacts (push) Failing after 29s
Verify Deployment / Verify Deployment (push) Failing after 57s
feat(chain138): Monad CCIP, token aggregation OMNL gates, HYBX client, and PMM deploy updates.
Relay router, reserve system, oracle publisher, token-aggregation compliance middleware, and Monad deployment scripts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-18 00:11:33 -07:00

34 lines
1.3 KiB
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import {Script, console} from "forge-std/Script.sol";
import {CCIPRouter} from "../contracts/ccip/CCIPRouter.sol";
import {CCIPWETH9Bridge} from "../contracts/ccip/CCIPWETH9Bridge.sol";
/// @notice Event-only send router + WMON bridge on Monad for Monad→138 relay lane.
contract DeployMonad138OutboundLane is Script {
function run() external {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
address deployer = vm.addr(deployerPrivateKey);
address wmon = vm.envAddress("WETH9_MONAD");
address feeToken = vm.envOr("CCIP_FEE_TOKEN", address(0));
uint64 chain138Selector = uint64(vm.envUint("CHAIN138_SELECTOR"));
console.log("Deployer:", deployer);
console.log("WMON:", wmon);
console.log("Fee token (0=native MON):", feeToken);
vm.startBroadcast(deployerPrivateKey);
CCIPRouter router = new CCIPRouter(feeToken, 0, 0);
console.log("Monad event-only CCIPRouter:", address(router));
router.addSupportedChain(chain138Selector);
CCIPWETH9Bridge bridge = new CCIPWETH9Bridge(address(router), wmon, feeToken);
console.log("Monad outbound CCIPWETH9Bridge:", address(bridge));
vm.stopBroadcast();
}
}