InstanceStateUpdate event

This commit is contained in:
poma 2021-03-06 15:44:17 +03:00
parent 435f30900b
commit 01ca620e7c
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,8 @@ contract TornadoProxy {
using SafeERC20 for IERC20;
event EncryptedNote(address indexed sender, bytes encryptedNote);
event InstanceStateUpdate(address indexed instance, InstanceState state);
enum InstanceState { Disabled, Enabled, Mineable }
struct Instance {
address instance;
@ -75,6 +77,7 @@ contract TornadoProxy {
function updateInstance(ITornadoInstance _instance, InstanceState _state) external onlyGovernance {
instances[_instance] = _state;
emit InstanceStateUpdate(address(_instance), _state);
}
function setTornadoTreesContract(address _instance) external onlyGovernance {