Giter Site home page Giter Site logo

scorelab / nft-toolbox Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 44.0 1.66 MB

A non-fungible token (NFT) is a non-interchangeable unit of data stored on a blockchain, a form of digital ledger, that can be sold and traded. Each NFT has its own unique identity. Design NFT’s along with building a web3 dapp, that can mint NFTs.

License: Apache License 2.0

TypeScript 100.00%

nft-toolbox's People

Contributors

abhikul10 avatar charithccmc avatar mbcse avatar sadashaykanungo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nft-toolbox's Issues

Url of image in documentation is wrong

While trying to run the documentation there was an error which was related to wrong URL of image that URL needs to be fixed just need to change one line of code

Screenshot 2023-02-08 at 11 46 02 AM

Add support for nested NFTs

These are NFTs that can contain other NFTs as sub-assets. For example, a game item NFT may contain a separate NFT that represents a character's skin. To add support for nested NFTs, we must include logic for creating, managing, and accessing sub-assets within NFTs. We also need to allow for the creation of NFTs that contain other NFTs as properties or attributes. This would require changes to the data structures used to represent NFTs and the addition of functionality to manage the creation, ownership, and transfer of nested NFTs.

Create Contract Class with Write method

Description

Create the Contract class containing:

  • Required attributes of Contract
  • Attributes for Customizations in minting process
  • Write Method to generate a Solidity file based on Attributes and Customizations

Impact

src / contract.ts

npm install error

Getting this error after cloning the repo and installing packages using npm
node version : 18.15.0

npm install

Error


npm WARN deprecated [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: Please upgrade to v7.0.2+ of superagent.  We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing.  See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm ERR! code 1
npm ERR! path I:\University\Coding\Gsoc\NFT-Toolbox\node_modules\canvas
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\BN GAMING\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=I:\University\Coding\Gsoc\NFT-Toolbox\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=I:\University\Coding\Gsoc\NFT-Toolbox\node_modules\canvas\build\Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using [email protected]
npm ERR! node-pre-gyp info using [email protected] | win32 | x64
npm ERR! node-pre-gyp info check checked for "I:\University\Coding\Gsoc\NFT-Toolbox\node_modules\canvas\build\Release\canvas.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.9.1/canvas-v2.9.1-node-v108-win32-unknown-x64.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.1/canvas-v2.9.1-node-v108-win32-unknown-x64.tar.gz 
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v108 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.1/canvas-v2.9.1-node-v108-win32-unknown-x64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.11.2 found at "C:\Users\BN GAMING\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack     at VisualStudioFinder.fail (C:\Users\BN GAMING\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack     at C:\Users\BN GAMING\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Users\BN GAMING\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:369:14)
npm ERR! gyp ERR! stack     at C:\Users\BN GAMING\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack     at C:\Users\BN GAMING\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:390:16
npm ERR! gyp ERR! stack     at C:\Users\BN GAMING\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack     at C:\Users\BN GAMING\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack     at ChildProcess.exithandler (node:child_process:427:5)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at maybeClose (node:internal/child_process:1091:16)
npm ERR! gyp ERR! System Windows_NT 10.0.19045
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\BN GAMING\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=I:\\University\\Coding\\Gsoc\\NFT-Toolbox\\node_modules\\canvas\\build\\Release\\canvas.node" "--module_name=canvas" "--module_path=I:\\University\\Coding\\Gsoc\\NFT-Toolbox\\node_modules\\canvas\\build\\Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v108"
npm ERR! gyp ERR! cwd I:\University\Coding\Gsoc\NFT-Toolbox\node_modules\canvas
npm ERR! gyp ERR! node -v v18.15.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\BN GAMING\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=I:\University\Coding\Gsoc\NFT-Toolbox\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=I:\University\Coding\Gsoc\NFT-Toolbox\node_modules\canvas\build\Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (I:\University\Coding\Gsoc\NFT-Toolbox\node_modules\@mapbox\node-pre-gyp\lib\util\compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1091:16)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19045
npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "I:\\University\\Coding\\Gsoc\\NFT-Toolbox\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"npm ERR! node-pre-gyp ERR! cwd I:\University\Coding\Gsoc\NFT-Toolbox\node_modules\canvas
npm ERR! node-pre-gyp ERR! node -v v18.15.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.9
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\BN GAMING\AppData\Local\npm-cache\_logs\2023-03-25T13_14_12_485Z-debug-0.log

Create Collection Class with Generate Method

Description

Create the Collection class containing:

  • Required attributes of an NFT Collection
  • Folder Paths for NFT and Metadata
  • Schema for Layer Images
  • Generate Method to generate NFT and Metadata files from Layer Schema

Impact

src / collection.ts

Add support for dynamic NFTs

These are NFTs that can change over time. For example, they may have an associated value that changes based on external factors such as market conditions. To add support for dynamic NFTs, we must modify the smart contract code to include functions that allow for the updating of NFT metadata or other attributes. We also need to add functions to allow for the creation and destruction of NFTs based on certain conditions or events.

I tried running nft-toolbox and i couldnt see a start script for development server

On running npm test I get:

> [email protected] test
> ts-mocha tests/*.spec.ts


Error: Unknown/Unsupported currency
    at getCurrency (/home/hikari/dev/NFT-Toolbox/node_modules/@bundlr-network/client/src/node/currencies/index.ts:60:19)
    at new NodeBundlr (/home/hikari/dev/NFT-Toolbox/node_modules/@bundlr-network/client/src/node/bundlr.ts:24:42)
    at new Arweave (/home/hikari/dev/NFT-Toolbox/src/classes/Arweave.ts:17:21)
    at Object.<anonymous> (/home/hikari/dev/NFT-Toolbox/tests/Arweave.spec.ts:45:24)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Module.m._compile (/home/hikari/dev/NFT-Toolbox/node_modules/ts-node/src/index.ts:439:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Object.require.extensions.<computed> [as .ts] (/home/hikari/dev/NFT-Toolbox/node_modules/ts-node/src/index.ts:442:12)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Function.Module._load (node:internal/modules/cjs/loader:828:14)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at Object.exports.requireOrImport (/home/hikari/dev/NFT-Toolbox/node_modules/mocha/lib/nodejs/esm-utils.js:49:16)
    at Object.exports.loadFilesAsync (/home/hikari/dev/NFT-Toolbox/node_modules/mocha/lib/nodejs/esm-utils.js:91:20)
    at singleRun (/home/hikari/dev/NFT-Toolbox/node_modules/mocha/lib/cli/run-helpers.js:125:3)
    at Object.exports.handler (/home/hikari/dev/NFT-Toolbox/node_modules/mocha/lib/cli/run.js:370:5)

Installation or version error

Hi, I tried to install the program. and it ended up showing this error , can you guys please help me find out what's wrong here...
image

Add support for soulbound NFTs

These are NFTs that cannot be transferred or sold to other addresses. They are typically used in games to represent unique in-game items that are tied to a specific player's account. To add support for soulbound NFTs, we need to modify the smart contract code to include logic that restricts transfers of certain NFTs based on specific conditions. We must also modify the NFT ownership model to allow for NFTs that specific addresses or contracts can only own

Add support for ERC-1151 standard

This standard proposes a way to represent NFTs as a single smart contract rather than having a separate smart contract for each NFT. This reduces the overhead and helps to scale NFTs better.

User Guide

Description

Create a User Guide with graphics and examples

Impact

User Guide added

Initialize Boilerplate for smart contract and frontend

I will be intilalizing Boilerplate for both smart contract and react. For smart contract boilerplate I'll use hardhat (https://hardhat.org/) its a popular library for smart contract and for frontend I'll use npx to setup react boilerplate.

Folder Structure:
client
react boilerplate
smart_contract
hardhat boilerplate.

Create NFT Class

Description

Create an NFT class with required attfibutes of a single NFT.

Impact

src/ NFT.ts

Add Deploy method to Contract class

Description

  • Configure Hardhat
  • Add Deploy method in Contract class to deploy the smart contract to blockchain

Impact

src/ contract.ts (Modify)

Add support for ERC-998 standard

This standard enables the creation of composable and hierarchical non-fungible tokens, allowing for the creation of complex digital assets that can be split, combined, and recombined.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.