From fd3f26b3639ec044ae2e439bb60511b9ce03ca17 Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Mon, 22 Aug 2022 13:09:38 +0200 Subject: [PATCH] Use forked sorition pools in testnet deployment We want to modify sortiion pools used in test environment to make joining applications easier for operators. With the changes from forked sortition pools we will not require sortition pool to be unlocked when operator wants to join. Even in case the DKG process is in progress we will let operators to join. This is just a temporary change that should be reverted in the near future. Refs https://github.com/keep-network/sortition-pools/pull/186 --- .github/workflows/contracts-ecdsa.yml | 10 +++++++++- .github/workflows/contracts-random-beacon.yml | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/contracts-ecdsa.yml b/.github/workflows/contracts-ecdsa.yml index 39bae7fb2a..5540eeb524 100644 --- a/.github/workflows/contracts-ecdsa.yml +++ b/.github/workflows/contracts-ecdsa.yml @@ -204,11 +204,19 @@ jobs: @keep-network/random-beacon@${{ steps.upstream-builds-query.outputs.random-beacon-version }} \ @keep-network/sortition-pools + # TODO: Remove this step. We replace sortition pools for deployment on testnet + # with forked contracts that were tweaked to make operators joining the pool + # easier. This should never be used outside of the test environment. On + # test environment it should be used temporarily only. + - name: Use Sortition Pool forked contracts + run: | + yarn upgrade github:keep-network/sortition-pools#test-fork + - name: Configure tenderly env: TENDERLY_TOKEN: ${{ secrets.TENDERLY_TOKEN }} run: ./config_tenderly.sh - + - name: Deploy contracts env: CHAIN_API_URL: ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }} diff --git a/.github/workflows/contracts-random-beacon.yml b/.github/workflows/contracts-random-beacon.yml index af89f87f8e..6872aedb9c 100644 --- a/.github/workflows/contracts-random-beacon.yml +++ b/.github/workflows/contracts-random-beacon.yml @@ -200,11 +200,19 @@ jobs: @threshold-network/solidity-contracts@${{ steps.upstream-builds-query.outputs.threshold-contracts-version }} \ @keep-network/sortition-pools + # TODO: Remove this step. We replace sortition pools for deployment on testnet + # with forked contracts that were tweaked to make operators joining the pool + # easier. This should never be used outside of the test environment. On + # test environment it should be used temporarily only. + - name: Use Sortition Pool forked contracts + run: | + yarn upgrade github:keep-network/sortition-pools#test-fork + - name: Configure tenderly env: TENDERLY_TOKEN: ${{ secrets.TENDERLY_TOKEN }} run: ./config_tenderly.sh - + - name: Deploy contracts env: CHAIN_API_URL: ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }}