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.
  1. The name of the game/software title

  2. Abbreviation of the title

  3. Number of decimal places, HashUp creates cartridges with 2 decimal places.

  4. Total supply of license carriers for the given software.

  5. 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.

  6. A functionality that enables software exchange between users.

  7. A function that allows other smart contracts to capture in order to program the exact number of licenses.

  8. A function that makes a given number of licenses available for other contracts to use.

  9. The number of license carriers available for being captured by another contract.

In addition, the HashUp Cartridge is an extended version of the ERC20 standard that includes features designed to fully decentralize the software licensing medium, such as cartridge metadata in the form of function tokenURI() public view returns (string) and Ownership transfer over the contract in accordance with the Open Zeppelin standard.

Last updated