Skip to content

Commit

Permalink
update events
Browse files Browse the repository at this point in the history
  • Loading branch information
tkernell committed Nov 10, 2021
1 parent a5f8a17 commit c61336d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions contracts/Controller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ import "./Getters.sol";
*/
contract Controller is TellorStaking, Transition, Getters {
// Events
event NewControllerContract(address _newController);
event NewGovernanceContract(address _newGovernance);
event NewOracleContract(address _newOracle);
event NewTreasuryContract(address _newTreasury);
event NewContractAddress(address _newContract, string _contractName);

// Functions
/**
Expand Down Expand Up @@ -47,7 +44,7 @@ contract Controller is TellorStaking, Transition, Getters {
assembly {
sstore(_EIP_SLOT, _newController)
}
emit NewControllerContract(_newController);
emit NewContractAddress(_newController, "Controller");
}

/**
Expand All @@ -62,7 +59,7 @@ contract Controller is TellorStaking, Transition, Getters {
);
require(_isValid(_newGovernance));
addresses[_GOVERNANCE_CONTRACT] = _newGovernance;
emit NewGovernanceContract(_newGovernance);
emit NewContractAddress(_newGovernance, "Governance");
}

/**
Expand All @@ -77,7 +74,7 @@ contract Controller is TellorStaking, Transition, Getters {
);
require(_isValid(_newOracle));
addresses[_ORACLE_CONTRACT] = _newOracle;
emit NewOracleContract(_newOracle);
emit NewContractAddress(_newOracle, "Oracle");
}

/**
Expand All @@ -92,7 +89,7 @@ contract Controller is TellorStaking, Transition, Getters {
);
require(_isValid(_newTreasury));
addresses[_TREASURY_CONTRACT] = _newTreasury;
emit NewTreasuryContract(_newTreasury);
emit NewContractAddress(_newTreasury, "Treasury");
}

/**
Expand Down

0 comments on commit c61336d

Please sign in to comment.