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.
Closes #83
Updates:
test-flow-generator
tool. It allows you to generate any transaction flow with pre-calculated proofs and signatures using a json file. Flows can also be made ofindependent
transactions meaning that each transaction uses the same merkle root for SNARK proofs.zp-relayer/test/worker-tests
) covering functionality added in recent releases. Each test runs in an independent environment with clear node's state (with deployed pool contracts only) and clear local state. Tests usezp-relayer/test/flows/flow_independent_deposits_5.json
file with pre-generated flow usingtest-flow-generator
. You can generate your own flow to test different scenarios if needed. Also, you can change test env variables intest.env
file if needed.sentTxQueue
jobs is now calculated astx_nonce+1
because 0 priority is undefined inbullmq
.NOTES:
test-flow-generator
are calculated in local browser environment (launched automatically usingpuppeteer
) usinglibzkbob-rs-wasm-web
package.lok52/zkbob-contracts
docker image with tweakedEnv.s.sol
file where relayer and token minter addresses are changed (bobMinter = 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1
,zkBobRelayer = 0x22d491Bde2303f2f43325b2108D26f1eAbA1e32b
).zp-relayer/test/utils.ts
, e.g. you can enable/disable mining on a node, mine blocks manually, drop transactions from mempool, etc.docker-compose