Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
25 changes: 25 additions & 0 deletions test/helpers/test-vectors/end-to-end-forking-bridging/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Additional test information

## Steps to build the `e2e` tests
- Go to [contracts repository](https://github.com/RealityETH/subjectivocracy) and perform a deployment. One of the outcomes of the deployment will be a `genesis.json` file
- Copy the `genesis.json` file into the `e2e/state-transition.json` in the `genesis` object property
- Add in the genesis the accounts like this:
```
{
"balance": "0",
"nonce": "3",
"address": "0xc949254d682d8c9ad5682521675b8f43b102aec4",
"pvtKey": "0xdfd01798f92667dbf91df722434e8fbe96af0211d4d1b82bbbbc8f1def7a814f"
}
```
( To interact with the bridge:
- Check `PolygonZkEVMBridge proxy` smart contract address in the `genesis` and copy it into each transaction. Therefore, `to` value in each transaction must match `PolygonZkEVMBridge proxy` address)
- Use this genesis to create manually the state-transition.json file by providing genesis informaiton and txs for the transactions of the first batch, and txs2 with the transactions for the second batch.
- All other data, like stateRoots will be re-calculated and updates by running the scripts in the processor-forking.test.js.
- We create two batches, since the aggregator proofs needs two inputs according to my current understanding.


## Notes
- `contractName` string under genesis property in `state-transition.json` is taken in order to load ABI interface to interact with contracts afterwards
- if a proxy is used, `contractName` should have the following pattern as a name: `${contractName} ${proxy}`
- ABI `${contractName}` will be loaded then
1,847 changes: 1,847 additions & 0 deletions test/helpers/test-vectors/end-to-end-forking-bridging/outputSnark.json

Large diffs are not rendered by default.

Loading