{"id":20992230,"url":"https://github.com/almostfancy/true-dutch","last_synced_at":"2025-05-14T20:32:37.366Z","repository":{"id":57681333,"uuid":"492924929","full_name":"AlmostFancy/true-dutch","owner":"AlmostFancy","description":"True Dutch Auction solidity smart contract","archived":false,"fork":false,"pushed_at":"2023-04-17T14:43:03.000Z","size":351,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-18T15:47:42.807Z","etag":null,"topics":["ethereum","foundry","smart-contracts","solidity","solmate"],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlmostFancy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-16T16:57:36.000Z","updated_at":"2024-03-01T00:22:13.000Z","dependencies_parsed_at":"2022-09-15T06:11:53.600Z","dependency_job_id":null,"html_url":"https://github.com/AlmostFancy/true-dutch","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlmostFancy%2Ftrue-dutch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlmostFancy%2Ftrue-dutch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlmostFancy%2Ftrue-dutch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlmostFancy%2Ftrue-dutch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlmostFancy","download_url":"https://codeload.github.com/AlmostFancy/true-dutch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225310090,"owners_count":17454089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ethereum","foundry","smart-contracts","solidity","solmate"],"created_at":"2024-11-19T07:10:03.807Z","updated_at":"2024-11-19T07:10:04.563Z","avatar_url":"https://github.com/AlmostFancy.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](https://github.com/AlmostFancy/true-dutch/blob/master/LICENSE.txt)\n[![NPM](https://img.shields.io/npm/v/@almost-fancy/true-dutch)](https://www.npmjs.com/package/@almost-fancy/true-dutch)\n\n## Installation\n\nForge:\n\n```sh\nforge install almostfancy/true-dutch\n```\n\nHardhat or Truffle:\n\n```sh\nnpm install -D @almost-fancy/true-dutch\n```\n\n## Usage\n\nTo get started, you can use the library as follows:\n\n```solidity\npragma solidity ^0.8.4;\n\nimport { TrueDutchAuction } from \"@almost-fancy/true-dutch/src/TrueDutchAuction.sol\";\n\ncontract AlmostFancy is TrueDutchAuction, ERC721A {\n  constructor(address payable _beneficiary)\n    ERC721A(\"AlmostFancy\", \"AF\")\n    TrueDutchAuction(\n      DutchAuctionConfig({\n        saleStartTime: dutchSaleTime,\n        startPriceWei: 0.99 ether,\n        endPriceWei: 0.09 ether,\n        duration: 9 hours,\n        dropInterval: 15 minutes,\n        maxBidsPerAddress: 0,\n        available: 1111,\n        maxPerTx: 3\n      }),\n      _beneficiary\n    )\n  {}\n\n  function placeBid(uint256 quantity) external payable {\n    _placeAuctionBid(msg.sender, quantity);\n  }\n\n  function _handleBidPlaced(\n    address whom,\n    uint256 quantity,\n    uint256 priceToPay\n  ) internal override {\n    uint256 cost = priceToPay * quantity;\n    _safeMint(whom, quantity); // call ERC721A#_safeMint to actually get the asset to the caller\n  }\n}\n\n```\n\n## License\n\nDistributed under the ISC License. See `LICENSE.txt` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmostfancy%2Ftrue-dutch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmostfancy%2Ftrue-dutch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmostfancy%2Ftrue-dutch/lists"}