Co-authored-by: Ernesto García <ernestognw@gmail.com> Co-authored-by: Francisco <fg@frang.io>
18 lines
406 B
JavaScript
18 lines
406 B
JavaScript
// OPTIONS
|
|
const VALUE_SIZES = [224, 160];
|
|
|
|
const defaultOpts = size => ({
|
|
historyTypeName: `Trace${size}`,
|
|
checkpointTypeName: `Checkpoint${size}`,
|
|
checkpointFieldName: '_checkpoints',
|
|
keyTypeName: `uint${256 - size}`,
|
|
keyFieldName: '_key',
|
|
valueTypeName: `uint${size}`,
|
|
valueFieldName: '_value',
|
|
});
|
|
|
|
module.exports = {
|
|
VALUE_SIZES,
|
|
OPTS: VALUE_SIZES.map(size => defaultOpts(size)),
|
|
};
|