-
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.
feat: add support for publishing batch announcements for non-DSNP sch…
…emas (#720) # Description - asset controller modified to allow upload of application/vnd.apache.parquet assets - content controller endpoint added: - /v2/content/batchAnnouncement endpoint takes schemaId & referenceId and enqueues a job to post the batch file to the chain - "worker" app adds processing to take enqueued job and post to the chain Closes #719
- Loading branch information
1 parent
db1b61a
commit e2e077b
Showing
15 changed files
with
263 additions
and
42 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
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
7 changes: 7 additions & 0 deletions
7
apps/content-publishing-worker/src/interfaces/batch-announcer.job.interface.ts
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,7 +1,14 @@ | ||
import { IBatchFile } from '#types/interfaces'; | ||
import { Announcement } from '#types/interfaces/content-publishing/dsnp'; | ||
|
||
export interface IBatchAnnouncerJobData { | ||
batchId: string; | ||
schemaId: number; | ||
announcements: Announcement[]; | ||
} | ||
|
||
export type IBatchAnnouncerJob = IBatchAnnouncerJobData | IBatchFile; | ||
|
||
export function isExistingBatch(data: IBatchAnnouncerJob): data is IBatchFile { | ||
return 'referenceId' in data; | ||
} |
Large diffs are not rendered by default.
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
Oops, something went wrong.