From 01ca620e7cb5a3b42ef04000ade01ef5c946a3fd Mon Sep 17 00:00:00 2001 From: poma Date: Sat, 6 Mar 2021 15:44:17 +0300 Subject: [PATCH] InstanceStateUpdate event --- contracts/TornadoProxy.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/TornadoProxy.sol b/contracts/TornadoProxy.sol index f659d94..264110f 100644 --- a/contracts/TornadoProxy.sol +++ b/contracts/TornadoProxy.sol @@ -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 {