diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-18 02:27:38 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-13 01:11:46 +0800 |
commit | eb1317a59abec368f3855eb3690e40d8db2a8984 (patch) | |
tree | c612db4cc6287a8b1f95d3cd458f332d68853adf /packages/pipeline/src/models/transaction.ts | |
parent | 98325e1cfb4f6c732728fe2943895fad2cb03be5 (diff) | |
download | dexon-0x-contracts-eb1317a59abec368f3855eb3690e40d8db2a8984.tar.gz dexon-0x-contracts-eb1317a59abec368f3855eb3690e40d8db2a8984.tar.zst dexon-0x-contracts-eb1317a59abec368f3855eb3690e40d8db2a8984.zip |
Rebase pipeline branch off development
Diffstat (limited to 'packages/pipeline/src/models/transaction.ts')
-rw-r--r-- | packages/pipeline/src/models/transaction.ts | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/pipeline/src/models/transaction.ts b/packages/pipeline/src/models/transaction.ts new file mode 100644 index 000000000..715cc9480 --- /dev/null +++ b/packages/pipeline/src/models/transaction.ts @@ -0,0 +1,36 @@ +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 }; |