@xyo-network/crypto-nft-collection-diviner-score-plugin 2.74.5 → 2.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/Diviner.cjs +143 -0
- package/dist/browser/Diviner.cjs.map +1 -0
- package/dist/browser/Diviner.d.mts.map +1 -0
- package/dist/browser/Diviner.d.ts.map +1 -0
- package/dist/browser/Diviner.js +126 -0
- package/dist/browser/Diviner.js.map +1 -0
- package/dist/browser/Plugin.cjs +159 -0
- package/dist/browser/Plugin.cjs.map +1 -0
- package/dist/browser/Plugin.d.mts.map +1 -0
- package/dist/browser/Plugin.d.ts.map +1 -0
- package/dist/browser/Plugin.js +142 -0
- package/dist/browser/Plugin.js.map +1 -0
- package/dist/{index.js → browser/index.cjs} +1 -7
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.mts.map +1 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/{index.mjs → browser/index.js} +1 -1
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lib/index.cjs +115 -0
- package/dist/browser/lib/index.cjs.map +1 -0
- package/dist/browser/lib/index.d.mts.map +1 -0
- package/dist/browser/lib/index.d.ts.map +1 -0
- package/dist/browser/lib/index.js +92 -0
- package/dist/browser/lib/index.js.map +1 -0
- package/dist/browser/lib/rating/analyzeNftCollection.cjs +115 -0
- package/dist/browser/lib/rating/analyzeNftCollection.cjs.map +1 -0
- package/dist/browser/lib/rating/analyzeNftCollection.d.mts.map +1 -0
- package/dist/browser/lib/rating/analyzeNftCollection.d.ts.map +1 -0
- package/dist/browser/lib/rating/analyzeNftCollection.js +92 -0
- package/dist/browser/lib/rating/analyzeNftCollection.js.map +1 -0
- package/dist/browser/lib/rating/criteria/index.cjs +101 -0
- package/dist/browser/lib/rating/criteria/index.cjs.map +1 -0
- package/dist/browser/lib/rating/criteria/index.d.mts.map +1 -0
- package/dist/browser/lib/rating/criteria/index.d.ts.map +1 -0
- package/dist/browser/lib/rating/criteria/index.js +78 -0
- package/dist/browser/lib/rating/criteria/index.js.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/index.cjs +97 -0
- package/dist/browser/lib/rating/criteria/scoring/index.cjs.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/index.d.mts.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/index.d.ts.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/index.js +74 -0
- package/dist/browser/lib/rating/criteria/scoring/index.js.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/index.cjs +76 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/index.cjs.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/index.d.mts.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/index.d.ts.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/index.js +53 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/index.js.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/metadata.cjs +76 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/metadata.cjs.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/metadata.d.mts.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/metadata.d.ts.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/metadata.js +53 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/metadata.js.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.cjs +42 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.cjs.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.d.mts.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.d.ts.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.js +21 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.js.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.cjs +46 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.cjs.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.d.mts.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.d.ts.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.js +25 -0
- package/dist/browser/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.js.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/total.cjs +44 -0
- package/dist/browser/lib/rating/criteria/scoring/total.cjs.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/total.d.mts.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/total.d.ts.map +1 -0
- package/dist/browser/lib/rating/criteria/scoring/total.js +23 -0
- package/dist/browser/lib/rating/criteria/scoring/total.js.map +1 -0
- package/dist/browser/lib/rating/index.cjs +115 -0
- package/dist/browser/lib/rating/index.cjs.map +1 -0
- package/dist/browser/lib/rating/index.d.mts.map +1 -0
- package/dist/browser/lib/rating/index.d.ts.map +1 -0
- package/dist/browser/lib/rating/index.js +92 -0
- package/dist/browser/lib/rating/index.js.map +1 -0
- package/dist/node/Diviner.d.mts +11 -0
- package/dist/node/Diviner.d.mts.map +1 -0
- package/dist/node/Diviner.d.ts +11 -0
- package/dist/node/Diviner.d.ts.map +1 -0
- package/dist/node/Diviner.js +55 -0
- package/dist/node/Diviner.js.map +1 -0
- package/dist/node/Diviner.mjs +35 -0
- package/dist/node/Diviner.mjs.map +1 -0
- package/dist/node/Plugin.d.mts +50 -0
- package/dist/node/Plugin.d.mts.map +1 -0
- package/dist/node/Plugin.d.ts +50 -0
- package/dist/node/Plugin.d.ts.map +1 -0
- package/dist/node/Plugin.js +41 -0
- package/dist/node/Plugin.js.map +1 -0
- package/dist/node/Plugin.mjs +17 -0
- package/dist/node/Plugin.mjs.map +1 -0
- package/dist/node/index.d.mts +6 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.d.ts +6 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +36 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/index.mjs +9 -0
- package/dist/node/index.mjs.map +1 -0
- package/dist/node/lib/index.d.mts +2 -0
- package/dist/node/lib/index.d.mts.map +1 -0
- package/dist/node/lib/index.d.ts +2 -0
- package/dist/node/lib/index.d.ts.map +1 -0
- package/dist/node/lib/index.js +23 -0
- package/dist/node/lib/index.js.map +1 -0
- package/dist/node/lib/index.mjs +2 -0
- package/dist/node/lib/index.mjs.map +1 -0
- package/dist/node/lib/rating/analyzeNftCollection.d.mts +9 -0
- package/dist/node/lib/rating/analyzeNftCollection.d.mts.map +1 -0
- package/dist/node/lib/rating/analyzeNftCollection.d.ts +9 -0
- package/dist/node/lib/rating/analyzeNftCollection.d.ts.map +1 -0
- package/dist/node/lib/rating/analyzeNftCollection.js +41 -0
- package/dist/node/lib/rating/analyzeNftCollection.js.map +1 -0
- package/dist/node/lib/rating/analyzeNftCollection.mjs +17 -0
- package/dist/node/lib/rating/analyzeNftCollection.mjs.map +1 -0
- package/dist/node/lib/rating/criteria/index.d.mts +6 -0
- package/dist/node/lib/rating/criteria/index.d.mts.map +1 -0
- package/dist/node/lib/rating/criteria/index.d.ts +6 -0
- package/dist/node/lib/rating/criteria/index.d.ts.map +1 -0
- package/dist/node/lib/rating/criteria/index.js +33 -0
- package/dist/node/lib/rating/criteria/index.js.map +1 -0
- package/dist/node/lib/rating/criteria/index.mjs +9 -0
- package/dist/node/lib/rating/criteria/index.mjs.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/index.d.mts +3 -0
- package/dist/node/lib/rating/criteria/scoring/index.d.mts.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/index.d.ts +3 -0
- package/dist/node/lib/rating/criteria/scoring/index.d.ts.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/index.js +25 -0
- package/dist/node/lib/rating/criteria/scoring/index.js.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/index.mjs +3 -0
- package/dist/node/lib/rating/criteria/scoring/index.mjs.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/index.d.mts +2 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/index.d.mts.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/index.d.ts +2 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/index.d.ts.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/index.js +23 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/index.js.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/index.mjs +2 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/index.mjs.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/metadata.d.mts +9 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/metadata.d.mts.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/metadata.d.ts +9 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/metadata.d.ts.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/metadata.js +39 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/metadata.js.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/metadata.mjs +14 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/metadata.mjs.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.d.mts +4 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.d.mts.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.d.ts +4 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.d.ts.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.js +44 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.js.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.mjs +20 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.mjs.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.d.mts +24 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.d.mts.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.d.ts +24 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.d.ts.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.js +48 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.js.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.mjs +24 -0
- package/dist/node/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.mjs.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/total.d.mts +16 -0
- package/dist/node/lib/rating/criteria/scoring/total.d.mts.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/total.d.ts +16 -0
- package/dist/node/lib/rating/criteria/scoring/total.d.ts.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/total.js +46 -0
- package/dist/node/lib/rating/criteria/scoring/total.js.map +1 -0
- package/dist/node/lib/rating/criteria/scoring/total.mjs +22 -0
- package/dist/node/lib/rating/criteria/scoring/total.mjs.map +1 -0
- package/dist/node/lib/rating/index.d.mts +2 -0
- package/dist/node/lib/rating/index.d.mts.map +1 -0
- package/dist/node/lib/rating/index.d.ts +2 -0
- package/dist/node/lib/rating/index.d.ts.map +1 -0
- package/dist/node/lib/rating/index.js +23 -0
- package/dist/node/lib/rating/index.js.map +1 -0
- package/dist/node/lib/rating/index.mjs +2 -0
- package/dist/node/lib/rating/index.mjs.map +1 -0
- package/package.json +34 -31
- package/dist/Diviner.d.mts.map +0 -1
- package/dist/Diviner.d.ts.map +0 -1
- package/dist/Plugin.d.mts.map +0 -1
- package/dist/Plugin.d.ts.map +0 -1
- package/dist/docs.json +0 -21843
- package/dist/index.d.mts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/lib/index.d.mts.map +0 -1
- package/dist/lib/index.d.ts.map +0 -1
- package/dist/lib/rating/analyzeNftCollection.d.mts.map +0 -1
- package/dist/lib/rating/analyzeNftCollection.d.ts.map +0 -1
- package/dist/lib/rating/criteria/index.d.mts.map +0 -1
- package/dist/lib/rating/criteria/index.d.ts.map +0 -1
- package/dist/lib/rating/criteria/scoring/index.d.mts.map +0 -1
- package/dist/lib/rating/criteria/scoring/index.d.ts.map +0 -1
- package/dist/lib/rating/criteria/scoring/metadata/index.d.mts.map +0 -1
- package/dist/lib/rating/criteria/scoring/metadata/index.d.ts.map +0 -1
- package/dist/lib/rating/criteria/scoring/metadata/metadata.d.mts.map +0 -1
- package/dist/lib/rating/criteria/scoring/metadata/metadata.d.ts.map +0 -1
- package/dist/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.d.mts.map +0 -1
- package/dist/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.d.ts.map +0 -1
- package/dist/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.d.mts.map +0 -1
- package/dist/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.d.ts.map +0 -1
- package/dist/lib/rating/criteria/scoring/total.d.mts.map +0 -1
- package/dist/lib/rating/criteria/scoring/total.d.ts.map +0 -1
- package/dist/lib/rating/index.d.mts.map +0 -1
- package/dist/lib/rating/index.d.ts.map +0 -1
- /package/dist/{Diviner.d.mts → browser/Diviner.d.mts} +0 -0
- /package/dist/{Diviner.d.ts → browser/Diviner.d.ts} +0 -0
- /package/dist/{Plugin.d.mts → browser/Plugin.d.mts} +0 -0
- /package/dist/{Plugin.d.ts → browser/Plugin.d.ts} +0 -0
- /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
- /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
- /package/dist/{lib → browser/lib}/index.d.mts +0 -0
- /package/dist/{lib → browser/lib}/index.d.ts +0 -0
- /package/dist/{lib → browser/lib}/rating/analyzeNftCollection.d.mts +0 -0
- /package/dist/{lib → browser/lib}/rating/analyzeNftCollection.d.ts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/index.d.mts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/index.d.ts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/scoring/index.d.mts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/scoring/index.d.ts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/scoring/metadata/index.d.mts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/scoring/metadata/index.d.ts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/scoring/metadata/metadata.d.mts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/scoring/metadata/metadata.d.ts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/scoring/metadata/scoreIndividualAttributes.d.mts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/scoring/metadata/scoreIndividualAttributes.d.ts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/scoring/metadata/scoreTotalAttributes.d.mts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/scoring/metadata/scoreTotalAttributes.d.ts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/scoring/total.d.mts +0 -0
- /package/dist/{lib → browser/lib}/rating/criteria/scoring/total.d.ts +0 -0
- /package/dist/{lib → browser/lib}/rating/index.d.mts +0 -0
- /package/dist/{lib → browser/lib}/rating/index.d.ts +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var scoreIndividualAttributes_exports = {};
|
|
20
|
+
__export(scoreIndividualAttributes_exports, {
|
|
21
|
+
scoreIndividualAttributes: () => scoreIndividualAttributes
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(scoreIndividualAttributes_exports);
|
|
24
|
+
var import_crypto_nft_score_model = require("@xyo-network/crypto-nft-score-model");
|
|
25
|
+
const maxScore = 10;
|
|
26
|
+
const scoreIndividualAttributes = (info) => {
|
|
27
|
+
const { attributes } = info.metrics.metadata;
|
|
28
|
+
const entries = Object.entries(attributes);
|
|
29
|
+
if (entries.length === 0)
|
|
30
|
+
return [0, maxScore];
|
|
31
|
+
const scores = Object.entries(attributes).map(([_trait, { values }]) => {
|
|
32
|
+
return Object.entries(values).map(([_traitValue, metrics]) => {
|
|
33
|
+
const rarity = Math.min(Math.round((1 - metrics.binomial.p) * maxScore), maxScore);
|
|
34
|
+
return [rarity, maxScore];
|
|
35
|
+
});
|
|
36
|
+
}).flat();
|
|
37
|
+
const total = scores.reduce(([a, b], [c, d]) => [a + c, b + d], [0, 0]);
|
|
38
|
+
return (0, import_crypto_nft_score_model.normalize)(total, maxScore);
|
|
39
|
+
};
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
scoreIndividualAttributes
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=scoreIndividualAttributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../src/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.ts"],"sourcesContent":["import { NftCollectionAttributeMetrics } from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { normalize, Score } from '@xyo-network/crypto-nft-score-model'\n\nconst maxScore = 10\n\nexport const scoreIndividualAttributes = (info: NftCollectionAttributeMetrics): Score => {\n const { attributes } = info.metrics.metadata\n const entries = Object.entries(attributes)\n if (entries.length === 0) return [0, maxScore]\n const scores = Object.entries(attributes)\n .map(([_trait, { values }]) => {\n return Object.entries(values).map<Score>(([_traitValue, metrics]) => {\n const rarity = Math.min(Math.round((1 - metrics.binomial.p) * maxScore), maxScore)\n return [rarity, maxScore]\n })\n })\n .flat()\n const total = scores.reduce<Score>(([a, b], [c, d]) => [a + c, b + d], [0, 0])\n return normalize(total, maxScore)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oCAAiC;AAEjC,MAAM,WAAW;AAEV,MAAM,4BAA4B,CAAC,SAA+C;AACvF,QAAM,EAAE,WAAW,IAAI,KAAK,QAAQ;AACpC,QAAM,UAAU,OAAO,QAAQ,UAAU;AACzC,MAAI,QAAQ,WAAW;AAAG,WAAO,CAAC,GAAG,QAAQ;AAC7C,QAAM,SAAS,OAAO,QAAQ,UAAU,EACrC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM;AAC7B,WAAO,OAAO,QAAQ,MAAM,EAAE,IAAW,CAAC,CAAC,aAAa,OAAO,MAAM;AACnE,YAAM,SAAS,KAAK,IAAI,KAAK,OAAO,IAAI,QAAQ,SAAS,KAAK,QAAQ,GAAG,QAAQ;AACjF,aAAO,CAAC,QAAQ,QAAQ;AAAA,IAC1B,CAAC;AAAA,EACH,CAAC,EACA,KAAK;AACR,QAAM,QAAQ,OAAO,OAAc,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7E,aAAO,yCAAU,OAAO,QAAQ;AAClC;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { normalize } from "@xyo-network/crypto-nft-score-model";
|
|
2
|
+
const maxScore = 10;
|
|
3
|
+
const scoreIndividualAttributes = (info) => {
|
|
4
|
+
const { attributes } = info.metrics.metadata;
|
|
5
|
+
const entries = Object.entries(attributes);
|
|
6
|
+
if (entries.length === 0)
|
|
7
|
+
return [0, maxScore];
|
|
8
|
+
const scores = Object.entries(attributes).map(([_trait, { values }]) => {
|
|
9
|
+
return Object.entries(values).map(([_traitValue, metrics]) => {
|
|
10
|
+
const rarity = Math.min(Math.round((1 - metrics.binomial.p) * maxScore), maxScore);
|
|
11
|
+
return [rarity, maxScore];
|
|
12
|
+
});
|
|
13
|
+
}).flat();
|
|
14
|
+
const total = scores.reduce(([a, b], [c, d]) => [a + c, b + d], [0, 0]);
|
|
15
|
+
return normalize(total, maxScore);
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
scoreIndividualAttributes
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=scoreIndividualAttributes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../src/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.ts"],"sourcesContent":["import { NftCollectionAttributeMetrics } from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { normalize, Score } from '@xyo-network/crypto-nft-score-model'\n\nconst maxScore = 10\n\nexport const scoreIndividualAttributes = (info: NftCollectionAttributeMetrics): Score => {\n const { attributes } = info.metrics.metadata\n const entries = Object.entries(attributes)\n if (entries.length === 0) return [0, maxScore]\n const scores = Object.entries(attributes)\n .map(([_trait, { values }]) => {\n return Object.entries(values).map<Score>(([_traitValue, metrics]) => {\n const rarity = Math.min(Math.round((1 - metrics.binomial.p) * maxScore), maxScore)\n return [rarity, maxScore]\n })\n })\n .flat()\n const total = scores.reduce<Score>(([a, b], [c, d]) => [a + c, b + d], [0, 0])\n return normalize(total, maxScore)\n}\n"],"mappings":"AACA,SAAS,iBAAwB;AAEjC,MAAM,WAAW;AAEV,MAAM,4BAA4B,CAAC,SAA+C;AACvF,QAAM,EAAE,WAAW,IAAI,KAAK,QAAQ;AACpC,QAAM,UAAU,OAAO,QAAQ,UAAU;AACzC,MAAI,QAAQ,WAAW;AAAG,WAAO,CAAC,GAAG,QAAQ;AAC7C,QAAM,SAAS,OAAO,QAAQ,UAAU,EACrC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM;AAC7B,WAAO,OAAO,QAAQ,MAAM,EAAE,IAAW,CAAC,CAAC,aAAa,OAAO,MAAM;AACnE,YAAM,SAAS,KAAK,IAAI,KAAK,OAAO,IAAI,QAAQ,SAAS,KAAK,QAAQ,GAAG,QAAQ;AACjF,aAAO,CAAC,QAAQ,QAAQ;AAAA,IAC1B,CAAC;AAAA,EACH,CAAC,EACA,KAAK;AACR,QAAM,QAAQ,OAAO,OAAc,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7E,SAAO,UAAU,OAAO,QAAQ;AAClC;","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NftCollectionAttributeMetrics } from '@xyo-network/crypto-nft-collection-payload-plugin';
|
|
2
|
+
import { Score } from '@xyo-network/crypto-nft-score-model';
|
|
3
|
+
/**
|
|
4
|
+
* We're working on some assumptions here:
|
|
5
|
+
*
|
|
6
|
+
* - If you have a 100% chance of getting a trait, everyone get's a trophy
|
|
7
|
+
* - If you have a 50% chance of getting a trait, it's not rare
|
|
8
|
+
* - If you have a 0% chance of getting a trait, it's not fun
|
|
9
|
+
*
|
|
10
|
+
* So we're looking for something Pareto-ish (somewhere between
|
|
11
|
+
* 80/20 or 90/10) as that's a good & sustainable model for the
|
|
12
|
+
* distribution of many traits in real life.
|
|
13
|
+
* However, we also don't want to maximally reward collections
|
|
14
|
+
* that have a lot of single attributes distributed uniformly
|
|
15
|
+
* (basically a 0% trait probably) as that's perfectly entropic
|
|
16
|
+
* but not very interesting (some overlap is desirable).
|
|
17
|
+
* So we're using a Gaussian distribution to model the
|
|
18
|
+
* probability density of the joint probability of all traits
|
|
19
|
+
* centered around 15%.
|
|
20
|
+
* @param info
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export declare const scoreTotalAttributes: (info: NftCollectionAttributeMetrics) => Score;
|
|
24
|
+
//# sourceMappingURL=scoreTotalAttributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scoreTotalAttributes.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAA;AACjG,OAAO,EAAa,KAAK,EAAE,MAAM,qCAAqC,CAAA;AAiCtE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,oBAAoB,SAAU,6BAA6B,KAAG,KAU1E,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NftCollectionAttributeMetrics } from '@xyo-network/crypto-nft-collection-payload-plugin';
|
|
2
|
+
import { Score } from '@xyo-network/crypto-nft-score-model';
|
|
3
|
+
/**
|
|
4
|
+
* We're working on some assumptions here:
|
|
5
|
+
*
|
|
6
|
+
* - If you have a 100% chance of getting a trait, everyone get's a trophy
|
|
7
|
+
* - If you have a 50% chance of getting a trait, it's not rare
|
|
8
|
+
* - If you have a 0% chance of getting a trait, it's not fun
|
|
9
|
+
*
|
|
10
|
+
* So we're looking for something Pareto-ish (somewhere between
|
|
11
|
+
* 80/20 or 90/10) as that's a good & sustainable model for the
|
|
12
|
+
* distribution of many traits in real life.
|
|
13
|
+
* However, we also don't want to maximally reward collections
|
|
14
|
+
* that have a lot of single attributes distributed uniformly
|
|
15
|
+
* (basically a 0% trait probably) as that's perfectly entropic
|
|
16
|
+
* but not very interesting (some overlap is desirable).
|
|
17
|
+
* So we're using a Gaussian distribution to model the
|
|
18
|
+
* probability density of the joint probability of all traits
|
|
19
|
+
* centered around 15%.
|
|
20
|
+
* @param info
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export declare const scoreTotalAttributes: (info: NftCollectionAttributeMetrics) => Score;
|
|
24
|
+
//# sourceMappingURL=scoreTotalAttributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scoreTotalAttributes.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAA;AACjG,OAAO,EAAa,KAAK,EAAE,MAAM,qCAAqC,CAAA;AAiCtE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,oBAAoB,SAAU,6BAA6B,KAAG,KAU1E,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var scoreTotalAttributes_exports = {};
|
|
20
|
+
__export(scoreTotalAttributes_exports, {
|
|
21
|
+
scoreTotalAttributes: () => scoreTotalAttributes
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(scoreTotalAttributes_exports);
|
|
24
|
+
var import_crypto_nft_score_model = require("@xyo-network/crypto-nft-score-model");
|
|
25
|
+
const maxScore = 10;
|
|
26
|
+
const defaultMu = 0.15;
|
|
27
|
+
const defaultSigma = 0.1;
|
|
28
|
+
const gaussianProbabilityDensity = (x, mu = defaultMu, sigma = defaultSigma) => {
|
|
29
|
+
const sqrtTwoPi = Math.sqrt(2 * Math.PI);
|
|
30
|
+
const denominator = sigma * sqrtTwoPi;
|
|
31
|
+
const power = -0.5 * Math.pow((x - mu) / sigma, 2);
|
|
32
|
+
return 1 / denominator * Math.exp(power);
|
|
33
|
+
};
|
|
34
|
+
const maxProbabilityDensity = gaussianProbabilityDensity(defaultMu);
|
|
35
|
+
const scoreTotalAttributes = (info) => {
|
|
36
|
+
const { attributes } = info.metrics.metadata;
|
|
37
|
+
const jointProbability = Object.entries(attributes).reduce((acc, [_trait, { metrics }]) => {
|
|
38
|
+
return acc * metrics.binomial.p;
|
|
39
|
+
}, 1);
|
|
40
|
+
const probabilityDensity = gaussianProbabilityDensity(jointProbability);
|
|
41
|
+
const score = [probabilityDensity, maxProbabilityDensity];
|
|
42
|
+
return (0, import_crypto_nft_score_model.normalize)(score, maxScore);
|
|
43
|
+
};
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
scoreTotalAttributes
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=scoreTotalAttributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../src/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.ts"],"sourcesContent":["import { NftCollectionAttributeMetrics } from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { normalize, Score } from '@xyo-network/crypto-nft-score-model'\n\nconst maxScore = 10\n\n/**\n * Mean: What value is the distribution centered around\n */\nconst defaultMu = 0.15\n\n/**\n * Standard Deviation: How spread out is the distribution\n */\nconst defaultSigma = 0.1\n\n/**\n * Calculates the Gaussian probability density\n * @param x\n * @param mu Mean\n * @param sigma Standard Deviation\n * @returns\n */\nconst gaussianProbabilityDensity = (x: number, mu: number = defaultMu, sigma: number = defaultSigma): number => {\n const sqrtTwoPi = Math.sqrt(2 * Math.PI)\n const denominator = sigma * sqrtTwoPi\n const power = -0.5 * Math.pow((x - mu) / sigma, 2)\n return (1 / denominator) * Math.exp(power)\n}\n\n/**\n * For a Gaussian distribution, the peak of the distribution is the mean\n */\nconst maxProbabilityDensity = gaussianProbabilityDensity(defaultMu)\n\n/**\n * We're working on some assumptions here:\n *\n * - If you have a 100% chance of getting a trait, everyone get's a trophy\n * - If you have a 50% chance of getting a trait, it's not rare\n * - If you have a 0% chance of getting a trait, it's not fun\n *\n * So we're looking for something Pareto-ish (somewhere between\n * 80/20 or 90/10) as that's a good & sustainable model for the\n * distribution of many traits in real life.\n * However, we also don't want to maximally reward collections\n * that have a lot of single attributes distributed uniformly\n * (basically a 0% trait probably) as that's perfectly entropic\n * but not very interesting (some overlap is desirable).\n * So we're using a Gaussian distribution to model the\n * probability density of the joint probability of all traits\n * centered around 15%.\n * @param info\n * @returns\n */\nexport const scoreTotalAttributes = (info: NftCollectionAttributeMetrics): Score => {\n const { attributes } = info.metrics.metadata\n // This has somewhat of a filtering function by causing anything with 100% probability to\n // add no value to the end score\n const jointProbability = Object.entries(attributes).reduce((acc, [_trait, { metrics }]) => {\n return acc * metrics.binomial.p\n }, 1)\n const probabilityDensity = gaussianProbabilityDensity(jointProbability)\n const score: Score = [probabilityDensity, maxProbabilityDensity]\n return normalize(score, maxScore)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oCAAiC;AAEjC,MAAM,WAAW;AAKjB,MAAM,YAAY;AAKlB,MAAM,eAAe;AASrB,MAAM,6BAA6B,CAAC,GAAW,KAAa,WAAW,QAAgB,iBAAyB;AAC9G,QAAM,YAAY,KAAK,KAAK,IAAI,KAAK,EAAE;AACvC,QAAM,cAAc,QAAQ;AAC5B,QAAM,QAAQ,OAAO,KAAK,KAAK,IAAI,MAAM,OAAO,CAAC;AACjD,SAAQ,IAAI,cAAe,KAAK,IAAI,KAAK;AAC3C;AAKA,MAAM,wBAAwB,2BAA2B,SAAS;AAsB3D,MAAM,uBAAuB,CAAC,SAA+C;AAClF,QAAM,EAAE,WAAW,IAAI,KAAK,QAAQ;AAGpC,QAAM,mBAAmB,OAAO,QAAQ,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM;AACzF,WAAO,MAAM,QAAQ,SAAS;AAAA,EAChC,GAAG,CAAC;AACJ,QAAM,qBAAqB,2BAA2B,gBAAgB;AACtE,QAAM,QAAe,CAAC,oBAAoB,qBAAqB;AAC/D,aAAO,yCAAU,OAAO,QAAQ;AAClC;","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { normalize } from "@xyo-network/crypto-nft-score-model";
|
|
2
|
+
const maxScore = 10;
|
|
3
|
+
const defaultMu = 0.15;
|
|
4
|
+
const defaultSigma = 0.1;
|
|
5
|
+
const gaussianProbabilityDensity = (x, mu = defaultMu, sigma = defaultSigma) => {
|
|
6
|
+
const sqrtTwoPi = Math.sqrt(2 * Math.PI);
|
|
7
|
+
const denominator = sigma * sqrtTwoPi;
|
|
8
|
+
const power = -0.5 * Math.pow((x - mu) / sigma, 2);
|
|
9
|
+
return 1 / denominator * Math.exp(power);
|
|
10
|
+
};
|
|
11
|
+
const maxProbabilityDensity = gaussianProbabilityDensity(defaultMu);
|
|
12
|
+
const scoreTotalAttributes = (info) => {
|
|
13
|
+
const { attributes } = info.metrics.metadata;
|
|
14
|
+
const jointProbability = Object.entries(attributes).reduce((acc, [_trait, { metrics }]) => {
|
|
15
|
+
return acc * metrics.binomial.p;
|
|
16
|
+
}, 1);
|
|
17
|
+
const probabilityDensity = gaussianProbabilityDensity(jointProbability);
|
|
18
|
+
const score = [probabilityDensity, maxProbabilityDensity];
|
|
19
|
+
return normalize(score, maxScore);
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
scoreTotalAttributes
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=scoreTotalAttributes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../src/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.ts"],"sourcesContent":["import { NftCollectionAttributeMetrics } from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { normalize, Score } from '@xyo-network/crypto-nft-score-model'\n\nconst maxScore = 10\n\n/**\n * Mean: What value is the distribution centered around\n */\nconst defaultMu = 0.15\n\n/**\n * Standard Deviation: How spread out is the distribution\n */\nconst defaultSigma = 0.1\n\n/**\n * Calculates the Gaussian probability density\n * @param x\n * @param mu Mean\n * @param sigma Standard Deviation\n * @returns\n */\nconst gaussianProbabilityDensity = (x: number, mu: number = defaultMu, sigma: number = defaultSigma): number => {\n const sqrtTwoPi = Math.sqrt(2 * Math.PI)\n const denominator = sigma * sqrtTwoPi\n const power = -0.5 * Math.pow((x - mu) / sigma, 2)\n return (1 / denominator) * Math.exp(power)\n}\n\n/**\n * For a Gaussian distribution, the peak of the distribution is the mean\n */\nconst maxProbabilityDensity = gaussianProbabilityDensity(defaultMu)\n\n/**\n * We're working on some assumptions here:\n *\n * - If you have a 100% chance of getting a trait, everyone get's a trophy\n * - If you have a 50% chance of getting a trait, it's not rare\n * - If you have a 0% chance of getting a trait, it's not fun\n *\n * So we're looking for something Pareto-ish (somewhere between\n * 80/20 or 90/10) as that's a good & sustainable model for the\n * distribution of many traits in real life.\n * However, we also don't want to maximally reward collections\n * that have a lot of single attributes distributed uniformly\n * (basically a 0% trait probably) as that's perfectly entropic\n * but not very interesting (some overlap is desirable).\n * So we're using a Gaussian distribution to model the\n * probability density of the joint probability of all traits\n * centered around 15%.\n * @param info\n * @returns\n */\nexport const scoreTotalAttributes = (info: NftCollectionAttributeMetrics): Score => {\n const { attributes } = info.metrics.metadata\n // This has somewhat of a filtering function by causing anything with 100% probability to\n // add no value to the end score\n const jointProbability = Object.entries(attributes).reduce((acc, [_trait, { metrics }]) => {\n return acc * metrics.binomial.p\n }, 1)\n const probabilityDensity = gaussianProbabilityDensity(jointProbability)\n const score: Score = [probabilityDensity, maxProbabilityDensity]\n return normalize(score, maxScore)\n}\n"],"mappings":"AACA,SAAS,iBAAwB;AAEjC,MAAM,WAAW;AAKjB,MAAM,YAAY;AAKlB,MAAM,eAAe;AASrB,MAAM,6BAA6B,CAAC,GAAW,KAAa,WAAW,QAAgB,iBAAyB;AAC9G,QAAM,YAAY,KAAK,KAAK,IAAI,KAAK,EAAE;AACvC,QAAM,cAAc,QAAQ;AAC5B,QAAM,QAAQ,OAAO,KAAK,KAAK,IAAI,MAAM,OAAO,CAAC;AACjD,SAAQ,IAAI,cAAe,KAAK,IAAI,KAAK;AAC3C;AAKA,MAAM,wBAAwB,2BAA2B,SAAS;AAsB3D,MAAM,uBAAuB,CAAC,SAA+C;AAClF,QAAM,EAAE,WAAW,IAAI,KAAK,QAAQ;AAGpC,QAAM,mBAAmB,OAAO,QAAQ,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM;AACzF,WAAO,MAAM,QAAQ,SAAS;AAAA,EAChC,GAAG,CAAC;AACJ,QAAM,qBAAqB,2BAA2B,gBAAgB;AACtE,QAAM,QAAe,CAAC,oBAAoB,qBAAqB;AAC/D,SAAO,UAAU,OAAO,QAAQ;AAClC;","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NftCollectionCount } from '@xyo-network/crypto-nft-collection-payload-plugin';
|
|
2
|
+
import { Score } from '@xyo-network/crypto-nft-score-model';
|
|
3
|
+
/**
|
|
4
|
+
* We're working on some assumptions here:
|
|
5
|
+
* - If there's < 1000 NFTs in your collection it starts becoming too niche
|
|
6
|
+
* - If there's > 20,000 NFTs in your collection it starts becoming too broad
|
|
7
|
+
* So there's a sweet spot somewhere between 2000 and 10,000
|
|
8
|
+
* where a collection has enough NFTs to be interesting, but
|
|
9
|
+
* not so many that it's teetering on a diluted money grab.
|
|
10
|
+
* To model that we're using a log-normal distribution optimized
|
|
11
|
+
* to maximally reward collections in the aforementioned range
|
|
12
|
+
* @param nft
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export declare const scoreTotal: (nft: NftCollectionCount) => Score;
|
|
16
|
+
//# sourceMappingURL=total.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"total.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/rating/criteria/scoring/total.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAA;AACtF,OAAO,EAAa,KAAK,EAAE,MAAM,qCAAqC,CAAA;AA+BtE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,QAAS,kBAAkB,KAAG,KAIpD,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NftCollectionCount } from '@xyo-network/crypto-nft-collection-payload-plugin';
|
|
2
|
+
import { Score } from '@xyo-network/crypto-nft-score-model';
|
|
3
|
+
/**
|
|
4
|
+
* We're working on some assumptions here:
|
|
5
|
+
* - If there's < 1000 NFTs in your collection it starts becoming too niche
|
|
6
|
+
* - If there's > 20,000 NFTs in your collection it starts becoming too broad
|
|
7
|
+
* So there's a sweet spot somewhere between 2000 and 10,000
|
|
8
|
+
* where a collection has enough NFTs to be interesting, but
|
|
9
|
+
* not so many that it's teetering on a diluted money grab.
|
|
10
|
+
* To model that we're using a log-normal distribution optimized
|
|
11
|
+
* to maximally reward collections in the aforementioned range
|
|
12
|
+
* @param nft
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export declare const scoreTotal: (nft: NftCollectionCount) => Score;
|
|
16
|
+
//# sourceMappingURL=total.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"total.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/rating/criteria/scoring/total.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAA;AACtF,OAAO,EAAa,KAAK,EAAE,MAAM,qCAAqC,CAAA;AA+BtE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,QAAS,kBAAkB,KAAG,KAIpD,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var total_exports = {};
|
|
20
|
+
__export(total_exports, {
|
|
21
|
+
scoreTotal: () => scoreTotal
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(total_exports);
|
|
24
|
+
var import_crypto_nft_score_model = require("@xyo-network/crypto-nft-score-model");
|
|
25
|
+
const median = 810308398217352e-7;
|
|
26
|
+
const defaultMu = Math.log(median);
|
|
27
|
+
const defaultSigma = 3;
|
|
28
|
+
const mode = Math.exp(defaultMu - Math.pow(defaultSigma, 2));
|
|
29
|
+
const logNormalProbabilityDensity = (x, mu = defaultMu, sigma = defaultSigma) => {
|
|
30
|
+
if (x <= 0)
|
|
31
|
+
return 0;
|
|
32
|
+
const logX = Math.log(x);
|
|
33
|
+
return 1 / (x * sigma * Math.sqrt(2 * Math.PI)) * Math.exp(-0.5 * Math.pow((logX - mu) / sigma, 2));
|
|
34
|
+
};
|
|
35
|
+
const maxProbabilityDensity = logNormalProbabilityDensity(mode);
|
|
36
|
+
const maxScore = 10;
|
|
37
|
+
const scoreTotal = (nft) => {
|
|
38
|
+
const density = logNormalProbabilityDensity(nft.total);
|
|
39
|
+
const score = [density, maxProbabilityDensity];
|
|
40
|
+
return (0, import_crypto_nft_score_model.normalize)(score, maxScore);
|
|
41
|
+
};
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
scoreTotal
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=total.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/lib/rating/criteria/scoring/total.ts"],"sourcesContent":["import { NftCollectionCount } from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { normalize, Score } from '@xyo-network/crypto-nft-score-model'\n\n/**\n * This \"magic\" value was obtained using Solver in Excel\n * to find the median, with mu/sigma fixed, which maximizes\n * the distribution (the mode for lognormal) at 10,000\n */\nconst median = 81030839.8217352\nconst defaultMu = Math.log(median)\nconst defaultSigma = 3\nconst mode = Math.exp(defaultMu - Math.pow(defaultSigma, 2))\n/**\n * Calculates the log-normal probability density\n * @param x the value at which you want to calculate the probability density\n * @param mu mean of the associated normal distribution\n * @param sigma standard deviation of the associated normal distribution\n * @returns\n */\nconst logNormalProbabilityDensity = (x: number, mu: number = defaultMu, sigma: number = defaultSigma): number => {\n if (x <= 0) return 0\n const logX = Math.log(x)\n return (1 / (x * sigma * Math.sqrt(2 * Math.PI))) * Math.exp(-0.5 * Math.pow((logX - mu) / sigma, 2))\n}\n\n/**\n * For a lognormal distribution, the peak of the distribution is the mode\n */\nconst maxProbabilityDensity = logNormalProbabilityDensity(mode)\n\nconst maxScore = 10\n\n/**\n * We're working on some assumptions here:\n * - If there's < 1000 NFTs in your collection it starts becoming too niche\n * - If there's > 20,000 NFTs in your collection it starts becoming too broad\n * So there's a sweet spot somewhere between 2000 and 10,000\n * where a collection has enough NFTs to be interesting, but\n * not so many that it's teetering on a diluted money grab.\n * To model that we're using a log-normal distribution optimized\n * to maximally reward collections in the aforementioned range\n * @param nft\n * @returns\n */\nexport const scoreTotal = (nft: NftCollectionCount): Score => {\n const density = logNormalProbabilityDensity(nft.total)\n const score: Score = [density, maxProbabilityDensity]\n return normalize(score, maxScore)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oCAAiC;AAOjC,MAAM,SAAS;AACf,MAAM,YAAY,KAAK,IAAI,MAAM;AACjC,MAAM,eAAe;AACrB,MAAM,OAAO,KAAK,IAAI,YAAY,KAAK,IAAI,cAAc,CAAC,CAAC;AAQ3D,MAAM,8BAA8B,CAAC,GAAW,KAAa,WAAW,QAAgB,iBAAyB;AAC/G,MAAI,KAAK;AAAG,WAAO;AACnB,QAAM,OAAO,KAAK,IAAI,CAAC;AACvB,SAAQ,KAAK,IAAI,QAAQ,KAAK,KAAK,IAAI,KAAK,EAAE,KAAM,KAAK,IAAI,OAAO,KAAK,KAAK,OAAO,MAAM,OAAO,CAAC,CAAC;AACtG;AAKA,MAAM,wBAAwB,4BAA4B,IAAI;AAE9D,MAAM,WAAW;AAcV,MAAM,aAAa,CAAC,QAAmC;AAC5D,QAAM,UAAU,4BAA4B,IAAI,KAAK;AACrD,QAAM,QAAe,CAAC,SAAS,qBAAqB;AACpD,aAAO,yCAAU,OAAO,QAAQ;AAClC;","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { normalize } from "@xyo-network/crypto-nft-score-model";
|
|
2
|
+
const median = 810308398217352e-7;
|
|
3
|
+
const defaultMu = Math.log(median);
|
|
4
|
+
const defaultSigma = 3;
|
|
5
|
+
const mode = Math.exp(defaultMu - Math.pow(defaultSigma, 2));
|
|
6
|
+
const logNormalProbabilityDensity = (x, mu = defaultMu, sigma = defaultSigma) => {
|
|
7
|
+
if (x <= 0)
|
|
8
|
+
return 0;
|
|
9
|
+
const logX = Math.log(x);
|
|
10
|
+
return 1 / (x * sigma * Math.sqrt(2 * Math.PI)) * Math.exp(-0.5 * Math.pow((logX - mu) / sigma, 2));
|
|
11
|
+
};
|
|
12
|
+
const maxProbabilityDensity = logNormalProbabilityDensity(mode);
|
|
13
|
+
const maxScore = 10;
|
|
14
|
+
const scoreTotal = (nft) => {
|
|
15
|
+
const density = logNormalProbabilityDensity(nft.total);
|
|
16
|
+
const score = [density, maxProbabilityDensity];
|
|
17
|
+
return normalize(score, maxScore);
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
scoreTotal
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=total.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/lib/rating/criteria/scoring/total.ts"],"sourcesContent":["import { NftCollectionCount } from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { normalize, Score } from '@xyo-network/crypto-nft-score-model'\n\n/**\n * This \"magic\" value was obtained using Solver in Excel\n * to find the median, with mu/sigma fixed, which maximizes\n * the distribution (the mode for lognormal) at 10,000\n */\nconst median = 81030839.8217352\nconst defaultMu = Math.log(median)\nconst defaultSigma = 3\nconst mode = Math.exp(defaultMu - Math.pow(defaultSigma, 2))\n/**\n * Calculates the log-normal probability density\n * @param x the value at which you want to calculate the probability density\n * @param mu mean of the associated normal distribution\n * @param sigma standard deviation of the associated normal distribution\n * @returns\n */\nconst logNormalProbabilityDensity = (x: number, mu: number = defaultMu, sigma: number = defaultSigma): number => {\n if (x <= 0) return 0\n const logX = Math.log(x)\n return (1 / (x * sigma * Math.sqrt(2 * Math.PI))) * Math.exp(-0.5 * Math.pow((logX - mu) / sigma, 2))\n}\n\n/**\n * For a lognormal distribution, the peak of the distribution is the mode\n */\nconst maxProbabilityDensity = logNormalProbabilityDensity(mode)\n\nconst maxScore = 10\n\n/**\n * We're working on some assumptions here:\n * - If there's < 1000 NFTs in your collection it starts becoming too niche\n * - If there's > 20,000 NFTs in your collection it starts becoming too broad\n * So there's a sweet spot somewhere between 2000 and 10,000\n * where a collection has enough NFTs to be interesting, but\n * not so many that it's teetering on a diluted money grab.\n * To model that we're using a log-normal distribution optimized\n * to maximally reward collections in the aforementioned range\n * @param nft\n * @returns\n */\nexport const scoreTotal = (nft: NftCollectionCount): Score => {\n const density = logNormalProbabilityDensity(nft.total)\n const score: Score = [density, maxProbabilityDensity]\n return normalize(score, maxScore)\n}\n"],"mappings":"AACA,SAAS,iBAAwB;AAOjC,MAAM,SAAS;AACf,MAAM,YAAY,KAAK,IAAI,MAAM;AACjC,MAAM,eAAe;AACrB,MAAM,OAAO,KAAK,IAAI,YAAY,KAAK,IAAI,cAAc,CAAC,CAAC;AAQ3D,MAAM,8BAA8B,CAAC,GAAW,KAAa,WAAW,QAAgB,iBAAyB;AAC/G,MAAI,KAAK;AAAG,WAAO;AACnB,QAAM,OAAO,KAAK,IAAI,CAAC;AACvB,SAAQ,KAAK,IAAI,QAAQ,KAAK,KAAK,IAAI,KAAK,EAAE,KAAM,KAAK,IAAI,OAAO,KAAK,KAAK,OAAO,MAAM,OAAO,CAAC,CAAC;AACtG;AAKA,MAAM,wBAAwB,4BAA4B,IAAI;AAE9D,MAAM,WAAW;AAcV,MAAM,aAAa,CAAC,QAAmC;AAC5D,QAAM,UAAU,4BAA4B,IAAI,KAAK;AACrD,QAAM,QAAe,CAAC,SAAS,qBAAqB;AACpD,SAAO,UAAU,OAAO,QAAQ;AAClC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/rating/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/rating/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var rating_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(rating_exports);
|
|
18
|
+
__reExport(rating_exports, require("./analyzeNftCollection"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./analyzeNftCollection")
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/rating/index.ts"],"sourcesContent":["export * from './analyzeNftCollection'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,2BAAc,mCAAd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/rating/index.ts"],"sourcesContent":["export * from './analyzeNftCollection'\n"],"mappings":"AAAA,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -10,54 +10,57 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/abstract-diviner": "~2.
|
|
14
|
-
"@xyo-network/core": "~2.
|
|
15
|
-
"@xyo-network/crypto-nft-collection-payload-plugin": "~2.
|
|
16
|
-
"@xyo-network/crypto-nft-payload-plugin": "~2.
|
|
17
|
-
"@xyo-network/crypto-nft-score-model": "~2.
|
|
18
|
-
"@xyo-network/diviner-model": "~2.
|
|
19
|
-
"@xyo-network/module": "~2.
|
|
20
|
-
"@xyo-network/payload-model": "~2.
|
|
21
|
-
"@xyo-network/payloadset-plugin": "~2.
|
|
13
|
+
"@xyo-network/abstract-diviner": "~2.75.0",
|
|
14
|
+
"@xyo-network/core": "~2.75.0",
|
|
15
|
+
"@xyo-network/crypto-nft-collection-payload-plugin": "~2.75.0",
|
|
16
|
+
"@xyo-network/crypto-nft-payload-plugin": "~2.75.0",
|
|
17
|
+
"@xyo-network/crypto-nft-score-model": "~2.75.0",
|
|
18
|
+
"@xyo-network/diviner-model": "~2.75.0",
|
|
19
|
+
"@xyo-network/module": "~2.75.0",
|
|
20
|
+
"@xyo-network/payload-model": "~2.75.0",
|
|
21
|
+
"@xyo-network/payloadset-plugin": "~2.75.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@xylabs/jest-helpers": "^2.11.
|
|
25
|
-
"@xylabs/ts-scripts-yarn3": "^3.0.
|
|
26
|
-
"@xylabs/tsconfig": "^3.0.
|
|
24
|
+
"@xylabs/jest-helpers": "^2.11.22",
|
|
25
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.70",
|
|
26
|
+
"@xylabs/tsconfig": "^3.0.70",
|
|
27
27
|
"ethers": "^5.7.2",
|
|
28
28
|
"jest": "^29.7.0",
|
|
29
29
|
"typescript": "^5.2.2"
|
|
30
30
|
},
|
|
31
31
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
32
32
|
"docs": "dist/docs.json",
|
|
33
|
-
"types": "dist/index.d.ts",
|
|
33
|
+
"types": "dist/node/index.d.ts",
|
|
34
34
|
"exports": {
|
|
35
35
|
".": {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
36
|
+
"browser": {
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./dist/browser/index.d.ts",
|
|
39
|
+
"default": "./dist/browser/index.cjs"
|
|
40
|
+
},
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/browser/index.d.mts",
|
|
43
|
+
"default": "./dist/browser/index.js"
|
|
44
|
+
}
|
|
39
45
|
},
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
46
|
+
"node": {
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/node/index.d.ts",
|
|
49
|
+
"default": "./dist/node/index.js"
|
|
50
|
+
},
|
|
51
|
+
"import": {
|
|
52
|
+
"types": "./dist/node/index.d.mts",
|
|
53
|
+
"default": "./dist/node/index.mjs"
|
|
54
|
+
}
|
|
43
55
|
}
|
|
44
56
|
},
|
|
45
|
-
"./dist/docs.json": {
|
|
46
|
-
"default": "./dist/docs.json"
|
|
47
|
-
},
|
|
48
|
-
"./cjs": {
|
|
49
|
-
"default": "./dist/index.js"
|
|
50
|
-
},
|
|
51
57
|
"./docs": {
|
|
52
58
|
"default": "./dist/docs.json"
|
|
53
59
|
},
|
|
54
|
-
"./esm": {
|
|
55
|
-
"default": "./dist/index.mjs"
|
|
56
|
-
},
|
|
57
60
|
"./package.json": "./package.json"
|
|
58
61
|
},
|
|
59
|
-
"main": "dist/index.js",
|
|
60
|
-
"module": "dist/index.mjs",
|
|
62
|
+
"main": "dist/node/index.js",
|
|
63
|
+
"module": "dist/node/index.mjs",
|
|
61
64
|
"homepage": "https://xyo.network",
|
|
62
65
|
"license": "LGPL-3.0",
|
|
63
66
|
"publishConfig": {
|
|
@@ -68,5 +71,5 @@
|
|
|
68
71
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
69
72
|
},
|
|
70
73
|
"sideEffects": false,
|
|
71
|
-
"version": "2.
|
|
74
|
+
"version": "2.75.0"
|
|
72
75
|
}
|
package/dist/Diviner.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,EAKL,+BAA+B,EAGhC,MAAM,mDAAmD,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAIpD,MAAM,MAAM,+BAA+B,GAAG,aAAa,CAAC,eAAe,CAAC,+BAA+B,CAAC,CAAC,CAAA;AAQ7G,qBAAa,yBAAyB,CACpC,OAAO,SAAS,+BAA+B,GAAG,+BAA+B,CACjF,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,OAAgB,aAAa,6DAA0C;IAEvE,UAAmB,aAAa,cAAqB,OAAO,EAAE,KAAG,QAAQ,OAAO,EAAE,CAAC,CAclF;CACF"}
|
package/dist/Diviner.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,EAKL,+BAA+B,EAGhC,MAAM,mDAAmD,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAIpD,MAAM,MAAM,+BAA+B,GAAG,aAAa,CAAC,eAAe,CAAC,+BAA+B,CAAC,CAAC,CAAA;AAQ7G,qBAAa,yBAAyB,CACpC,OAAO,SAAS,+BAA+B,GAAG,+BAA+B,CACjF,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,OAAgB,aAAa,6DAA0C;IAEvE,UAAmB,aAAa,cAAqB,OAAO,EAAE,KAAG,QAAQ,OAAO,EAAE,CAAC,CAclF;CACF"}
|
package/dist/Plugin.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAErD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASzC,CAAA"}
|
package/dist/Plugin.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAErD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASzC,CAAA"}
|