marketplace/contracts/INFTCollection.sol
2024-09-30 23:37:19 +03:00

16 lines
439 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface INFTCollection {
function mint() external;
function ownerOf(uint256 tokenId) external view returns (address);
}
// INFTMarketplace.sol
pragma solidity ^0.8.0;
interface INFTMarketplace {
function listNFT(address nftAddress, uint256 tokenId, uint256 price) external;
function buyNFT(address nftAddress, uint256 tokenId) external payable;
}