Live data from Hacker News

Show HN: Find any smart contract on Cookbook

cookbook.dev

21–30 of 38 posts

Re: Show HN: Find any smart contract on Cookbook

#23

If someone else than cookbook uploads a contract, how can I be sure it's safe for me to deploy on my project? Is there a failsafe of some sort? (code review/approval, community ranking etc)

Many of the contracts have their audits listed, you can read through the audits to see whether its safe to use or not. But as always, you should make sure to do your own testing before deploying to production.

Re: Show HN: Find any smart contract on Cookbook

#25
post #18

I can’t be the only one that doesn’t understand what any of this means. Can someone ELI5? Or, ELI am a software engineer with no web3 knowledge, at least?

Smart contracts are just pieces of code that run on "the blockchain". They can be pretty much anything: currency-like tokens, NFTs, marketplaces like opensea, exchanges like uniswap, etc.

Once they're uploaded to the blockchain, they're there permanently. That's really scary, because it's very difficult to write complicated code without bugs. When smart contracts have bugs, you can have massive hacks where literally billions of dollars are stolen.

Because the consequences are so high, people end up paying developers a ludicrous amount of money to write and deploy (i.e. upload to the blockchain) these contracts. A lot of projects also pay auditors thousands to read/review the smart contract code. This is pretty wasteful, because most contracts end up being the exact same thing: I'm making it up, but probably 80% of the code on ethereum is for NFTs.

This site seems to be aggregating all of the most common contracts and audits so people can reuse code that has already been approved.

Re: Show HN: Find any smart contract on Cookbook

#26
post #18

I can’t be the only one that doesn’t understand what any of this means. Can someone ELI5? Or, ELI am a software engineer with no web3 knowledge, at least?

Smart contracts are just pieces of code that run on "the blockchain". They can be pretty much anything: currency-like tokens, NFTs, marketplaces like opensea, exchanges like uniswap, etc. Once they're uploaded to the blockchain, they're there permanently. That's really scary, because it's very difficult to write complicated code without bugs. When smart contracts have bugs, you can have massive hacks where literally…

This is exactly it. The way to think about it is that smart contracts are effectively server-side code that is specialized to run on blockchains. They use many of the same building blocks and can often be reused. When I want to build Auth in Nodejs, I might use Passport.js, and I often use Express.js. Often I'll use mongoose.js as well. That's effectively what we're providing with cookbook, a way to find and utilize solidity packages created by the community.

Re: Show HN: Find any smart contract on Cookbook

#27

This is the kind of project needed to make web3 accessible to a much wider scope of participants. Any plans to support vyper?

Definitely plans to support different smart contract languages over time. For the short term we're focusing on Solidity as most web3 devs use it.

Re: Show HN: Find any smart contract on Cookbook

#30

I am building a platform on Web2 and wondering if cookbook has a tool where I could Integrate a Web3 wallet integration to it ? if this is something achievable ?

It really depends on what you're after, we do have a widget to embed web3 functions into any site, it's in early beta.
Post reply on HN