aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-09 04:35:59 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-13 01:15:10 +0800
commit4fa4f13813a0b41013bc7acc60101ccae175edff (patch)
tree806ec03841ec196c332ab01cf92f370d65fa8afb /packages/pipeline
parentf5f01c0c3e37c56136e7f8fb699304baa7eb5bf6 (diff)
downloaddexon-sol-tools-4fa4f13813a0b41013bc7acc60101ccae175edff.tar
dexon-sol-tools-4fa4f13813a0b41013bc7acc60101ccae175edff.tar.gz
dexon-sol-tools-4fa4f13813a0b41013bc7acc60101ccae175edff.tar.bz2
dexon-sol-tools-4fa4f13813a0b41013bc7acc60101ccae175edff.tar.lz
dexon-sol-tools-4fa4f13813a0b41013bc7acc60101ccae175edff.tar.xz
dexon-sol-tools-4fa4f13813a0b41013bc7acc60101ccae175edff.tar.zst
dexon-sol-tools-4fa4f13813a0b41013bc7acc60101ccae175edff.zip
Rename Transaction.ts to transaction.ts
Rename Relayer.ts to relayer.ts Rename Block.ts to block.ts
Diffstat (limited to 'packages/pipeline')
-rw-r--r--packages/pipeline/src/entities/Block.ts10
-rw-r--r--packages/pipeline/src/entities/Relayer.ts23
-rw-r--r--packages/pipeline/src/entities/Transaction.ts16
3 files changed, 0 insertions, 49 deletions
diff --git a/packages/pipeline/src/entities/Block.ts b/packages/pipeline/src/entities/Block.ts
deleted file mode 100644
index 5bd51f3d2..000000000
--- a/packages/pipeline/src/entities/Block.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { Column, Entity, PrimaryColumn } from 'typeorm';
-
-@Entity({ name: 'blocks' })
-export class Block {
- @PrimaryColumn() public hash!: string;
- @PrimaryColumn() public number!: number;
-
- @Column({ name: 'unix_timestamp_seconds' })
- public unixTimestampSeconds!: number;
-}
diff --git a/packages/pipeline/src/entities/Relayer.ts b/packages/pipeline/src/entities/Relayer.ts
deleted file mode 100644
index 94b5232a8..000000000
--- a/packages/pipeline/src/entities/Relayer.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { Column, Entity, PrimaryColumn } from 'typeorm';
-
-@Entity({ name: 'relayers' })
-export class Relayer {
- @PrimaryColumn() public uuid!: string;
-
- @Column() public name!: string;
- @Column() public url!: string;
- @Column({ nullable: true, type: String, name: 'sra_http_endpoint' })
- public sraHttpEndpoint!: string | null;
- @Column({ nullable: true, type: String, name: 'sra_ws_endpoint' })
- public sraWsEndpoint!: string | null;
- @Column({ nullable: true, type: String, name: 'app_url' })
- public appUrl!: string | null;
-
- // TODO(albrow): Add exchange contract or protocol version?
- // TODO(albrow): Add network ids for addresses?
-
- @Column({ type: 'varchar', array: true, name: 'fee_recipient_addresses' })
- public feeRecipientAddresses!: string[];
- @Column({ type: 'varchar', array: true, name: 'taker_addresses' })
- public takerAddresses!: string[];
-}
diff --git a/packages/pipeline/src/entities/Transaction.ts b/packages/pipeline/src/entities/Transaction.ts
deleted file mode 100644
index eb2883fda..000000000
--- a/packages/pipeline/src/entities/Transaction.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { Column, Entity, PrimaryColumn } from 'typeorm';
-
-@Entity({ name: 'transactions' })
-export class Transaction {
- @PrimaryColumn({ name: 'transaction_hash' })
- public transactionHash!: string;
- @PrimaryColumn({ name: 'block_hash' })
- public blockHash!: string;
- @PrimaryColumn({ name: 'block_number' })
- public blockNumber!: number;
-
- @Column({ type: 'bigint', name: 'gas_used' })
- public gasUsed!: number;
- @Column({ type: 'bigint', name: 'gas_price' })
- public gasPrice!: number;
-}