-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from Giveth/op-mainnet
Optimism Mainnet config
- Loading branch information
Showing
14 changed files
with
84 additions
and
24 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
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
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,5 @@ | ||
src/db/migrations/ | ||
abi/ | ||
builds/ | ||
lib/ | ||
model/ |
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,4 @@ | ||
{ | ||
"singleQuote": false, | ||
"trailingComma": "es5" | ||
} |
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Assets | ||
# Assets | ||
|
||
`assets` is the designated folder for any additional files to be used by the squid, for example a static data file. The folder is added by default to `Dockerfile` and is kept when the squid is deployed to the Aquairum. | ||
`assets` is the designated folder for any additional files to be used by the squid, for example a static data file. The folder is added by default to `Dockerfile` and is kept when the squid is deployed to the Aquairum. |
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -1,17 +1,31 @@ | ||
import { assertNotNull } from "@subsquid/evm-processor"; | ||
|
||
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; | ||
|
||
const IS_PRODUCTION = SQUID_NETWORK === "optimism-mainnet"; | ||
|
||
export const EAS_CONTRACT_ADDRESS = assertNotNull( | ||
process.env.EAS_CONTRACT_ADDRESS | ||
IS_PRODUCTION | ||
? "0x4200000000000000000000000000000000000021" | ||
: "0xC2679fBD37d54388Ce493F1DB75320D236e1815e" | ||
); | ||
export const SCHEMA_CONTRACT_ADDRESS = assertNotNull( | ||
process.env.SCHEMA_CONTRACT_ADDRESS | ||
IS_PRODUCTION | ||
? "0x4200000000000000000000000000000000000020" | ||
: "0x0a7E2Ff54e76B8E6659aedc9103FB21c038050D0" | ||
); | ||
|
||
export const PROJECT_VERIFY_SCHEMA = assertNotNull( | ||
process.env.PROJECT_VERIFY_ATTESTATION_SCHEMA | ||
).toLocaleLowerCase(); | ||
|
||
export const START_BLOCK = parseInt(process.env.START_BLOCK || "5815457"); | ||
export const LOOKUP_ARCHIVE = IS_PRODUCTION | ||
? "https://v2.archive.subsquid.io/network/optimism-mainnet" | ||
: "https://v2.archive.subsquid.io/network/ethereum-sepolia"; | ||
|
||
export const START_BLOCK = Number.parseInt( | ||
process.env.START_BLOCK || (IS_PRODUCTION ? "119837389" : "5815457") | ||
); | ||
|
||
export const IMPORT_PROJECT_CRON_SCHEDULE = | ||
process.env.IMPORT_PROJECT_CRON_SCHEDULE || "0 0 * * *"; // UTC |
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
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