diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-20 01:51:12 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-13 01:11:52 +0800 |
commit | c46d2f8f9d4e632352637376b2556101bccad748 (patch) | |
tree | 9a5dbfd6df21ac523aa9cbb9e0a9a2d0242cd64c /packages/pipeline/src/models/transaction.ts | |
parent | eb1317a59abec368f3855eb3690e40d8db2a8984 (diff) | |
download | dexon-sol-tools-c46d2f8f9d4e632352637376b2556101bccad748.tar dexon-sol-tools-c46d2f8f9d4e632352637376b2556101bccad748.tar.gz dexon-sol-tools-c46d2f8f9d4e632352637376b2556101bccad748.tar.bz2 dexon-sol-tools-c46d2f8f9d4e632352637376b2556101bccad748.tar.lz dexon-sol-tools-c46d2f8f9d4e632352637376b2556101bccad748.tar.xz dexon-sol-tools-c46d2f8f9d4e632352637376b2556101bccad748.tar.zst dexon-sol-tools-c46d2f8f9d4e632352637376b2556101bccad748.zip |
Remove old code. Create function for getting contract events via etherscan
Diffstat (limited to 'packages/pipeline/src/models/transaction.ts')
-rw-r--r-- | packages/pipeline/src/models/transaction.ts | 36 |
1 files changed, 0 insertions, 36 deletions
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 }; |