Challenge #3
Repository contains two folders:
- nft-uploader
- nft-contract
Contains script, that is used to upload all 50 images to nft.storage using API.
Contains smart contract source code, which was builded and deployed to nft.ippishio.testnet
Contains all logic behind frontend page using THREE.js and near-api-js libraries. Near.js contains all blokchain integration logic, and Main.js for all other. When mint button is pressed, Near.js generates randID(used for pick random nft from collection), and passes it to the nft_mint() contract method. After approving transaction, there is transactionHash in URL args, which contains response from mint_nft() with the same randID, that was passed. After this, randID is used to render NFT image in THREE.js