From 92c7fb9adbe201459528e261867a08480b37d639 Mon Sep 17 00:00:00 2001 From: Dominik Zborowski Date: Thu, 29 Sep 2022 15:08:15 +0200 Subject: [PATCH 1/3] fix: typo in `LinkMetadata` interface --- src/lib/interfaces/index.ts | 2 +- src/lib/interfaces/lsp3-profile.ts | 6 +++--- src/lib/interfaces/lsp4-digital-asset.ts | 6 +++--- src/lib/interfaces/metadata.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/interfaces/index.ts b/src/lib/interfaces/index.ts index abb1c38d..87ad3f32 100644 --- a/src/lib/interfaces/index.ts +++ b/src/lib/interfaces/index.ts @@ -1,7 +1,7 @@ export { ContractOptions } from './contract-options'; export { LSPFactoryOptions } from './lsp-factory-options'; export { LSP3Profile, LSP3ProfileJSON, ProfileDataBeforeUpload } from './lsp3-profile'; -export { ImageMetadata, LinkMetdata, ImageBuffer, SupportedImageBufferFormats } from './metadata'; +export { ImageMetadata, LinkMetadata, ImageBuffer, SupportedImageBufferFormats } from './metadata'; export * from './profile-deployment'; export * from './deployment-events'; diff --git a/src/lib/interfaces/lsp3-profile.ts b/src/lib/interfaces/lsp3-profile.ts index 4ad393bc..a92d35fd 100644 --- a/src/lib/interfaces/lsp3-profile.ts +++ b/src/lib/interfaces/lsp3-profile.ts @@ -1,4 +1,4 @@ -import { AssetMetadata, ImageBuffer, ImageMetadata, LinkMetdata } from './metadata'; +import { AssetMetadata, ImageBuffer, ImageMetadata, LinkMetadata } from './metadata'; export interface LSP3ProfileJSON { LSP3Profile: LSP3Profile; @@ -10,7 +10,7 @@ export interface LSP3Profile { profileImage?: ImageMetadata[]; backgroundImage?: ImageMetadata[]; tags?: string[]; - links?: LinkMetdata[]; + links?: LinkMetadata[]; avatar?: AssetMetadata[]; } @@ -32,7 +32,7 @@ export interface ProfileDataBeforeUpload { backgroundImage?: File | ImageBuffer | ImageMetadata[]; name: string; description: string; - links?: LinkMetdata[]; + links?: LinkMetadata[]; tags?: string[]; avatar?: (File | AssetMetadata)[]; } diff --git a/src/lib/interfaces/lsp4-digital-asset.ts b/src/lib/interfaces/lsp4-digital-asset.ts index 1ff73a21..80d98208 100644 --- a/src/lib/interfaces/lsp4-digital-asset.ts +++ b/src/lib/interfaces/lsp4-digital-asset.ts @@ -1,4 +1,4 @@ -import { AssetBuffer, AssetMetadata, ImageBuffer, ImageMetadata, LinkMetdata } from './metadata'; +import { AssetBuffer, AssetMetadata, ImageBuffer, ImageMetadata, LinkMetadata } from './metadata'; export interface LSP4DigitalAssetJSON { LSP4Metadata: LSP4DigitalAsset; @@ -6,7 +6,7 @@ export interface LSP4DigitalAssetJSON { export interface LSP4DigitalAsset { description: string; - links: LinkMetdata[]; + links: LinkMetadata[]; images: ImageMetadata[][]; assets: AssetMetadata[]; icon: ImageMetadata[]; @@ -14,7 +14,7 @@ export interface LSP4DigitalAsset { export interface LSP4MetadataContentBeforeUpload { description: string; - links?: LinkMetdata[]; + links?: LinkMetadata[]; icon?: File | ImageBuffer | ImageMetadata[]; images?: (File | ImageBuffer | ImageMetadata[])[]; assets?: (File | AssetBuffer | AssetMetadata)[]; diff --git a/src/lib/interfaces/metadata.ts b/src/lib/interfaces/metadata.ts index 0ea154d3..a3d2bc09 100644 --- a/src/lib/interfaces/metadata.ts +++ b/src/lib/interfaces/metadata.ts @@ -6,7 +6,7 @@ export interface ImageMetadata { url: string; } -export interface LinkMetdata { +export interface LinkMetadata { title: string; url: string; } From f016cc85063e65b645a25ff7f5575da544c52a76 Mon Sep 17 00:00:00 2001 From: CallumGrindle Date: Tue, 18 Oct 2022 13:39:47 +0200 Subject: [PATCH 2/3] docs: fix broken link --- docs/classes/universal-profile.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/classes/universal-profile.md b/docs/classes/universal-profile.md index 92545331..61f92a9c 100644 --- a/docs/classes/universal-profile.md +++ b/docs/classes/universal-profile.md @@ -50,7 +50,7 @@ Object containing profile properties set during Universal Profile deployment. #### 2. `options` - Object (optional) -Object which specifies how the [UniversalProfile](../../../standards/universal-profile/lsp0-erc725account.md), [KeyManager](../../../standards/universal-profile/lsp6-key-manager.md) and [UniversalReceiverDelegate](../../../standards/universal-profile/lsp1-universal-receiver-delegate.md) smart contracts will be deployed. +Object which specifies how the [UniversalProfile](../../../standards/universal-profile/lsp0-erc725account.md), [KeyManager](../../../standards/universal-profile/lsp6-key-manager.md) and [UniversalReceiverDelegate](../../../standards/generic-standards/lsp1-universal-receiver-delegate.md) smart contracts will be deployed. | Name | Type | Description | | :--------------------------------------------------------------------------------- | :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | From 4975c2a75d824c570998828d3a36c576cc67a308 Mon Sep 17 00:00:00 2001 From: CallumGrindle Date: Tue, 18 Oct 2022 13:44:18 +0200 Subject: [PATCH 3/3] docs: fix broken link --- docs/classes/universal-profile.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/classes/universal-profile.md b/docs/classes/universal-profile.md index 61f92a9c..f37ad9d2 100644 --- a/docs/classes/universal-profile.md +++ b/docs/classes/universal-profile.md @@ -23,7 +23,7 @@ After, it will: - set the Key Manager as the owner of the LSP0 ERC725 Account, and - set all [LSP6 Permissions](../../../standards/universal-profile/lsp6-key-manager#-types-of-permissions) to the `controllerAddresses` except `DELEGATECALL`. -By default the [LSP1 Universal Receiver Delegate](../../../standards/universal-profile/lsp1-universal-receiver-delegate) contract that is specified in the [versions file](https://github.com/lukso-network/tools-lsp-factory/blob/main/src/versions.json) will be attached to the Universal Profile. A custom Universal Receiver Delegate can be optionally deployed, by passing custom bytecode to the [`options`](../deployment/universal-profile#deployment-configuration) object. +By default the [LSP1 Universal Receiver Delegate](../../../standards/generic-standards/lsp1-universal-receiver-delegate) contract that is specified in the [versions file](https://github.com/lukso-network/tools-lsp-factory/blob/main/src/versions.json) will be attached to the Universal Profile. A custom Universal Receiver Delegate can be optionally deployed, by passing custom bytecode to the [`options`](../deployment/universal-profile#deployment-configuration) object. :::caution The deployment key passed to LSPFactory will be given `CHANGEOWNER` and `CHANGEPERMISSIONS` [LSP6 permissions](../../../standards/universal-profile/lsp6-key-manager#-types-of-permissions) in order to carry out the Universal Profile deployment.