-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add indexing of token properties in erc20-watcher and fix smoke-tests (…
…#4) * Add indexing of token properties in erc20-watcher * Fix uni-info-watcher smoke-test
- Loading branch information
1 parent
6c9cce4
commit 6b8c73d
Showing
11 changed files
with
301 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// Copyright 2022 Vulcanize, Inc. | ||
// | ||
|
||
import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; | ||
|
||
@Entity() | ||
@Index(['blockHash', 'token'], { unique: true }) | ||
export class Decimals { | ||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@Column('varchar', { length: 66 }) | ||
blockHash!: string; | ||
|
||
@Column('integer') | ||
blockNumber!: number; | ||
|
||
@Column('varchar', { length: 42 }) | ||
token!: string; | ||
|
||
@Column('integer') | ||
value!: number; | ||
|
||
@Column('text', { nullable: true }) | ||
proof!: string; | ||
} |
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,27 @@ | ||
// | ||
// Copyright 2022 Vulcanize, Inc. | ||
// | ||
|
||
import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; | ||
|
||
@Entity() | ||
@Index(['blockHash', 'token'], { unique: true }) | ||
export class Name { | ||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@Column('varchar', { length: 66 }) | ||
blockHash!: string; | ||
|
||
@Column('integer') | ||
blockNumber!: number; | ||
|
||
@Column('varchar', { length: 42 }) | ||
token!: string; | ||
|
||
@Column('varchar') | ||
value!: string; | ||
|
||
@Column('text', { nullable: true }) | ||
proof!: string; | ||
} |
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,27 @@ | ||
// | ||
// Copyright 2022 Vulcanize, Inc. | ||
// | ||
|
||
import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; | ||
|
||
@Entity() | ||
@Index(['blockHash', 'token'], { unique: true }) | ||
export class Symbol { | ||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@Column('varchar', { length: 66 }) | ||
blockHash!: string; | ||
|
||
@Column('integer') | ||
blockNumber!: number; | ||
|
||
@Column('varchar', { length: 42 }) | ||
token!: string; | ||
|
||
@Column('varchar') | ||
value!: string; | ||
|
||
@Column('text', { nullable: true }) | ||
proof!: string; | ||
} |
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
Oops, something went wrong.