@lukso/lsp8-contracts 0.15.0 → 0.16.2
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 +2 -2
- package/artifacts/ILSP8IdentifiableDigitalAsset.json +0 -112
- package/artifacts/LSP8Burnable.json +0 -11
- package/artifacts/LSP8BurnableInitAbstract.json +0 -16
- package/artifacts/LSP8CappedSupply.json +0 -11
- package/artifacts/LSP8CappedSupplyInitAbstract.json +0 -16
- package/artifacts/LSP8Enumerable.json +0 -11
- package/artifacts/LSP8EnumerableInitAbstract.json +0 -16
- package/artifacts/LSP8IdentifiableDigitalAsset.json +0 -11
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +0 -16
- package/artifacts/LSP8Mintable.json +2 -13
- package/artifacts/LSP8MintableInit.json +2 -13
- package/artifacts/LSP8Votes.json +1230 -0
- package/artifacts/LSP8VotesInitAbstract.json +1222 -0
- package/contracts/ILSP8IdentifiableDigitalAsset.sol +2 -8
- package/contracts/LSP8Constants.sol +4 -0
- package/contracts/LSP8IdentifiableDigitalAsset.sol +796 -36
- package/contracts/LSP8IdentifiableDigitalAssetInitAbstract.sol +806 -36
- package/contracts/extensions/LSP8CappedSupply.sol +1 -1
- package/contracts/extensions/LSP8CappedSupplyInitAbstract.sol +1 -1
- package/contracts/extensions/LSP8Enumerable.sol +6 -5
- package/contracts/extensions/LSP8EnumerableInitAbstract.sol +5 -5
- package/contracts/extensions/LSP8Votes.sol +94 -0
- package/contracts/extensions/LSP8VotesConstants.sol +8 -0
- package/contracts/extensions/LSP8VotesInitAbstract.sol +116 -0
- package/dist/index.cjs +5 -1
- package/dist/index.d.cts +18 -16
- package/dist/index.d.mts +18 -16
- package/dist/index.d.ts +18 -16
- package/dist/index.mjs +5 -1
- package/package.json +5 -6
- package/types/index.ts +3958 -1854
- package/contracts/LSP8IdentifiableDigitalAssetCore.sol +0 -809
- package/types/common.ts +0 -131
- package/types/contracts/ILSP8IdentifiableDigitalAsset.ts +0 -706
- package/types/contracts/LSP8IdentifiableDigitalAsset.ts +0 -778
- package/types/contracts/LSP8IdentifiableDigitalAssetInitAbstract.ts +0 -813
- package/types/contracts/extensions/LSP8Burnable.ts +0 -797
- package/types/contracts/extensions/LSP8BurnableInitAbstract.ts +0 -829
- package/types/contracts/extensions/LSP8CappedSupply.ts +0 -792
- package/types/contracts/extensions/LSP8CappedSupplyInitAbstract.ts +0 -824
- package/types/contracts/extensions/LSP8Enumerable.ts +0 -790
- package/types/contracts/extensions/LSP8EnumerableInitAbstract.ts +0 -821
- package/types/contracts/presets/LSP8Mintable.ts +0 -797
- package/types/contracts/presets/LSP8MintableInit.ts +0 -860
@@ -1,16 +1,10 @@
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
2
2
|
pragma solidity ^0.8.4;
|
3
3
|
|
4
|
-
// interfaces
|
5
|
-
import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
|
6
|
-
import {
|
7
|
-
IERC725Y
|
8
|
-
} from "@erc725/smart-contracts/contracts/interfaces/IERC725Y.sol";
|
9
|
-
|
10
4
|
/**
|
11
5
|
* @title Interface of the LSP8 - Identifiable Digital Asset standard, a non-fungible digital asset.
|
12
6
|
*/
|
13
|
-
interface ILSP8IdentifiableDigitalAsset
|
7
|
+
interface ILSP8IdentifiableDigitalAsset {
|
14
8
|
// --- Events
|
15
9
|
|
16
10
|
/**
|
@@ -254,7 +248,7 @@ interface ILSP8IdentifiableDigitalAsset is IERC165, IERC725Y {
|
|
254
248
|
* @param from The address that owns the given `tokenId`.
|
255
249
|
* @param to The address that will receive the `tokenId`.
|
256
250
|
* @param tokenId The token ID to transfer.
|
257
|
-
* @param force When set to `true`, the `to` address CAN be any
|
251
|
+
* @param force When set to `true`, the `to` address CAN be any address.
|
258
252
|
* When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.
|
259
253
|
* @param data Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.
|
260
254
|
*
|
@@ -4,6 +4,10 @@ pragma solidity ^0.8.4;
|
|
4
4
|
// --- ERC165 interface ids
|
5
5
|
bytes4 constant _INTERFACEID_LSP8 = 0x3a271706;
|
6
6
|
|
7
|
+
bytes4 constant _INTERFACEID_LSP8_V0_12_0 = 0x30dc5278;
|
8
|
+
|
9
|
+
bytes4 constant _INTERFACEID_LSP8_V0_14_0 = 0xecad9f75;
|
10
|
+
|
7
11
|
// --- ERC725Y Data Keys
|
8
12
|
|
9
13
|
// keccak256('LSP8TokenIdFormat')
|