169 похожих чатов

Hey guys, does anyone know how features of NFTs are

randomly generated and put together?

5 ответов

14 просмотров

Think about if the ipfs link had a querystring that defined which components were used for the nft e.g. hair, shirt, shoes etc. and they can all be referenced in the smart contract by a mapping from item number to ipfs link. One mapping per item slot

Simon-Tian Автор вопроса

Thanks, man. This is great. This is on the part after features are generated and get uploaded to IPFS. I'm wondering how the features before this are generated.

Arrays of traits for each item slot. Each new nft just creates a new permutation by increasing the next index that hasn't reached the end of the list and pulling from the current indexed traits

Simon-Tian Автор вопроса

How are the traits put together to form new NFTs then?

It's not standard erc721. That would require some offchain functions to pin new ipfs sources. Yes what i described lets you programatically generate them

Похожие вопросы

Обсуждают сегодня

Типа вызывать GetParent и проверять на соответствие GetModuleHandle?
The Bird of Hermes
67
Всем привет! Кто нибудь парсил в ручную JSON без библиотек и фреймворков? Есть может ссылки на оптимальный алгоритмы работы с текстом и примеры таких парсеров?
Lem
27
Do any of you guys have interesting projects one could join? I'm a Middle Full-Stack developer (JS/TS, React & Node)
Lev Shapiro
40
Есть сайт. Там была древняя версия эво. Стоял плагин, который каждый коммент в Jot делал отдельной страницей. После обновления все слетело, теперь старница открывается отдельн...
Artem
1
$res = json_decode($наша строка из респонса); $res1 = array_map(fn($o) => $o->name, $res->breadcrumbs[0]->entities); Как такое будет на Хаскеле?.. В начале весь джейсон, в ко...
Хаскель Моисеевич Гопник
27
Вопрос по диагностике ошибок (я знаю в чем, в данном конкретном примере, я знаю, как исправить, пример модельный, понятно, что в реальности бывает намного запутаннее). module...
ⰄⰎⰋⰐⰐⰑⰛⰤⰧⰧⰩⰄ ⰊⰑⰁⰓⰡⰛⰦⰕⰫ
11
В чем сила брат, в NASM или FASM?
Isaac Kleiner
18
А чем вам питонисты не угодили?😂
.
79
Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
52
Приветствую всех. Хочу начать изучать код для программирования микроконтроллеров и не пойму с чего начать. То ли с Си, то ли с плюсов. Чем языки вообще различаются. С чего мож...
Андрей
7
Карта сайта