4 ms·
Sugar – Candy Machine Rust CLI
- splix 4y agoIt would be great if it had any description. Because it's not very clear what _Sugar Candy Machine_ does. I mean, I guess I understand what it does IRL, but in Rust as a software? It doesn't make any sense to me. Or it's a CLI to some cooking hardware?
- dljsjr 4y agoI didn't know what it was either. I googled it. It's NFT stuff.
- Keyframe 4y agoYeah, absolutely not clear what it is. Google reveals something about NFTs, so I guess I'll pass.
- cmeacham98 4y agoI searched it: https://docs.metaplex.com/overviews/candy_machine_overview https://docs.metaplex.com/overviews/candy_machine_overview > The Candy Machine, or CM for short, is a Solana Program designed to reliably sell one NFT at a time. In other words, it's just meant to be a reliable bug/exploit free smart contract people can use to sell NFTs.
- rafaele 4y agothe indirection in these crate names is too damn high
- 8bithero 4y agoMetaplex's Candy Machine) is the most widely used Solana Program for minting Solana NFTs [Note: Smart Contracts are called "Programs" in the Solana ecosystem]. Metaplex released Candy Machine V2, but Sugar seems to be a brand new rewrite of the program and the successor of CMv2 - However it seems it's still in beta. The CLI just lets you interact with the Solana BlockChain to register NFTs (Setup Mint Authority etc.) The reason it's written in Rust is because Solana uses Rust. Similar to how Etherium Smart Contracts need to be written in Solidity, Solana Programs need to be written in Rust. I know it's not the best explanation but I hope it helps clarify things at least a little.
- deleted 4y ago[deleted]
- remdev 4y agoShocked to see this on HN, but I'm pretty into this right now so it's awesome to see it here. First off, this needs context. This is a CLI for creating a Metaplex candy machine[0] - a Solana program (smart contract) from which users can mint NFTs. Sugar is a revamped version of their old CLI (not named) that serves the same purpose. I know HN hates crypto - and NFTs especially. However I have found a lot of joy in learning about current solutions for these use cases, engaging with the Solana NFT communities, and even building my own flavor of something like Sugar for users who won't reasonably use a CLI (check my profile). Here are some of the interesting problems I've come across in the NFT world which are new to me after an MS in Computer Science and 5+ years as a full stack web developer: * Where do you host objects that can freely change ownership? Who pays for it? IPFS and Arweave are widely used to solve this problem. They are not perfect. * How do you launch a "fair mint" when it comes to these NFT launches? The word fair is loosely defined. Some interesting details are: * How do I make sure everyone has access to the launch at the same time? * How do I make sure a bot can't claim all the items and crowd out real users? Metaplex recently added a bot tax[1] to mitigate the issue. Dynamic pricing[2] has also been used to remove incentives for bots. The Metaplex candy machine itself also provides some solutions for "fair mint" like supporting whitelist tokens (allows only users with a specified token to mint) and on-chain captcha[3] functionality. I acknowledge (but disagree) that this may not be all it's cracked up to be by crypto die-hards. But damn it's fun to tinker around as a builder in this space. [0]: https://docs.metaplex.com/candy-machine-v2/introduction https://docs.metaplex.com/candy-machine-v2/introduction [1]: https://github.com/metaplex-foundation/metaplex-program-library/pull/417 https://github.com/metaplex-foundation/metaplex-program-libr... [2]: https://docs.strataprotocol.com/launchpad/dynamic-pricing-mint https://docs.strataprotocol.com/launchpad/dynamic-pricing-mi... [3]: https://www.civic.com/solutions/civic-pass-for-nfts/ https://www.civic.com/solutions/civic-pass-for-nfts/