jcnelson / nftree Goto Github PK
View Code? Open in Web Editor NEWA scalable way to mint NFTs that earn their owners a yield in STX
A scalable way to mint NFTs that earn their owners a yield in STX
Just noticed that running ./nftree.js with certain numbers of NFTs causes nulls in the proof map and errors..
"hashes": proof.map(function(h) { return h.toString('hex') }),
TypeError: Cannot read property 'toString' of undefined
at /Users/mikey/hubgit/radicle-solutions/nftree/src/nftree.js:188:48
at Array.map (<anonymous>)
at makeMerkleProof (/Users/mikey/hubgit/radicle-solutions/nftree/src/nftree.js:188:21)
at processOneDirectory (/Users/mikey/hubgit/radicle-solutions/nftree/src/nftree.js:263:21)
at main (/Users/mikey/hubgit/radicle-solutions/nftree/src/nftree.js:426:24)
at Object.<anonymous> (/Users/mikey/hubgit/radicle-solutions/nftree/src/nftree.js:453:1)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)```
For example running with 3, 4 NFTs works but 5 errors and 6, 7, 8 works and 9 fails.
Is is possible you can put some instructions of how to install and test this on Clarinet in Visual Studio Code?
Also i would like to know is there a simple way to Lock the Parent NFT In NFT Pool and have Child NFTS have shared ownership of the Parent.
Basically i want to fractionalise the Parent NFT without actually fractionising it but giving shared ownership to fixed number of Child NFTs, which can be openly traded on NFT platforms.
Thank you for this amazing repository Jude!
My questions are hopefully rather simple -
Thank you,
Jake
Hey @jcnelson!
I like the idea of using Merkel tree to pre-mint all NFT's in collection. ๐
In README.md
file you mentioned instantiate-nftree
function:
Once the NFT creator has the outputted NFT descriptor, they can call (instantiate-nftree) with it:
There is no such function in the project source files, and almost identical sentence can be found few lines above, so I think it's just an editorial mistake.
Both functions register-nftree
and register-contract-nftree
don't check if provided tree root has been already registered or not.
I can imagine a situation in which artist would like to release same collection more than once, but I would say it should be always done using separate, unique tree.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.