Skip to content

Commit

Permalink
infura for testnets
Browse files Browse the repository at this point in the history
  • Loading branch information
jiguantong committed Jun 11, 2024
1 parent 920a912 commit df0cef5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions definition/testnets/ponder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { http } from "viem";
import { ORMPAbi as ORMPAbiV2 } from "./abis/v2/ORMPAbi";
import { SignaturePubAbi } from "./abis/v2/SignaturePubAbi";

// const INFURA_API_KEY = process.env.INFURA_API_KEY;
const INFURA_API_KEY = null;
const INFURA_API_KEY = process.env.INFURA_API_KEY;
// const INFURA_API_KEY = null;
const MAX_REQUESTS_PER_SECOND = 5;
const FAST_MAX_REQUESTS_PER_SECOND = 10;

Expand All @@ -17,7 +17,7 @@ export default createConfig({
transport: loadBalance([
http("https://arbitrum-sepolia-hrpc.vercel.app/"),
http("https://sepolia-rollup.arbitrum.io/rpc"),
// http(`https://arbitrum-sepolia.infura.io/v3/${INFURA_API_KEY}`),
http(`https://arbitrum-sepolia.infura.io/v3/${INFURA_API_KEY}`),
]),
maxRequestsPerSecond: FAST_MAX_REQUESTS_PER_SECOND,
},
Expand All @@ -38,7 +38,7 @@ export default createConfig({
transport: loadBalance([
http("https://rpc2.sepolia.org"),
http("https://sepolia-hrpc.vercel.app/"),
// http(`https://sepolia.infura.io/v3/${INFURA_API_KEY}`),
http(`https://sepolia.infura.io/v3/${INFURA_API_KEY}`),
]),
maxRequestsPerSecond: MAX_REQUESTS_PER_SECOND,
},
Expand Down

0 comments on commit df0cef5

Please sign in to comment.