-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathERC721oMock.sol
62 lines (48 loc) · 1.49 KB
/
ERC721oMock.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import '../ERC721o.sol';
contract ERC721oMock is ERC721o {
constructor(string memory name_, string memory symbol_) ERC721o(name_, symbol_) {}
function numberMinted(address owner) public view returns (uint256) {
return _numberMinted(owner);
}
function totalMinted() public view returns (uint256) {
return _totalMinted();
}
function getAux(address owner) public view returns (uint64) {
return _getAux(owner);
}
function setAux(address owner, uint64 aux) public {
_setAux(owner, aux);
}
function createCategory(uint256 maxSupply) public {
_createCategory(maxSupply);
}
function baseURI() public view returns (string memory) {
return _baseURI();
}
function exists(uint256 tokenId) public view returns (bool) {
return _exists(tokenId);
}
function safeMint(address to, uint256 quantity, uint256 categoryId) public {
_safeMint(to, quantity, categoryId);
}
function safeMint(
address to,
uint256 quantity,
uint256 categoryId,
bytes memory _data
) public {
_safeMint(to, quantity, categoryId, _data);
}
function mint(
address to,
uint256 quantity,
uint256 categoryId
) public {
_mint(to, quantity, categoryId, '', false);
}
function burn(uint256 tokenId, bool approvalCheck) public {
_burn(tokenId, approvalCheck);
}
}