@lukso/lsp-smart-contracts 0.8.0 → 0.9.0
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 +34 -21
- package/artifacts/LSP0ERC725Account.json +51 -5
- package/artifacts/LSP0ERC725AccountInit.json +51 -5
- package/artifacts/LSP11BasicSocialRecovery.json +2 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
- package/artifacts/LSP16UniversalFactory.json +31 -2
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +19 -35
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +13 -13
- package/artifacts/LSP4Compatibility.json +7 -2
- package/artifacts/LSP4DigitalAssetMetadata.json +7 -2
- package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +7 -2
- package/artifacts/LSP6KeyManager.json +91 -6
- package/artifacts/LSP6KeyManagerInit.json +103 -18
- package/artifacts/LSP7CappedSupply.json +12 -2
- package/artifacts/LSP7CappedSupplyInitAbstract.json +12 -2
- package/artifacts/LSP7CompatibleERC20.json +12 -2
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +12 -2
- package/artifacts/LSP7CompatibleERC20Mintable.json +14 -4
- package/artifacts/LSP7CompatibleERC20MintableInit.json +14 -4
- package/artifacts/LSP7DigitalAsset.json +12 -2
- package/artifacts/LSP7DigitalAssetInitAbstract.json +12 -2
- package/artifacts/LSP7Mintable.json +14 -4
- package/artifacts/LSP7MintableInit.json +14 -4
- package/artifacts/LSP8CappedSupply.json +12 -2
- package/artifacts/LSP8CappedSupplyInitAbstract.json +12 -2
- package/artifacts/LSP8CompatibleERC721.json +12 -2
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +12 -2
- package/artifacts/LSP8CompatibleERC721Mintable.json +14 -4
- package/artifacts/LSP8CompatibleERC721MintableInit.json +14 -4
- package/artifacts/LSP8IdentifiableDigitalAsset.json +12 -2
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +12 -2
- package/artifacts/LSP8Mintable.json +14 -4
- package/artifacts/LSP8MintableInit.json +14 -4
- package/artifacts/LSP9Vault.json +29 -5
- package/artifacts/LSP9VaultInit.json +29 -5
- package/artifacts/UniversalProfile.json +51 -5
- package/artifacts/UniversalProfileInit.json +51 -5
- package/common/constants.d.ts +461 -0
- package/common/constants.js +789 -0
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +27 -0
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +353 -145
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +1 -1
- package/contracts/LSP0ERC725Account/LSP0Utils.sol +50 -0
- package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +48 -54
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +5 -6
- package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +27 -4
- package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +36 -77
- package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +8 -8
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +50 -57
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +18 -8
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +12 -0
- package/contracts/LSP20CallVerification/ILSP20CallVerification.sol +30 -0
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +74 -0
- package/contracts/LSP20CallVerification/LSP20Errors.sol +15 -0
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +7 -7
- package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +50 -56
- package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +1 -1
- package/contracts/LSP6KeyManager/LSP6Constants.sol +8 -2
- package/contracts/LSP6KeyManager/LSP6Errors.sol +18 -1
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +126 -745
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +407 -0
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6OwnershipModule.sol +25 -0
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +633 -0
- package/contracts/LSP6KeyManager/LSP6Utils.sol +60 -15
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +14 -23
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +5 -0
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +5 -0
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +19 -30
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +1 -3
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +1 -3
- package/contracts/LSP9Vault/ILSP9Vault.sol +19 -0
- package/contracts/LSP9Vault/LSP9Constants.sol +1 -1
- package/contracts/LSP9Vault/LSP9Vault.sol +11 -2
- package/contracts/LSP9Vault/LSP9VaultCore.sol +166 -83
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +11 -2
- package/module/constants.d.ts +461 -0
- package/module/constants.js +786 -0
- package/package.json +30 -6
- 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.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "The reference implementation for universal profiles smart contracts",
|
|
5
5
|
"directories": {
|
|
6
6
|
"test": "test"
|
|
@@ -9,11 +9,33 @@
|
|
|
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
|
+
"./artifacts/*": "./artifacts/*"
|
|
38
|
+
},
|
|
17
39
|
"scripts": {
|
|
18
40
|
"test": "hardhat test",
|
|
19
41
|
"test:benchmark": "hardhat test --no-compile tests/Benchmark.test.ts",
|
|
@@ -29,12 +51,14 @@
|
|
|
29
51
|
"test:lsp8": "hardhat test --no-compile tests/LSP8IdentifiableDigitalAsset/*.test.ts tests/LSP8IdentifiableDigitalAsset/extensions/*.test.ts",
|
|
30
52
|
"test:lsp9": "hardhat test --no-compile tests/LSP9Vault/*.test.ts",
|
|
31
53
|
"test:lsp11": "hardhat test --no-compile tests/LSP11BasicSocialRecovery/*.test.ts",
|
|
54
|
+
"test:lsp20": "hardhat test --no-compile tests/LSP20CallVerification/LSP6KeyManager/*.test.ts",
|
|
32
55
|
"test:universalfactory": "hardhat test --no-compile tests/LSP16UniversalFactory/LSP16UniversalFactory.test.ts",
|
|
33
56
|
"test:foundry": "forge test --no-match-test Skip -vvv --gas-report > gasreport.ansi",
|
|
34
57
|
"build": "hardhat compile",
|
|
58
|
+
"build:tsc": "tsc --project tsconfig.cjs.json && tsc --project tsconfig.module.json",
|
|
35
59
|
"package": "hardhat prepare-package",
|
|
36
60
|
"release": "run-s clean build package && standard-version",
|
|
37
|
-
"clean": "hardhat clean",
|
|
61
|
+
"clean": "hardhat clean && rm -rf module common",
|
|
38
62
|
"generate-types": "run-p generate-types:*",
|
|
39
63
|
"generate-types:web3": "typechain --target=web3-v1 'artifacts/**/*.json'",
|
|
40
64
|
"generate-types:ethers": "typechain --target=ethers-v5 'artifacts/**/*.json'",
|
|
@@ -61,7 +85,7 @@
|
|
|
61
85
|
},
|
|
62
86
|
"homepage": "https://github.com/lukso-network/lsp-smart-contracts#readme",
|
|
63
87
|
"dependencies": {
|
|
64
|
-
"@erc725/smart-contracts": "^4.
|
|
88
|
+
"@erc725/smart-contracts": "^4.2.0",
|
|
65
89
|
"@openzeppelin/contracts": "^4.8.0",
|
|
66
90
|
"@openzeppelin/contracts-upgradeable": "^4.8.0",
|
|
67
91
|
"solidity-bytes-utils": "0.8.0"
|
|
@@ -69,7 +93,7 @@
|
|
|
69
93
|
"devDependencies": {
|
|
70
94
|
"@erc725/erc725.js": "0.8.0",
|
|
71
95
|
"@lukso/eip191-signer.js": "^0.2.0",
|
|
72
|
-
"@nomicfoundation/hardhat-toolbox": "^
|
|
96
|
+
"@nomicfoundation/hardhat-toolbox": "^2.0.2",
|
|
73
97
|
"@nomiclabs/hardhat-web3": "^2.0.0",
|
|
74
98
|
"@primitivefi/hardhat-dodoc": "^0.1.1",
|
|
75
99
|
"@remix-project/remixd": "^0.5.1",
|
|
@@ -97,7 +121,7 @@
|
|
|
97
121
|
"standard-version": "^9.3.1",
|
|
98
122
|
"ts-node": "^10.2.0",
|
|
99
123
|
"typechain": "^8.0.0",
|
|
100
|
-
"typescript": "^4.
|
|
124
|
+
"typescript": "^4.9.5",
|
|
101
125
|
"web3": "^1.5.2"
|
|
102
126
|
}
|
|
103
127
|
}
|