Skip to content

Commit

Permalink
refactor!: upgrade @lukso/lsp-smart-contracts to v0.14.0 (#247)
Browse files Browse the repository at this point in the history
* build: upgrade lsp smart contracts to v0.14.0

* refactor!: add `LSP4TokenType` on deployment

* build: add v0.14.0 contracts in `versions.json`

* refactor!: rename LSP8 deployment param to `tokenIdFormat`

* build: upgrade erc725.js to v0.22.0

* refactor!: replace metadata encoding from `JSONURL` to `VerifiableURI`
  • Loading branch information
CJ42 authored Dec 19, 2023
1 parent bd1bcc7 commit 58edb58
Show file tree
Hide file tree
Showing 13 changed files with 27,542 additions and 27,061 deletions.
2 changes: 1 addition & 1 deletion docs/deployment/digital-asset.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ await lspFactory.LSP8IdentifiableDigitalAsset.deploy({
});
```

Alternatively `digitalAssetMetadata` can be passed as a URL where the LSP4Metadata JSON file is stored. LSPFactory will download the JSON file before hashing it and generate the [JSONURL](https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-2-ERC725YJSONSchema.md#JSONURL) value to be stored on the token contract's `LSP4Metadata` [ERC725Y] key.
Alternatively `digitalAssetMetadata` can be passed as a URL where the LSP4Metadata JSON file is stored. LSPFactory will download the JSON file before hashing it and generate the [VerifiableURI](https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-2-ERC725YJSONSchema.md#VerifiableURI) value to be stored on the token contract's `LSP4Metadata` [ERC725Y] key.

```javascript title='Providing a previously uploaded LSP4 metadata IPFS URL'
await lspFactory.LSP8IdentifiableDigitalAsset.deploy({
Expand Down
2 changes: 1 addition & 1 deletion docs/deployment/universal-profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ await lspFactory.UniversalProfile.deploy({
};
```

The following two examples will download the JSON file before hashing it and generating the proper [JSONURL](https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-2-ERC725YJSONSchema.md#JSONURL) value.
The following two examples will download the JSON file before hashing it and generating the proper [VerifiableURI](https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-2-ERC725YJSONSchema.md#VerifiableURI) value.

```javascript title='Providing a previously uploaded LSP3 metadata IPFS URL'
await lspFactory.UniversalProfile.deploy({
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const myContracts = await lspFactory.UniversalProfile.deploy({
});
```

The key `lsp3Profile` contains the [LSP3 Metadata](https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-2-ERC725YJSONSchema.md#JSONURL) of your Universal Profile. This is the "face" of your Universal Profile and contains all the public information people will see when they view your UP like your name, description and profile image.
The key `lsp3Profile` contains the [LSP3 Profile Metadata](https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-3-Profile-Metadata.md#lsp3profile) of your Universal Profile. This is the "face" of your Universal Profile and contains all the public information people will see when they view your UP like your name, description and profile image.

```javascript
const myLSP3MetaData = {
Expand Down
Loading

0 comments on commit 58edb58

Please sign in to comment.