@lukso/lsp-smart-contracts 0.8.0 → 0.8.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/CONTRIBUTING.md +8 -0
- package/README.md +21 -21
- package/artifacts/LSP0ERC725Account.json +2 -2
- package/artifacts/LSP0ERC725AccountInit.json +2 -2
- package/artifacts/LSP11BasicSocialRecovery.json +2 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +2 -2
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +2 -2
- package/artifacts/LSP6KeyManager.json +2 -2
- package/artifacts/LSP6KeyManagerInit.json +2 -2
- package/artifacts/LSP7CappedSupply.json +5 -0
- package/artifacts/LSP7CappedSupplyInitAbstract.json +5 -0
- package/artifacts/LSP7CompatibleERC20.json +5 -0
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +5 -0
- package/artifacts/LSP7CompatibleERC20Mintable.json +7 -2
- package/artifacts/LSP7CompatibleERC20MintableInit.json +7 -2
- package/artifacts/LSP7DigitalAsset.json +5 -0
- package/artifacts/LSP7DigitalAssetInitAbstract.json +5 -0
- package/artifacts/LSP7Mintable.json +7 -2
- package/artifacts/LSP7MintableInit.json +7 -2
- package/artifacts/LSP8CappedSupply.json +5 -0
- package/artifacts/LSP8CappedSupplyInitAbstract.json +5 -0
- package/artifacts/LSP8CompatibleERC721.json +5 -0
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +5 -0
- package/artifacts/LSP8CompatibleERC721Mintable.json +7 -2
- package/artifacts/LSP8CompatibleERC721MintableInit.json +7 -2
- package/artifacts/LSP8IdentifiableDigitalAsset.json +5 -0
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +5 -0
- package/artifacts/LSP8Mintable.json +7 -2
- package/artifacts/LSP8MintableInit.json +7 -2
- package/artifacts/LSP9Vault.json +2 -2
- package/artifacts/LSP9VaultInit.json +2 -2
- package/artifacts/UniversalProfile.json +2 -2
- package/artifacts/UniversalProfileInit.json +2 -2
- package/common/constants.d.ts +738 -0
- package/common/constants.js +785 -0
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +87 -28
- package/contracts/LSP0ERC725Account/LSP0Utils.sol +50 -0
- package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +3 -5
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +2 -4
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +7 -7
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +44 -734
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +229 -0
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6OwnershipModule.sol +25 -0
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +606 -0
- package/contracts/LSP6KeyManager/LSP6Utils.sol +31 -1
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +2 -6
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +5 -0
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +5 -0
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +7 -13
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +1 -3
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +1 -3
- package/contracts/LSP9Vault/LSP9VaultCore.sol +85 -25
- package/module/constants.d.ts +738 -0
- package/module/constants.js +782 -0
- package/package.json +26 -4
- package/constants.js +0 -856
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lukso/lsp-smart-contracts",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "The reference implementation for universal profiles smart contracts",
|
|
5
5
|
"directories": {
|
|
6
6
|
"test": "test"
|
|
@@ -9,11 +9,32 @@
|
|
|
9
9
|
"contracts/**/*.sol",
|
|
10
10
|
"!contracts/Mocks/**/*.sol",
|
|
11
11
|
"artifacts/*.json",
|
|
12
|
-
"
|
|
12
|
+
"module",
|
|
13
|
+
"common",
|
|
13
14
|
"README.md",
|
|
14
15
|
"CONTRIBUTING.md",
|
|
15
16
|
"LICENSE"
|
|
16
17
|
],
|
|
18
|
+
"main": "./common/constants.js",
|
|
19
|
+
"module": "./module/constants.js",
|
|
20
|
+
"typings": "./common/constants.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": "./module/constants.js",
|
|
24
|
+
"require": "./common/constant.js",
|
|
25
|
+
"types": "./common/constants.d.ts"
|
|
26
|
+
},
|
|
27
|
+
"./constants.js": {
|
|
28
|
+
"import": "./module/constants.js",
|
|
29
|
+
"require": "./common/constant.js",
|
|
30
|
+
"types": "./common/constants.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"./constants": {
|
|
33
|
+
"import": "./module/constants.js",
|
|
34
|
+
"require": "./common/constant.js",
|
|
35
|
+
"types": "./common/constants.d.ts"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
17
38
|
"scripts": {
|
|
18
39
|
"test": "hardhat test",
|
|
19
40
|
"test:benchmark": "hardhat test --no-compile tests/Benchmark.test.ts",
|
|
@@ -32,9 +53,10 @@
|
|
|
32
53
|
"test:universalfactory": "hardhat test --no-compile tests/LSP16UniversalFactory/LSP16UniversalFactory.test.ts",
|
|
33
54
|
"test:foundry": "forge test --no-match-test Skip -vvv --gas-report > gasreport.ansi",
|
|
34
55
|
"build": "hardhat compile",
|
|
56
|
+
"build:tsc": "tsc --project tsconfig.cjs.json && tsc --project tsconfig.module.json",
|
|
35
57
|
"package": "hardhat prepare-package",
|
|
36
58
|
"release": "run-s clean build package && standard-version",
|
|
37
|
-
"clean": "hardhat clean",
|
|
59
|
+
"clean": "hardhat clean && rm -rf module common",
|
|
38
60
|
"generate-types": "run-p generate-types:*",
|
|
39
61
|
"generate-types:web3": "typechain --target=web3-v1 'artifacts/**/*.json'",
|
|
40
62
|
"generate-types:ethers": "typechain --target=ethers-v5 'artifacts/**/*.json'",
|
|
@@ -97,7 +119,7 @@
|
|
|
97
119
|
"standard-version": "^9.3.1",
|
|
98
120
|
"ts-node": "^10.2.0",
|
|
99
121
|
"typechain": "^8.0.0",
|
|
100
|
-
"typescript": "^4.
|
|
122
|
+
"typescript": "^4.9.5",
|
|
101
123
|
"web3": "^1.5.2"
|
|
102
124
|
}
|
|
103
125
|
}
|