thepeanutgalleryandco/create-and-mint-nft-collection

[FEATURE] Opensea Polygon Script To Auto Sell NFTs Additional Fields

thepeanutgalleryandco opened this issue · 1 comments

Summary

Allow users to choose a timeframe (days or months) from the date picker drop down and also allow users to specify the starting time and ending time.

Basic example

When the automation script gets to the selling of a NFT, then populate the date picker with the values in the script file instead of only making use of the default timeframe.

Motivation

Allow users to change the timeframe of how long the NFTs will be on sale for.

There's a few new configurations that needs to be put in place for this automation script to work, so please update accordingly before running the npm run sell_nfts command.

Implement initial configurations from Feature - Opensea Polygon Script To Auto Sell NFTs

Update the script's additional fields in utils/opensea/sell_nfts.js:

  • DROPDOWN_OPTION- Set the dropdown option to setup the date picker. Leave at 0 to keep the default sell timeframe. Do not add more options than what there is in the Opensea list. Do not count the default item in the list.
  • DATE_PICK_SKIP - Set the tabs between the date picker drop down and the time. This value should be set between 6, 7 and 8. Please check the comment where this variable is used for more information.
  • START_HOUR - Set the start hour for the sale.
  • START_MINUTE - Set the start minute for the sale.
  • END_HOUR - Set the end hour for the sale.
  • END_MINUTE - Set the end minute for the sale.