forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move chugsplash into its own package (ethereum-optimism#948)
* wip: start breaking out chugsplash * remove old chugsplash content * chore: add changeset * update dependency locations * add chugsplash dep to contracts * add missing deps * fix a silly typo * correctly export everything
- Loading branch information
1 parent
6b1c320
commit 4e8c01c
Showing
30 changed files
with
16,518 additions
and
776 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@eth-optimism/contracts': minor | ||
'@eth-optimism/chugsplash': patch | ||
--- | ||
|
||
Move chugsplash tooling into its own package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.sol linguist-language=Solidity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../.prettierrc.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(The MIT License) | ||
|
||
Copyright 2020-2021 Optimism | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { HardhatUserConfig } from 'hardhat/config' | ||
|
||
import '@nomiclabs/hardhat-ethers' | ||
import '@nomiclabs/hardhat-waffle' | ||
|
||
const config: HardhatUserConfig = { | ||
paths: { | ||
sources: './test/contracts', | ||
}, | ||
solidity: { | ||
version: '0.7.6', | ||
settings: { | ||
outputSelection: { | ||
'*': { | ||
'*': ['storageLayout'], | ||
}, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name": "@eth-optimism/chugsplash", | ||
"version": "0.1.0", | ||
"main": "dist/index", | ||
"files": [ | ||
"dist/**/*.js" | ||
], | ||
"types": "dist/index", | ||
"author": "Optimism PBC", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "tsc -p ./tsconfig.build.json", | ||
"test": "npx hardhat test", | ||
"lint": "yarn lint:fix && yarn lint:check", | ||
"lint:fix": "yarn run lint:fix:typescript", | ||
"lint:fix:typescript": "prettier --config .prettierrc.json --write \"hardhat.config.ts\" \"{src,test}/**/*.ts\"", | ||
"lint:check": "tslint --format stylish --project .", | ||
"clean": "rm -rf ./dist ./tsconfig.build.tsbuildinfo" | ||
}, | ||
"dependencies": { | ||
"@eth-optimism/core-utils": "^0.4.3", | ||
"@nomiclabs/hardhat-ethers": "^2.0.2", | ||
"@nomiclabs/hardhat-waffle": "^2.0.1", | ||
"ethereum-waffle": "^3.3.0", | ||
"ethers": "^5.2.0", | ||
"handlebars": "^4.7.7", | ||
"hardhat": "^2.3.0", | ||
"lodash": "^4.17.21", | ||
"merkletreejs": "^0.2.18", | ||
"semver": "^7.3.5" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.2.18", | ||
"@types/chai-as-promised": "^7.1.4", | ||
"@types/mocha": "^8.2.2", | ||
"chai": "^4.3.4", | ||
"chai-as-promised": "^7.1.1", | ||
"mocha": "^8.4.0" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* Imports: External */ | ||
import hre from 'hardhat' | ||
|
||
// TODO | ||
export type ContractArtifact = any | ||
export type BuildInfo = any | ||
|
||
export const getContractArtifact = async ( | ||
name: string | ||
): Promise<ContractArtifact> => { | ||
return hre.artifacts.readArtifactSync(name) | ||
} | ||
|
||
export const getBuildInfo = async (name: string): Promise<BuildInfo> => { | ||
return hre.artifacts.getBuildInfo(name) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/contracts/src/chugsplash/index.ts → packages/chugsplash/src/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from './actions' | ||
export * from './artifacts' | ||
export * from './config' | ||
export * from './storage' | ||
export * from './hardhat-tools' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.