-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into chore/2.3.0-release-prep
- Loading branch information
Showing
208 changed files
with
6,228 additions
and
1,422 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
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
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
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
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
27 changes: 27 additions & 0 deletions
27
contracts/src/v0.8/dev/automation/2_1/AutomationUtils2_1.sol
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,27 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.16; | ||
|
||
import "./KeeperRegistryBase2_1.sol"; | ||
import "./interfaces/ILogAutomation.sol"; | ||
|
||
/** | ||
* @notice this file exposes structs that are otherwise internal to the automation registry | ||
* doing this allows those structs to be encoded and decoded with type safety in offchain code | ||
* and tests because generated wrappers are made available | ||
*/ | ||
|
||
contract AutomationUtils2_1 { | ||
function _onChainConfig(KeeperRegistryBase2_1.OnchainConfig memory) external {} | ||
|
||
function _report(KeeperRegistryBase2_1.Report memory) external {} | ||
|
||
function _logTriggerConfig(KeeperRegistryBase2_1.LogTriggerConfig memory) external {} | ||
|
||
function _conditionalTriggerConfig(KeeperRegistryBase2_1.ConditionalTriggerConfig memory) external {} | ||
|
||
function _logTrigger(KeeperRegistryBase2_1.LogTrigger memory) external {} | ||
|
||
function _conditionalTrigger(KeeperRegistryBase2_1.ConditionalTrigger memory) external {} | ||
|
||
function _log(Log memory) external {} | ||
} |
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
31 changes: 31 additions & 0 deletions
31
contracts/src/v0.8/dev/automation/2_1/mocks/MockKeeperRegistry2_1.sol
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,31 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.16; | ||
|
||
import "../interfaces/IAutomationRegistryConsumer.sol"; | ||
|
||
contract MockKeeperRegistry2_1 is IAutomationRegistryConsumer { | ||
uint256 balance; | ||
uint96 minBalance; | ||
|
||
constructor() {} | ||
|
||
function getBalance(uint256 id) external view override returns (uint256) { | ||
return balance; | ||
} | ||
|
||
function getMinBalance(uint256 id) external view override returns (uint96) { | ||
return minBalance; | ||
} | ||
|
||
function cancelUpkeep(uint256 id) external override {} | ||
|
||
function pauseUpkeep(uint256 id) external override {} | ||
|
||
function unpauseUpkeep(uint256 id) external override {} | ||
|
||
function updateCheckData(uint256 id, bytes calldata newCheckData) external {} | ||
|
||
function addFunds(uint256 id, uint96 amount) external override {} | ||
|
||
function withdrawFunds(uint256 id, address to) external override {} | ||
} |
Oops, something went wrong.