@lukso/lsp7-contracts 0.18.1 → 0.19.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 (55) hide show
  1. package/artifacts/IAccessControlExtended.json +1 -1
  2. package/artifacts/ILSP7CappedBalance.json +1 -1
  3. package/artifacts/ILSP7CappedSupply.json +1 -1
  4. package/artifacts/ILSP7DigitalAsset.json +1 -1
  5. package/artifacts/ILSP7Mintable.json +1 -1
  6. package/artifacts/ILSP7NonTransferable.json +1 -1
  7. package/artifacts/ILSP7Revokable.json +1 -1
  8. package/artifacts/LSP7Burnable.json +1 -1
  9. package/artifacts/LSP7BurnableInitAbstract.json +1 -1
  10. package/artifacts/LSP7CappedBalanceAbstract.json +1 -1
  11. package/artifacts/LSP7CappedBalanceInitAbstract.json +1 -1
  12. package/artifacts/LSP7CappedSupplyAbstract.json +1 -1
  13. package/artifacts/LSP7CappedSupplyInitAbstract.json +1 -1
  14. package/artifacts/LSP7CustomizableToken.json +3 -3
  15. package/artifacts/LSP7CustomizableTokenInit.json +3 -3
  16. package/artifacts/LSP7DigitalAsset.json +1 -1
  17. package/artifacts/LSP7DigitalAssetInitAbstract.json +1 -1
  18. package/artifacts/LSP7Mintable.json +27 -4
  19. package/artifacts/LSP7MintableAbstract.json +1 -1
  20. package/artifacts/LSP7MintableInit.json +26 -3
  21. package/artifacts/LSP7MintableInitAbstract.json +1 -1
  22. package/artifacts/LSP7NonTransferableAbstract.json +1 -1
  23. package/artifacts/LSP7NonTransferableInitAbstract.json +1 -1
  24. package/artifacts/LSP7RevokableAbstract.json +1 -1
  25. package/artifacts/LSP7RevokableInitAbstract.json +1 -1
  26. package/artifacts/LSP7Votes.json +1 -1
  27. package/artifacts/LSP7VotesInitAbstract.json +1 -1
  28. package/contracts/LSP7DigitalAsset.sol +6 -18
  29. package/contracts/extensions/AccessControlExtended/AccessControlExtendedAbstract.sol +3 -9
  30. package/contracts/extensions/AccessControlExtended/AccessControlExtendedInitAbstract.sol +4 -12
  31. package/contracts/extensions/AccessControlExtended/IAccessControlExtended.sol +1 -3
  32. package/contracts/extensions/LSP7CappedBalance/LSP7CappedBalanceAbstract.sol +1 -3
  33. package/contracts/extensions/LSP7CappedBalance/LSP7CappedBalanceInitAbstract.sol +3 -9
  34. package/contracts/extensions/LSP7CappedSupply/LSP7CappedSupplyInitAbstract.sol +1 -3
  35. package/contracts/extensions/LSP7Mintable/LSP7MintableAbstract.sol +1 -3
  36. package/contracts/extensions/LSP7Mintable/LSP7MintableInitAbstract.sol +3 -9
  37. package/contracts/extensions/LSP7MusicNDT/LSP7MusicNDTAbstract.sol +126 -0
  38. package/contracts/extensions/LSP7MusicNDT/LSP7MusicNDTConstants.sol +16 -0
  39. package/contracts/extensions/LSP7MusicNDT/LSP7MusicNDTErrors.sol +7 -0
  40. package/contracts/extensions/LSP7NonTransferable/LSP7NonTransferableAbstract.sol +8 -4
  41. package/contracts/extensions/LSP7NonTransferable/LSP7NonTransferableInitAbstract.sol +10 -10
  42. package/contracts/extensions/LSP7Revokable/ILSP7Revokable.sol +6 -1
  43. package/contracts/extensions/LSP7Revokable/LSP7RevokableAbstract.sol +2 -6
  44. package/contracts/extensions/LSP7Revokable/LSP7RevokableInitAbstract.sol +4 -12
  45. package/contracts/extensions/LSP7Votes/LSP7VotesInitAbstract.sol +2 -6
  46. package/contracts/presets/LSP7CustomizableToken.sol +8 -24
  47. package/contracts/presets/LSP7CustomizableTokenInit.sol +10 -30
  48. package/contracts/presets/LSP7Mintable.sol +49 -19
  49. package/contracts/presets/LSP7MintableInit.sol +57 -22
  50. package/dist/abi.cjs +22 -0
  51. package/dist/abi.d.cts +36 -0
  52. package/dist/abi.d.mts +36 -0
  53. package/dist/abi.d.ts +36 -0
  54. package/dist/abi.mjs +22 -0
  55. package/package.json +5 -1
package/dist/abi.d.cts CHANGED
@@ -9218,6 +9218,24 @@ declare const lsp7MintableAbi: readonly [{
9218
9218
  readonly type: "bytes[]";
9219
9219
  }];
9220
9220
  readonly stateMutability: "nonpayable";
9221
+ }, {
9222
+ readonly type: "function";
9223
+ readonly inputs: readonly [{
9224
+ readonly name: "from";
9225
+ readonly internalType: "address";
9226
+ readonly type: "address";
9227
+ }, {
9228
+ readonly name: "amount";
9229
+ readonly internalType: "uint256";
9230
+ readonly type: "uint256";
9231
+ }, {
9232
+ readonly name: "data";
9233
+ readonly internalType: "bytes";
9234
+ readonly type: "bytes";
9235
+ }];
9236
+ readonly name: "burn";
9237
+ readonly outputs: readonly [];
9238
+ readonly stateMutability: "nonpayable";
9221
9239
  }, {
9222
9240
  readonly type: "function";
9223
9241
  readonly inputs: readonly [];
@@ -11044,6 +11062,24 @@ declare const lsp7MintableInitAbi: readonly [{
11044
11062
  readonly type: "bytes[]";
11045
11063
  }];
11046
11064
  readonly stateMutability: "nonpayable";
11065
+ }, {
11066
+ readonly type: "function";
11067
+ readonly inputs: readonly [{
11068
+ readonly name: "from";
11069
+ readonly internalType: "address";
11070
+ readonly type: "address";
11071
+ }, {
11072
+ readonly name: "amount";
11073
+ readonly internalType: "uint256";
11074
+ readonly type: "uint256";
11075
+ }, {
11076
+ readonly name: "data";
11077
+ readonly internalType: "bytes";
11078
+ readonly type: "bytes";
11079
+ }];
11080
+ readonly name: "burn";
11081
+ readonly outputs: readonly [];
11082
+ readonly stateMutability: "nonpayable";
11047
11083
  }, {
11048
11084
  readonly type: "function";
11049
11085
  readonly inputs: readonly [];
package/dist/abi.d.mts CHANGED
@@ -9218,6 +9218,24 @@ declare const lsp7MintableAbi: readonly [{
9218
9218
  readonly type: "bytes[]";
9219
9219
  }];
9220
9220
  readonly stateMutability: "nonpayable";
9221
+ }, {
9222
+ readonly type: "function";
9223
+ readonly inputs: readonly [{
9224
+ readonly name: "from";
9225
+ readonly internalType: "address";
9226
+ readonly type: "address";
9227
+ }, {
9228
+ readonly name: "amount";
9229
+ readonly internalType: "uint256";
9230
+ readonly type: "uint256";
9231
+ }, {
9232
+ readonly name: "data";
9233
+ readonly internalType: "bytes";
9234
+ readonly type: "bytes";
9235
+ }];
9236
+ readonly name: "burn";
9237
+ readonly outputs: readonly [];
9238
+ readonly stateMutability: "nonpayable";
9221
9239
  }, {
9222
9240
  readonly type: "function";
9223
9241
  readonly inputs: readonly [];
@@ -11044,6 +11062,24 @@ declare const lsp7MintableInitAbi: readonly [{
11044
11062
  readonly type: "bytes[]";
11045
11063
  }];
11046
11064
  readonly stateMutability: "nonpayable";
11065
+ }, {
11066
+ readonly type: "function";
11067
+ readonly inputs: readonly [{
11068
+ readonly name: "from";
11069
+ readonly internalType: "address";
11070
+ readonly type: "address";
11071
+ }, {
11072
+ readonly name: "amount";
11073
+ readonly internalType: "uint256";
11074
+ readonly type: "uint256";
11075
+ }, {
11076
+ readonly name: "data";
11077
+ readonly internalType: "bytes";
11078
+ readonly type: "bytes";
11079
+ }];
11080
+ readonly name: "burn";
11081
+ readonly outputs: readonly [];
11082
+ readonly stateMutability: "nonpayable";
11047
11083
  }, {
11048
11084
  readonly type: "function";
11049
11085
  readonly inputs: readonly [];
package/dist/abi.d.ts CHANGED
@@ -9218,6 +9218,24 @@ declare const lsp7MintableAbi: readonly [{
9218
9218
  readonly type: "bytes[]";
9219
9219
  }];
9220
9220
  readonly stateMutability: "nonpayable";
9221
+ }, {
9222
+ readonly type: "function";
9223
+ readonly inputs: readonly [{
9224
+ readonly name: "from";
9225
+ readonly internalType: "address";
9226
+ readonly type: "address";
9227
+ }, {
9228
+ readonly name: "amount";
9229
+ readonly internalType: "uint256";
9230
+ readonly type: "uint256";
9231
+ }, {
9232
+ readonly name: "data";
9233
+ readonly internalType: "bytes";
9234
+ readonly type: "bytes";
9235
+ }];
9236
+ readonly name: "burn";
9237
+ readonly outputs: readonly [];
9238
+ readonly stateMutability: "nonpayable";
9221
9239
  }, {
9222
9240
  readonly type: "function";
9223
9241
  readonly inputs: readonly [];
@@ -11044,6 +11062,24 @@ declare const lsp7MintableInitAbi: readonly [{
11044
11062
  readonly type: "bytes[]";
11045
11063
  }];
11046
11064
  readonly stateMutability: "nonpayable";
11065
+ }, {
11066
+ readonly type: "function";
11067
+ readonly inputs: readonly [{
11068
+ readonly name: "from";
11069
+ readonly internalType: "address";
11070
+ readonly type: "address";
11071
+ }, {
11072
+ readonly name: "amount";
11073
+ readonly internalType: "uint256";
11074
+ readonly type: "uint256";
11075
+ }, {
11076
+ readonly name: "data";
11077
+ readonly internalType: "bytes";
11078
+ readonly type: "bytes";
11079
+ }];
11080
+ readonly name: "burn";
11081
+ readonly outputs: readonly [];
11082
+ readonly stateMutability: "nonpayable";
11047
11083
  }, {
11048
11084
  readonly type: "function";
11049
11085
  readonly inputs: readonly [];
package/dist/abi.mjs CHANGED
@@ -6362,6 +6362,17 @@ const lsp7MintableAbi = [
6362
6362
  outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
6363
6363
  stateMutability: "nonpayable"
6364
6364
  },
6365
+ {
6366
+ type: "function",
6367
+ inputs: [
6368
+ { name: "from", internalType: "address", type: "address" },
6369
+ { name: "amount", internalType: "uint256", type: "uint256" },
6370
+ { name: "data", internalType: "bytes", type: "bytes" }
6371
+ ],
6372
+ name: "burn",
6373
+ outputs: [],
6374
+ stateMutability: "nonpayable"
6375
+ },
6365
6376
  {
6366
6377
  type: "function",
6367
6378
  inputs: [],
@@ -7613,6 +7624,17 @@ const lsp7MintableInitAbi = [
7613
7624
  outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
7614
7625
  stateMutability: "nonpayable"
7615
7626
  },
7627
+ {
7628
+ type: "function",
7629
+ inputs: [
7630
+ { name: "from", internalType: "address", type: "address" },
7631
+ { name: "amount", internalType: "uint256", type: "uint256" },
7632
+ { name: "data", internalType: "bytes", type: "bytes" }
7633
+ ],
7634
+ name: "burn",
7635
+ outputs: [],
7636
+ stateMutability: "nonpayable"
7637
+ },
7616
7638
  {
7617
7639
  type: "function",
7618
7640
  inputs: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/lsp7-contracts",
3
- "version": "0.18.1",
3
+ "version": "0.19.1",
4
4
  "description": "Package for the LSP7 Digital Asset standard",
5
5
  "license": "Apache-2.0",
6
6
  "author": "",
@@ -9,6 +9,10 @@
9
9
  "url": "https://github.com/lukso-network/lsp-smart-contracts.git",
10
10
  "directory": "packages/lsp7-contracts"
11
11
  },
12
+ "homepage": "https://github.com/lukso-network/lsp-smart-contracts/tree/main/packages/lsp7-contracts#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/lukso-network/lsp-smart-contracts/issues"
15
+ },
12
16
  "type": "module",
13
17
  "keywords": [
14
18
  "LUKSO",