@lukso/lsp-smart-contracts 0.11.0-rc.0 → 0.11.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 (199) hide show
  1. package/README.md +1 -0
  2. package/artifacts/LSP0ERC725Account.json +7 -2
  3. package/artifacts/LSP0ERC725AccountInit.json +7 -2
  4. package/artifacts/LSP11BasicSocialRecovery.json +2 -2
  5. package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
  6. package/artifacts/LSP1UniversalReceiverDelegateUP.json +3 -79
  7. package/artifacts/LSP1UniversalReceiverDelegateVault.json +3 -41
  8. package/artifacts/LSP23LinkedContractsFactory.json +544 -0
  9. package/artifacts/LSP6KeyManager.json +24 -19
  10. package/artifacts/LSP6KeyManagerInit.json +24 -19
  11. package/artifacts/LSP7CappedSupply.json +88 -0
  12. package/artifacts/LSP7CappedSupplyInitAbstract.json +88 -0
  13. package/artifacts/LSP7CompatibleERC20.json +88 -0
  14. package/artifacts/LSP7CompatibleERC20InitAbstract.json +88 -0
  15. package/artifacts/LSP7CompatibleERC20Mintable.json +90 -2
  16. package/artifacts/LSP7CompatibleERC20MintableInit.json +90 -2
  17. package/artifacts/LSP7DigitalAsset.json +88 -0
  18. package/artifacts/LSP7DigitalAssetInitAbstract.json +88 -0
  19. package/artifacts/LSP7Mintable.json +90 -2
  20. package/artifacts/LSP7MintableInit.json +90 -2
  21. package/artifacts/LSP8CappedSupply.json +59 -0
  22. package/artifacts/LSP8CappedSupplyInitAbstract.json +59 -0
  23. package/artifacts/LSP8CompatibleERC721.json +60 -1
  24. package/artifacts/LSP8CompatibleERC721InitAbstract.json +60 -1
  25. package/artifacts/LSP8CompatibleERC721Mintable.json +62 -3
  26. package/artifacts/LSP8CompatibleERC721MintableInit.json +62 -3
  27. package/artifacts/LSP8IdentifiableDigitalAsset.json +59 -0
  28. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +59 -0
  29. package/artifacts/LSP8Mintable.json +61 -2
  30. package/artifacts/LSP8MintableInit.json +61 -2
  31. package/artifacts/LSP9Vault.json +7 -2
  32. package/artifacts/LSP9VaultInit.json +7 -2
  33. package/artifacts/UniversalProfile.json +7 -2
  34. package/artifacts/UniversalProfileInit.json +7 -2
  35. package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +8 -36
  36. package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
  37. package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +15 -30
  38. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +122 -206
  39. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +18 -36
  40. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +8 -34
  41. package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +148 -177
  42. package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +21 -20
  43. package/contracts/LSP14Ownable2Step/LSP14Errors.sol +13 -2
  44. package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +50 -20
  45. package/contracts/LSP17ContractExtension/LSP17Errors.sol +10 -0
  46. package/contracts/LSP17ContractExtension/LSP17Extendable.sol +16 -34
  47. package/contracts/LSP17ContractExtension/LSP17Utils.sol +1 -1
  48. package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +16 -11
  49. package/contracts/LSP1UniversalReceiver/LSP1Errors.sol +5 -10
  50. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +192 -177
  51. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +150 -88
  52. package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +66 -48
  53. package/contracts/LSP20CallVerification/LSP20CallVerification.sol +1 -1
  54. package/contracts/LSP23LinkedContractsDeployment/ILSP23LinkedContractsFactory.sol +192 -0
  55. package/contracts/LSP23LinkedContractsDeployment/IPostDeploymentModule.sol +18 -0
  56. package/contracts/LSP23LinkedContractsDeployment/LSP23Errors.sol +24 -0
  57. package/contracts/LSP23LinkedContractsDeployment/LSP23LinkedContractsFactory.sol +392 -0
  58. package/contracts/{LSP23MultiChainDeployment → LSP23LinkedContractsDeployment}/modules/UniversalProfileInitPostDeploymentModule.sol +5 -1
  59. package/contracts/LSP23LinkedContractsDeployment/modules/UniversalProfilePostDeploymentModule.sol +61 -0
  60. package/contracts/LSP25ExecuteRelayCall/ILSP25ExecuteRelayCall.sol +68 -0
  61. package/contracts/LSP25ExecuteRelayCall/LSP25Constants.sol +8 -0
  62. package/contracts/LSP25ExecuteRelayCall/LSP25Errors.sol +17 -0
  63. package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +143 -0
  64. package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +256 -61
  65. package/contracts/{LSP3UniversalProfile → LSP3ProfileMetadata}/LSP3Constants.sol +3 -3
  66. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +9 -8
  67. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +13 -6
  68. package/contracts/LSP4DigitalAssetMetadata/LSP4Errors.sol +4 -4
  69. package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +148 -189
  70. package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +26 -54
  71. package/contracts/LSP6KeyManager/LSP6Constants.sol +1 -3
  72. package/contracts/LSP6KeyManager/LSP6Errors.sol +142 -63
  73. package/contracts/LSP6KeyManager/LSP6KeyManager.sol +7 -4
  74. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +125 -80
  75. package/contracts/LSP6KeyManager/LSP6KeyManagerInit.sol +8 -4
  76. package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +1 -1
  77. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +52 -84
  78. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +59 -10
  79. package/contracts/LSP6KeyManager/LSP6Utils.sol +67 -46
  80. package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +116 -78
  81. package/contracts/LSP7DigitalAsset/LSP7Constants.sol +4 -1
  82. package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +128 -6
  83. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +212 -80
  84. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +126 -3
  85. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +7 -5
  86. package/contracts/LSP7DigitalAsset/extensions/ILSP7CompatibleERC20.sol +27 -14
  87. package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +2 -4
  88. package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +2 -4
  89. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +29 -11
  90. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +30 -9
  91. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +46 -14
  92. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +43 -12
  93. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +14 -0
  94. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +9 -4
  95. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +7 -1
  96. package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +8 -8
  97. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +7 -6
  98. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +10 -2
  99. package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +120 -92
  100. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +4 -1
  101. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +135 -6
  102. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +128 -38
  103. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +134 -5
  104. package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +83 -41
  105. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +13 -5
  106. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +24 -0
  107. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +30 -12
  108. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +31 -10
  109. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +96 -31
  110. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +98 -23
  111. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +21 -4
  112. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +12 -2
  113. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +21 -0
  114. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +9 -4
  115. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +13 -0
  116. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +15 -6
  117. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +7 -5
  118. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +17 -2
  119. package/contracts/LSP9Vault/ILSP9Vault.sol +10 -5
  120. package/contracts/LSP9Vault/LSP9Errors.sol +3 -2
  121. package/contracts/LSP9Vault/LSP9Vault.sol +12 -4
  122. package/contracts/LSP9Vault/LSP9VaultCore.sol +245 -182
  123. package/contracts/LSP9Vault/LSP9VaultInit.sol +10 -3
  124. package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +11 -6
  125. package/contracts/UniversalProfile.sol +8 -6
  126. package/contracts/UniversalProfileInit.sol +6 -6
  127. package/contracts/UniversalProfileInitAbstract.sol +10 -3
  128. package/devdocs/LSP0ERC725Account.json +54 -37
  129. package/devdocs/LSP0ERC725AccountInit.json +56 -38
  130. package/devdocs/LSP1UniversalReceiverDelegateUP.json +14 -55
  131. package/devdocs/LSP1UniversalReceiverDelegateVault.json +9 -33
  132. package/devdocs/LSP23LinkedContractsFactory.json +81 -0
  133. package/devdocs/LSP4DigitalAssetMetadata.json +5 -5
  134. package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +4 -4
  135. package/devdocs/LSP6KeyManager.json +109 -70
  136. package/devdocs/LSP6KeyManagerInit.json +109 -70
  137. package/devdocs/LSP7CappedSupply.json +90 -42
  138. package/devdocs/LSP7CappedSupplyInitAbstract.json +86 -40
  139. package/devdocs/LSP7CompatibleERC20.json +79 -43
  140. package/devdocs/LSP7CompatibleERC20InitAbstract.json +75 -39
  141. package/devdocs/LSP7CompatibleERC20Mintable.json +87 -40
  142. package/devdocs/LSP7CompatibleERC20MintableInit.json +82 -42
  143. package/devdocs/LSP7DigitalAsset.json +76 -40
  144. package/devdocs/LSP7DigitalAssetInitAbstract.json +73 -37
  145. package/devdocs/LSP7Mintable.json +79 -51
  146. package/devdocs/LSP7MintableInit.json +78 -49
  147. package/devdocs/LSP8CappedSupply.json +72 -43
  148. package/devdocs/LSP8CappedSupplyInitAbstract.json +68 -41
  149. package/devdocs/LSP8CompatibleERC721.json +85 -64
  150. package/devdocs/LSP8CompatibleERC721InitAbstract.json +81 -60
  151. package/devdocs/LSP8CompatibleERC721Mintable.json +98 -60
  152. package/devdocs/LSP8CompatibleERC721MintableInit.json +93 -62
  153. package/devdocs/LSP8IdentifiableDigitalAsset.json +58 -41
  154. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +57 -40
  155. package/devdocs/LSP8Mintable.json +65 -48
  156. package/devdocs/LSP8MintableInit.json +64 -47
  157. package/devdocs/LSP9Vault.json +61 -18
  158. package/devdocs/LSP9VaultInit.json +59 -17
  159. package/devdocs/UniversalProfile.json +53 -35
  160. package/devdocs/UniversalProfileInit.json +53 -35
  161. package/dist/constants.cjs.js +6236 -2587
  162. package/dist/constants.d.ts +3851 -1129
  163. package/dist/constants.es.js +6236 -2587
  164. package/package.json +6 -4
  165. package/userdocs/LSP0ERC725Account.json +40 -8
  166. package/userdocs/LSP0ERC725AccountInit.json +40 -8
  167. package/userdocs/LSP1UniversalReceiverDelegateUP.json +18 -2
  168. package/userdocs/LSP1UniversalReceiverDelegateVault.json +18 -2
  169. package/userdocs/LSP23LinkedContractsFactory.json +29 -0
  170. package/userdocs/LSP4DigitalAssetMetadata.json +1 -1
  171. package/userdocs/LSP6KeyManager.json +144 -6
  172. package/userdocs/LSP6KeyManagerInit.json +147 -6
  173. package/userdocs/LSP7CappedSupply.json +18 -3
  174. package/userdocs/LSP7CappedSupplyInitAbstract.json +17 -2
  175. package/userdocs/LSP7CompatibleERC20.json +3 -9
  176. package/userdocs/LSP7CompatibleERC20InitAbstract.json +2 -8
  177. package/userdocs/LSP7CompatibleERC20Mintable.json +5 -8
  178. package/userdocs/LSP7CompatibleERC20MintableInit.json +3 -9
  179. package/userdocs/LSP7DigitalAsset.json +2 -2
  180. package/userdocs/LSP7DigitalAssetInitAbstract.json +2 -2
  181. package/userdocs/LSP7Mintable.json +3 -3
  182. package/userdocs/LSP7MintableInit.json +3 -3
  183. package/userdocs/LSP8CappedSupply.json +16 -1
  184. package/userdocs/LSP8CappedSupplyInitAbstract.json +15 -0
  185. package/userdocs/LSP8CompatibleERC721.json +24 -3
  186. package/userdocs/LSP8CompatibleERC721InitAbstract.json +23 -2
  187. package/userdocs/LSP8CompatibleERC721Mintable.json +29 -2
  188. package/userdocs/LSP8CompatibleERC721MintableInit.json +27 -3
  189. package/userdocs/LSP8Mintable.json +4 -1
  190. package/userdocs/LSP8MintableInit.json +4 -1
  191. package/userdocs/LSP9Vault.json +50 -4
  192. package/userdocs/LSP9VaultInit.json +50 -4
  193. package/userdocs/UniversalProfile.json +40 -8
  194. package/userdocs/UniversalProfileInit.json +40 -8
  195. package/contracts/LSP0ERC725Account/LSP0Utils.sol +0 -47
  196. package/contracts/LSP23MultiChainDeployment/IOwnerControlledContractDeployer.sol +0 -174
  197. package/contracts/LSP23MultiChainDeployment/IPostDeploymentModule.sol +0 -10
  198. package/contracts/LSP23MultiChainDeployment/LSP23Errors.sol +0 -24
  199. package/contracts/LSP23MultiChainDeployment/OwnerControlledContractDeployer.sol +0 -388
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/lsp-smart-contracts",
3
- "version": "0.11.0-rc.0",
3
+ "version": "0.11.1",
4
4
  "description": "The reference implementation for universal profiles smart contracts",
5
5
  "directories": {
6
6
  "test": "test"
@@ -62,9 +62,11 @@
62
62
  "test:lsp9init": "hardhat test --no-compile tests/LSP9Vault/LSP9VaultInit.test.ts",
63
63
  "test:lsp11": "hardhat test --no-compile tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.test.ts",
64
64
  "test:lsp11init": "hardhat test --no-compile tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.test.ts",
65
+ "test:lsp17": "hardhat test --no-compile tests/LSP17ContractExtension/LSP17Extendable.test.ts",
65
66
  "test:lsp20": "hardhat test --no-compile tests/LSP20CallVerification/LSP6/LSP20WithLSP6.test.ts",
66
67
  "test:lsp20init": "hardhat test --no-compile tests/LSP20CallVerification/LSP6/LSP20WithLSP6Init.test.ts",
67
- "test:lsp23": "hardhat test --no-compile tests/LSP23MultiChainDeployment/LSP23MultiChainDeployment.test.ts",
68
+ "test:lsp23": "hardhat test --no-compile tests/LSP23LinkedContractsDeployment/LSP23LinkedContractsDeployment.test.ts",
69
+ "test:lsp25": "hardhat test --no-compile tests/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.test.ts",
68
70
  "test:universalfactory": "hardhat test --no-compile tests/LSP16UniversalFactory/LSP16UniversalFactory.test.ts",
69
71
  "test:reentrancy": "hardhat test --no-compile tests/Reentrancy/Reentrancy.test.ts",
70
72
  "test:reentrancyinit": "hardhat test --no-compile tests/Reentrancy/ReentrancyInit.test.ts",
@@ -99,13 +101,13 @@
99
101
  },
100
102
  "homepage": "https://github.com/lukso-network/lsp-smart-contracts#readme",
101
103
  "dependencies": {
102
- "@erc725/smart-contracts": "^5.1.0",
104
+ "@erc725/smart-contracts": "^5.2.0",
103
105
  "@openzeppelin/contracts": "^4.9.2",
104
106
  "@openzeppelin/contracts-upgradeable": "^4.9.2",
105
107
  "solidity-bytes-utils": "0.8.0"
106
108
  },
107
109
  "devDependencies": {
108
- "@b00ste/hardhat-dodoc": "^0.3.1",
110
+ "@b00ste/hardhat-dodoc": "^0.3.11",
109
111
  "@defi-wonderland/smock": "^2.3.4",
110
112
  "@erc725/erc725.js": "0.17.2",
111
113
  "@lukso/eip191-signer.js": "^0.2.2",
@@ -1,4 +1,21 @@
1
1
  {
2
+ "errors": {
3
+ "CannotTransferOwnershipToSelf()": [
4
+ {
5
+ "notice": "Cannot transfer ownership to the address of the contract itself."
6
+ }
7
+ ],
8
+ "LSP14MustAcceptOwnershipInSeparateTransaction()": [
9
+ {
10
+ "notice": "Cannot accept ownership in the same transaction with {transferOwnership(...)}."
11
+ }
12
+ ],
13
+ "NotInRenounceOwnershipInterval(uint256,uint256)": [
14
+ {
15
+ "notice": "Cannot confirm ownership renouncement yet. The ownership renouncement is allowed from: `renounceOwnershipStart` until: `renounceOwnershipEnd`."
16
+ }
17
+ ]
18
+ },
2
19
  "events": {
3
20
  "ContractCreated(uint256,address,uint256,bytes32)": {
4
21
  "notice": "Emitted when deploying a contract"
@@ -9,20 +26,32 @@
9
26
  "Executed(uint256,address,uint256,bytes4)": {
10
27
  "notice": "Emitted when calling an address (EOA or contract)"
11
28
  },
29
+ "OwnershipRenounced()": {
30
+ "notice": "Successfully renounced ownership of the contract. This contract is now owned by anyone, it's owner is `address(0)`."
31
+ },
32
+ "OwnershipTransferStarted(address,address)": {
33
+ "notice": "The transfer of ownership of the contract was initiated. Pending new owner set to: `newOwner`."
34
+ },
35
+ "RenounceOwnershipStarted()": {
36
+ "notice": "Ownership renouncement initiated."
37
+ },
12
38
  "UniversalReceiver(address,uint256,bytes32,bytes,bytes)": {
13
- "notice": "Emitted when the universalReceiver function is succesfully executed"
39
+ "notice": "Address `from` called the `universalReceiver(...)` function while sending `value` LYX. Notification type (typeId): `typeId` - Data received: `receivedData`."
14
40
  },
15
41
  "ValueReceived(address,uint256)": {
16
- "notice": "Emitted when receiving native tokens"
42
+ "notice": "`value` native tokens received from `sender`."
17
43
  }
18
44
  },
19
45
  "kind": "user",
20
46
  "methods": {
21
47
  "acceptOwnership()": {
22
- "notice": "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
48
+ "notice": "`msg.sender` is accepting ownership of contract: `address(this)`."
49
+ },
50
+ "batchCalls(bytes[])": {
51
+ "notice": "Executing the following batch of abi-encoded function calls on the contract: `data`."
23
52
  },
24
53
  "constructor": {
25
- "notice": "Deploying the contract with owner set to: `initialOwner`"
54
+ "notice": "Deploying a LSP0ERC725Account contract with owner set to address `initialOwner`."
26
55
  },
27
56
  "getData(bytes32)": {
28
57
  "notice": "Gets singular data at a given `dataKey`"
@@ -34,16 +63,19 @@
34
63
  "notice": "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
35
64
  },
36
65
  "renounceOwnership()": {
37
- "notice": "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
66
+ "notice": "`msg.sender` is renouncing ownership of contract `address(this)`."
67
+ },
68
+ "setData(bytes32,bytes)": {
69
+ "notice": "Sets singular data for a given `dataKey`"
38
70
  },
39
71
  "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."
72
+ "notice": "Checking if this contract supports the interface defined by the `bytes4` interface ID `interfaceId`."
41
73
  },
42
74
  "transferOwnership(address)": {
43
- "notice": "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
75
+ "notice": "Transfer ownership initiated by `newOwner`."
44
76
  },
45
77
  "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."
78
+ "notice": "Notifying the contract by calling its `universalReceiver` function with the following informations: typeId: `typeId`; data: `data`."
47
79
  }
48
80
  },
49
81
  "version": 1
@@ -1,4 +1,21 @@
1
1
  {
2
+ "errors": {
3
+ "CannotTransferOwnershipToSelf()": [
4
+ {
5
+ "notice": "Cannot transfer ownership to the address of the contract itself."
6
+ }
7
+ ],
8
+ "LSP14MustAcceptOwnershipInSeparateTransaction()": [
9
+ {
10
+ "notice": "Cannot accept ownership in the same transaction with {transferOwnership(...)}."
11
+ }
12
+ ],
13
+ "NotInRenounceOwnershipInterval(uint256,uint256)": [
14
+ {
15
+ "notice": "Cannot confirm ownership renouncement yet. The ownership renouncement is allowed from: `renounceOwnershipStart` until: `renounceOwnershipEnd`."
16
+ }
17
+ ]
18
+ },
2
19
  "events": {
3
20
  "ContractCreated(uint256,address,uint256,bytes32)": {
4
21
  "notice": "Emitted when deploying a contract"
@@ -9,17 +26,29 @@
9
26
  "Executed(uint256,address,uint256,bytes4)": {
10
27
  "notice": "Emitted when calling an address (EOA or contract)"
11
28
  },
29
+ "OwnershipRenounced()": {
30
+ "notice": "Successfully renounced ownership of the contract. This contract is now owned by anyone, it's owner is `address(0)`."
31
+ },
32
+ "OwnershipTransferStarted(address,address)": {
33
+ "notice": "The transfer of ownership of the contract was initiated. Pending new owner set to: `newOwner`."
34
+ },
35
+ "RenounceOwnershipStarted()": {
36
+ "notice": "Ownership renouncement initiated."
37
+ },
12
38
  "UniversalReceiver(address,uint256,bytes32,bytes,bytes)": {
13
- "notice": "Emitted when the universalReceiver function is succesfully executed"
39
+ "notice": "Address `from` called the `universalReceiver(...)` function while sending `value` LYX. Notification type (typeId): `typeId` - Data received: `receivedData`."
14
40
  },
15
41
  "ValueReceived(address,uint256)": {
16
- "notice": "Emitted when receiving native tokens"
42
+ "notice": "`value` native tokens received from `sender`."
17
43
  }
18
44
  },
19
45
  "kind": "user",
20
46
  "methods": {
21
47
  "acceptOwnership()": {
22
- "notice": "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
48
+ "notice": "`msg.sender` is accepting ownership of contract: `address(this)`."
49
+ },
50
+ "batchCalls(bytes[])": {
51
+ "notice": "Executing the following batch of abi-encoded function calls on the contract: `data`."
23
52
  },
24
53
  "constructor": {
25
54
  "notice": "deploying a `LSP0ERC725AccountInit` base contract to be used behind proxy"
@@ -31,22 +60,25 @@
31
60
  "notice": "Gets array of data for multiple given keys"
32
61
  },
33
62
  "initialize(address)": {
34
- "notice": "Initializing the contract owner to: `initialOwner`"
63
+ "notice": "Initializing a LSP0ERC725Account contract with owner set to address `initialOwner`."
35
64
  },
36
65
  "isValidSignature(bytes32,bytes)": {
37
66
  "notice": "Achieves the goal of [EIP-1271] by validating signatures of smart contracts according to their own logic."
38
67
  },
39
68
  "renounceOwnership()": {
40
- "notice": "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership renouncing process."
69
+ "notice": "`msg.sender` is renouncing ownership of contract `address(this)`."
70
+ },
71
+ "setData(bytes32,bytes)": {
72
+ "notice": "Sets singular data for a given `dataKey`"
41
73
  },
42
74
  "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."
75
+ "notice": "Checking if this contract supports the interface defined by the `bytes4` interface ID `interfaceId`."
44
76
  },
45
77
  "transferOwnership(address)": {
46
- "notice": "Achieves the goal of LSP14Ownable2Step by implementing a 2-step ownership transfer process."
78
+ "notice": "Transfer ownership initiated by `newOwner`."
47
79
  },
48
80
  "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."
81
+ "notice": "Notifying the contract by calling its `universalReceiver` function with the following informations: typeId: `typeId`; data: `data`."
50
82
  }
51
83
  },
52
84
  "version": 1
@@ -1,10 +1,26 @@
1
1
  {
2
+ "errors": {
3
+ "CannotRegisterEOAsAsAssets(address)": [
4
+ {
5
+ "notice": "EOA: `caller` cannot be registered as an asset."
6
+ }
7
+ ],
8
+ "NativeTokensNotAccepted()": [
9
+ {
10
+ "notice": "Cannot send native tokens to {universalReceiver(...)} function of the delegated contract."
11
+ }
12
+ ]
13
+ },
2
14
  "events": {
3
15
  "UniversalReceiver(address,uint256,bytes32,bytes,bytes)": {
4
- "notice": "Emitted when the universalReceiver function is succesfully executed"
16
+ "notice": "Address `from` called the `universalReceiver(...)` function while sending `value` LYX. Notification type (typeId): `typeId` - Data received: `receivedData`."
5
17
  }
6
18
  },
7
19
  "kind": "user",
8
- "methods": {},
20
+ "methods": {
21
+ "universalReceiver(bytes32,bytes)": {
22
+ "notice": "Reacted on received notification with `typeId`."
23
+ }
24
+ },
9
25
  "version": 1
10
26
  }
@@ -1,10 +1,26 @@
1
1
  {
2
+ "errors": {
3
+ "CannotRegisterEOAsAsAssets(address)": [
4
+ {
5
+ "notice": "EOA: `caller` cannot be registered as an asset."
6
+ }
7
+ ],
8
+ "NativeTokensNotAccepted()": [
9
+ {
10
+ "notice": "Cannot send native tokens to {universalReceiver(...)} function of the delegated contract."
11
+ }
12
+ ]
13
+ },
2
14
  "events": {
3
15
  "UniversalReceiver(address,uint256,bytes32,bytes,bytes)": {
4
- "notice": "Emitted when the universalReceiver function is succesfully executed"
16
+ "notice": "Address `from` called the `universalReceiver(...)` function while sending `value` LYX. Notification type (typeId): `typeId` - Data received: `receivedData`."
5
17
  }
6
18
  },
7
19
  "kind": "user",
8
- "methods": {},
20
+ "methods": {
21
+ "universalReceiver(bytes32,bytes)": {
22
+ "notice": "Reacted on received notification with `typeId`."
23
+ }
24
+ },
9
25
  "version": 1
10
26
  }
@@ -0,0 +1,29 @@
1
+ {
2
+ "errors": {
3
+ "InvalidValueSum()": [
4
+ {
5
+ "notice": "Invalid value sent."
6
+ }
7
+ ],
8
+ "PrimaryContractProxyInitFailureError(bytes)": [
9
+ {
10
+ "notice": "Failed to deploy & initialize the Primary Contract Proxy. Error: `errorData`."
11
+ }
12
+ ],
13
+ "SecondaryContractProxyInitFailureError(bytes)": [
14
+ {
15
+ "notice": "Failed to deploy & initialize the Secondary Contract Proxy. Error: `errorData`."
16
+ }
17
+ ]
18
+ },
19
+ "kind": "user",
20
+ "methods": {
21
+ "deployContracts((bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)": {
22
+ "notice": "Contracts deployed. Contract Address: `primaryContractAddress`. Primary Contract Address: `primaryContractAddress`"
23
+ },
24
+ "deployERC1167Proxies((bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)": {
25
+ "notice": "Contract proxies deployed. Primary Proxy Address: `primaryContractAddress`. Secondary Contract Proxy Address: `secondaryContractAddress`"
26
+ }
27
+ },
28
+ "version": 1
29
+ }
@@ -7,7 +7,7 @@
7
7
  "kind": "user",
8
8
  "methods": {
9
9
  "constructor": {
10
- "notice": "Sets the name, symbol of the token and the owner, and sets the SupportedStandards:LSP4DigitalAsset key"
10
+ "notice": "Deploying a digital asset `name_` with the `symbol_` symbol."
11
11
  },
12
12
  "getData(bytes32)": {
13
13
  "notice": "Gets singular data at a given `dataKey`"
@@ -1,17 +1,155 @@
1
1
  {
2
+ "errors": {
3
+ "BatchExecuteParamsLengthMismatch()": [
4
+ {
5
+ "notice": "The array parameters provided to the function `executeBatch(...)` do not have the same number of elements. (Different array param's length)."
6
+ }
7
+ ],
8
+ "BatchExecuteRelayCallParamsLengthMismatch()": [
9
+ {
10
+ "notice": "The array parameters provided to the function `executeRelayCallBatch(...)` do not have the same number of elements. (Different array param's length)."
11
+ }
12
+ ],
13
+ "CallingKeyManagerNotAllowed()": [
14
+ {
15
+ "notice": "Calling the Key Manager address for this transaction is disallowed."
16
+ }
17
+ ],
18
+ "CannotSendValueToSetData()": [
19
+ {
20
+ "notice": "Cannot sent native tokens while setting data."
21
+ }
22
+ ],
23
+ "DelegateCallDisallowedViaKeyManager()": [
24
+ {
25
+ "notice": "Performing DELEGATE CALLS via the Key Manager is currently disallowed."
26
+ }
27
+ ],
28
+ "InvalidDataValuesForDataKeys(bytes32,bytes)": [
29
+ {
30
+ "notice": "Data value: `dataValue` length is different from the required length for the data key which is set."
31
+ }
32
+ ],
33
+ "InvalidERC725Function(bytes4)": [
34
+ {
35
+ "notice": "The Key Manager could not verify the calldata of the transaction because it could not recognise the function being called. Invalid function selector: `invalidFunction`."
36
+ }
37
+ ],
38
+ "InvalidEncodedAllowedCalls(bytes)": [
39
+ {
40
+ "notice": "Could not decode the Allowed Calls. Value = `allowedCallsValue`."
41
+ }
42
+ ],
43
+ "InvalidEncodedAllowedERC725YDataKeys(bytes,string)": [
44
+ {
45
+ "notice": "Error when reading the Allowed ERC725Y Data Keys. Reason: `context`, Allowed ERC725Y Data Keys value read: `value`."
46
+ }
47
+ ],
48
+ "InvalidLSP6Target()": [
49
+ {
50
+ "notice": "Invalid address supplied to link this Key Manager to (`address(0)`)."
51
+ }
52
+ ],
53
+ "InvalidPayload(bytes)": [
54
+ {
55
+ "notice": "Invalid calldata payload sent."
56
+ }
57
+ ],
58
+ "InvalidRelayNonce(address,uint256,bytes)": [
59
+ {
60
+ "notice": "The relay call failed because an invalid nonce was provided for the address `signer` that signed the execute relay call. Invalid nonce: `invalidNonce`, signature of signer: `signature`."
61
+ }
62
+ ],
63
+ "InvalidWhitelistedCall(address)": [
64
+ {
65
+ "notice": "Invalid allowed calls (`0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff`) set for address `from`. Could not perform external call."
66
+ }
67
+ ],
68
+ "KeyManagerCannotBeSetAsExtensionForLSP20Functions()": [
69
+ {
70
+ "notice": "Key Manager cannot be used as an LSP17 extension for LSP20 functions."
71
+ }
72
+ ],
73
+ "LSP6BatchExcessiveValueSent(uint256,uint256)": [
74
+ {
75
+ "notice": "Too much funds sent to forward each amount in the batch. No amount of native tokens should stay in the Key Manager."
76
+ }
77
+ ],
78
+ "LSP6BatchInsufficientValueSent(uint256,uint256)": [
79
+ {
80
+ "notice": "Not enough funds sent to forward each amount in the batch."
81
+ }
82
+ ],
83
+ "NoCallsAllowed(address)": [
84
+ {
85
+ "notice": "The address `from` is not authorised to use the linked account contract to make external calls, because it has no Allowed Calls set."
86
+ }
87
+ ],
88
+ "NoERC725YDataKeysAllowed(address)": [
89
+ {
90
+ "notice": "The address `from` is not authorised to set data, because it has no ERC725Y Data Key allowed."
91
+ }
92
+ ],
93
+ "NoPermissionsSet(address)": [
94
+ {
95
+ "notice": "The address `from` does not have any permission set on the contract linked to the Key Manager."
96
+ }
97
+ ],
98
+ "NotAllowedCall(address,address,bytes4)": [
99
+ {
100
+ "notice": "The address `from` is not authorised to call the function `selector` on the `to` address."
101
+ }
102
+ ],
103
+ "NotAllowedERC725YDataKey(address,bytes32)": [
104
+ {
105
+ "notice": "The address `from` is not authorised to set the data key `disallowedKey` on the contract linked to the Key Manager."
106
+ }
107
+ ],
108
+ "NotAuthorised(address,string)": [
109
+ {
110
+ "notice": "The address `from` is not authorised to `permission` on the contract linked to the Key Manager."
111
+ }
112
+ ],
113
+ "NotRecognisedPermissionKey(bytes32)": [
114
+ {
115
+ "notice": "The data key `dataKey` starts with `AddressPermissions` prefix but is none of the permission data keys defined in LSP6."
116
+ }
117
+ ],
118
+ "RelayCallBeforeStartTime()": [
119
+ {
120
+ "notice": "Relay call not valid yet."
121
+ }
122
+ ],
123
+ "RelayCallExpired()": [
124
+ {
125
+ "notice": "Relay call expired (deadline passed)."
126
+ }
127
+ ]
128
+ },
129
+ "events": {
130
+ "PermissionsVerified(address,uint256,bytes4)": {
131
+ "notice": "Verified the permissions of `signer` for calling function `selector` on the linked account and sending `value` of native token."
132
+ }
133
+ },
2
134
  "kind": "user",
3
135
  "methods": {
4
136
  "constructor": {
5
- "notice": "Initiate the account with the address of the ERC725Account contract and sets LSP6KeyManager InterfaceId"
137
+ "notice": "Deploying a LSP6KeyManager linked to the contract at address `target_`."
6
138
  },
7
139
  "execute(bytes)": {
8
- "notice": "execute the following payload on the ERC725Account: `payload`"
140
+ "notice": "Executing the following payload on the linked contract: `payload`"
9
141
  },
10
- "getNonce(address,uint128)": {
11
- "notice": "get latest nonce for `from` in channel ID: `channelId`"
142
+ "executeBatch(uint256[],bytes[])": {
143
+ "notice": "Executing the following batch of payloads and sensind on the linked contract. - payloads: `payloads` - values transferred for each payload: `values`"
12
144
  },
13
- "target()": {
14
- "notice": "returns the address of the account linked to this KeyManager"
145
+ "executeRelayCall(bytes,uint256,uint256,bytes)": {
146
+ "notice": "Executing the following payload given the nonce `nonce` and signature `signature`. Payload: `payload`"
147
+ },
148
+ "executeRelayCallBatch(bytes[],uint256[],uint256[],uint256[],bytes[])": {
149
+ "notice": "Executing a batch of relay calls (= meta-transactions)."
150
+ },
151
+ "getNonce(address,uint128)": {
152
+ "notice": "Reading the latest nonce of address `from` in the channel ID `channelId`."
15
153
  }
16
154
  },
17
155
  "version": 1
@@ -1,17 +1,158 @@
1
1
  {
2
+ "errors": {
3
+ "BatchExecuteParamsLengthMismatch()": [
4
+ {
5
+ "notice": "The array parameters provided to the function `executeBatch(...)` do not have the same number of elements. (Different array param's length)."
6
+ }
7
+ ],
8
+ "BatchExecuteRelayCallParamsLengthMismatch()": [
9
+ {
10
+ "notice": "The array parameters provided to the function `executeRelayCallBatch(...)` do not have the same number of elements. (Different array param's length)."
11
+ }
12
+ ],
13
+ "CallingKeyManagerNotAllowed()": [
14
+ {
15
+ "notice": "Calling the Key Manager address for this transaction is disallowed."
16
+ }
17
+ ],
18
+ "CannotSendValueToSetData()": [
19
+ {
20
+ "notice": "Cannot sent native tokens while setting data."
21
+ }
22
+ ],
23
+ "DelegateCallDisallowedViaKeyManager()": [
24
+ {
25
+ "notice": "Performing DELEGATE CALLS via the Key Manager is currently disallowed."
26
+ }
27
+ ],
28
+ "InvalidDataValuesForDataKeys(bytes32,bytes)": [
29
+ {
30
+ "notice": "Data value: `dataValue` length is different from the required length for the data key which is set."
31
+ }
32
+ ],
33
+ "InvalidERC725Function(bytes4)": [
34
+ {
35
+ "notice": "The Key Manager could not verify the calldata of the transaction because it could not recognise the function being called. Invalid function selector: `invalidFunction`."
36
+ }
37
+ ],
38
+ "InvalidEncodedAllowedCalls(bytes)": [
39
+ {
40
+ "notice": "Could not decode the Allowed Calls. Value = `allowedCallsValue`."
41
+ }
42
+ ],
43
+ "InvalidEncodedAllowedERC725YDataKeys(bytes,string)": [
44
+ {
45
+ "notice": "Error when reading the Allowed ERC725Y Data Keys. Reason: `context`, Allowed ERC725Y Data Keys value read: `value`."
46
+ }
47
+ ],
48
+ "InvalidLSP6Target()": [
49
+ {
50
+ "notice": "Invalid address supplied to link this Key Manager to (`address(0)`)."
51
+ }
52
+ ],
53
+ "InvalidPayload(bytes)": [
54
+ {
55
+ "notice": "Invalid calldata payload sent."
56
+ }
57
+ ],
58
+ "InvalidRelayNonce(address,uint256,bytes)": [
59
+ {
60
+ "notice": "The relay call failed because an invalid nonce was provided for the address `signer` that signed the execute relay call. Invalid nonce: `invalidNonce`, signature of signer: `signature`."
61
+ }
62
+ ],
63
+ "InvalidWhitelistedCall(address)": [
64
+ {
65
+ "notice": "Invalid allowed calls (`0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff`) set for address `from`. Could not perform external call."
66
+ }
67
+ ],
68
+ "KeyManagerCannotBeSetAsExtensionForLSP20Functions()": [
69
+ {
70
+ "notice": "Key Manager cannot be used as an LSP17 extension for LSP20 functions."
71
+ }
72
+ ],
73
+ "LSP6BatchExcessiveValueSent(uint256,uint256)": [
74
+ {
75
+ "notice": "Too much funds sent to forward each amount in the batch. No amount of native tokens should stay in the Key Manager."
76
+ }
77
+ ],
78
+ "LSP6BatchInsufficientValueSent(uint256,uint256)": [
79
+ {
80
+ "notice": "Not enough funds sent to forward each amount in the batch."
81
+ }
82
+ ],
83
+ "NoCallsAllowed(address)": [
84
+ {
85
+ "notice": "The address `from` is not authorised to use the linked account contract to make external calls, because it has no Allowed Calls set."
86
+ }
87
+ ],
88
+ "NoERC725YDataKeysAllowed(address)": [
89
+ {
90
+ "notice": "The address `from` is not authorised to set data, because it has no ERC725Y Data Key allowed."
91
+ }
92
+ ],
93
+ "NoPermissionsSet(address)": [
94
+ {
95
+ "notice": "The address `from` does not have any permission set on the contract linked to the Key Manager."
96
+ }
97
+ ],
98
+ "NotAllowedCall(address,address,bytes4)": [
99
+ {
100
+ "notice": "The address `from` is not authorised to call the function `selector` on the `to` address."
101
+ }
102
+ ],
103
+ "NotAllowedERC725YDataKey(address,bytes32)": [
104
+ {
105
+ "notice": "The address `from` is not authorised to set the data key `disallowedKey` on the contract linked to the Key Manager."
106
+ }
107
+ ],
108
+ "NotAuthorised(address,string)": [
109
+ {
110
+ "notice": "The address `from` is not authorised to `permission` on the contract linked to the Key Manager."
111
+ }
112
+ ],
113
+ "NotRecognisedPermissionKey(bytes32)": [
114
+ {
115
+ "notice": "The data key `dataKey` starts with `AddressPermissions` prefix but is none of the permission data keys defined in LSP6."
116
+ }
117
+ ],
118
+ "RelayCallBeforeStartTime()": [
119
+ {
120
+ "notice": "Relay call not valid yet."
121
+ }
122
+ ],
123
+ "RelayCallExpired()": [
124
+ {
125
+ "notice": "Relay call expired (deadline passed)."
126
+ }
127
+ ]
128
+ },
129
+ "events": {
130
+ "PermissionsVerified(address,uint256,bytes4)": {
131
+ "notice": "Verified the permissions of `signer` for calling function `selector` on the linked account and sending `value` of native token."
132
+ }
133
+ },
2
134
  "kind": "user",
3
135
  "methods": {
136
+ "constructor": {
137
+ "notice": "Deploying a LSP6KeyManagerInit to be used as base contract behind proxy."
138
+ },
4
139
  "execute(bytes)": {
5
- "notice": "execute the following payload on the ERC725Account: `payload`"
140
+ "notice": "Executing the following payload on the linked contract: `payload`"
141
+ },
142
+ "executeBatch(uint256[],bytes[])": {
143
+ "notice": "Executing the following batch of payloads and sensind on the linked contract. - payloads: `payloads` - values transferred for each payload: `values`"
144
+ },
145
+ "executeRelayCall(bytes,uint256,uint256,bytes)": {
146
+ "notice": "Executing the following payload given the nonce `nonce` and signature `signature`. Payload: `payload`"
147
+ },
148
+ "executeRelayCallBatch(bytes[],uint256[],uint256[],uint256[],bytes[])": {
149
+ "notice": "Executing a batch of relay calls (= meta-transactions)."
6
150
  },
7
151
  "getNonce(address,uint128)": {
8
- "notice": "get latest nonce for `from` in channel ID: `channelId`"
152
+ "notice": "Reading the latest nonce of address `from` in the channel ID `channelId`."
9
153
  },
10
154
  "initialize(address)": {
11
- "notice": "Initiate the account with the address of the ERC725Account contract and sets LSP6KeyManager InterfaceId"
12
- },
13
- "target()": {
14
- "notice": "returns the address of the account linked to this KeyManager"
155
+ "notice": "Initializing a LSP6KeyManagerInit linked to contract at address `target_`."
15
156
  }
16
157
  },
17
158
  "version": 1