GithubHelp home page GithubHelp logo

avalanche_fuji_deployment's Introduction

DegenToken Smart Contract

This is a Solidity smart contract written to create an ERC20 token called DegenToken for Degen Gaming ๐ŸŽฎ. A Unique token that can reward players and take their game to the next level. Tokens that can be earned by players in their game and then exchanged for rewards in their in-game store. A smart step towards increasing player loyalty and retention ๐Ÿง . The contract inherits @openzeppelin/contracts/token/ERC20/ERC20.sol. It includes functionalities for minting, burning, and transferring tokens. It is designed to be deployed on the Avalanche Testnet Fuji blockchain.

Features

  1. ERC20 Compatibility: DegenToken implements the ERC20 standard, allowing seamless integration with other Ethereum-based platforms and wallets.

  2. Minting: The contract owner has the ability to mint new Degen tokens and allocate them to specific addresses.

  3. Burning: Users can burn their Degen tokens, effectively removing them from circulation.

  4. Item Redemption: Users can redeem in-game items using their Degen tokens. Each item has a specified price in Degen tokens.

  5. Ownership: The contract utilizes the Ownable contract from OpenZeppelin, enabling ownership management functionalities.

Functionality

  1. Minting

The mint function allows the contract owner to mint new Degen tokens and assign them to a specific address. Only the contract owner can call this function.

  1. Redeeming Items

Users can redeem in-game items using their Degen tokens through the redeemItem function. Each item has a predefined price in Degen tokens. Users must have sufficient Degen token balance to redeem an item. Upon successful redemption, the corresponding amount of Degen tokens is transferred to the contract, and the user's balance is updated.

  1. Transferring Degen Tokens

Users can transfer their Degen tokens to other addresses using the transferDGNToken function. Users must have sufficient Degen token balance to perform the transfer.

  1. Burning Tokens

Users can burn their Degen tokens, reducing the total supply. The burn function allows users to burn a specific amount of Degen tokens from their balance.

  1. Balance Inquiry

The getBalance function enables users to check their Degen token balance.

Deployment Information

Contract Address: 0x535dEA564CdFe2B559eB5a05299F09AeCB934878

Compiler Version: Solidity 0.8.9

License: MIT License (SPDX-License-Identifier: MIT)

Snowtrack-link: https://testnet.snowtrace.io/token/0x535dEA564CdFe2B559eB5a05299F09AeCB934878?chainId=43113

Authors

Adekunle Stephen Omorotimi @Okste1234

Loom(video) walkthrough

https://www.loom.com/share/f6dc437331ce4880b557d109edc409a5?sid=f7a2c8ed-8b65-4f22-8dbb-bd5be4401e93

Disclaimer

This contract is provided as-is without any warranties or guarantees. Use it at your own risk. Make sure to review and test the contract thoroughly before deploying it to the Avalanche mainnet or any other production environment.

avalanche_fuji_deployment's People

Contributors

okste1234 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.