From a67e0699925c01c9b29dc868be69764bd1813150 Mon Sep 17 00:00:00 2001 From: Ilya Date: Wed, 23 Oct 2024 14:25:37 +0200 Subject: [PATCH] support more networks (#26) --- .github/workflows/publis-container-dev.yaml | 45 +++++++++++++-------- .github/workflows/push-container.yaml | 40 ++++++++++++------ 2 files changed, 56 insertions(+), 29 deletions(-) diff --git a/.github/workflows/publis-container-dev.yaml b/.github/workflows/publis-container-dev.yaml index 24195dc..b9aaa51 100644 --- a/.github/workflows/publis-container-dev.yaml +++ b/.github/workflows/publis-container-dev.yaml @@ -12,11 +12,6 @@ env: jobs: build_driver: - env: - STATE_CONTRACT_ADDRESS_POLYGON_MAIN: "0x624ce98D2d27b20b8f8d521723Df8fC4db71D79D" - STATE_CONTRACT_ADDRESS_POLYGON_AMOY: "0x1a4cC30f2aA0377b0c3bc9848766D90cb4404124" - STATE_CONTRACT_ADDRESS_PRIVADO_MAIN: "0x3C9acB2205Aa72A05F6D77d708b5Cf85FCa3a896" - STATE_CONTRACT_ADDRESS_PRIVADO_TEST: "0x3C9acB2205Aa72A05F6D77d708b5Cf85FCa3a896" runs-on: ubuntu-latest permissions: id-token: write @@ -47,22 +42,38 @@ jobs: cd driver-did-iden3 echo -e "polygon:" > resolvers.settings.yaml echo -e " amoy:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_CONTRACT_ADDRESS_POLYGON_AMOY }}" >> resolvers.settings.yaml - echo -e " networkURL: ${{ secrets.POLYGON_AMOY_NODE_URL }}" >> resolvers.settings.yaml - echo -e " walletKey: ${{ secrets.SIGNER_PRIVATE_KEY }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_POLYGON_AMOY }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_POLYGON_AMOY }}" >> resolvers.settings.yaml echo -e " main:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_CONTRACT_ADDRESS_POLYGON_MAIN }}" >> resolvers.settings.yaml - echo -e " networkURL: ${{ secrets.POLYGON_MAIN_NODE_URL }}" >> resolvers.settings.yaml - echo -e " walletKey: ${{ secrets.SIGNER_PRIVATE_KEY }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_POLYGON_MAIN }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_POLYGON_MAIN }}" >> resolvers.settings.yaml + echo -e " cardona:" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_POLYGON_ZKEVM_CARDONA }}" >> resolvers.settings.yaml + echo -e " zkevm:" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_POLYGON_ZKEVM_MAIN }}" >> resolvers.settings.yaml echo -e "privado:" >> resolvers.settings.yaml echo -e " main:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_CONTRACT_ADDRESS_PRIVADO_MAIN }}" >> resolvers.settings.yaml - echo -e " networkURL: ${{ secrets.PRIVADO_MAIN_NODE_URL }}" >> resolvers.settings.yaml - echo -e " walletKey: ${{ secrets.SIGNER_PRIVATE_KEY }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_PRIVADO_MAIN }}" >> resolvers.settings.yaml echo -e " test:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_CONTRACT_ADDRESS_PRIVADO_TEST }}" >> resolvers.settings.yaml - echo -e " networkURL: ${{ secrets.PRIVADO_TEST_NODE_URL }}" >> resolvers.settings.yaml - echo -e " walletKey: ${{ secrets.SIGNER_PRIVATE_KEY }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_PRIVADO_TEST }}" >> resolvers.settings.yaml + echo -e "eth:" >> resolvers.settings.yaml + echo -e " main:" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_ETHEREUM_MAIN }}" >> resolvers.settings.yaml + echo -e " sepolia:" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_ETHEREUM_SEPOLIA }}" >> resolvers.settings.yaml + echo -e "linea:" >> resolvers.settings.yaml + echo -e " main:" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_LINEA_MAIN }}" >> resolvers.settings.yaml + echo -e " sepolia:" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_LINEA_SEPOLIA }}" >> resolvers.settings.yaml - name: Set up Docker Buildx id: buildx diff --git a/.github/workflows/push-container.yaml b/.github/workflows/push-container.yaml index fa8a80c..6510a4f 100644 --- a/.github/workflows/push-container.yaml +++ b/.github/workflows/push-container.yaml @@ -10,10 +10,6 @@ on: jobs: build_driver: - env: - STATE_CONTRACT_ADDRESS_POLYGON_MAIN: "0x624ce98D2d27b20b8f8d521723Df8fC4db71D79D" - STATE_CONTRACT_ADDRESS_POLYGON_AMOY: "0x1a4cC30f2aA0377b0c3bc9848766D90cb4404124" - STATE_CONTRACT_ADDRESS_PRIVADO: "0x3C9acB2205Aa72A05F6D77d708b5Cf85FCa3a896" runs-on: ubuntu-latest steps: - name: Checkout driver-did-iden3 @@ -33,18 +29,38 @@ jobs: cd driver-did-iden3 echo -e "polygon:" > resolvers.settings.yaml echo -e " amoy:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_CONTRACT_ADDRESS_POLYGON_AMOY }}" >> resolvers.settings.yaml - echo -e " networkURL: ${{ secrets.POLYGON_AMOY_NODE_URL }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_POLYGON_AMOY }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_POLYGON_AMOY }}" >> resolvers.settings.yaml echo -e " main:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_CONTRACT_ADDRESS_POLYGON_MAIN }}" >> resolvers.settings.yaml - echo -e " networkURL: ${{ secrets.POLYGON_MAIN_NODE_URL }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_POLYGON_MAIN }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_POLYGON_MAIN }}" >> resolvers.settings.yaml + echo -e " cardona:" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_POLYGON_ZKEVM_CARDONA }}" >> resolvers.settings.yaml + echo -e " zkevm:" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_POLYGON_ZKEVM_MAIN }}" >> resolvers.settings.yaml echo -e "privado:" >> resolvers.settings.yaml echo -e " main:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_CONTRACT_ADDRESS_PRIVADO }}" >> resolvers.settings.yaml - echo -e " networkURL: ${{ secrets.PRIVADO_MAIN_NODE_URL }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_PRIVADO_MAIN }}" >> resolvers.settings.yaml echo -e " test:" >> resolvers.settings.yaml - echo -e " contractAddress: ${{ env.STATE_CONTRACT_ADDRESS_PRIVADO }}" >> resolvers.settings.yaml - echo -e " networkURL: ${{ secrets.PRIVADO_TEST_NODE_URL }}" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_PRIVADO_TEST }}" >> resolvers.settings.yaml + echo -e "eth:" >> resolvers.settings.yaml + echo -e " main:" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_ETHEREUM_MAIN }}" >> resolvers.settings.yaml + echo -e " sepolia:" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_ETHEREUM_SEPOLIA }}" >> resolvers.settings.yaml + echo -e "linea:" >> resolvers.settings.yaml + echo -e " main:" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_LINEA_MAIN }}" >> resolvers.settings.yaml + echo -e " sepolia:" >> resolvers.settings.yaml + echo -e " contractAddress: ${{ env.STATE_UNIFIED }}" >> resolvers.settings.yaml + echo -e " networkURL: ${{ secrets.RPC_LINEA_SEPOLIA }}" >> resolvers.settings.yaml - name: Set up Docker Buildx id: buildx