Closed aminlatifi closed 3 months ago
The recent changes involve a major overhaul of the project, transitioning it from an EVM squid indexer to a decentralized application called Devouch built on Subsquid. Key updates include renaming files, adding new configuration schemas, enhancing database migrations, and updating scripts and dependencies. The project now focuses on vouching credibility through the new Devouch platform, with comprehensive updates to the README, database migration scripts, and configuration files.
File(s) | Change Summary |
---|---|
.gitignore |
Renamed add-organisation.js to org-config.jsonc . |
README.md |
Updated project description, instructions for getting started, and adding a new organization. |
db/create-organisation-add-migration.js |
Added a startBlock parameter and updated the SQL query to include start_block column. |
db/migrations/1718184531403-Data.js |
Introduced migration to add start_block column to organisation table. |
org-config.schema.json , org-config.template.jsonc |
Added JSON schema and template for organization configuration. |
package.json |
Added new script for adding organizations and included jsonc-parser dependency. |
schema.graphql |
Added startBlock field to Organisation type. |
src/.../databaseHelper.ts , src/.../modelHelper.ts |
Refactored functions to use getEntityManagerByContext . |
src/features/import-projects/.../constants.ts |
Added import for SourceConfig and updated API URL constants. |
src/features/import-projects/helpers.ts , types.ts |
Added SourceConfig import and exported SourceConfig interface. |
src/main.ts |
Refactored to use Processor.getInstance() for obtaining Processor instance. |
src/model/generated/organisation.model.ts |
Added startBlock property to Organisation class. |
src/processor.ts |
Introduced Processor class with getInstance method for EvmBatchProcessor initialization. |
src/test/utils.ts |
Removed unused imports and retained relevant ones. |
sequenceDiagram
participant User
participant DevouchApp
participant Database
participant Processor
User->>DevouchApp: Add Organization
DevouchApp->>Database: Insert organization with start_block
DevouchApp->>Processor: Initialize Processor
Processor->>Database: Fetch organization data
Processor->>User: Confirmation and details
In the code's garden, changes bloom, From EVM to Subsquid's room. Organizations take their place, With start blocks in the database. A rabbit hops with joyful cheer, For Devouch's dawn is finally here! πΈπ
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?
Summary by CodeRabbit
New Features
startBlock
field in theOrganisation
type.Bug Fixes
start_block
column.Documentation
Refactor
add-organisation.js
toorg-config.jsonc
.Chores
package.json
.