Skip to content

Commit

Permalink
first implementation of executor
Browse files Browse the repository at this point in the history
  • Loading branch information
invocamanman committed Dec 10, 2021
1 parent d3b56b3 commit 9a0d44a
Show file tree
Hide file tree
Showing 39 changed files with 2,592 additions and 16 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zkproverjs/
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: linter
run: npm run lint
- name: test
run: npm run test
run: npm run testSC && npm run testSrc
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@ Smart contract implementation which will be used by the zkEVM
- `src`: js code to interact with the zkEVM, executor, zkEVMDB, sequencer and aggregator.
- `test`: test of all repository

## Activate github hook

```
git config --local core.hooksPath .githooks/
```

## Install

```
npm i
npm run i
```

## Run tests
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@
"prettier": "^2.4.1",
"prettier-plugin-solidity": "^1.0.0-beta.18",
"solidity-docgen": "^0.5.16",
"circomlibjs": "0.1.1",
"ffjavascript": "^0.2.39"
},
"license": "GPL-3.0",
"scripts": {
"test": "npx hardhat test",
"testSC": "npx hardhat test",
"testSrc": "npx mocha test/src/ --recursive",
"docgen": "npx solidity-docgen --solc-module solc-0.8 -t ./docs/templates",
"deploy:PoE:hardhat": "npx hardhat run deployment/testnet/deployPoETestnet.js --network hardhat",
"lint": "npx eslint ./test && npx eslint ./src && npx eslint ./js && npx eslint ./docker/scripts",
"lint:fix": "npx eslint ./test --fix && npx eslint ./src --fix && npx eslint ./js --fix && npx eslint ./docker/scripts --fix",
"lint": "npx eslint ./test && npx eslint ./src && npx eslint ./docker/scripts",
"lint:fix": "npx eslint ./test --fix && npx eslint ./src --fix && npx eslint ./docker/scripts --fix",
"compile": "npx hardhat compile",
"check:deploy:PoE" :"npx hardhat node > /dev/null 2>&1 & npx hardhat run --network localhost deployment/testnet/deployPoETestnet.js && npx hardhat run --network localhost deployment/testnet/checkDeployment.js && pkill -f 'hardhat'",
"docker:contracts": "./docker/scripts/deploy-docker.sh"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions src/zk-EVM/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const ethers = require('ethers');

module.exports.DB_LastBatch = ethers.utils.id(('Rollup_DB_LastBatch'));
module.exports.DB_Batch = ethers.utils.id(('Rollup_DB_Batch'));
module.exports.DB_ChainID = ethers.utils.id(('Rollup_DB_ChainID'));
module.exports.DB_Arity = ethers.utils.id(('Rollup_DB_Arity'));

module.exports.defaultChainID = 0;
module.exports.defaultArity = 4;

module.exports.constantBalance = 0;
module.exports.constantNonce = 1;

module.exports.genericChainID = 1;
Loading

0 comments on commit 9a0d44a

Please sign in to comment.