Skip to content

Commit 31c5072

Browse files
authored
Merge branch 'develop' into token/improvements
2 parents 2943a84 + 671c4cd commit 31c5072

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

constants.ts

+11-4
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export type LSP4DigitalAssetMetadata = {
118118
images: ImageMetadata[][];
119119
assets: AssetMetadata[];
120120
icon: ImageMetadata[];
121-
attributes: AttributeMetadata[];
121+
attributes?: AttributeMetadata[];
122122
};
123123

124124
export type AttributeMetadata = {
@@ -145,10 +145,17 @@ export type LinkMetadata = {
145145
url: string;
146146
};
147147

148-
export type AssetMetadata = {
149-
verification?: Verification;
148+
export type AssetMetadata = AssetFile | DigitalAsset;
149+
150+
export type AssetFile = {
150151
url: string;
151-
fileType: string;
152+
verification?: Verification;
153+
fileType?: string;
154+
};
155+
156+
export type DigitalAsset = {
157+
address: string;
158+
tokenId?: string;
152159
};
153160

154161
/**

0 commit comments

Comments
 (0)