DegenToken (DGN) is a decentralized ERC20 token deployed on the Avalanche blockchain.
The DegenToken smart contract, written in Solidity, utilizes the OpenZeppelin library to ensure a secure and standardized ERC20 implementation. It is deployed on the Avalanche blockchain and includes the following features:
- Mint Tokens: Only the owner can mint new tokens. Use the mint function with the recipient address and amount.
- Redeem Tokens: Burn tokens from a specified address using the redeem function.
- Burn Tokens: Burn tokens from your own balance using the burn function.
- Add Pokemon: Add new Pokémon to the contract using the addPokemon function (only callable by the owner).
- Catch Pokemon: Use a Pokéball to catch a Pokémon with the catchPokemon function.
- Buy Pokeball: Purchase a Pokéball using the buyPokeball function.
- Get Player Pokemons: Retrieve the list of Pokémon owned by a player with getPlayerPokemons.
- Get Player Pokeballs: Retrieve the list of Pokéballs owned by a player with getPlayerPokeballs.
- You need a MetaMask wallet, account, and balance on the Avalanche Fuji Testnet.
- Clone or download the repository.
- Open the terminal in the project's root directory.
- Run
npm install. - Wait for the dependencies to install.
- Run
remixd. - Open Remix and select the "File Explorer" tab.
- Under "Workspaces," choose and select "connect to localhost."
- Click "Connect."
- In the "Solidity compiler" tab, click the Compile button (this might be unnecessary if auto compile is enabled).
- Switch to the "Deploy & run transactions" tab.
- Under "Environment," select "Injected Provider - MetaMask."
- Check if MetaMask is connected to the Avalanche Fuji Testnet.
- To deploy, click the "Deploy" button.
- To check the deployed contract, enter
0xc2f1d4e6d74f892D8b6a92c5425D58accaB30900next to the "At Address" button and click it.
For any issues or questions, Please refer to the official ERC20 documentation and Remix IDE tutorials for additional guidance.
John Armand V. Yabut