Repository navigation
Orion-v4.4.0
Affected components:
- Scripts:
- (A)
scripts/generateMockData.ts - (A)
scripts/seedDb.ts
- (A)
Changes
- Added a script to generate mock data for the PostgreSQL database (
npm run generate:mock-data). It generates an example record for each Subsquid entity (defined in the input schema) and saves it to a JSON file. - Added a
db:seedscript (npm run db:seed) which populates the database based on the input data from a JSON file. The provided JSON file must be in the format that matches the one generated bynpm run generate:mock-data.
Full Changelog: 4.3.0...4.4.0