@drdgvhbh/solwasmc
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @drdgvhbh/solwasmc

      Weekly Downloads

      1

      Version

      0.1.1

      License

      MIT/Apache-2.0

      Unpacked Size

      297 kB

      Total Files

      5

      Last publish

      Collaborators

      • drdgvhbh