{"id":22878301,"url":"https://github.com/cutupdev/solana-nft-staking-smart-contract","last_synced_at":"2026-03-05T21:14:31.227Z","repository":{"id":231686350,"uuid":"782417032","full_name":"cutupdev/Solana-NFT-Staking-Smart-Contract","owner":"cutupdev","description":"Solana NFT staking smart contract ","archived":false,"fork":false,"pushed_at":"2024-12-05T06:38:51.000Z","size":74,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T04:03:58.573Z","etag":null,"topics":["rust","typescript"],"latest_commit_sha":null,"homepage":"https://anybodies.io/c/kod","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/cutupdev.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-04-05T08:59:55.000Z","updated_at":"2025-03-07T16:04:57.000Z","dependencies_parsed_at":"2024-12-05T07:29:35.111Z","dependency_job_id":"552d1c59-e53d-4663-b99c-cd4ba84410f2","html_url":"https://github.com/cutupdev/Solana-NFT-Staking-Smart-Contract","commit_stats":null,"previous_names":["harmonitech/kod-reward-staking","cutupdev/kod-reward-staking","cutupdev/solana-nft-staking-smart-contract"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutupdev%2FSolana-NFT-Staking-Smart-Contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutupdev%2FSolana-NFT-Staking-Smart-Contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutupdev%2FSolana-NFT-Staking-Smart-Contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutupdev%2FSolana-NFT-Staking-Smart-Contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cutupdev","download_url":"https://codeload.github.com/cutupdev/Solana-NFT-Staking-Smart-Contract/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252787180,"owners_count":21804211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["rust","typescript"],"created_at":"2024-12-13T16:20:18.290Z","updated_at":"2026-03-05T21:14:31.187Z","avatar_url":"https://github.com/cutupdev.png","language":"TypeScript","readme":"# Solana NFT Staking Smart Contract\nSolana nft staking smart contract for Kingdom of Dwarves NFT collections\n#### If you have any question about it, feel free to reach out of me[Whatsapp: https://wa.me/13137423660, Telegram: https://t.me/DevCutup].\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($KCROWN) 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` = 60                                    // A day \n- `REWARD_PER_DAY` = 100_000_000                  // 0.1 $KCROWN \nAccording to the rank of NFTs, there reward amount will be changed automatically following the below logic.\n\n{\n  \"Dwarf\": {\n    \"The Dark Lord\": 2.3,\n    \"Emerald Underlord\": 2.2,\n    \"Irish Archer\": 2,\n    \"Invisible\": 2,\n    \"Fluorite Underlord\": 2.2,\n    \"Lapis Underlord\": 2.2,\n    \"Ruby Underlord\": 2.2,\n    \"Hellbender\": 2,\n    \"Airbender\": 2,\n    \"Palpatine\": 2,\n    \"Avatar\": 2,\n    \"Jack Skellington\": 2,\n    \"England\": 2,\n    \"Mouse\": 2,\n    \"Pepe\": 2,\n    \"Reanimated Undead Fiend\": 1.5,\n    \"Cadaverous Undead Wraith\": 1.5,\n    \"Reanimated Undead Wraith\": 1.4,\n    \"Possessed Undead Wraith\": 1.4,\n    \"Electrified Undead Fiend\": 1.35,\n    \"Electrified Undead Wraith\": 1.35,\n    \"Possessed Undead Fiend\": 1.3,\n    \"Cadaverous Undead Fiend\": 1.3,\n    \"Burned Accursed\": 1.25,\n    \"Demonic Accursed\": 1.25,\n    \"Miner\": 1.42,\n    \"Mauled Accursed\": 1.23,\n    \"Fight Club Accursed\": 1.22,\n    \"Inflicted Accursed\": 1.22,\n    \"Infernal Accursed\": 1.21,\n    \"Corrupted Accursed\": 1.21,\n    \"Reanimated Undead\": 1.2,\n    \"Dwarf of War\": 1.35,\n    \"Cultic Accursed\": 1.22,\n    \"Electrified Undead\": 1.2,\n    \"Possessed Undead\": 1.2,\n    \"Full Moon\": 1.33,\n    \"Mustard Skull Accursed\": 1.23,\n    \"Cadaverous Undead\": 1.22,\n    \"Umber Skull Accursed\": 1.15,\n    \"Ivory Skull Accursed\": 1.15,\n    \"Half Moon Grey\": 1.26,\n    \"Aqua Skull Accursed\": 1.1,\n    \"Half Moon\": 1.15,\n    \"Gametime\": 1.07,\n    \"Bloodied\": 1.07,\n    \"Accursed\": 1.05,\n    \"Neutral\": 1\n  },\n  \"Occupation\": {\n    \"High King\": 2.5,\n    \"King\": 2.2,\n    \"King's Guards\": 1\n  },\n  \"Season\": {\n    \"1\": 1.08,\n    \"2\": 1.07\n  },\n  \"Gemstone\": {\n    \"Diamond\": 1.1,\n    \"Lapis Lazuli\": 1.06,\n    \"Ruby\": 1.05,\n    \"Obsidian\": 1.07,\n    \"Emerald\": 1.04,\n    \"Flourite\": 1.03,\n    \"Amethyst\": 1.01\n  },\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 $KCROWN from their staking.\n- `claimReward`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcutupdev%2Fsolana-nft-staking-smart-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcutupdev%2Fsolana-nft-staking-smart-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcutupdev%2Fsolana-nft-staking-smart-contract/lists"}