Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.28 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.28 KB

play ed

lightweight in-browser solidity editor based on code mirror with smart contract ui (can be used stand alone or embedded (iframe))

Demo

How can I help?

  1. Open issues on things that are broken
  2. Fix open issues by sending PRs
  3. Add documentation

Usage

play ed is a an editor that allows you to build your solidity code and get an autogenerated ui to help you interact with the contract.

To deploy a contract, all you need are:

using it as a module - this module is work in progress

npm install editor-solidity

const solidityeditor = require('editor-solidity')

// for now, see `demo.js`

using in in an iframe - this module is work in progress

<!doctype html>
<html>
  <head><meta charset="utf-8"></head>
  <body>
    <iframe src="https://playproject-io.github.io/play-ed/"></iframe>
    <script>
      var solidityeditor = document.querySelector('iframe')

      // @TODO: not yet fully implemented

      // @NOTE: it is possible to .postMessage file content to the iframe editor
      //        which will be opened

    </script>
  </body>
</html>

play ed

License

MIT