编译器
0.8.13+commit.abaa5c0e
文件 1 的 22:Context.sol
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
文件 2 的 22:Counters.sol
pragma solidity ^0.8.0;
library Counters {
struct Counter {
uint256 _value;
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}
文件 3 的 22:CurrencyPrice.sol
pragma solidity ^0.8.0;
struct CurrencyPrice {
uint248 value;
bool dynamicPricing;
address currency;
}
文件 4 的 22:ERC721.sol
pragma solidity >=0.8.0;
abstract contract ERC721 {
event Transfer(address indexed from, address indexed to, uint256 indexed id);
event Approval(address indexed owner, address indexed spender, uint256 indexed id);
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
string public name;
string public symbol;
function tokenURI(uint256 id) public view virtual returns (string memory);
mapping(address => uint256) public balanceOf;
mapping(uint256 => address) public ownerOf;
mapping(uint256 => address) public getApproved;
mapping(address => mapping(address => bool)) public isApprovedForAll;
constructor(string memory _name, string memory _symbol) {
name = _name;
symbol = _symbol;
}
function approve(address spender, uint256 id) public virtual {
address owner = ownerOf[id];
require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");
getApproved[id] = spender;
emit Approval(owner, spender, id);
}
function setApprovalForAll(address operator, bool approved) public virtual {
isApprovedForAll[msg.sender][operator] = approved;
emit ApprovalForAll(msg.sender, operator, approved);
}
function transferFrom(
address from,
address to,
uint256 id
) public virtual {
require(from == ownerOf[id], "WRONG_FROM");
require(to != address(0), "INVALID_RECIPIENT");
require(
msg.sender == from || msg.sender == getApproved[id] || isApprovedForAll[from][msg.sender],
"NOT_AUTHORIZED"
);
unchecked {
balanceOf[from]--;
balanceOf[to]++;
}
ownerOf[id] = to;
delete getApproved[id];
emit Transfer(from, to, id);
}
function safeTransferFrom(
address from,
address to,
uint256 id
) public virtual {
transferFrom(from, to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
function safeTransferFrom(
address from,
address to,
uint256 id,
bytes memory data
) public virtual {
transferFrom(from, to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
function supportsInterface(bytes4 interfaceId) public pure virtual returns (bool) {
return
interfaceId == 0x01ffc9a7 ||
interfaceId == 0x80ac58cd ||
interfaceId == 0x5b5e139f;
}
function _mint(address to, uint256 id) internal virtual {
require(to != address(0), "INVALID_RECIPIENT");
require(ownerOf[id] == address(0), "ALREADY_MINTED");
unchecked {
balanceOf[to]++;
}
ownerOf[id] = to;
emit Transfer(address(0), to, id);
}
function _burn(uint256 id) internal virtual {
address owner = ownerOf[id];
require(ownerOf[id] != address(0), "NOT_MINTED");
unchecked {
balanceOf[owner]--;
}
delete ownerOf[id];
delete getApproved[id];
emit Transfer(owner, address(0), id);
}
function _safeMint(address to, uint256 id) internal virtual {
_mint(to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
function _safeMint(
address to,
uint256 id,
bytes memory data
) internal virtual {
_mint(to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
}
interface ERC721TokenReceiver {
function onERC721Received(
address operator,
address from,
uint256 id,
bytes calldata data
) external returns (bytes4);
}
文件 5 的 22:Function.sol
pragma solidity ^0.8.0;
struct Function {
bytes data;
uint256 value;
address externalAddress;
bytes4 checkFunctionSignature;
bytes4 execFunctionSignature;
}
文件 6 的 22:IERC1155Upgradeable.sol
pragma solidity ^0.8.0;
import "../token/ERC1155/IERC1155Upgradeable.sol";
文件 7 的 22:IERC165Upgradeable.sol
pragma solidity ^0.8.0;
interface IERC165Upgradeable {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
文件 8 的 22:IERC20.sol
pragma solidity ^0.8.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
文件 9 的 22:IERC2981Upgradeable.sol
pragma solidity ^0.8.0;
import "../utils/introspection/IERC165Upgradeable.sol";
interface IERC2981Upgradeable is IERC165Upgradeable {
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
returns (address receiver, uint256 royaltyAmount);
}
文件 10 的 22:IOwnable.sol
pragma solidity ^0.8.0;
interface IOwnable {
function owner() external view returns (address);
function transferOwnership(address newOwner) external;
function renounceOwnership() external;
}
文件 11 的 22:IProductsModule.sol
pragma solidity ^0.8.0;
import "../structs/Function.sol";
import "../structs/ProductParams.sol";
import "../structs/PurchaseParams.sol";
interface IProductsModule {
function addProduct(
uint256 slicerId,
ProductParams memory params,
Function memory externalCall_
) external;
function setProductInfo(
uint256 slicerId,
uint32 productId,
uint8 newMaxUnits,
bool isFree,
bool isInfinite,
uint32 newUnits,
CurrencyPrice[] memory currencyPrices
) external;
function removeProduct(uint256 slicerId, uint32 productId) external;
function payProducts(address buyer, PurchaseParams[] calldata purchases) external payable;
function releaseEthToSlicer(uint256 slicerId) external;
function ethBalance(uint256 slicerId) external view returns (uint256);
function productPrice(
uint256 slicerId,
uint32 productId,
address currency
) external view returns (uint256 ethPayment, uint256 currencyPayment);
function validatePurchaseUnits(
address account,
uint256 slicerId,
uint32 productId
) external view returns (uint256 purchases);
function validatePurchase(uint256 slicerId, uint32 productId)
external
view
returns (uint256 purchases, bytes memory purchaseData);
}
文件 12 的 22:ISliceCore.sol
pragma solidity ^0.8.0;
import "../structs/Payee.sol";
import "./utils/IOwnable.sol";
import "@openzeppelin/contracts-upgradeable/interfaces/IERC1155Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/interfaces/IERC2981Upgradeable.sol";
interface ISliceCore is IOwnable, IERC1155Upgradeable, IERC2981Upgradeable {
function slice(
Payee[] calldata payees,
uint256 minimumShares,
address[] calldata currencies,
uint256 releaseTimelock,
uint40 transferableTimelock,
bool isImmutable,
bool isControlled
) external;
function reslice(
uint256 tokenId,
address payable[] calldata accounts,
int32[] calldata tokensDiffs
) external;
function safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes memory data
) external override;
function safeBatchTransferFrom(
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) external override;
function slicerBatchTransfer(
address from,
address[] memory recipients,
uint256 id,
uint256[] memory amounts,
bool release
) external;
function safeTransferFromUnreleased(
address from,
address to,
uint256 id,
uint256 amount,
bytes memory data
) external;
function setController(uint256 id, address newController) external;
function setRoyalty(
uint256 tokenId,
bool isSlicer,
bool isActive,
uint256 royaltyPercentage
) external;
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
override
returns (address receiver, uint256 royaltyAmount);
function slicers(uint256 id) external view returns (address);
function controller(uint256 id) external view returns (address);
function totalSupply(uint256 id) external view returns (uint256);
function supply() external view returns (uint256);
function exists(uint256 id) external view returns (bool);
function _setBasePath(string calldata basePath_) external;
function _togglePause() external;
}
文件 13 的 22:ISlicerPurchasable.sol
pragma solidity ^0.8.0;
interface ISlicerPurchasable {
function isPurchaseAllowed(
uint256 slicerId,
uint256 productId,
address account,
uint256 quantity,
bytes memory slicerCustomData,
bytes memory buyerCustomData
) external view returns (bool);
function onProductPurchase(bytes memory data) external payable;
}
文件 14 的 22:MerkleProof.sol
pragma solidity ^0.8.0;
library MerkleProof {
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
computedHash = _efficientHash(computedHash, proofElement);
} else {
computedHash = _efficientHash(proofElement, computedHash);
}
}
return computedHash;
}
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}
文件 15 的 22:Ownable.sol
pragma solidity ^0.8.0;
import "../utils/Context.sol";
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
function owner() public view virtual returns (address) {
return _owner;
}
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
文件 16 的 22:Payee.sol
pragma solidity ^0.8.0;
struct Payee {
address account;
uint32 shares;
}
文件 17 的 22:ProductParams.sol
pragma solidity ^0.8.0;
import "./SubSlicerProduct.sol";
import "./CurrencyPrice.sol";
struct ProductParams {
SubSlicerProduct[] subSlicerProducts;
CurrencyPrice[] currencyPrices;
bytes data;
bytes purchaseData;
uint32 availableUnits;
uint8 maxUnitsPerBuyer;
bool isFree;
bool isInfinite;
}
文件 18 的 22:PurchaseParams.sol
pragma solidity ^0.8.0;
struct PurchaseParams {
uint128 slicerId;
uint32 quantity;
address currency;
uint32 productId;
bytes buyerCustomData;
}
文件 19 的 22:SliceV1Drop.sol
pragma solidity ^0.8.0;
import "./extensions/Purchasable/SlicerPurchasable.sol";
import "@rari-capital/solmate/src/tokens/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "./utils/sliceV1/interfaces/IProductsModule.sol";
import "./utils/sliceV1/interfaces/ISliceCore.sol";
contract SliceGenesis is ERC721, SlicerPurchasable, Ownable {
error Invalid();
error MaxSupply();
using Counters for Counters.Counter;
using Strings for uint256;
Counters.Counter private _tokenIds;
uint16 private constant MAX_SUPPLY = 4200;
address private _slicerAddress;
address private _slxAddress;
string private _tempURI;
string private _baseURI;
IERC20 private immutable _slx;
mapping(uint256 => bytes32) _merkleRoots;
constructor(
string memory name_,
string memory symbol_,
address slxAddress_,
address sliceCoreAddress_,
address productsModuleAddress_,
uint256 slicerId_
) ERC721(name_, symbol_) SlicerPurchasable(productsModuleAddress_, slicerId_) {
_slx = IERC20(slxAddress_);
_slicerAddress = ISliceCore(sliceCoreAddress_).slicers(slicerId_);
}
function isPurchaseAllowed(
uint256 slicerId,
uint256 productId,
address account,
uint256 quantity,
bytes memory,
bytes memory buyerCustomData
) public view override returns (bool isAllowed) {
if (productId != 2) {
if (_merkleRoots[productId] != bytes32(0)) {
bytes32[] memory proof = abi.decode(buyerCustomData, (bytes32[]));
bytes32 leaf = keccak256(abi.encodePacked(account));
isAllowed = MerkleProof.verify(proof, _merkleRoots[productId], leaf);
} else {
isAllowed = true;
}
} else {
uint256 purchasedUnits = IProductsModule(_productsModuleAddress).validatePurchaseUnits(
account,
slicerId,
uint32(productId)
);
uint256 totalQuantity = msg.sender == _productsModuleAddress
? purchasedUnits
: quantity + purchasedUnits;
isAllowed = _slx.balanceOf(account) >= totalQuantity * 25 * 10**21;
}
}
function onProductPurchase(bytes memory data) external payable override {
(
uint256 slicerId,
uint256 productId,
address account,
uint256 quantity,
bytes memory slicerCustomData,
bytes memory buyerCustomData
) = abi.decode(data, (uint256, uint256, address, uint256, bytes, bytes));
if (_tokenIds.current() + quantity > MAX_SUPPLY) revert MaxSupply();
onlyOnPurchaseFromSlicer(slicerId);
if (
!isPurchaseAllowed(
slicerId,
productId,
account,
quantity,
slicerCustomData,
buyerCustomData
)
) revert NotAllowed();
for (uint256 i = 0; i < quantity; ) {
_tokenIds.increment();
_safeMint(account, _tokenIds.current());
unchecked {
++i;
}
}
}
function tokenURI(uint256 tokenId) public view override returns (string memory) {
if (tokenId > _tokenIds.current()) revert Invalid();
return
bytes(_baseURI).length > 0
? string(abi.encodePacked(_baseURI, tokenId.toString()))
: _tempURI;
}
function totalSupply() external view returns (uint256) {
return _tokenIds.current();
}
function royaltyInfo(uint256, uint256 salePrice) external view returns (address, uint256) {
return (_slicerAddress, salePrice / 10);
}
function _setBaseURI(string memory baseURI_) external onlyOwner {
_baseURI = baseURI_;
}
function _setTempURI(string memory tempURI_) external onlyOwner {
_tempURI = tempURI_;
}
function _setMerkleRoot(uint256 productId, bytes32 merkleRoot) external onlyOwner {
_merkleRoots[productId] = merkleRoot;
}
}
文件 20 的 22:SlicerPurchasable.sol
pragma solidity ^0.8.0;
import "../../interfaces/extensions/Purchasable/ISlicerPurchasable.sol";
abstract contract SlicerPurchasable is ISlicerPurchasable {
error WrongSlicer();
error NotPurchase();
error NotAllowed();
error NotSuccessful();
address internal _productsModuleAddress;
uint256 internal immutable _slicerId;
constructor(address productsModuleAddress_, uint256 slicerId_) {
_productsModuleAddress = productsModuleAddress_;
_slicerId = slicerId_;
}
modifier onlyOnPurchase(uint256 slicerId) {
onlyOnPurchaseFromSlicer(slicerId);
_;
}
function onlyOnPurchaseFromSlicer(uint256 slicerId) internal view virtual {
if (_slicerId != slicerId) revert WrongSlicer();
if (msg.sender != _productsModuleAddress) revert NotPurchase();
}
function isPurchaseAllowed(
uint256,
uint256,
address,
uint256,
bytes memory,
bytes memory
) public view virtual override returns (bool) {
return true;
}
function onProductPurchase(bytes memory data) external payable virtual override {
(
uint256 slicerId,
uint256 productId,
address account,
uint256 quantity,
bytes memory slicerCustomData,
bytes memory buyerCustomData
) = abi.decode(data, (uint256, uint256, address, uint256, bytes, bytes));
onlyOnPurchaseFromSlicer(slicerId);
if (
!isPurchaseAllowed(
slicerId,
productId,
account,
quantity,
slicerCustomData,
buyerCustomData
)
) revert NotAllowed();
}
}
文件 21 的 22:Strings.sol
pragma solidity ^0.8.0;
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
function toString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
文件 22 的 22:SubSlicerProduct.sol
pragma solidity ^0.8.0;
struct SubSlicerProduct {
uint128 subSlicerId;
uint32 subProductId;
}
{
"compilationTarget": {
"contracts/SliceV1Drop.sol": "SliceGenesis"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"slxAddress_","type":"address"},{"internalType":"address","name":"sliceCoreAddress_","type":"address"},{"internalType":"address","name":"productsModuleAddress_","type":"address"},{"internalType":"uint256","name":"slicerId_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Invalid","type":"error"},{"inputs":[],"name":"MaxSupply","type":"error"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[],"name":"NotPurchase","type":"error"},{"inputs":[],"name":"NotSuccessful","type":"error"},{"inputs":[],"name":"WrongSlicer","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"_setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"productId","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"_setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tempURI_","type":"string"}],"name":"_setTempURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"slicerId","type":"uint256"},{"internalType":"uint256","name":"productId","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"bytes","name":"buyerCustomData","type":"bytes"}],"name":"isPurchaseAllowed","outputs":[{"internalType":"bool","name":"isAllowed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onProductPurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]