TokenState
Inherits: Ownable
State Variables
epoch
uint256 public epoch;
accounts
address[] public accounts;
balances
mapping(address => uint256) public balances;
Functions
constructor
constructor(uint256 _epoch) Ownable(msg.sender);
hasBalance
function hasBalance(address account) public view returns (bool);
empty
function empty() public view returns (bool);
getStateLength
function getStateLength() public view returns (uint256);
setEpoch
function setEpoch(uint256 _epoch) public onlyOwner;
addAmount
function addAmount(address account, uint256 amount) public onlyOwner;
getTransfers
function getTransfers() public view returns (Transfer[] memory);
cleanup
function cleanup() public onlyOwner;
Events
TransferAdded
Events
event TransferAdded(address indexed account, uint256 amount);