This user manual provides detailed instructions for setting up and operating the VOCA zero knowledge rollup. It covers the setup of the operator node as well as the deployment of the smart contracts necessary for for the network to function.
To get the operator node up and running, follow these steps:
Navigate to the directory of the operator node and install the required dependencies by running: npm install
Ensure all necessary environment variables are set by updating the .env
file in the root directory of the operator node.
Launch the operator node by running the following command in the root directory:
node app.js
This will initiate the operator node using the configurations specified in the .env
file.
Deployment of the smart contracts involves building the contracts and deploying them via a script.
From the root directory of the smart contracts, execute the following command to build the smart contracts:
forge build
Deploy the necessary hashing and the rollup contracts by running the poseidon.js
script:
node poseidon.js
This step deploys the contracts needed for the zk rollup operation.
Following these steps will set up the zk rollup environment. The smart contracts will be deployed and the operator will listen for deposit events and process them as they come.