Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
52 lines
1.0 KiB
Solidity
52 lines
1.0 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.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) ERC1155(uri) {}
|
|
|
|
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);
|
|
}
|
|
}
|