Skip to content

Commit

Permalink
fix: include blockmeta config on agent start
Browse files Browse the repository at this point in the history
  • Loading branch information
0xyaco committed Sep 13, 2024
1 parent 42bda79 commit 552b0da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ const config = {
},
blockNumberService: {
chainRpcUrls: new Map([["eip155:1" as const, ["localhost"]]]),
blockmetaConfig: {
baseUrl: new URL("localhost:443"),
servicePaths: {
blockByTime: "/sf.blockmeta.v2.BlockByTime",
block: "/sf.blockmeta.v2.Block",
},
bearerToken: "secret-token",
bearerTokenExpirationWindow: 365 * 24 * 60 * 60 * 1000, // 1 year
},
},
processor: {
msBetweenChecks: 1,
Expand All @@ -34,6 +43,7 @@ const main = async (): Promise<void> => {

const blockNumberService = new BlockNumberService(
config.blockNumberService.chainRpcUrls,
config.blockNumberService.blockmetaConfig,
logger,
);

Expand Down

0 comments on commit 552b0da

Please sign in to comment.