LogoLogo
Blockchain ExplorerWebsiteAirdrop
  • Welcome to Metacces
  • Overview
    • Mission & Vision
    • Market Analysis
    • Story
  • THE ECOSYSTEM
    • Unique Oli
      • Who is Oli
      • AI Integration
      • Blockchain Integration
    • Blacxes
      • What is Blacxes
      • Utilites
      • Unique DNA
      • DAO Governance
      • Technology
      • Distribution
      • Swap
    • Access Journey
      • Overview
      • Basic level
      • Intermediate level
      • Final level
    • Main App
      • Overview
      • Account
      • Assets
      • Use Acces Journey
    • Blockchain Layer 1
    • Acces Coin
      • Coin Utility
      • Smart-Contracts
      • Tokenomecs
      • Metacces Listings Roadmap
  • 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
  • MISC
    • Roadmap
      • Main Roadmap
        • ✔️2022
        • ✔️2023
        • 🔛2024
        • 2025
      • 🪙Coin Roadmap
        • 2022
        • 2023
        • 2024
    • Meet The Team
    • Be a partner With Metacces
    • Pitch Deck⁩
    • Social Links
      • Website
      • Telegram
      • X.Twitter
      • Discord
      • Youtube
      • Instagram
      • Facebook
Powered by GitBook
On this page
  • 1. Write the token smart contract
  • 2. Compile your code into bytecode
  • 3. Deploy your Variable-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
  • 5. You can use the _mint function to create additional units of the token

Was this helpful?

  1. DEVELOPERS
  2. Smart Contracts

Variable Cap Asset

Create a variable cap asset

PreviousFixed Cap AssetNextRoadmap

Last updated 8 months ago

Was this helpful?

1. Write the token smart contract

This 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

  • 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 Variable-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

5. You can use the _mint function to create additional units of the token

openzeppelin-contracts/ERC20.sol at master · OpenZeppelin/openzeppelin-contractsGitHub
Logo