@lukso/lsp-smart-contracts 0.9.0 → 0.10.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.
Files changed (177) hide show
  1. package/README.md +29 -7
  2. package/artifacts/LSP0ERC725Account.json +63 -69
  3. package/artifacts/LSP0ERC725AccountInit.json +63 -69
  4. package/artifacts/LSP11BasicSocialRecovery.json +2 -2
  5. package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
  6. package/artifacts/LSP16UniversalFactory.json +27 -21
  7. package/artifacts/LSP1UniversalReceiverDelegateUP.json +2 -2
  8. package/artifacts/LSP1UniversalReceiverDelegateVault.json +2 -2
  9. package/artifacts/LSP4Compatibility.json +32 -38
  10. package/artifacts/LSP4DigitalAssetMetadata.json +32 -38
  11. package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +32 -38
  12. package/artifacts/LSP6KeyManager.json +29 -15
  13. package/artifacts/LSP6KeyManagerInit.json +29 -15
  14. package/artifacts/LSP7CappedSupply.json +71 -36
  15. package/artifacts/LSP7CappedSupplyInitAbstract.json +71 -36
  16. package/artifacts/LSP7CompatibleERC20.json +71 -36
  17. package/artifacts/LSP7CompatibleERC20InitAbstract.json +71 -36
  18. package/artifacts/LSP7CompatibleERC20Mintable.json +73 -38
  19. package/artifacts/LSP7CompatibleERC20MintableInit.json +73 -38
  20. package/artifacts/LSP7DigitalAsset.json +71 -36
  21. package/artifacts/LSP7DigitalAssetInitAbstract.json +71 -36
  22. package/artifacts/LSP7Mintable.json +73 -38
  23. package/artifacts/LSP7MintableInit.json +73 -38
  24. package/artifacts/LSP8CappedSupply.json +32 -38
  25. package/artifacts/LSP8CappedSupplyInitAbstract.json +32 -38
  26. package/artifacts/LSP8CompatibleERC721.json +35 -41
  27. package/artifacts/LSP8CompatibleERC721InitAbstract.json +35 -41
  28. package/artifacts/LSP8CompatibleERC721Mintable.json +37 -43
  29. package/artifacts/LSP8CompatibleERC721MintableInit.json +37 -43
  30. package/artifacts/LSP8IdentifiableDigitalAsset.json +32 -38
  31. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +32 -38
  32. package/artifacts/LSP8Mintable.json +34 -40
  33. package/artifacts/LSP8MintableInit.json +34 -40
  34. package/artifacts/LSP9Vault.json +61 -67
  35. package/artifacts/LSP9VaultInit.json +61 -67
  36. package/artifacts/UniversalProfile.json +63 -69
  37. package/artifacts/UniversalProfileInit.json +63 -69
  38. package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +45 -10
  39. package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
  40. package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +43 -8
  41. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +361 -124
  42. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +44 -8
  43. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +45 -6
  44. package/contracts/LSP0ERC725Account/LSP0Utils.sol +0 -1
  45. package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +30 -15
  46. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +0 -1
  47. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.sol +0 -1
  48. package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +5 -7
  49. package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +262 -115
  50. package/contracts/LSP17ContractExtension/LSP17Extendable.sol +10 -5
  51. package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +0 -4
  52. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +91 -34
  53. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +27 -8
  54. package/contracts/LSP20CallVerification/LSP20CallVerification.sol +18 -9
  55. package/contracts/LSP20CallVerification/LSP20Constants.sol +17 -0
  56. package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +26 -12
  57. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +0 -1
  58. package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +32 -16
  59. package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +11 -2
  60. package/contracts/LSP6KeyManager/LSP6Constants.sol +5 -5
  61. package/contracts/LSP6KeyManager/LSP6Errors.sol +10 -6
  62. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +140 -68
  63. package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +0 -1
  64. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +30 -38
  65. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +153 -60
  66. package/contracts/LSP6KeyManager/LSP6Utils.sol +1 -5
  67. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +67 -13
  68. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +5 -0
  69. package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +2 -2
  70. package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +24 -0
  71. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +1 -2
  72. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +1 -2
  73. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +3 -5
  74. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +3 -5
  75. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +15 -12
  76. package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +1 -1
  77. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +1 -2
  78. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +1 -2
  79. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +5 -5
  80. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +6 -6
  81. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +2 -2
  82. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +2 -2
  83. package/contracts/LSP9Vault/ILSP9Vault.sol +9 -1
  84. package/contracts/LSP9Vault/LSP9Constants.sol +1 -1
  85. package/contracts/LSP9Vault/LSP9Vault.sol +0 -6
  86. package/contracts/LSP9Vault/LSP9VaultCore.sol +17 -15
  87. package/contracts/LSP9Vault/LSP9VaultInit.sol +2 -1
  88. package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +8 -5
  89. package/contracts/UniversalProfile.sol +10 -4
  90. package/contracts/UniversalProfileInit.sol +15 -5
  91. package/contracts/UniversalProfileInitAbstract.sol +7 -3
  92. package/devdocs/Create2Factory.json +16 -0
  93. package/devdocs/LSP0ERC725Account.json +200 -0
  94. package/devdocs/LSP0ERC725AccountInit.json +203 -0
  95. package/devdocs/LSP11BasicSocialRecovery.json +146 -0
  96. package/devdocs/LSP11BasicSocialRecoveryInit.json +146 -0
  97. package/devdocs/LSP16UniversalFactory.json +116 -0
  98. package/devdocs/LSP1UniversalReceiverDelegateUP.json +80 -0
  99. package/devdocs/LSP1UniversalReceiverDelegateVault.json +62 -0
  100. package/devdocs/LSP4Compatibility.json +79 -0
  101. package/devdocs/LSP4DigitalAssetMetadata.json +84 -0
  102. package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +77 -0
  103. package/devdocs/LSP6KeyManager.json +257 -0
  104. package/devdocs/LSP6KeyManagerInit.json +260 -0
  105. package/devdocs/LSP7CappedSupply.json +211 -0
  106. package/devdocs/LSP7CappedSupplyInitAbstract.json +206 -0
  107. package/devdocs/LSP7CompatibleERC20.json +225 -0
  108. package/devdocs/LSP7CompatibleERC20InitAbstract.json +218 -0
  109. package/devdocs/LSP7CompatibleERC20Mintable.json +217 -0
  110. package/devdocs/LSP7CompatibleERC20MintableInit.json +227 -0
  111. package/devdocs/LSP7DigitalAsset.json +210 -0
  112. package/devdocs/LSP7DigitalAssetInitAbstract.json +202 -0
  113. package/devdocs/LSP7Mintable.json +219 -0
  114. package/devdocs/LSP7MintableInit.json +220 -0
  115. package/devdocs/LSP8CappedSupply.json +232 -0
  116. package/devdocs/LSP8CappedSupplyInitAbstract.json +227 -0
  117. package/devdocs/LSP8CompatibleERC721.json +298 -0
  118. package/devdocs/LSP8CompatibleERC721InitAbstract.json +291 -0
  119. package/devdocs/LSP8CompatibleERC721Mintable.json +290 -0
  120. package/devdocs/LSP8CompatibleERC721MintableInit.json +300 -0
  121. package/devdocs/LSP8IdentifiableDigitalAsset.json +230 -0
  122. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +223 -0
  123. package/devdocs/LSP8Mintable.json +242 -0
  124. package/devdocs/LSP8MintableInit.json +245 -0
  125. package/devdocs/LSP9Vault.json +171 -0
  126. package/devdocs/LSP9VaultInit.json +175 -0
  127. package/devdocs/UniversalProfile.json +200 -0
  128. package/devdocs/UniversalProfileInit.json +203 -0
  129. package/devdocs/UniversalReceiverAddressStore.json +9 -0
  130. package/dist/constants.cjs.js +31657 -0
  131. package/dist/constants.d.ts +31759 -0
  132. package/dist/constants.es.js +31638 -0
  133. package/package.json +71 -53
  134. package/userdocs/Create2Factory.json +5 -0
  135. package/userdocs/LSP0ERC725Account.json +50 -0
  136. package/userdocs/LSP0ERC725AccountInit.json +53 -0
  137. package/userdocs/LSP11BasicSocialRecovery.json +29 -0
  138. package/userdocs/LSP11BasicSocialRecoveryInit.json +29 -0
  139. package/userdocs/LSP16UniversalFactory.json +5 -0
  140. package/userdocs/LSP1UniversalReceiverDelegateUP.json +10 -0
  141. package/userdocs/LSP1UniversalReceiverDelegateVault.json +10 -0
  142. package/userdocs/LSP4Compatibility.json +20 -0
  143. package/userdocs/LSP4DigitalAssetMetadata.json +23 -0
  144. package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +20 -0
  145. package/userdocs/LSP6KeyManager.json +18 -0
  146. package/userdocs/LSP6KeyManagerInit.json +18 -0
  147. package/userdocs/LSP7CappedSupply.json +29 -0
  148. package/userdocs/LSP7CappedSupplyInitAbstract.json +26 -0
  149. package/userdocs/LSP7CompatibleERC20.json +35 -0
  150. package/userdocs/LSP7CompatibleERC20InitAbstract.json +32 -0
  151. package/userdocs/LSP7CompatibleERC20Mintable.json +32 -0
  152. package/userdocs/LSP7CompatibleERC20MintableInit.json +35 -0
  153. package/userdocs/LSP7DigitalAsset.json +29 -0
  154. package/userdocs/LSP7DigitalAssetInitAbstract.json +26 -0
  155. package/userdocs/LSP7Mintable.json +29 -0
  156. package/userdocs/LSP7MintableInit.json +29 -0
  157. package/userdocs/LSP8CappedSupply.json +23 -0
  158. package/userdocs/LSP8CappedSupplyInitAbstract.json +20 -0
  159. package/userdocs/LSP8CompatibleERC721.json +29 -0
  160. package/userdocs/LSP8CompatibleERC721InitAbstract.json +26 -0
  161. package/userdocs/LSP8CompatibleERC721Mintable.json +26 -0
  162. package/userdocs/LSP8CompatibleERC721MintableInit.json +29 -0
  163. package/userdocs/LSP8IdentifiableDigitalAsset.json +23 -0
  164. package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +20 -0
  165. package/userdocs/LSP8Mintable.json +23 -0
  166. package/userdocs/LSP8MintableInit.json +23 -0
  167. package/userdocs/LSP9Vault.json +38 -0
  168. package/userdocs/LSP9VaultInit.json +38 -0
  169. package/userdocs/UniversalProfile.json +50 -0
  170. package/userdocs/UniversalProfileInit.json +53 -0
  171. package/userdocs/UniversalReceiverAddressStore.json +5 -0
  172. package/CONTRIBUTING.md +0 -57
  173. package/common/constants.d.ts +0 -461
  174. package/common/constants.js +0 -789
  175. package/contracts/Utils/GasLib.sol +0 -17
  176. package/module/constants.d.ts +0 -461
  177. package/module/constants.js +0 -786
@@ -0,0 +1,35 @@
1
+ {
2
+ "events": {
3
+ "Approval(address,address,uint256)": {
4
+ "notice": "To provide compatibility with indexing ERC20 events."
5
+ },
6
+ "DataChanged(bytes32,bytes)": {
7
+ "notice": "Emitted when data at a key is changed"
8
+ },
9
+ "Transfer(address,address,uint256)": {
10
+ "notice": "To provide compatibility with indexing ERC20 events."
11
+ }
12
+ },
13
+ "kind": "user",
14
+ "methods": {
15
+ "decreaseAllowance(address,uint256)": {
16
+ "notice": "Decrease the allowance of `operator` by -`substractedAmount`"
17
+ },
18
+ "getData(bytes32)": {
19
+ "notice": "Gets singular data at a given `dataKey`"
20
+ },
21
+ "getDataBatch(bytes32[])": {
22
+ "notice": "Gets array of data for multiple given keys"
23
+ },
24
+ "increaseAllowance(address,uint256)": {
25
+ "notice": "Increase the allowance of `operator` by +`addedAmount`"
26
+ },
27
+ "initialize(string,string,address)": {
28
+ "notice": "Sets the name, the symbol and the owner of the token"
29
+ },
30
+ "setData(bytes32,bytes)": {
31
+ "notice": "Sets singular data for a given `dataKey`"
32
+ }
33
+ },
34
+ "version": 1
35
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "events": {
3
+ "DataChanged(bytes32,bytes)": {
4
+ "notice": "Emitted when data at a key is changed"
5
+ }
6
+ },
7
+ "kind": "user",
8
+ "methods": {
9
+ "constructor": {
10
+ "notice": "Sets the token-Metadata"
11
+ },
12
+ "decreaseAllowance(address,uint256)": {
13
+ "notice": "Decrease the allowance of `operator` by -`substractedAmount`"
14
+ },
15
+ "getData(bytes32)": {
16
+ "notice": "Gets singular data at a given `dataKey`"
17
+ },
18
+ "getDataBatch(bytes32[])": {
19
+ "notice": "Gets array of data for multiple given keys"
20
+ },
21
+ "increaseAllowance(address,uint256)": {
22
+ "notice": "Increase the allowance of `operator` by +`addedAmount`"
23
+ },
24
+ "setData(bytes32,bytes)": {
25
+ "notice": "Sets singular data for a given `dataKey`"
26
+ }
27
+ },
28
+ "version": 1
29
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "events": {
3
+ "DataChanged(bytes32,bytes)": {
4
+ "notice": "Emitted when data at a key is changed"
5
+ }
6
+ },
7
+ "kind": "user",
8
+ "methods": {
9
+ "decreaseAllowance(address,uint256)": {
10
+ "notice": "Decrease the allowance of `operator` by -`substractedAmount`"
11
+ },
12
+ "getData(bytes32)": {
13
+ "notice": "Gets singular data at a given `dataKey`"
14
+ },
15
+ "getDataBatch(bytes32[])": {
16
+ "notice": "Gets array of data for multiple given keys"
17
+ },
18
+ "increaseAllowance(address,uint256)": {
19
+ "notice": "Increase the allowance of `operator` by +`addedAmount`"
20
+ },
21
+ "setData(bytes32,bytes)": {
22
+ "notice": "Sets singular data for a given `dataKey`"
23
+ }
24
+ },
25
+ "version": 1
26
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "events": {
3
+ "DataChanged(bytes32,bytes)": {
4
+ "notice": "Emitted when data at a key is changed"
5
+ }
6
+ },
7
+ "kind": "user",
8
+ "methods": {
9
+ "constructor": {
10
+ "notice": "Sets the token-Metadata and register LSP7InterfaceId"
11
+ },
12
+ "decreaseAllowance(address,uint256)": {
13
+ "notice": "Decrease the allowance of `operator` by -`substractedAmount`"
14
+ },
15
+ "getData(bytes32)": {
16
+ "notice": "Gets singular data at a given `dataKey`"
17
+ },
18
+ "getDataBatch(bytes32[])": {
19
+ "notice": "Gets array of data for multiple given keys"
20
+ },
21
+ "increaseAllowance(address,uint256)": {
22
+ "notice": "Increase the allowance of `operator` by +`addedAmount`"
23
+ },
24
+ "setData(bytes32,bytes)": {
25
+ "notice": "Sets singular data for a given `dataKey`"
26
+ }
27
+ },
28
+ "version": 1
29
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "events": {
3
+ "DataChanged(bytes32,bytes)": {
4
+ "notice": "Emitted when data at a key is changed"
5
+ }
6
+ },
7
+ "kind": "user",
8
+ "methods": {
9
+ "decreaseAllowance(address,uint256)": {
10
+ "notice": "Decrease the allowance of `operator` by -`substractedAmount`"
11
+ },
12
+ "getData(bytes32)": {
13
+ "notice": "Gets singular data at a given `dataKey`"
14
+ },
15
+ "getDataBatch(bytes32[])": {
16
+ "notice": "Gets array of data for multiple given keys"
17
+ },
18
+ "increaseAllowance(address,uint256)": {
19
+ "notice": "Increase the allowance of `operator` by +`addedAmount`"
20
+ },
21
+ "initialize(string,string,address,bool)": {
22
+ "notice": "Sets the token-Metadata and register LSP7InterfaceId"
23
+ },
24
+ "setData(bytes32,bytes)": {
25
+ "notice": "Sets singular data for a given `dataKey`"
26
+ }
27
+ },
28
+ "version": 1
29
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "events": {
3
+ "DataChanged(bytes32,bytes)": {
4
+ "notice": "Emitted when data at a key is changed"
5
+ }
6
+ },
7
+ "kind": "user",
8
+ "methods": {
9
+ "constructor": {
10
+ "notice": "Sets the token max supply"
11
+ },
12
+ "getData(bytes32)": {
13
+ "notice": "Gets singular data at a given `dataKey`"
14
+ },
15
+ "getDataBatch(bytes32[])": {
16
+ "notice": "Gets array of data for multiple given keys"
17
+ },
18
+ "setData(bytes32,bytes)": {
19
+ "notice": "Sets singular data for a given `dataKey`"
20
+ }
21
+ },
22
+ "version": 1
23
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "events": {
3
+ "DataChanged(bytes32,bytes)": {
4
+ "notice": "Emitted when data at a key is changed"
5
+ }
6
+ },
7
+ "kind": "user",
8
+ "methods": {
9
+ "getData(bytes32)": {
10
+ "notice": "Gets singular data at a given `dataKey`"
11
+ },
12
+ "getDataBatch(bytes32[])": {
13
+ "notice": "Gets array of data for multiple given keys"
14
+ },
15
+ "setData(bytes32,bytes)": {
16
+ "notice": "Sets singular data for a given `dataKey`"
17
+ }
18
+ },
19
+ "version": 1
20
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "events": {
3
+ "Approval(address,address,uint256)": {
4
+ "notice": "To provide compatibility with indexing ERC721 events."
5
+ },
6
+ "DataChanged(bytes32,bytes)": {
7
+ "notice": "Emitted when data at a key is changed"
8
+ },
9
+ "Transfer(address,address,uint256)": {
10
+ "notice": "To provide compatibility with indexing ERC721 events."
11
+ }
12
+ },
13
+ "kind": "user",
14
+ "methods": {
15
+ "constructor": {
16
+ "notice": "Sets the name, the symbol and the owner of the token"
17
+ },
18
+ "getData(bytes32)": {
19
+ "notice": "Gets singular data at a given `dataKey`"
20
+ },
21
+ "getDataBatch(bytes32[])": {
22
+ "notice": "Gets array of data for multiple given keys"
23
+ },
24
+ "setData(bytes32,bytes)": {
25
+ "notice": "Sets singular data for a given `dataKey`"
26
+ }
27
+ },
28
+ "version": 1
29
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "events": {
3
+ "Approval(address,address,uint256)": {
4
+ "notice": "To provide compatibility with indexing ERC721 events."
5
+ },
6
+ "DataChanged(bytes32,bytes)": {
7
+ "notice": "Emitted when data at a key is changed"
8
+ },
9
+ "Transfer(address,address,uint256)": {
10
+ "notice": "To provide compatibility with indexing ERC721 events."
11
+ }
12
+ },
13
+ "kind": "user",
14
+ "methods": {
15
+ "getData(bytes32)": {
16
+ "notice": "Gets singular data at a given `dataKey`"
17
+ },
18
+ "getDataBatch(bytes32[])": {
19
+ "notice": "Gets array of data for multiple given keys"
20
+ },
21
+ "setData(bytes32,bytes)": {
22
+ "notice": "Sets singular data for a given `dataKey`"
23
+ }
24
+ },
25
+ "version": 1
26
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "events": {
3
+ "Approval(address,address,uint256)": {
4
+ "notice": "To provide compatibility with indexing ERC721 events."
5
+ },
6
+ "DataChanged(bytes32,bytes)": {
7
+ "notice": "Emitted when data at a key is changed"
8
+ },
9
+ "Transfer(address,address,uint256)": {
10
+ "notice": "To provide compatibility with indexing ERC721 events."
11
+ }
12
+ },
13
+ "kind": "user",
14
+ "methods": {
15
+ "getData(bytes32)": {
16
+ "notice": "Gets singular data at a given `dataKey`"
17
+ },
18
+ "getDataBatch(bytes32[])": {
19
+ "notice": "Gets array of data for multiple given keys"
20
+ },
21
+ "setData(bytes32,bytes)": {
22
+ "notice": "Sets singular data for a given `dataKey`"
23
+ }
24
+ },
25
+ "version": 1
26
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "events": {
3
+ "Approval(address,address,uint256)": {
4
+ "notice": "To provide compatibility with indexing ERC721 events."
5
+ },
6
+ "DataChanged(bytes32,bytes)": {
7
+ "notice": "Emitted when data at a key is changed"
8
+ },
9
+ "Transfer(address,address,uint256)": {
10
+ "notice": "To provide compatibility with indexing ERC721 events."
11
+ }
12
+ },
13
+ "kind": "user",
14
+ "methods": {
15
+ "getData(bytes32)": {
16
+ "notice": "Gets singular data at a given `dataKey`"
17
+ },
18
+ "getDataBatch(bytes32[])": {
19
+ "notice": "Gets array of data for multiple given keys"
20
+ },
21
+ "initialize(string,string,address)": {
22
+ "notice": "Sets the name, the symbol and the owner of the token"
23
+ },
24
+ "setData(bytes32,bytes)": {
25
+ "notice": "Sets singular data for a given `dataKey`"
26
+ }
27
+ },
28
+ "version": 1
29
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "events": {
3
+ "DataChanged(bytes32,bytes)": {
4
+ "notice": "Emitted when data at a key is changed"
5
+ }
6
+ },
7
+ "kind": "user",
8
+ "methods": {
9
+ "constructor": {
10
+ "notice": "Sets the token-Metadata"
11
+ },
12
+ "getData(bytes32)": {
13
+ "notice": "Gets singular data at a given `dataKey`"
14
+ },
15
+ "getDataBatch(bytes32[])": {
16
+ "notice": "Gets array of data for multiple given keys"
17
+ },
18
+ "setData(bytes32,bytes)": {
19
+ "notice": "Sets singular data for a given `dataKey`"
20
+ }
21
+ },
22
+ "version": 1
23
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "events": {
3
+ "DataChanged(bytes32,bytes)": {
4
+ "notice": "Emitted when data at a key is changed"
5
+ }
6
+ },
7
+ "kind": "user",
8
+ "methods": {
9
+ "getData(bytes32)": {
10
+ "notice": "Gets singular data at a given `dataKey`"
11
+ },
12
+ "getDataBatch(bytes32[])": {
13
+ "notice": "Gets array of data for multiple given keys"
14
+ },
15
+ "setData(bytes32,bytes)": {
16
+ "notice": "Sets singular data for a given `dataKey`"
17
+ }
18
+ },
19
+ "version": 1
20
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "events": {
3
+ "DataChanged(bytes32,bytes)": {
4
+ "notice": "Emitted when data at a key is changed"
5
+ }
6
+ },
7
+ "kind": "user",
8
+ "methods": {
9
+ "constructor": {
10
+ "notice": "Sets the token-Metadata and register LSP8InterfaceId"
11
+ },
12
+ "getData(bytes32)": {
13
+ "notice": "Gets singular data at a given `dataKey`"
14
+ },
15
+ "getDataBatch(bytes32[])": {
16
+ "notice": "Gets array of data for multiple given keys"
17
+ },
18
+ "setData(bytes32,bytes)": {
19
+ "notice": "Sets singular data for a given `dataKey`"
20
+ }
21
+ },
22
+ "version": 1
23
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "events": {
3
+ "DataChanged(bytes32,bytes)": {
4
+ "notice": "Emitted when data at a key is changed"
5
+ }
6
+ },
7
+ "kind": "user",
8
+ "methods": {
9
+ "getData(bytes32)": {
10
+ "notice": "Gets singular data at a given `dataKey`"
11
+ },
12
+ "getDataBatch(bytes32[])": {
13
+ "notice": "Gets array of data for multiple given keys"
14
+ },
15
+ "initialize(string,string,address)": {
16
+ "notice": "Sets the token-Metadata and register LSP8InterfaceId"
17
+ },
18
+ "setData(bytes32,bytes)": {
19
+ "notice": "Sets singular data for a given `dataKey`"
20
+ }
21
+ },
22
+ "version": 1
23
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "events": {
3
+ "ContractCreated(uint256,address,uint256,bytes32)": {
4
+ "notice": "Emitted when deploying a contract"
5
+ },
6
+ "DataChanged(bytes32,bytes)": {
7
+ "notice": "Emitted when data at a key is changed"
8
+ },
9
+ "Executed(uint256,address,uint256,bytes4)": {
10
+ "notice": "Emitted when calling an address (EOA or contract)"
11
+ },
12
+ "UniversalReceiver(address,uint256,bytes32,bytes,bytes)": {
13
+ "notice": "Emitted when the universalReceiver function is succesfully executed"
14
+ },
15
+ "ValueReceived(address,uint256)": {
16
+ "notice": "Emitted when receiving native tokens"
17
+ }
18
+ },
19
+ "kind": "user",
20
+ "methods": {
21
+ "constructor": {
22
+ "notice": "Sets the owner of the contract and sets the SupportedStandards:LSP9Vault key"
23
+ },
24
+ "getData(bytes32)": {
25
+ "notice": "Gets singular data at a given `dataKey`"
26
+ },
27
+ "getDataBatch(bytes32[])": {
28
+ "notice": "Gets array of data for multiple given keys"
29
+ },
30
+ "setData(bytes32,bytes)": {
31
+ "notice": "Sets singular data for a given `dataKey`"
32
+ },
33
+ "universalReceiver(bytes32,bytes)": {
34
+ "notice": "Triggers the UniversalReceiver event when this function gets executed successfully. Forwards the call to the addresses stored in the ERC725Y storage under the LSP1UniversalReceiverDelegate Key and the typeId Key (param) respectively. The call will be discarded if no addresses are set."
35
+ }
36
+ },
37
+ "version": 1
38
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "events": {
3
+ "ContractCreated(uint256,address,uint256,bytes32)": {
4
+ "notice": "Emitted when deploying a contract"
5
+ },
6
+ "DataChanged(bytes32,bytes)": {
7
+ "notice": "Emitted when data at a key is changed"
8
+ },
9
+ "Executed(uint256,address,uint256,bytes4)": {
10
+ "notice": "Emitted when calling an address (EOA or contract)"
11
+ },
12
+ "UniversalReceiver(address,uint256,bytes32,bytes,bytes)": {
13
+ "notice": "Emitted when the universalReceiver function is succesfully executed"
14
+ },
15
+ "ValueReceived(address,uint256)": {
16
+ "notice": "Emitted when receiving native tokens"
17
+ }
18
+ },
19
+ "kind": "user",
20
+ "methods": {
21
+ "getData(bytes32)": {
22
+ "notice": "Gets singular data at a given `dataKey`"
23
+ },
24
+ "getDataBatch(bytes32[])": {
25
+ "notice": "Gets array of data for multiple given keys"
26
+ },
27
+ "initialize(address)": {
28
+ "notice": "Initializing the contract owner to: `newOwner`"
29
+ },
30
+ "setData(bytes32,bytes)": {
31
+ "notice": "Sets singular data for a given `dataKey`"
32
+ },
33
+ "universalReceiver(bytes32,bytes)": {
34
+ "notice": "Triggers the UniversalReceiver event when this function gets executed successfully. Forwards the call to the addresses stored in the ERC725Y storage under the LSP1UniversalReceiverDelegate Key and the typeId Key (param) respectively. The call will be discarded if no addresses are set."
35
+ }
36
+ },
37
+ "version": 1
38
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "events": {
3
+ "ContractCreated(uint256,address,uint256,bytes32)": {
4
+ "notice": "Emitted when deploying a contract"
5
+ },
6
+ "DataChanged(bytes32,bytes)": {
7
+ "notice": "Emitted when data at a key is changed"
8
+ },
9
+ "Executed(uint256,address,uint256,bytes4)": {
10
+ "notice": "Emitted when calling an address (EOA or contract)"
11
+ },
12
+ "UniversalReceiver(address,uint256,bytes32,bytes,bytes)": {
13
+ "notice": "Emitted when the universalReceiver function is succesfully executed"
14
+ },
15
+ "ValueReceived(address,uint256)": {
16
+ "notice": "Emitted when receiving native tokens"
17
+ }
18
+ },
19
+ "kind": "user",
20
+ "methods": {
21
+ "acceptOwnership()": {
22
+ "notice": "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
23
+ },
24
+ "constructor": {
25
+ "notice": "Deploying the contract with owner set to: `initialOwner`"
26
+ },
27
+ "getData(bytes32)": {
28
+ "notice": "Gets singular data at a given `dataKey`"
29
+ },
30
+ "getDataBatch(bytes32[])": {
31
+ "notice": "Gets array of data for multiple given keys"
32
+ },
33
+ "isValidSignature(bytes32,bytes)": {
34
+ "notice": "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
35
+ },
36
+ "renounceOwnership()": {
37
+ "notice": "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
38
+ },
39
+ "supportsInterface(bytes4)": {
40
+ "notice": "Achieves the goal of ERC165 to detect supported interfaces and LSP17 by checking if the interfaceId being queried is supported on another linked extension."
41
+ },
42
+ "transferOwnership(address)": {
43
+ "notice": "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
44
+ },
45
+ "universalReceiver(bytes32,bytes)": {
46
+ "notice": "Achieves the goal of LSP1-UniversalReceiver by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
47
+ }
48
+ },
49
+ "version": 1
50
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "events": {
3
+ "ContractCreated(uint256,address,uint256,bytes32)": {
4
+ "notice": "Emitted when deploying a contract"
5
+ },
6
+ "DataChanged(bytes32,bytes)": {
7
+ "notice": "Emitted when data at a key is changed"
8
+ },
9
+ "Executed(uint256,address,uint256,bytes4)": {
10
+ "notice": "Emitted when calling an address (EOA or contract)"
11
+ },
12
+ "UniversalReceiver(address,uint256,bytes32,bytes,bytes)": {
13
+ "notice": "Emitted when the universalReceiver function is succesfully executed"
14
+ },
15
+ "ValueReceived(address,uint256)": {
16
+ "notice": "Emitted when receiving native tokens"
17
+ }
18
+ },
19
+ "kind": "user",
20
+ "methods": {
21
+ "acceptOwnership()": {
22
+ "notice": "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
23
+ },
24
+ "constructor": {
25
+ "notice": "deploying a `UniversalProfileInit` base contract to be used behind proxy"
26
+ },
27
+ "getData(bytes32)": {
28
+ "notice": "Gets singular data at a given `dataKey`"
29
+ },
30
+ "getDataBatch(bytes32[])": {
31
+ "notice": "Gets array of data for multiple given keys"
32
+ },
33
+ "initialize(address)": {
34
+ "notice": "Initializing the contract owner to: `initialOwner`"
35
+ },
36
+ "isValidSignature(bytes32,bytes)": {
37
+ "notice": "Achieves the goal of EIP-1271 by validating signatures of smart contracts according to their own logic."
38
+ },
39
+ "renounceOwnership()": {
40
+ "notice": "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
41
+ },
42
+ "supportsInterface(bytes4)": {
43
+ "notice": "Achieves the goal of ERC165 to detect supported interfaces and LSP17 by checking if the interfaceId being queried is supported on another linked extension."
44
+ },
45
+ "transferOwnership(address)": {
46
+ "notice": "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
47
+ },
48
+ "universalReceiver(bytes32,bytes)": {
49
+ "notice": "Achieves the goal of LSP1-UniversalReceiver by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts (UniversalReceiverDelegates) that react on the whole transaction and on the specific typeId, respectively. The notification is achieved by emitting a {UniversalReceiver} event on the call with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract."
50
+ }
51
+ },
52
+ "version": 1
53
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "kind": "user",
3
+ "methods": {},
4
+ "version": 1
5
+ }
package/CONTRIBUTING.md DELETED
@@ -1,57 +0,0 @@
1
- # Contributing
2
-
3
- Since the `@lukso/lsp-smart-contracts` is an Open Source project, we welcome contributions from anyone about any topics. You can do PRs or open issues in the repository for instance to:
4
-
5
- - discuss and propose new ideas or features.
6
- - report bug and issues.
7
- - introduce new features or bug fixes.
8
-
9
- ## **Clone project**
10
-
11
- Our project uses submodules, we recommend you to clone our repository using the following command:
12
-
13
- ```bash
14
- $ git clone --recurse-submodules https://github.com/lukso-network/lsp-smart-contracts.git
15
- ```
16
-
17
- ## Linting & Formatting Code
18
-
19
- Run the linter and prettier from the _lsp-smart-contracts_ project root:
20
-
21
- ```bash
22
- npm run linter
23
- npm run prettier
24
- ```
25
-
26
- The linter is configured to check your code for adherence to our guidelines defined in `.solcover.js`.
27
- The script above will prettify the smart contracts, tests and other files according to our styling guidelines defined in `.prettierrc`.
28
-
29
- ## Testing
30
-
31
- Chai contract tests are defined under the tests directory. To run all the tests, run:
32
-
33
- ```bash
34
- $ npm test
35
- ```
36
-
37
- ## **Commits and PRs**
38
-
39
- This project uses Conventional Commits to generate release notes and to determine versioning. Commit messages should adhere to this standard and be of the form:
40
-
41
- ```bash
42
- $ git commit -m "feat: Add new feature x"
43
- $ git commit -m "fix: Fix bug in feature x"
44
- $ git commit -m "docs: Add documentation for feature x"
45
- $ git commit -m "test: Add test suite for feature x"
46
- ```
47
-
48
- Further details on `conventional commits` can be found here: https://www.conventionalcommits.org/en/v1.0.0/
49
-
50
- When merging a branch to `develop` PRs should be squashed into one conventional commit by selecting the `Squash and merge` option. This ensures Release notes are useful and readable when releases are created.
51
-
52
- <!-- ![alt text](https://docs.github.com/assets/images/help/pull_requests/select-squash-and-merge-from-drop-down-menu.png) -->
53
- <img src="https://docs.github.com/assets/images/help/pull_requests/select-squash-and-merge-from-drop-down-menu.png" alt="drawing" style="width:600px;"/>
54
-
55
- ## Adding contributors
56
-
57
- You can add yourself to the list of contributors in the repository when opening a PR for the first time in the repository. See the [`all-contributors-cli`](https://allcontributors.org/docs/en/cli/usage#all-contributors-add) usage documentation.