imp: remove TrustedSyncCommittee #189
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
jobs: | |
test-deploy: | |
runs-on: ubuntu-latest | |
env: | |
FOUNDRY_ETH_RPC_URL: http://localhost:8545 | |
DEPLOYMENT_ENV: local | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: "Set up environment" | |
uses: ./.github/setup | |
- name: Deploy Anvil | |
run: | | |
anvil & | |
- name: Deploy contracts | |
run: | | |
forge script scripts/deployments/DeployProxiedICS26Router.sol -vvv --broadcast --private-key ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | |
forge script scripts/deployments/DeployProxiedICS20Transfer.sol -vvv --broadcast --private-key ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | |
forge script scripts/deployments/DeploySP1ICS07Tendermint.sol -vvv --broadcast --private-key ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | |
forge script scripts/deployments/PauseTransfers.sol -vvv --broadcast --private-key ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | |
forge script scripts/deployments/UnpauseTransfers.sol -vvv --broadcast --private-key 59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d | |
- name: Show final result | |
run: | | |
cat deployments/local/31337.json | |
gather-deploys: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.matrix.outputs.matrix }} | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Set deployment matrix | |
id: matrix | |
run: | | |
cd deployments/ | |
echo "matrix=$(ls */*.json | jq -R -r -s -c '{include: [split("\n")[:-1] | .[] | split("/") | {env: .[0], file: .[1]} | select (.env != "local")]}')" >> $GITHUB_OUTPUT | |
verify: | |
runs-on: ubuntu-latest | |
needs: gather-deploys | |
strategy: | |
matrix: ${{ fromJSON(needs.gather-deploys.outputs.matrix) }} | |
env: | |
DEPLOYMENT_ENV: "${{ matrix.env }}" | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: "Set up environment" | |
uses: ./.github/setup | |
- name: Export the RPC URL | |
run: | | |
cat deployments/${{ matrix.env }}/${{ matrix.file }} | jq -r ". | \"FOUNDRY_ETH_RPC_URL=\(.rpc_url)\"" >> $GITHUB_ENV | |
- name: Verify deployed contracts | |
run: | | |
forge script scripts/deployments/DeployProxiedICS26Router.sol -vvv | |
forge script scripts/deployments/DeployProxiedICS20Transfer.sol -vvv | |
forge script scripts/deployments/DeploySP1ICS07Tendermint.sol -vvv |