feat: Mahout smart contract #65
Workflow file for this run
This file contains hidden or 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
| # .github/workflows/ci.yml | |
| name: Foundry PR Check | |
| on: | |
| pull_request: | |
| branches: [main, master] | |
| permissions: | |
| contents: read | |
| id-token: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| env: | |
| CI: true | |
| POLYGON_MAINNET_RPC_URL: ${{ secrets.POLYGON_MAINNET_RPC_URL }} | |
| POLYGONSCAN_API_KEY: ${{ secrets.POLYGONSCAN_API_KEY }} | |
| AWS_KMS_KEY_ID: ${{ secrets.KMS_KEY_ID }} | |
| AWS_ROLE_TO_ASSUME: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 # Need full history for reference builds | |
| - name: Install Just | |
| uses: extractions/setup-just@v2 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: stable | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| role-to-assume: ${{ env.AWS_ROLE_TO_ASSUME }} | |
| aws-region: "us-east-1" | |
| - name: Build Reference Contracts | |
| run: just build-reference | |
| - name: Run build and checks | |
| run: just check | |
| - name: Get KMS Address | |
| run: | | |
| echo "KMS_ADDRESS=$(cast wallet address --aws)" >> $GITHUB_ENV | |
| - name: Upgrade PropertyDataConsensus (Dry Run) | |
| run: just upgrade-consensus-prod polygon | |
| env: | |
| CONSENSUS_PROXY: "0x9bA70DA0Fcc5619C80b817276eBb94a4b59b2D18" | |
| - name: Upgrade vMahout (Dry Run) | |
| run: just upgrade-vmahout-prod polygon | |
| env: | |
| VMAHOUT_PROXY: "0x940a9bb3ffd84EB20A69A827F91AeDB823843368" | |
| MINTER_ADDRESS: "0x9bA70DA0Fcc5619C80b817276eBb94a4b59b2D18" | |
| - name: Upgrade Mahout (Dry Run) | |
| run: just upgrade-mahout-prod polygon | |
| env: | |
| MAHOUT_PROXY: "0x55378a241988CF4bd131e0d986A67b69D3F6B32E" | |
| MINTER_ADDRESS: "0x9bA70DA0Fcc5619C80b817276eBb94a4b59b2D18" |