@drdgvhbh/solwasmc
v0.1.1
Published
web assembly compiler for solidity
Downloads
5
Readme
Solwasmc
Web assembly compiler for the solidity language.
Table of contents
General info
The motivation behind Solcwasmc is to build a solidity compiler that can run in the browser via web assembly. This is not meant to replace the canonical solc in terms of usability, but simply act as a drop in replacement for deploying smart contracts in the browser.
Usage
npm i @drdgvhbh/solwasmc
import { compile } from "@drdgvhbh/solwasmc";
const byteCode = compile("contract Test {...}");
Building from Source
Prerequisites
Build
make generate
cargo build
Build for Web Assembly
wasm-pack build --scope YOUR_NPM_USERNAME
cd pkg
npm publish --access=public