feat: bridges, PMM, flash workflow, token-aggregation, and deployment docs
- CCIP/trustless bridge contracts, GRU tokens, DEX/PMM tests, reserve vault. - Token-aggregation service routes, planner, chain config, relay env templates. - Config snapshots and multi-chain deployment markdown updates. - gitignore services/btc-intake/dist/ (tsc output); do not track dist. Run forge build && forge test before deploy (large solc graph). Made-with: Cursor
This commit is contained in:
27
script/DeployCCIPRelayRouterOnly.s.sol
Normal file
27
script/DeployCCIPRelayRouterOnly.s.sol
Normal file
@@ -0,0 +1,27 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.19;
|
||||
|
||||
import {Script, console} from "forge-std/Script.sol";
|
||||
import {CCIPRelayRouter} from "../contracts/relay/CCIPRelayRouter.sol";
|
||||
|
||||
contract DeployCCIPRelayRouterOnly is Script {
|
||||
function run() external {
|
||||
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
|
||||
address deployer = vm.addr(deployerPrivateKey);
|
||||
address relayer = vm.envAddress("RELAYER_ADDRESS");
|
||||
|
||||
console.log("Deploying CCIPRelayRouter with deployer:", deployer);
|
||||
console.log("Relayer:", relayer);
|
||||
|
||||
vm.startBroadcast(deployerPrivateKey);
|
||||
|
||||
CCIPRelayRouter relayRouter = new CCIPRelayRouter();
|
||||
if (relayer != address(0)) {
|
||||
relayRouter.grantRelayerRole(relayer);
|
||||
}
|
||||
|
||||
vm.stopBroadcast();
|
||||
|
||||
console.log("CCIPRelayRouter deployed at:", address(relayRouter));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user