diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 00bd39f..7d1c10d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,3 +22,4 @@ jobs: env: DATABASE_URI: ${{ secrets.DATABASE_URI }} RPC_URL_OPSEPOLIA: ${{ secrets.RPC_URL_OPSEPOLIA }} + RPC_URL_BASE: ${{ secrets.RPC_URL_BASE }} diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 11fef54..3ff4dd4 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -17,6 +17,7 @@ jobs: env: DATABASE_URI: ${{ secrets.DATABASE_URI }} RPC_URL_OPSEPOLIA: ${{ secrets.RPC_URL_OPSEPOLIA }} + RPC_URL_BASE: ${{ secrets.RPC_URL_BASE }} deploy: needs: build @@ -39,5 +40,6 @@ jobs: git pull origin main export DATABASE_URI=${{ secrets.DATABASE_URI }} export RPC_URL_OPSEPOLIA=${{ secrets.RPC_URL_OPSEPOLIA }} + export RPC_URL_BASE=${{ secrets.RPC_URL_BASE }} docker compose -f docker-compose.yaml up -d --build ENDSSH diff --git a/docker-compose.yaml b/docker-compose.yaml index 8967969..f1687be 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,6 +9,7 @@ services: - NODE_ENV=production - DATABASE_URI=${DATABASE_URI} - RPC_URL_OPSEPOLIA=${RPC_URL_OPSEPOLIA} + - RPC_URL_BASE=${RPC_URL_BASE} volumes: - sqlite_data:/sqlite_cache db: diff --git a/src/networks.ts b/src/networks.ts index 8f040df..425e125 100644 --- a/src/networks.ts +++ b/src/networks.ts @@ -46,6 +46,23 @@ const networks: Network[] = [ }, ], }, + { + id: 8453, + name: "base", + rpc: process.env.RPC_URL_BASE ?? "https://mainnet.base.org", + contracts: [ + { + name: "Allo", + address: "0x1133eA7Af70876e64665ecD07C0A0476d09465a1", + fromBlock: 16047236n, + }, + { + name: "AlloRegistry", + address: "0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3", + fromBlock: 16047236n, + }, + ], + }, ]; export { networks };