mirror of
https://github.com/tornadocash/tornado-anonymity-mining.git
synced 2024-10-31 23:55:20 +01:00
InstanceStateUpdate event
This commit is contained in:
parent
435f30900b
commit
01ca620e7c
@ -13,6 +13,8 @@ contract TornadoProxy {
|
|||||||
using SafeERC20 for IERC20;
|
using SafeERC20 for IERC20;
|
||||||
|
|
||||||
event EncryptedNote(address indexed sender, bytes encryptedNote);
|
event EncryptedNote(address indexed sender, bytes encryptedNote);
|
||||||
|
event InstanceStateUpdate(address indexed instance, InstanceState state);
|
||||||
|
|
||||||
enum InstanceState { Disabled, Enabled, Mineable }
|
enum InstanceState { Disabled, Enabled, Mineable }
|
||||||
struct Instance {
|
struct Instance {
|
||||||
address instance;
|
address instance;
|
||||||
@ -75,6 +77,7 @@ contract TornadoProxy {
|
|||||||
|
|
||||||
function updateInstance(ITornadoInstance _instance, InstanceState _state) external onlyGovernance {
|
function updateInstance(ITornadoInstance _instance, InstanceState _state) external onlyGovernance {
|
||||||
instances[_instance] = _state;
|
instances[_instance] = _state;
|
||||||
|
emit InstanceStateUpdate(address(_instance), _state);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setTornadoTreesContract(address _instance) external onlyGovernance {
|
function setTornadoTreesContract(address _instance) external onlyGovernance {
|
||||||
|
Loading…
Reference in New Issue
Block a user