diff options
author | Jake Ellowitz <jake.ellowitz@gmail.com> | 2018-11-14 01:38:23 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:48 +0800 |
commit | 599a3f9b9614be6db1c9979514f3acca3f48bd05 (patch) | |
tree | 938917dad9c4bb32b65c56f443dcafe5e069f6f5 /packages/pipeline/src | |
parent | 688d277b30b287f66f0dbd49f2a23cab8b256219 (diff) | |
download | dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.tar dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.tar.gz dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.tar.bz2 dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.tar.lz dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.tar.xz dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.tar.zst dexon-sol-tools-599a3f9b9614be6db1c9979514f3acca3f48bd05.zip |
Mapping dev schema to initial migration
Diffstat (limited to 'packages/pipeline/src')
-rw-r--r-- | packages/pipeline/src/entities/exchange_cancel_up_to_event.ts | 2 | ||||
-rw-r--r-- | packages/pipeline/src/entities/index.ts | 1 | ||||
-rw-r--r-- | packages/pipeline/src/entities/token_on_chain_metadata.ts | 16 |
3 files changed, 18 insertions, 1 deletions
diff --git a/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts b/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts index 891550050..bc3bab6bb 100644 --- a/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts +++ b/packages/pipeline/src/entities/exchange_cancel_up_to_event.ts @@ -1,6 +1,6 @@ import { Column, Entity, PrimaryColumn } from 'typeorm'; -@Entity({ name: 'exchange_cancel_up_to_event' }) +@Entity({ name: 'exchange_cancel_up_to_events' }) export class ExchangeCancelUpToEvent { @PrimaryColumn({ name: 'contract_address' }) public contractAddress!: string; diff --git a/packages/pipeline/src/entities/index.ts b/packages/pipeline/src/entities/index.ts index 4cd8d9da2..6e024f280 100644 --- a/packages/pipeline/src/entities/index.ts +++ b/packages/pipeline/src/entities/index.ts @@ -5,3 +5,4 @@ export { ExchangeFillEvent } from './exchange_fill_event'; export { Relayer } from './relayer'; export { SraOrder } from './sra_order'; export { Transaction } from './transaction'; +export { TokenOnChainMetadata } from './token_on_chain_metadata'; diff --git a/packages/pipeline/src/entities/token_on_chain_metadata.ts b/packages/pipeline/src/entities/token_on_chain_metadata.ts new file mode 100644 index 000000000..fc21d0aed --- /dev/null +++ b/packages/pipeline/src/entities/token_on_chain_metadata.ts @@ -0,0 +1,16 @@ +import { Column, Entity, PrimaryColumn } from 'typeorm'; + +@Entity({ name: 'token_on_chain_metadata' }) +export class TokenOnChainMetadata { + @PrimaryColumn({ type: 'nvarchar', nullable: false }) + public address!: string; + + @Column({ type: 'integer', nullable: false }) + public decimals!: number; + + @Column({ type: 'nvarchar', nullable: false }) + public symbol!: string; + + @Column({ type: 'nvarchar', nullable: false }) + public name!: string; +}
\ No newline at end of file |