From ef886c3da1331781ddf72e6a8f340c9d40bf23ff Mon Sep 17 00:00:00 2001 From: Will Hester Date: Tue, 14 Jan 2025 08:32:49 +0000 Subject: [PATCH] add script step to l2 deploy --- .../workflows/manual-deploy-testnet-l2.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/manual-deploy-testnet-l2.yml b/.github/workflows/manual-deploy-testnet-l2.yml index 0e42f82d6..bad268755 100644 --- a/.github/workflows/manual-deploy-testnet-l2.yml +++ b/.github/workflows/manual-deploy-testnet-l2.yml @@ -419,6 +419,40 @@ jobs: grant-sequencers.out retention-days: 7 + set-challenge-period: + needs: + - build + - check-obscuro-is-healthy + runs-on: ubuntu-latest + environment: + name: ${{ github.event.inputs.testnet_type }} + steps: + - uses: actions/checkout@v4 + + - name: 'Set challenge period on management contract' + id: setChallengePeriod + shell: bash + run: | + go run ./testnet/launcher/l1challengeperiod/cmd \ + -l1_http_url=${{ secrets.L1_HTTP_URL }} \ + -private_key=${{ secrets.ACCOUNT_PK_WORKER }} \ + -management_contract_addr=${{ needs.build.outputs.MGMT_CONTRACT_ADDR }} \ + -docker_image=${{ vars.L2_HARDHATDEPLOYER_DOCKER_BUILD_TAG }} \ + -l1_challenge_period={{ vars.L1_CHALLENGE_PERIOD }} + echo "Setting challenge period to ${{ vars.L1_CHALLENGE_PERIOD }}" + + - name: 'Save challenge period container logs' + run: | + docker logs `docker ps -aqf "name=set-challenge-period"` > set-challenge-period.out 2>&1 + + - name: 'Upload challenge period container logs' + uses: actions/upload-artifact@v4 + with: + name: set-challenge-period + path: | + set-challenge-period.out + retention-days: 7 + deploy-l2-contracts: needs: - build