NFT collections at scale - Marius & Vlad (The Sandbox)
ETHMilan 2023 · 18 Dec 2023 · 23:36
Two tech leads from The Sandbox, introduced as Marius and Vlad, explain how their team went from one NFT collection every two months to as many as four per month. They cover reusable front-end components and a collection generator, micro front-ends for fast deployment, a transaction history list and proactive error messages that reduce failed mints, an audited generic ERC-721 contract with a factory, and the pipeline that turns 3D avatar traits into assets. The talk closes with audience questions.
Topics
From ETHMilan 2023, hosted by ETH Milan.
Transcript
hello everyone my name is Marius and together with my colleague Vlad we will present you how we scale nft collections but first a bit about us we both work at sandbox at sandbox as Tech lead and we also co-founded QED which is a software company that sbok trusted to get things to the next level our journey started two years ago with a team of four developers and as for now we have a crew of over 20 people uh designers Developers project manager product owners and so on our office is located in Romania in the city of timara which is also the European capital of culture this year so if you plan to visit feel
free to reach to us we can exchange telegram later and we can show you some really cool places our journey in sandbox started with snom dog nftd avatars which was the sandbox first official collection this one was a really big hit over 10,000 nftd sold out in a couple of minutes this generated a huge demand of sandbox official nft collection but at the same time we had to integrate pre-existing nft collections into the metav for example we Bridge board dapes besides other collections so if you own a board ape you can play with that in the sandbox however our previous
infrastructure and tools was not capable to handle this level of demand so we had to create our own tools and definitely uh upgrade our infrastructure when we started we had to launch one collection every two months and as for now we are launching up to four collection per month this presented three major scaling issues but first let's take a step back and Define what's an nft collection into the sandbox an NFD collection into the sandbox is made of three parts we have the minting D app so uiux we have a smart contract a classic ERC 721 and we have art
integration a process that blood will further detail for all of these we encounter battl next I'm a frontend developer at base and uh I want to uh take a look in more detail on the minting D app so uh the minting D app for our collection is made of two parts we have the minting page of course used only for minting and we have a landing page that landing page is used by market by our marketing team to highlight the utility of the collection and also promote the client in other words this page needs to be custom made and by custom made I mean that it should follow the client branding guide so we need custom fonts
we need custom colors custom images and so on while creating more and more collection we begin to identify patterns and uh mechanics that were recurring uh on collections as you may see on the slide um most of the sandbox collection follow the same layout so we have a trailer we have the characters we have the character description we have a milestone section and so on in order to ease the development of these Pages we extracted all the recurring components into a small UI Library a comp component kit which provide us components headless components so without The Branding look without the styles of the brand so this
one it provides us um mobile ready and accessible components on top of that it also ensures the consistency between collections so it's using the same spacing for example and that's really important as there are a lot of scammers in the space that are trying to copy the collection and uh do malicious things okay the only thing that we had to do was just use the code blocks from the UI library and we have the page ready now that we can de develop really fast and uh really cool Pages the the the next Buttle that we encountered was the
deployment because when we started uh all of our collection were part of the sandbox monolyth which was which is a huge application tons of code a lot of legacy and of course a really really lengthy release cycle so even though we managed to create the collection really fast we had to wait like a couple of days in order to release to address this issue we just extracted all the code into micro front ends independent and autonomous so they are they have uh uh their own CI so we can deploy whenever we want the the nice thing about that is that the monolit was server surrender and the collections are building into
static files that means we can deploy on S3 or ipfs depends on our needs now that we can create and deploy whenever we want and everything was working and scaling really nice uh the only thing we had to do when creating a collection was to duplicate some code then we changed the copy text we set a new contract we set the chain ID and and we were ready but of course that's not really fun for a programmer to do and that's why we created a CLI tool called create sandbox collection this one was uh heavily inspired by create uh react app if you are a front end developer maybe you know that and
you can boost up a headless collection in a couple of seconds so all you have to do again is just up update the color scheme you add the text you set some images you set the contract address chain ID and you're ready for production you can deploy everything's doing really nice okay this one is not working anymore cool now as developers we were really happy about how the things are deploying building and so on but definitely that was not enough because some of our user were not there as a data driven team we placed really great value on uh analyzing the user Behavior
uh the most in the meaning phase of the collection and based of that on that data we managed to find some patterns and errors that even at some point preventing the meaning process so some of our users got so frustrated that they thank you cool so the most important feature that we uh uh we created and that caused a lot of frustration was the transaction history list a bit of context uh in the early days the good old days when nft
were the cool kids on the crypto space we deployed everything on mainnet and the transaction resolution time was really lenty like you had to wait up to half an hour to get the transaction done so the user comes to to our minting page they press mint they see a loading spinner nothing happens for 10 minutes they refresh the page That's a classic and they see the button again they press again and they are creating another transaction and at some point they do multiple minting by fault in order to fix that we create we created a transaction history list as you may see on the JF so every time you create a transaction action you see your
transaction in list in the list and next to the transaction hash you see this the real time status of that transaction so even though you refresh the page you will see that you have a pending transaction maybe one that was done or maybe one that was uh failed the next uh bottleneck for our user was the way that we display the errors before uh upgrading um let's take an example you are an user which tries to mean something on polygon uh if you want to mean you need polygon send and you are also on a wrong chain so you come to the page you click
mint you see the error that you don't have enough mcent which is the polygon sent by the way you go to a bridge you bridge some scent you come back you refresh the page try to Mint again and you see that you are on a wrong chain that's really frustrating and to fix that we just proactively display errors as you may see if you have any error you will see that in in the box and we also added ctas to to fix the errors in real time so you can Bridge uh in the page you can change the Chain by just clicking a button as for now we also implemented by economy so before you you had to own two tokens to meet one to pay the guest and send to pay for the nft
but that's not uh needed anymore and also so we are doing some experiments with card payments so um we want to ease the onboarding of web to user into the web 3 reals so you we you will be able to Mint with a credit card cool now that uh the minting the apps was fixed and everything was scaling really nicely building deploying we encounter some bottlenecks similar bottlenecks on the smart contract side we had a contract and we uh again we care really uh much about the security so every contract in the sandbox is
audited so every time we created a contract collection a contract for a collection we send that to the audit this that takes like up to two weeks to review and if we have feedback we Implement send again and until uh we got the green flag from the auditors of course that's not really scalable because we almost Miss some of deadlines because the the auditing and the and the contract in order to fix that we created the generic contract basically we extracted all the common logic into a generic contract which was audited once and every time we create a
new collection we just extend that contract we applied the some arguments like the name the symbol the max Supply and we are ready for product production that was not uh that's scaling nicely but I will let Vlad tell you more about what we did next thank you thank you um so first I want to mention that everything we are doing on the smart contract development side is free an open source and you can find uh our contracts under the GitHub repository on the sandbox organization uh we also did some open source contribution for the openc Ry filter to be compliant with their uh royalty speeds so yeah moving forward
now this generic of raffle approach works if you have a small number of collections let's say I know three or four per year but if you want to scale to more than 50 per year it's getting the entire process is getting uh harder and harder you need a technical person to deploy the smart contract you need somebody to change the state to sign transaction so on and so forth so for that we deployed this new Factory smart contract and right now we have a factory that's going to deploy the smart contract for us so using a small uh back office uh D app everybody can from our team deploy and manage uh those
collection and collection States right moving to the last problem the one with art integration and art scaling in order to create more than four collection per month and to be able to bridge half a million of avatars in one year you need a separate system that can integrate um generate and manage the avatars and the assets themselves to give you a little bit of a context uh of why this problem is complex and uh I think I mixing a SL anyway um to give you a little bit of a context why this problem is comp Lex and complicated let's talk about the Avatar
Anatomy inside the sandbox so any sandbox assets not specifically avatars have three main components has the 3D model that has also two subcomponents one is the glb and the gltf those are file formats open for like specific 3D stuff uh really chunky really heavy um but they can be open and played with in VR apps AR apps web browsers so on and so forth but are those files are not optimized for voxal so we have a different file format our owns called uh vxc and this one it's used mainly for
our game client and Game Maker tools the second component is the 2D representation of that uh 3D model uh basically the jpegs that you're going to see on open C Twitter so on and so forth and the last last one is the Json the metadata the text representation of those avatars okay now when we started this journey to create collections uh there were not so many tools uh and the tools that existed were really generic you could create only pfps uh and 2D images basically and the tools that existed on on this 3D part were not uh High imiz
for for vels more specifically uh we have this issue on mapping a trait to certain 3D uh nodes from the model in this example you're going to see a golden board ape so to make this golden board you need to define a trade let's call it skin uh with a value golden and you need somehow to map this this tra to all the nodes that affected by by it so in this case if it's a skin means that every single node from the Avatar is affected by by the changes uh more so you also need to define a layering system on top of it well is not fun it's not sexy but uh
we solve it using a spreadsheet initially uh in which you can Define all the tokens their scarcity the traits it has a randomization algorithm you can Define the description it has some inclusion exclusion rules uh and that's what uh we use and our partner Studio uses use that in order to to generate uh the collection and here you can see how we map the trace to to no so it's really not cool and not uh usable on the long run um the previous tool that you saw the spreadsheet outputed a package that furthermore was was used by our 3D
artist to model every single trait uh into into what we going to be uh avatars now we take the package we take the metadata we run something locally with some glue scripts bash Python and we generate the entire Avatar collection on our laptop that was that's how was uh the doggy created and the first sandbox collections I mean is not uh nice it's not interesting but it worked but and the def one scale so right now we moved everything into our uh Cloud pipeline uh This Cloud pipen is composed
of AWS workflows AWS T functions and those T functions are gated by some uh API endpoints uh and on top of those we also have a small why so now every single operator from our staff can generate can create collection can regenerate uh their work here is uh the Paris Hilton collection being generated first we receive the package from our artist uh we generate the 3D models uh really efficient in parallel uh using a caching mechanis so if you change just one tra not the entire collection is going to be generated but just the models affected by those changes
we move forward to to generate the 2D representation then we pack everything together and we put it in our uh storage and then our ecosystem all right uh but we don't want to stop here we want to allow everybody to use those kind of tools and now we are in private beta with some partner Studios uh with what we call collection lab uh and this tool is going to allow every single Creator initially land owners to create uh and generate and finally maybe sell their collection uh using it uh you can Define everything that I
mentioned before and whatever Marius mentioned previously in this collection lab tool right thank you everybody if you have any more questions will be around this yep yeah I just wonder if you have heard about web three uh inbox um messaging system that wallet connect developers are uh uh introducing uh in uh near future because uh when you talk about uh the error managing and uh uh it comes in my
mind uh this speech I've just heard uh because they are developing a system when uh where user uh after connecting with wallet connector have a whole history of his transaction and also error happening when you buy an nftd or something like that and so I wonder if you are re Reinventing the wheel or maybe you can uh interface we with their backand for this managing I I think this question is more for me because I'm the uiux guy so uh I think our problem is way too specific to
use a generic solution as the problem was happening only on specific collection pages so even though you see some hashes that failed or maybe are you know they have uh a done St status uh it doesn't help from a ux perspective you need to see that maybe besides the hash maybe if it's done the token so I think that solution definitely great but I don't think that's for us because our problem is way too specific for the things we are building thank you welcome more question no uh maybe just one for me then uh that private beta you were
talking about looks uh very interesting uh when are you planning to to release to a wider audience so uh we are developers not necessarily product guys but course uh but uh in two weeks we are going to open it to 10 Studios uh partner Studios that we are working with and hopefully by uh q1 2024 we also going to have the Launchpad and everything uh connected like you can create then deploy the smart contract using in the factory um and generate the collection itself okay thank you thank you makes sense and uh out of the many collections uh you made throughout the years what what what's the one that most
exciting for you just a general question other curiosity uh I think the people of crypto was the most exciting because we had a personalization feature so you could it was a concept of dynamic nfts you could personal personalize your avatar so the nft uh for me the agoria one we have another collection called agoria In The Same Spirit but uh and each six hours your avatars are changing and that's uh yeah the concept of dynamic nfts and um it's pretty cool to have your avatar change also inside the game that's brilliant any more question yeah one for the audience hey yeah uh nice presentation I
have a question is usually nft connections is also about Community Building because you are giving an infrastructure right now for any nft to any developers or companies to me their own collections what is sandbox a role in terms of community building or uh Beyond just collections yeah it's a nice question uh we provide this infrastructure as you men mentioned but also uh so first I think there are two different type of of nft collections one are big brands that are coming to us they don't know how to do it or they want to learn how to do it and then we guide them into building their Community uh inside sandbox and we
also have existing communities like existing uh I know cool cats bardes so on and so forth that are coming to us uh so we using that Louch pad we want to provide the tools for them to to grow and for everybody as you mentioned to create new uh new communities I'm not sure uh what's the plan I can not talk for the company just my ideas but for sure uh we want to grow this this community part and maybe offer even more tools um in the future depending on the needs uh of specific communities thank you any more question no then uh big
round of applause for our friends from sunbox thank you
Related talks
- Polygon 🛠 Create Evolving NFTs with On-Chain, Mutable Data - Steph Orpilla
- NFTPort: How to bring your NFT Application to Market in Hours
- The Interaction of Oracles and Real NFTs
- NFT Metadata
- Creative Summit | Fully on-chain generative art - Harm van den Dorpel
- Decentralized Metadata for NFTs_Andrew Hill
- Will Dynamic NFTs Start The Next Bull Run?
- Non-Technical Complexity in NFT Projects - Giuseppe Perrone (EY)
- Advanced analytics on NFT collections & creators - Shaun Khan (Tapistrii)
