forked from Uniswap/deploy-v3
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zkSync era #1
Open
AntonD3
wants to merge
20
commits into
main
Choose a base branch
from
zksync-era
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
zkSync era #1
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
186234a
zkSync era deploy script
AntonD3 1605ec9
Transform into hardhat project
AntonD3 5adab3e
factory deps
AntonD3 05aa5c2
improvements
AntonD3 61d8c02
Tests
AntonD3 3228273
Update deps, improvements
AntonD3 83498f2
Add constructor args to deploy message
AntonD3 5e16ae3
Update deps
AntonD3 ccac526
Add zkSyncTestnet network
AntonD3 b369c32
zksolc 1.3.12, fix gas price
AntonD3 e9a7b33
zksolc 1.3.13
AntonD3 7ff0049
in-memory node for tests, refactoring
AntonD3 9e1e3cf
Update deps and readme
AntonD3 a514e6c
Rename openzeppelin dependency to fix conflicts
AntonD3 72ad228
Update hardhat-zksync-solc
AntonD3 ab308f0
Integrate CI, update license, cleanup repository
AntonD3 4b92c1f
Update package name
AntonD3 2eaabff
License formatting (#2)
AntonD3 0cf5d26
Fix typo in package.json
AntonD3 971066a
Fix CI
AntonD3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,3 +106,7 @@ dist | |
.tern-port | ||
|
||
.nvmrc | ||
|
||
# hardhat | ||
artifacts-zk/ | ||
cache-zk/ |
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
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,5 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
pragma solidity =0.7.6; | ||
|
||
import "v3-periphery-1_3_0/contracts/NonfungibleTokenPositionDescriptor.sol"; |
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,38 @@ | ||
import '@matterlabs/hardhat-zksync-solc' | ||
import { task } from 'hardhat/config' | ||
import { deployV3 } from './index' | ||
|
||
task('deploy-v3') | ||
.addParam('privateKey', 'Private key used to deploy all contracts') | ||
.addParam('jsonRpc', 'JSON RPC URL where the program should be deployed') | ||
.addParam('weth9Address', 'Address of the WETH9 contract on this chain') | ||
.addParam('nativeCurrencyLabel', 'Native currency label, e.g. ETH') | ||
.addParam('ownerAddress', 'Contract address that will own the deployed artifacts after the script runs') | ||
.addOptionalParam('state', 'Path to the JSON file containing the migrations state (optional)', './state.json') | ||
.addOptionalParam('v2CoreFactoryAddress', 'The V2 core factory address used in the swap router (optional)') | ||
.addOptionalParam('gasPrice', 'The gas price to pay in GWEI for each transaction (optional)') | ||
.addOptionalParam('confirmations', 'How many confirmations to wait for after each transaction (optional)', '2') | ||
.setAction(async (taskArgs) => { | ||
await deployV3(taskArgs) | ||
}) | ||
|
||
// This config will be used to compile the `v3-periphery-1_3_0/contracts/NonfungibleTokenPositionDescriptor.sol` contract | ||
export default { | ||
networks: { | ||
hardhat: { | ||
zksync: true, | ||
}, | ||
}, | ||
solidity: { | ||
version: '0.7.6', | ||
}, | ||
zksolc: { | ||
version: '1.3.13', | ||
compilerSource: 'binary', | ||
settings: { | ||
metadata: { | ||
bytecodeHash: 'none', | ||
}, | ||
}, | ||
}, | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's actually just the output of
yarn start --help
, but we can remove this line for consistency