aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/models/transaction.ts
blob: 715cc9480d9d5ea01e2c7c928f060687eb5876ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 };