Skip to content

Commit 12933c9

Browse files
committed
update IChannelConfigStore for channel adder implementation
1 parent aa520cd commit 12933c9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

contracts/src/v0.8/llo-feeds/v0.5.0/configuration/interfaces/IChannelConfigStore.sol

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,15 @@ import {IERC165} from "@openzeppelin/[email protected]/interfaces/IERC165.sol";
55

66
interface IChannelConfigStore is IERC165 {
77
function setChannelDefinitions(uint32 donId, string calldata url, bytes32 sha) external;
8+
function addChannelDefinitions(uint256 donId,uint32 channelAdderId,string calldata url,bytes32 sha) external;
9+
function setChannelAdderAddress(uint32 channelAdderId,address adderAddress) external;
10+
function setChannelAdder(uint256 donId,uint32 channelAdderId,bool allowed) external;
11+
function getChannelAdderAddress(uint32 channelAdderId) external view returns (address);
12+
function isChannelAdderAllowed(uint256 donId,uint32 channelAdderId) external view returns (bool);
13+
function getAllowedChannelAdders(uint256 donId) external view returns (uint256[] memory);
14+
15+
event NewChannelDefinition(uint256 indexed donId, uint32 version, string url, bytes32 sha);
16+
event ChannelDefinitionAdded(uint256 indexed donId, uint32 indexed channelAdderId, string url, bytes32 sha);
17+
event ChannelAdderSet(uint256 indexed donId, uint32 indexed channelAdderId, bool allowed);
18+
event ChannelAdderAddressSet(uint32 indexed channelAdderId, address adderAddress);
819
}

0 commit comments

Comments
 (0)