Skip to content

JediFaust/ERC20-Token

Repository files navigation

JediToken Smart Contract

Language License


Solidity Smart contract for ERC20 Tokens


📝 Table of Contents

🚀 Link on EtherScan

https://rinkeby.etherscan.io/address/0xFa2bEB1ab1F5fb849Dc5981B88c2E1CdFB51f482#code

🚀 Installing

  • Set initial values on scripts/deploy.ts file
  • Deploy contract running on console:
node scripts/deploy.ts
  • Copy address of deployed contract and paste to .env file as CONTRACT_ADDRESS
  • Use transfer, approve and etc. functions

⛓️ Contract Functions

  • balanceOf()

Get balance of exact address

  • transfer()

Send tokens to another address

  • transferFrom()

transfer tokens from one address to another

  • approve()

Approve another address to spend amount from your balance

  • safeApprove

Approve another address to spend amount from your balance
Safe version

  • burn()

Burns tokens from another address

  • mint()

Mint new tokens to another address

🎈 Deploy & Test Scripts

node scripts/deploy.js --network rinkeby
npx hardhat test

💡 HardHat Tasks

npx hardhat transfer
npx hardhat transfer-from
npx hardhat approve

About

ERC20 Standart Token

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published