@lukso/lsp7-contracts 0.15.0 → 0.16.3
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.
- package/README.md +12 -2
- package/artifacts/ILSP7DigitalAsset.json +0 -112
- package/artifacts/LSP7Burnable.json +0 -11
- package/artifacts/LSP7BurnableInitAbstract.json +0 -16
- package/artifacts/LSP7CappedSupply.json +0 -11
- package/artifacts/LSP7CappedSupplyInitAbstract.json +0 -16
- package/artifacts/LSP7DigitalAsset.json +0 -11
- package/artifacts/LSP7DigitalAssetInitAbstract.json +0 -16
- package/artifacts/LSP7Mintable.json +2 -13
- package/artifacts/LSP7MintableInit.json +2 -13
- package/artifacts/LSP7Votes.json +1154 -0
- package/artifacts/LSP7VotesInitAbstract.json +1146 -0
- package/contracts/ILSP7DigitalAsset.sol +2 -9
- package/contracts/LSP7Constants.sol +10 -0
- package/contracts/LSP7DigitalAsset.sol +748 -27
- package/contracts/LSP7DigitalAssetInitAbstract.sol +752 -14
- package/contracts/extensions/LSP7CappedSupply.sol +1 -1
- package/contracts/extensions/LSP7CappedSupplyInitAbstract.sol +1 -1
- package/contracts/extensions/LSP7Votes.sol +416 -0
- package/contracts/extensions/LSP7VotesConstants.sol +8 -0
- package/contracts/extensions/LSP7VotesInitAbstract.sol +443 -0
- package/dist/index.cjs +5 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.mjs +5 -1
- package/package.json +5 -6
- package/types/index.ts +3488 -1480
- package/contracts/LSP7DigitalAssetCore.sol +0 -744
- package/types/common.ts +0 -131
- package/types/contracts/ILSP7DigitalAsset.ts +0 -626
- package/types/contracts/LSP7DigitalAsset.ts +0 -698
- package/types/contracts/LSP7DigitalAssetInitAbstract.ts +0 -729
- package/types/contracts/extensions/LSP7Burnable.ts +0 -717
- package/types/contracts/extensions/LSP7BurnableInitAbstract.ts +0 -748
- package/types/contracts/extensions/LSP7CappedSupply.ts +0 -712
- package/types/contracts/extensions/LSP7CappedSupplyInitAbstract.ts +0 -743
- package/types/contracts/presets/LSP7Mintable.ts +0 -717
- package/types/contracts/presets/LSP7MintableInit.ts +0 -779
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
-
|
|
3
2
|
pragma solidity ^0.8.4;
|
|
4
3
|
|
|
5
|
-
// interfaces
|
|
6
|
-
import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
|
|
7
|
-
import {
|
|
8
|
-
IERC725Y
|
|
9
|
-
} from "@erc725/smart-contracts/contracts/interfaces/IERC725Y.sol";
|
|
10
|
-
|
|
11
4
|
/**
|
|
12
5
|
* @title Interface of the LSP7 - Digital Asset standard, a fungible digital asset.
|
|
13
6
|
*/
|
|
14
|
-
interface ILSP7DigitalAsset
|
|
7
|
+
interface ILSP7DigitalAsset {
|
|
15
8
|
// --- Events
|
|
16
9
|
|
|
17
10
|
/**
|
|
@@ -65,7 +58,7 @@ interface ILSP7DigitalAsset is IERC165, IERC725Y {
|
|
|
65
58
|
/**
|
|
66
59
|
* @dev Returns the number of decimals used to get its user representation.
|
|
67
60
|
* If the asset contract has been set to be non-divisible via the `isNonDivisible_` parameter in
|
|
68
|
-
* the `constructor`, the decimals returned
|
|
61
|
+
* the `constructor`, the decimals returned will be `0`. Otherwise `18` is the common value.
|
|
69
62
|
*
|
|
70
63
|
* @custom:notice This information is only used for _display_ purposes: it in
|
|
71
64
|
* no way affects any of the arithmetic of the contract, including
|
|
@@ -4,8 +4,18 @@ pragma solidity ^0.8.4;
|
|
|
4
4
|
// --- ERC165 interface ids
|
|
5
5
|
bytes4 constant _INTERFACEID_LSP7 = 0xc52d6008;
|
|
6
6
|
|
|
7
|
+
bytes4 constant _INTERFACEID_LSP7_V0_12_0 = 0xdaa746b7;
|
|
8
|
+
|
|
9
|
+
bytes4 constant _INTERFACEID_LSP7_V0_14_0 = 0xb3c4928f;
|
|
10
|
+
|
|
7
11
|
// --- Token Hooks
|
|
8
12
|
|
|
13
|
+
// keccak256('LSP7Tokens_DelegatorNotification')
|
|
14
|
+
bytes32 constant _TYPEID_LSP7_DELEGATOR = 0x997bd66a7e7823b09383ec7ce65fc306af29b8f82a45627f8efc0408475de016;
|
|
15
|
+
|
|
16
|
+
// keccak256('LSP7Tokens_DelegateeNotification')
|
|
17
|
+
bytes32 constant _TYPEID_LSP7_DELEGATEE = 0x03fae98a28026f93c23e2c9438c2ef0faa101585127a89919d18f067d907b319;
|
|
18
|
+
|
|
9
19
|
// keccak256('LSP7Tokens_SenderNotification')
|
|
10
20
|
bytes32 constant _TYPEID_LSP7_TOKENSSENDER = 0x429ac7a06903dbc9c13dfcb3c9d11df8194581fa047c96d7a4171fc7402958ea;
|
|
11
21
|
|