Skip to content

Commit

Permalink
feat: add support for base
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrdd committed Jun 21, 2024
1 parent 54f94d2 commit 3c17f7a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 2 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
17 changes: 17 additions & 0 deletions src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

0 comments on commit 3c17f7a

Please sign in to comment.