forked from bgd-labs/aave-delivery-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScrollAdapter.sol
35 lines (31 loc) · 1.16 KB
/
ScrollAdapter.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
34
35
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.8;
import {TestNetChainIds} from './TestNetChainIds.sol';
import {IOpAdapter, ScrollAdapter} from '../../src/contracts/adapters/scroll/ScrollAdapter.sol';
/**
* @title OptimismAdapterTestnet
* @author BGD Labs
*/
contract ScrollAdapterTestnet is ScrollAdapter {
/**
* @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
)
ScrollAdapter(crossChainController, ovmCrossDomainMessenger, providerGasLimit, trustedRemotes)
{}
/// @inheritdoc IOpAdapter
function isDestinationChainIdSupported(uint256 chainId) public pure override returns (bool) {
return chainId == TestNetChainIds.SCROLL_SEPOLIA;
}
/// @inheritdoc IOpAdapter
function getOriginChainId() public pure override returns (uint256) {
return TestNetChainIds.ETHEREUM_SEPOLIA;
}
}