Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

feat: Working towards 1.0 release #31

Merged
merged 4 commits into from
Mar 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
39 changes: 0 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,3 @@ A collection of useful JavaScript/TypeScript tooling plugins that you might need
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!
})
})
```
42 changes: 9 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,62 +1,38 @@
{
"name": "@eth-optimism/plugins",
"version": "0.0.20",
"version": "1.0.0-alpha.1",
"main": "index.js",
"types": "index.d.ts",
"files": [
"hardhat/",
"ganache/",
"waffle/",
"utils/",
"*.d.ts",
"*.d.ts.map",
"*.js",
"*.js.map",
"LICENSE",
"LICENSE.txt",
"README.md"
],
"license": "MIT",
"scripts": {
"build": "yarn clean && tsc --build src",
"clean": "rimraf hardhat ganache waffle utils *.d.ts *.map *.js tsconfig.tsbuildinfo",
"lint": "yarn run lint:typescript",
"lint:typescript": "tslint --format stylish --project .",
"lint:fix": "yarn run lint:fix:typescript",
"lint:fix:typescript": "prettier --config prettier-config.json --write \"{src,test}/**/*.ts\""
"clean": "rimraf hardhat *.d.ts *.map *.js tsconfig.tsbuildinfo",
"lint": "yarn run lint:fix && yarn run lint:check",
"lint:check": "tslint --format stylish --project .",
"lint:fix": "prettier --config prettier-config.json --write \"{src,test}/**/*.ts\""
},
"dependencies": {
"@eth-optimism/contracts": "^0.1.10",
"@eth-optimism/ethereumjs-vm": "^4.2.0-alpha.3",
"@nomiclabs/hardhat-truffle5": "^2.0.0",
"bn.js": "^5.1.3",
"ethereumjs-account": "^3.0.0",
"ethers": "^5.0.31",
"ethjs-common-v1": "npm:ethereumjs-common@1.5.0",
"ethjs-util-v6": "npm:ethereumjs-util@6.2.1",
"node-fetch": "^2.6.1"
},
"peerDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.1",
"ethereum-waffle": "^3.0.0",
"ethers": "^5.0.0",
"hardhat": "^2.0.0"
"hardhat": "^2"
},
"devDependencies": {
"@eth-optimism/dev": "^1.1.1",
"@nomiclabs/hardhat-ethers": "^2.0.1",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@types/bn.js": "^4.11.6",
"@types/chai": "^4.2.14",
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.19",
"@types/node-fetch": "^2.5.8",
"@types/sinon-chai": "^3.2.5",
"chai": "^4.2.0",
"ethereum-waffle": "^3.0.0",
"hardhat": "^2.0.0",
"hardhat": "^2.1.1",
"mocha": "^8.2.1",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"typescript": "~4.0.3"
"rimraf": "^3.0.2"
}
}
163 changes: 0 additions & 163 deletions src/ganache/index.ts

This file was deleted.

43 changes: 0 additions & 43 deletions src/ganache/internal/to.ts

This file was deleted.

Loading