Skip to content

Commit

Permalink
Merge pull request #167 from lukso-network/develop
Browse files Browse the repository at this point in the history
Sync main
  • Loading branch information
CallumGrindle authored Oct 18, 2022
2 parents 19ba8a3 + b1a7814 commit a4710f2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/classes/universal-profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 |
| :--------------------------------------------------------------------------------- | :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
Expand Down
2 changes: 1 addition & 1 deletion src/lib/interfaces/index.ts
Original file line number Diff line number Diff line change
@@ -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';
6 changes: 3 additions & 3 deletions src/lib/interfaces/lsp3-profile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AssetMetadata, ImageBuffer, ImageMetadata, LinkMetdata } from './metadata';
import { AssetMetadata, ImageBuffer, ImageMetadata, LinkMetadata } from './metadata';

export interface LSP3ProfileJSON {
LSP3Profile: LSP3Profile;
Expand All @@ -10,7 +10,7 @@ export interface LSP3Profile {
profileImage?: ImageMetadata[];
backgroundImage?: ImageMetadata[];
tags?: string[];
links?: LinkMetdata[];
links?: LinkMetadata[];
avatar?: AssetMetadata[];
}

Expand All @@ -32,7 +32,7 @@ export interface ProfileDataBeforeUpload {
backgroundImage?: File | ImageBuffer | ImageMetadata[];
name: string;
description: string;
links?: LinkMetdata[];
links?: LinkMetadata[];
tags?: string[];
avatar?: (File | AssetMetadata)[];
}
Expand Down
6 changes: 3 additions & 3 deletions src/lib/interfaces/lsp4-digital-asset.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { AssetBuffer, AssetMetadata, ImageBuffer, ImageMetadata, LinkMetdata } from './metadata';
import { AssetBuffer, AssetMetadata, ImageBuffer, ImageMetadata, LinkMetadata } from './metadata';

export interface LSP4DigitalAssetJSON {
LSP4Metadata: LSP4DigitalAsset;
}

export interface LSP4DigitalAsset {
description: string;
links: LinkMetdata[];
links: LinkMetadata[];
images: ImageMetadata[][];
assets: AssetMetadata[];
icon: ImageMetadata[];
}

export interface LSP4MetadataContentBeforeUpload {
description: string;
links?: LinkMetdata[];
links?: LinkMetadata[];
icon?: File | ImageBuffer | ImageMetadata[];
images?: (File | ImageBuffer | ImageMetadata[])[];
assets?: (File | AssetBuffer | AssetMetadata)[];
Expand Down
2 changes: 1 addition & 1 deletion src/lib/interfaces/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface ImageMetadata {
url: string;
}

export interface LinkMetdata {
export interface LinkMetadata {
title: string;
url: string;
}
Expand Down

0 comments on commit a4710f2

Please sign in to comment.