From 3f95f0d11272933c711c2c25f6be692b2ec582c5 Mon Sep 17 00:00:00 2001 From: Jie Hou Date: Sun, 18 Feb 2024 22:35:28 -0800 Subject: [PATCH] test --- .github/workflows/auto-deploy-contracts.yaml | 40 +++---- .../deploy_output.txt | 103 ------------------ 2 files changed, 20 insertions(+), 123 deletions(-) delete mode 100644 scripts/deploy_subnet_under_calibration_net/deploy_output.txt diff --git a/.github/workflows/auto-deploy-contracts.yaml b/.github/workflows/auto-deploy-contracts.yaml index 75abb2724..f694dbd79 100644 --- a/.github/workflows/auto-deploy-contracts.yaml +++ b/.github/workflows/auto-deploy-contracts.yaml @@ -31,29 +31,29 @@ jobs: ref: ${{ github.head_ref }} submodules: recursive -# - name: Setup node and npm -# uses: actions/setup-node@v4 -# with: -# node-version: 20 -# cache: 'npm' -# cache-dependency-path: contracts/package-lock.json -# -# - name: Install Foundry -# uses: foundry-rs/foundry-toolchain@v1 -# -# - name: Deploy IPC contracts to calibration net -# id: deploy_contracts -# run: | -# cd contracts -# npm install --save hardhat -# output=$(make deploy-ipc NETWORK=calibrationnet) -# echo "deploy_output<> $GITHUB_OUTPUT -# echo "$output" >> $GITHUB_OUTPUT -# echo "EOF" >> $GITHUB_OUTPUT + - name: Setup node and npm + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + cache-dependency-path: contracts/package-lock.json + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + + - name: Deploy IPC contracts to calibration net + id: deploy_contracts + run: | + cd contracts + npm install --save hardhat + output=$(make deploy-ipc NETWORK=calibrationnet) + echo "deploy_output<> $GITHUB_OUTPUT + echo "$output" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT - name: Parse deploy output run: | - deploy_output=$(cat scripts/deploy_subnet_under_calibration_net/deploy_output.txt) + deploy_output='${{ steps.deploy_contracts.outputs.deploy_output }}' echo "$deploy_output" deployed_gateway_address=$(echo "$deploy_output" | grep '"Gateway"' | awk -F'"' '{print $4}') deployed_registry_address=$(echo "$deploy_output" | grep '"SubnetRegistry"' | awk -F'"' '{print $4}') diff --git a/scripts/deploy_subnet_under_calibration_net/deploy_output.txt b/scripts/deploy_subnet_under_calibration_net/deploy_output.txt deleted file mode 100644 index b0f45894d..000000000 --- a/scripts/deploy_subnet_under_calibration_net/deploy_output.txt +++ /dev/null @@ -1,103 +0,0 @@ -./ops/deploy.sh calibrationnet -[*] Deploying libraries -[*] Output libraries available in /home/runner/work/ipc/ipc/contracts/scripts/libraries.out -[*] Populating deploy-gateway script -[*] Gateway script in /home/runner/work/ipc/ipc/contracts/scripts/deploy-gateway.ts -[*] Gateway deployed: -{ - "ChainID": 314159, - "Gateway": "0xebde5c6c9773AC5EF4b7CDb14c1753ecD6C98e2b", - "Facets": [ - { - "name": "GatewayGetterFacet", - "libs": { - "SubnetIDHelper": "0xFc614Ae9ff3B1957A9f5B1326080329b30386ec7", - "LibQuorum": "0xaf92b71c852CD0C768F8D0EcA386e5Fee5134aD1" - }, - "address": "0xa22DADb43471eEbC9f592B430b72020F7dA285c4" - }, - { - "name": "DiamondLoupeFacet", - "libs": {}, - "address": "0xbbC89734517Fdd86e67355Df6166554c987ad6CF" - }, - { - "name": "DiamondCutFacet", - "libs": {}, - "address": "0x2bA406508281b6f6D0D24e7ce0C2cf01c34916eb" - }, - { - "name": "GatewayManagerFacet", - "libs": { - "CrossMsgHelper": "0x6f244aFA64C744d6E303cA3c1595e4Dc8e197F55", - "SubnetIDHelper": "0xFc614Ae9ff3B1957A9f5B1326080329b30386ec7" - }, - "address": "0x0A8299a3A6C1463891cf7638D2cBad1C1236b5cc" - }, - { - "name": "GatewayMessengerFacet", - "libs": { - "SubnetIDHelper": "0xFc614Ae9ff3B1957A9f5B1326080329b30386ec7", - "CrossMsgHelper": "0x6f244aFA64C744d6E303cA3c1595e4Dc8e197F55" - }, - "address": "0xfa015EE5fe4bC3D3973914fD7C3b5030B0f7404C" - }, - { - "name": "CheckpointingFacet", - "libs": { - "AccountHelper": "0x3D0CC74a3d7d2C820d16Ed4d682CDf15F34c735E", - "SubnetIDHelper": "0xFc614Ae9ff3B1957A9f5B1326080329b30386ec7", - "CrossMsgHelper": "0x6f244aFA64C744d6E303cA3c1595e4Dc8e197F55" - }, - "address": "0xBCe824abF82714AeF87DC7ba9eE615cC5638C950" - }, - { - "name": "XnetMessagingFacet", - "libs": { - "AccountHelper": "0x3D0CC74a3d7d2C820d16Ed4d682CDf15F34c735E", - "CrossMsgHelper": "0x6f244aFA64C744d6E303cA3c1595e4Dc8e197F55", - "SubnetIDHelper": "0xFc614Ae9ff3B1957A9f5B1326080329b30386ec7" - }, - "address": "0x77e57e16F6a9F852b7ad7Eb80BbF3DFC9D324077" - }, - { - "name": "TopDownFinalityFacet", - "libs": { - "AccountHelper": "0x3D0CC74a3d7d2C820d16Ed4d682CDf15F34c735E" - }, - "address": "0xDad3117cCEdF5d45A51988957D4f54e15807EDc0" - } - ] -} -[*] Output gateway address in /home/runner/work/ipc/ipc/contracts/scripts/gateway.out -[*] Populating deploy-registry script -[*] Registry script in /home/runner/work/ipc/ipc/contracts/scripts/deploy-registry.ts -Deploying contracts with account: 0xF161ba5E71EA64b34E95A860F3b093425c7Ca9AF and balance: 232197673117076586236 -{ - "SubnetRegistry": "0x127b8D93bB9734DE1bfd9A10dE13b5f6453E54Cc", - "Facets": [ - { - "name": "RegisterSubnetFacet", - "libs": { - "SubnetIDHelper": "0xFc614Ae9ff3B1957A9f5B1326080329b30386ec7" - }, - "address": "0x90f00b610DFd9e80537Ca8ad8B8b6e6a7e5855c6" - }, - { - "name": "SubnetGetterFacet", - "libs": {}, - "address": "0x88932FbFCb02411f172e2d85066FA2f7407C39e4" - }, - { - "name": "DiamondLoupeFacet", - "libs": {}, - "address": "0x965Fdea4ed7d4AE2D122512cE4Af94Ffd6916192" - }, - { - "name": "DiamondCutFacet", - "libs": {}, - "address": "0xDec370B7805eC86FD406147Bf33058D9D90dE0eb" - } - ] -} -[*] IPC actors successfully deployed \ No newline at end of file