-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathLSP7DigitalStickers.sol
41 lines (39 loc) · 1.2 KB
/
LSP7DigitalStickers.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import {
LSP7DigitalAsset
} from "@lukso/lsp-smart-contracts/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol";
import {
LSP7Burnable
} from "@lukso/lsp-smart-contracts/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol";
import {
_LSP4_TOKEN_TYPE_NFT
} from "@lukso/lsp-smart-contracts/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol";
contract LSP7DigitalStickers is LSP7DigitalAsset, LSP7Burnable {
constructor(
string memory stickerName,
string memory stickerSymbol,
address contractOwner,
uint256 totalNumberOfStickersInCirculation
)
LSP7DigitalAsset(
stickerName,
stickerSymbol,
contractOwner,
_LSP4_TOKEN_TYPE_NFT,
true
)
{
// mint the total number of stickers that the LSP8 Collection owns
_mint({
to: msg.sender,
amount: totalNumberOfStickersInCirculation,
force: true,
data: abi.encodePacked(
"creating ",
totalNumberOfStickersInCirculation,
" new stickers for this collection!"
)
});
}
}