Comments (6)
Reference:
https://github.com/scaffold-eth/scaffold-eth/blob/simple-nft-example/packages/hardhat/contracts/YourCollectible.sol
https://learnblockchain.cn/article/3533
from tai-shang-voxel-handler.
tokenURI should be a json.
from tai-shang-voxel-handler.
and commit hash should be in params and set in description.
such as:
from tai-shang-voxel-handler.
ref: e9b3cdb
from tai-shang-voxel-handler.
Update: mint voxel NFT with arweave uri, github pages url and commit hash.
An example of tokenURI returned, it is encoded in base64:
data:application/json;base64,eyJuYW1lIjoiVGFpIFNoYW5nIFZveGVsICMxIiwgImRlc2NyaXB0aW9uIjoiQSBUYWkgU2hhbmcgVm94ZWwgdG9rZW4gY3JlYXRlZCIsICJhdHRyaWJ1dGVzIjogW10sICJvd25lciI6IjB4NTZjYjM0YTY4MDA2MGEwYzkwYjlhMDAwYzk0MDU2ZjAzODEzMjM3MSIsICJpbWFnZSI6ICJodHRwczovL3dlbGlnaHRwcm9qZWN0LmdpdGh1Yi5pby92b3hlbC12aWV3ZXItcGFnZS8iLCAiZXh0ZXJuYWxfdXJsIjogImh0dHBzOi8vd2VsaWdodHByb2plY3QuZ2l0aHViLmlvL3ZveGVsLXZpZXdlci1wYWdlLyIsICJ1cmkiOiAiaHR0cHM6Ly81eXduNmRhZW56NnBvZWZwamtnczNjMnZkZ3R6c2sydmV2YW02YW96a2Z6enp3cm1naS5hcndlYXZlLm5ldC9uRkYzSjRWQjBCUDllSHQzNWdkZmZHdXdDWGFIZlh3dEpsMks2dTRHeUEwIiwgImNvbW1pdCI6ICJlMDcwZjU1ZWY0NGY0MTY2MWE2NTA0OGMwZmQzMGFmMzNlMjBmZjdjIn0=
and decode as following json data:
{
"name": "Tai Shang Voxel #1",
"description": "A Tai Shang Voxel token created",
"attributes": [
],
"owner": "0x56cb34a680060a0c90b9a000c94056f038132371",
"image": "https://welightproject.github.io/voxel-viewer-page/",
"external_url": "https://welightproject.github.io/voxel-viewer-page/",
"uri": "https://5ywn6daenz6poefpjkgs3c2vdgtzsk2vevam6aozkfzzzwrmgi.arweave.net/nFF3J4VB0BP9eHt35gdffGuwCXaHfXwtJl2K6u4GyA0",
"commit": "e070f55ef44f41661a65048c0fd30af33e20ff7c"
}
from tai-shang-voxel-handler.
update: rich details about creator and commit.
from tai-shang-voxel-handler.
Related Issues (10)
- [feat] impl a gallery for voxels HOT 1
- [feat] Integrate the uploader
- [feat] register voxel to 3d printer HOT 1
- web3con HOT 1
- [feat] create a template on github to make people publish there `vox` to page quickly
- [feat] pages about "Play With Voxel" HOT 2
- Impl an textarea above the "Make Voxel NFT from Virtual to Actual One by 3D Print!"
- the `hardhat_contracts.json` in `react-app` is ignored, it should be add.
- change `.obj` color by program! HOT 1
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 tai-shang-voxel-handler.