@lukso/lsp7-contracts 0.15.0-rc.4 → 0.15.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.
@@ -1,9 +1,26 @@
1
1
  # Compatibility ABIs for LSP7
2
2
 
3
- This folder contains historical ABIs from previous release versions.
4
-
5
- - `v0.14.0`: LSP7 interface ID was `0xb3c4928f`.
6
- - `v0.13.0`: LSP7 interface ID was `0xb3c4928f`.
7
- - `v0.12.0`: LSP7 interface ID was `0xdaa746b7`.
3
+ This folder contains historical ABIs of LSP7DigitalAsset from previous release versions.
8
4
 
9
5
  This is to enable dApps and projects to be backward compatible in their interfaces to display and interact with LSP7 token contracts deployed with these old versions, by consuming their old ABIs.
6
+
7
+ **🧬 Interface ID changes**
8
+
9
+ - `0.14.0`: LSP7 interface ID was `0xb3c4928f`.
10
+ - `0.12.0`: LSP7 interface ID was `0xdaa746b7`.
11
+
12
+ ## List of ABI changes from `0.12.0` to `0.14.0`:
13
+
14
+ - event `AuthorizedOperator` renamed to `OperatorAuthorizationChanged`
15
+ - event `RevokedOperator` renamed to `OperatorRevoked`
16
+ - new function `batchCalls(bytes[])` function.
17
+ - new custom errors: `LSP4TokenTypeNotEditable()` and `LSP7BatchCallFailed(uint256)`
18
+ - `version()` endpoint removed from `0.12.0`
19
+
20
+ - `0.14.0`: LSP7 interface ID was `0xb3c4928f`.
21
+
22
+ ## List of ABI changes from `0.14.0` to `latest`:
23
+
24
+ - removed custom error `LSP7CannotSendToSelf()`.
25
+ - new custom errors `LSP7DecreaseAllowanceNotAuthorized` and `LSP7RevokeOperatorNotAuthorized`.
26
+ - new function parameter `tokenOwner` in functions `decreaseAllowance(...)` and `revokedOperator(...)`
package/dist/index.cjs CHANGED
@@ -1,6 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  const INTERFACE_ID_LSP7 = "0xc52d6008";
4
+ const INTERFACE_ID_LSP7_PREVIOUS = {
5
+ "v0.14.0": "0xb3c4928f",
6
+ "v0.12.0": "0xdaa746b7"
7
+ };
4
8
  const LSP7_TYPE_IDS = {
5
9
  // keccak256('LSP7Tokens_SenderNotification')
6
10
  LSP7Tokens_SenderNotification: "0x429ac7a06903dbc9c13dfcb3c9d11df8194581fa047c96d7a4171fc7402958ea",
@@ -11,4 +15,5 @@ const LSP7_TYPE_IDS = {
11
15
  };
12
16
 
13
17
  exports.INTERFACE_ID_LSP7 = INTERFACE_ID_LSP7;
18
+ exports.INTERFACE_ID_LSP7_PREVIOUS = INTERFACE_ID_LSP7_PREVIOUS;
14
19
  exports.LSP7_TYPE_IDS = LSP7_TYPE_IDS;
package/dist/index.d.cts CHANGED
@@ -1,8 +1,12 @@
1
1
  declare const INTERFACE_ID_LSP7 = "0xc52d6008";
2
+ declare const INTERFACE_ID_LSP7_PREVIOUS: {
3
+ 'v0.14.0': string;
4
+ 'v0.12.0': string;
5
+ };
2
6
  declare const LSP7_TYPE_IDS: {
3
7
  LSP7Tokens_SenderNotification: string;
4
8
  LSP7Tokens_RecipientNotification: string;
5
9
  LSP7Tokens_OperatorNotification: string;
6
10
  };
7
11
 
8
- export { INTERFACE_ID_LSP7, LSP7_TYPE_IDS };
12
+ export { INTERFACE_ID_LSP7, INTERFACE_ID_LSP7_PREVIOUS, LSP7_TYPE_IDS };
package/dist/index.d.mts CHANGED
@@ -1,8 +1,12 @@
1
1
  declare const INTERFACE_ID_LSP7 = "0xc52d6008";
2
+ declare const INTERFACE_ID_LSP7_PREVIOUS: {
3
+ 'v0.14.0': string;
4
+ 'v0.12.0': string;
5
+ };
2
6
  declare const LSP7_TYPE_IDS: {
3
7
  LSP7Tokens_SenderNotification: string;
4
8
  LSP7Tokens_RecipientNotification: string;
5
9
  LSP7Tokens_OperatorNotification: string;
6
10
  };
7
11
 
8
- export { INTERFACE_ID_LSP7, LSP7_TYPE_IDS };
12
+ export { INTERFACE_ID_LSP7, INTERFACE_ID_LSP7_PREVIOUS, LSP7_TYPE_IDS };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,12 @@
1
1
  declare const INTERFACE_ID_LSP7 = "0xc52d6008";
2
+ declare const INTERFACE_ID_LSP7_PREVIOUS: {
3
+ 'v0.14.0': string;
4
+ 'v0.12.0': string;
5
+ };
2
6
  declare const LSP7_TYPE_IDS: {
3
7
  LSP7Tokens_SenderNotification: string;
4
8
  LSP7Tokens_RecipientNotification: string;
5
9
  LSP7Tokens_OperatorNotification: string;
6
10
  };
7
11
 
8
- export { INTERFACE_ID_LSP7, LSP7_TYPE_IDS };
12
+ export { INTERFACE_ID_LSP7, INTERFACE_ID_LSP7_PREVIOUS, LSP7_TYPE_IDS };
package/dist/index.mjs CHANGED
@@ -1,4 +1,8 @@
1
1
  const INTERFACE_ID_LSP7 = "0xc52d6008";
2
+ const INTERFACE_ID_LSP7_PREVIOUS = {
3
+ "v0.14.0": "0xb3c4928f",
4
+ "v0.12.0": "0xdaa746b7"
5
+ };
2
6
  const LSP7_TYPE_IDS = {
3
7
  // keccak256('LSP7Tokens_SenderNotification')
4
8
  LSP7Tokens_SenderNotification: "0x429ac7a06903dbc9c13dfcb3c9d11df8194581fa047c96d7a4171fc7402958ea",
@@ -8,4 +12,4 @@ const LSP7_TYPE_IDS = {
8
12
  LSP7Tokens_OperatorNotification: "0x386072cc5a58e61263b434c722725f21031cd06e7c552cfaa06db5de8a320dbc"
9
13
  };
10
14
 
11
- export { INTERFACE_ID_LSP7, LSP7_TYPE_IDS };
15
+ export { INTERFACE_ID_LSP7, INTERFACE_ID_LSP7_PREVIOUS, LSP7_TYPE_IDS };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/lsp7-contracts",
3
- "version": "0.15.0-rc.4",
3
+ "version": "0.15.0",
4
4
  "description": "Package for the LSP7 Digital Asset standard",
5
5
  "license": "Apache-2.0",
6
6
  "author": "",
@@ -49,7 +49,9 @@
49
49
  "dependencies": {
50
50
  "@erc725/smart-contracts": "^7.0.0",
51
51
  "@openzeppelin/contracts": "^4.9.3",
52
- "@lukso/lsp1-contracts": "~0.15.0-rc.1",
53
- "@lukso/lsp17contractextension-contracts": "~0.15.0-rc.1"
52
+ "@lukso/lsp1-contracts": "~0.15.0",
53
+ "@lukso/lsp2-contracts": "~0.15.0",
54
+ "@lukso/lsp4-contracts": "~0.15.0",
55
+ "@lukso/lsp17contractextension-contracts": "~0.15.0"
54
56
  }
55
57
  }