Skip to content

Commit

Permalink
Fixed command naming inconstencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineRondelet committed Nov 4, 2021
1 parent 615249b commit 3e511e1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This project can be used to:

:rotating_light: **WARNING** This project is a Work In Progress (WIP). It is highly inefficient and has not been thoroughly reviewed. Please do not use in production!

## Building and running the `aggregator_server`:
## Building and running the `aggregator-server`:

:computer: **Warning** This project primarily targets x86_64 Linux and macOS platforms.

Expand Down Expand Up @@ -62,8 +62,8 @@ make test
# (optional) Run the all tests (unit tests, syntax checks, etc)
make check

# Start the aggregator_server process
aggregator_server
# Start the aggregator-server process
aggregator-server
```

### Build and run in a docker container
Expand Down
6 changes: 3 additions & 3 deletions aggregator_server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ include_directories(SYSTEM ${Boost_INCLUDE_DIR})
# so that we will find zecale_config.h
include_directories(${PROJECT_BINARY_DIR})

# aggregator_server executable
# aggregator-server executable
file(
GLOB_RECURSE
AGGREGATOR_SERVER_SOURCE
aggregator_server.cpp
)
add_executable(
aggregator_server
aggregator-server
${AGGREGATOR_SERVER_SOURCE}
${GRPC_SRCS}
)
Expand All @@ -39,7 +39,7 @@ if (NOT APPLE)
endif()

target_link_libraries(
aggregator_server
aggregator-server

zecale
${Boost_SYSTEM_LIBRARY}
Expand Down
4 changes: 2 additions & 2 deletions client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ npm run testrpc

## Execute testing scripts

Once the `aggregator_server` and a custom `ganache-cli` instance are
Once the `aggregator-server` and a custom `ganache-cli` instance are
running, several scripts can be executed to test the CLIs as well as
various aspects of the client and the contracts. You can run such tests
by doing:
Expand Down Expand Up @@ -111,7 +111,7 @@ script](../scripts/test-client).
Depending on the operation being performed, the `zecale` client must:
- interact with an Ethereum RPC host **that supports BW6 arithmetic** (e.g. [here](https://github.com/clearmatics/ganache-cli/tree/v6.10.1-clearmatics)),
- interact with the deployed Zecale contracts,
- request proofs and proof verification keys from `aggregator_server`
- request proofs and proof verification keys from `aggregator-server`

In a similar way as in Zeth, data is stored in files with
default file names (which can be overridden on the zecale commands).
Expand Down
2 changes: 1 addition & 1 deletion client/zecale/cli/zecale_nested_verification_key_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def nested_verification_key_hash(
ctx: Context,
verification_key_file: str) -> None:
"""
Query the aggregator_server for the hash of a specific nested verification
Query the aggregator-server for the hash of a specific nested verification
key. The verification key does not have to be registered.
"""
cmd_ctx: CommandContext = ctx.obj
Expand Down
4 changes: 2 additions & 2 deletions scripts/check_copyright → scripts/check-copyright
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function check_copyright_files() {
count=0
while read -r file ; do
if ! (head -n 4 ${file} | grep -q "Copyright\|DISCLAIMER") ; then
echo "check_copyright: ${file}"
echo "check-copyright: ${file}"
count=$((${count} + 1))
fi
done
Expand All @@ -20,6 +20,6 @@ if ! (git ls-files '*.py' | check_copyright_files && \
git ls-files 'mpc/commands' | check_copyright_files && \
git ls-files '*.hpp' '*.cpp' '*.tcc' | check_copyright_files)
then
echo "check_copyright: ERROR: the above files have missing copyright notices"
echo "check-copyright: ERROR: the above files have missing copyright notices"
exit 1
fi
2 changes: 1 addition & 1 deletion scripts/ci
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function check_format() {
fi

# Perform the check for copyright notices here
scripts/check_copyright
scripts/check-copyright
}

function check_cpp() {
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function aggregator_start() {
pushd build

server_start \
./aggregator_server/aggregator_server \
./aggregator_server/aggregator-server \
aggregator_is_active \
aggregator.pid \
aggregator.stdout
Expand Down
2 changes: 1 addition & 1 deletion setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export ZECALE_SETUP_DIR=$ZECALE/zecale_setup
mkdir -p $ZECALE_SETUP_DIR

# Add the zecale executables in the PATH
export PATH=$ZECALE/build/aggregator_server:$ZECALE/build/libzecale/tests:$PATH
export PATH=$ZECALE/build/aggregator-server:$ZECALE/build/libzecale/tests:$PATH

0 comments on commit 3e511e1

Please sign in to comment.