Code Monkey home page Code Monkey logo

abi2html-js's Introduction

abi2html-js

Generate HTML page from Solidity ABI with JavaScript. This is useful as an "admin" interface to a contract or as a basis for generating forms for more advanced DApps.

Usage:

  1. Connect to an ethereum instance with provided params
  2. Paste ABI or contract in respective text box
  3. Set deployed contract address in page
  4. Interact with functions or observe events

The "Call" button is only shown when output parameters are defined. The "Transact" button is hidden when the function is declared constant. When an event fires, the values are rendered in the matching text boxes.

git clone https://github.com/tgerring/abi2html-js.git
open abi2html-js/index.html

The applicattion can be deep-linked to a prticular function with an anchor the name of the function, i.e. index.html#changeRequirement. Additionally, it's possible to load Solidity source or ABI from GitHub Gist and set the target contract address with URL query parameters, for example ?ABI_GIST=0e1b884de82d35053a34. Combining the two might look this: ?SOLIDITY_GIST=c835f38889b989e8488c&TO_ADDRESS=0x21a3a128968f7fd17eb0a16045a84769374aeae0#confirm

Valid URL query parameters include:

SOLIDITY_GIST=<gistid>
ABI_GIST=<gistid>
TO_ADDRESS=<address>

abi2html-js's People

Contributors

tgerring avatar

Watchers

 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.