Skip to content

Meenu00615/Solidity-Create-a-Token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Solidity Create a Token

Project: Create a Token

Description

This contract implements a basic token system on the blockchain. It contains public variables to store essential details about the token such as its name, abbreviation, and total supply. Additionally, it includes a mapping that associates addresses with token balances.

Two primary functions are defined:

  • Mint Function: This function increases the total token supply and the balance of a specified address by a given value.
  • Burn Function: This function decreases the total token supply and the balance of a specified address by a given value, effectively destroying tokens.
  • To ensure the integrity of the token system, the burn function includes conditionals to verify that the balance of the address being burnt from is sufficient for the intended amount to be burnt.

Getting Started - Links

https://remix.ethereum.org/#lang=en&optimize=false&runs=200&evmVersion=null https://remix.ethereum.org/#lang=en&optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.18+commit.87f61d96.js

Outputs

MyToken.sol image

MyToken1.sol image

Help

[email protected]

Authors

Meenu

License

This project is licensed under the [Meenu Patel] License - see the LICENSE file for details

About

Project: Create a Token

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published