Last active
February 3, 2021 11:52
-
-
Save gitpusha/955cf9558ff9a4fe6f6de1ab6cea53f4 to your computer and use it in GitHub Desktop.
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
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity 0.8.0; | |
contract TaskEmitter { | |
event LogTaskSubmitted(address indexed service, bytes task); | |
modifier isListed { | |
// Make some call to Gelato governance whitelist and check if service | |
// trying to submit a Task is whitelisted. | |
_; | |
} | |
function submitTask(bytes calldata _task) external isListed { | |
emit LogTaskSubmitted(msg.sender, _task); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment