Skip to content

Kal-El Token Dashboard is a frontend client for interacting with ERC-20 tokens, designed to work with the Kal-El Token. It supports wallet connection, token transfers, allowance management, and owner operations like minting and burning tokens.

Notifications You must be signed in to change notification settings

Azeem-0/kal-el-token-dashboard

Repository files navigation

KalEl Token Wallet Integration

This is the frontend client for interacting with ERC-20 standard tokens. While it is currently configured to work with the Kal-El Token, it can be adapted to interact with any ERC-20 token by updating the environment variables.

Features

  • Wallet Integration: Connect your wallet to interact with the blockchain.
  • Token Operations:
    • View token balance.
    • Transfer tokens.
    • Approve allowances.
    • Check allowances.
  • Owner Operations:
    • Mint and burn tokens.
    • Pause and unpause token operations.
    • Transfer ownership.

Technologies Used

  • Frontend Framework: Next.js
  • UI Library: Chakra UI
  • Blockchain Interaction: wagmi, viem
  • Styling: Tailwind CSS (for additional customization)

Prerequisites

Ensure you have the following installed:

Installation

  1. Clone the repository:

    git clone https://github.com/Azeem-0/kal-el-token-dashboard.git
  2. Navigate to the project directory:

    cd kal-el-token-dashboard
  3. Install dependencies:

    npm install
  4. Set up environment variables:

    Create a .env.local file in the root directory and add the following:

    NEXT_PUBLIC_CONTRACT_ADDRESS=<Your Contract Address> - Use the address of your deployed contract or any existing ERC20 contract address
  5. Start the development server:

    npm run dev
  6. Open your browser and navigate to:

    http://localhost:3000
    

Usage

Wallet Connection

  • Click the "Connect Wallet" button to connect your Ethereum wallet.
  • Ensure you are on the correct network (e.g., Sepolia).

Token Operations

  • View Balance: Displays your current token balance.
  • Transfer Tokens: Transfer tokens to another address.
  • Approve Allowance: Approve a spender to use a specified amount of tokens.
  • Check Allowance: View the allowance for a specific spender.

Owner Operations

  • Mint Tokens: Add new tokens to the total supply.
  • Burn Tokens: Remove tokens from the total supply.
  • Pause/Unpause: Toggle the paused state of the token contract.
  • Transfer Ownership: Assign ownership of the contract to a new address.

Security Considerations

  • Owner-Only Functions : The functions that are intended to be restricted to the owner (such as minting, burning, pausing, and transferring ownership) are made public in this contract for testing purposes only. In a production environment, these functions should be restricted to the owner using modifiers like onlyOwner to prevent unauthorized access.

About

Kal-El Token Dashboard is a frontend client for interacting with ERC-20 tokens, designed to work with the Kal-El Token. It supports wallet connection, token transfers, allowance management, and owner operations like minting and burning tokens.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages