Skip to content

Commit

Permalink
Rename ExpertCommitteeArbitrator
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-kaufman committed Nov 26, 2024
1 parent 849e5ce commit 1391ccb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pragma solidity 0.8.16;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IHATClaimsManager.sol";

contract HATCommitteeArbitrator is Ownable {
contract ExpertCommitteeArbitrator is Ownable {
address public expertCommittee;

error OnlyExpertCommittee();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# HATCommitteeArbitrator
# ExpertCommitteeArbitrator



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const UniSwapV3RouterMock = artifacts.require("./UniSwapV3RouterMock.sol");
const TokenLockFactory = artifacts.require("./TokenLockFactory.sol");
const HATTokenLock = artifacts.require("./HATTokenLock.sol");
const RewardController = artifacts.require("./RewardController.sol");
const HATCommitteeArbitrator = artifacts.require("./HATCommitteeArbitrator.sol");
const ExpertCommitteeArbitrator = artifacts.require("./ExpertCommitteeArbitrator.sol");
const utils = require("./utils.js");
const IHATCommitteeArbitrator = new ethers.utils.Interface(HATCommitteeArbitrator.abi);
const IExpertCommitteeArbitrator = new ethers.utils.Interface(ExpertCommitteeArbitrator.abi);
const IHATClaimsManager = new ethers.utils.Interface(HATClaimsManager.abi);

const { deployHATVaults } = require("../scripts/deployments/hatvaultsregistry-deploy.js");
Expand Down Expand Up @@ -76,7 +76,7 @@ const setup = async function(
silent: true
});
hatVaultsRegistry = await HATVaultsRegistry.at(deployment.hatVaultsRegistry.address);
arbitratorContract = await HATCommitteeArbitrator.new(accounts[7]);
arbitratorContract = await ExpertCommitteeArbitrator.new(accounts[7]);
await hatVaultsRegistry.setDefaultArbitrator(arbitratorContract.address);
rewardController = await RewardController.at(
deployment.rewardControllers[0].address
Expand Down Expand Up @@ -146,7 +146,7 @@ const setup = async function(
await claimsManager.committeeCheckIn({ from: accounts[1] });
};

contract("HATCommitteeArbitrator", (accounts) => {
contract("ExpertCommitteeArbitrator", (accounts) => {
it("challenge - approve Claim ", async () => {
await setup(accounts);
const staker = accounts[1];
Expand Down Expand Up @@ -288,7 +288,7 @@ contract("HATCommitteeArbitrator", (accounts) => {
await hatTimelockController.schedule(
arbitratorContract.address,
0, // value
IHATCommitteeArbitrator.encodeFunctionData("setExpertCommittee", [newExpertCommittee]),
IExpertCommitteeArbitrator.encodeFunctionData("setExpertCommittee", [newExpertCommittee]),
"0x0000000000000000000000000000000000000000000000000000000000000000", // predecessor
"0x0000000000000000000000000000000000000000000000000000000000000000", // salt
60 * 60 * 24 * 7 // delay
Expand All @@ -301,7 +301,7 @@ contract("HATCommitteeArbitrator", (accounts) => {
await hatTimelockController.execute(
arbitratorContract.address,
0,
IHATCommitteeArbitrator.encodeFunctionData("setExpertCommittee", [newExpertCommittee]),
IExpertCommitteeArbitrator.encodeFunctionData("setExpertCommittee", [newExpertCommittee]),
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000000000000000000000000000000000000000000000"
);
Expand Down

0 comments on commit 1391ccb

Please sign in to comment.