This repository is archived and should NOT be used.
kcolbchain/contractsis a 2021 fork of create-protocol's NFT-marketplace demo (contracts/NFT.sol+contracts/Marketplace.sol, an old Hardhat toolchain, branchV0). It has not been touched in years.
- Not maintained — no updates, no fixes, no support.
- Not audited — dependencies and Solidity are stale; do not deploy.
- Superseded — the live contract work has moved to ERC721-AI and the current kcolbchain orgs/repos. Use those instead.
This repo is kept only for historical reference. See
DEPRECATED.mdfor details.
The content below is preserved as-is from the original 2021 project for reference only. None of it is supported or recommended.
This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts.
Try running some of the following tasks:
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat helpgetListingPrice() public view returns (uint256)
createMarketItem(
address nftContract,
uint256 tokenId,
uint256 price
) public payable nonReentrant
createMarketSale(address nftContract, uint256 itemId)
public
payable
nonReentrant
fetchMarketItems() public view returns (MarketItem[] memory)
fetchMyNFTs() public view returns (MarketItem[] memory)
fetchItemsCreated() public view returns (MarketItem[] memory)