@xyo-network/crypto-nft-collection-witness-plugin 3.4.2 → 3.4.4
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/types/Plugin.d.ts +4 -0
- package/dist/types/Plugin.d.ts.map +1 -0
- package/dist/types/Witness.d.ts +11 -0
- package/dist/types/Witness.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/collectionMetrics/getNftCollectionMetrics.d.ts +4 -0
- package/dist/types/lib/collectionMetrics/getNftCollectionMetrics.d.ts.map +1 -0
- package/dist/types/lib/collectionMetrics/index.d.ts +2 -0
- package/dist/types/lib/collectionMetrics/index.d.ts.map +1 -0
- package/dist/types/lib/collectionMetrics/lib/calculateAllPropertiesDistribution.d.ts +3 -0
- package/dist/types/lib/collectionMetrics/lib/calculateAllPropertiesDistribution.d.ts.map +1 -0
- package/dist/types/lib/collectionMetrics/lib/calculatePropertyDistribution.d.ts +3 -0
- package/dist/types/lib/collectionMetrics/lib/calculatePropertyDistribution.d.ts.map +1 -0
- package/dist/types/lib/collectionMetrics/lib/distribution.d.ts +6 -0
- package/dist/types/lib/collectionMetrics/lib/distribution.d.ts.map +1 -0
- package/dist/types/lib/collectionMetrics/lib/index.d.ts +4 -0
- package/dist/types/lib/collectionMetrics/lib/index.d.ts.map +1 -0
- package/dist/types/lib/collectionMetrics/lib/probabilityDistributions/binomial/calculateBinomialParamsFromOutcomes.d.ts +8 -0
- package/dist/types/lib/collectionMetrics/lib/probabilityDistributions/binomial/calculateBinomialParamsFromOutcomes.d.ts.map +1 -0
- package/dist/types/lib/collectionMetrics/lib/probabilityDistributions/binomial/calculateBinomialParamsFromProbability.d.ts +9 -0
- package/dist/types/lib/collectionMetrics/lib/probabilityDistributions/binomial/calculateBinomialParamsFromProbability.d.ts.map +1 -0
- package/dist/types/lib/collectionMetrics/lib/probabilityDistributions/binomial/index.d.ts +3 -0
- package/dist/types/lib/collectionMetrics/lib/probabilityDistributions/binomial/index.d.ts.map +1 -0
- package/dist/types/lib/collectionMetrics/lib/probabilityDistributions/index.d.ts +2 -0
- package/dist/types/lib/collectionMetrics/lib/probabilityDistributions/index.d.ts.map +1 -0
- package/dist/types/lib/contractHasFunctions.d.ts +3 -0
- package/dist/types/lib/contractHasFunctions.d.ts.map +1 -0
- package/dist/types/lib/getNftCollectionNfts.d.ts +18 -0
- package/dist/types/lib/getNftCollectionNfts.d.ts.map +1 -0
- package/dist/types/lib/index.d.ts +5 -0
- package/dist/types/lib/index.d.ts.map +1 -0
- package/dist/types/lib/nonEvaluableContractAddresses.d.ts +6 -0
- package/dist/types/lib/nonEvaluableContractAddresses.d.ts.map +1 -0
- package/dist/types/lib/tokenTypes.d.ts +6 -0
- package/dist/types/lib/tokenTypes.d.ts.map +1 -0
- package/dist/types/lib/tryCall.d.ts +2 -0
- package/dist/types/lib/tryCall.d.ts.map +1 -0
- package/package.json +26 -26
- package/dist/browser/index.d.ts +0 -27
- package/dist/neutral/index.d.ts +0 -27
- package/dist/node/index.d.ts +0 -27
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin';
|
|
2
|
+
import { CryptoNftCollectionWitness } from './Witness.ts';
|
|
3
|
+
export declare const CryptoNftCollectionWitnessPlugin: () => PayloadSetWitnessPlugin<CryptoNftCollectionWitness>;
|
|
4
|
+
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAG7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA;AAEzD,eAAO,MAAM,gCAAgC,QAAO,uBAAuB,CAAC,0BAA0B,CASnG,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { NftCollectionInfo, NftCollectionWitnessConfig, NftCollectionWitnessQuery } from '@xyo-network/crypto-nft-collection-payload-plugin';
|
|
2
|
+
import type { Schema } from '@xyo-network/payload-model';
|
|
3
|
+
import type { EvmWitnessParams } from '@xyo-network/witness-evm-abstract';
|
|
4
|
+
import { AbstractEvmWitness } from '@xyo-network/witness-evm-abstract';
|
|
5
|
+
export type CryptoNftCollectionWitnessParams = EvmWitnessParams<NftCollectionWitnessConfig>;
|
|
6
|
+
export declare class CryptoNftCollectionWitness<TParams extends CryptoNftCollectionWitnessParams = CryptoNftCollectionWitnessParams> extends AbstractEvmWitness<TParams, NftCollectionWitnessQuery, NftCollectionInfo> {
|
|
7
|
+
static readonly configSchemas: Schema[];
|
|
8
|
+
static readonly defaultConfigSchema: Schema;
|
|
9
|
+
protected observeHandler(payloads?: NftCollectionWitnessQuery[]): Promise<NftCollectionInfo[]>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EACjB,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,mDAAmD,CAAA;AAQ1D,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAMtE,MAAM,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,0BAA0B,CAAC,CAAA;AAoB3F,qBAAa,0BAA0B,CACrC,OAAO,SAAS,gCAAgC,GAAG,gCAAgC,CACnF,SAAQ,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,CAAC;IACjF,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA6D;IAC7G,gBAAyB,mBAAmB,EAAE,MAAM,CAAmC;cAE9D,cAAc,CAAC,QAAQ,CAAC,EAAE,yBAAyB,EAAE,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;CAkD9G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,gCAAgC,EAAE,gCAAgC,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA;AAC3G,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NftCollectionMetrics } from '@xyo-network/crypto-nft-collection-payload-plugin';
|
|
2
|
+
import type { NftInfoFields } from '@xyo-network/crypto-nft-payload-plugin';
|
|
3
|
+
export declare const getNftCollectionMetrics: (nfts: NftInfoFields[]) => NftCollectionMetrics;
|
|
4
|
+
//# sourceMappingURL=getNftCollectionMetrics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNftCollectionMetrics.d.ts","sourceRoot":"","sources":["../../../../src/lib/collectionMetrics/getNftCollectionMetrics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAmB,MAAM,mDAAmD,CAAA;AAC9G,OAAO,KAAK,EAAE,aAAa,EAAuB,MAAM,wCAAwC,CAAA;AAMhG,eAAO,MAAM,uBAAuB,GAAI,MAAM,aAAa,EAAE,KAAG,oBA0B/D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/collectionMetrics/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateAllPropertiesDistribution.d.ts","sourceRoot":"","sources":["../../../../../src/lib/collectionMetrics/lib/calculateAllPropertiesDistribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,kCAAkC,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,KAAG,YAAY,CAAC,CAAC,CAsBhF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculatePropertyDistribution.d.ts","sourceRoot":"","sources":["../../../../../src/lib/collectionMetrics/lib/calculatePropertyDistribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,6BAA6B,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,UAAU,MAAM,CAAC,KAAG,YAAY,CAAC,CAAC,CAgB9F,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distribution.d.ts","sourceRoot":"","sources":["../../../../../src/lib/collectionMetrics/lib/distribution.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;CAC7C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/collectionMetrics/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAA;AACvD,cAAc,mBAAmB,CAAA;AACjC,cAAc,qCAAqC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BinomialDistributionParameters } from '@xyo-network/crypto-nft-collection-payload-plugin';
|
|
2
|
+
/**
|
|
3
|
+
* Calculates the parameters of a binomial distribution given a list of outcomes
|
|
4
|
+
* @param outcomes List of outcomes, where 1 is a success and 0 is a failure
|
|
5
|
+
* @returns The mean, standard deviation, and variance of the binomial distribution
|
|
6
|
+
*/
|
|
7
|
+
export declare const calculateBinomialParamsFromOutcomes: (outcomes: number[]) => BinomialDistributionParameters;
|
|
8
|
+
//# sourceMappingURL=calculateBinomialParamsFromOutcomes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateBinomialParamsFromOutcomes.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/collectionMetrics/lib/probabilityDistributions/binomial/calculateBinomialParamsFromOutcomes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mDAAmD,CAAA;AAEvG;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,GAAI,UAAU,MAAM,EAAE,KAAG,8BAcxE,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BinomialDistributionParameters } from '@xyo-network/crypto-nft-collection-payload-plugin';
|
|
2
|
+
/**
|
|
3
|
+
* Calculates the parameters of a binomial distribution given the number of trials and success probability
|
|
4
|
+
* @param n Number of trials
|
|
5
|
+
* @param p Success probability
|
|
6
|
+
* @returns The binomial distribution parameters
|
|
7
|
+
*/
|
|
8
|
+
export declare const calculateBinomialParamsFromProbability: (n: number, p: number) => BinomialDistributionParameters;
|
|
9
|
+
//# sourceMappingURL=calculateBinomialParamsFromProbability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateBinomialParamsFromProbability.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/collectionMetrics/lib/probabilityDistributions/binomial/calculateBinomialParamsFromProbability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mDAAmD,CAAA;AAEvG;;;;;GAKG;AACH,eAAO,MAAM,sCAAsC,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,8BAa7E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/collectionMetrics/lib/probabilityDistributions/binomial/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAA;AACxD,cAAc,6CAA6C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/collectionMetrics/lib/probabilityDistributions/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contractHasFunctions.d.ts","sourceRoot":"","sources":["../../../src/lib/contractHasFunctions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEjD,eAAO,MAAM,oBAAoB,GAAU,UAAU,QAAQ,EAAE,SAAS,MAAM,EAAE,mBAAmB,SAAS,EAAE,eAAe,MAAM,EAAE,qBAapI,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { NftInfo, TokenType } from '@xyo-network/crypto-nft-payload-plugin';
|
|
2
|
+
import type { Provider } from 'ethers';
|
|
3
|
+
export declare const getNftCollectionNfts: (
|
|
4
|
+
/**
|
|
5
|
+
* The address of the NFT contract to search for
|
|
6
|
+
*/
|
|
7
|
+
contractAddress: string,
|
|
8
|
+
/**
|
|
9
|
+
* The chain ID (1 = Ethereum Mainnet, 4 = Rinkeby, etc.) of the chain to search for NFTs on
|
|
10
|
+
*/
|
|
11
|
+
provider: Provider, types?: TokenType[],
|
|
12
|
+
/**
|
|
13
|
+
* The maximum number of NFTs to return. Configurable to prevent
|
|
14
|
+
* large wallets from exhausting Infura API credits. Ideally a
|
|
15
|
+
* multiple of 100 as that appears to be the default page size.
|
|
16
|
+
*/
|
|
17
|
+
maxNfts?: number) => Promise<NftInfo[]>;
|
|
18
|
+
//# sourceMappingURL=getNftCollectionNfts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNftCollectionNfts.d.ts","sourceRoot":"","sources":["../../../src/lib/getNftCollectionNfts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,OAAO,EAAe,SAAS,EAChC,MAAM,wCAAwC,CAAA;AAQ/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAWtC,eAAO,MAAM,oBAAoB;AAC/B;;GAEG;AACH,iBAAiB,MAAM;AACvB;;GAEG;AACH,UAAU,QAAQ,EAClB,QAAQ,SAAS,EAAE;AACnB;;;;GAIG;AACH,gBAAa,KACZ,OAAO,CAAC,OAAO,EAAE,CAsEnB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nonEvaluableContractAddresses.d.ts","sourceRoot":"","sources":["../../../src/lib/nonEvaluableContractAddresses.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,6BAA6B,UAGH,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TokenType } from '@xyo-network/crypto-nft-payload-plugin';
|
|
2
|
+
import type { Provider } from 'ethers';
|
|
3
|
+
export declare const isErc1155: (provider: Provider, address: string) => Promise<boolean>;
|
|
4
|
+
export declare const isErc721: (provider: Provider, address: string) => Promise<boolean>;
|
|
5
|
+
export declare const tokenTypes: (provider: Provider, address: string) => Promise<TokenType[]>;
|
|
6
|
+
//# sourceMappingURL=tokenTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokenTypes.d.ts","sourceRoot":"","sources":["../../../src/lib/tokenTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAA;AAEvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAItC,eAAO,MAAM,SAAS,GAAU,UAAU,QAAQ,EAAE,SAAS,MAAM,qBAElE,CAAA;AAED,eAAO,MAAM,QAAQ,GAAU,UAAU,QAAQ,EAAE,SAAS,MAAM,qBAEjE,CAAA;AAED,eAAO,MAAM,UAAU,GAAU,UAAU,QAAQ,EAAE,SAAS,MAAM,yBAUnE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tryCall.d.ts","sourceRoot":"","sources":["../../../src/lib/tryCall.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,GAAU,CAAC,EAAE,MAAM,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAU7F,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/crypto-nft-collection-witness-plugin",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,40 +21,40 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/types/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/types/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.
|
|
33
|
-
"@xylabs/axios": "^4.
|
|
34
|
-
"@xylabs/eth-address": "^4.
|
|
35
|
-
"@xylabs/exists": "^4.
|
|
36
|
-
"@xylabs/hex": "^4.
|
|
37
|
-
"@xyo-network/crypto-nft-collection-payload-plugin": "^3.4.
|
|
38
|
-
"@xyo-network/crypto-nft-payload-plugin": "^3.4.
|
|
39
|
-
"@xyo-network/erc1822-witness": "^3.4.
|
|
40
|
-
"@xyo-network/erc1967-witness": "^3.4.
|
|
41
|
-
"@xyo-network/open-zeppelin-typechain": "^3.4.
|
|
42
|
-
"@xyo-network/payload-builder": "^3.9.
|
|
43
|
-
"@xyo-network/payload-model": "^3.9.
|
|
44
|
-
"@xyo-network/payloadset-plugin": "^3.9.
|
|
45
|
-
"@xyo-network/witness-blockchain-abstract": "^3.9.
|
|
46
|
-
"@xyo-network/witness-evm-abstract": "^3.9.
|
|
32
|
+
"@xylabs/assert": "^4.6.0",
|
|
33
|
+
"@xylabs/axios": "^4.6.0",
|
|
34
|
+
"@xylabs/eth-address": "^4.6.0",
|
|
35
|
+
"@xylabs/exists": "^4.6.0",
|
|
36
|
+
"@xylabs/hex": "^4.6.0",
|
|
37
|
+
"@xyo-network/crypto-nft-collection-payload-plugin": "^3.4.4",
|
|
38
|
+
"@xyo-network/crypto-nft-payload-plugin": "^3.4.4",
|
|
39
|
+
"@xyo-network/erc1822-witness": "^3.4.4",
|
|
40
|
+
"@xyo-network/erc1967-witness": "^3.4.4",
|
|
41
|
+
"@xyo-network/open-zeppelin-typechain": "^3.4.10",
|
|
42
|
+
"@xyo-network/payload-builder": "^3.9.36",
|
|
43
|
+
"@xyo-network/payload-model": "^3.9.36",
|
|
44
|
+
"@xyo-network/payloadset-plugin": "^3.9.36",
|
|
45
|
+
"@xyo-network/witness-blockchain-abstract": "^3.9.36",
|
|
46
|
+
"@xyo-network/witness-evm-abstract": "^3.9.36",
|
|
47
47
|
"ethers": "^6.13.5"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@types/node": "^22.13.
|
|
51
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
52
|
-
"@xylabs/tsconfig": "^
|
|
53
|
-
"@xylabs/vitest-extended": "^4.
|
|
54
|
-
"@xyo-network/account": "^3.9.
|
|
55
|
-
"@xyo-network/account-model": "^3.9.
|
|
56
|
-
"typescript": "^5.
|
|
57
|
-
"vitest": "^3.0.
|
|
50
|
+
"@types/node": "^22.13.10",
|
|
51
|
+
"@xylabs/ts-scripts-yarn3": "^6.0.5",
|
|
52
|
+
"@xylabs/tsconfig": "^6.0.5",
|
|
53
|
+
"@xylabs/vitest-extended": "^4.6.0",
|
|
54
|
+
"@xyo-network/account": "^3.9.36",
|
|
55
|
+
"@xyo-network/account-model": "^3.9.36",
|
|
56
|
+
"typescript": "^5.8.2",
|
|
57
|
+
"vitest": "^3.0.8"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
package/dist/browser/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NftCollectionMetrics, NftCollectionWitnessConfig, NftCollectionWitnessQuery, NftCollectionInfo } from '@xyo-network/crypto-nft-collection-payload-plugin';
|
|
2
|
-
import { NftInfoFields, TokenType, NftInfo } from '@xyo-network/crypto-nft-payload-plugin';
|
|
3
|
-
import { Provider, Interface } from 'ethers';
|
|
4
|
-
import { PayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin';
|
|
5
|
-
import { Schema } from '@xyo-network/payload-model';
|
|
6
|
-
import { EvmWitnessParams, AbstractEvmWitness } from '@xyo-network/witness-evm-abstract';
|
|
7
|
-
|
|
8
|
-
declare const getNftCollectionMetrics: (nfts: NftInfoFields[]) => NftCollectionMetrics;
|
|
9
|
-
|
|
10
|
-
declare const contractHasFunctions: (provider: Provider, address: string, contractInterface: Interface, functionNames: string[]) => Promise<boolean>;
|
|
11
|
-
|
|
12
|
-
declare const getNftCollectionNfts: (contractAddress: string, provider: Provider, types?: TokenType[], maxNfts?: number) => Promise<NftInfo[]>;
|
|
13
|
-
|
|
14
|
-
declare const isErc1155: (provider: Provider, address: string) => Promise<boolean>;
|
|
15
|
-
declare const isErc721: (provider: Provider, address: string) => Promise<boolean>;
|
|
16
|
-
declare const tokenTypes: (provider: Provider, address: string) => Promise<TokenType[]>;
|
|
17
|
-
|
|
18
|
-
type CryptoNftCollectionWitnessParams = EvmWitnessParams<NftCollectionWitnessConfig>;
|
|
19
|
-
declare class CryptoNftCollectionWitness<TParams extends CryptoNftCollectionWitnessParams = CryptoNftCollectionWitnessParams> extends AbstractEvmWitness<TParams, NftCollectionWitnessQuery, NftCollectionInfo> {
|
|
20
|
-
static readonly configSchemas: Schema[];
|
|
21
|
-
static readonly defaultConfigSchema: Schema;
|
|
22
|
-
protected observeHandler(payloads?: NftCollectionWitnessQuery[]): Promise<NftCollectionInfo[]>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare const CryptoNftCollectionWitnessPlugin: () => PayloadSetWitnessPlugin<CryptoNftCollectionWitness>;
|
|
26
|
-
|
|
27
|
-
export { CryptoNftCollectionWitness, type CryptoNftCollectionWitnessParams, CryptoNftCollectionWitnessPlugin, contractHasFunctions, CryptoNftCollectionWitnessPlugin as default, getNftCollectionMetrics, getNftCollectionNfts, isErc1155, isErc721, tokenTypes };
|
package/dist/neutral/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NftCollectionMetrics, NftCollectionWitnessConfig, NftCollectionWitnessQuery, NftCollectionInfo } from '@xyo-network/crypto-nft-collection-payload-plugin';
|
|
2
|
-
import { NftInfoFields, TokenType, NftInfo } from '@xyo-network/crypto-nft-payload-plugin';
|
|
3
|
-
import { Provider, Interface } from 'ethers';
|
|
4
|
-
import { PayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin';
|
|
5
|
-
import { Schema } from '@xyo-network/payload-model';
|
|
6
|
-
import { EvmWitnessParams, AbstractEvmWitness } from '@xyo-network/witness-evm-abstract';
|
|
7
|
-
|
|
8
|
-
declare const getNftCollectionMetrics: (nfts: NftInfoFields[]) => NftCollectionMetrics;
|
|
9
|
-
|
|
10
|
-
declare const contractHasFunctions: (provider: Provider, address: string, contractInterface: Interface, functionNames: string[]) => Promise<boolean>;
|
|
11
|
-
|
|
12
|
-
declare const getNftCollectionNfts: (contractAddress: string, provider: Provider, types?: TokenType[], maxNfts?: number) => Promise<NftInfo[]>;
|
|
13
|
-
|
|
14
|
-
declare const isErc1155: (provider: Provider, address: string) => Promise<boolean>;
|
|
15
|
-
declare const isErc721: (provider: Provider, address: string) => Promise<boolean>;
|
|
16
|
-
declare const tokenTypes: (provider: Provider, address: string) => Promise<TokenType[]>;
|
|
17
|
-
|
|
18
|
-
type CryptoNftCollectionWitnessParams = EvmWitnessParams<NftCollectionWitnessConfig>;
|
|
19
|
-
declare class CryptoNftCollectionWitness<TParams extends CryptoNftCollectionWitnessParams = CryptoNftCollectionWitnessParams> extends AbstractEvmWitness<TParams, NftCollectionWitnessQuery, NftCollectionInfo> {
|
|
20
|
-
static readonly configSchemas: Schema[];
|
|
21
|
-
static readonly defaultConfigSchema: Schema;
|
|
22
|
-
protected observeHandler(payloads?: NftCollectionWitnessQuery[]): Promise<NftCollectionInfo[]>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare const CryptoNftCollectionWitnessPlugin: () => PayloadSetWitnessPlugin<CryptoNftCollectionWitness>;
|
|
26
|
-
|
|
27
|
-
export { CryptoNftCollectionWitness, type CryptoNftCollectionWitnessParams, CryptoNftCollectionWitnessPlugin, contractHasFunctions, CryptoNftCollectionWitnessPlugin as default, getNftCollectionMetrics, getNftCollectionNfts, isErc1155, isErc721, tokenTypes };
|
package/dist/node/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NftCollectionMetrics, NftCollectionWitnessConfig, NftCollectionWitnessQuery, NftCollectionInfo } from '@xyo-network/crypto-nft-collection-payload-plugin';
|
|
2
|
-
import { NftInfoFields, TokenType, NftInfo } from '@xyo-network/crypto-nft-payload-plugin';
|
|
3
|
-
import { Provider, Interface } from 'ethers';
|
|
4
|
-
import { PayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin';
|
|
5
|
-
import { Schema } from '@xyo-network/payload-model';
|
|
6
|
-
import { EvmWitnessParams, AbstractEvmWitness } from '@xyo-network/witness-evm-abstract';
|
|
7
|
-
|
|
8
|
-
declare const getNftCollectionMetrics: (nfts: NftInfoFields[]) => NftCollectionMetrics;
|
|
9
|
-
|
|
10
|
-
declare const contractHasFunctions: (provider: Provider, address: string, contractInterface: Interface, functionNames: string[]) => Promise<boolean>;
|
|
11
|
-
|
|
12
|
-
declare const getNftCollectionNfts: (contractAddress: string, provider: Provider, types?: TokenType[], maxNfts?: number) => Promise<NftInfo[]>;
|
|
13
|
-
|
|
14
|
-
declare const isErc1155: (provider: Provider, address: string) => Promise<boolean>;
|
|
15
|
-
declare const isErc721: (provider: Provider, address: string) => Promise<boolean>;
|
|
16
|
-
declare const tokenTypes: (provider: Provider, address: string) => Promise<TokenType[]>;
|
|
17
|
-
|
|
18
|
-
type CryptoNftCollectionWitnessParams = EvmWitnessParams<NftCollectionWitnessConfig>;
|
|
19
|
-
declare class CryptoNftCollectionWitness<TParams extends CryptoNftCollectionWitnessParams = CryptoNftCollectionWitnessParams> extends AbstractEvmWitness<TParams, NftCollectionWitnessQuery, NftCollectionInfo> {
|
|
20
|
-
static readonly configSchemas: Schema[];
|
|
21
|
-
static readonly defaultConfigSchema: Schema;
|
|
22
|
-
protected observeHandler(payloads?: NftCollectionWitnessQuery[]): Promise<NftCollectionInfo[]>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare const CryptoNftCollectionWitnessPlugin: () => PayloadSetWitnessPlugin<CryptoNftCollectionWitness>;
|
|
26
|
-
|
|
27
|
-
export { CryptoNftCollectionWitness, type CryptoNftCollectionWitnessParams, CryptoNftCollectionWitnessPlugin, contractHasFunctions, CryptoNftCollectionWitnessPlugin as default, getNftCollectionMetrics, getNftCollectionNfts, isErc1155, isErc721, tokenTypes };
|