Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

True Dutch Auction solidity smart contract

License

NotificationsYou must be signed in to change notification settings

AlmostFancy/true-dutch

Repository files navigation

License: ISCNPM

Installation

Forge:

forge install almostfancy/true-dutch

Hardhat or Truffle:

npm install -D @almost-fancy/true-dutch

Usage

To get started, you can use the library as follows:

pragma solidity^0.8.4;import { TrueDutchAuction }from"@almost-fancy/true-dutch/src/TrueDutchAuction.sol";contractAlmostFancyisTrueDutchAuction,ERC721A {constructor(address payable_beneficiary)ERC721A("AlmostFancy","AF")TrueDutchAuction(DutchAuctionConfig({        saleStartTime: dutchSaleTime,        startPriceWei:0.99 ether,        endPriceWei:0.09 ether,        duration:9 hours,        dropInterval:15 minutes,        maxBidsPerAddress:0,        available:1111,        maxPerTx:3      }),      _beneficiary    )  {}function placeBid(uint256quantity)externalpayable {_placeAuctionBid(msg.sender, quantity);  }function _handleBidPlaced(addresswhom,uint256quantity,uint256priceToPay  )internaloverride {uint256 cost= priceToPay* quantity;_safeMint(whom, quantity);// call ERC721A#_safeMint to actually get the asset to the caller  }}

License

Distributed under the ISC License. SeeLICENSE.txt for more information.

About

True Dutch Auction solidity smart contract

Topics

Resources

License

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp