Update docs
This commit is contained in:
17
scripts/generate/templates/Checkpoints.opts.js
Normal file
17
scripts/generate/templates/Checkpoints.opts.js
Normal file
@ -0,0 +1,17 @@
|
||||
// OPTIONS
|
||||
const VALUE_SIZES = [224, 208, 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)),
|
||||
};
|
||||
Reference in New Issue
Block a user