1 Of 1 auction setting up

Steps:

1. contracts deploy
2. setting up auction
3. bidding
4. concluding auction

Contracts deploy

Within remix set up two contracts:
  1. finance.vote/contracts/contracts/auction/NFTAuctionFactory.sol

    • compile

    • deploy with settings:

      • Envirnoment: Injected Provider - Metamask on Rinkeby

      • Deploy/MGMT: your wallet addres

      • Deploy/CANCELTIMER: i.e. 1000

        set up NFTAF

    • hit ‘Transact’ button and confirm transaction via Metamask

    • open tx hash transaction and copy contract address and block number

  2. finance.vote/identity-contracts/contracts/VoterID.sol

    • compile

    • deploy with settings:

      • Envirnoment: Injected Provider - Metamask on Rinkeby

      • Deploy/OONER: your wallet address

      • Deploy/MINTER: your wallet address

      • Deploy/NOMEN: custom name

      • Deploy/SYMBOWL: custom symbol name

        set up VoterID

    • hit ‘Transact’ button and confirm transaction via Metamask

  3. In the ./factory-dao-mint/src/contracts/NFTAuctionFactory.json file change lines:

    • 386 with deployed NFTAuctionFactory contract address

    • 387 with deployed NFTAuctionFactory contract block number

      visual

Set up auction

  1. Load both contracts into the remix

    remix

  2. In the VoterID fill in createIdentityFor field:

    • thisOwner - NFTAuctionFactory contract address

    • thisToken - token number, for example 1

    • uri - token ipfs uri, for example QmeuiVjTsNz4etbXN6CpWNDhTgyMEWCxijZCmSFAEfPbi3

      create identity for

  3. 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)

      add auction

  4. In the NFTAuctionFactory hit startAuction

Bidding

Go to the localhost:3000/oneofone and place a bid.
If everything was set up correctly, you should be able to see your NFT on the main page.

Check box and hit ‘place bid’ button.

Accept transaction in Metamask.

After time set in the NFTAuctionFactory contract the auction will end:
(time of auction running = _numSamplesBeforeSale * _secondsPerSample)

bid

Concluding auction

In NFTAuctionFactory contract hit concludeAuction then withdrawNFT.

withdrawNFT

Auction is finished, you shouldn’t be able to place a bid anymore.