An external state contract to hold ERC20 balances and allowances. This operates as an adjunct to
ExternStateToken, so that important token information can persist while the token contract itself can be switched out to upgrade its functionality.
ERC20 balances, note that as a public variable, this synthesises an accessor which is itself ERC20 compliant, so balances can be queried by dApps directly from the state contract.
mapping(address => uint) public
ERC20 allowances. Also generates an ERC20 accessor in the same way as the
mapping(address => mapping(address => uint)) public
Initialises the inherited
constructor(address _owner, address _associatedContract) public
Sets the token allowance granted to the
spender by the
setAllowance(address tokenOwner, address spender, uint value) external
Sets the balance of the specified account.
setBalanceOf(address account, uint value)