dione/eth-contracts/contracts/OracleEmitter.sol
2020-11-15 13:16:38 +03:00

22 lines
664 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity >=0.4.21 <0.7.0;
contract OracleEmitter {
uint256 requestCounter;
event NewOracleRequest(
string originChain,
string requestType,
string requestParams,
address callbackAddress,
bytes4 callbackMethodID,
uint256 requestID
);
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;
}
}