Comments (2)
When uploading the NFT and metadata to IPFS or wherever they will be stored, how do we ensure that NFTree metadata captures what is stored and how does this get accounted for when constructing the NFTree?
The Merkle root of the NFTree commits to a set of NFT descriptors (https://github.com/jcnelson/nftree#nft-descriptors). The descriptors contain the NFT hash and its size. You'd need to store both the descriptors (these are the *.desc
files) and the NFTs themselves to wherever you're storing them. The sample contract assumes that the NFT data will be available at https://your-server-address/some-prefix/${nft_hash}
, but you're of course free to change that.
The NFT descriptors are made available out-of-band, i.e. as part of the NFT listing. The set of them are committed to by the NFTree Merkle root, and the tool nftree.js
creates a Merkle proof (the *.proof
files) for each one so you can authenticate them. Both the descriptors and proofs are needed in order to call some contract functions.
Is there a way to automate or pre-configure ticket prices with rarity?
The nftree.js
program reads ticket information from a tickets.csv
file in each directory that contains your NFT data. How that file gets generated is out of scope for this project, but presumably you could write a separate program that generates it based on your rarity specifications. You may also want to adjust how many tickets are minted per block, since in the sample code it's just a constant (but it could be a function of the block height or something, if you want tickets to get rarer over time).
from nftree.
Is there a way to automate or pre-configure ticket prices with rarity?
To speak more to this, the reason that nftree.js
takes the ticket information as a CSV file is to make it easy to do something like use Excel or some other spreadsheet program to control NFT rarity without having to learn a new programming language.
from nftree.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nftree.