Skip to content

Commit

Permalink
Add morph (#54)
Browse files Browse the repository at this point in the history
* Add morph

* Update start block
  • Loading branch information
fewensa authored Oct 24, 2024
1 parent 2ec9e14 commit da25dbb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions definition/mainnets/ponder.morph.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { createConfig, loadBalance } from "@ponder/core";
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 BLAST_API_KEY = process.env.BLAST_API_KEY;
const MAX_REQUESTS_PER_SECOND = 5;
const FAST_MAX_REQUESTS_PER_SECOND = 20;

export default createConfig({
networks: {
morph: {
chainId: 2818,
transport: loadBalance([
http("https://rpc.morphl2.io"),
]),
maxRequestsPerSecond: FAST_MAX_REQUESTS_PER_SECOND,
},
},
contracts: {
// === V2
ORMPV2: {
abi: ORMPAbiV2,
address: "0x13b2211a7cA45Db2808F6dB05557ce5347e3634e",
network: {
morph: {
startBlock: 59565,
},
},
filter: {
event: [
"MessageAccepted",
"MessageDispatched",
"MessageAssigned",
"HashImported",
],
},
},
},
});

0 comments on commit da25dbb

Please sign in to comment.