From 398a57d8846f888214dfb1800ab02008f65e4c94 Mon Sep 17 00:00:00 2001 From: Duncan Tebbs Date: Mon, 20 Sep 2021 18:06:53 +0100 Subject: [PATCH] submodule: update zeth [v0.8.0] --- .github/workflows/onpullrequest.yml | 19 +++++++++++++------ client/setup.py | 12 ++---------- depends/zeth | 2 +- libzecale/circuits/pairing/pairing_params.hpp | 6 ++---- scripts/ci | 4 +++- scripts/test_client | 4 ++-- scripts/test_zeth_zecale | 6 +++--- 7 files changed, 26 insertions(+), 27 deletions(-) diff --git a/.github/workflows/onpullrequest.yml b/.github/workflows/onpullrequest.yml index 28cf1478..a4121c01 100644 --- a/.github/workflows/onpullrequest.yml +++ b/.github/workflows/onpullrequest.yml @@ -16,9 +16,12 @@ jobs: uses: actions/cache@v2 with: key: grpc-1.31.x-${{ runner.os }} - path: depends/grpc + path: depends/zeth/depends/grpc - name: Build grpc - run: if ! [ -d depends/grpc ] ; then depends/zeth/scripts/install_grpc /usr v1.31.x depends/grpc ; fi + run: | + pushd depends/zeth + if ! [ -d depends/grpc ] ; then scripts/install-grpc /usr v1.31.x ; fi + popd build-linux-full-tests: runs-on: ubuntu-20.04 @@ -34,7 +37,7 @@ jobs: uses: actions/cache@v2 with: key: grpc-1.31.x-${{ runner.os }} - path: depends/grpc + path: depends/zeth/depends/grpc - name: Cache pip uses: actions/cache@v2 with: @@ -51,7 +54,9 @@ jobs: key: build-linux-full-tests-npm-${{ hashFiles('**/package-lock.json') }}-${{ runner.os }} - name: Install dependencies run: | - depends/zeth/scripts/install_grpc /usr v1.31.x depends/grpc + pushd depends/zeth + INSTALL_ONLY=1 scripts/install-grpc /usr v1.31.x + popd - name: Execute run: CI_FULL_TESTS=1 CI_CONFIG=Release scripts/ci build @@ -69,7 +74,7 @@ jobs: uses: actions/cache@v2 with: key: grpc-1.31.x-${{ runner.os }} - path: depends/grpc + path: depends/zeth/depends/grpc - name: Cache pip uses: actions/cache@v2 with: @@ -86,6 +91,8 @@ jobs: key: build-linux-integration-tests-npm-${{ hashFiles('**/package-lock.json') }}-${{ runner.os }} - name: Install dependencies run: | - depends/zeth/scripts/install_grpc /usr v1.31.x depends/grpc + pushd depends/zeth + INSTALL_ONLY=1 scripts/install-grpc /usr v1.31.x + popd - name: Execute run: CI_INTEGRATION_TESTS=1 CI_CONFIG=Release scripts/ci build diff --git a/client/setup.py b/client/setup.py index bc81d53d..82b66611 100644 --- a/client/setup.py +++ b/client/setup.py @@ -19,17 +19,9 @@ version='0.4', description='Client to interact with Zecale server', packages=find_packages(), - # zip_safe=False, install_requires=[ - "mypy==0.790", - "mypy-protobuf==1.23", - "flake8==3.8.3", - "pylint==2.6", - "click==7.0", - "click-default-group==1.2", - "protobuf==3.13.0", - "grpcio==1.33.2", - "grpcio-tools==1.33.2", + # Dependencies installed as part of zeth client. Further dependencies + # are listed here: ], entry_points={ 'console_scripts': [ diff --git a/depends/zeth b/depends/zeth index 60ed99a4..828c5df1 160000 --- a/depends/zeth +++ b/depends/zeth @@ -1 +1 @@ -Subproject commit 60ed99a4a7bff5b87abb4ac4ce55cddd693c7302 +Subproject commit 828c5df1dc8521a093c19b76c975bd27031bbe9f diff --git a/libzecale/circuits/pairing/pairing_params.hpp b/libzecale/circuits/pairing/pairing_params.hpp index 39004d3f..eb5fbfb1 100644 --- a/libzecale/circuits/pairing/pairing_params.hpp +++ b/libzecale/circuits/pairing/pairing_params.hpp @@ -83,10 +83,8 @@ template class pairing_selector; * Below are various template aliases (used for convenience). */ -template -using FqkT = - typename pairing_selector::FqkT; // TODO: better name when stable - +// TODO: better name when stable +template using FqkT = typename pairing_selector::FqkT; template using Fqe_variable = typename pairing_selector::Fqe_variable_type; template diff --git a/scripts/ci b/scripts/ci index cc8f0a71..e0a913b3 100755 --- a/scripts/ci +++ b/scripts/ci @@ -4,7 +4,9 @@ platform=`uname` echo platform=${platform} echo "running against commit: "`git log --oneline --no-decorate -n 1` -. depends/zeth/scripts/ci_utils.sh +pushd depends/zeth +. scripts/ci_utils.sh +popd . scripts/ci_utils.sh set -x diff --git a/scripts/test_client b/scripts/test_client index 45ad31e7..6188712f 100755 --- a/scripts/test_client +++ b/scripts/test_client @@ -14,9 +14,9 @@ TEST_DATA_DIR=${ROOT_DIR}/testdata function setup_user() { mkdir -p $1 pushd $1 - [ -e eth-network ] || zeth_helper eth-gen-network-config + [ -e eth-network ] || zeth-helper eth-gen-network-config [ -e eth-address ] || \ - (zeth_helper eth-gen-address && zeth_helper eth-fund) + (zeth-helper eth-gen-address && zeth-helper eth-fund) popd } diff --git a/scripts/test_zeth_zecale b/scripts/test_zeth_zecale index 874fda8a..c542bff0 100755 --- a/scripts/test_zeth_zecale +++ b/scripts/test_zeth_zecale @@ -10,9 +10,9 @@ ROOT_DIR=`pwd` function setup_user() { mkdir -p $1 pushd $1 - [ -e eth-network ] || zeth_helper eth-gen-network-config $2 + [ -e eth-network ] || zeth-helper eth-gen-network-config $2 [ -e eth-address ] || \ - (zeth_helper eth-gen-address && zeth_helper eth-fund) + (zeth-helper eth-gen-address && zeth-helper eth-fund) [ -e zeth-address.priv ] || zeth gen-address popd } @@ -52,7 +52,7 @@ pushd zeth_deployer [ -e vk-hash ] || zecale nested-verification-key-hash zeth-vk.json > vk-hash # Deploy zeth using zecale_address and vk_hash. - dispatcher_address=`zeth_helper eth-get-contract-address zecale-instance` + dispatcher_address=`zeth-helper eth-get-contract-address zecale-instance` [ -e zeth-instance ] || zeth deploy \ --permitted-dispatcher ${dispatcher_address} \ --vk-hash `cat vk-hash`