Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissioned payloads controller interface #737

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/governance-v3/IPermissionedPayloadsController.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IPayloadsControllerCore} from "./IPayloadsControllerCore.sol";
import {IWithPayloadsManager} from "./IWithPayloadsManager.sol";
import {PayloadsControllerUtils} from "./PayloadsControllerUtils.sol";

/**
* @title IPermissionedPayloadsController
* @author BGD Labs
* @notice interface containing the objects, events and methods definitions of the IPermissionedPayloadsController contract
*/
interface IPermissionedPayloadsController is IPayloadsControllerCore, IWithPayloadsManager {
/**
* @notice method to initialize the contract with starter params. Only callable by proxy
* @param guardian address of the guardian. With permissions to call certain methods
* @param initialPayloadsManager address of the initial payload manager
* @param executors array of executor configurations
*/
function initialize(
address guardian,
address initialPayloadsManager,
UpdateExecutorInput[] calldata executors
) external;

function setExecutionDelay(uint40 delay) external;
}
26 changes: 26 additions & 0 deletions src/governance-v3/IWithPayloadsManager.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
* @title IWithPayloadsManager
* @author BGD Labs
* @notice interface containing the objects, events and methods definitions of the IWithPayloadsManager contract
*/
interface IWithPayloadsManager {
/**
* @notice Emitted when the payload manager gets updated.
* @param newPayloadsManager The address of the new payload manager.
*/
event PayloadsManagerUpdated(address newPayloadsManager);

/**
* @notice method to get payload manager address;
*/
function payloadsManager() external view returns(address);

/**
* @notice method to update payload manager.
* @param newPayloadsManager The new payload manager address.
*/
function updatePayloadsManager(address newPayloadsManager) external;
}
Loading