Skip to content

Commit

Permalink
feat(evm): ucs00-pingpong - emit timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen committed Sep 15, 2023
1 parent 23382fd commit 9f5233f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions evm/contracts/apps/ucs/00-pingpong/PingPong.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ contract PingPong is IBCAppBase {
uint64 private numberOfBlockBeforePongTimeout;

event Ring(bool ping);
event TimedOut();

constructor(
IBCHandler _ibcHandler,
Expand Down Expand Up @@ -113,6 +114,13 @@ contract PingPong is IBCAppBase {
address relayer
) external virtual override onlyIBC {}

function onTimeoutPacket(
IbcCoreChannelV1Packet.Data calldata packet,
address relayer
) external virtual override onlyIBC {
emit TimedOut();
}

function onChanOpenInit(
IbcCoreChannelV1GlobalEnums.Order,
string[] calldata,
Expand Down

0 comments on commit 9f5233f

Please sign in to comment.