Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 1.95 KB

BeastQuest_Contract_Specs.md

File metadata and controls

48 lines (28 loc) · 1.95 KB

BeastQuest Contract Specs

NFT Sales Contract

  • A limited time sales with different price for different SKUs.
  • All sales will be made using Harmony One Token.
  • TokenId will be generate before the sales.
  • An list of tokenId will be created as tokenSupply for a SKU and will be maintain by the contract
  • Token will be minted in the order of the list
  • An index will be maintain what should be the next token for the next sale

All the previous items is already supported by FixSupplyLotSales, the items below are what need to be changed:

NFT Sales Contract

Removing KyberNetworkSupport

  • KyberAdapter(kyberProxy) and kyberProxy in constrcutor needs to be remove
  • update getPrice function to return price in "ONE".
  • update _purchaseForPayment function removing all token swap with kyber network

Hacking up hardcoded fungible support

  • update _purchaseForDelivery ignore DeliverPurchaseVars.values[index] support.
  • add ERC721 mint call in _purchaseForDelivery that it delivers the token to user with the ERC-721 contract on purchase.
  • During migration the fungibleTokenId need to have an value, suggest to have anything more than zero.
  • 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee will be used for the tokenAddress in purchaseFor to represent user using "One" for the medium of purchase, which is equivalent of ETH on ethereum.

ERC-721 Token Contract