DeployTokenBridgeImplementationOnly.s.sol 684 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: UNLICENSED
  2. pragma solidity ^0.8.4;
  3. import {BridgeImplementation} from "../contracts/bridge/BridgeImplementation.sol";
  4. import "forge-std/Script.sol";
  5. contract DeployTokenBridgeImplementationOnly is Script {
  6. // DryRun - Deploy the system
  7. function dryRun() public {
  8. _deploy();
  9. }
  10. // Deploy the system
  11. function run() public returns (address deployedAddress) {
  12. vm.startBroadcast();
  13. deployedAddress = _deploy();
  14. vm.stopBroadcast();
  15. }
  16. function _deploy() internal returns (address deployedAddress) {
  17. BridgeImplementation impl = new BridgeImplementation();
  18. return address(impl);
  19. }
  20. }