diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a56ed5d..42bbbfeb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -214,44 +214,44 @@ jobs: skip_checkout: true # tagging_message: '${{ needs.prepare.outputs.release_version }}' - # verify: - # name: Verify contracts - # if: "startsWith(github.head_ref, 'release/') && needs.prepare.outputs.release_verify_cmd != ''" - # runs-on: ubuntu-22.04 - # timeout-minutes: 60 - # needs: - # - build - # - prepare - # - deploy - # steps: - # - uses: actions/checkout@v3 - # with: - # ref: ${{ needs.deploy.outputs.deploy_commit || github.event.pull_request.head.sha }} - # - uses: actions/setup-node@v3 - # with: - # node-version: '14' - # cache: 'yarn' - # - run: yarn install --frozen-lockfile + verify: + name: Verify contracts + if: "startsWith(github.head_ref, 'release/') && needs.prepare.outputs.release_verify_cmd != ''" + runs-on: ubuntu-22.04 + timeout-minutes: 60 + needs: + - build + - prepare + - deploy + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ needs.deploy.outputs.deploy_commit || github.event.pull_request.head.sha }} + - uses: actions/setup-node@v3 + with: + node-version: '14' + cache: 'yarn' + - run: yarn install --frozen-lockfile - # - name: Get build artifacts - # uses: actions/download-artifact@v3 - # with: - # name: contract-artifacts + - name: Get build artifacts + uses: actions/download-artifact@v3 + with: + name: contract-artifacts - # - name: Verify contracts - # shell: bash - # run: | - # yarn hardhat --network ${{ needs.prepare.outputs.release_network }} ${{ needs.prepare.outputs.release_verify_cmd }} ${{ needs.prepare.outputs.release_version }} - # env: - # INFURA_PROJECT_ID: '${{ secrets.INFURA_PROJECT_ID }}' - # MUMBAI_MNEMONIC: '${{ secrets.MUMBAI_MNEMONIC }}' - # MUMBAI_NODE: '${{ secrets.MUMBAI_NODE }}' - # POLYGON_MNEMONIC: '${{ secrets.POLYGON_MNEMONIC }}' - # POLYGON_NODE: '${{ secrets.POLYGON_NODE }}' - # # ETHERSCAN "${{ secrets.ETHERSCAN }}" - # POLYSCAN: '${{ secrets.POLYSCAN }}' - # RELEASE_PATH: '${{ needs.prepare.outputs.release_path }}' - # ARTIFACT_REFERENCE_URL: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}' + - name: Verify contracts + shell: bash + run: | + yarn hardhat --network ${{ needs.prepare.outputs.release_network }} ${{ needs.prepare.outputs.release_verify_cmd }} ${{ needs.prepare.outputs.release_version }} + env: + INFURA_PROJECT_ID: '${{ secrets.INFURA_PROJECT_ID }}' + MUMBAI_MNEMONIC: '${{ secrets.MUMBAI_MNEMONIC }}' + MUMBAI_NODE: '${{ secrets.MUMBAI_NODE }}' + POLYGON_MNEMONIC: '${{ secrets.POLYGON_MNEMONIC }}' + POLYGON_NODE: '${{ secrets.POLYGON_NODE }}' + # ETHERSCAN "${{ secrets.ETHERSCAN }}" + POLYSCAN: '${{ secrets.POLYSCAN }}' + RELEASE_PATH: '${{ needs.prepare.outputs.release_path }}' + ARTIFACT_REFERENCE_URL: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}' # finish-release: # name: Finish release diff --git a/releases/1.2.10/mumbai/config/upgrade.json b/releases/1.2.10/mumbai/config/upgrade.json index 0337cde5..ef60c224 100644 --- a/releases/1.2.10/mumbai/config/upgrade.json +++ b/releases/1.2.10/mumbai/config/upgrade.json @@ -1,4 +1,103 @@ { + "AccessManager": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder" + ] + } + } + }, + "AgentRegistry": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder" + ] + } + } + }, + "ScannerPoolRegistry": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder", "deployment.stake-allocator" + ] + } + + } + }, + "Dispatch": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder" + ] + } + } + }, + "StakeAllocator": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder", "deployment.stake-subject-gateway", "deployment.rewards-distributor" + ] + } + + } + }, + "RewardsDistributor": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder", "deployment.forta", "deployment.stake-subject-gateway" + ] + } + + } + }, + "StakeSubjectGateway": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder" + ] + } + } + }, + "FortaStaking": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder" + ] + } + } + }, "SlashingController": { "impl": { "opts": { diff --git a/releases/1.2.10/polygon/config/upgrade.json b/releases/1.2.10/polygon/config/upgrade.json index 0337cde5..ef60c224 100644 --- a/releases/1.2.10/polygon/config/upgrade.json +++ b/releases/1.2.10/polygon/config/upgrade.json @@ -1,4 +1,103 @@ { + "AccessManager": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder" + ] + } + } + }, + "AgentRegistry": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder" + ] + } + } + }, + "ScannerPoolRegistry": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder", "deployment.stake-allocator" + ] + } + + } + }, + "Dispatch": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder" + ] + } + } + }, + "StakeAllocator": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder", "deployment.stake-subject-gateway", "deployment.rewards-distributor" + ] + } + + } + }, + "RewardsDistributor": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder", "deployment.forta", "deployment.stake-subject-gateway" + ] + } + + } + }, + "StakeSubjectGateway": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder" + ] + } + } + }, + "FortaStaking": { + "impl": { + "opts": { + "unsafe-allow": [ + "delegatecall" + ], + "constructor-args": [ + "deployment.forwarder" + ] + } + } + }, "SlashingController": { "impl": { "opts": {