Update docs
This commit is contained in:
12
scripts/generate/templates/EnumerableSet.opts.js
Normal file
12
scripts/generate/templates/EnumerableSet.opts.js
Normal file
@ -0,0 +1,12 @@
|
||||
const { capitalize } = require('../../helpers');
|
||||
|
||||
const mapType = str => (str == 'uint256' ? 'Uint' : capitalize(str));
|
||||
|
||||
const formatType = type => ({
|
||||
name: `${mapType(type)}Set`,
|
||||
type,
|
||||
});
|
||||
|
||||
const TYPES = ['bytes32', 'address', 'uint256'].map(formatType);
|
||||
|
||||
module.exports = { TYPES, formatType };
|
||||
Reference in New Issue
Block a user