An explanation of the ERC20 standard functions
In the context of a license carrier
function name() public view returns (string) - The name of the game/software title
function symbol() public view returns (string) - Abbreviation of the title
function decimals() public view returns (uint8) - Number of decimal places, HashUp creates cartridges with 2 decimal places.
function totalSupply() public view returns (uint256) - Total supply of license carriers for the given software.
function balanceOf(address _owner) public view returns (uint256 balance) - The number of cartridges located at address _owner. As in the case of physical media, one cartridge is required to have the right to use the software.
function transfer(address _to, uint256 _value) public returns (bool success) - A functionality that enables software exchange between users.
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) - funkcja umożliwiająca chwytanie przez inne smart kontrakty w celu programowania dokładnego obrotu licencjom - A function that allows other smart contracts to capture in order to program the exact number of licenses.
function approve(address _spender, uint256 _value) public returns (bool success) - a function that makes a given number of licenses available for other contracts to use.
function allowance(address _owner, address _spender) public view returns (uint256 remaining) - the number of license carriers available for being captured by another contract.
Last updated
