@xyo-network/crypto-nft-collection-diviner-score-plugin 2.82.2 → 2.84.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/Plugin.d.cts +396 -6
- package/dist/browser/Plugin.d.cts.map +1 -1
- package/dist/browser/Plugin.d.mts +396 -6
- package/dist/browser/Plugin.d.mts.map +1 -1
- package/dist/browser/Plugin.d.ts +396 -6
- package/dist/browser/Plugin.d.ts.map +1 -1
- package/dist/browser/index.cjs +2 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +2 -1
- package/dist/browser/lib/rating/index.d.cts +1 -0
- package/dist/browser/lib/rating/index.d.cts.map +1 -1
- package/dist/browser/lib/rating/index.d.mts +1 -0
- package/dist/browser/lib/rating/index.d.mts.map +1 -1
- package/dist/browser/lib/rating/index.d.ts +1 -0
- package/dist/browser/lib/rating/index.d.ts.map +1 -1
- package/dist/node/Plugin.d.cts +396 -6
- package/dist/node/Plugin.d.cts.map +1 -1
- package/dist/node/Plugin.d.mts +396 -6
- package/dist/node/Plugin.d.mts.map +1 -1
- package/dist/node/Plugin.d.ts +396 -6
- package/dist/node/Plugin.d.ts.map +1 -1
- package/dist/node/index.js +4 -2
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +2 -1
- package/dist/node/lib/rating/index.d.cts +1 -0
- package/dist/node/lib/rating/index.d.cts.map +1 -1
- package/dist/node/lib/rating/index.d.mts +1 -0
- package/dist/node/lib/rating/index.d.mts.map +1 -1
- package/dist/node/lib/rating/index.d.ts +1 -0
- package/dist/node/lib/rating/index.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/lib/rating/index.ts +1 -0
package/dist/node/Plugin.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NftCollectionScoreDiviner } from './Diviner';
|
|
2
|
-
export declare const NftCollectionScoreDivinerPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetDivinerPlugin<NftCollectionScoreDiviner<import("@xyo-network/
|
|
2
|
+
export declare const NftCollectionScoreDivinerPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetDivinerPlugin<NftCollectionScoreDiviner<import("@xyo-network/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
|
-
config: import("@xyo-network/payload-model").SchemaFields & Omit<{
|
|
4
|
+
config: (import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
5
5
|
accountDerivationPath?: string | undefined;
|
|
6
6
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
7
7
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -17,7 +17,225 @@ export declare const NftCollectionScoreDivinerPlugin: () => import("@xyo-network
|
|
|
17
17
|
readonly sign?: boolean | undefined;
|
|
18
18
|
readonly storeQueries?: boolean | undefined;
|
|
19
19
|
readonly timestamp?: boolean | undefined;
|
|
20
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig &
|
|
20
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
21
|
+
schema: string;
|
|
22
|
+
} & Omit<(import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
23
|
+
accountDerivationPath?: string | undefined;
|
|
24
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
25
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
26
|
+
readonly name?: string | undefined;
|
|
27
|
+
readonly paging?: Record<string, {
|
|
28
|
+
size?: number | undefined;
|
|
29
|
+
}> | undefined;
|
|
30
|
+
readonly security?: {
|
|
31
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
32
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
33
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
readonly sign?: boolean | undefined;
|
|
36
|
+
readonly storeQueries?: boolean | undefined;
|
|
37
|
+
readonly timestamp?: boolean | undefined;
|
|
38
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
39
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
40
|
+
} & Omit<{
|
|
41
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
42
|
+
}, "schema">, "schema"> & {
|
|
43
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
44
|
+
}) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & Omit<{
|
|
45
|
+
accountDerivationPath?: string | undefined;
|
|
46
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
47
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
48
|
+
readonly name?: string | undefined;
|
|
49
|
+
readonly paging?: Record<string, {
|
|
50
|
+
size?: number | undefined;
|
|
51
|
+
}> | undefined;
|
|
52
|
+
readonly security?: {
|
|
53
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
54
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
55
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
readonly sign?: boolean | undefined;
|
|
58
|
+
readonly storeQueries?: boolean | undefined;
|
|
59
|
+
readonly timestamp?: boolean | undefined;
|
|
60
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
61
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
62
|
+
} & Omit<{
|
|
63
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
64
|
+
}, "schema">, "schema"> & {
|
|
65
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
66
|
+
} & object) | (import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
67
|
+
accountDerivationPath?: string | undefined;
|
|
68
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
69
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
70
|
+
readonly name?: string | undefined;
|
|
71
|
+
readonly paging?: Record<string, {
|
|
72
|
+
size?: number | undefined;
|
|
73
|
+
}> | undefined;
|
|
74
|
+
readonly security?: {
|
|
75
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
76
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
77
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
readonly sign?: boolean | undefined;
|
|
80
|
+
readonly storeQueries?: boolean | undefined;
|
|
81
|
+
readonly timestamp?: boolean | undefined;
|
|
82
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
83
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
84
|
+
} & Omit<{
|
|
85
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
86
|
+
}, "schema">, "schema"> & {
|
|
87
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
88
|
+
} & import("@xyo-network/payload-model").PayloadMetaFields) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & Omit<{
|
|
89
|
+
accountDerivationPath?: string | undefined;
|
|
90
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
91
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
92
|
+
readonly name?: string | undefined;
|
|
93
|
+
readonly paging?: Record<string, {
|
|
94
|
+
size?: number | undefined;
|
|
95
|
+
}> | undefined;
|
|
96
|
+
readonly security?: {
|
|
97
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
98
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
99
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
readonly sign?: boolean | undefined;
|
|
102
|
+
readonly storeQueries?: boolean | undefined;
|
|
103
|
+
readonly timestamp?: boolean | undefined;
|
|
104
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
105
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
106
|
+
} & Omit<{
|
|
107
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
108
|
+
}, "schema">, "schema"> & {
|
|
109
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
110
|
+
}), "schema">, "schema"> & {
|
|
111
|
+
schema: string;
|
|
112
|
+
}) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & Omit<{
|
|
113
|
+
accountDerivationPath?: string | undefined;
|
|
114
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
115
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
116
|
+
readonly name?: string | undefined;
|
|
117
|
+
readonly paging?: Record<string, {
|
|
118
|
+
size?: number | undefined;
|
|
119
|
+
}> | undefined;
|
|
120
|
+
readonly security?: {
|
|
121
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
122
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
123
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
readonly sign?: boolean | undefined;
|
|
126
|
+
readonly storeQueries?: boolean | undefined;
|
|
127
|
+
readonly timestamp?: boolean | undefined;
|
|
128
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
129
|
+
schema: string;
|
|
130
|
+
} & Omit<(import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
131
|
+
accountDerivationPath?: string | undefined;
|
|
132
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
133
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
134
|
+
readonly name?: string | undefined;
|
|
135
|
+
readonly paging?: Record<string, {
|
|
136
|
+
size?: number | undefined;
|
|
137
|
+
}> | undefined;
|
|
138
|
+
readonly security?: {
|
|
139
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
140
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
141
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
142
|
+
} | undefined;
|
|
143
|
+
readonly sign?: boolean | undefined;
|
|
144
|
+
readonly storeQueries?: boolean | undefined;
|
|
145
|
+
readonly timestamp?: boolean | undefined;
|
|
146
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
147
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
148
|
+
} & Omit<{
|
|
149
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
150
|
+
}, "schema">, "schema"> & {
|
|
151
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
152
|
+
}) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & Omit<{
|
|
153
|
+
accountDerivationPath?: string | undefined;
|
|
154
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
155
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
156
|
+
readonly name?: string | undefined;
|
|
157
|
+
readonly paging?: Record<string, {
|
|
158
|
+
size?: number | undefined;
|
|
159
|
+
}> | undefined;
|
|
160
|
+
readonly security?: {
|
|
161
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
162
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
163
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
readonly sign?: boolean | undefined;
|
|
166
|
+
readonly storeQueries?: boolean | undefined;
|
|
167
|
+
readonly timestamp?: boolean | undefined;
|
|
168
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
169
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
170
|
+
} & Omit<{
|
|
171
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
172
|
+
}, "schema">, "schema"> & {
|
|
173
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
174
|
+
} & object) | (import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
175
|
+
accountDerivationPath?: string | undefined;
|
|
176
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
177
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
178
|
+
readonly name?: string | undefined;
|
|
179
|
+
readonly paging?: Record<string, {
|
|
180
|
+
size?: number | undefined;
|
|
181
|
+
}> | undefined;
|
|
182
|
+
readonly security?: {
|
|
183
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
184
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
185
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
186
|
+
} | undefined;
|
|
187
|
+
readonly sign?: boolean | undefined;
|
|
188
|
+
readonly storeQueries?: boolean | undefined;
|
|
189
|
+
readonly timestamp?: boolean | undefined;
|
|
190
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
191
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
192
|
+
} & Omit<{
|
|
193
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
194
|
+
}, "schema">, "schema"> & {
|
|
195
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
196
|
+
} & import("@xyo-network/payload-model").PayloadMetaFields) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & Omit<{
|
|
197
|
+
accountDerivationPath?: string | undefined;
|
|
198
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
199
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
200
|
+
readonly name?: string | undefined;
|
|
201
|
+
readonly paging?: Record<string, {
|
|
202
|
+
size?: number | undefined;
|
|
203
|
+
}> | undefined;
|
|
204
|
+
readonly security?: {
|
|
205
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
206
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
207
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
208
|
+
} | undefined;
|
|
209
|
+
readonly sign?: boolean | undefined;
|
|
210
|
+
readonly storeQueries?: boolean | undefined;
|
|
211
|
+
readonly timestamp?: boolean | undefined;
|
|
212
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
213
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
214
|
+
} & Omit<{
|
|
215
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
216
|
+
}, "schema">, "schema"> & {
|
|
217
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
218
|
+
}), "schema">, "schema"> & {
|
|
219
|
+
schema: string;
|
|
220
|
+
} & object) | (import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
221
|
+
accountDerivationPath?: string | undefined;
|
|
222
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
223
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
224
|
+
readonly name?: string | undefined;
|
|
225
|
+
readonly paging?: Record<string, {
|
|
226
|
+
size?: number | undefined;
|
|
227
|
+
}> | undefined;
|
|
228
|
+
readonly security?: {
|
|
229
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
230
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
231
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
232
|
+
} | undefined;
|
|
233
|
+
readonly sign?: boolean | undefined;
|
|
234
|
+
readonly storeQueries?: boolean | undefined;
|
|
235
|
+
readonly timestamp?: boolean | undefined;
|
|
236
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
237
|
+
schema: string;
|
|
238
|
+
} & Omit<(import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
21
239
|
accountDerivationPath?: string | undefined;
|
|
22
240
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
23
241
|
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
@@ -39,11 +257,183 @@ export declare const NftCollectionScoreDivinerPlugin: () => import("@xyo-network
|
|
|
39
257
|
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
40
258
|
}, "schema">, "schema"> & {
|
|
41
259
|
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
42
|
-
}
|
|
260
|
+
}) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & Omit<{
|
|
261
|
+
accountDerivationPath?: string | undefined;
|
|
262
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
263
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
264
|
+
readonly name?: string | undefined;
|
|
265
|
+
readonly paging?: Record<string, {
|
|
266
|
+
size?: number | undefined;
|
|
267
|
+
}> | undefined;
|
|
268
|
+
readonly security?: {
|
|
269
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
270
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
271
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
272
|
+
} | undefined;
|
|
273
|
+
readonly sign?: boolean | undefined;
|
|
274
|
+
readonly storeQueries?: boolean | undefined;
|
|
275
|
+
readonly timestamp?: boolean | undefined;
|
|
276
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
277
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
278
|
+
} & Omit<{
|
|
279
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
280
|
+
}, "schema">, "schema"> & {
|
|
281
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
282
|
+
} & object) | (import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
283
|
+
accountDerivationPath?: string | undefined;
|
|
284
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
285
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
286
|
+
readonly name?: string | undefined;
|
|
287
|
+
readonly paging?: Record<string, {
|
|
288
|
+
size?: number | undefined;
|
|
289
|
+
}> | undefined;
|
|
290
|
+
readonly security?: {
|
|
291
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
292
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
293
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
294
|
+
} | undefined;
|
|
295
|
+
readonly sign?: boolean | undefined;
|
|
296
|
+
readonly storeQueries?: boolean | undefined;
|
|
297
|
+
readonly timestamp?: boolean | undefined;
|
|
298
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
299
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
300
|
+
} & Omit<{
|
|
301
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
302
|
+
}, "schema">, "schema"> & {
|
|
303
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
304
|
+
} & import("@xyo-network/payload-model").PayloadMetaFields) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & Omit<{
|
|
305
|
+
accountDerivationPath?: string | undefined;
|
|
306
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
307
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
308
|
+
readonly name?: string | undefined;
|
|
309
|
+
readonly paging?: Record<string, {
|
|
310
|
+
size?: number | undefined;
|
|
311
|
+
}> | undefined;
|
|
312
|
+
readonly security?: {
|
|
313
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
314
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
315
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
316
|
+
} | undefined;
|
|
317
|
+
readonly sign?: boolean | undefined;
|
|
318
|
+
readonly storeQueries?: boolean | undefined;
|
|
319
|
+
readonly timestamp?: boolean | undefined;
|
|
320
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
321
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
322
|
+
} & Omit<{
|
|
323
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
324
|
+
}, "schema">, "schema"> & {
|
|
325
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
326
|
+
}), "schema">, "schema"> & {
|
|
43
327
|
schema: string;
|
|
44
|
-
}
|
|
328
|
+
} & import("@xyo-network/payload-model").PayloadMetaFields) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & Omit<{
|
|
329
|
+
accountDerivationPath?: string | undefined;
|
|
330
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
331
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
332
|
+
readonly name?: string | undefined;
|
|
333
|
+
readonly paging?: Record<string, {
|
|
334
|
+
size?: number | undefined;
|
|
335
|
+
}> | undefined;
|
|
336
|
+
readonly security?: {
|
|
337
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
338
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
339
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
340
|
+
} | undefined;
|
|
341
|
+
readonly sign?: boolean | undefined;
|
|
342
|
+
readonly storeQueries?: boolean | undefined;
|
|
343
|
+
readonly timestamp?: boolean | undefined;
|
|
344
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
345
|
+
schema: string;
|
|
346
|
+
} & Omit<(import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
347
|
+
accountDerivationPath?: string | undefined;
|
|
348
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
349
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
350
|
+
readonly name?: string | undefined;
|
|
351
|
+
readonly paging?: Record<string, {
|
|
352
|
+
size?: number | undefined;
|
|
353
|
+
}> | undefined;
|
|
354
|
+
readonly security?: {
|
|
355
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
356
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
357
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
358
|
+
} | undefined;
|
|
359
|
+
readonly sign?: boolean | undefined;
|
|
360
|
+
readonly storeQueries?: boolean | undefined;
|
|
361
|
+
readonly timestamp?: boolean | undefined;
|
|
362
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
363
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
364
|
+
} & Omit<{
|
|
365
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
366
|
+
}, "schema">, "schema"> & {
|
|
367
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
368
|
+
}) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & Omit<{
|
|
369
|
+
accountDerivationPath?: string | undefined;
|
|
370
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
371
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
372
|
+
readonly name?: string | undefined;
|
|
373
|
+
readonly paging?: Record<string, {
|
|
374
|
+
size?: number | undefined;
|
|
375
|
+
}> | undefined;
|
|
376
|
+
readonly security?: {
|
|
377
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
378
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
379
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
380
|
+
} | undefined;
|
|
381
|
+
readonly sign?: boolean | undefined;
|
|
382
|
+
readonly storeQueries?: boolean | undefined;
|
|
383
|
+
readonly timestamp?: boolean | undefined;
|
|
384
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
385
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
386
|
+
} & Omit<{
|
|
387
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
388
|
+
}, "schema">, "schema"> & {
|
|
389
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
390
|
+
} & object) | (import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
391
|
+
accountDerivationPath?: string | undefined;
|
|
392
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
393
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
394
|
+
readonly name?: string | undefined;
|
|
395
|
+
readonly paging?: Record<string, {
|
|
396
|
+
size?: number | undefined;
|
|
397
|
+
}> | undefined;
|
|
398
|
+
readonly security?: {
|
|
399
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
400
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
401
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
402
|
+
} | undefined;
|
|
403
|
+
readonly sign?: boolean | undefined;
|
|
404
|
+
readonly storeQueries?: boolean | undefined;
|
|
405
|
+
readonly timestamp?: boolean | undefined;
|
|
406
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
407
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
408
|
+
} & Omit<{
|
|
409
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
410
|
+
}, "schema">, "schema"> & {
|
|
411
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
412
|
+
} & import("@xyo-network/payload-model").PayloadMetaFields) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & Omit<{
|
|
413
|
+
accountDerivationPath?: string | undefined;
|
|
414
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
415
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
416
|
+
readonly name?: string | undefined;
|
|
417
|
+
readonly paging?: Record<string, {
|
|
418
|
+
size?: number | undefined;
|
|
419
|
+
}> | undefined;
|
|
420
|
+
readonly security?: {
|
|
421
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
422
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
423
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
424
|
+
} | undefined;
|
|
425
|
+
readonly sign?: boolean | undefined;
|
|
426
|
+
readonly storeQueries?: boolean | undefined;
|
|
427
|
+
readonly timestamp?: boolean | undefined;
|
|
428
|
+
} & import("@xyo-network/module-model").ArchivingModuleConfig & {
|
|
429
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
430
|
+
} & Omit<{
|
|
431
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
432
|
+
}, "schema">, "schema"> & {
|
|
433
|
+
schema: "network.xyo.crypto.nft.collection.score.diviner.config";
|
|
434
|
+
}), "schema">, "schema"> & {
|
|
45
435
|
schema: string;
|
|
46
|
-
};
|
|
436
|
+
});
|
|
47
437
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
48
438
|
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
49
439
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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/node/index.js
CHANGED
|
@@ -23,7 +23,8 @@ __export(src_exports, {
|
|
|
23
23
|
NftCollectionScoreDiviner: () => NftCollectionScoreDiviner,
|
|
24
24
|
NftCollectionScoreDivinerPlugin: () => NftCollectionScoreDivinerPlugin,
|
|
25
25
|
analyzeNftCollection: () => analyzeNftCollection,
|
|
26
|
-
default: () => src_default
|
|
26
|
+
default: () => src_default,
|
|
27
|
+
scoringCriteria: () => scoringCriteria
|
|
27
28
|
});
|
|
28
29
|
module.exports = __toCommonJS(src_exports);
|
|
29
30
|
|
|
@@ -168,6 +169,7 @@ var src_default = NftCollectionScoreDivinerPlugin;
|
|
|
168
169
|
0 && (module.exports = {
|
|
169
170
|
NftCollectionScoreDiviner,
|
|
170
171
|
NftCollectionScoreDivinerPlugin,
|
|
171
|
-
analyzeNftCollection
|
|
172
|
+
analyzeNftCollection,
|
|
173
|
+
scoringCriteria
|
|
172
174
|
});
|
|
173
175
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Diviner.ts","../../src/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.ts","../../src/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.ts","../../src/lib/rating/criteria/scoring/metadata/metadata.ts","../../src/lib/rating/criteria/scoring/total.ts","../../src/lib/rating/criteria/index.ts","../../src/lib/rating/analyzeNftCollection.ts"],"sourcesContent":["import { NftCollectionScoreDivinerPlugin } from './Plugin'\n\nexport * from './Diviner'\nexport * from './lib'\n\nexport { NftCollectionScoreDivinerPlugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default NftCollectionScoreDivinerPlugin\n","import { NftSchema } from '@xyo-network/crypto-nft-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetDivinerPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NftCollectionScoreDiviner } from './Diviner'\n\nexport const NftCollectionScoreDivinerPlugin = () =>\n createPayloadSetDivinerPlugin<NftCollectionScoreDiviner>(\n { required: { [NftSchema]: 1 }, schema: PayloadSetSchema },\n {\n diviner: async (params) => {\n const result = await NftCollectionScoreDiviner.create(params)\n return result\n },\n },\n )\n","import { AbstractDiviner } from '@xyo-network/abstract-diviner'\nimport { PayloadHasher } from '@xyo-network/core'\nimport {\n isNftCollectionInfo,\n NftCollectionInfo,\n NftCollectionMetadata,\n NftCollectionScore,\n NftCollectionScoreDivinerConfig,\n NftCollectionScoreDivinerConfigSchema,\n NftCollectionScoreSchema,\n} from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { analyzeNftCollection, NftCollectionAnalysis } from './lib'\n\nexport type NftCollectionScoreDivinerParams = DivinerParams<AnyConfigSchema<NftCollectionScoreDivinerConfig>>\n\nconst toNftCollectionScore = (nftCollectionInfo: NftCollectionInfo, scores: NftCollectionAnalysis): NftCollectionScore => {\n const { name, symbol, address, chainId, type } = nftCollectionInfo\n const metadata: NftCollectionMetadata = { address, chainId, name, symbol, type }\n return { ...metadata, schema: NftCollectionScoreSchema, scores }\n}\n\nexport class NftCollectionScoreDiviner<\n TParams extends NftCollectionScoreDivinerParams = NftCollectionScoreDivinerParams,\n> extends AbstractDiviner<TParams> {\n static override configSchemas = [NftCollectionScoreDivinerConfigSchema]\n\n protected override divineHandler = async (payloads?: Payload[]): Promise<Payload[]> => {\n const nftCollectionInfos = payloads?.filter(isNftCollectionInfo) ?? []\n const results = await Promise.all(\n nftCollectionInfos.map<Promise<NftCollectionScore>>(async (nftCollectionInfo) => {\n const [score, sourceHash] = await Promise.all([\n // Get score\n toNftCollectionScore(nftCollectionInfo, await analyzeNftCollection(nftCollectionInfo)),\n // Hash sources\n PayloadHasher.hashAsync(nftCollectionInfo),\n ])\n return { ...score, schema: NftCollectionScoreSchema, sources: [sourceHash] } as NftCollectionScore\n }),\n )\n return results\n }\n}\n","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","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","import { NftCollectionInfo } from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { WeightedScoringCriteria } from '@xyo-network/crypto-nft-score-model'\n\nimport { scoreIndividualAttributes } from './scoreIndividualAttributes'\nimport { scoreTotalAttributes } from './scoreTotalAttributes'\n\nexport const attributeScoringCriteria: { [key: string]: WeightedScoringCriteria<NftCollectionInfo> } = {\n 'Metadata Attributes Individual': { score: scoreIndividualAttributes, weight: 2 },\n 'Metadata Attributes Total': { score: scoreTotalAttributes, weight: 2 },\n}\n\nexport const scoreMetadata: { [key: string]: WeightedScoringCriteria<NftCollectionInfo> } = {\n ...attributeScoringCriteria,\n}\n","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","import { NftCollectionInfo } from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { WeightedScoringCriteria } from '@xyo-network/crypto-nft-score-model'\n\nimport { scoreMetadata, scoreTotal } from './scoring'\n\nexport const scoringCriteria: { [key: string]: WeightedScoringCriteria<NftCollectionInfo> } = {\n ...scoreMetadata,\n Total: { score: scoreTotal, weight: 2 },\n}\n","import { NftCollectionInfo } from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { Score } from '@xyo-network/crypto-nft-score-model'\n\nimport { scoringCriteria } from './criteria'\n\nexport type ScoringCriteriaKey = keyof typeof scoringCriteria & PropertyKey\n\nexport type NftCollectionAnalysis = {\n [key in ScoringCriteriaKey]: Score\n}\n\nexport const analyzeNftCollection = async (\n /**\n * The NFT to evaluate\n */\n nft: NftCollectionInfo,\n): Promise<NftCollectionAnalysis> => {\n const result = Object.fromEntries(\n await Promise.all(\n Object.entries(scoringCriteria).map(async ([key, { score, weight }]) => {\n const rawScore = await score(nft)\n const weighted = rawScore.map((v) => v * weight) as Score\n return [key, weighted] as const\n }),\n ),\n ) as NftCollectionAnalysis\n return result\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,uCAA0B;AAC1B,2BAAiC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YAAM,SAAS,MAAM,0BAA0B,OAAO,MAAM;AAC5D,aAAO;AAAA,IACT;AAAA,EACF;AACF;;;ADPF,IAAO,cAAQ;","names":["import_crypto_nft_score_model","maxScore","import_crypto_nft_score_model","defaultMu","defaultSigma","maxProbabilityDensity","maxScore"]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Diviner.ts","../../src/lib/rating/criteria/scoring/metadata/scoreIndividualAttributes.ts","../../src/lib/rating/criteria/scoring/metadata/scoreTotalAttributes.ts","../../src/lib/rating/criteria/scoring/metadata/metadata.ts","../../src/lib/rating/criteria/scoring/total.ts","../../src/lib/rating/criteria/index.ts","../../src/lib/rating/analyzeNftCollection.ts"],"sourcesContent":["import { NftCollectionScoreDivinerPlugin } from './Plugin'\n\nexport * from './Diviner'\nexport * from './lib'\n\nexport { NftCollectionScoreDivinerPlugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default NftCollectionScoreDivinerPlugin\n","import { NftSchema } from '@xyo-network/crypto-nft-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetDivinerPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NftCollectionScoreDiviner } from './Diviner'\n\nexport const NftCollectionScoreDivinerPlugin = () =>\n createPayloadSetDivinerPlugin<NftCollectionScoreDiviner>(\n { required: { [NftSchema]: 1 }, schema: PayloadSetSchema },\n {\n diviner: async (params) => {\n const result = await NftCollectionScoreDiviner.create(params)\n return result\n },\n },\n )\n","import { AbstractDiviner } from '@xyo-network/abstract-diviner'\nimport { PayloadHasher } from '@xyo-network/core'\nimport {\n isNftCollectionInfo,\n NftCollectionInfo,\n NftCollectionMetadata,\n NftCollectionScore,\n NftCollectionScoreDivinerConfig,\n NftCollectionScoreDivinerConfigSchema,\n NftCollectionScoreSchema,\n} from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { analyzeNftCollection, NftCollectionAnalysis } from './lib'\n\nexport type NftCollectionScoreDivinerParams = DivinerParams<AnyConfigSchema<NftCollectionScoreDivinerConfig>>\n\nconst toNftCollectionScore = (nftCollectionInfo: NftCollectionInfo, scores: NftCollectionAnalysis): NftCollectionScore => {\n const { name, symbol, address, chainId, type } = nftCollectionInfo\n const metadata: NftCollectionMetadata = { address, chainId, name, symbol, type }\n return { ...metadata, schema: NftCollectionScoreSchema, scores }\n}\n\nexport class NftCollectionScoreDiviner<\n TParams extends NftCollectionScoreDivinerParams = NftCollectionScoreDivinerParams,\n> extends AbstractDiviner<TParams> {\n static override configSchemas = [NftCollectionScoreDivinerConfigSchema]\n\n protected override divineHandler = async (payloads?: Payload[]): Promise<Payload[]> => {\n const nftCollectionInfos = payloads?.filter(isNftCollectionInfo) ?? []\n const results = await Promise.all(\n nftCollectionInfos.map<Promise<NftCollectionScore>>(async (nftCollectionInfo) => {\n const [score, sourceHash] = await Promise.all([\n // Get score\n toNftCollectionScore(nftCollectionInfo, await analyzeNftCollection(nftCollectionInfo)),\n // Hash sources\n PayloadHasher.hashAsync(nftCollectionInfo),\n ])\n return { ...score, schema: NftCollectionScoreSchema, sources: [sourceHash] } as NftCollectionScore\n }),\n )\n return results\n }\n}\n","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","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","import { NftCollectionInfo } from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { WeightedScoringCriteria } from '@xyo-network/crypto-nft-score-model'\n\nimport { scoreIndividualAttributes } from './scoreIndividualAttributes'\nimport { scoreTotalAttributes } from './scoreTotalAttributes'\n\nexport const attributeScoringCriteria: { [key: string]: WeightedScoringCriteria<NftCollectionInfo> } = {\n 'Metadata Attributes Individual': { score: scoreIndividualAttributes, weight: 2 },\n 'Metadata Attributes Total': { score: scoreTotalAttributes, weight: 2 },\n}\n\nexport const scoreMetadata: { [key: string]: WeightedScoringCriteria<NftCollectionInfo> } = {\n ...attributeScoringCriteria,\n}\n","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","import { NftCollectionInfo } from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { WeightedScoringCriteria } from '@xyo-network/crypto-nft-score-model'\n\nimport { scoreMetadata, scoreTotal } from './scoring'\n\nexport const scoringCriteria: { [key: string]: WeightedScoringCriteria<NftCollectionInfo> } = {\n ...scoreMetadata,\n Total: { score: scoreTotal, weight: 2 },\n}\n","import { NftCollectionInfo } from '@xyo-network/crypto-nft-collection-payload-plugin'\nimport { Score } from '@xyo-network/crypto-nft-score-model'\n\nimport { scoringCriteria } from './criteria'\n\nexport type ScoringCriteriaKey = keyof typeof scoringCriteria & PropertyKey\n\nexport type NftCollectionAnalysis = {\n [key in ScoringCriteriaKey]: Score\n}\n\nexport const analyzeNftCollection = async (\n /**\n * The NFT to evaluate\n */\n nft: NftCollectionInfo,\n): Promise<NftCollectionAnalysis> => {\n const result = Object.fromEntries(\n await Promise.all(\n Object.entries(scoringCriteria).map(async ([key, { score, weight }]) => {\n const rawScore = await score(nft)\n const weighted = rawScore.map((v) => v * weight) as Score\n return [key, weighted] as const\n }),\n ),\n ) as NftCollectionAnalysis\n return result\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,uCAA0B;AAC1B,2BAAiC;AACjC,+BAA8C;;;ACF9C,8BAAgC;AAChC,kBAA8B;AAC9B,kDAQO;;;ACTP,oCAAiC;AAEjC,IAAM,WAAW;AAEV,IAAM,4BAA4B,CAAC,SAA+C;AACvF,QAAM,EAAE,WAAW,IAAI,KAAK,QAAQ;AACpC,QAAM,UAAU,OAAO,QAAQ,UAAU;AACzC,MAAI,QAAQ,WAAW;AAAG,W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AO,CAAC,KAAK,QAAQ;AAAA,MACvB,CAAC;AAAA,IACH;AAAA,EACF;AACA,SAAO;AACT;;;ANRA,IAAM,uBAAuB,CAAC,mBAAsC,WAAsD;AACxH,QAAM,EAAE,MAAM,QAAQ,SAAS,SAAS,KAAK,IAAI;AACjD,QAAM,WAAkC,EAAE,SAAS,SAAS,MAAM,QAAQ,KAAK;AAC/E,SAAO,EAAE,GAAG,UAAU,QAAQ,sEAA0B,OAAO;AACjE;AAEO,IAAM,4BAAN,cAEG,wCAAyB;AAAA,EACjC,OAAgB,gBAAgB,CAAC,iFAAqC;AAAA,EAEnD,gBAAgB,OAAO,aAA6C;AACrF,UAAM,sBAAqB,qCAAU,OAAO,qEAAwB,CAAC;AACrE,UAAM,UAAU,MAAM,QAAQ;AAAA,MAC5B,mBAAmB,IAAiC,OAAO,sBAAsB;AAC/E,cAAM,CAAC,OAAO,UAAU,IAAI,MAAM,QAAQ,IAAI;AAAA;AAAA,UAE5C,qBAAqB,mBAAmB,MAAM,qBAAqB,iBAAiB,CAAC;AAAA;AAAA,UAErF,0BAAc,UAAU,iBAAiB;AAAA,QAC3C,CAAC;AACD,eAAO,EAAE,GAAG,OAAO,QAAQ,sEAA0B,SAAS,CAAC,UAAU,EAAE;AAAA,MAC7E,CAAC;AAAA,IACH;AACA,WAAO;AAAA,EACT;AACF;;;ADvCO,IAAM,kCAAkC,UAC7C;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,0CAAS,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EACzD;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,0BAA0B,OAAO,MAAM;AAC5D,aAAO;AAAA,IACT;AAAA,EACF;AACF;;;ADPF,IAAO,cAAQ;","names":["import_crypto_nft_score_model","maxScore","import_crypto_nft_score_model","defaultMu","defaultSigma","maxProbabilityDensity","maxScore"]}
|
package/dist/node/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/rating/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/rating/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/rating/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/rating/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/rating/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/rating/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,YAAY,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,25 +10,25 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/plugins/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-model": "^2.
|
|
20
|
-
"@xyo-network/payload-model": "^2.
|
|
21
|
-
"@xyo-network/payloadset-plugin": "^2.
|
|
13
|
+
"@xyo-network/abstract-diviner": "^2.84.0",
|
|
14
|
+
"@xyo-network/core": "^2.84.0",
|
|
15
|
+
"@xyo-network/crypto-nft-collection-payload-plugin": "~2.84.0",
|
|
16
|
+
"@xyo-network/crypto-nft-payload-plugin": "~2.84.0",
|
|
17
|
+
"@xyo-network/crypto-nft-score-model": "~2.84.0",
|
|
18
|
+
"@xyo-network/diviner-model": "^2.84.0",
|
|
19
|
+
"@xyo-network/module-model": "^2.84.0",
|
|
20
|
+
"@xyo-network/payload-model": "^2.84.0",
|
|
21
|
+
"@xyo-network/payloadset-plugin": "^2.84.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@xylabs/jest-helpers": "^2.13.20",
|
|
25
25
|
"@xylabs/ts-scripts-yarn3": "^3.2.10",
|
|
26
26
|
"@xylabs/tsconfig": "^3.2.10",
|
|
27
|
-
"@xyo-network/account": "^2.
|
|
28
|
-
"@xyo-network/payload-wrapper": "^2.
|
|
27
|
+
"@xyo-network/account": "^2.84.0",
|
|
28
|
+
"@xyo-network/payload-wrapper": "^2.84.0",
|
|
29
29
|
"ethers": "^6.9.0",
|
|
30
30
|
"jest": "^29.7.0",
|
|
31
|
-
"typescript": "^5.3.
|
|
31
|
+
"typescript": "^5.3.3"
|
|
32
32
|
},
|
|
33
33
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
34
34
|
"docs": "dist/docs.json",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
71
71
|
},
|
|
72
72
|
"sideEffects": false,
|
|
73
|
-
"version": "2.
|
|
73
|
+
"version": "2.84.0"
|
|
74
74
|
}
|
package/src/lib/rating/index.ts
CHANGED