{"id":24667992,"url":"https://github.com/vvizardev/astronaut-nft-staking","last_synced_at":"2026-01-11T06:03:23.344Z","repository":{"id":253466425,"uuid":"822935070","full_name":"vvizardev/astronaut-nft-staking","owner":"vvizardev","description":"astronaut-nft-staking : Multiple Factor Rewards Staking program for Astronaut NFT collections.","archived":false,"fork":false,"pushed_at":"2024-10-05T19:14:48.000Z","size":126,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T04:34:34.073Z","etag":null,"topics":["nft","reward","smart-contract","solana","staking"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/vvizardev.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-07-02T05:54:31.000Z","updated_at":"2024-10-24T16:09:53.000Z","dependencies_parsed_at":"2024-08-16T22:58:47.535Z","dependency_job_id":"4f3745d0-e5d0-49cb-a3d7-506cd81f6fa9","html_url":"https://github.com/vvizardev/astronaut-nft-staking","commit_stats":null,"previous_names":["solkeen/astronaut-nft-staking","wizasol/astronaut-nft-staking","vvizardev/astronaut-nft-staking"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vvizardev/astronaut-nft-staking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fastronaut-nft-staking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fastronaut-nft-staking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fastronaut-nft-staking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fastronaut-nft-staking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vvizardev","download_url":"https://codeload.github.com/vvizardev/astronaut-nft-staking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fastronaut-nft-staking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28293188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"last_error":"SSL_read: 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":["nft","reward","smart-contract","solana","staking"],"created_at":"2025-01-26T08:25:15.299Z","updated_at":"2026-01-11T06:03:23.327Z","avatar_url":"https://github.com/vvizardev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NFT-staking-Death\nMultiple Factor Rewards Staking program for Astronaut NFT collections. This has 3 models to stake NFTs.\n\n\u003ch4\u003e 📞 Cᴏɴᴛᴀᴄᴛ ᴍᴇ Oɴ ʜᴇʀᴇ: 👆🏻 \u003c/h4\u003e\n\n\u003cp\u003e \n    \u003ca href=\"mailto:nakao95911@gmail.com\" target=\"_blank\"\u003e\n        \u003cimg alt=\"Email\"\n        src=\"https://img.shields.io/badge/Email-00599c?style=for-the-badge\u0026logo=gmail\u0026logoColor=white\"/\u003e\n    \u003c/a\u003e\n     \u003ca href=\"https://x.com/_wizardev\" target=\"_blank\"\u003e\u003cimg alt=\"Twitter\"\n        src=\"https://img.shields.io/badge/Twitter-000000?style=for-the-badge\u0026logo=x\u0026logoColor=white\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://discordapp.com/users/471524111512764447\" target=\"_blank\"\u003e\u003cimg alt=\"Discord\"\n        src=\"https://img.shields.io/badge/Discord-7289DA?style=for-the-badge\u0026logo=discord\u0026logoColor=white\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://t.me/wizardev\" target=\"_blank\"\u003e\u003cimg alt=\"Telegram\"\n        src=\"https://img.shields.io/badge/Telegram-26A5E4?style=for-the-badge\u0026logo=telegram\u0026logoColor=white\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Install Dependencies\n- Install `node` and `yarn`\n- Install `ts-node` as global command\n- Confirm the solana wallet preparation: `/home/fury/.config/solana/id.json` in test case\n\n## Usage\n- Main script source for all functionality is here: `/cli/script.ts`\n- Program account types are declared here: `/cli/types.ts`\n- Idl to make the JS binding easy is here: `/cli/staking_program.json`\n\nAble to test the script functions working in this way.\n- Change commands properly in the main functions of the `script.ts` file to call the other functions\n- Confirm the `ANCHOR_WALLET` environment variable of the `ts-node` script in `package.json`\n- Run `yarn ts-node`\n\n## Features\n\n### As a Smart Contract Owner\nFor the first time use, the Smart Contract Owner should `initialize` the Smart Contract for global account allocation.\n- `initProject`\n \nRecall `initialize` function for update the Threshold values after change the constants properly\n- `initProject` \n\nMaintain the Reward token($COSMIC) vault's balance\n- `REWARD_TOKEN_MINT` is the reward token mint (for test).\n- `rewardVault` is the reward token account for owner. The owner should have the token's `Mint Authority` or should `Fund` regularly.\n\nThis is current test value. Should be revised properly.\n- `EPOCH` = 86400                                   // A day \n- According to the rank of NFTs, there reward amount will be changed automatically following the below logic.\n```\nModel 1: \nTrait based \nAdventurer: 20 $coin a day \nScientist: 25 $coin a day \nDoctor: 30 coin a day \nMission Specialist: 35 $coin a day \nCommander: 40 $coin a day\nIf you claim before 15 days, you will receive 75% and after 15 days, will receive 100%.\n\nModel 2 \nRewards are paid daily and they are the same for all NFTS, so x $coin a day for everything \n\nModel 3 \n7 days x $coin \n14 days 1.5x $coin \n30 days+ 2x $coin\n```\n\n### As a NFT Holder\nStake Shred Collection NFTs with NFT `mint address` and a boolean parameter weather the NFT is Legendary NFT.\n- `stakeNft`\n\n### As a Staker\nUnstake their staked NFTs with `mint address` and get rewards. ( Calculate generated reward by this NFT too )\n- `withdrawNft`\n\nClaim reward to receive generated $COSMIC from their staking.\n- `claimReward`\n\nClaim reward to receive generated $COSMIC from their staking for all NFTs.\n- `claimRewardAll`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvizardev%2Fastronaut-nft-staking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvvizardev%2Fastronaut-nft-staking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvizardev%2Fastronaut-nft-staking/lists"}