LogoLogo
Blockchain ExplorerGitHubCertikWebsite
  • 🚀Metacces is coming !!!
  • 🎯Mission & Vision
  • 📈Market Analysis
  • 🤝Partnerships
  • METACCES: GENERAL
    • 🎮Metacces: AR/VR Game
      • 👉Introduction
      • 🔑Key features
      • 📈Earning mechanics
      • 👽Unique Oli AI
      • 🧬Blacxes
        • What is Blacxes
        • Utilites
        • Unique DNA
        • DAO Governance
        • Technology
        • Distribution
        • Swap
      • ⛓️Bridging Web2 Simplicity with Web3 Power
      • 🚀How Does Metacces Outperform the Competition?
      • 🎮Game Structure
        • Origin Story: Oli & the Blacxes
        • Game theme (Access Journey)
          • Overview
          • Basic level
          • Intermediate level
          • Final level
        • Activities and Gameplay
        • Game seasons
          • Introduction
          • Season Concept
          • What Does Each Season Include?
          • Importance of Seasons in Metacces
        • Skins & Tools
          • Introduction
          • Core Principles
          • Core Uses of Tools
          • Main Categories of Tools
          • Rarity and Value
          • Symbolism of Tools
          • Verification and Security Mechanisms
        • Clans
          • Introduction
          • Core Pillars of the Clan System
          • Clan Activities
          • Ownership and Economy Within the Clan
          • The Reputation System
          • The Future of Clans in Metacces
          • How to Create a Clan in Metacces
    • 🪙Acces Coin
      • Coin Utility
      • Smart-Contracts
      • Tokenomecs
      • Metacces Listings Roadmap
    • ⛓️Blockchain Layer 1
      • Developers
        • Public Endpoints
        • MetaMask
        • Node Setup
        • JSON RPC Server
        • Connect to RPC
        • API Methods
        • Client Libraries
        • Smart Contracts
          • Deploy
          • Interact
          • Transfer
          • Fixed Cap Asset
          • Variable Cap Asset
  • DEVELOPMENT
  • 📅Roadmap
    • Main Roadmap
      • ✔️2022
      • ✔️2023
      • 🔛2024
      • 2025
    • Coin Roadmap
      • 2022
      • 2023
      • 2024
  • TEAM
    • 7️⃣Core 7 values
    • 👨‍🚀Meet The Team
  • SECURITY
    • 🫂 Team KYC Gold Verified by CERTIK (2024)
    • 🪙Coin Audit by CERTIK
    • 🗓️Smart Contract Vesting Audit by CERTIK
    • 🪙Coin Audit by SOLIDPROOF
    • 🪙Coin Audit by HACKEN
  • OTHER INFO
    • Contact Us
    • Community
      • Website
      • Telegram
      • X.Twitter
      • Discord
      • Youtube
      • Instagram
      • Facebook
Powered by GitBook
On this page
  • Create the Asset
  • 1. Write the token smart contract
  • 2. Compile your code into bytecode
  • 3. Deploy your Fixed-cap Asset by sending your code in a transaction to the Enter network
  • 4. Navigate to the explorer to check that your token has been created

Was this helpful?

  1. METACCES: GENERAL
  2. Blockchain Layer 1
  3. Developers
  4. Smart Contracts

Fixed Cap Asset

Create a Fixed-cap Asset

Fixed-cap assets are fungible tokens for which the supply is determined at the time of asset creation. No additional quantities can be generated afterwards.

Create the Asset

1. Write the token smart contract

https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20Capped.solgithub.comExtension of ERC20 that adds a cap to the supply of tokensThis contract is designed to be unopinionated, allowing developers to access the internal functions in ERC20 (such as _mint) and expose them as external functions in the way they prefer. On the other hand, ERC20 Presets (such as ERC20PresetMinterPauser) are designed using opinionated patterns to provide developers with ready to use, deployable contracts.

Functions

Fixed-cap Assets

  • constructor(cap)

  • cap()

  • _beforeTokenTransfer(from, to, amount)

General

  • name()

  • symbol()

  • decimals()

  • totalSupply()

  • balanceOf(account)

  • transfer(recipient, amount)

  • allowance(owner, spender)

  • approve(spender, amount)

  • transferFrom(sender, recipient, amount)

  • increaseAllowance(spender, addedValue)

  • decreaseAllowance(spender, subtractedValue)

  • _transfer(sender, recipient, amount)

  • _mint(account, amount)

  • _burn(account, amount)

  • _approve(owner, spender, amount)

  • _setupDecimals(decimals_)

2. Compile your code into bytecode

3. Deploy your Fixed-cap Asset by sending your code in a transaction to the Enter network

4. Navigate to the explorer to check that your token has been created

PreviousTransferNextVariable Cap Asset

Last updated 9 months ago

Was this helpful?

⛓️