Skip to content

Commit 81b688b

Browse files
committed
feat: add xdai gateway contracts
1 parent 000b3ef commit 81b688b

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// SPDX-License-Identifier: MIT
2+
3+
pragma solidity ^0.8.0;
4+
5+
import "../../bridge/xdai/xDaiL1Bridge.sol";
6+
import "../../bridge/xdai/interfaces/IAMB.sol";
7+
8+
import "../interfaces/IForeignGateway.sol";
9+
import "../BaseForeignGateway.sol";
10+
11+
contract EthereumGateway is BaseForeignGateway, xDaiL1Bridge {
12+
constructor(
13+
uint256 _arbitrationCost,
14+
IHomeGateway _homeGateway,
15+
address _l2Target,
16+
IAMB _amb
17+
) BaseForeignGateway(_arbitrationCost, _homeGateway) xDaiL1Bridge(_l2Target, _amb) {}
18+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// SPDX-License-Identifier: MIT
2+
3+
pragma solidity ^0.8.0;
4+
5+
import "../../arbitration/IArbitrator.sol";
6+
import "../../bridge/xdai/xDaiL2Bridge.sol";
7+
import "../../bridge/xdai/interfaces/IAMB.sol";
8+
9+
import "../interfaces/IHomeGateway.sol";
10+
import "../BaseHomeGateway.sol";
11+
12+
contract xDaiGateway is BaseHomeGateway, xDaiL2Bridge {
13+
constructor(
14+
IArbitrator _arbitrator,
15+
IForeignGateway _foreignGateway,
16+
address _l1Target,
17+
IAMB _amb
18+
) BaseHomeGateway(_arbitrator, _foreignGateway) xDaiL2Bridge(_l1Target, _amb) {}
19+
}

0 commit comments

Comments
 (0)