@xyo-network/crypto-nft-collection-payload-plugin
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -1,111 +0,7 @@ | ||
import { DivinerConfig } from '@xyo-network/diviner-model'; | ||
import * as _xyo_network_payload_model from '@xyo-network/payload-model'; | ||
import { Payload } from '@xyo-network/payload-model'; | ||
import { Hash } from '@xylabs/hex'; | ||
import { NftContractInformation } from '@xyo-network/crypto-nft-payload-plugin'; | ||
import * as _xyo_network_payload_plugin from '@xyo-network/payload-plugin'; | ||
import { WitnessConfig } from '@xyo-network/witness-model'; | ||
type NftCollectionSchema = 'network.xyo.crypto.nft.collection'; | ||
declare const NftCollectionSchema: NftCollectionSchema; | ||
type NftCollectionScoreSchema = `${NftCollectionSchema}.score`; | ||
declare const NftCollectionScoreSchema: NftCollectionScoreSchema; | ||
type NftCollectionScoreDivinerConfigSchema = `${NftCollectionScoreSchema}.diviner.config`; | ||
declare const NftCollectionScoreDivinerConfigSchema: NftCollectionScoreDivinerConfigSchema; | ||
type NftCollectionScoreDivinerConfig = DivinerConfig<{ | ||
schema: NftCollectionScoreDivinerConfigSchema; | ||
}>; | ||
interface BinomialDistributionParameters { | ||
mean: number; | ||
p: number; | ||
stdDev: number; | ||
variance: number; | ||
} | ||
interface NftTraitMetrics { | ||
binomial: Pick<BinomialDistributionParameters, 'p'>; | ||
count: number; | ||
} | ||
interface NftCollectionMetrics { | ||
metadata: { | ||
attributes: { | ||
[trait: string]: { | ||
metrics: NftTraitMetrics; | ||
values: { | ||
[traitValue: string]: NftTraitMetrics; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} | ||
interface NftCollectionAttributeMetrics { | ||
metrics: NftCollectionMetrics; | ||
} | ||
interface NftCollectionCount { | ||
total: number; | ||
} | ||
interface NftCollectionMetadata extends NftContractInformation { | ||
name: string; | ||
symbol: string; | ||
} | ||
type NftCollectionInfoFields = NftCollectionCount & NftCollectionMetadata & NftCollectionAttributeMetrics & { | ||
sources?: string[]; | ||
}; | ||
type NftCollectionInfo = Payload<NftCollectionInfoFields, NftCollectionSchema>; | ||
declare const isNftCollectionInfo: (payload: Payload) => payload is NftCollectionInfo; | ||
type NftCollectionAnalysis = Record<string, [score: number, total: number]>; | ||
interface NftCollectionScores { | ||
scores: NftCollectionAnalysis; | ||
} | ||
type NftCollectionScoreFields = NftCollectionMetadata & NftCollectionScores & { | ||
sources?: Hash[]; | ||
}; | ||
type NftCollectionScore = Payload<NftCollectionScoreFields, NftCollectionScoreSchema>; | ||
declare const isNftCollectionScore: (x?: unknown | null) => x is _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & NftCollectionMetadata & NftCollectionScores & { | ||
sources?: Hash[]; | ||
} & { | ||
schema: "network.xyo.crypto.nft.collection.score"; | ||
}; | ||
declare const isNftCollectionScoreWithMeta: (x?: unknown | null) => x is _xyo_network_payload_model.WithMeta<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & NftCollectionMetadata & NftCollectionScores & { | ||
sources?: Hash[]; | ||
} & { | ||
schema: "network.xyo.crypto.nft.collection.score"; | ||
}, void>; | ||
declare const NftCollectionInfoPayloadPlugin: () => _xyo_network_payload_plugin.PayloadPlugin<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & NftCollectionCount & NftCollectionMetadata & NftCollectionAttributeMetrics & { | ||
sources?: string[]; | ||
} & { | ||
schema: "network.xyo.crypto.nft.collection"; | ||
}>; | ||
declare const cryptoNftCollectionPayloadTemplate: () => Partial<NftCollectionInfo>; | ||
type NftCollectionWitnessConfigSchema = `${NftCollectionSchema}.witness.config`; | ||
declare const NftCollectionWitnessConfigSchema: NftCollectionWitnessConfigSchema; | ||
type NftCollectionWitnessQuerySchema = `${NftCollectionSchema}.witness.query`; | ||
declare const NftCollectionWitnessQuerySchema: NftCollectionWitnessQuerySchema; | ||
type NftCollectionWitnessConfig = WitnessConfig<{ | ||
address?: string; | ||
chainId?: number; | ||
schema: NftCollectionWitnessConfigSchema; | ||
}>; | ||
type NftCollectionWitnessQuery = Payload<{ | ||
address?: string; | ||
chainId?: number; | ||
maxNfts?: number; | ||
}, NftCollectionWitnessQuerySchema>; | ||
declare const isNftCollectionWitnessQuery: (x?: Payload | null) => x is NftCollectionWitnessQuery; | ||
export { type BinomialDistributionParameters, type NftCollectionAnalysis, type NftCollectionAttributeMetrics, type NftCollectionCount, type NftCollectionInfo, type NftCollectionInfoFields, NftCollectionInfoPayloadPlugin, type NftCollectionMetadata, type NftCollectionMetrics, NftCollectionSchema, type NftCollectionScore, type NftCollectionScoreDivinerConfig, NftCollectionScoreDivinerConfigSchema, type NftCollectionScoreFields, NftCollectionScoreSchema, type NftCollectionScores, type NftCollectionWitnessConfig, NftCollectionWitnessConfigSchema, type NftCollectionWitnessQuery, NftCollectionWitnessQuerySchema, type NftTraitMetrics, cryptoNftCollectionPayloadTemplate, NftCollectionInfoPayloadPlugin as default, isNftCollectionInfo, isNftCollectionScore, isNftCollectionScoreWithMeta, isNftCollectionWitnessQuery }; | ||
export * from './Diviner/index.ts'; | ||
export * from './Payload/index.ts'; | ||
export { NftCollectionInfoPayloadPlugin as default, NftCollectionInfoPayloadPlugin } from './Plugin.ts'; | ||
export * from './Schema.ts'; | ||
export * from './Template.ts'; | ||
export * from './Witness/index.ts'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@xyo-network/crypto-nft-collection-payload-plugin", | ||
"version": "3.0.4", | ||
"description": "Typescript/Javascript Plugins for XYO Platform", | ||
"homepage": "https://xyo.network", | ||
"bugs": { | ||
"url": "git+https://github.com/XYOracleNetwork/plugins/issues", | ||
"email": "support@xyo.network" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/XYOracleNetwork/plugins.git" | ||
}, | ||
"license": "LGPL-3.0-only", | ||
"author": { | ||
"name": "XYO Development Team", | ||
"email": "support@xyo.network", | ||
"name": "XYO Development Team", | ||
"url": "https://xyo.network" | ||
}, | ||
"bugs": { | ||
"email": "support@xyo.network", | ||
"url": "git+https://github.com/XYOracleNetwork/plugins/issues" | ||
}, | ||
"dependencies": { | ||
"@xylabs/hex": "^4.0.2", | ||
"@xyo-network/crypto-nft-payload-plugin": "^3.0.3", | ||
"@xyo-network/diviner-model": "^3.0.3", | ||
"@xyo-network/payload-model": "^3.0.3", | ||
"@xyo-network/payload-plugin": "^3.0.3", | ||
"@xyo-network/witness-model": "^3.0.3" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20", | ||
"@xylabs/tsconfig": "^4.0.0-rc.20", | ||
"typescript": "^5.5.4" | ||
}, | ||
"description": "Typescript/Javascript Plugins for XYO Platform", | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
@@ -35,14 +31,18 @@ ".": { | ||
"types": "dist/neutral/index.d.ts", | ||
"homepage": "https://xyo.network", | ||
"license": "LGPL-3.0-only", | ||
"dependencies": { | ||
"@xylabs/hex": "^4.0.4", | ||
"@xyo-network/crypto-nft-payload-plugin": "^3.0.4", | ||
"@xyo-network/diviner-model": "^3.0.10", | ||
"@xyo-network/payload-model": "^3.0.10", | ||
"@xyo-network/payload-plugin": "^3.0.10", | ||
"@xyo-network/witness-model": "^3.0.10" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^4.0.7", | ||
"@xylabs/tsconfig": "^4.0.7", | ||
"typescript": "^5.5.4" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/XYOracleNetwork/plugins.git" | ||
}, | ||
"sideEffects": false, | ||
"version": "3.0.3", | ||
"type": "module" | ||
} | ||
} |
import type { NftCollectionInfo } from './Payload/index.ts' | ||
import { NftCollectionSchema } from './Schema.ts' | ||
export const cryptoNftCollectionPayloadTemplate = (): Partial<NftCollectionInfo> => ({ | ||
schema: NftCollectionSchema, | ||
}) | ||
export const cryptoNftCollectionPayloadTemplate = (): Partial<NftCollectionInfo> => ({ schema: NftCollectionSchema }) |
@@ -5,5 +5,3 @@ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3' | ||
browser: {}, | ||
neutral: { | ||
src: true, | ||
}, | ||
neutral: { src: true }, | ||
node: {}, | ||
@@ -10,0 +8,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37271
76
339