@lukso/lsp-smart-contracts 0.12.0 → 0.13.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.
Files changed (160) hide show
  1. package/README.md +2 -2
  2. package/artifacts/LSP0ERC725Account.json +19 -19
  3. package/artifacts/LSP0ERC725AccountInit.json +19 -19
  4. package/artifacts/LSP11BasicSocialRecovery.json +2 -2
  5. package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
  6. package/artifacts/LSP1UniversalReceiverDelegateUP.json +15 -15
  7. package/artifacts/LSP1UniversalReceiverDelegateVault.json +15 -15
  8. package/artifacts/LSP4DigitalAssetMetadata.json +5 -0
  9. package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +5 -0
  10. package/artifacts/LSP6KeyManager.json +15 -15
  11. package/artifacts/LSP6KeyManagerInit.json +15 -15
  12. package/artifacts/LSP7CappedSupply.json +71 -49
  13. package/artifacts/LSP7CappedSupplyInitAbstract.json +71 -49
  14. package/artifacts/LSP7CompatibleERC20.json +71 -49
  15. package/artifacts/LSP7CompatibleERC20InitAbstract.json +71 -49
  16. package/artifacts/LSP7CompatibleERC20Mintable.json +78 -51
  17. package/artifacts/LSP7CompatibleERC20MintableInit.json +78 -51
  18. package/artifacts/LSP7DigitalAsset.json +71 -49
  19. package/artifacts/LSP7DigitalAssetInitAbstract.json +71 -49
  20. package/artifacts/LSP7Mintable.json +78 -51
  21. package/artifacts/LSP7MintableInit.json +78 -51
  22. package/artifacts/LSP8CappedSupply.json +187 -36
  23. package/artifacts/LSP8CappedSupplyInitAbstract.json +200 -49
  24. package/artifacts/LSP8CompatibleERC721.json +187 -36
  25. package/artifacts/LSP8CompatibleERC721InitAbstract.json +200 -49
  26. package/artifacts/LSP8CompatibleERC721Mintable.json +195 -39
  27. package/artifacts/LSP8CompatibleERC721MintableInit.json +208 -52
  28. package/artifacts/LSP8IdentifiableDigitalAsset.json +187 -36
  29. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +200 -49
  30. package/artifacts/LSP8Mintable.json +195 -39
  31. package/artifacts/LSP8MintableInit.json +208 -52
  32. package/artifacts/LSP9Vault.json +19 -19
  33. package/artifacts/LSP9VaultInit.json +19 -19
  34. package/artifacts/UniversalProfile.json +19 -19
  35. package/artifacts/UniversalProfileInit.json +19 -19
  36. package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
  37. package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +7 -3
  38. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +62 -62
  39. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +2 -1
  40. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +3 -1
  41. package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +11 -10
  42. package/contracts/LSP17Extensions/Extension4337.sol +26 -1
  43. package/contracts/LSP17Extensions/OnERC721ReceivedExtension.sol +2 -1
  44. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +31 -33
  45. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +24 -17
  46. package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +1 -1
  47. package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +1 -5
  48. package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +9 -0
  49. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +20 -34
  50. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataCore.sol +47 -0
  51. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +19 -31
  52. package/contracts/LSP4DigitalAssetMetadata/LSP4Errors.sol +13 -6
  53. package/contracts/LSP6KeyManager/LSP6KeyManager.sol +2 -1
  54. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +16 -10
  55. package/contracts/LSP6KeyManager/LSP6KeyManagerInit.sol +2 -1
  56. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +14 -16
  57. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +6 -2
  58. package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +20 -9
  59. package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -1
  60. package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +7 -5
  61. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +129 -36
  62. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +5 -2
  63. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +6 -0
  64. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +4 -2
  65. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +7 -4
  66. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +4 -2
  67. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +5 -2
  68. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +8 -2
  69. package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +12 -1
  70. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +4 -0
  71. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +4 -0
  72. package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +77 -4
  73. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +15 -12
  74. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +19 -3
  75. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +25 -16
  76. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +222 -28
  77. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +28 -15
  78. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +16 -8
  79. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +9 -8
  80. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +13 -2
  81. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +6 -2
  82. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +4 -2
  83. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +13 -2
  84. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +6 -2
  85. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +6 -2
  86. package/contracts/LSP9Vault/LSP9Constants.sol +1 -1
  87. package/contracts/LSP9Vault/LSP9Vault.sol +3 -2
  88. package/contracts/LSP9Vault/LSP9VaultCore.sol +22 -37
  89. package/contracts/LSP9Vault/LSP9VaultInit.sol +2 -1
  90. package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +1 -1
  91. package/contracts/UniversalProfile.sol +4 -2
  92. package/contracts/UniversalProfileInit.sol +8 -5
  93. package/contracts/UniversalProfileInitAbstract.sol +4 -2
  94. package/contracts/Version.sol +6 -5
  95. package/devdocs/LSP0ERC725Account.json +3 -8
  96. package/devdocs/LSP0ERC725AccountInit.json +2 -7
  97. package/devdocs/LSP1UniversalReceiverDelegateUP.json +0 -6
  98. package/devdocs/LSP1UniversalReceiverDelegateVault.json +0 -6
  99. package/devdocs/LSP4DigitalAssetMetadata.json +11 -5
  100. package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +7 -2
  101. package/devdocs/LSP6KeyManager.json +2 -7
  102. package/devdocs/LSP6KeyManagerInit.json +2 -7
  103. package/devdocs/LSP7CappedSupply.json +22 -8
  104. package/devdocs/LSP7CappedSupplyInitAbstract.json +22 -8
  105. package/devdocs/LSP7CompatibleERC20.json +23 -8
  106. package/devdocs/LSP7CompatibleERC20InitAbstract.json +22 -8
  107. package/devdocs/LSP7CompatibleERC20Mintable.json +23 -8
  108. package/devdocs/LSP7CompatibleERC20MintableInit.json +24 -9
  109. package/devdocs/LSP7DigitalAsset.json +27 -12
  110. package/devdocs/LSP7DigitalAssetInitAbstract.json +22 -8
  111. package/devdocs/LSP7Mintable.json +24 -8
  112. package/devdocs/LSP7MintableInit.json +25 -9
  113. package/devdocs/LSP8CappedSupply.json +66 -10
  114. package/devdocs/LSP8CappedSupplyInitAbstract.json +66 -10
  115. package/devdocs/LSP8CompatibleERC721.json +69 -11
  116. package/devdocs/LSP8CompatibleERC721InitAbstract.json +67 -11
  117. package/devdocs/LSP8CompatibleERC721Mintable.json +69 -11
  118. package/devdocs/LSP8CompatibleERC721MintableInit.json +70 -12
  119. package/devdocs/LSP8IdentifiableDigitalAsset.json +71 -14
  120. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +66 -10
  121. package/devdocs/LSP8Mintable.json +68 -10
  122. package/devdocs/LSP8MintableInit.json +69 -11
  123. package/devdocs/LSP9Vault.json +0 -6
  124. package/devdocs/LSP9VaultInit.json +0 -6
  125. package/devdocs/UniversalProfile.json +3 -8
  126. package/devdocs/UniversalProfileInit.json +4 -9
  127. package/dist/constants.cjs.js +4552 -1859
  128. package/dist/constants.d.ts +4143 -1371
  129. package/dist/constants.es.js +4551 -1859
  130. package/package.json +2 -2
  131. package/userdocs/LSP0ERC725Account.json +3 -3
  132. package/userdocs/LSP0ERC725AccountInit.json +3 -3
  133. package/userdocs/LSP1UniversalReceiverDelegateUP.json +3 -3
  134. package/userdocs/LSP1UniversalReceiverDelegateVault.json +3 -3
  135. package/userdocs/LSP6KeyManager.json +3 -3
  136. package/userdocs/LSP6KeyManagerInit.json +3 -3
  137. package/userdocs/LSP7CappedSupply.json +8 -3
  138. package/userdocs/LSP7CappedSupplyInitAbstract.json +8 -3
  139. package/userdocs/LSP7CompatibleERC20.json +8 -3
  140. package/userdocs/LSP7CompatibleERC20InitAbstract.json +8 -3
  141. package/userdocs/LSP7CompatibleERC20Mintable.json +8 -3
  142. package/userdocs/LSP7CompatibleERC20MintableInit.json +9 -4
  143. package/userdocs/LSP7DigitalAsset.json +8 -3
  144. package/userdocs/LSP7DigitalAssetInitAbstract.json +8 -3
  145. package/userdocs/LSP7Mintable.json +8 -3
  146. package/userdocs/LSP7MintableInit.json +9 -4
  147. package/userdocs/LSP8CappedSupply.json +20 -3
  148. package/userdocs/LSP8CappedSupplyInitAbstract.json +20 -3
  149. package/userdocs/LSP8CompatibleERC721.json +20 -3
  150. package/userdocs/LSP8CompatibleERC721InitAbstract.json +20 -3
  151. package/userdocs/LSP8CompatibleERC721Mintable.json +20 -3
  152. package/userdocs/LSP8CompatibleERC721MintableInit.json +21 -4
  153. package/userdocs/LSP8IdentifiableDigitalAsset.json +20 -3
  154. package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +19 -2
  155. package/userdocs/LSP8Mintable.json +19 -2
  156. package/userdocs/LSP8MintableInit.json +20 -3
  157. package/userdocs/LSP9Vault.json +3 -3
  158. package/userdocs/LSP9VaultInit.json +3 -3
  159. package/userdocs/UniversalProfile.json +3 -3
  160. package/userdocs/UniversalProfileInit.json +3 -3
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "errors": {
3
+ "LSP8BatchCallFailed(uint256)": [
4
+ {
5
+ "notice": "Batch call failed."
6
+ }
7
+ ],
3
8
  "LSP8TokenContractCannotHoldValue()": [
4
9
  {
5
10
  "notice": "LSP8 contract cannot receive native tokens."
@@ -16,6 +21,9 @@
16
21
  "approve(address,uint256)": {
17
22
  "notice": "Calling `approve` function to approve operator at address `operator` to transfer tokenId `tokenId` on behalf of its owner."
18
23
  },
24
+ "batchCalls(bytes[])": {
25
+ "notice": "Executing the following batch of abi-encoded function calls on the contract: `data`."
26
+ },
19
27
  "constructor": {
20
28
  "notice": "Deploying a `LSP8CompatibleERC721Mintable` token contract with: token name = `name_`, token symbol = `symbol_`, and address `newOwner_` as the token contract owner."
21
29
  },
@@ -28,6 +36,12 @@
28
36
  "getDataBatch(bytes32[])": {
29
37
  "notice": "Reading the ERC725Y storage for data keys `dataKeys` returned the following values: `dataValues`."
30
38
  },
39
+ "getTokenIdData(bytes32,bytes32)": {
40
+ "notice": "Retrieves data for a specific `tokenId` and `dataKey`."
41
+ },
42
+ "getTokenIdDataBatch(bytes32[],bytes32[])": {
43
+ "notice": "Retrieves data in batch for multiple `tokenId` and `dataKey` pairs."
44
+ },
31
45
  "isApprovedForAll(address,address)": {
32
46
  "notice": "Checking if address `operator` is approved to transfer any tokenId owned by address `owner`."
33
47
  },
@@ -52,14 +66,17 @@
52
66
  "setDataBatch(bytes32[],bytes[])": {
53
67
  "notice": "Setting the following data key value pairs in the ERC725Y storage. Data keys: `dataKeys`, data values: `dataValues`."
54
68
  },
69
+ "setTokenIdData(bytes32,bytes32,bytes)": {
70
+ "notice": "Sets data for a specific `tokenId` and `dataKey`."
71
+ },
72
+ "setTokenIdDataBatch(bytes32[],bytes32[],bytes[])": {
73
+ "notice": "Sets data in batch for multiple `tokenId` and `dataKey` pairs."
74
+ },
55
75
  "tokenURI(uint256)": {
56
76
  "notice": "Retrieving the token URI of tokenId `tokenId`."
57
77
  },
58
78
  "transferFrom(address,address,uint256)": {
59
79
  "notice": "Calling `transferFrom` function to transfer tokenId `tokenId` from address `from` to address `to`."
60
- },
61
- "version()": {
62
- "notice": "Contract version."
63
80
  }
64
81
  },
65
82
  "version": 1
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "errors": {
3
+ "LSP8BatchCallFailed(uint256)": [
4
+ {
5
+ "notice": "Batch call failed."
6
+ }
7
+ ],
3
8
  "LSP8TokenContractCannotHoldValue()": [
4
9
  {
5
10
  "notice": "LSP8 contract cannot receive native tokens."
@@ -16,6 +21,9 @@
16
21
  "approve(address,uint256)": {
17
22
  "notice": "Calling `approve` function to approve operator at address `operator` to transfer tokenId `tokenId` on behalf of its owner."
18
23
  },
24
+ "batchCalls(bytes[])": {
25
+ "notice": "Executing the following batch of abi-encoded function calls on the contract: `data`."
26
+ },
19
27
  "getApproved(uint256)": {
20
28
  "notice": "Retrieving the address other than the token owner that is approved to transfer tokenId `tokenId` on behalf of its owner."
21
29
  },
@@ -25,7 +33,13 @@
25
33
  "getDataBatch(bytes32[])": {
26
34
  "notice": "Reading the ERC725Y storage for data keys `dataKeys` returned the following values: `dataValues`."
27
35
  },
28
- "initialize(string,string,address,uint256)": {
36
+ "getTokenIdData(bytes32,bytes32)": {
37
+ "notice": "Retrieves data for a specific `tokenId` and `dataKey`."
38
+ },
39
+ "getTokenIdDataBatch(bytes32[],bytes32[])": {
40
+ "notice": "Retrieves data in batch for multiple `tokenId` and `dataKey` pairs."
41
+ },
42
+ "initialize(string,string,address,uint256,uint256)": {
29
43
  "notice": "Initializing a `LSP8CompatibleERC721MintableInit` token contract with: token name = `name_`, token symbol = `symbol_`, and address `newOwner_` as the token contract owner."
30
44
  },
31
45
  "isApprovedForAll(address,address)": {
@@ -52,14 +66,17 @@
52
66
  "setDataBatch(bytes32[],bytes[])": {
53
67
  "notice": "Setting the following data key value pairs in the ERC725Y storage. Data keys: `dataKeys`, data values: `dataValues`."
54
68
  },
69
+ "setTokenIdData(bytes32,bytes32,bytes)": {
70
+ "notice": "Sets data for a specific `tokenId` and `dataKey`."
71
+ },
72
+ "setTokenIdDataBatch(bytes32[],bytes32[],bytes[])": {
73
+ "notice": "Sets data in batch for multiple `tokenId` and `dataKey` pairs."
74
+ },
55
75
  "tokenURI(uint256)": {
56
76
  "notice": "Retrieving the token URI of tokenId `tokenId`."
57
77
  },
58
78
  "transferFrom(address,address,uint256)": {
59
79
  "notice": "Calling `transferFrom` function to transfer tokenId `tokenId` from address `from` to address `to`."
60
- },
61
- "version()": {
62
- "notice": "Contract version."
63
80
  }
64
81
  },
65
82
  "version": 1
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "errors": {
3
+ "LSP8BatchCallFailed(uint256)": [
4
+ {
5
+ "notice": "Batch call failed."
6
+ }
7
+ ],
3
8
  "LSP8TokenContractCannotHoldValue()": [
4
9
  {
5
10
  "notice": "LSP8 contract cannot receive native tokens."
@@ -13,8 +18,11 @@
13
18
  },
14
19
  "kind": "user",
15
20
  "methods": {
21
+ "batchCalls(bytes[])": {
22
+ "notice": "Executing the following batch of abi-encoded function calls on the contract: `data`."
23
+ },
16
24
  "constructor": {
17
- "notice": "Deploying a LSP8IdentifiableDigitalAsset with name `name_`, symbol `symbol_`, owned by address `newOwner_` with tokenId type `tokenIdType_`."
25
+ "notice": "Deploying a LSP8IdentifiableDigitalAsset with name `name_`, symbol `symbol_`, owned by address `newOwner_` with tokenId schema `lsp8TokenIdSchema_`."
18
26
  },
19
27
  "getData(bytes32)": {
20
28
  "notice": "Reading the ERC725Y storage for data key `dataKey` returned the following value: `dataValue`."
@@ -22,14 +30,23 @@
22
30
  "getDataBatch(bytes32[])": {
23
31
  "notice": "Reading the ERC725Y storage for data keys `dataKeys` returned the following values: `dataValues`."
24
32
  },
33
+ "getTokenIdData(bytes32,bytes32)": {
34
+ "notice": "Retrieves data for a specific `tokenId` and `dataKey`."
35
+ },
36
+ "getTokenIdDataBatch(bytes32[],bytes32[])": {
37
+ "notice": "Retrieves data in batch for multiple `tokenId` and `dataKey` pairs."
38
+ },
25
39
  "setData(bytes32,bytes)": {
26
40
  "notice": "Setting the following data key value pair in the ERC725Y storage. Data key: `dataKey`, data value: `dataValue`."
27
41
  },
28
42
  "setDataBatch(bytes32[],bytes[])": {
29
43
  "notice": "Setting the following data key value pairs in the ERC725Y storage. Data keys: `dataKeys`, data values: `dataValues`."
30
44
  },
31
- "version()": {
32
- "notice": "Contract version."
45
+ "setTokenIdData(bytes32,bytes32,bytes)": {
46
+ "notice": "Sets data for a specific `tokenId` and `dataKey`."
47
+ },
48
+ "setTokenIdDataBatch(bytes32[],bytes32[],bytes[])": {
49
+ "notice": "Sets data in batch for multiple `tokenId` and `dataKey` pairs."
33
50
  }
34
51
  },
35
52
  "version": 1
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "errors": {
3
+ "LSP8BatchCallFailed(uint256)": [
4
+ {
5
+ "notice": "Batch call failed."
6
+ }
7
+ ],
3
8
  "LSP8TokenContractCannotHoldValue()": [
4
9
  {
5
10
  "notice": "LSP8 contract cannot receive native tokens."
@@ -13,20 +18,32 @@
13
18
  },
14
19
  "kind": "user",
15
20
  "methods": {
21
+ "batchCalls(bytes[])": {
22
+ "notice": "Executing the following batch of abi-encoded function calls on the contract: `data`."
23
+ },
16
24
  "getData(bytes32)": {
17
25
  "notice": "Reading the ERC725Y storage for data key `dataKey` returned the following value: `dataValue`."
18
26
  },
19
27
  "getDataBatch(bytes32[])": {
20
28
  "notice": "Reading the ERC725Y storage for data keys `dataKeys` returned the following values: `dataValues`."
21
29
  },
30
+ "getTokenIdData(bytes32,bytes32)": {
31
+ "notice": "Retrieves data for a specific `tokenId` and `dataKey`."
32
+ },
33
+ "getTokenIdDataBatch(bytes32[],bytes32[])": {
34
+ "notice": "Retrieves data in batch for multiple `tokenId` and `dataKey` pairs."
35
+ },
22
36
  "setData(bytes32,bytes)": {
23
37
  "notice": "Setting the following data key value pair in the ERC725Y storage. Data key: `dataKey`, data value: `dataValue`."
24
38
  },
25
39
  "setDataBatch(bytes32[],bytes[])": {
26
40
  "notice": "Setting the following data key value pairs in the ERC725Y storage. Data keys: `dataKeys`, data values: `dataValues`."
27
41
  },
28
- "version()": {
29
- "notice": "Contract version."
42
+ "setTokenIdData(bytes32,bytes32,bytes)": {
43
+ "notice": "Sets data for a specific `tokenId` and `dataKey`."
44
+ },
45
+ "setTokenIdDataBatch(bytes32[],bytes32[],bytes[])": {
46
+ "notice": "Sets data in batch for multiple `tokenId` and `dataKey` pairs."
30
47
  }
31
48
  },
32
49
  "version": 1
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "errors": {
3
+ "LSP8BatchCallFailed(uint256)": [
4
+ {
5
+ "notice": "Batch call failed."
6
+ }
7
+ ],
3
8
  "LSP8TokenContractCannotHoldValue()": [
4
9
  {
5
10
  "notice": "LSP8 contract cannot receive native tokens."
@@ -13,6 +18,9 @@
13
18
  },
14
19
  "kind": "user",
15
20
  "methods": {
21
+ "batchCalls(bytes[])": {
22
+ "notice": "Executing the following batch of abi-encoded function calls on the contract: `data`."
23
+ },
16
24
  "constructor": {
17
25
  "notice": "Deploying a `LSP8Mintable` token contract with: token name = `name_`, token symbol = `symbol_`, and address `newOwner_` as the token contract owner."
18
26
  },
@@ -22,6 +30,12 @@
22
30
  "getDataBatch(bytes32[])": {
23
31
  "notice": "Reading the ERC725Y storage for data keys `dataKeys` returned the following values: `dataValues`."
24
32
  },
33
+ "getTokenIdData(bytes32,bytes32)": {
34
+ "notice": "Retrieves data for a specific `tokenId` and `dataKey`."
35
+ },
36
+ "getTokenIdDataBatch(bytes32[],bytes32[])": {
37
+ "notice": "Retrieves data in batch for multiple `tokenId` and `dataKey` pairs."
38
+ },
25
39
  "mint(address,bytes32,bool,bytes)": {
26
40
  "notice": "Minting tokenId `tokenId` for address `to` with the additional data `data` (Note: allow non-LSP1 recipient is set to `force`)."
27
41
  },
@@ -31,8 +45,11 @@
31
45
  "setDataBatch(bytes32[],bytes[])": {
32
46
  "notice": "Setting the following data key value pairs in the ERC725Y storage. Data keys: `dataKeys`, data values: `dataValues`."
33
47
  },
34
- "version()": {
35
- "notice": "Contract version."
48
+ "setTokenIdData(bytes32,bytes32,bytes)": {
49
+ "notice": "Sets data for a specific `tokenId` and `dataKey`."
50
+ },
51
+ "setTokenIdDataBatch(bytes32[],bytes32[],bytes[])": {
52
+ "notice": "Sets data in batch for multiple `tokenId` and `dataKey` pairs."
36
53
  }
37
54
  },
38
55
  "version": 1
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "errors": {
3
+ "LSP8BatchCallFailed(uint256)": [
4
+ {
5
+ "notice": "Batch call failed."
6
+ }
7
+ ],
3
8
  "LSP8TokenContractCannotHoldValue()": [
4
9
  {
5
10
  "notice": "LSP8 contract cannot receive native tokens."
@@ -13,13 +18,22 @@
13
18
  },
14
19
  "kind": "user",
15
20
  "methods": {
21
+ "batchCalls(bytes[])": {
22
+ "notice": "Executing the following batch of abi-encoded function calls on the contract: `data`."
23
+ },
16
24
  "getData(bytes32)": {
17
25
  "notice": "Reading the ERC725Y storage for data key `dataKey` returned the following value: `dataValue`."
18
26
  },
19
27
  "getDataBatch(bytes32[])": {
20
28
  "notice": "Reading the ERC725Y storage for data keys `dataKeys` returned the following values: `dataValues`."
21
29
  },
22
- "initialize(string,string,address,uint256)": {
30
+ "getTokenIdData(bytes32,bytes32)": {
31
+ "notice": "Retrieves data for a specific `tokenId` and `dataKey`."
32
+ },
33
+ "getTokenIdDataBatch(bytes32[],bytes32[])": {
34
+ "notice": "Retrieves data in batch for multiple `tokenId` and `dataKey` pairs."
35
+ },
36
+ "initialize(string,string,address,uint256,uint256)": {
23
37
  "notice": "Initializing a `LSP8MintableInit` token contract with: token name = `name_`, token symbol = `symbol_`, and address `newOwner_` as the token contract owner."
24
38
  },
25
39
  "mint(address,bytes32,bool,bytes)": {
@@ -31,8 +45,11 @@
31
45
  "setDataBatch(bytes32[],bytes[])": {
32
46
  "notice": "Setting the following data key value pairs in the ERC725Y storage. Data keys: `dataKeys`, data values: `dataValues`."
33
47
  },
34
- "version()": {
35
- "notice": "Contract version."
48
+ "setTokenIdData(bytes32,bytes32,bytes)": {
49
+ "notice": "Sets data for a specific `tokenId` and `dataKey`."
50
+ },
51
+ "setTokenIdDataBatch(bytes32[],bytes32[],bytes[])": {
52
+ "notice": "Sets data in batch for multiple `tokenId` and `dataKey` pairs."
36
53
  }
37
54
  },
38
55
  "version": 1
@@ -46,6 +46,9 @@
46
46
  },
47
47
  "kind": "user",
48
48
  "methods": {
49
+ "VERSION()": {
50
+ "notice": "Contract version."
51
+ },
49
52
  "acceptOwnership()": {
50
53
  "notice": "`msg.sender` is accepting ownership of contract: `address(this)`."
51
54
  },
@@ -84,9 +87,6 @@
84
87
  },
85
88
  "universalReceiver(bytes32,bytes)": {
86
89
  "notice": "Notifying the contract by calling its `universalReceiver` function with the following informations: typeId: `typeId`; data: `data`."
87
- },
88
- "version()": {
89
- "notice": "Contract version."
90
90
  }
91
91
  },
92
92
  "version": 1
@@ -46,6 +46,9 @@
46
46
  },
47
47
  "kind": "user",
48
48
  "methods": {
49
+ "VERSION()": {
50
+ "notice": "Contract version."
51
+ },
49
52
  "acceptOwnership()": {
50
53
  "notice": "`msg.sender` is accepting ownership of contract: `address(this)`."
51
54
  },
@@ -84,9 +87,6 @@
84
87
  },
85
88
  "universalReceiver(bytes32,bytes)": {
86
89
  "notice": "Notifying the contract by calling its `universalReceiver` function with the following informations: typeId: `typeId`; data: `data`."
87
- },
88
- "version()": {
89
- "notice": "Contract version."
90
90
  }
91
91
  },
92
92
  "version": 1
@@ -41,6 +41,9 @@
41
41
  },
42
42
  "kind": "user",
43
43
  "methods": {
44
+ "VERSION()": {
45
+ "notice": "Contract version."
46
+ },
44
47
  "acceptOwnership()": {
45
48
  "notice": "`msg.sender` is accepting ownership of contract: `address(this)`."
46
49
  },
@@ -82,9 +85,6 @@
82
85
  },
83
86
  "universalReceiver(bytes32,bytes)": {
84
87
  "notice": "Notifying the contract by calling its `universalReceiver` function with the following informations: typeId: `typeId`; data: `data`."
85
- },
86
- "version()": {
87
- "notice": "Contract version."
88
88
  }
89
89
  },
90
90
  "version": 1
@@ -41,6 +41,9 @@
41
41
  },
42
42
  "kind": "user",
43
43
  "methods": {
44
+ "VERSION()": {
45
+ "notice": "Contract version."
46
+ },
44
47
  "acceptOwnership()": {
45
48
  "notice": "`msg.sender` is accepting ownership of contract: `address(this)`."
46
49
  },
@@ -85,9 +88,6 @@
85
88
  },
86
89
  "universalReceiver(bytes32,bytes)": {
87
90
  "notice": "Notifying the contract by calling its `universalReceiver` function with the following informations: typeId: `typeId`; data: `data`."
88
- },
89
- "version()": {
90
- "notice": "Contract version."
91
91
  }
92
92
  },
93
93
  "version": 1