Skip to content

TreasureProject/treasure-marketplace-contracts

Repository files navigation

Treasure Marketplace

  • Selling NFTs for a fixed price by owner
  • Supports only listings with expiration date, no offers
  • Stores price history on-chain
  • Takes fee on sale @ 5%
  • Supports ERC721 and ERC1155

Build and test

Use Node version 14 or 16.

npm install
npm test # This performs tests and checks test coverage

Deployment

Check settings for fee, feeRecipient, newOwner, newProxyOwner and nftApprovedList in TreasureMarketplace.deploy.ts.

Run

npx hardhat deploy --network <network>

Confirm on-chain values in deployed contracts for fee, feeRecipient, newOwner, newProxyOwner and nftApprovedList.

Make sure that ownership of deployment wallet has been renounced.

Verifications for ZkSync

Verification for ZkSync is done by OZ hardhat-upgrades plugin, see the docs.

Contributing

Style guide

  • 120 hard limit line length
  • Function parameters start with an underscore (_)
  • NatSpec
    • Align whitespace for tags
    • Align whitespace for @params
    • @param (and state variable @dev) are sentence case without capitalization for the first letter
    • Events
      • @notice sentence case without a period like "XXX was update"
    • Functions
      • @notice sentence case without a period like "Finishes a sale"
      • @dev sentence case with a period at end
  • Follow Solidity Style Guide where it makes sense

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published