tornado-instances/contracts/tornado-trees/mocks/PublicArray.sol
T-Hax 8f085566cc init
Signed-off-by: T-Hax <>
2023-04-08 18:43:42 +00:00

29 lines
753 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract PublicArray {
uint256[] public deposits;
uint256[] public withdrawals;
function lastProcessedDepositLeaf() external view returns (uint256) {}
function lastProcessedWithdrawalLeaf() external view returns (uint256) {}
function depositRoot() external view returns (bytes32) {}
function withdrawalRoot() external view returns (bytes32) {}
function setDeposits(uint256[] memory _deposits) public {
for (uint256 i = 0; i < _deposits.length; i++) {
deposits.push(_deposits[i]);
}
}
function setWithdrawals(uint256[] memory _withdrawals) public {
for (uint256 i = 0; i < _withdrawals.length; i++) {
withdrawals.push(_withdrawals[i]);
}
}
}