Skip to content

Commit

Permalink
feat: implement V1
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed May 7, 2024
1 parent b7be958 commit e63b05c
Show file tree
Hide file tree
Showing 3 changed files with 1,198 additions and 4 deletions.
9 changes: 5 additions & 4 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.25;

import {TransparentUpgradeableProxy} from
"lib/openzeppelin-contracts/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import {AvailBridge} from "src/AvailBridge.sol";
import {AvailBridgeV1} from "src/AvailBridgeV1.sol";
import {Avail} from "src/Avail.sol";
import {IAvail} from "src/interfaces/IAvail.sol";
import {IVectorx} from "src/interfaces/IVectorx.sol";
Expand All @@ -13,11 +13,12 @@ contract Deploy is Script {
function run() external {
vm.startBroadcast();
address admin = vm.envAddress("ADMIN");
address pauser = vm.envAddress("PAUSER");
address vectorx = vm.envAddress("VECTORX");
address impl = address(new AvailBridge());
AvailBridge bridge = AvailBridge(address(new TransparentUpgradeableProxy(impl, admin, "")));
address impl = address(new AvailBridgeV1());
AvailBridgeV1 bridge = AvailBridgeV1(address(new TransparentUpgradeableProxy(impl, admin, "")));
Avail avail = new Avail(address(bridge));
bridge.initialize(0, admin, IAvail(address(avail)), admin, admin, IVectorx(vectorx));
bridge.initialize(0, admin, IAvail(address(avail)), admin, pauser, IVectorx(vectorx));
vm.stopBroadcast();
}
}
Loading

0 comments on commit e63b05c

Please sign in to comment.