Skip to content

Commit

Permalink
Add code diff docs
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaubennassar committed Jan 17, 2024
1 parent fa59457 commit bb93e04
Show file tree
Hide file tree
Showing 3 changed files with 66,525 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ For an in-depth understanding of the protocol’s specifications, please refer t

## Run a CDK Validium

> This repo is a fork of the [zkevm-node](/~https://github.com/0xPolygonHermez/zkevm-node)
> This repo is a fork of the [zkevm-node](/~https://github.com/0xPolygonHermez/zkevm-node), more information and code diff explained [here](./docs/diff/diff.md)
### Development

Expand Down
66,467 changes: 66,467 additions & 0 deletions docs/diff/diff.html

Large diffs are not rendered by default.

57 changes: 57 additions & 0 deletions docs/diff/diff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Diff

This repo is a fork from [zkevm-node](/~https://github.com/0xPolygonHermez.zkevm-node). The puirpose of the fork is to implement tha Validium consensus, enabling data availability to be posted outside of L1.

In order to document the code diff the [diff2html-cli](https://www.npmjs.com/package/diff2html-cli) tool is used. An html file is included in the repo [here](./diff.html). This file has been generated running the following command:

```bash
PATH_TO_ZKEVM_NODE_REPO="/change/this"
diff -ruN \
-I ".*github.com\/0x.*" \
-x "*mock*" -x ".git" \
-x ".github" \
-x ".gitignore" \
-x ".vscode" \
-x "ci" \
-x "environments" \
-x "*.md" \
-x "*.html" \
-x "*.html" \
-x "*.json" \
-x "*.toml" \
-x "*.abi" \
-x "*.bin" \
-x "*.pb.go" \
-x "smartcontracts" \
-x "go.sum" \
-x "mock*.go" \
-x "*venv*" \
-x "/dist/" \
-x "/test/e2e/keystore" \
-x "/test/vectors/src/**/*md" \
-x "/test/vectors/src/**/*js" \
-x "/test/vectors/src/**/*sol" \
-x "/test/vectors/src/**/*sh" \
-x "/test/vectors/src/package.json" \
-x "/test/contracts/bin/**/*.bin" \
-x "/test/contracts/bin/**/*.abi" \
-x "/tools/datastreamer/*.bin" \
-x "/test/datastreamer/*.db/*" \
-x "/test/*.bin" \
-x "/test/*.db/*" \
-x "**/.DS_Store" \
-x ".vscode" \
-x ".idea/" \
-x ".env" \
-x "out.dat" \
-x "cmd/__debug_bin" \
-x ".venv" \
-x "*metrics.txt" \
-x "coverage.out" \
-x "*datastream.db*" \
${PATH_TO_ZKEVM_NODE_REPO} . | \
diff2html -i stdin -s side -t "zkEVM node vs CDK validium node</br><h2>zkevm-node version: v0.5.0-RC4<h2/>" \
-F ./docs/diff/diff.html
```

Note that some files are excluded from the diff to omit changes that are not very relevant

0 comments on commit bb93e04

Please sign in to comment.