Socket
Book a DemoInstallSign in
Socket

browser-solc-tron

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-solc-tron

A wrapper of solc so that you can compile contracts in the browser

1.0.5
latest
Source
npmnpm
Version published
Weekly downloads
135
4.65%
Maintainers
1
Weekly downloads
 
Created
Source

browser-solc-tron

tron solidity compiler

About the fork

Forked from https://github.com/ericxtang/browser-solc to wrap it into a npm package so that it can be easily imported into a Webpack (or another bundler) web app.

Installation

npm install --save browser-solc-tron

Usage:



import browserSolc from 'browser-solc-tron';
const getCompiler = function(){
    return new Promise((resolve,reject)=>{
        setTimeout(()=>{
            window.BrowserSolc.loadSolcJson('',(compiler)=>{
                if(compiler){
                    resolve(compiler.compile)
                }else{
                    reject('it is an error')
                }
            })

        })

    })
}

export default getCompiler;


Development

To build index.js, run npm run build.

Note: browser-solc-tron does NOT implement the whole interface of solc-js.

Keywords

ethereum

FAQs

Package last updated on 15 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.