* Add APGL license * Set up pre-commit lint using husky * Use husky version compliant with watcher-ts * Tested azimuth-watcher with basic array support * Tested censures-watcher with basic array support * Tested claims-watcher with basic array support * Tested conditional-star-release-watcher with basic array support * Tested linear-star-release-watcher with basic array support * Tested polls-watcher with basic array support * Tested ecliptic-watcher with basic array support * delegated-sending-watcher with basic array support * Update watcher readme with unsupported queries * Temporarily disable pre-commit lint --------- Co-authored-by: Dhruv Srivastava <dhruvdhs.ds@gmail.com>
32 lines
728 B
TypeScript
32 lines
728 B
TypeScript
//
|
|
// Copyright 2021 Vulcanize, Inc.
|
|
//
|
|
|
|
import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm';
|
|
import { bigintTransformer } from '@cerc-io/util';
|
|
|
|
@Entity()
|
|
@Index(['blockHash', 'contractAddress', '_sponsor'], { unique: true })
|
|
export class GetEscapeRequestsCount {
|
|
@PrimaryGeneratedColumn()
|
|
id!: number;
|
|
|
|
@Column('varchar', { length: 66 })
|
|
blockHash!: string;
|
|
|
|
@Column('integer')
|
|
blockNumber!: number;
|
|
|
|
@Column('varchar', { length: 42 })
|
|
contractAddress!: string;
|
|
|
|
@Column('numeric', { transformer: bigintTransformer })
|
|
_sponsor!: bigint;
|
|
|
|
@Column('numeric', { transformer: bigintTransformer })
|
|
value!: bigint;
|
|
|
|
@Column('text', { nullable: true })
|
|
proof!: string;
|
|
}
|