Skip to content

Optimusik/swissperc20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. Install Dependency

npm install

2. Set .env File

create .env file in root project

PRIVATE_KEY="your private key"

3. Create Smart Contract

  • Open contract folder
  • Create Token.sol file
  • Copy this code and paste there
  • Feel free to modify token name and token symbol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract TestToken is ERC20 {
    constructor()ERC20("IzzyToken","IZZY"){}

    function mint1000tokens() public {
        _mint(msg.sender,1000*10**18);
    }

    function burn1000tokens() public{
        _burn(msg.sender,1000*10**18);
    }

}

4. Compile Smart Contract

npm run compile

5. Deploy Smart Contract

npm run deploy

6. Mint Token

npm run mint

7. Tranfer Token

npm run transfer

8. Finsihed

  • Open the deployed-adddress.ts (location in utils folder)
  • Copy the address and paste the address in testnet dashboard

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors