Code Monkey home page Code Monkey logo

web3-erc20's Introduction

Fungible Token Implementation

In the provided workspace, there is a simple implementation of custom fungible tokens using ERC20 contracts and an ownable proxy contract. This implementation allows you to create and manage your own fungible tokens on the Ethereum blockchain. Let's break down the components and how they work:

ERC20 Contracts

The ERC20 standard is a widely adopted Ethereum token standard that defines a set of rules and functions for creating and managing fungible tokens. In the provided workspace, there are two ERC20 contracts: CustomToken and CustomTokenProxy.

  1. CustomToken: This contract implements the core functionality of an ERC20 token. It includes functions to mint new tokens, transfer tokens between addresses, check balances, and approve spending on behalf of an address.

  2. CustomTokenProxy: This contract acts as an ownable proxy for the CustomToken contract. It means that the owner of the proxy contract has the ability to upgrade the functionality of the CustomToken contract. This allows for flexibility in case improvements or bug fixes are needed in the token contract while keeping the token address consistent.

How to Use

To use this implementation, you would need to:

  1. Deploy the CustomTokenProxy contract: This contract serves as the entry point for interacting with the ERC20 token functionality.

  2. Interact with the CustomToken through the proxy: After deploying the proxy contract, you would use it to mint new tokens, transfer tokens between addresses, and perform other ERC20 token operations.

  3. Ownership and Upgrades: The owner of the proxy contract has the ability to upgrade the CustomToken contract. This can be useful for making improvements or fixing issues in the token contract while maintaining the same token address.

Getting Started

This entire workspace is downloaded from remix IDE. so kindly re-upload it to remix before using or this could also be deployed with the help of hardhat. refer hardhat documentation for further information

DO NOT USE THIS IN PRODUCTION

This is only done as a part of Metacrafters Project. PLEASE DO NOT USE THIS IN PRODUCTION OR DEVELOPMENT. This code might contain critical vulnerabilities, so do not use this for production or development under any circumstances

web3-erc20's People

Watchers

Sabari H 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.