Skip to content

Commit

Permalink
Merge pull request #213 from lukso-network/develop
Browse files Browse the repository at this point in the history
Sync main
  • Loading branch information
CallumGrindle authored Sep 8, 2023
2 parents aa882e6 + 3786674 commit 770235b
Show file tree
Hide file tree
Showing 7 changed files with 152 additions and 139 deletions.
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
types/ethers-v5
test/

cache
Expand Down
14 changes: 7 additions & 7 deletions docs/deployment/universal-profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,18 +312,18 @@ await lspFactory.UniversalProfile.deploy({

### Uploading LSP3 metadata to IPFS

You can upload your LSP3 metadata before deploying a Universal Profile using the `uploadMetaData()` method. The function uses the same [`lsp3Profile` object schema](./universal-profile#adding-lsp3-metadata) defined above when deploying a Universal Profile. Returns an object containing the IPFS upload location of your metadata and your `lsp3Metdata` as a javascript object.
You can upload your LSP3 metadata before deploying a Universal Profile using the `uploadProfileData()` method. The function uses the same [`lsp3Profile` object schema](./universal-profile#adding-lsp3-metadata) defined above when deploying a Universal Profile. Returns an object containing the IPFS upload location of your metadata and your `lsp3Metdata` as a javascript object.

```javascript
await myLSPFactory.UniversalProfile.uploadMetaData(lsp3Profile [, options]);
await myLSPFactory.UniversalProfile.uploadProfileData(lsp3Profile [, options]);
```

To upload using a custom IPFS gateway, pass the `options` object. The field is the same `options` object used when deploying a Universal Profile. [Read more](./universal-profile#ipfs-upload-options).

The `uploadMetaData()` function is available as a static or non-static method to be called without instantiating an `LSPFactory` object.
The `uploadProfileData()` function is available as a static or non-static method to be called without instantiating an `LSPFactory` object.

```javascript title="Calling uploadMetaData on an LSPFactory instance"
await myLSPFactory.UniversalProfile.uploadMetaData(myLSP3MetaData);
```javascript title="Calling uploadProfileData on an LSPFactory instance"
await myLSPFactory.UniversalProfile.uploadProfileData(myLSP3MetaData);

/**
{
Expand All @@ -341,8 +341,8 @@ await myLSPFactory.UniversalProfile.uploadMetaData(myLSP3MetaData);
*/
```

```javascript title="Calling uploadMetaData on the uninstantiated class"
await UniversalProfile.uploadMetaData(myLSP3MetaData);
```javascript title="Calling uploadProfileData on the uninstantiated class"
await UniversalProfile.uploadProfileData(myLSP3MetaData);

> // same as above
```
Expand Down
248 changes: 127 additions & 121 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@erc725/erc725.js": "^0.18.0",
"@ethersproject/abi": "^5.7.0",
"@ethersproject/experimental": "^5.7.0",
"@lukso/lsp-smart-contracts": "^0.10.3",
"@lukso/lsp-smart-contracts": "^0.11.1",
"axios": "^0.23.0",
"browser-image-compression": "^2.0.0",
"ethers": "^5.7.0",
Expand Down Expand Up @@ -78,7 +78,9 @@
"CHANGELOG.md",
"LICENSE",
"CONTRIBUTING.md",
"README.md"
"README.md",
"src/*",
"types/*"
],
"ava": {
"failFast": true,
Expand Down
15 changes: 10 additions & 5 deletions src/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,36 @@
"contracts": {
"ERC725Account": {
"versions": {
"0.10.3": "0x40114F4f71C3551f79CBfdaa63F41741fA7eC86D"
"0.10.3": "0x40114F4f71C3551f79CBfdaa63F41741fA7eC86D",
"0.11.1": "0xc1716883d30069f26743acc63722de2a52a258b4"
},
"baseContract": true
},
"KeyManager": {
"versions": {
"0.10.3": "0xDDF7D4650007Bb117c9e3ec29C7263e7D8344211"
"0.10.3": "0xDDF7D4650007Bb117c9e3ec29C7263e7D8344211",
"0.11.1": "0x8ed15cca37cff8d3bf80d0fb96cfba5608b8610a"
},
"baseContract": true
},
"UniversalReceiverDelegate": {
"versions": {
"0.10.3": "0x3a181401d642ff76eacc13db4fecf4761de135d2"
"0.10.3": "0x3a181401d642ff76eacc13db4fecf4761de135d2",
"0.11.1": "0x9b1eF52DdEc3b8414FbE359ed7826334729ab97E"
},
"baseContract": false
},
"LSP7Mintable": {
"versions": {
"0.10.3": "0xaf45071fcf03564108f0cf82ba34932fe257565e"
"0.10.3": "0xaf45071fcf03564108f0cf82ba34932fe257565e",
"0.11.1": "0xd684F8642268484e22E64d86fDc8F6D8D9e930d5"
},
"baseContract": true
},
"LSP8Mintable": {
"versions": {
"0.10.3": "0xB8e8a2Db3Dcbc8384B62F28165998BB78Db209F3"
"0.10.3": "0xB8e8a2Db3Dcbc8384B62F28165998BB78Db209F3",
"0.11.1": "0x5453551C4256F0ccE92DF7D3dcaeCd90E80b0a2f"
},
"baseContract": true
}
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"moduleResolution": "node",
"module": "commonjs",
"declaration": true,
"inlineSourceMap": false,
"sourceMap": true,
"inlineSourceMap": true,
"sourceMap": false,
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
"resolveJsonModule": true /* Include modules imported with .json extension. */,

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"target": "es2015",
"outDir": "build/module",
"module": "es2015"
"module": "es2015",
"inlineSourceMap": true
}
}

0 comments on commit 770235b

Please sign in to comment.