play ed

in the browser lightweight editor based on code mirror with smart contract iu

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://ethereum-play.github.io/play-editor"></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