An open API service indexing awesome lists of open source software.

https://github.com/deno-web3/solar

🌞 Experimental Solar Solidity compiler bindings for Deno, Bun and Node.js.
https://github.com/deno-web3/solar

bun deno ethereum nodejs solidity web3

Last synced: 2 months ago
JSON representation

🌞 Experimental Solar Solidity compiler bindings for Deno, Bun and Node.js.

Awesome Lists containing this project

README

          

# Solar 🌞

experimental [Solar](https://github.com/paradigmxyz/solar) Solidity compiler bindings for Deno, Bun and Node.js.

- ~27% faster than Solc
- smaller package size

## Install

with Deno:

```sh
deno add jsr:@deno-web3/solar
```

with Bun:

```
bunx jsr add @deno-web3/solar
```

with Node.js:

```sh
pnpm dlx jsr add @deno-web3/solar
```

## Usage

```ts
import { Solar } from 'solar'
import type { EmitAbiOutput } from 'solar/types'

const solar = new Solar()

const { contracts } = JSON.parse(await solar.emit('./Example.sol')) as EmitAbiOutput

console.log(contracts)
```