mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
* fix: circuits and contracts * feat: add reverse ofac logic * feat: add onlyRole modifiers to functions * style: replace onlyOwner reference in comment code to role-based access * test: unskip and update governance tests for access control * test: fix PCR0 setup in kyc test --------- Co-authored-by: Evi Nova <tranquil_flow@protonmail.com>
25 lines
658 B
Bash
Executable File
25 lines
658 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source "scripts/build/common.sh"
|
|
|
|
# Set environment (change this value as needed)
|
|
# ENV="prod"
|
|
ENV="staging"
|
|
|
|
echo -e "${GREEN}Building register circuits for $ENV environment${NC}"
|
|
|
|
# Circuit-specific configurations
|
|
CIRCUIT_TYPE="register"
|
|
OUTPUT_DIR="build/${CIRCUIT_TYPE}"
|
|
|
|
# Define circuits and their configurations
|
|
# format: name:poweroftau:build_flag
|
|
CIRCUITS=(
|
|
"register_kyc:15:true"
|
|
)
|
|
|
|
build_circuits "$CIRCUIT_TYPE" "$OUTPUT_DIR" "${CIRCUITS[@]}"
|
|
|
|
echo -e "${GREEN}Register circuits build completed for $ENV environment!${NC}"
|
|
echo -e "${YELLOW}Generated files are located in: contracts/verifiers/local/${ENV}/${CIRCUIT_TYPE}/${NC}"
|