everger.blogg.se

Free download kitties crypto
Free download kitties crypto









Implement IERC721 functions: approve, setApprovalForAll, getApproved, and isApprovedForAll.Download the new IERC721 interface from this page (on the right), and replace the IERC721.sol in your project with this new interface.Should display a message notifying the user of the Birth event and display the new kitten.Īssignment Week 9 Day 1: ERC712 Fullfilment - Approval.Should not be able to select the same kitty for both the mom and dad.

free download kitties crypto

  • Navigation bar link to the new breed page.
  • Determine the generation of the new kitten.
  • Use the _mixDna() function to get the DNA of the new kitten.
  • This should REVERT if the sender does not own the mom or dad kitties.
  • Backend contract: Write a breed() function:.
  • That DNA pair will now be completely random, independent from any parent. Then generate a new, 2 digit, random number and set it as that pair. Take the random number we calculated in the previous video, and use it to select one of the pairs that will get an extra randomness treatment. For those of you that built the advanced algorithm: I mentioned in the last video that you can implement even more randomness to spice things up even more. Get creative and see if you can find some other way of mixing the DNA's instead of just combining the two halves.

    free download kitties crypto

    For those of you that have kept the simple algorithm: Add one more level of mixing into your algorithm. After you made these modifications, please hand in your code for today in Google Classroom in the assignment Day 3 Hand in. Regardless if you have the simple or advanced DNA/Gene algorithm, I want you to make some modifications. sol file and add it to your project.Īssignment Week 9 Day 3: Implement More Randomness

  • Download the interface IKittyMarketPlace'.sol (from the download section on the right).
  • Allow user to remove from sale any of his unsold cats (that are listed in the marketplace).Īssignement Week 9 Day 4: Implement a backend Kitty Marketplace Contract.
  • Allow user to purchase cats from the marketplace.
  • free download kitties crypto

  • Allow a user to put up for sale (his own) cat(s), which will be shown in the marketplace.
  • Create a marketplace page that shows all cats for sale.
  • Assignement Week 9 Day 5: Marketplace Frontend Assignment











    Free download kitties crypto