-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathCBAdapter.sol
33 lines (29 loc) · 1.17 KB
/
CBAdapter.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.8;
import {TestNetChainIds} from 'solidity-utils/contracts/utils/ChainHelpers.sol';
import {CBaseAdapter, IOpAdapter} from '../../src/contracts/adapters/cBase/CBaseAdapter.sol';
/**
* @title OptimismAdapterTestnet
* @author BGD Labs
*/
contract CBaseAdapterTestnet is CBaseAdapter {
/**
* @param crossChainController address of the cross chain controller that will use this bridge adapter
* @param ovmCrossDomainMessenger optimism entry point address
* @param trustedRemotes list of remote configurations to set as trusted
*/
constructor(
address crossChainController,
address ovmCrossDomainMessenger,
uint256 providerGasLimit,
TrustedRemotesConfig[] memory trustedRemotes
) CBaseAdapter(crossChainController, ovmCrossDomainMessenger, providerGasLimit, trustedRemotes) {}
/// @inheritdoc IOpAdapter
function isDestinationChainIdSupported(uint256 chainId) public pure override returns (bool) {
return chainId == TestNetChainIds.BASE_SEPOLIA;
}
/// @inheritdoc IOpAdapter
function getOriginChainId() public pure override returns (uint256) {
return TestNetChainIds.ETHEREUM_SEPOLIA;
}
}