Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

test: by signature tests #21

Merged
merged 7 commits into from
Dec 8, 2023
Merged
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
7 changes: 7 additions & 0 deletions src/interfaces/ILlamaCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pragma solidity ^0.8.23;

import {ILlamaPolicy} from "src/interfaces/ILlamaPolicy.sol";
import {ILlamaStrategy} from "src/interfaces/ILlamaStrategy.sol";
import {ActionState} from "src/lib/Enums.sol";
import {
Action,
ActionInfo,
Expand All @@ -20,8 +21,14 @@ import {
/// @author Llama ([email protected])
/// @notice This is the interface for LlamaCore.
interface ILlamaCore {
error InvalidSignature();

error PolicyholderDoesNotHavePermission();

/// @dev The action is not in the expected state.
/// @param current The current state of the action.
error InvalidActionState(ActionState current);

function actionGuard(address target, bytes4 selector) external view returns (address guard);

function actionsCount() external view returns (uint256);
Expand Down
4 changes: 4 additions & 0 deletions test/PeripheryTestSetup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ contract PeripheryTestSetup is Test {
address coreTeam4 = 0x6b45E38c87bfCa15ee90AAe2AFe3CFC58cE08F75;
address coreTeam5 = 0xbdfcE43E5D2C7AA8599290d940c9932B8dBC94Ca;

address tokenHolder;
uint256 tokenHolderPrivateKey;

// Function selectors used in tests.
bytes4 public constant SET_ROLE_HOLDER_SELECTOR = 0x2524842c; // pause(bool)

Expand All @@ -51,5 +54,6 @@ contract PeripheryTestSetup is Test {

function setUp() public virtual {
vm.createSelectFork(MAINNET_RPC_URL, 18_707_845);
(tokenHolder, tokenHolderPrivateKey) = makeAddrAndKey("tokenHolder");
}
}
Loading
Loading