@poprank/rankings
Advanced tools
Comparing version 1.1.10 to 1.1.11
@@ -26,3 +26,3 @@ "use strict"; | ||
'ens': 10000, | ||
'100kclub': 100000 | ||
'100kclub': 100000, | ||
}; | ||
@@ -246,2 +246,34 @@ exports.DAYS_IN_MONTH = { | ||
} | ||
// Square number | ||
var isSquare = Number.isInteger(Math.pow(id, 1 / 2)); | ||
if (isSquare) { | ||
outTraits.push({ | ||
value: 'Square (^2)', | ||
category: 'Meta', | ||
typeValue: 'Special', | ||
displayType: null, | ||
}); | ||
} | ||
// Cube number | ||
var isCube = Number.isInteger(Math.pow(id, 1 / 3)); | ||
if (isCube) { | ||
outTraits.push({ | ||
value: 'Cube (^3)', | ||
category: 'Meta', | ||
typeValue: 'Special', | ||
displayType: null, | ||
}); | ||
} | ||
// Was the ENS registered before the punk mint date | ||
// In future will attempt to look at first mint date instead | ||
var registrationDate = nftTraits.find(function (t) { return t.typeValue === 'Registration Date'; }); | ||
var isPrePunk = registrationDate && (new Date(+registrationDate.value * 1000)) < new Date('2017-06-23T00:00:00.000Z'); | ||
if (isPrePunk) { | ||
outTraits.push({ | ||
value: 'Pre Punk', | ||
category: 'Meta', | ||
typeValue: 'Special', | ||
displayType: null, | ||
}); | ||
} | ||
return outTraits; | ||
@@ -248,0 +280,0 @@ }; |
{ | ||
"name": "@poprank/rankings", | ||
"version": "1.1.10", | ||
"version": "1.1.11", | ||
"description": "PopRank's NFT rarity and aesthetic ranking logic", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59441
829