-
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.
* build AutomationUtils contract and update tests * use report struct as rawReport bytes * update wrappers * add Log struct --------- Co-authored-by: FelixFan1992 <fankejin@gmail.com>
- Loading branch information
1 parent
1ec921f
commit ea89f08
Showing
9 changed files
with
500 additions
and
139 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
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
Oops, something went wrong.