dione/eth-contracts/contracts/OracleEmitter.sol

22 lines
664 B
Solidity
Raw Normal View History

// SPDX-License-Identifier: MIT
pragma solidity >=0.4.21 <0.7.0;
contract OracleEmitter {
uint256 requestCounter;
event NewOracleRequest(
2020-11-15 10:16:38 +00:00
string originChain,
string requestType,
string requestParams,
address callbackAddress,
bytes4 callbackMethodID,
uint256 requestID
);
2020-11-15 10:16:38 +00:00
function requestOracles(string memory originChain, string memory requestType, string memory requestParams, address callbackAddress, bytes4 callbackMethodID) public returns (uint256) {
requestCounter++;
emit NewOracleRequest(originChain, requestType, requestParams, callbackAddress, callbackMethodID, requestCounter);
return requestCounter;
}
}