Open niklasp opened 1 year ago
querying the nfts.collection is not an option as there might be referenda in the queue that assign certain IDs already.
Technically also there could be multiple nft sendouts for the same ref. It's important that we consider that too.
Perhaps we should also think about a way to create new collections for each ref.
New collections i will build, the ui is already ready in a way. still i think when we as poc want to start we should mint to a default collection (and maybe encourage others). I imagine having 10s of rewards collections with only 3 different rarities will clutter all NFT marketplaces UIs like crazy and make it even harder for people to follow / organize. I liked how it was done before.
Currently unique NFT ids are generated from the index of the vote in
getTxsForVotes
. That obviously doesn't work when minting to an already existing collection. We need to think about a unique id for collection NFTs of typeu32
.E.g.
${refId}${1-n for rarity index}{voteIndex}
or query
nfts.collection
to get the number of items and start from numItems + 1Ideas?