You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Idea inspired by zkachette & code snippets below written by dOrgJelli
Example Demo
Use the "blockies" library or something new/similar to generate a unique render (image, 3d, sound, video, etc) that is defined by the NFT's unique-id.
How could it work:
Use an NFT Contract
For example, use Artblocks Curated Contract on mainnet: 0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270
Alternatively, deploy your own collection on Polygon or a testnet:
Collection should have 1,000+ tokens minted
Each NFT is an ERC721 with own unique id
Potentially, have it so each NFT has a "renderer" function defined (more on this below)
NFT Renderer
This is a simple program that is built using "Polywrap". Polywrap allows you to download & run custom code on-the-fly, regardless of what application you're using.
Polywrap Building
#import { Query } into Ethereum from "ens/ethereum.polywrap.io"#import { Content } into Nft from "ens/nft-renderer.jpgmafia.io"typeQuery {
nftRender(
contract: String!id: String!
): Nft_Content!
}
import{Ethereum_Query,Nft_Content,Input_nftRender}from"./generated";import{generateNoiseJpg}from"noise-generator";exportfunctionnftRender(input: Input_nftRender): Nft_Content{// Get some custom propertiesconstgeneration=Ethereum_Query.callContractView({address: input.contract,method: "getGeneration",args: {id: input.id}});constrawBytes=generateNoiseJpg(hash(input.contract+input.id+generation));return{bytes: rawBytes,type: "jpg"// type-safe, only accepts valid values!}}
Smart-Contrace NFT Rendering (W/ Polywrap)
Example Demo
Use the "blockies" library or something new/similar to generate a unique render (image, 3d, sound, video, etc) that is defined by the NFT's unique-id.
How could it work:
Use an NFT Contract
For example, use Artblocks Curated Contract on mainnet:
0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270
Alternatively, deploy your own collection on Polygon or a testnet:
NFT Renderer
This is a simple program that is built using "Polywrap". Polywrap allows you to download & run custom code on-the-fly, regardless of what application you're using.
Polywrap Building
Publishing (IPFS + ETH)!
polywrap deploy
=>wrap://ipfs/QmHASH
hardhat deploy ./src/NtfWithCustomRenderer.sol
contract.setRenderer("wrap://ipfs/QmHASH")
Publishing (ETH-Only) !
hardhat deploy ./src/NtfWithCustomRenderer.sol
Rendering!
Inside your app:
The text was updated successfully, but these errors were encountered: