Closed mateodaza closed 1 month ago
This update introduces several key changes across multiple files. It adds a new environment variable SQUID_NETWORK
to manage different environments, modifies contract addresses and URLs based on the environment, and updates project-related constants. The project name in package.json
is changed, and a new Prettier script is added. Additionally, various files have been adjusted for improved consistency, and some migrations now include conditional logic based on SQUID_NETWORK
.
File/Path | Change Summary |
---|---|
.env.template |
Added SQUID_NETWORK variable, moved some variables to constants. |
.env.test |
Added SQUID_NETWORK variable with value optimism-mainnet . |
package.json |
Changed project name, added prettier:write script. |
src/constants.ts |
Updated constants to use SQUID_NETWORK for environment-specific settings. |
src/processor.ts |
Updated import paths and added LOOKUP_ARCHIVE and START_BLOCK constants. |
.prettierignore |
Added directories to ignore list. |
.prettierrc.json |
Updated configuration to use double quotes and set trailing comma style to "es5". |
assets/README.MD |
Corrected a typo in a folder name. |
src/features/import-projects/rpgf/index.ts |
Removed getDataSource function import. |
add-organisation.js |
main() function now accepts an additional network parameter. |
db/create-organisation-add-migration.js |
Added network parameter and conditional checks based on SQUID_NETWORK . |
db/migrations/1725254645149-AddTrace.js |
Added conditional checks based on SQUID_NETWORK before executing queries. |
db/migrations/1727410589775-AddGiveth Verification Team.js |
Updated class name and added conditional checks based on SQUID_NETWORK before executing queries. |
In the land of code, where bytes do play,
A new dawn breaks with changes today.
Constants move and networks align,
Optimism and tests, all in fine line.
Prettier scripts and migrations anew,
Our project now named, a fresh debut.
With every tweak, we dance in delight,
For code's a canvas, painted just right.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@mateodaza @MohammadPCh @divine-comedian This can be a separate branch (Instead of merging to develop, as this is a different configuration (For OP).
Merging this now will deploy those changes into the already running instance for ETH Sepolia
WDYT?
@mhmdksh thats perfect. I like creating PRs to easily check on changes - I agree with you! Let's do that
You can delete this after we're done
PS. Check the env test file and see the vars I removed and the one I added
@mateodaza I tested the op mainnet env on my machine and it was ok.
Summary by CodeRabbit
New Features
SQUID_NETWORK
environment variable to support network-specific configurations.prettier:write
for formatting TypeScript files.Bug Fixes
assets/README.MD
file.Refactor
package.json
from "squid-evm-template" to "devouch-squid-backend".Chores
SQUID_NETWORK
environment variable.