azimuth-watcher-ts/packages/conditional-star-release-watcher/src/entity/CanManage.ts
Nabarun Gogoi 2640b645bf
Add watcher in eth_call mode for ConditionalStarRelease contract (#8)
* Create watcher in eth_call mode for Conditional Star Release contract

* Add methods for unhandled types in conditional-star-release watcher

* Update readme about unhandled queries

* Remove already supported queries from readme

---------

Co-authored-by: Dhruv Srivastava <dhruvdhs.ds@gmail.com>
2023-04-12 15:28:53 +05:30

34 lines
654 B
TypeScript

//
// Copyright 2021 Vulcanize, Inc.
//
import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm';
@Entity()
@Index(['blockHash', 'contractAddress', '_point', '_who'], { unique: true })
export class CanManage {
@PrimaryGeneratedColumn()
id!: number;
@Column('varchar', { length: 66 })
blockHash!: string;
@Column('integer')
blockNumber!: number;
@Column('varchar', { length: 42 })
contractAddress!: string;
@Column('integer')
_point!: number;
@Column('varchar', { length: 42 })
_who!: string;
@Column('boolean')
value!: boolean;
@Column('text', { nullable: true })
proof!: string;
}