-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
158 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.6.8; | ||
|
||
library Cosmos { | ||
struct Coin { | ||
uint256 amount; | ||
string denom; | ||
} | ||
} | ||
|
||
interface IRelayerModule { | ||
// Client | ||
event CreateClient(string indexed client_id, string indexed client_type, string indexed consensus_height); | ||
event UpdateClient(string indexed client_id, string indexed client_type, string indexed consensus_height); | ||
event UpgradeClient(string indexed client_id, string indexed client_type, string indexed consensus_height); | ||
event SubmitMisbehaviour(string indexed subject_id, string indexed client_type); | ||
// Connection | ||
event ConnectionOpenInit(string indexed connection_id, string indexed client_id, string indexed counterparty_client_id, string indexed counterparty_connection_id); | ||
event ConnectionOpenTry(string indexed connection_id, string indexed client_id, string indexed counterparty_client_id, string indexed counterparty_connection_id); | ||
event ConnectionOpenAck(string indexed connection_id, string indexed client_id, string indexed counterparty_client_id, string indexed counterparty_connection_id); | ||
event ConnectionOpenConfirm(string indexed connection_id, string indexed client_id, string indexed counterparty_client_id, string indexed counterparty_connection_id); | ||
// Channel | ||
event ChannelOpenInit(string indexed port_id, string indexed channel_id, string indexed counterparty_port_id, string indexed counterparty_channel_id, string connection_id, string version); | ||
event ChannelOpenTry(string indexed port_id, string indexed channel_id, string indexed counterparty_port_id, string indexed counterparty_channel_id, string connection_id, string version); | ||
event ChannelOpenAck(string indexed port_id, string indexed channel_id, string indexed counterparty_port_id, string indexed counterparty_channel_id, string connection_id); | ||
event ChannelOpenConfirm(string indexed port_id, string indexed channel_id, string indexed counterparty_port_id, string indexed counterparty_channel_id, string connection_id); | ||
event ChannelCloseInit(string indexed port_id, string indexed channel_id, string indexed counterparty_port_id, string indexed counterparty_channel_id, string connection_id); | ||
event ChannelCloseConfirm(string indexed port_id, string indexed channel_id, string indexed counterparty_port_id, string indexed counterparty_channel_id, string connection_id); | ||
event RecvPacket( | ||
string indexed packet_data, | ||
string indexed packet_data_hex, | ||
string indexed packet_timeout_height, | ||
string indexed packet_timeout_timestamp, | ||
string packet_sequence, | ||
string packet_src_port, | ||
string packet_src_channel, | ||
string packet_dst_port, | ||
string packet_dst_channel, | ||
string packet_channel_ordering, | ||
string packet_connection, | ||
); | ||
event WriteAck( | ||
string indexed packet_data, | ||
string indexed packet_data_hex, | ||
string indexed packet_timeout_height, | ||
string indexed packet_timeout_timestamp, | ||
string packet_sequence, | ||
string packet_src_port, | ||
string packet_src_channel, | ||
string packet_dst_port, | ||
string packet_dst_channel, | ||
string packet_ack, | ||
string packet_ack_hex, | ||
string packet_connection, | ||
); | ||
event AcknowledgePacket( | ||
string indexed packet_timeout_height, | ||
string indexed packet_timeout_timestamp, | ||
string indexed packet_sequence, | ||
string indexed packet_src_port, | ||
string packet_src_channel, | ||
string packet_dst_port, | ||
string packet_dst_channel, | ||
string packet_channel_ordering, | ||
string packet_connection, | ||
); | ||
event TimeoutPacket( | ||
string indexed packet_timeout_height, | ||
string indexed packet_timeout_timestamp, | ||
string indexed packet_sequence, | ||
string indexed packet_src_port, | ||
string packet_src_channel, | ||
string packet_dst_port, | ||
string packet_dst_channel, | ||
string packet_channel_ordering, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters