Skip to content
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

Develop #78

Merged
merged 79 commits into from
Dec 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
63d32c1
first approach
invocamanman Oct 5, 2022
6fd905f
first approach
invocamanman Oct 21, 2022
9fcd965
following approach
invocamanman Oct 24, 2022
0ab6698
test remaining
invocamanman Oct 24, 2022
6ce297c
almost there
invocamanman Oct 24, 2022
141f94f
assembly function
invocamanman Oct 24, 2022
09d8fe1
poe final test
invocamanman Oct 25, 2022
ba8e40e
finish at last
invocamanman Oct 25, 2022
66fd49d
rebase changes
invocamanman Oct 25, 2022
fb4ef78
update snark
invocamanman Oct 27, 2022
ac9b40a
PR fixes
invocamanman Nov 2, 2022
76f28a3
update genesis
invocamanman Nov 4, 2022
6898f1c
Merge pull request #67 from 0xPolygonHermez/feature/addAribitraryData
invocamanman Nov 4, 2022
abc5c94
support dai permit
invocamanman Nov 8, 2022
d9a422a
small refactor
invocamanman Nov 8, 2022
67acb19
PR fixes
invocamanman Nov 10, 2022
d2d5fdd
reduce -50k on getRoot
invocamanman Nov 10, 2022
a1c1281
update PoE
invocamanman Nov 10, 2022
b2e4971
Merge pull request #68 from 0xPolygonHermez/feature/supportDAiPermit
krlosMata Nov 14, 2022
179493d
first approach
invocamanman Nov 16, 2022
e8c6344
add emergency state
invocamanman Nov 18, 2022
cc8e867
almost done
invocamanman Nov 20, 2022
6781972
at leeast
invocamanman Nov 21, 2022
79f98d1
now proofs works ^^
invocamanman Nov 23, 2022
ebe85a6
fix rebase
krlosMata Nov 23, 2022
c70978d
rebase fixes
invocamanman Nov 23, 2022
3a866d9
add create genesis script
invocamanman Nov 23, 2022
07d758a
update commonjs
invocamanman Nov 24, 2022
59388f7
Merge pull request #69 from 0xPolygonHermez/feature/emergencyState
krlosMata Nov 24, 2022
3e80ea1
update verifier
invocamanman Dec 13, 2022
20e4bae
increase version
krlosMata Dec 13, 2022
c7ab6b0
Merge pull request #72 from 0xPolygonHermez/feature/updatePomegranate
krlosMata Dec 13, 2022
6a0f1cc
first approach
invocamanman Nov 30, 2022
78ba1aa
ongoing work
invocamanman Dec 7, 2022
d2b76e8
first approach
invocamanman Dec 10, 2022
510661b
first approach 2
invocamanman Dec 11, 2022
3df6229
ongoin
invocamanman Dec 13, 2022
42611f1
ongoing
invocamanman Dec 14, 2022
2ada626
almost there
invocamanman Dec 16, 2022
e6fab0a
quick test
invocamanman Dec 16, 2022
35e380f
asd
invocamanman Dec 16, 2022
7c0d989
update sequenceBatchesStruct
invocamanman Dec 16, 2022
2ae0e46
fees
invocamanman Dec 18, 2022
7c7e808
update commets
invocamanman Dec 19, 2022
64d5274
test + deployment script
invocamanman Dec 19, 2022
bac5d5b
update genesis
invocamanman Dec 19, 2022
ea18f5b
update verifier
invocamanman Dec 19, 2022
7f65b63
update fees parameters!
invocamanman Dec 19, 2022
e0d984a
Verifier mango + small-improvements
krlosMata Dec 19, 2022
6e9a532
rebase fixes
invocamanman Dec 19, 2022
56f25a9
bridge udpate
invocamanman Dec 19, 2022
e153208
fund aggregator
krlosMata Dec 19, 2022
2e5b153
rebase develop fixes
invocamanman Dec 20, 2022
db9d22d
first renaming
invocamanman Dec 20, 2022
e5038c6
rename bridge
invocamanman Dec 20, 2022
9280fd1
update global exit root
invocamanman Dec 20, 2022
8fcf991
update timelock
invocamanman Dec 20, 2022
38221da
update ZkEVM
invocamanman Dec 20, 2022
5f438c3
udpate dpeloyment and timelock test
invocamanman Dec 20, 2022
04c9adc
update deployment
invocamanman Dec 20, 2022
43ed0c1
update genesis
invocamanman Dec 20, 2022
c59a0ff
should be last changes
invocamanman Dec 20, 2022
539d631
comments carlos
invocamanman Dec 20, 2022
e941686
comments
krlosMata Dec 20, 2022
c7e6e35
comments
krlosMata Dec 20, 2022
fc3f9a5
comments
krlosMata Dec 20, 2022
1af034d
review
krlosMata Dec 21, 2022
cd66591
Merge pull request #75 from 0xPolygonHermez/feature/comments-2
invocamanman Dec 21, 2022
9a841ee
update hardhat config
invocamanman Dec 21, 2022
cc7475c
update tests with new errror names
invocamanman Dec 21, 2022
c328c7a
upgrade script
invocamanman Dec 21, 2022
8c78b1d
timelock upgrade
invocamanman Dec 21, 2022
9b853c5
Merge pull request #71 from 0xPolygonHermez/feature/securityMechanisms
krlosMata Dec 21, 2022
7b016f8
update package json
invocamanman Dec 21, 2022
abaf4de
Merge pull request #76 from 0xPolygonHermez/feature/updatePackageJson
krlosMata Dec 21, 2022
fb13a1b
last fixes
invocamanman Dec 22, 2022
15be36a
comments
invocamanman Dec 22, 2022
a0cf29e
mini fix
invocamanman Dec 22, 2022
ce40865
Merge pull request #77 from 0xPolygonHermez/feature/lastFixes
krlosMata Dec 22, 2022
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
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ module.exports = {
'import/prefer-default-export': [0],
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'multiline-comment-style': 'error',
'import/no-extraneous-dependencies': 'off'
},
};
16 changes: 8 additions & 8 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ if npm run lint; then
npx hardhat compile --force
npm run docgen
git add docs
cp artifacts/contracts/Bridge.sol/Bridge.json compiled-contracts/
cp artifacts/contracts/GlobalExitRootManager.sol/GlobalExitRootManager.json compiled-contracts/
cp artifacts/contracts/GlobalExitRootManagerL2.sol/GlobalExitRootManagerL2.json compiled-contracts/
cp artifacts/contracts/PolygonZkEVMBridge.sol/PolygonZkEVMBridge.json compiled-contracts/
cp artifacts/contracts/PolygonZkEVMGlobalExitRoot.sol/PolygonZkEVMGlobalExitRoot.json compiled-contracts/
cp artifacts/contracts/PolygonZkEVMGlobalExitRootL2.sol/PolygonZkEVMGlobalExitRootL2.json compiled-contracts/
cp artifacts/contracts/lib/TokenWrapped.sol/TokenWrapped.json compiled-contracts/
cp artifacts/contracts/mocks/BridgeMock.sol/BridgeMock.json compiled-contracts/
cp artifacts/contracts/mocks/PolygonZkEVMBridgeMock.sol/PolygonZkEVMBridgeMock.json compiled-contracts/
cp artifacts/contracts/mocks/ERC20PermitMock.sol/ERC20PermitMock.json compiled-contracts/
cp artifacts/contracts/mocks/GlobalExitRootManagerL2Mock.sol/GlobalExitRootManagerL2Mock.json compiled-contracts/
cp artifacts/contracts/mocks/GlobalExitRootManagerMock.sol/GlobalExitRootManagerMock.json compiled-contracts/
cp artifacts/contracts/mocks/ProofOfEfficiencyMock.sol/ProofOfEfficiencyMock.json compiled-contracts/
cp artifacts/contracts/mocks/PolygonZkEVMGlobalExitRootL2Mock.sol/PolygonZkEVMGlobalExitRootL2Mock.json compiled-contracts/
cp artifacts/contracts/mocks/PolygonZkEVMGlobalExitRootMock.sol/PolygonZkEVMGlobalExitRootMock.json compiled-contracts/
cp artifacts/contracts/mocks/PolygonZkEVMMock.sol/PolygonZkEVMMock.json compiled-contracts/
cp artifacts/contracts/mocks/VerifierRollupHelperMock.sol/VerifierRollupHelperMock.json compiled-contracts/
cp artifacts/contracts/ProofOfEfficiency.sol/ProofOfEfficiency.json compiled-contracts/
cp artifacts/contracts/PolygonZkEVM.sol/PolygonZkEVM.json compiled-contracts/
cp artifacts/contracts/verifiers/Verifier.sol/Verifier.json compiled-contracts/
git add compiled-contracts
exit 0
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ docs/interfaces
docs/mocks
.vscode/launch.json
deploy_output.json
deploy_parameters.json
deploy_parameters.json
deployments
5 changes: 4 additions & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"compiler-version": ["error", "0.8.15"],
"private-vars-leading-underscore": "error",
"bracket-align": "off",
"reason-string": "off"
"reason-string": "off",
"not-rely-on-time": "off",
"no-inline-assembly": "off",
"check-send-result": "off"
}
}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ Private keys and mnemonics contained in this repository are used for internal te
## Repository structure

- `contracts`: zkevm contracts
- `Bridge.sol`: transfer assets between chains
- `GlobalExitRootManager.sol`: manage global exit root in L1
- `GlobalExitRootManagerL2.sol`: manage global exit root in L2
- `ProofOfEfficiency.sol`: consensus algorithm used by polyhon hermez zkevm
- `PolygonZkEVMBridge.sol`: transfer assets between chains
- `PolygonZkEVMGlobalExitRoot.sol`: manage global exit root in L1
- `PolygonZkEVMGlobalExitRootL2.sol`: manage global exit root in L2
- `PolygonZkEVM.sol`: consensus algorithm used by polyhon hermez zkevm
- `docs`: specs and useful links
- `test`: contracts tests

Expand Down Expand Up @@ -60,7 +60,7 @@ npm run lint:fix
## Deploy on hardhat

```
npm run deploy:PoE2_0:hardhat
npm run deploy:ZkEVM:hardhat
```

## Build dockers
Expand Down
Loading