Git Product home page Git Product logo

swisstronik-perc-20's Introduction

swisstronik-perc-20

This repository contains a setup for deploying and interacting with an PERC-20 token on the Swisstronik testnet using Hardhat. The setup includes scripts for deploying the contract, minting tokens, and transferring tokens, utilizing encrypted transactions with Swisstronik.

Prerequisites

Ensure you have the following installed:

  • Node.js (version 14.x or later)
  • npm (version 6.x or later)

Installation

  1. Clone the repository:

    git clone https://github.com/dante4rt/swisstronik-perc-20.git
    cd swisstronik-perc-20
  2. Make the perc20.sh script executable:

    chmod +x perc20.sh

Usage

  1. Run the script:

    ./perc20.sh
  2. Follow the prompts to enter your private key and specify the token name and symbol.

Scripts

deploy.js

This script deploys the PERC-20 contract and saves the deployed contract address to contract.txt.

mint.js

This script mints 100 tokens using the deployed contract. It reads the contract address from contract.txt.

transfer.js

This script transfers tokens from the contract to a specified address. It reads the contract address from contract.txt.

Notes

  • Ensure your private key is kept secure.
  • The transfer.js script is set to transfer tokens to the address 0x16af037878a6cAce2Ea29d39A3757aC2F6F7aac1 with an amount of 1 * 10 ** 18 tokens. Modify these values as needed.

swisstronik-perc-20's People

Contributors

dante4rt 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.