dione/eth-contracts/contracts/OracleEmitter.sol

22 lines
660 B
Solidity

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