1 Of 1 auction setting up
Steps:
1. contracts deploy
2. setting up auction
3. bidding
4. concluding auction
Contracts deploy
finance.vote/contracts/contracts/auction/NFTAuctionFactory.sol
finance.vote/identity-contracts/contracts/VoterID.sol
In the ./factory-dao-mint/src/contracts/NFTAuctionFactory.json file change lines:
Set up auction
Load both contracts into the remix
In the VoterID fill in createIdentityFor field:
In the NFTAuctionFactory in addAuction fill in those fields:
_numSamplesBeforeSale - for test purposes put here number < 10
_secondsPerSample - recommended 60
_startingPrice - set in Wei, for example 100000000000000
_beneficiary1Pct - recommended 5
_startDelay - recommended 0
_metadata - 0x0000000000000000000000000000000000000000000000000000000000000000
_beneficiary1 - your wallet address
_beneficiary2 - 0x0000000000000000000000000000000000000000
_nftContract - VoterID contract addess
_tokenForSale - number of token that will be selled in the auction, for example 1 (same as thisToken in the previous step)
In the NFTAuctionFactory hit startAuction
Bidding
_numSamplesBeforeSale
* _secondsPerSample
)Concluding auction
concludeAuction
then withdrawNFT
.