@metaplex-foundation/digital-asset-standard-api
Advanced tools
Comparing version 1.0.4-alpha.0 to 1.0.4-alpha.1
@@ -172,2 +172,39 @@ import { Nullable, PublicKey } from '@metaplex-foundation/umi'; | ||
burnt: boolean; | ||
} & DasApiCoreAssetFields; | ||
/** | ||
* Optional fields on an asset if the interface is for Core (i.e. interface is 'MplCoreAsset' or 'MplCoreCollection') | ||
* It is recommended to use the mpl-core-das package along with this one to convert the types | ||
* to be consistent with mpl-core (e.g. AssetV1) | ||
*/ | ||
export declare type DasApiCoreAssetFields = { | ||
/** | ||
* Plugins active on the asset or collection | ||
*/ | ||
plugins?: Record<string, any>; | ||
/** | ||
* External plugins active on the asset or collection | ||
*/ | ||
external_plugins?: Record<string, any>[]; | ||
/** | ||
* Plugins on asset that were unknown at the time of indexing. | ||
* Contact your DAS provider to update their core indexing version if this field is being populated. | ||
* If you have a newer version of mpl-core-das installed, that library will also try to deserialize the plugin | ||
*/ | ||
unknown_plugins?: Record<string, any>[]; | ||
/** | ||
* Additional fields that are indexed for Core assets or collections | ||
*/ | ||
mpl_core_info?: { | ||
/** | ||
* Number of assets minted to this collection | ||
* Only applicable for collections | ||
*/ | ||
num_minted?: number; | ||
/** | ||
* Current number of assets in this collection | ||
* Only applicable for collections | ||
*/ | ||
current_size?: number; | ||
plugins_json_version: number; | ||
}; | ||
}; | ||
@@ -229,3 +266,3 @@ /** | ||
}; | ||
export declare type DasApiAssetInterface = 'V1_NFT' | 'V1_PRINT' | 'LEGACY_NFT' | 'V2_NFT' | 'FungibleAsset' | 'Custom' | 'Identity' | 'Executable' | 'ProgrammableNFT'; | ||
export declare type DasApiAssetInterface = 'V1_NFT' | 'V1_PRINT' | 'LEGACY_NFT' | 'V2_NFT' | 'FungibleAsset' | 'Custom' | 'Identity' | 'Executable' | 'ProgrammableNFT' | 'MplCoreAsset' | 'MplCoreCollection'; | ||
export declare type DasApiAssetContent = { | ||
@@ -232,0 +269,0 @@ json_uri: string; |
{ | ||
"name": "@metaplex-foundation/digital-asset-standard-api", | ||
"version": "1.0.4-alpha.0", | ||
"version": "1.0.4-alpha.1", | ||
"description": "Open-source specification for interacting with digital assets on Solana", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -40,2 +40,6 @@ <h1 align="center"> | ||
## Working with `mpl-core` | ||
Core assets and collections are also indexed by DAS. It is recommended to use this package in conjunction with the [mpl-core-das](http://github.com/metaplex-foundation/mpl-core-das) if you are working with Core assets. | ||
## Methods | ||
@@ -42,0 +46,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
42179
577
436
1