EnumerableSet.opts.js 283 B

12345678910
  1. const mapType = str => (str == 'uint256' ? 'Uint' : `${str.charAt(0).toUpperCase()}${str.slice(1)}`);
  2. const formatType = type => ({
  3. name: `${mapType(type)}Set`,
  4. type,
  5. });
  6. const TYPES = ['bytes32', 'address', 'uint256'].map(formatType);
  7. module.exports = { TYPES, formatType };