735546619e
Signed-off-by: T-Hax <>
36 lines
975 B
Solidity
36 lines
975 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.6.0;
|
|
|
|
import "../token/ERC1155/ERC1155.sol";
|
|
|
|
/**
|
|
* @title ERC1155Mock
|
|
* This mock just publicizes internal functions for testing purposes
|
|
*/
|
|
contract ERC1155Mock is ERC1155 {
|
|
constructor (string memory uri) public ERC1155(uri) {
|
|
// solhint-disable-previous-line no-empty-blocks
|
|
}
|
|
|
|
function setURI(string memory newuri) public {
|
|
_setURI(newuri);
|
|
}
|
|
|
|
function mint(address to, uint256 id, uint256 value, bytes memory data) public {
|
|
_mint(to, id, value, data);
|
|
}
|
|
|
|
function mintBatch(address to, uint256[] memory ids, uint256[] memory values, bytes memory data) public {
|
|
_mintBatch(to, ids, values, data);
|
|
}
|
|
|
|
function burn(address owner, uint256 id, uint256 value) public {
|
|
_burn(owner, id, value);
|
|
}
|
|
|
|
function burnBatch(address owner, uint256[] memory ids, uint256[] memory values) public {
|
|
_burnBatch(owner, ids, values);
|
|
}
|
|
}
|