@lukso/lsp7-contracts 0.16.8 → 0.18.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 (82) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +100 -5
  3. package/artifacts/IAccessControlExtended.json +285 -0
  4. package/artifacts/ILSP7CappedBalance.json +27 -0
  5. package/artifacts/ILSP7CappedSupply.json +27 -0
  6. package/artifacts/ILSP7DigitalAsset.json +6 -3
  7. package/artifacts/ILSP7Mintable.json +62 -0
  8. package/artifacts/ILSP7NonTransferable.json +116 -0
  9. package/artifacts/ILSP7Revokable.json +112 -0
  10. package/artifacts/LSP7Burnable.json +7 -4
  11. package/artifacts/LSP7BurnableInitAbstract.json +7 -4
  12. package/artifacts/LSP7CappedBalanceAbstract.json +1159 -0
  13. package/artifacts/LSP7CappedBalanceInitAbstract.json +1167 -0
  14. package/artifacts/{LSP7CappedSupply.json → LSP7CappedSupplyAbstract.json} +8 -15
  15. package/artifacts/LSP7CappedSupplyInitAbstract.json +7 -14
  16. package/artifacts/LSP7CustomizableToken.json +1647 -0
  17. package/artifacts/LSP7CustomizableTokenInit.json +1644 -0
  18. package/artifacts/LSP7DigitalAsset.json +6 -3
  19. package/artifacts/LSP7DigitalAssetInitAbstract.json +6 -3
  20. package/artifacts/LSP7Mintable.json +376 -5
  21. package/artifacts/LSP7MintableAbstract.json +1186 -0
  22. package/artifacts/LSP7MintableInit.json +369 -5
  23. package/artifacts/LSP7MintableInitAbstract.json +1194 -0
  24. package/artifacts/LSP7NonTransferableAbstract.json +1242 -0
  25. package/artifacts/LSP7NonTransferableInitAbstract.json +1250 -0
  26. package/artifacts/LSP7RevokableAbstract.json +1223 -0
  27. package/artifacts/LSP7RevokableInitAbstract.json +1231 -0
  28. package/artifacts/LSP7Votes.json +66 -4
  29. package/artifacts/LSP7VotesInitAbstract.json +66 -4
  30. package/contracts/LSP7DigitalAsset.sol +56 -65
  31. package/contracts/LSP7DigitalAssetInitAbstract.sol +49 -71
  32. package/contracts/extensions/AccessControlExtended/AccessControlExtendedAbstract.sol +368 -0
  33. package/contracts/extensions/AccessControlExtended/AccessControlExtendedConstants.sol +13 -0
  34. package/contracts/extensions/AccessControlExtended/AccessControlExtendedErrors.sol +23 -0
  35. package/contracts/extensions/AccessControlExtended/AccessControlExtendedInitAbstract.sol +389 -0
  36. package/contracts/extensions/AccessControlExtended/IAccessControlExtended.sol +51 -0
  37. package/contracts/extensions/{LSP7Burnable.sol → LSP7Burnable/LSP7Burnable.sol} +2 -2
  38. package/contracts/extensions/{LSP7BurnableInitAbstract.sol → LSP7Burnable/LSP7BurnableInitAbstract.sol} +2 -4
  39. package/contracts/extensions/LSP7CappedBalance/ILSP7CappedBalance.sol +11 -0
  40. package/contracts/extensions/LSP7CappedBalance/LSP7CappedBalanceAbstract.sol +129 -0
  41. package/contracts/extensions/LSP7CappedBalance/LSP7CappedBalanceErrors.sol +10 -0
  42. package/contracts/extensions/LSP7CappedBalance/LSP7CappedBalanceInitAbstract.sol +179 -0
  43. package/contracts/extensions/LSP7CappedSupply/ILSP7CappedSupply.sol +11 -0
  44. package/contracts/extensions/LSP7CappedSupply/LSP7CappedSupplyAbstract.sol +56 -0
  45. package/contracts/extensions/LSP7CappedSupply/LSP7CappedSupplyErrors.sol +6 -0
  46. package/contracts/extensions/LSP7CappedSupply/LSP7CappedSupplyInitAbstract.sol +96 -0
  47. package/contracts/extensions/LSP7Mintable/ILSP7Mintable.sol +27 -0
  48. package/contracts/extensions/LSP7Mintable/LSP7MintableAbstract.sol +105 -0
  49. package/contracts/extensions/LSP7Mintable/LSP7MintableErrors.sol +5 -0
  50. package/contracts/extensions/LSP7Mintable/LSP7MintableInitAbstract.sol +156 -0
  51. package/contracts/extensions/LSP7NonTransferable/ILSP7NonTransferable.sol +54 -0
  52. package/contracts/extensions/LSP7NonTransferable/LSP7NonTransferableAbstract.sol +192 -0
  53. package/contracts/extensions/LSP7NonTransferable/LSP7NonTransferableErrors.sol +14 -0
  54. package/contracts/extensions/LSP7NonTransferable/LSP7NonTransferableInitAbstract.sol +249 -0
  55. package/contracts/extensions/LSP7Revokable/ILSP7Revokable.sol +37 -0
  56. package/contracts/extensions/LSP7Revokable/LSP7RevokableAbstract.sol +138 -0
  57. package/contracts/extensions/LSP7Revokable/LSP7RevokableErrors.sol +4 -0
  58. package/contracts/extensions/LSP7Revokable/LSP7RevokableInitAbstract.sol +191 -0
  59. package/contracts/extensions/{LSP7Votes.sol → LSP7Votes/LSP7Votes.sol} +37 -20
  60. package/contracts/extensions/LSP7Votes/LSP7VotesErrors.sol +24 -0
  61. package/contracts/extensions/{LSP7VotesInitAbstract.sol → LSP7Votes/LSP7VotesInitAbstract.sol} +37 -21
  62. package/contracts/presets/LSP7CustomizableToken.sol +262 -0
  63. package/contracts/presets/LSP7CustomizableTokenConstants.sol +32 -0
  64. package/contracts/presets/LSP7CustomizableTokenInit.sol +294 -0
  65. package/contracts/presets/LSP7Mintable.sol +14 -23
  66. package/contracts/presets/LSP7MintableInit.sol +16 -11
  67. package/dist/abi.cjs +7664 -59
  68. package/dist/abi.d.cts +11223 -277
  69. package/dist/abi.d.mts +11223 -277
  70. package/dist/abi.d.ts +11223 -277
  71. package/dist/abi.mjs +7648 -59
  72. package/dist/constants.cjs +21 -0
  73. package/dist/constants.d.cts +12 -1
  74. package/dist/constants.d.mts +12 -1
  75. package/dist/constants.d.ts +12 -1
  76. package/dist/constants.mjs +16 -1
  77. package/package.json +33 -9
  78. package/contracts/extensions/LSP7CappedSupply.sol +0 -83
  79. package/contracts/extensions/LSP7CappedSupplyInitAbstract.sol +0 -86
  80. package/contracts/presets/ILSP7Mintable.sol +0 -32
  81. package/contracts/presets/LSP7MintableInitAbstract.sol +0 -57
  82. /package/contracts/extensions/{LSP7VotesConstants.sol → LSP7Votes/LSP7VotesConstants.sol} +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "_format": "hh-sol-artifact-1",
2
+ "_format": "hh3-artifact-1",
3
3
  "contractName": "ILSP7DigitalAsset",
4
4
  "sourceName": "contracts/ILSP7DigitalAsset.sol",
5
5
  "abi": [
@@ -387,5 +387,8 @@
387
387
  "bytecode": "0x",
388
388
  "deployedBytecode": "0x",
389
389
  "linkReferences": {},
390
- "deployedLinkReferences": {}
391
- }
390
+ "deployedLinkReferences": {},
391
+ "immutableReferences": {},
392
+ "inputSourceName": "project/contracts/ILSP7DigitalAsset.sol",
393
+ "buildInfoId": "solc-0_8_28-740a1678d8e3d6f146988df539981a38397b88c1"
394
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "_format": "hh3-artifact-1",
3
+ "contractName": "ILSP7Mintable",
4
+ "sourceName": "contracts/extensions/LSP7Mintable/ILSP7Mintable.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "bool",
12
+ "name": "enabled",
13
+ "type": "bool"
14
+ }
15
+ ],
16
+ "name": "MintingStatusChanged",
17
+ "type": "event"
18
+ },
19
+ {
20
+ "inputs": [],
21
+ "name": "disableMinting",
22
+ "outputs": [],
23
+ "stateMutability": "nonpayable",
24
+ "type": "function"
25
+ },
26
+ {
27
+ "inputs": [
28
+ {
29
+ "internalType": "address",
30
+ "name": "to",
31
+ "type": "address"
32
+ },
33
+ {
34
+ "internalType": "uint256",
35
+ "name": "amount",
36
+ "type": "uint256"
37
+ },
38
+ {
39
+ "internalType": "bool",
40
+ "name": "force",
41
+ "type": "bool"
42
+ },
43
+ {
44
+ "internalType": "bytes",
45
+ "name": "data",
46
+ "type": "bytes"
47
+ }
48
+ ],
49
+ "name": "mint",
50
+ "outputs": [],
51
+ "stateMutability": "nonpayable",
52
+ "type": "function"
53
+ }
54
+ ],
55
+ "bytecode": "0x",
56
+ "deployedBytecode": "0x",
57
+ "linkReferences": {},
58
+ "deployedLinkReferences": {},
59
+ "immutableReferences": {},
60
+ "inputSourceName": "project/contracts/extensions/LSP7Mintable/ILSP7Mintable.sol",
61
+ "buildInfoId": "solc-0_8_28-740a1678d8e3d6f146988df539981a38397b88c1"
62
+ }
@@ -0,0 +1,116 @@
1
+ {
2
+ "_format": "hh3-artifact-1",
3
+ "contractName": "ILSP7NonTransferable",
4
+ "sourceName": "contracts/extensions/LSP7NonTransferable/ILSP7NonTransferable.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "bool",
12
+ "name": "nonTransferabilityEnabled",
13
+ "type": "bool"
14
+ },
15
+ {
16
+ "indexed": true,
17
+ "internalType": "uint256",
18
+ "name": "start",
19
+ "type": "uint256"
20
+ },
21
+ {
22
+ "indexed": true,
23
+ "internalType": "uint256",
24
+ "name": "end",
25
+ "type": "uint256"
26
+ }
27
+ ],
28
+ "name": "TransferLockPeriodChanged",
29
+ "type": "event"
30
+ },
31
+ {
32
+ "inputs": [],
33
+ "name": "isTransferable",
34
+ "outputs": [
35
+ {
36
+ "internalType": "bool",
37
+ "name": "",
38
+ "type": "bool"
39
+ }
40
+ ],
41
+ "stateMutability": "view",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "inputs": [],
46
+ "name": "makeTransferable",
47
+ "outputs": [],
48
+ "stateMutability": "nonpayable",
49
+ "type": "function"
50
+ },
51
+ {
52
+ "inputs": [],
53
+ "name": "nonTransferabilityEnabled",
54
+ "outputs": [
55
+ {
56
+ "internalType": "bool",
57
+ "name": "",
58
+ "type": "bool"
59
+ }
60
+ ],
61
+ "stateMutability": "view",
62
+ "type": "function"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "transferLockEnd",
67
+ "outputs": [
68
+ {
69
+ "internalType": "uint256",
70
+ "name": "",
71
+ "type": "uint256"
72
+ }
73
+ ],
74
+ "stateMutability": "view",
75
+ "type": "function"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "transferLockStart",
80
+ "outputs": [
81
+ {
82
+ "internalType": "uint256",
83
+ "name": "",
84
+ "type": "uint256"
85
+ }
86
+ ],
87
+ "stateMutability": "view",
88
+ "type": "function"
89
+ },
90
+ {
91
+ "inputs": [
92
+ {
93
+ "internalType": "uint256",
94
+ "name": "newTransferLockStart",
95
+ "type": "uint256"
96
+ },
97
+ {
98
+ "internalType": "uint256",
99
+ "name": "newTransferLockEnd",
100
+ "type": "uint256"
101
+ }
102
+ ],
103
+ "name": "updateTransferLockPeriod",
104
+ "outputs": [],
105
+ "stateMutability": "nonpayable",
106
+ "type": "function"
107
+ }
108
+ ],
109
+ "bytecode": "0x",
110
+ "deployedBytecode": "0x",
111
+ "linkReferences": {},
112
+ "deployedLinkReferences": {},
113
+ "immutableReferences": {},
114
+ "inputSourceName": "project/contracts/extensions/LSP7NonTransferable/ILSP7NonTransferable.sol",
115
+ "buildInfoId": "solc-0_8_28-740a1678d8e3d6f146988df539981a38397b88c1"
116
+ }
@@ -0,0 +1,112 @@
1
+ {
2
+ "_format": "hh3-artifact-1",
3
+ "contractName": "ILSP7Revokable",
4
+ "sourceName": "contracts/extensions/LSP7Revokable/ILSP7Revokable.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "bool",
12
+ "name": "enabled",
13
+ "type": "bool"
14
+ }
15
+ ],
16
+ "name": "RevokableStatusChanged",
17
+ "type": "event"
18
+ },
19
+ {
20
+ "anonymous": false,
21
+ "inputs": [
22
+ {
23
+ "indexed": true,
24
+ "internalType": "address",
25
+ "name": "revoker",
26
+ "type": "address"
27
+ },
28
+ {
29
+ "indexed": true,
30
+ "internalType": "address",
31
+ "name": "from",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "indexed": true,
36
+ "internalType": "address",
37
+ "name": "to",
38
+ "type": "address"
39
+ },
40
+ {
41
+ "indexed": false,
42
+ "internalType": "uint256",
43
+ "name": "amount",
44
+ "type": "uint256"
45
+ },
46
+ {
47
+ "indexed": false,
48
+ "internalType": "bytes",
49
+ "name": "data",
50
+ "type": "bytes"
51
+ }
52
+ ],
53
+ "name": "TokenRevoked",
54
+ "type": "event"
55
+ },
56
+ {
57
+ "inputs": [],
58
+ "name": "disableRevokable",
59
+ "outputs": [],
60
+ "stateMutability": "nonpayable",
61
+ "type": "function"
62
+ },
63
+ {
64
+ "inputs": [],
65
+ "name": "isRevokable",
66
+ "outputs": [
67
+ {
68
+ "internalType": "bool",
69
+ "name": "",
70
+ "type": "bool"
71
+ }
72
+ ],
73
+ "stateMutability": "view",
74
+ "type": "function"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "from",
81
+ "type": "address"
82
+ },
83
+ {
84
+ "internalType": "address",
85
+ "name": "to",
86
+ "type": "address"
87
+ },
88
+ {
89
+ "internalType": "uint256",
90
+ "name": "amount",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "internalType": "bytes",
95
+ "name": "data",
96
+ "type": "bytes"
97
+ }
98
+ ],
99
+ "name": "revoke",
100
+ "outputs": [],
101
+ "stateMutability": "nonpayable",
102
+ "type": "function"
103
+ }
104
+ ],
105
+ "bytecode": "0x",
106
+ "deployedBytecode": "0x",
107
+ "linkReferences": {},
108
+ "deployedLinkReferences": {},
109
+ "immutableReferences": {},
110
+ "inputSourceName": "project/contracts/extensions/LSP7Revokable/ILSP7Revokable.sol",
111
+ "buildInfoId": "solc-0_8_28-740a1678d8e3d6f146988df539981a38397b88c1"
112
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
- "_format": "hh-sol-artifact-1",
2
+ "_format": "hh3-artifact-1",
3
3
  "contractName": "LSP7Burnable",
4
- "sourceName": "contracts/extensions/LSP7Burnable.sol",
4
+ "sourceName": "contracts/extensions/LSP7Burnable/LSP7Burnable.sol",
5
5
  "abi": [
6
6
  {
7
7
  "inputs": [],
@@ -813,5 +813,8 @@
813
813
  "bytecode": "0x",
814
814
  "deployedBytecode": "0x",
815
815
  "linkReferences": {},
816
- "deployedLinkReferences": {}
817
- }
816
+ "deployedLinkReferences": {},
817
+ "immutableReferences": {},
818
+ "inputSourceName": "project/contracts/extensions/LSP7Burnable/LSP7Burnable.sol",
819
+ "buildInfoId": "solc-0_8_28-740a1678d8e3d6f146988df539981a38397b88c1"
820
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
- "_format": "hh-sol-artifact-1",
2
+ "_format": "hh3-artifact-1",
3
3
  "contractName": "LSP7BurnableInitAbstract",
4
- "sourceName": "contracts/extensions/LSP7BurnableInitAbstract.sol",
4
+ "sourceName": "contracts/extensions/LSP7Burnable/LSP7BurnableInitAbstract.sol",
5
5
  "abi": [
6
6
  {
7
7
  "inputs": [],
@@ -821,5 +821,8 @@
821
821
  "bytecode": "0x",
822
822
  "deployedBytecode": "0x",
823
823
  "linkReferences": {},
824
- "deployedLinkReferences": {}
825
- }
824
+ "deployedLinkReferences": {},
825
+ "immutableReferences": {},
826
+ "inputSourceName": "project/contracts/extensions/LSP7Burnable/LSP7BurnableInitAbstract.sol",
827
+ "buildInfoId": "solc-0_8_28-740a1678d8e3d6f146988df539981a38397b88c1"
828
+ }