From d1026a64ba670a7c46ff3015cf907aee5a562de8 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Wed, 19 Sep 2018 10:51:12 -0700 Subject: Remove old code. Create function for getting contract events via etherscan --- packages/pipeline/src/models/transaction.ts | 36 ----------------------------- 1 file changed, 36 deletions(-) delete mode 100644 packages/pipeline/src/models/transaction.ts (limited to 'packages/pipeline/src/models/transaction.ts') diff --git a/packages/pipeline/src/models/transaction.ts b/packages/pipeline/src/models/transaction.ts deleted file mode 100644 index 715cc9480..000000000 --- a/packages/pipeline/src/models/transaction.ts +++ /dev/null @@ -1,36 +0,0 @@ -const transaction = { - tableName: 'transactions', - tableProperties: { - txn_hash: { - type: 'char(66)', - }, - block_hash: { - type: 'char(66)', - }, - block_number: { - type: 'bigint', - }, - gas_used: { - type: 'varchar', - }, - gas_price: { - type: 'varchar', - }, - method_id: { - type: 'char(10)', - }, - salt: { - type: 'varchar', - }, - }, -}; -const logToTransactionSchemaMapping: any = { - hash: 'txn_hash', - gas: 'gas_used', - gasPrice: 'gas_price', - blockHash: 'block_hash', - blockNumber: 'block_number', - method_id: 'method_id', - salt: 'salt', -}; -export { transaction, logToTransactionSchemaMapping }; -- cgit v1.2.3