-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Split networks * Split networks * docker compose * Testnets
- Loading branch information
Showing
27 changed files
with
945 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,5 @@ yarn-error.log* | |
|
||
/ponder.config.ts | ||
*.local.* | ||
|
||
.data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
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: { | ||
arbitrum: { | ||
chainId: 42161, | ||
transport: loadBalance([ | ||
http(`https://arbitrum-one.blastapi.io/${BLAST_API_KEY}`), | ||
// "https://arb1.arbitrum.io/rpc" | ||
http("https://hrpc.darwinia.network/arbitrum"), | ||
// "https://rpc.ankr.com/arbitrum" | ||
]), | ||
maxRequestsPerSecond: FAST_MAX_REQUESTS_PER_SECOND, | ||
}, | ||
}, | ||
contracts: { | ||
// === V2 | ||
ORMPV2: { | ||
abi: ORMPAbiV2, | ||
address: "0x13b2211a7cA45Db2808F6dB05557ce5347e3634e", | ||
network: { | ||
arbitrum: { | ||
startBlock: 217891600, | ||
}, | ||
}, | ||
filter: { | ||
event: [ | ||
"MessageAccepted", | ||
"MessageDispatched", | ||
"MessageAssigned", | ||
"HashImported", | ||
], | ||
}, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
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: { | ||
blast: { | ||
chainId: 81457, | ||
transport: http("https://rpc.blast.io"), | ||
maxRequestsPerSecond: MAX_REQUESTS_PER_SECOND, | ||
}, | ||
}, | ||
contracts: { | ||
// === V2 | ||
ORMPV2: { | ||
abi: ORMPAbiV2, | ||
address: "0x13b2211a7cA45Db2808F6dB05557ce5347e3634e", | ||
network: { | ||
blast: { | ||
startBlock: 4293849, | ||
}, | ||
}, | ||
filter: { | ||
event: [ | ||
"MessageAccepted", | ||
"MessageDispatched", | ||
"MessageAssigned", | ||
"HashImported", | ||
], | ||
}, | ||
}, | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
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: { | ||
crab: { | ||
chainId: 44, | ||
transport: loadBalance([ | ||
http("http://c1.crab-rpc.itering.io:9944/"), | ||
// http("https://hrpc.darwinia.network/crab"), | ||
// http("http://c2.crab-rpc.itering.io:9944/"), | ||
]), | ||
maxRequestsPerSecond: MAX_REQUESTS_PER_SECOND, | ||
}, | ||
}, | ||
contracts: { | ||
// === V2 | ||
ORMPV2: { | ||
abi: ORMPAbiV2, | ||
address: "0x13b2211a7cA45Db2808F6dB05557ce5347e3634e", | ||
network: { | ||
crab: { | ||
startBlock: 2900604, | ||
}, | ||
}, | ||
filter: { | ||
event: [ | ||
"MessageAccepted", | ||
"MessageDispatched", | ||
"MessageAssigned", | ||
"HashImported", | ||
], | ||
}, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import {createConfig} 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: { | ||
darwinia: { | ||
chainId: 46, | ||
transport: http("http://c1.darwinia-rpc.itering.io:9944/"), | ||
// transport: http("https://hrpc.darwinia.network/darwinia"), | ||
maxRequestsPerSecond: MAX_REQUESTS_PER_SECOND, | ||
}, | ||
}, | ||
contracts: { | ||
// === V2 | ||
ORMPV2: { | ||
abi: ORMPAbiV2, | ||
address: "0x13b2211a7cA45Db2808F6dB05557ce5347e3634e", | ||
network: { | ||
darwinia: { | ||
startBlock: 2830100, | ||
}, | ||
}, | ||
filter: { | ||
event: [ | ||
"MessageAccepted", | ||
"MessageDispatched", | ||
"MessageAssigned", | ||
"HashImported", | ||
], | ||
}, | ||
}, | ||
SignaturePub: { | ||
abi: SignaturePubAbi, | ||
address: "0x57aa601a0377f5ab313c5a955ee874f5d495fc92", | ||
network: { | ||
darwinia: { | ||
startBlock: 2849900, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import {createConfig} from "@ponder/core"; | ||
import {http} from "viem"; | ||
|
||
import {ORMPAbi as ORMPAbiV2} from "./abis/v2/ORMPAbi"; | ||
|
||
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: { | ||
ethereum: { | ||
chainId: 1, | ||
// transport: http(`https://eth-mainnet.blastapi.io/${BLAST_API_KEY}`), | ||
transport: http(`https://mainnet.infura.io/v3/${INFURA_API_KEY}`), | ||
|
||
maxRequestsPerSecond: MAX_REQUESTS_PER_SECOND, | ||
}, | ||
}, | ||
contracts: { | ||
// === V2 | ||
ORMPV2: { | ||
abi: ORMPAbiV2, | ||
address: "0x13b2211a7cA45Db2808F6dB05557ce5347e3634e", | ||
network: { | ||
ethereum: { | ||
startBlock: 20009605, | ||
}, | ||
}, | ||
filter: { | ||
event: [ | ||
"MessageAccepted", | ||
"MessageDispatched", | ||
"MessageAssigned", | ||
"HashImported", | ||
], | ||
}, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import {createConfig} from "@ponder/core"; | ||
import {http} from "viem"; | ||
|
||
import {ORMPAbi as ORMPAbiV2} from "./abis/v2/ORMPAbi"; | ||
|
||
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: { | ||
moonbeam: { | ||
chainId: 1284, | ||
transport: http(`https://moonbeam.blastapi.io/${BLAST_API_KEY}`), | ||
maxRequestsPerSecond: MAX_REQUESTS_PER_SECOND, | ||
}, | ||
}, | ||
contracts: { | ||
// === V2 | ||
ORMPV2: { | ||
abi: ORMPAbiV2, | ||
address: "0x13b2211a7cA45Db2808F6dB05557ce5347e3634e", | ||
network: { | ||
moonbeam: { | ||
startBlock: 6294138, | ||
}, | ||
}, | ||
filter: { | ||
event: [ | ||
"MessageAccepted", | ||
"MessageDispatched", | ||
"MessageAssigned", | ||
"HashImported", | ||
], | ||
}, | ||
}, | ||
}, | ||
}); |
Oops, something went wrong.