This question already has an answer here:
I want to provide a feature to download balances in open zeppelins StandardToken
mapping(address => uint256) balances;
Probem is I get this error :
Internal type is not allowed for public or external functions.
How can I do it ? I imagine it has to be done in phases, like one method for downloading all the addresses, and second method to retrieve the balance for one particular user. Which leads to another question - how to iterate through the mapping and just return array of address.
In my usecase, I have an ESO type option where the startup's employees are given away certain number of tokens for free. This happens by invoking some function marked as "onlyOwner", by the owner. This would not be reflected in the block logs, because there is no ether being transferred to the contract. In the other answer linked, it only deals with the case where the user sent ETH to a particular address.