-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement fill state to create state in uni-info-watcher (#369)
* Implement fill state to create state in uni-info-watcher * Add inspect-cid and watch-contract CLIs * Use util indexer and database from watcher-ts * Implement CLI to fetch and update block CIDs * Expose entity fields in GQL query for verifying state in comapre CLI * Use watcher-ts packages from gitea registry * Remove cerc-io packages to run locally with yarn link
- Loading branch information
Showing
117 changed files
with
2,765 additions
and
10,382 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@cerc-io:registry=https://git.vdb.to/api/packages/cerc-io/npm/ |
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
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,36 @@ | ||
// | ||
// Copyright 2022 Vulcanize, Inc. | ||
// | ||
|
||
import { Entity, PrimaryGeneratedColumn, Column, Index, ManyToOne } from 'typeorm'; | ||
|
||
import { StateKind } from '@cerc-io/util'; | ||
|
||
import { BlockProgress } from './BlockProgress'; | ||
|
||
@Entity() | ||
@Index(['cid'], { unique: true }) | ||
@Index(['block', 'contractAddress']) | ||
@Index(['block', 'contractAddress', 'kind'], { unique: true }) | ||
export class IPLDBlock { | ||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@ManyToOne(() => BlockProgress, { onDelete: 'CASCADE' }) | ||
block!: BlockProgress; | ||
|
||
@Column('varchar', { length: 42 }) | ||
contractAddress!: string; | ||
|
||
@Column('varchar') | ||
cid!: string; | ||
|
||
@Column({ | ||
type: 'enum', | ||
enum: StateKind | ||
}) | ||
kind!: StateKind; | ||
|
||
@Column('bytea') | ||
data!: Buffer; | ||
} |
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,20 @@ | ||
// | ||
// Copyright 2022 Vulcanize, Inc. | ||
// | ||
|
||
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'; | ||
|
||
@Entity() | ||
export class IpldStatus { | ||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@Column('integer') | ||
latestHooksBlockNumber!: number; | ||
|
||
@Column('integer', { nullable: true }) | ||
latestCheckpointBlockNumber!: number; | ||
|
||
@Column('integer', { nullable: true }) | ||
latestIPFSBlockNumber!: number; | ||
} |
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
Oops, something went wrong.