# @krebernisak/ovm-plugins

> ## What is this?

Latest version **0.0.15** (published 2021-02-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @krebernisak/ovm-plugins
pnpm add @krebernisak/ovm-plugins
yarn add @krebernisak/ovm-plugins
bun add @krebernisak/ovm-plugins
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.15 |
| Published | 2021-02-08 |
| First published | 2021-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 20.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | krebernisak |

## Links

- npm: https://www.npmjs.com/package/@krebernisak/ovm-plugins
- npm.io page: https://npm.io/package/@krebernisak/ovm-plugins

## Dependencies (11)

- [bn.js](https://npm.io/package/bn.js.md) ^5.1.3
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [ethjs-util-v6](https://npm.io/package/ethjs-util-v6.md) npm:ethereumjs-util@6.2.1
- [ethjs-common-v1](https://npm.io/package/ethjs-common-v1.md) npm:ethereumjs-common@1.5.0
- [ethereumjs-account](https://npm.io/package/ethereumjs-account.md) ^3.0.0
- [@eth-optimism/contracts](https://npm.io/package/@eth-optimism/contracts.md) ^0.0.2-alpha.14
- [@eth-optimism/solc-v0.7.6](https://npm.io/package/@eth-optimism/solc-v0.7.6.md) npm:@eth-optimism/solc@^0.7.6-alpha.0
- [@eth-optimism/solc-v0.5.16](https://npm.io/package/@eth-optimism/solc-v0.5.16.md) npm:@eth-optimism/solc@^0.5.16-alpha.7
- [@eth-optimism/solc-v0.6.12](https://npm.io/package/@eth-optimism/solc-v0.6.12.md) npm:@eth-optimism/solc@^0.6.12-alpha.1
- [@eth-optimism/ethereumjs-vm](https://npm.io/package/@eth-optimism/ethereumjs-vm.md) ^4.2.0-alpha.2
- [@nomiclabs/hardhat-truffle5](https://npm.io/package/@nomiclabs/hardhat-truffle5.md) ^2.0.0

## Recent versions

- 0.0.15 (latest) — 2021-02-08
- 0.0.14 — 2021-02-08
- 0.0.13 — 2021-02-05
- 0.0.12 — 2021-02-05
- 0.0.11 — 2021-02-05
- 0.0.10 — 2021-02-05

## README

# @eth-optimism/plugins

## What is this?

A collection of useful JavaScript/TypeScript tooling plugins that you might need when building on top of Optimistic Ethereum!

## What kind of plugins are we talking about?

### Plugins for [`hardhat`](https://hardhat.org)

#### `@eth-optimism/plugins/hardhat/compiler`

Automatically compiles your Solidity contracts with the OVM compiler.
Defaults to Solidity version 0.7.6, but also has support for 0.5.16 and 0.6.12.
[Full README available here](./src/hardhat/compiler).

#### `@eth-optimism/plugins/hardhat/ethers`

##### Usage

Just import into your `hardhat.config.js`!

```javascript
// hardhat.config.js

require("@eth-optimism/plugins/hardhat/ethers")
```

Or if using typescript:

```typescript
// hardhat.config.ts

import "@eth-optimism/plugins/hardhat/ethers"
```

##### What does it do?

Creates an `l2ethers` object that can be imported via `hardhat`.
Behaves identically to the `ethers` object that you would get if using `@nomiclabs/hardhat-ethers`, but deploys contracts to Layer 2 instead of Layer 1!
Here's it in action:

```typescript
import { l2ethers } from "hardhat"

describe("My Contract Test", () => {
    it("should deploy a contract", async () => {
        const factory = await l2ethers.getContractFactory("MyContractName")
        const instance = await factory.deploy()

        // Now we're cooking with gas!
    })
})
```

---
_Source: https://npm.io/package/@krebernisak/ovm-plugins · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
