Skip to content

Commit

Permalink
support more networks (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-korotya authored Oct 23, 2024
1 parent 73eb8c9 commit a67e069
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 29 deletions.
45 changes: 28 additions & 17 deletions .github/workflows/publis-container-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
40 changes: 28 additions & 12 deletions .github/workflows/push-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a67e069

Please sign in to comment.