r/MoonCatRescue • u/MidnightLightning • Mar 12 '21
Ask a developer:
Well, this project has finally gotten some recognition; huzzah! I'm a developer and I created several posts a few years ago about the MoonCat system, which Reddit has now locked down from having further comments added. So, I thought I'd put for this new post, in case there were further questions on my old posts:
If you have technical questions about MoonCats, feel free to ask and I'll do my best to answer! I'm not an original developer on the team that created MoonCats, but with their source code being open source, and the nature of Blockchain technology being what it is, I've been able to learn a lot about how the original creators set up the system.
1
u/mrmin12 Mar 12 '21
Thanks for taking your time off and help us. Welcome back!
I claimed a few cats via the website. I can now see the cats in my wallet but not on etherscan. What should I do, is everything all right?
1
u/MidnightLightning Mar 12 '21
If you know the cat ID (or the transaction ID used to claim the cat), then you should be able to query the contract on Etherscan directly, using the
getCatDetailsmethod to verify you own the cat. Etherscan's UI of how many tokens a given address has appears to be cached, so might take a bit to update the overall count for your address.If you don't have either of those IDs, if you let me know your Metamask wallet address, I can help look that up for you.
1
u/mrmin12 Mar 12 '21
Thank you so much, everything checks out!
Also I'm curious where do you see the future of the cats since the hype only started today? Marketplace openings, crazy prices, sorting by some sort of rarity etc.
Do you think things will start to move now?
1
u/MidnightLightning Mar 12 '21
I would love to see a Cat DAO formed! The beauty of all things on Ethereum is that they can act as building blocks for future projects to build upon. Now that MoonCats have hit the awareness of the community, they could become visuals inside CryptoVoxels, they could become T-shirt patterns for Decentraland characters to wear, etc. They're permanent on the blockchain, so even if this surge now doesn't lead to anything additional, some other surge could happen in another three years and create something totally new and give MoonCat owners additional rewards for holding on.
1
u/geraldbauer Mar 12 '21
Do you know how many cat designs (pattern) variants are there hard-coded in the image generation source?
1
u/MidnightLightning Mar 12 '21
There's four different fur patterns, and four different mouth poses, which you can see the 16 permutations of in the first 16 horizontal rows of this image: https://imgur.com/4fWQs2s
Cats can have "inverted" colors, so that's 32 different appearance possibilities. There's then four different poses possible to make the 256 possibilities in that image.
1
u/geraldbauer Mar 12 '21
Thanks for the great explanation and your great composite image. I will try to let it sink in and see if I can understand. Thanks again!
1
u/geraldbauer Mar 12 '21
About colors - do you know how many (different) colors does a cat have? Is it always five (?) or such? Do you know if one of the colors is a background color (e.g. the first or such)?
1
u/MidnightLightning Mar 12 '21
A cat's ID is always 5 bytes long. The first byte is whether it's a Genesis cat or not. The second byte controls pose and pattern for the cat, and the final three bytes are the red, green, and blue color channels for defining the cat's color. However when rendered a cat will always appear as the fully-saturated version of that color (rendering code takes the RGB values and converts them to a "hue" and then fully-saturates it), not the literal RGB values.
1
u/geraldbauer Mar 12 '21
Thanks for the great helpful explanation. The derive colore palette code without commentary looks a little bit like magic for a newbie - thanks for helping in the understanding. Thanks again!
1
u/MidnightLightning Mar 12 '21
Yeah, the color math takes some wrapping your head around; it's moving from "RGB" space, which represents colors as how much Red, Green, and Blue pigment they have (therefore three "sliders" that go from zero to 255), and is sometimes visualized as a cube, and converts it to "HSL" space, which represents colors by which Hue they are (and how "saturated" that hue is, and the "luminosity" (lightness/darkness) of that color), which is often visualized as a cylinder (because "hue" goes from zero to 360 degrees). Going from "a cube" to "a cylinder" does indeed take some weird math to map every point in one volume to another point in the other volume.
1
u/geraldbauer Mar 12 '21
Amazing. Thanks for the helpful explanation. I will see if I can make sense of it. Thanks again!
1
u/the_parthenon Mar 12 '21
Thanks for your help here. Do you have any information about how the remaining genesis cats can be rescued?
3
u/MidnightLightning Mar 12 '21
Genesis cats are not "rescued" but rather "released" by the contract owners. If those original project owners re-emerge, they'd have the ability to release more Genesis cats.
2
u/the_parthenon Mar 12 '21
Got it, thanks. I have a feeling they will re-emerge. The ethereum wallet with 700 cats just woke up after 1200 days of silence.
Sent you a note via chat.
1
u/liubko Mar 13 '21
Curious if there any plans to revive the adoption centre? I don’t know if I to wrap my cats 🐱
1
u/MidnightLightning Mar 13 '21
Technically anyone could design a web UI for that process: the contract functions are open source, so even if the original developers never fix that site, likely someone will make a better UI for that (and could integrate things like WalletConnect or hardware wallet access, which didn't exist when the original project launched).
1
u/Zealousideal-Show914 Mar 13 '21
Hi,
I have some trouble to mine mooncats.
Everytime I tried to proceed the gas payment, it failed.
I found the cat I liked and add cat seed number maually into the CATSEED() under WRITE CONTRACT tab.
The transaciton shows "
Warning! Error encountered during contract execution [Reverted] "
Do you know why?
Latest transcation hash: 0xcbf0f4b55e9feba9517fccdabf57b00a183dff35139a5ce9eb611b9dba233f35
Cheer .
2
u/genericOfferman Mar 13 '21
Mining is over at this point. IDK if the contract can allow for more to be mined.
2
u/MidnightLightning Mar 13 '21
Yup, this. The only other cats that can come into existence is a few more batches of Genesis cats the original developers could release if they ever re-emerge. Other than that, all the official MoonCats that will exist as "rescued" now exist.
While the original project self-limited to 25,600, the "mining" algorithm could be reused by other projects, as there's many other cat seeds that are still valid cats that aren't rescued (who wants to modify the contract to ban the existing mainnet cat seeds and launch the project on a side chain, to rescue 25,600 more cats from the moon to live on a different network?!?).
2
u/geraldbauer Mar 12 '21 edited Mar 13 '21
Thanks for your great contract commentary. If you don't mind I will add your commentary to the new mooncats contract page / repo @ cryptocopycats in the next days.
2
u/Accomplished_Bee_828 Mar 14 '21
you LEGEND!!!! this is the beginning of something cool, i think you can also help your vision of teaching people about crypto
1
1
0
Mar 12 '21
[deleted]
1
u/MidnightLightning Mar 12 '21
If you let me know what your Metamask address is, I can help identify them for you
0
Mar 13 '21
[deleted]
1
u/MidnightLightning Mar 13 '21
Every single rescued cat has an ID that starts with
0x00(only Genesis cats don't), so that's not rare. The digits that follow are random, so123is just as likely as000. However, buyers seem to be liking the aesthetics of a long string of zeroes, which is augmented by the two "free" ones at the beginning, so yes are currently selling for more.Possibly when those are all snatched up, other cats with long strings of numbers or other patterns in their digits might also get that sort of attention too.
1
u/Redzeno2 Mar 12 '21
Good stuff dude! Excited to see this grow.
Is it possible to pull data from all transferred moon cats and categorize?