generated from open-dollar/contracts-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to using chainlinkRelayerWithL2Validity interface. still not s…
…ure which relayer factory to use.
- Loading branch information
1 parent
4ebeef3
commit 4ca972e
Showing
7 changed files
with
174 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"solidity.compileUsingRemoteVersion": "latest" | ||
"solidity.compileUsingRemoteVersion": "v0.8.20+commit.a1b79de6" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"ChainlinkRelayerFactory_Address": "0x555691C860015a5CE8748296fbbAa624410F55A4", | ||
"ChainlinkSequencerFeed": "0xFdB631F5EE196F0ed6FAa767959853A9F217697D", | ||
"ODGovernor_Address": "0x69ae232E574352232aB8678869eAA3BEBd885211", | ||
"PredictedRelayerAddresses": [ | ||
{ | ||
"symbol": "LINK/USD", | ||
"address": "0x3Dc02C28D29D6A4D13dE03E7c596a94c76f7600a" | ||
}, | ||
{ | ||
"symbol": "GRT/USD", | ||
"address": "0xf589519a17bDC25749AFAcbC6BAFdd05BF5d24Af" | ||
}, | ||
{ | ||
"symbol": "ETH/USD", | ||
"address": "0x33660aB6E38F6D8011Eca7AAa6F3CC7ef6380d91" | ||
} | ||
], | ||
"arrayLength": "3", | ||
"calldatas": [ | ||
"0x251ad9a500000000000000000000000086e53cf1b870786351da77a57575e79cb55812cb000000000000000000000000fdb631f5ee196f0ed6faa767959853a9f217697d00000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000000000000000e10", | ||
"0x251ad9a50000000000000000000000000f38d86fcef4955b705f35c9e41d1a16e0637c73000000000000000000000000fdb631f5ee196f0ed6faa767959853a9f217697d00000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000000000000000e10", | ||
"0x251ad9a5000000000000000000000000639fe6ab55c921f74e7fac1ee960c0b6293ba612000000000000000000000000fdb631f5ee196f0ed6faa767959853a9f217697d00000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000000000000000e10" | ||
], | ||
"chainid": 421614, | ||
"description": "Deploy new chainlink relayers", | ||
"descriptionHash": "0x03087660ad65289d7f9f35887f72e304a35460e94606f1c40d6d3884e0e36a4c", | ||
"network": "sepolia", | ||
"objectArray": [ | ||
{ | ||
"symbol": "LINK/USD", | ||
"chainlinkPriceFeed": "0x86E53CF1B870786351Da77A57575e79CB55812CB", | ||
"staleThreshold": "86400", | ||
"gracePeriod": "3600" | ||
}, | ||
{ | ||
"symbol": "GRT/USD", | ||
"chainlinkPriceFeed": "0x0F38D86FceF4955B705F35c9e41d1A16e0637c73", | ||
"staleThreshold": "86400", | ||
"gracePeriod": "3600" | ||
}, | ||
{ | ||
"symbol": "ETH/USD", | ||
"chainlinkPriceFeed": "0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612", | ||
"staleThreshold": "86400", | ||
"gracePeriod": "3600" | ||
} | ||
], | ||
"proposalId": 61857469553398489852308972851954168900597935201047788453491803085690968636070, | ||
"proposalType": "DeployChainlinkRelayers", | ||
"targets": [ | ||
"0x555691C860015a5CE8748296fbbAa624410F55A4", | ||
"0x555691C860015a5CE8748296fbbAa624410F55A4", | ||
"0x555691C860015a5CE8748296fbbAa624410F55A4" | ||
], | ||
"values": [ | ||
0, | ||
0, | ||
0 | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"ChainlinkRelayerFactory_Address": "0x555691C860015a5CE8748296fbbAa624410F55A4", | ||
"ODGovernor_Address": "0x69ae232E574352232aB8678869eAA3BEBd885211", | ||
"PredictedRelayerAddresses": [ | ||
{ | ||
"symbol": "LINK/USD", | ||
"address": "0x3Dc02C28D29D6A4D13dE03E7c596a94c76f7600a" | ||
}, | ||
{ | ||
"symbol": "GRT/USD", | ||
"address": "0xf589519a17bDC25749AFAcbC6BAFdd05BF5d24Af" | ||
}, | ||
{ | ||
"symbol": "ETH/USD", | ||
"address": "0x33660aB6E38F6D8011Eca7AAa6F3CC7ef6380d91" | ||
} | ||
], | ||
"arrayLength": "3", | ||
"calldatas": [ | ||
"0x0e880baf00000000000000000000000086e53cf1b870786351da77a57575e79cb55812cb0000000000000000000000000000000000000000000000000000000000015180", | ||
"0x0e880baf0000000000000000000000000f38d86fcef4955b705f35c9e41d1a16e0637c730000000000000000000000000000000000000000000000000000000000015180", | ||
"0x0e880baf000000000000000000000000639fe6ab55c921f74e7fac1ee960c0b6293ba6120000000000000000000000000000000000000000000000000000000000015180" | ||
], | ||
"chainid": 421614, | ||
"description": "Deploy new chainlink relayers", | ||
"descriptionHash": "0x03087660ad65289d7f9f35887f72e304a35460e94606f1c40d6d3884e0e36a4c", | ||
"network": "sepolia", | ||
"objectArray": [ | ||
{ | ||
"symbol": "LINK/USD", | ||
"chainlinkPriceFeed": "0x86E53CF1B870786351Da77A57575e79CB55812CB", | ||
"oracleInterval": "86400" | ||
}, | ||
{ | ||
"symbol": "GRT/USD", | ||
"chainlinkPriceFeed": "0x0F38D86FceF4955B705F35c9e41d1A16e0637c73", | ||
"oracleInterval": "86400" | ||
}, | ||
{ | ||
"symbol": "ETH/USD", | ||
"chainlinkPriceFeed": "0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612", | ||
"oracleInterval": "86400" | ||
} | ||
], | ||
"proposalId": 89905853856568703090559033767978405054476072179378790781042789157140266282505, | ||
"proposalType": "DeployChainlinkRelayers", | ||
"targets": [ | ||
"0x555691C860015a5CE8748296fbbAa624410F55A4", | ||
"0x555691C860015a5CE8748296fbbAa624410F55A4", | ||
"0x555691C860015a5CE8748296fbbAa624410F55A4" | ||
], | ||
"values": [ | ||
0, | ||
0, | ||
0 | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity 0.8.20; | ||
|
||
import {IBaseOracle} from '@opendollar/interfaces/oracles/IBaseOracle.sol'; | ||
|
||
interface IChainlinkRelayerFactory { | ||
// --- Events --- | ||
event NewChainlinkRelayer(address indexed _chainlinkRelayer, address _aggregator, uint256 _staleThreshold); | ||
|
||
function deployChainlinkRelayer(address _aggregator, uint256 _staleThreshold) external returns (IBaseOracle _relayer); | ||
|
||
function deployChainlinkRelayerWithL2Validity( | ||
address _priceAggregator, | ||
address _sequencerAggregator, | ||
uint256 _staleThreshold, | ||
uint256 _gracePeriod | ||
) external returns (IBaseOracle _chainlinkRelayer); | ||
} |