add events

This commit is contained in:
poma 2021-03-21 00:45:14 +03:00
parent a3da216e03
commit 9321740be7
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657

View File

@ -36,6 +36,8 @@ contract TornadoTrees is Initializable {
event DepositData(address instance, bytes32 indexed hash, uint256 block, uint256 index); event DepositData(address instance, bytes32 indexed hash, uint256 block, uint256 index);
event WithdrawalData(address instance, bytes32 indexed hash, uint256 block, uint256 index); event WithdrawalData(address instance, bytes32 indexed hash, uint256 block, uint256 index);
event VerifierUpdated(address newVerifier);
event ProxyUpdated(address newProxy);
struct TreeLeaf { struct TreeLeaf {
bytes32 hash; bytes32 hash;
@ -283,10 +285,12 @@ contract TornadoTrees is Initializable {
function setTornadoProxyContract(address _tornadoProxy) external onlyGovernance { function setTornadoProxyContract(address _tornadoProxy) external onlyGovernance {
tornadoProxy = _tornadoProxy; tornadoProxy = _tornadoProxy;
emit ProxyUpdated(_tornadoProxy);
} }
function setVerifierContract(IBatchTreeUpdateVerifier _treeUpdateVerifier) external onlyGovernance { function setVerifierContract(IBatchTreeUpdateVerifier _treeUpdateVerifier) external onlyGovernance {
treeUpdateVerifier = _treeUpdateVerifier; treeUpdateVerifier = _treeUpdateVerifier;
emit VerifierUpdated(address(_treeUpdateVerifier));
} }
function blockNumber() public view virtual returns (uint256) { function blockNumber() public view virtual returns (uint256) {