Code Monkey home page Code Monkey logo

degengaming-token's Introduction

DegenToken Smart Contract

This repository contains the Solidity source code for the DegenToken smart contract, an ERC20 token with extended features and functionalities. The contract leverages the OpenZeppelin library to provide standard ERC20 functionality, token burning, and ownership management. The token is designed to be used in a decentralized gaming ecosystem.

Overview

The DegenToken contract implements the following features:

  1. Token Information:

    • Name: DegenGaming Token
    • Symbol: DMT
  2. Initial Supply:

    • The contract's constructor allows the deployment address to mint an initial supply of tokens.
  3. Minting:

    • The contract owner can mint additional tokens to specified addresses.
  4. Account Balance:

    • Users can check their own token balance using the checkAccountBalance function.
  5. Custom Transfer:

    • Users can initiate custom transfers of tokens using the customTransfer function, with additional checks for balance sufficiency.
  6. Redemption of Stationary Items:

    • Users can redeem stationary items by providing an item code (1, 2, or 3) and having a sufficient balance of tokens. The item's price varies based on the item code.
    • Redeemed tokens are transferred to the contract owner's address.
  7. Token Burning:

    • Users can burn their tokens using the burnTokens function.

Usage

To deploy and interact with the DegenToken smart contract, follow these steps:

  1. Deploy the contract, providing a name, symbol, and initial supply of tokens.
  2. As the contract owner, mint tokens to specific addresses using the mintTokens function.
  3. Users can check their token balance with the checkAccountBalance function.
  4. Users can initiate custom transfers using the customTransfer function.
  5. Users can redeem stationary items using the redeemStationaryItems function, providing the correct item code and sufficient balance.
  6. Users can burn their tokens using the burnTokens function.

License

This smart contract is licensed under the MIT License. You can find the license text in the SPDX-License-Identifier field in the source code files.

Disclaimer

Please note that this README provides a high-level overview of the DegenToken smart contract. Always review the source code thoroughly before deploying or interacting with any smart contract. Additionally, consider security audits and best practices for smart contract development.

degengaming-token's People

Contributors

thewreckingpanda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.