jermay / crypto-kitties Goto Github PK
View Code? Open in Web Editor NEWA Crypto Kitties clone. For fun... and maybe food for the Crypto Zombies tutorial! Mwuahahah!
A Crypto Kitties clone. For fun... and maybe food for the Crypto Zombies tutorial! Mwuahahah!
Refactor the kitty rendering to use inline styles instead of styled components
If the user rejects the breed transaction in Metamask the "Given them some privacy" button no longer functions properly
Fix all the ESLint errors
UI: Add the gen zero counter
/factory
route so that only the owner
account can load the page.A global notification of the current request status would be good. There is currently some support for this in the various redux slices. This notification will be particularly important on the test net as block time times are much longer.
Implement breeding
Create the marketplace contract to manage buying/selling of kitties.
Add Redux for state management
The random kitty colors are rather horrible. The 99 colors should be refactored so they're quantized color gradients.
Implement the approval and operator approval methods of the ERC721 spec
Implement breeding cooldowns similar to the official mechanics here:
https://guide.cryptokitties.co/guide/cat-features/cooldown-speed
Because there is only 1 cat on market ... Can't breed or buy.
The following error occurs when changing the :
"Pattern Color": From "Pin Stripes" => anything,
Warning: Removing a style property during rerender (background) when a conflicting property is set (backgroundColor) can lead
to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the
shorthand with separate values.
in div (at CatPartComp.jsx:21)
in CatPartComp (at CatPartComp.jsx:17)
"Eye Shape": from "Down", "Right", "Left" => anything
Warning: Removing a style property during rerender (borderTop) when a conflicting property is set (border) can lead to
styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the
shorthand with separate values.
When multiple transactions are pending at the same time:
There is currently no way to remove the sire from the "dad kitty" if the user decides not to breed a kitty with the sire.
1.Click "Buy" button on a Sire Offer from the Marketplace (user redirected to Breed page)
2. There is no way to un-select the sire as "dad kitty"
Create the frontend UI for breeding.
Breeding Page
Error messages should be displayed. Either somewhere globally, or in the individual components.
Use a random number to choose which parent each cattribute comes from
Provider not set or invalid when Metamask not installed
Transaction Status:
Provider not set or invalid
Console error:
TypeError: Cannot read property 'on' of undefined
at walletSaga.js:236
index.js:1 wallet error: Error: Provider not set or invalid
at Object.InvalidProvider (errors.js:39)
at RequestManager.push../node_modules/web3-core-requestmanager/lib/index.js.RequestManager.send (index.js:133)
at sendRequest (index.js:609)
at Eth.send [as getChainId] (index.js:636)
at WalletService.getNetwork (walletService.js:4)
When the user locks their wallet the app should reset to it's initial state i.e:
Add a test for createKittyGen0() that tests only the owner can create gen 0 kitties.
When browsing kitties in the list with next/prev, sometimes the cattributes are not reset between kitties resulting in artifacts from previous kitties.
Help.
when i breed/generate new cat sometimes gaves me this error
TypeError: Cannot read property 'color' of undefined
ColorCattribute.getCssColor
src/components/js/ColorCattribute.js:27
24 |
25 | // returns the hex color value
26 | getCssColor() {
27 | return colorObj[this.value].color;
| ^ 28 | }
29 |
30 | get valueName() {
Add a new permission for creating generation zero kitties
When a new gen 0 kitty is created the gen zero count is not updated for other users.
Sire and sell offers are mixed up in the breed page
If the user selects a new network before pressing the "connect" button all the refresh code is executed without the user permission.
Create the front end marketplace UI
KittyMarketPlace
I have 1 cat in one account and when I try to breed with siring cat I got this message
sender not kitty owner OR approved
transaction is
here
Implement the siring feature where a kitty can be offered for breeding in the marketplace so someone else can create a new kitty with them.
Contract
Frontend
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.