forked from hyperledger-labs/yui-ibc-solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIBCHandler.sol
35 lines (33 loc) · 1.24 KB
/
IBCHandler.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.9;
import "../24-host/IBCHost.sol";
import "./IBCClientHandler.sol";
import "./IBCConnectionHandler.sol";
import "./IBCChannelHandler.sol";
import "./IBCPacketHandler.sol";
import "./IBCQuerier.sol";
/**
* @dev IBCHandler is a contract that implements [ICS-25](https://github.com/cosmos/ibc/tree/main/spec/core/ics-025-handler-interface).
*/
abstract contract IBCHandler is
IBCHost,
IBCClientHandler,
IBCConnectionHandler,
IBCChannelHandler,
IBCPacketHandler,
IBCQuerier
{
/**
* @dev The arguments of constructor must satisfy the followings:
* @param ibcClient is the address of a contract that implements `IIBCClient`.
* @param ibcConnection is the address of a contract that implements `IIBCConnectionHandshake`.
* @param ibcChannel is the address of a contract that implements `IIBCChannelHandshake`.
* @param ibcPacket is the address of a contract that implements `IIBCPacket`.
*/
constructor(address ibcClient, address ibcConnection, address ibcChannel, address ibcPacket)
IBCClientHandler(ibcClient)
IBCConnectionHandler(ibcConnection)
IBCChannelHandler(ibcChannel)
IBCPacketHandler(ibcPacket)
{}
}