aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/models/block.ts
blob: a81cdb293a61bf6b7c36d79bcc3f7d25f543028d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const block = {
    tableName: 'blocks',
    tableProperties: {
        id: {
            type: 'key',
        },
        timestamp: {
            type: 'timestamp',
            required: true,
        },
        block_number: {
            type: 'bigint',
            required: true,
        },
    },
};
const logToBlockSchemaMapping: any = {
    number: 'block_number',
    hash: 'block_hash',
    timestamp: 'timestamp',
};
export { block, logToBlockSchemaMapping };