@lukso/lsp-smart-contracts 0.6.1 → 0.6.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/artifacts/Create2Factory.json +2 -2
- package/artifacts/LSP0ERC725Account.json +8 -8
- package/artifacts/LSP0ERC725AccountInit.json +13 -8
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +18 -2
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +18 -2
- package/artifacts/LSP4DigitalAssetMetadata.json +10 -0
- package/artifacts/LSP4DigitalAssetMetadataInit.json +10 -0
- package/artifacts/LSP6KeyManager.json +82 -13
- package/artifacts/LSP6KeyManagerInit.json +87 -13
- package/artifacts/LSP7CappedSupply.json +10 -0
- package/artifacts/LSP7CappedSupplyInit.json +10 -28
- package/artifacts/LSP7CompatibleERC20.json +714 -0
- package/artifacts/LSP7CompatibleERC20Init.json +760 -0
- package/artifacts/LSP7CompatibleERC20Mintable.json +742 -0
- package/artifacts/LSP7CompatibleERC20MintableInit.json +783 -0
- package/artifacts/LSP7DigitalAsset.json +12 -2
- package/artifacts/LSP7DigitalAssetInit.json +17 -2
- package/artifacts/LSP7Mintable.json +12 -2
- package/artifacts/LSP7MintableInit.json +17 -2
- package/artifacts/LSP8CappedSupply.json +10 -0
- package/artifacts/LSP8CappedSupplyInit.json +10 -23
- package/artifacts/LSP8CompatibleERC721.json +842 -0
- package/artifacts/LSP8CompatibleERC721Init.json +883 -0
- package/artifacts/LSP8CompatibleERC721Mintable.json +881 -0
- package/artifacts/LSP8CompatibleERC721MintableInit.json +922 -0
- package/artifacts/LSP8IdentifiableDigitalAsset.json +12 -2
- package/artifacts/LSP8IdentifiableDigitalAssetInit.json +17 -2
- package/artifacts/LSP8Mintable.json +12 -2
- package/artifacts/LSP8MintableInit.json +17 -2
- package/artifacts/LSP9Vault.json +9 -9
- package/artifacts/LSP9VaultInit.json +14 -9
- package/artifacts/UniversalFactory.json +2 -2
- package/artifacts/UniversalProfile.json +8 -8
- package/artifacts/UniversalProfileInit.json +13 -8
- package/artifacts/UniversalReceiverAddressStore.json +2 -2
- package/constants.js +49 -14
- package/contracts/Custom/ClaimOwnership.sol +10 -7
- package/contracts/Custom/IClaimOwnership.sol +1 -1
- package/contracts/Factories/Create2Factory.sol +3 -13
- package/contracts/Factories/UniversalFactory.sol +16 -7
- package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +3 -3
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +28 -19
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +10 -3
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +2 -2
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +12 -3
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/Handling/TokenHandling.sol +18 -16
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +8 -2
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +18 -4
- package/contracts/LSP2ERC725YJSONSchema/LSP2Errors.sol +9 -0
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +69 -73
- package/contracts/LSP3UniversalProfile/LSP3Constants.sol +1 -1
- package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +1 -1
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +14 -3
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +16 -4
- package/contracts/LSP4DigitalAssetMetadata/LSP4Errors.sol +16 -0
- package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +27 -1
- package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +15 -15
- package/contracts/LSP6KeyManager/LSP6Errors.sol +34 -5
- package/contracts/LSP6KeyManager/LSP6KeyManager.sol +5 -3
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +224 -234
- package/contracts/LSP6KeyManager/LSP6KeyManagerInit.sol +10 -3
- package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +4 -2
- package/contracts/LSP6KeyManager/LSP6Utils.sol +22 -26
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +4 -0
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +3 -1
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInit.sol +11 -0
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +3 -1
- package/contracts/LSP7DigitalAsset/extensions/{ILSP7CompatibilityForERC20.sol → ILSP7CompatibleERC20.sol} +6 -6
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +5 -2
- package/contracts/LSP7DigitalAsset/extensions/{LSP7CompatibilityForERC20.sol → LSP7CompatibleERC20.sol} +6 -7
- package/contracts/LSP7DigitalAsset/extensions/{LSP7CompatibilityForERC20Core.sol → LSP7CompatibleERC20Core.sol} +21 -16
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20Init.sol +29 -0
- package/contracts/LSP7DigitalAsset/extensions/{LSP7CompatibilityForERC20InitAbstract.sol → LSP7CompatibleERC20InitAbstract.sol} +11 -10
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +22 -0
- package/contracts/LSP7DigitalAsset/{extensions/LSP7CompatibilityForERC20Init.sol → presets/LSP7CompatibleERC20MintableInit.sol} +5 -4
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +27 -0
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +8 -1
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +1 -1
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +1 -1
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInit.sol +10 -1
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +3 -1
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/{ILSP8CompatibilityForERC721.sol → ILSP8CompatibleERC721.sol} +1 -1
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +4 -2
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/{LSP8CompatibilityConstants.sol → LSP8CompatibleConstants.sol} +0 -0
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/{LSP8CompatibilityForERC721.sol → LSP8CompatibleERC721.sol} +12 -11
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/{LSP8CompatibilityForERC721Core.sol → LSP8CompatibleERC721Core.sol} +16 -16
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/{LSP8CompatibilityForERC721Init.sol → LSP8CompatibleERC721Init.sol} +3 -3
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/{LSP8CompatibilityForERC721InitAbstract.sol → LSP8CompatibleERC721InitAbstract.sol} +13 -9
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +22 -0
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +23 -0
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +27 -0
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +7 -0
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +3 -1
- package/contracts/LSP9Vault/LSP9Constants.sol +1 -1
- package/contracts/LSP9Vault/LSP9Vault.sol +9 -5
- package/contracts/LSP9Vault/LSP9VaultCore.sol +37 -26
- package/contracts/LSP9Vault/LSP9VaultInit.sol +10 -3
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +8 -4
- package/contracts/Legacy/UniversalReceiverAddressStore.sol +3 -1
- package/contracts/UniversalProfile.sol +3 -4
- package/contracts/UniversalProfileInit.sol +10 -3
- package/contracts/UniversalProfileInitAbstract.sol +3 -5
- package/contracts/Utils/UtilsLib.sol +6 -34
- package/package.json +2 -2
- package/artifacts/LSP7CompatibilityForERC20.json +0 -686
- package/artifacts/LSP7CompatibilityForERC20Init.json +0 -727
- package/artifacts/LSP8CompatibilityForERC721.json +0 -832
- package/artifacts/LSP8CompatibilityForERC721Init.json +0 -873
|
@@ -7,7 +7,9 @@ import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
|
|
|
7
7
|
// modules
|
|
8
8
|
import {ERC725YCore} from "@erc725/smart-contracts/contracts/ERC725YCore.sol";
|
|
9
9
|
import {LSP8IdentifiableDigitalAssetCore} from "./LSP8IdentifiableDigitalAssetCore.sol";
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
LSP4DigitalAssetMetadataInitAbstract
|
|
12
|
+
} from "../LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol";
|
|
11
13
|
|
|
12
14
|
// constants
|
|
13
15
|
import {_INTERFACEID_LSP8} from "./LSP8Constants.sol";
|
|
@@ -8,7 +8,7 @@ import {ILSP8IdentifiableDigitalAsset} from "../ILSP8IdentifiableDigitalAsset.so
|
|
|
8
8
|
/**
|
|
9
9
|
* @dev LSP8 extension, for compatibility for clients / tools that expect ERC721.
|
|
10
10
|
*/
|
|
11
|
-
interface
|
|
11
|
+
interface ILSP8CompatibleERC721 is ILSP8IdentifiableDigitalAsset {
|
|
12
12
|
/**
|
|
13
13
|
* @notice To provide compatibility with indexing ERC721 events.
|
|
14
14
|
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
|
|
@@ -4,14 +4,16 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
|
|
5
5
|
// modules
|
|
6
6
|
import {LSP8IdentifiableDigitalAssetCore} from "../LSP8IdentifiableDigitalAssetCore.sol";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
LSP8IdentifiableDigitalAssetInitAbstract
|
|
9
|
+
} from "../LSP8IdentifiableDigitalAssetInitAbstract.sol";
|
|
8
10
|
import {LSP8CappedSupplyCore} from "./LSP8CappedSupplyCore.sol";
|
|
9
11
|
|
|
10
12
|
/**
|
|
11
13
|
* @dev LSP8 extension, adds token supply cap.
|
|
12
14
|
*/
|
|
13
15
|
abstract contract LSP8CappedSupplyInitAbstract is
|
|
14
|
-
|
|
16
|
+
LSP8IdentifiableDigitalAssetInitAbstract,
|
|
15
17
|
LSP8CappedSupplyCore
|
|
16
18
|
{
|
|
17
19
|
function _initialize(uint256 tokenSupplyCap_) internal virtual onlyInitializing {
|
|
File without changes
|
|
@@ -9,20 +9,21 @@ import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
|
|
|
9
9
|
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
|
|
10
10
|
|
|
11
11
|
// modules
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
LSP8IdentifiableDigitalAsset,
|
|
14
|
+
LSP4DigitalAssetMetadata,
|
|
15
|
+
ERC725YCore
|
|
16
|
+
} from "../LSP8IdentifiableDigitalAsset.sol";
|
|
13
17
|
import {LSP8IdentifiableDigitalAssetCore} from "../LSP8IdentifiableDigitalAssetCore.sol";
|
|
14
|
-
import {
|
|
18
|
+
import {LSP8CompatibleERC721Core} from "./LSP8CompatibleERC721Core.sol";
|
|
15
19
|
|
|
16
20
|
// constants
|
|
17
|
-
import {_INTERFACEID_ERC721, _INTERFACEID_ERC721METADATA} from "./
|
|
21
|
+
import {_INTERFACEID_ERC721, _INTERFACEID_ERC721METADATA} from "./LSP8CompatibleConstants.sol";
|
|
18
22
|
|
|
19
23
|
/**
|
|
20
24
|
* @dev LSP8 extension, for compatibility for clients / tools that expect ERC721.
|
|
21
25
|
*/
|
|
22
|
-
contract
|
|
23
|
-
LSP8IdentifiableDigitalAsset,
|
|
24
|
-
LSP8CompatibilityForERC721Core
|
|
25
|
-
{
|
|
26
|
+
contract LSP8CompatibleERC721 is LSP8IdentifiableDigitalAsset, LSP8CompatibleERC721Core {
|
|
26
27
|
using EnumerableSet for EnumerableSet.AddressSet;
|
|
27
28
|
|
|
28
29
|
/**
|
|
@@ -42,7 +43,7 @@ contract LSP8CompatibilityForERC721 is
|
|
|
42
43
|
function authorizeOperator(address operator, bytes32 tokenId)
|
|
43
44
|
public
|
|
44
45
|
virtual
|
|
45
|
-
override(LSP8IdentifiableDigitalAssetCore,
|
|
46
|
+
override(LSP8IdentifiableDigitalAssetCore, LSP8CompatibleERC721Core)
|
|
46
47
|
{
|
|
47
48
|
super.authorizeOperator(operator, tokenId);
|
|
48
49
|
}
|
|
@@ -53,7 +54,7 @@ contract LSP8CompatibilityForERC721 is
|
|
|
53
54
|
bytes32 tokenId,
|
|
54
55
|
bool force,
|
|
55
56
|
bytes memory data
|
|
56
|
-
) internal virtual override(LSP8IdentifiableDigitalAssetCore,
|
|
57
|
+
) internal virtual override(LSP8IdentifiableDigitalAssetCore, LSP8CompatibleERC721Core) {
|
|
57
58
|
super._transfer(from, to, tokenId, force, data);
|
|
58
59
|
}
|
|
59
60
|
|
|
@@ -62,14 +63,14 @@ contract LSP8CompatibilityForERC721 is
|
|
|
62
63
|
bytes32 tokenId,
|
|
63
64
|
bool force,
|
|
64
65
|
bytes memory data
|
|
65
|
-
) internal virtual override(LSP8IdentifiableDigitalAssetCore,
|
|
66
|
+
) internal virtual override(LSP8IdentifiableDigitalAssetCore, LSP8CompatibleERC721Core) {
|
|
66
67
|
super._mint(to, tokenId, force, data);
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
function _burn(bytes32 tokenId, bytes memory data)
|
|
70
71
|
internal
|
|
71
72
|
virtual
|
|
72
|
-
override(LSP8IdentifiableDigitalAssetCore,
|
|
73
|
+
override(LSP8IdentifiableDigitalAssetCore, LSP8CompatibleERC721Core)
|
|
73
74
|
{
|
|
74
75
|
super._burn(tokenId, data);
|
|
75
76
|
}
|
|
@@ -4,7 +4,7 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
|
|
5
5
|
// interfaces
|
|
6
6
|
import {ILSP8IdentifiableDigitalAsset} from "../ILSP8IdentifiableDigitalAsset.sol";
|
|
7
|
-
import {
|
|
7
|
+
import {ILSP8CompatibleERC721} from "./ILSP8CompatibleERC721.sol";
|
|
8
8
|
|
|
9
9
|
// libraries
|
|
10
10
|
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
|
|
@@ -20,15 +20,15 @@ import {_LSP4_METADATA_KEY} from "../../LSP4DigitalAssetMetadata/LSP4Constants.s
|
|
|
20
20
|
/**
|
|
21
21
|
* @dev LSP8 extension, for compatibility for clients / tools that expect ERC721.
|
|
22
22
|
*/
|
|
23
|
-
abstract contract
|
|
23
|
+
abstract contract LSP8CompatibleERC721Core is
|
|
24
24
|
LSP4Compatibility,
|
|
25
25
|
LSP8IdentifiableDigitalAssetCore,
|
|
26
|
-
|
|
26
|
+
ILSP8CompatibleERC721
|
|
27
27
|
{
|
|
28
28
|
using EnumerableSet for EnumerableSet.AddressSet;
|
|
29
29
|
|
|
30
30
|
/*
|
|
31
|
-
* @inheritdoc
|
|
31
|
+
* @inheritdoc ILSP8CompatibleERC721
|
|
32
32
|
*/
|
|
33
33
|
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
|
|
34
34
|
// silence compiler warning about unused variable
|
|
@@ -44,25 +44,25 @@ abstract contract LSP8CompatibilityForERC721Core is
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* @inheritdoc
|
|
47
|
+
* @inheritdoc ILSP8CompatibleERC721
|
|
48
48
|
*/
|
|
49
|
-
function ownerOf(uint256 tokenId)
|
|
49
|
+
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
|
|
50
50
|
return tokenOwnerOf(bytes32(tokenId));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* @inheritdoc
|
|
54
|
+
* @inheritdoc ILSP8CompatibleERC721
|
|
55
55
|
*/
|
|
56
|
-
function approve(address operator, uint256 tokenId)
|
|
56
|
+
function approve(address operator, uint256 tokenId) public virtual override {
|
|
57
57
|
authorizeOperator(operator, bytes32(tokenId));
|
|
58
58
|
|
|
59
59
|
emit Approval(tokenOwnerOf(bytes32(tokenId)), operator, tokenId);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
* @inheritdoc
|
|
63
|
+
* @inheritdoc ILSP8CompatibleERC721
|
|
64
64
|
*/
|
|
65
|
-
function getApproved(uint256 tokenId)
|
|
65
|
+
function getApproved(uint256 tokenId) public view virtual override returns (address) {
|
|
66
66
|
bytes32 tokenIdAsBytes32 = bytes32(tokenId);
|
|
67
67
|
_existsOrError(tokenIdAsBytes32);
|
|
68
68
|
|
|
@@ -83,7 +83,7 @@ abstract contract LSP8CompatibilityForERC721Core is
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/*
|
|
86
|
-
* @inheritdoc
|
|
86
|
+
* @inheritdoc ILSP8CompatibleERC721
|
|
87
87
|
*/
|
|
88
88
|
function isApprovedForAll(address tokenOwner, address operator)
|
|
89
89
|
public
|
|
@@ -100,7 +100,7 @@ abstract contract LSP8CompatibilityForERC721Core is
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* @inheritdoc
|
|
103
|
+
* @inheritdoc ILSP8CompatibleERC721
|
|
104
104
|
* @dev Compatible with ERC721 transferFrom.
|
|
105
105
|
* Using force=true so that EOA and any contract may receive the tokenId.
|
|
106
106
|
*/
|
|
@@ -108,12 +108,12 @@ abstract contract LSP8CompatibilityForERC721Core is
|
|
|
108
108
|
address from,
|
|
109
109
|
address to,
|
|
110
110
|
uint256 tokenId
|
|
111
|
-
)
|
|
111
|
+
) public virtual override {
|
|
112
112
|
return transfer(from, to, bytes32(tokenId), true, "");
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
|
-
* @inheritdoc
|
|
116
|
+
* @inheritdoc ILSP8CompatibleERC721
|
|
117
117
|
* @dev Compatible with ERC721 safeTransferFrom.
|
|
118
118
|
* Using force=false so that no EOA and only contracts supporting LSP1 interface may receive the tokenId.
|
|
119
119
|
*/
|
|
@@ -121,7 +121,7 @@ abstract contract LSP8CompatibilityForERC721Core is
|
|
|
121
121
|
address from,
|
|
122
122
|
address to,
|
|
123
123
|
uint256 tokenId
|
|
124
|
-
)
|
|
124
|
+
) public virtual override {
|
|
125
125
|
return transfer(from, to, bytes32(tokenId), false, "");
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -134,7 +134,7 @@ abstract contract LSP8CompatibilityForERC721Core is
|
|
|
134
134
|
address to,
|
|
135
135
|
uint256 tokenId,
|
|
136
136
|
bytes memory data
|
|
137
|
-
)
|
|
137
|
+
) public virtual override {
|
|
138
138
|
return transfer(from, to, bytes32(tokenId), false, data);
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
pragma solidity ^0.8.0;
|
|
4
4
|
|
|
5
5
|
// modules
|
|
6
|
-
import {
|
|
6
|
+
import {LSP8CompatibleERC721InitAbstract} from "./LSP8CompatibleERC721InitAbstract.sol";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @dev LSP8 extension, for compatibility for clients / tools that expect ERC721.
|
|
10
10
|
*/
|
|
11
|
-
contract
|
|
11
|
+
contract LSP8CompatibleERC721Init is LSP8CompatibleERC721InitAbstract {
|
|
12
12
|
/**
|
|
13
13
|
* @notice Sets the name, the symbol and the owner of the token
|
|
14
14
|
* @param name_ The name of the token
|
|
@@ -20,6 +20,6 @@ contract LSP8CompatibilityForERC721Init is LSP8CompatibilityForERC721InitAbstrac
|
|
|
20
20
|
string memory symbol_,
|
|
21
21
|
address newOwner_
|
|
22
22
|
) public virtual initializer {
|
|
23
|
-
|
|
23
|
+
LSP8CompatibleERC721InitAbstract._initialize(name_, symbol_, newOwner_);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -6,19 +6,23 @@ pragma solidity ^0.8.0;
|
|
|
6
6
|
import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
|
|
7
7
|
|
|
8
8
|
// modules
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
LSP8IdentifiableDigitalAssetInitAbstract,
|
|
11
|
+
LSP4DigitalAssetMetadataInitAbstract,
|
|
12
|
+
ERC725YCore
|
|
13
|
+
} from "../LSP8IdentifiableDigitalAssetInitAbstract.sol";
|
|
10
14
|
import {LSP8IdentifiableDigitalAssetCore} from "../LSP8IdentifiableDigitalAssetCore.sol";
|
|
11
|
-
import {
|
|
15
|
+
import {LSP8CompatibleERC721Core} from "./LSP8CompatibleERC721Core.sol";
|
|
12
16
|
|
|
13
17
|
// constants
|
|
14
|
-
import {_INTERFACEID_ERC721, _INTERFACEID_ERC721METADATA} from "./
|
|
18
|
+
import {_INTERFACEID_ERC721, _INTERFACEID_ERC721METADATA} from "./LSP8CompatibleConstants.sol";
|
|
15
19
|
|
|
16
20
|
/**
|
|
17
21
|
* @dev LSP8 extension, for compatibility for clients / tools that expect ERC721.
|
|
18
22
|
*/
|
|
19
|
-
contract
|
|
23
|
+
contract LSP8CompatibleERC721InitAbstract is
|
|
20
24
|
LSP8IdentifiableDigitalAssetInitAbstract,
|
|
21
|
-
|
|
25
|
+
LSP8CompatibleERC721Core
|
|
22
26
|
{
|
|
23
27
|
function _initialize(
|
|
24
28
|
string memory name_,
|
|
@@ -31,7 +35,7 @@ contract LSP8CompatibilityForERC721InitAbstract is
|
|
|
31
35
|
function authorizeOperator(address operator, bytes32 tokenId)
|
|
32
36
|
public
|
|
33
37
|
virtual
|
|
34
|
-
override(LSP8IdentifiableDigitalAssetCore,
|
|
38
|
+
override(LSP8IdentifiableDigitalAssetCore, LSP8CompatibleERC721Core)
|
|
35
39
|
{
|
|
36
40
|
super.authorizeOperator(operator, tokenId);
|
|
37
41
|
}
|
|
@@ -42,7 +46,7 @@ contract LSP8CompatibilityForERC721InitAbstract is
|
|
|
42
46
|
bytes32 tokenId,
|
|
43
47
|
bool force,
|
|
44
48
|
bytes memory data
|
|
45
|
-
) internal virtual override(LSP8IdentifiableDigitalAssetCore,
|
|
49
|
+
) internal virtual override(LSP8IdentifiableDigitalAssetCore, LSP8CompatibleERC721Core) {
|
|
46
50
|
super._transfer(from, to, tokenId, force, data);
|
|
47
51
|
}
|
|
48
52
|
|
|
@@ -51,14 +55,14 @@ contract LSP8CompatibilityForERC721InitAbstract is
|
|
|
51
55
|
bytes32 tokenId,
|
|
52
56
|
bool force,
|
|
53
57
|
bytes memory data
|
|
54
|
-
) internal virtual override(LSP8IdentifiableDigitalAssetCore,
|
|
58
|
+
) internal virtual override(LSP8IdentifiableDigitalAssetCore, LSP8CompatibleERC721Core) {
|
|
55
59
|
super._mint(to, tokenId, force, data);
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
function _burn(bytes32 tokenId, bytes memory data)
|
|
59
63
|
internal
|
|
60
64
|
virtual
|
|
61
|
-
override(LSP8IdentifiableDigitalAssetCore,
|
|
65
|
+
override(LSP8IdentifiableDigitalAssetCore, LSP8CompatibleERC721Core)
|
|
62
66
|
{
|
|
63
67
|
super._burn(tokenId, data);
|
|
64
68
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity ^0.8.0;
|
|
3
|
+
|
|
4
|
+
import {LSP8CompatibleERC721} from "../extensions/LSP8CompatibleERC721.sol";
|
|
5
|
+
|
|
6
|
+
contract LSP8CompatibleERC721Mintable is LSP8CompatibleERC721 {
|
|
7
|
+
/* solhint-disable no-empty-blocks */
|
|
8
|
+
constructor(
|
|
9
|
+
string memory name_,
|
|
10
|
+
string memory symbol_,
|
|
11
|
+
address newOwner_
|
|
12
|
+
) LSP8CompatibleERC721(name_, symbol_, newOwner_) {}
|
|
13
|
+
|
|
14
|
+
function mint(
|
|
15
|
+
address to,
|
|
16
|
+
bytes32 tokenId,
|
|
17
|
+
bool force,
|
|
18
|
+
bytes memory data
|
|
19
|
+
) public onlyOwner {
|
|
20
|
+
_mint(to, tokenId, force, data);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity ^0.8.0;
|
|
3
|
+
|
|
4
|
+
// modules
|
|
5
|
+
import {
|
|
6
|
+
LSP8CompatibleERC721MintableInitAbstract
|
|
7
|
+
} from "./LSP8CompatibleERC721MintableInitAbstract.sol";
|
|
8
|
+
|
|
9
|
+
contract LSP8CompatibleERC721MintableInit is LSP8CompatibleERC721MintableInitAbstract {
|
|
10
|
+
/**
|
|
11
|
+
* @notice Sets the name, the symbol and the owner of the token
|
|
12
|
+
* @param name_ The name of the token
|
|
13
|
+
* @param symbol_ The symbol of the token
|
|
14
|
+
* @param newOwner_ The owner of the token
|
|
15
|
+
*/
|
|
16
|
+
function initialize(
|
|
17
|
+
string memory name_,
|
|
18
|
+
string memory symbol_,
|
|
19
|
+
address newOwner_
|
|
20
|
+
) public virtual initializer {
|
|
21
|
+
LSP8CompatibleERC721MintableInitAbstract._initialize(name_, symbol_, newOwner_);
|
|
22
|
+
}
|
|
23
|
+
}
|
package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity ^0.8.0;
|
|
3
|
+
|
|
4
|
+
// modules
|
|
5
|
+
import {LSP8CompatibleERC721InitAbstract} from "../extensions/LSP8CompatibleERC721InitAbstract.sol";
|
|
6
|
+
|
|
7
|
+
contract LSP8CompatibleERC721MintableInitAbstract is LSP8CompatibleERC721InitAbstract {
|
|
8
|
+
/**
|
|
9
|
+
* @inheritdoc LSP8CompatibleERC721InitAbstract
|
|
10
|
+
*/
|
|
11
|
+
function _initialize(
|
|
12
|
+
string memory name_,
|
|
13
|
+
string memory symbol_,
|
|
14
|
+
address newOwner_
|
|
15
|
+
) internal virtual override onlyInitializing {
|
|
16
|
+
LSP8CompatibleERC721InitAbstract._initialize(name_, symbol_, newOwner_);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function mint(
|
|
20
|
+
address to,
|
|
21
|
+
bytes32 tokenId,
|
|
22
|
+
bool force,
|
|
23
|
+
bytes memory data
|
|
24
|
+
) public onlyOwner {
|
|
25
|
+
_mint(to, tokenId, force, data);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -9,6 +9,13 @@ import {LSP8MintableInitAbstract} from "./LSP8MintableInitAbstract.sol";
|
|
|
9
9
|
* @dev LSP8 extension.
|
|
10
10
|
*/
|
|
11
11
|
contract LSP8MintableInit is LSP8MintableInitAbstract {
|
|
12
|
+
/**
|
|
13
|
+
* @dev initialize (= lock) base implementation contract on deployment
|
|
14
|
+
*/
|
|
15
|
+
constructor() {
|
|
16
|
+
_disableInitializers();
|
|
17
|
+
}
|
|
18
|
+
|
|
12
19
|
/**
|
|
13
20
|
* @notice Sets the token-Metadata and register LSP8InterfaceId
|
|
14
21
|
* @param name_ The name of the token
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
pragma solidity ^0.8.0;
|
|
4
4
|
|
|
5
5
|
// modules
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
LSP8IdentifiableDigitalAssetInitAbstract
|
|
8
|
+
} from "../LSP8IdentifiableDigitalAssetInitAbstract.sol";
|
|
7
9
|
import {LSP8MintableCore} from "./LSP8MintableCore.sol";
|
|
8
10
|
|
|
9
11
|
/**
|
|
@@ -6,7 +6,7 @@ bytes4 constant _INTERFACEID_LSP9 = 0x8c1d44f6;
|
|
|
6
6
|
|
|
7
7
|
// --- ERC725Y Keys
|
|
8
8
|
|
|
9
|
-
// bytes10(keccak256('
|
|
9
|
+
// bytes10(keccak256('SupportedStandards')) + bytes2(0) + bytes20(keccak256('LSP9Vault'))
|
|
10
10
|
bytes32 constant _LSP9_SUPPORTED_STANDARDS_KEY = 0xeafec4d89fa9619884b600007c0334a14085fefa8b51ae5a40895018882bdb90;
|
|
11
11
|
|
|
12
12
|
// bytes4(keccak256('LSP9Vault'))
|
|
@@ -11,7 +11,11 @@ import {LSP9VaultCore, ClaimOwnership} from "./LSP9VaultCore.sol";
|
|
|
11
11
|
|
|
12
12
|
// constants
|
|
13
13
|
import {_INTERFACEID_LSP1} from "../LSP1UniversalReceiver/LSP1Constants.sol";
|
|
14
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
_INTERFACEID_LSP9,
|
|
16
|
+
_LSP9_SUPPORTED_STANDARDS_KEY,
|
|
17
|
+
_LSP9_SUPPORTED_STANDARDS_VALUE
|
|
18
|
+
} from "../LSP9Vault/LSP9Constants.sol";
|
|
15
19
|
|
|
16
20
|
/**
|
|
17
21
|
* @title Implementation of LSP9Vault built on top of ERC725, LSP1UniversalReceiver
|
|
@@ -21,14 +25,14 @@ import {_INTERFACEID_LSP9, _LSP9_SUPPORTED_STANDARDS_KEY, _LSP9_SUPPORTED_STANDA
|
|
|
21
25
|
contract LSP9Vault is LSP9VaultCore {
|
|
22
26
|
/**
|
|
23
27
|
* @notice Sets the owner of the contract and sets the SupportedStandards:LSP9Vault key
|
|
24
|
-
* @param
|
|
28
|
+
* @param newOwner the owner of the contract
|
|
25
29
|
*/
|
|
26
|
-
constructor(address
|
|
27
|
-
OwnableUnset._setOwner(
|
|
30
|
+
constructor(address newOwner) {
|
|
31
|
+
OwnableUnset._setOwner(newOwner);
|
|
28
32
|
|
|
29
33
|
// set key SupportedStandards:LSP9Vault
|
|
30
34
|
_setData(_LSP9_SUPPORTED_STANDARDS_KEY, _LSP9_SUPPORTED_STANDARDS_VALUE);
|
|
31
35
|
|
|
32
|
-
_notifyVaultReceiver(
|
|
36
|
+
_notifyVaultReceiver(newOwner);
|
|
33
37
|
}
|
|
34
38
|
}
|
|
@@ -4,7 +4,9 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
// interfaces
|
|
5
5
|
import {IERC725Y} from "@erc725/smart-contracts/contracts/interfaces/IERC725Y.sol";
|
|
6
6
|
import {ILSP1UniversalReceiver} from "../LSP1UniversalReceiver/ILSP1UniversalReceiver.sol";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
ILSP1UniversalReceiverDelegate
|
|
9
|
+
} from "../LSP1UniversalReceiver/ILSP1UniversalReceiverDelegate.sol";
|
|
8
10
|
|
|
9
11
|
// libraries
|
|
10
12
|
import {ERC165Checker} from "../Custom/ERC165Checker.sol";
|
|
@@ -17,8 +19,16 @@ import {ClaimOwnership} from "../Custom/ClaimOwnership.sol";
|
|
|
17
19
|
|
|
18
20
|
// constants
|
|
19
21
|
import {_INTERFACEID_CLAIM_OWNERSHIP} from "../Custom/IClaimOwnership.sol";
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
+
import {
|
|
23
|
+
_INTERFACEID_LSP1,
|
|
24
|
+
_INTERFACEID_LSP1_DELEGATE,
|
|
25
|
+
_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY
|
|
26
|
+
} from "../LSP1UniversalReceiver/LSP1Constants.sol";
|
|
27
|
+
import {
|
|
28
|
+
_INTERFACEID_LSP9,
|
|
29
|
+
_TYPEID_LSP9_VAULTRECIPIENT,
|
|
30
|
+
_TYPEID_LSP9_VAULTSENDER
|
|
31
|
+
} from "./LSP9Constants.sol";
|
|
22
32
|
|
|
23
33
|
/**
|
|
24
34
|
* @title Core Implementation of LSP9Vault built on top of ERC725, LSP1UniversalReceiver
|
|
@@ -57,7 +67,7 @@ contract LSP9VaultCore is ERC725XCore, ERC725YCore, ClaimOwnership, ILSP1Univers
|
|
|
57
67
|
/**
|
|
58
68
|
* @dev Emits an event when receiving native tokens
|
|
59
69
|
*/
|
|
60
|
-
fallback() external payable {
|
|
70
|
+
fallback() external payable virtual {
|
|
61
71
|
if (msg.value > 0) emit ValueReceived(msg.sender, msg.value);
|
|
62
72
|
}
|
|
63
73
|
|
|
@@ -99,7 +109,8 @@ contract LSP9VaultCore is ERC725XCore, ERC725YCore, ClaimOwnership, ILSP1Univers
|
|
|
99
109
|
*/
|
|
100
110
|
function claimOwnership() public virtual override {
|
|
101
111
|
address previousOwner = owner();
|
|
102
|
-
|
|
112
|
+
|
|
113
|
+
_claimOwnership();
|
|
103
114
|
|
|
104
115
|
_notifyVaultSender(previousOwner);
|
|
105
116
|
_notifyVaultReceiver(msg.sender);
|
|
@@ -115,8 +126,8 @@ contract LSP9VaultCore is ERC725XCore, ERC725YCore, ClaimOwnership, ILSP1Univers
|
|
|
115
126
|
*
|
|
116
127
|
* Emits a {DataChanged} event.
|
|
117
128
|
*/
|
|
118
|
-
function setData(bytes32
|
|
119
|
-
_setData(
|
|
129
|
+
function setData(bytes32 dataKey, bytes memory dataValue) public virtual override onlyAllowed {
|
|
130
|
+
_setData(dataKey, dataValue);
|
|
120
131
|
}
|
|
121
132
|
|
|
122
133
|
/**
|
|
@@ -127,15 +138,15 @@ contract LSP9VaultCore is ERC725XCore, ERC725YCore, ClaimOwnership, ILSP1Univers
|
|
|
127
138
|
*
|
|
128
139
|
* Emits a {DataChanged} event.
|
|
129
140
|
*/
|
|
130
|
-
function setData(bytes32[] memory
|
|
141
|
+
function setData(bytes32[] memory dataKeys, bytes[] memory dataValues)
|
|
131
142
|
public
|
|
132
143
|
virtual
|
|
133
144
|
override
|
|
134
145
|
onlyAllowed
|
|
135
146
|
{
|
|
136
|
-
require(
|
|
137
|
-
for (uint256 i = 0; i <
|
|
138
|
-
_setData(
|
|
147
|
+
require(dataKeys.length == dataValues.length, "Keys length not equal to values length");
|
|
148
|
+
for (uint256 i = 0; i < dataKeys.length; i++) {
|
|
149
|
+
_setData(dataKeys[i], dataValues[i]);
|
|
139
150
|
}
|
|
140
151
|
}
|
|
141
152
|
|
|
@@ -144,20 +155,20 @@ contract LSP9VaultCore is ERC725XCore, ERC725YCore, ClaimOwnership, ILSP1Univers
|
|
|
144
155
|
/**
|
|
145
156
|
* @notice Triggers the UniversalReceiver event when this function gets executed successfully.
|
|
146
157
|
* @dev Forwards the call to the UniversalReceiverDelegate if set.
|
|
147
|
-
* @param
|
|
148
|
-
* @param
|
|
158
|
+
* @param typeId The type of call received.
|
|
159
|
+
* @param data The data received.
|
|
149
160
|
*/
|
|
150
|
-
function universalReceiver(bytes32
|
|
151
|
-
|
|
161
|
+
function universalReceiver(bytes32 typeId, bytes calldata data)
|
|
162
|
+
public
|
|
152
163
|
payable
|
|
153
164
|
virtual
|
|
154
165
|
override
|
|
155
166
|
returns (bytes memory returnValue)
|
|
156
167
|
{
|
|
157
|
-
bytes memory
|
|
168
|
+
bytes memory lsp1DelegateValue = _getData(_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY);
|
|
158
169
|
|
|
159
|
-
if (
|
|
160
|
-
address universalReceiverDelegate = address(bytes20(
|
|
170
|
+
if (lsp1DelegateValue.length >= 20) {
|
|
171
|
+
address universalReceiverDelegate = address(bytes20(lsp1DelegateValue));
|
|
161
172
|
|
|
162
173
|
if (
|
|
163
174
|
ERC165Checker.supportsERC165Interface(
|
|
@@ -166,10 +177,10 @@ contract LSP9VaultCore is ERC725XCore, ERC725YCore, ClaimOwnership, ILSP1Univers
|
|
|
166
177
|
)
|
|
167
178
|
) {
|
|
168
179
|
returnValue = ILSP1UniversalReceiverDelegate(universalReceiverDelegate)
|
|
169
|
-
.universalReceiverDelegate(msg.sender, msg.value,
|
|
180
|
+
.universalReceiverDelegate(msg.sender, msg.value, typeId, data);
|
|
170
181
|
}
|
|
171
182
|
}
|
|
172
|
-
emit UniversalReceiver(msg.sender, msg.value,
|
|
183
|
+
emit UniversalReceiver(msg.sender, msg.value, typeId, returnValue, data);
|
|
173
184
|
}
|
|
174
185
|
|
|
175
186
|
// internal functions
|
|
@@ -177,18 +188,18 @@ contract LSP9VaultCore is ERC725XCore, ERC725YCore, ClaimOwnership, ILSP1Univers
|
|
|
177
188
|
/**
|
|
178
189
|
* @dev Calls the universalReceiver function of the sender if supports LSP1 InterfaceId
|
|
179
190
|
*/
|
|
180
|
-
function _notifyVaultSender(address
|
|
181
|
-
if (ERC165Checker.supportsERC165Interface(
|
|
182
|
-
ILSP1UniversalReceiver(
|
|
191
|
+
function _notifyVaultSender(address sender) internal virtual {
|
|
192
|
+
if (ERC165Checker.supportsERC165Interface(sender, _INTERFACEID_LSP1)) {
|
|
193
|
+
ILSP1UniversalReceiver(sender).universalReceiver(_TYPEID_LSP9_VAULTSENDER, "");
|
|
183
194
|
}
|
|
184
195
|
}
|
|
185
196
|
|
|
186
197
|
/**
|
|
187
198
|
* @dev Calls the universalReceiver function of the recipient if supports LSP1 InterfaceId
|
|
188
199
|
*/
|
|
189
|
-
function _notifyVaultReceiver(address
|
|
190
|
-
if (ERC165Checker.supportsERC165Interface(
|
|
191
|
-
ILSP1UniversalReceiver(
|
|
200
|
+
function _notifyVaultReceiver(address receiver) internal virtual {
|
|
201
|
+
if (ERC165Checker.supportsERC165Interface(receiver, _INTERFACEID_LSP1)) {
|
|
202
|
+
ILSP1UniversalReceiver(receiver).universalReceiver(_TYPEID_LSP9_VAULTRECIPIENT, "");
|
|
192
203
|
}
|
|
193
204
|
}
|
|
194
205
|
}
|
|
@@ -10,11 +10,18 @@ import {LSP9VaultInitAbstract} from "./LSP9VaultInitAbstract.sol";
|
|
|
10
10
|
* @dev Could be owned by a UniversalProfile and able to register received asset with UniversalReceiverDelegateVault
|
|
11
11
|
*/
|
|
12
12
|
contract LSP9VaultInit is LSP9VaultInitAbstract {
|
|
13
|
+
/**
|
|
14
|
+
* @dev initialize (= lock) base implementation contract on deployment
|
|
15
|
+
*/
|
|
16
|
+
constructor() {
|
|
17
|
+
_disableInitializers();
|
|
18
|
+
}
|
|
19
|
+
|
|
13
20
|
/**
|
|
14
21
|
* @notice Sets the owner of the contract and sets the SupportedStandards:LSP9Vault key
|
|
15
|
-
* @param
|
|
22
|
+
* @param newOwner the owner of the contract
|
|
16
23
|
*/
|
|
17
|
-
function initialize(address
|
|
18
|
-
LSP9VaultInitAbstract._initialize(
|
|
24
|
+
function initialize(address newOwner) public virtual initializer {
|
|
25
|
+
LSP9VaultInitAbstract._initialize(newOwner);
|
|
19
26
|
}
|
|
20
27
|
}
|
|
@@ -11,7 +11,11 @@ import {LSP9VaultCore, ClaimOwnership} from "./LSP9VaultCore.sol";
|
|
|
11
11
|
|
|
12
12
|
// constants
|
|
13
13
|
import {_INTERFACEID_LSP1} from "../LSP1UniversalReceiver/LSP1Constants.sol";
|
|
14
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
_INTERFACEID_LSP9,
|
|
16
|
+
_LSP9_SUPPORTED_STANDARDS_KEY,
|
|
17
|
+
_LSP9_SUPPORTED_STANDARDS_VALUE
|
|
18
|
+
} from "../LSP9Vault/LSP9Constants.sol";
|
|
15
19
|
|
|
16
20
|
/**
|
|
17
21
|
* @title Inheritable Proxy Implementation of LSP9Vault built on top of ERC725, LSP1UniversalReceiver
|
|
@@ -19,12 +23,12 @@ import {_INTERFACEID_LSP9, _LSP9_SUPPORTED_STANDARDS_KEY, _LSP9_SUPPORTED_STANDA
|
|
|
19
23
|
* @dev Could be owned by a UniversalProfile and able to register received asset with UniversalReceiverDelegateVault
|
|
20
24
|
*/
|
|
21
25
|
abstract contract LSP9VaultInitAbstract is Initializable, LSP9VaultCore {
|
|
22
|
-
function _initialize(address
|
|
23
|
-
OwnableUnset._setOwner(
|
|
26
|
+
function _initialize(address newOwner) internal virtual onlyInitializing {
|
|
27
|
+
OwnableUnset._setOwner(newOwner);
|
|
24
28
|
|
|
25
29
|
// set key SupportedStandards:LSP9Vault
|
|
26
30
|
_setData(_LSP9_SUPPORTED_STANDARDS_KEY, _LSP9_SUPPORTED_STANDARDS_VALUE);
|
|
27
31
|
|
|
28
|
-
_notifyVaultReceiver(
|
|
32
|
+
_notifyVaultReceiver(newOwner);
|
|
29
33
|
}
|
|
30
34
|
}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
4
|
// interfaces
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
ILSP1UniversalReceiverDelegate
|
|
7
|
+
} from "../LSP1UniversalReceiver/ILSP1UniversalReceiverDelegate.sol";
|
|
6
8
|
|
|
7
9
|
// libraries
|
|
8
10
|
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
|