Metaversal is bankless newsletter For weekly level-ups in NFTs, virtual worlds and more!
Dear country without banks
Last month I wrote about a crypto-themed ChatGPT plugin.
The creators of AI have since released another powerful resource. code interpreterI was really impressed.
What you can actually do is much more Don’t just analyze your code.
However, as a cryptocurrency creator, I have always wanted to understand smart contracts in greater depth. So what would a basic code review for an NFT project using a code interpreter look like?
Let’s share our general approach to the process below and see how it goes.
-WMP
🙏 Sponsors: Uni Swap Lab — Better Prices, More Listings: Uniswap’s NFTs✨
Chat GPT An AI chatbot developed by OpenAI that can generate human-like responses based on text input.maybe Enhance with pluginsare third-party resources that allow AI to interact with other software and services.
The code interpreter itself is an in-house plugin developed by the OpenAI team. The Python programming language can be used to perform all sorts of different tasks, from retrieving color palettes from uploaded images to analyzing provided code snippets.
Here the code interpreter is currently only available for ChatGPT Plus users. Note that monthly subscriptions currently cost around $20 and must be opted-in through the “Beta Features” section of ChatGPT’s “Settings” menu.
Want to unlock over $1,000 in Citizen sales and offers across cryptocurrencies?
The Code Interpreter plugin is still experimental and in a “sandboxed execution environment”, so it does not currently have internet browsing capabilities.
That said, if you want to inspect your code in a code interpreter, for now you’ll have to copy-paste the snippet into ChatGPT as needed.In this example I have noun DAO GitHub repository Now that you’re ready, let’s start like this…
The Nouns DAO consists of a series of interlocking smart contracts, as its repository shows. To make this information easier to understand for a code interpreter, I copied the code for each of these individual smart contracts one by one. inflator.sol, nounArt.sol, nounAuctionHouse.sol, noun descriptor.sol, nounSeeder.sol, nounToken.soland SVGRenderer.sol.
The “Art” smart contract alone was 450 lines of code, so it’s interesting to see how the plugin handles a lot of information at once. Once the code interpreter has all the relevant smart contract details at your disposal, you can start a guide to dig deeper into the code interpreter.
A code interpreter can work with your project’s codebase, so you can use the plugin as something of a research assistant for understanding your code.
For example, I asked Code Interpreter to provide a high-level analysis of the technical design of the Nouns DAO after providing the aforementioned seven smart contracts. In contrast, plugins have provided various advantages, including:
-
modular design: “The project is modular, with each contract responsible for a specific part of the system. This helps with code maintenance and allows flexibility to update parts of the system independently.“
-
Generating on-chain art: “Unlike many NFT projects that store metadata and art off-chain (usually in IPFS, etc.), Nouns DAO has the NounsArt.sol, NounsDescriptor.sol, SVGRenderer.sol contracts to store art on-chain. It seems that there is a function to generate While this approach is less common, it provides a unique mechanism for creating separate, verifiable digital assets entirely within the Ethereum blockchain.“
-
OpenZeppelin Usage: “This project utilizes the well-tested and secure implementation of the OpenZeppelin library, an industry standard for common contract interfaces and utilities.This shows that we care about security and reliability“
If you’re researching an unfamiliar NFT project from 0 to 100, would this kind of information serve as a starting point for the technical side? Absolutely! The only limit here is your imagination. I asked the code interpreter what a streamlined version of the Nouns architecture would look like, and so on. If you can think of it, the plugin can try to answer it.
However, you should be very careful because not all answers you receive from Code Interpreter are correct.
In fact, the Inflator.sol smart contract used by the Nouns DAO is intended to “decompress data compressed using the Deflate algorithm”. The code tells you a lot in plain English.
However, when we asked our code interpreter to analyze this part of the noun’s technical structure, the plugin noted that this element was a financial-centric “inflation rate mechanism found in some DeFi protocols but not commonly seen.” interesting as ”. in the NFT project. “
The important thing here is that Code Interpreter is still experimental and far from perfect. Please don’t treat that answer as completely correct. Because it is often incorrect in many places. Rephrasing the prompt in a certain way might solve these problems, but if you decide to use a code interpreter in the near future, be sure to double-check its output, as we did in analyzing the Inflator.sol contract. Get in the habit.
Overall, Code Interpreter is a very attractive new tool that both non-technical and technical people can use, especially for deeper analysis of NFTs. Code analysis used to be the domain of experts only, but this plugin is a big step towards making it accessible and understandable for everyone.
Also, it’s pretty early days in this area, so I think the performance of code interpreters and plugins like that will only improve over time. However, if you’re not a programmer like me, remember to use this tool not as a tool of any kind, but simply as another element of your research, and as a source of fact-checking as any other. It is especially important to keep It’s a perfect analytical machine, but it’s not.
-
Consider code interpreters: Try this plugin if you got ChatGPT Plus subscription 🤖
-
Check out our previous weekly NFT roundup: Bullish XRP, Bullish NFT? 🙃
William M. Peester is the creator of metaversal — Bankless newsletter focused on the emergence of NFTs in the crypto economy. He is the senior writer for Bankless’s main his newsletter and a contributor to the NFT curation platform JPG.
Unbanked citizens ⚑ went from $264 to $6,077 last year. In a bear market he has a 22x ROI 🚀!
Trade NFTs on major marketplaces to find more listings at better prices. Uniswap’s NFTs are open source, trustless and self-storing. To celebrate NFT on Uniswap, we’re airdropping $5 million to select historic spirit user.Start trading NFTs today Uniswap.
It is not financial or tax advice. This newsletter is for educational purposes only and is not intended as investment advice or a solicitation to buy or sell assets or make financial decisions. This newsletter is not tax advice. Please consult your accountant. Find out for yourself.
disclosure. From time to time I add links to products I use in this newsletter. We may receive a commission when you purchase through one of these links. Additionally, bankless writers hold crypto assets.see our Click here for investment disclosure information.
0 Comments