0.1.1 • Published 5 years ago

@drdgvhbh/solwasmc v0.1.1

Weekly downloads
-
License
MIT/Apache-2.0
Repository
github
Last release
5 years ago

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

Technologies