@lukso/universalprofile-contracts 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,7 +10,7 @@ npm i @lukso/universalprofile-contracts
10
10
 
11
11
  ## Solidity constants
12
12
 
13
- The constants related to LSP3 Profile Metadata can be directly imported from the `Constants.sol` file.
13
+ The constants related to LSP3 Profile Metadata can be directly imported from the Solidity `Constants.sol` file.
14
14
 
15
15
  <!-- prettier-ignore -->
16
16
  ```solidity
@@ -18,5 +18,16 @@ import {
18
18
  _LSP3_SUPPORTED_STANDARDS_KEY,
19
19
  _LSP3_SUPPORTED_STANDARDS_VALUE,
20
20
  _LSP3_PROFILE_KEY
21
- } from "universalprofile/contracts/Constants.sol";
21
+ } from "@lukso/universalprofile-contracts/contracts/Constants.sol";
22
+ ```
23
+
24
+ ## Typescript types
25
+
26
+ You can also import the [type-safe ABI](https://abitype.dev/) of each LSP smart contracts from the `/abi` path.
27
+
28
+ ```ts
29
+ import {
30
+ universalProfileAbi,
31
+ universalProfileInitAbi,
32
+ } from "@lukso/universalprofile-contracts/abi";
22
33
  ```
@@ -11,7 +11,7 @@ abstract contract Version {
11
11
  // DO NOT CHANGE
12
12
  // Comments block below is used by release-please to automatically update the version in this file.
13
13
  // x-release-please-start-version
14
- string public constant VERSION = "0.15.0";
14
+ string public constant VERSION = "0.15.1";
15
15
 
16
16
  // x-release-please-end
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/universalprofile-contracts",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Package for Universal Profile, an implementation of LSP0 ERC725 Account & LSP3 Profile Metadata standards combined together.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "",
@@ -14,34 +14,44 @@
14
14
  "EVM",
15
15
  "Solidity"
16
16
  ],
17
- "main": "./dist/index.cjs",
18
- "module": "./dist/index.mjs",
19
- "typings": "./dist/index.d.ts",
20
- "exports": {
21
- ".": {
22
- "require": "./dist/index.cjs",
23
- "import": "./dist/index.mjs",
24
- "types": "./dist/index.d.ts"
25
- },
26
- "./artifacts/*": "./artifacts/*",
27
- "./package.json": "./package.json"
28
- },
29
17
  "files": [
30
18
  "contracts/**/*.sol",
31
19
  "!contracts/Mocks/**/*.sol",
32
20
  "artifacts/*.json",
33
21
  "compatibility-abis",
34
- "dist",
35
- "./README.md"
22
+ "dist"
36
23
  ],
24
+ "main": "./dist/constants.cjs",
25
+ "module": "./dist/constants.mjs",
26
+ "typings": "./dist/constants.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "require": "./dist/constants.cjs",
30
+ "import": "./dist/constants.mjs",
31
+ "types": "./dist/constants.d.ts"
32
+ },
33
+ "./constants": {
34
+ "require": "./dist/constants.cjs",
35
+ "import": "./dist/constants.mjs",
36
+ "types": "./dist/constants.d.ts"
37
+ },
38
+ "./abi": {
39
+ "require": "./dist/abi.cjs",
40
+ "import": "./dist/abi.mjs",
41
+ "types": "./dist/abi.d.ts"
42
+ },
43
+ "./artifacts/*": "./artifacts/*",
44
+ "./dist/*": "./dist/*",
45
+ "./package.json": "./package.json"
46
+ },
37
47
  "scripts": {
38
48
  "build": "hardhat compile --show-stack-traces",
39
49
  "build:types": "npx wagmi generate",
40
- "clean": "hardhat clean && rm -Rf dist/",
50
+ "clean": "hardhat clean && rm -Rf dist/ cache/ node_modules/ .turbo/ types/ typechain/ build/ artifacts/",
41
51
  "format": "prettier --write .",
42
52
  "lint": "eslint . --ext .ts,.js",
43
53
  "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'",
44
- "package": "hardhat prepare-package"
54
+ "build:package": "hardhat prepare-package"
45
55
  },
46
56
  "dependencies": {
47
57
  "@erc725/smart-contracts": "^7.0.0",