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 allowances. Also generates an ERC20 accessor in the same way as the
mapping(address => mapping(address => uint256))
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 => uint256)
Initialises the inherited
constructor(address _owner, address _associatedContract)
Sets the token allowance granted to the
spender by the
setAllowance(address tokenOwner, address spender, uint256 value)
Sets the balance of the specified account.
setBalanceOf(address account, uint256 value)