GithubHelp home page GithubHelp logo

narcoticnarcoleptic / smart-contract-gui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibnzuk/smart-contract-gui

0.0 0.0 0.0 3.67 MB

React, Tronweb, Tronlink application to fetch Smart contract details and interact with smart contracts on TRON blockchain, Main Net, Nile Test Net, Shasta Test Net.

HTML 6.85% JavaScript 59.76% CSS 27.51% Solidity 5.88%

smart-contract-gui's Introduction

Preview

Working Demo: https://tron-gui.ibnz.dev/

This is a React, Tronweb, Tronlink experimental application to fetch Smart contract details and interact with smart contracts on TRON blockchain, Main Net, Nile Test Net, Shasta Test Net.

Community coders, please commit

Feel free to add extra functions or improvements, This helps me to familiarise myself with source control and open source project managing. By contributing you also help to build yet another open-source tool on TRON Network.


Experimental contracts for GUI testing:

  • SHASTA - TWZYhE3WWAupJQ7KxKiwQDPkn1BGeM7PDJ (Multiple Input Test, Set message, Read the message, Read Number, Change Data, Addition)
  • SHASTA - TKWrw9VyRuvqg9n4oLdPMhbDLLgGutt1YV (Array Demo for payable and nonpayable functions)
  • NILE - TEjqDGMwDHqrXCzq7fWH8J63L1MWhc1msw (NILE - Multiple Input Test, Set message, Read the message, Read Number, Change Data, Addition)
  • MAINNET - TSYmsMxx2m9b5o8ZDLXT2fAGSXNY2RgDL6 (HummingDrop trc20 Token Airdrop)
  • MAINNET - TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t (USDT Token)

Running instructions

  • Copy project to your directory ( git clone https://github.com/ibnzUK/smart-contract-gui )
  • navigate to smart-contract-gui project directory
  • make sure you have node.js installed on your machine
  • install project packages (npm install)
  • replace privateKey = 'xxx'; with your PK and store it in .env file
  • if you planning to use trongrid API add your keys to .env
  • start a project (npm run start)
  • make sure you have Tronlink wallet installed (https://www.tronlink.org/)
  • select network for your contract and enter smart contract address
  • if tronlink is not initialised, or you change wallet, refresh page or click on refresh button on the application right corner

Changes in V 0.02

  • Integrated ability to refresh GUI (mainly after Tronlink address swap)
  • Added experimental Tronlink trigger option for cryptocurrency sending
  • Added ability to select test net Nile, Shasta or Main Tron network
  • UI Improvements

Changes in V 0.03

  • Added ability to get Smart contract details
  • Added ability to fetch and render Smart contract functions
  • Added grid for Smart contract rendering
  • Optimised UI for a large list of functions

Changes in V 0.04

  • Sorting functions into read-only, trigger and input
  • Implemented ability to check free contract functions

Changes in V 0.05

  • Added ability to trigger functions without input with tronlink
  • Added input argument number counter
  • Sorting inputs by type

Changes in V 0.06

  • Added placeholders for the user to identify type and name
  • Mapping inputs as new components
  • Fixed issue with a contract when not able to load after a quick swap
  • Ability to detect when contract does not exist on chain
  • Displaying transaction hash after function trigger

Changes in V 0.07

  • Added ability to submit multiple fields at once
  • Implemented project support (donation)
  • Fixed styling
  • Optimised for mobile experience

Changes in V 0.08

  • Added ability to view array elements
  • Added ability to submit arrays on payable functions
  • Implemented Return values for array triggering

smart-contract-gui's People

Contributors

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