Skip to content

Instantly share code, notes, and snippets.

@gitpusha
Last active February 3, 2021 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gitpusha/955cf9558ff9a4fe6f6de1ab6cea53f4 to your computer and use it in GitHub Desktop.
Save gitpusha/955cf9558ff9a4fe6f6de1ab6cea53f4 to your computer and use it in GitHub Desktop.
// 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