Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
c0915588
Unverified
Commit
c0915588
authored
Mar 30, 2021
by
Georgios Konstantopoulos
Committed by
GitHub
Mar 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: rename plugins to hardhat-ovm (#19)
parent
550a2f69
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
11 additions
and
56 deletions
+11
-56
LICENSE.txt
packages/hardhat-ovm/LICENSE.txt
+0
-0
README.md
packages/hardhat-ovm/README.md
+6
-17
package.json
packages/hardhat-ovm/package.json
+4
-10
prettier-config.json
packages/hardhat-ovm/prettier-config.json
+0
-0
index.ts
packages/hardhat-ovm/src/index.ts
+0
-0
type-extensions.ts
packages/hardhat-ovm/src/type-extensions.ts
+0
-0
tsconfig.build.json
packages/hardhat-ovm/tsconfig.build.json
+1
-0
tsconfig.json
packages/hardhat-ovm/tsconfig.json
+0
-0
tslint.json
packages/hardhat-ovm/tslint.json
+0
-0
README.md
packages/plugins/README.md
+0
-15
index.ts
packages/plugins/src/hardhat/index.ts
+0
-1
index.ts
packages/plugins/src/index.ts
+0
-1
tsconfig.json
packages/plugins/src/tsconfig.json
+0
-12
No files found.
packages/
plugins
/LICENSE.txt
→
packages/
hardhat-ovm
/LICENSE.txt
View file @
c0915588
File moved
packages/
plugins/src/hardhat/compiler
/README.md
→
packages/
hardhat-ovm
/README.md
View file @
c0915588
# @eth-optimism/
plugins/hardhat/compiler
# @eth-optimism/
hardhat-ovm
A plugin that brings OVM compiler support to Hardhat projects.
## Installation
Installation is super simple.
First, grab the package.
Via
`npm`
:
```
npm install @eth-optimism/plugins
```
Via
`yarn`
:
```
yarn add @eth-optimism/plugins
yarn add
--dev
@eth-optimism/plugins
```
Next, import the plugin inside your
`hardhat.config.js`
:
...
...
@@ -24,7 +13,7 @@ Next, import the plugin inside your `hardhat.config.js`:
```
js
// hardhat.config.js
require
(
"
@eth-optimism/
plugins/hardhat/compiler
"
)
require
(
"
@eth-optimism/
hardhat-ovm
"
)
```
Or if using TypeScript:
...
...
@@ -32,7 +21,7 @@ Or if using TypeScript:
```
ts
// hardhat.config.ts
import
"
@eth-optimism/
plugins/hardhat/compiler
"
import
"
@eth-optimism/
hardhat-ovm
"
```
## Configuration
...
...
@@ -43,7 +32,7 @@ Configure this plugin by adding an `ovm` field to your Hardhat config:
```
js
// hardhat.config.js
require
(
"
@eth-optimism/
plugins/hardhat/compiler
"
)
require
(
"
@eth-optimism/
hardhat-ovm
"
)
module
.
exports
=
{
ovm
:
{
...
...
@@ -53,4 +42,4 @@ module.exports = {
```
H
as typings so it won't break your Hardhat config if you're using TypeScript.
This package also h
as typings so it won't break your Hardhat config if you're using TypeScript.
packages/
plugins
/package.json
→
packages/
hardhat-ovm
/package.json
View file @
c0915588
{
"name"
:
"@eth-optimism/
plugins
"
,
"version"
:
"
1.0.0-alpha.2
"
,
"name"
:
"@eth-optimism/
hardhat-ovm
"
,
"version"
:
"
0.0.1
"
,
"main"
:
"dist/index"
,
"types"
:
"dist/index"
,
"files"
:
[
"hardhat/"
,
"*.d.ts"
,
"*.d.ts.map"
,
"*.js"
,
"*.js.map"
,
"LICENSE.txt"
,
"README.md"
"dist/index"
],
"license"
:
"MIT"
,
"scripts"
:
{
"clean"
:
"rimraf
hardhat *.d.ts *.map *.js tsconfig
.tsbuildinfo dist"
,
"clean"
:
"rimraf
tsconfig.build
.tsbuildinfo dist"
,
"build"
:
"tsc -p tsconfig.build.json"
,
"lint"
:
"yarn run lint:fix && yarn run lint:check"
,
"lint:check"
:
"tslint --format stylish --project ."
,
...
...
packages/
plugins
/prettier-config.json
→
packages/
hardhat-ovm
/prettier-config.json
View file @
c0915588
File moved
packages/
plugins/src/hardhat/compiler
/index.ts
→
packages/
hardhat-ovm/src
/index.ts
View file @
c0915588
File moved
packages/
plugins/src/hardhat/compiler
/type-extensions.ts
→
packages/
hardhat-ovm/src
/type-extensions.ts
View file @
c0915588
File moved
packages/
plugins
/tsconfig.build.json
→
packages/
hardhat-ovm
/tsconfig.build.json
View file @
c0915588
...
...
@@ -2,6 +2,7 @@
"extends"
:
"../../tsconfig.build.json"
,
"compilerOptions"
:
{
"rootDir"
:
"./src"
,
"outDir"
:
"./dist"
},
...
...
packages/
plugins
/tsconfig.json
→
packages/
hardhat-ovm
/tsconfig.json
View file @
c0915588
File moved
packages/
plugins
/tslint.json
→
packages/
hardhat-ovm
/tslint.json
View file @
c0915588
File moved
packages/plugins/README.md
deleted
100644 → 0
View file @
550a2f69
# @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
)
.
packages/plugins/src/hardhat/index.ts
deleted
100644 → 0
View file @
550a2f69
import
'
./compiler
'
packages/plugins/src/index.ts
deleted
100644 → 0
View file @
550a2f69
export
*
from
'
./hardhat
'
packages/plugins/src/tsconfig.json
deleted
100644 → 0
View file @
550a2f69
{
"extends"
:
"../tsconfig.json"
,
"compilerOptions"
:
{
"outDir"
:
"../"
,
"rootDirs"
:
[
"."
],
"composite"
:
true
},
"include"
:
[
"./**/*.ts"
],
"exclude"
:
[]
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment