Files
contract/lib_openzeppelin_contracts/scripts/generate/templates/Checkpoints.opts.js
dexorder 25def69c66 dexorder
2024-10-17 02:42:28 -04:00

18 lines
411 B
JavaScript

// 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)),
};