LogoLogo
WebsiteGameXplorerGameContract
HashUp
HashUp
  • Start with HashUp
  • Get Started
    • Dictionary
    • How to Make Money with HashUp?
    • How to Create Your Own Store on HashUp?
    • The HashUp API
    • PC Launcher
    • HashUp Game Object
    • Roadmap
    • ERC20 cartridge
      • An explanation of the ERC20 standard functions
      • ERC20 vs ERC721
      • Profits for the owner/creator
      • Types of Cartridges
      • Cartridge creation
      • New capabilities
      • ERC20 Modification License
      • Scalability of Cartridges
    • GameSwap
      • New capabilities
      • GameSwapping vs Subscription model
    • How to publish a game?
    • Games Files
    • # Token
      • Architecture of the # token
      • Liquidity Mining Process
      • Demand&Volume
      • Tokenomics
    • Architecture
      • IGO - contract, games shop
      • NFT Ads
    • HashUp Platforms
      • GameCap.io
      • GameXplorer.io
      • GameWallet
      • GameContract.io
    • HashUp Protocol
  • Platforms
    • GameXplorer
      • How to buy a game?
    • GameContract
  • Community
    • Social Media
    • Support
  • Team
  • FAQ
  • Links
  • Credits
Powered by GitBook
On this page
  1. Get Started
  2. ERC20 cartridge

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.

PreviousERC20 cartridgeNextERC20 vs ERC721

Last updated 2 years ago