Git Product home page Git Product logo

sobi983 / erc20-multi-wallet-upgradable- Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 167 KB

In this project I have created an ERC20 with a multi wallet approvals upgradable contract. Without the approval of more then 2 owner the mint function will not work. In upgradable contract I have created 2 functions to upgrade 1.Change Name 2. Change Symbol.

Solidity 85.03% JavaScript 14.97%
hardhat multiwallet signature solidity upgradable-smart-contracts

erc20-multi-wallet-upgradable-'s Introduction

In this Task I have created an ERC20 Upgradable Multi Wallet signature contract. Having a multiple owners will prevent hackers to take advantage of the contract. The contracts are deployed on a BSC testnet through hardhat and the contracts addresses are mentioned. In upgradable contract I have added 2 functions that are being upgraded

  1. Change Name
  2. Change Symbol

To run this project:-

  1. npm install
  2. npx hardhat run --network testnet scripts/deploy_ERC20M.js
  3. npx hardhat verify --network testnet [Address]
  4. npx hardhat run --network testnet scripts/deploy_ERC20MUpgradable.js
  5. npx hardhat verify --network testnet [Address]

Few points should be noted before development of the contract

  1. Once an ERC20 contract is deployed then there is no way it could be UPGRADED.
  2. It could only be upgraded while you are deploying the very first contract.

I am using OpenZeppelin Upgrdable Proxy approach to make my ERC20 contract Upgradable.

Transparent Upgradable Proxy:- https://testnet.bscscan.com/address/0x9406147007a50c7220753ba95565e51d8729dc71#writeProxyContract Proxy Admin:- https://testnet.bscscan.com/address/0x9d69aa383b4a23e4e3d9e04d5e55230e8a5f8f9b ERC20:- https://testnet.bscscan.com/address/0xf85269b82290d4aa5966a7baa3bc1eedba00aef4 ERC20Upgradable:- https://testnet.bscscan.com/address/0xcae6300a20528f6ce6777079e9cc7b1b035daf14#writeContract

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.