Skip to content

Commit

Permalink
rename event name
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Nov 20, 2024
1 parent 4e78f92 commit 42b4c06
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/eco/XAPIOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ contract XAPIOracle is Verifier, IXAPIConsumer {
event SetApproved(address operator, bool approve);
event Withdrawal(address indexed to, uint256 amt);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event RequestMade(uint256 indexed requestId, XAPIBuilder.Request requestData);
event ConsumeResult(uint256 indexed requestId, bytes responseData, uint16 errorCode);
event ConsumeError(uint256 indexed requestId, uint16 errorCode);
event XAPIRequestMade(uint256 indexed requestId, XAPIBuilder.Request requestData);
event XAPIConsumeResult(uint256 indexed requestId, bytes responseData, uint16 errorCode);
event XAPIConsumeError(uint256 indexed requestId, uint16 errorCode);

address public immutable PROTOCOL;
address public immutable XAPI;
Expand Down Expand Up @@ -99,7 +99,7 @@ contract XAPIOracle is Verifier, IXAPIConsumer {
uint256 fee_ = IXAPI(XAPI).fee(EXAGGREGATOR);
require(msg.value >= fee_, "!fee");
requestId = IXAPI(XAPI).makeRequest{value: fee_}(requestData);
emit RequestMade(requestId, requestData);
emit XAPIRequestMade(requestId, requestData);
payable(msg.sender).transfer(msg.value - fee_);
}

Expand All @@ -109,9 +109,9 @@ contract XAPIOracle is Verifier, IXAPIConsumer {
(uint256 chainId, address channel, uint256 msgIndex, bytes32 msgHash) =
abi.decode(response.result, (uint256, address, uint256, bytes32));
IORMP(PROTOCOL).importHash(chainId, channel, msgIndex, msgHash);
emit ConsumeResult(requestId, response.result, response.errorCode);
emit XAPIConsumeResult(requestId, response.result, response.errorCode);
} else {
emit ConsumeError(requestId, response.errorCode);
emit XAPIConsumeError(requestId, response.errorCode);
}
}

Expand Down

0 comments on commit 42b4c06

Please sign in to comment.