{"id":15152926,"url":"https://github.com/anuprshetty/nft_staker","last_synced_at":"2026-02-16T21:32:23.441Z","repository":{"id":239188824,"uuid":"798416118","full_name":"anuprshetty/nft_staker","owner":"anuprshetty","description":"A dapp for staking NFTs.","archived":false,"fork":false,"pushed_at":"2024-05-10T14:43:11.000Z","size":559,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-24T21:39:26.761Z","etag":null,"topics":["blockchain","code-coverage","docker","ethereum","etherscan","ethersjs","github-actions","hardhat","ipfs","metamask","mocha-chai","nfts","nginx","openzeppelin","python","reactjs","remix-ide","smart-contracts","solidity","web3js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anuprshetty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-09T18:22:46.000Z","updated_at":"2024-05-10T15:25:48.000Z","dependencies_parsed_at":"2024-05-10T15:54:41.680Z","dependency_job_id":"30c9dab9-fe29-4e19-a091-123cc93cd4a4","html_url":"https://github.com/anuprshetty/nft_staker","commit_stats":null,"previous_names":["anuprshetty/nft_staker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anuprshetty/nft_staker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuprshetty%2Fnft_staker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuprshetty%2Fnft_staker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuprshetty%2Fnft_staker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuprshetty%2Fnft_staker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anuprshetty","download_url":"https://codeload.github.com/anuprshetty/nft_staker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuprshetty%2Fnft_staker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29519323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","code-coverage","docker","ethereum","etherscan","ethersjs","github-actions","hardhat","ipfs","metamask","mocha-chai","nfts","nginx","openzeppelin","python","reactjs","remix-ide","smart-contracts","solidity","web3js"],"created_at":"2024-09-26T16:41:53.860Z","updated_at":"2026-02-16T21:32:23.425Z","avatar_url":"https://github.com/anuprshetty.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NFT Staker\n\nA dapp for staking NFTs.\n\n![nft_staker_dapp](media/nft_staker_dapp.png)\n\n## Smart Contracts\n\n- Token (token_alpha, token_beta, token_gamma)\n- NFTMinter (tom_and_jerry, mickey_mouse, scooby_doo)\n- NFTReward (nft_reward_gold, nft_reward_silver, nft_reward_platinum)\n- NFTStaker (nft_staker)\n\n## Tools and Technologies Used\n\n- nft:\n  - IPFS, NFTs, Python\n- contract:\n  - Smart contracts (ERC20, IERC20, ERC721Enumerable, Ownable, ERC20Burnable, IERC721Receiver)\n  - Hardhat, Ethers.js, Solidity, OpenZeppelin, Remix IDE, Ethereum, EVM (Ethereum Virtual Machine), Blockchain, Etherscan, JavaScript, Mocha Testcases, Solidity code coverage\n- dapp:\n  - React.js, Web3.js, Nginx, Metamask wallet\n- Docker and Containers\n- Ethernal dashboard - EVM compatible private blockchain network explorer.\n- GitHub actions\n\n## How To Run?\n\n- [Upload NFTs to IPFS](./nft/.vscode/tasks.json)\n- [Deploy smart contracts to the blockchain](./contract/.vscode/tasks.json)\n- [Run the dapp](./dapp/.vscode/tasks.json)\n\n## Workflow\n\n1. Token [name, symbol, maxSupply, totalSupply, balanceOf (hash_wallet_accounts)]\n2. NFTMinter [name, symbol, owner, baseURI, maxSupply, totalSupply, cost, customPaymentCurrencies, getCustomPaymentCurrencies]\n3. NFTMinter [mint - with native token for user (not for owner)]\n4. Token [balanceOf (user), approve (all balance tokens of user as an allowance to spend by NFTMinter smart contract), allowance], NFTMinter [mint - with custom token for user (not for owner)]\n5. NFTMinter [totalSupply, balanceOf, walletOfOwner, tokenURI, ownerOf]\n6. Token [balanceOf (NFTMinter smart contract and NFTMinter smart contract owner account)], NFTMinter [withdraw - native token balance AND custom token balance]\n7. NFTReward [name, symbol, owner, maxSupply, totalSupply, balanceOf (owner account), controllers (NFTStaker smart contract)]\n8. NFTStaker [owner, getVaults, vaults, totalStaked]\n9. NFTMinter [setApprovalForAll (set NFTStaker smart contract as operator to handle all NFTs of a particular user account), isApprovedForAll]\n10. NFTStaker [stake, totalStaked, totalStakesOf, stakedTokensOf, stakes]\n11. NFTStaker [fetchReward (after creating a dummy transaction/block in the blockchain - like minting Token for a user), claim], NFTReward [balanceOf]\n12. NFTStaker [unstake, totalStaked, totalStakesOf, stakedTokensOf, stakes], NFTMinter [ownerOf, walletOfOwner]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuprshetty%2Fnft_staker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanuprshetty%2Fnft_staker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuprshetty%2Fnft_staker/lists"}