{"id":24493331,"url":"https://github.com/cutupdev/solana-nft-unstaking","last_synced_at":"2025-09-08T15:47:47.325Z","repository":{"id":231686345,"uuid":"779589485","full_name":"cutupdev/Solana-NFT-Unstaking","owner":"cutupdev","description":"Solana NFT Unstaking Smart Contract","archived":false,"fork":false,"pushed_at":"2025-06-27T12:13:01.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T23:53:35.437Z","etag":null,"topics":["javascript","nft-staking","smart-contracts","typescript","web3","web3js"],"latest_commit_sha":null,"homepage":"https://artpunks.fun/","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-30T08:30:32.000Z","updated_at":"2025-03-07T16:04:56.000Z","dependencies_parsed_at":"2024-04-05T10:55:34.269Z","dependency_job_id":"b4f05d73-7ca1-491b-9984-bbbcc61f38d7","html_url":"https://github.com/cutupdev/Solana-NFT-Unstaking","commit_stats":null,"previous_names":["harmonitech/artpunk-unstaking","cutupdev/artpunk-unstaking","cutupdev/solana-nft-unstaking"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cutupdev/Solana-NFT-Unstaking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutupdev%2FSolana-NFT-Unstaking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutupdev%2FSolana-NFT-Unstaking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutupdev%2FSolana-NFT-Unstaking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutupdev%2FSolana-NFT-Unstaking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cutupdev","download_url":"https://codeload.github.com/cutupdev/Solana-NFT-Unstaking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutupdev%2FSolana-NFT-Unstaking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274209602,"owners_count":25241787,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["javascript","nft-staking","smart-contracts","typescript","web3","web3js"],"created_at":"2025-01-21T19:21:08.024Z","updated_at":"2025-09-08T15:47:47.296Z","avatar_url":"https://github.com/cutupdev.png","language":"TypeScript","readme":"# Nft-Staking-Contract\n\n## Install Dependencies\n\n- Install `node` and `yarn`\n- Install `script` as global command\n- Confirm the solana wallet preparation. ex: `wallet.json`\n\n## Usage\n\n- Main script source for all functionality is here: `/lib/script.ts`\n- Program account types are declared here: `/lib/types.ts`\n\nAble to test the script functions working in this way.\n\n- Change commands properly in the main functions of the `script.ts` file to call the other functions\n- Run `yarn script` with parameters\n\n# Features\n\n## How to deploy this program?\n\nFirst of all, you have to git clone in your PC.\nIn the folder `nft_staking-staking`, in the terminal\n\n1. `yarn`\n\n2. `anchor build`\n   In the last sentence you can see:\n\n```\nTo deploy this program:\n  $ solana program deploy ./target/deploy/nft_staking.so\nThe program address will default to this keypair (override with --program-id):\n  ./target/deploy/nft_staking-keypair.json\n```\n\n3. `solana-keygen pubkey ./target/deploy/nft_staking.json`\n4. You can get the pubkey of the `program ID : ex.\"5N...x6k\"`\n5. Please add this pubkey to the lib.rs\n   `declare_id!(\"5N...x6k\");`\n6. Please add this pubkey to the Anchor.toml\n   `nft_staking = \"5N...x6k\"`\n7. `anchor build` again\n8. `solana program deploy ./target/deploy/nft_staking.so`\n\n\u003cp align = \"center\"\u003e\nThen, you can enjoy this program \n\u003c/p\u003e\n\u003c/br\u003e\n\n## How to use?\n\n### A Project Owner\n\nFirst of all, open the directory and `yarn`\n\n#### Initialize project\n\n```js\n   yarn script init\n```\n\n### A Player\n\n#### Stake NFT\n\n```js\n   yarn script stake -m \u003cMINT ADDRESS\u003e\n```\n\n#### Unstake NFT\n\n```js\n   yarn script unstake -m \u003cMINT ADDRESS\u003e\n```\n\n#### Get user status\n\n```js\n   yarn script user-status -a \u003cUSER_ADDRESS\u003e\n```\n\nGet status of user \u003cUSER_ADDRESS\u003e.\n\n#### Get all users\n\n```js\n   yarn script get-users\n```\n\nGet all users stake info\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcutupdev%2Fsolana-nft-unstaking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcutupdev%2Fsolana-nft-unstaking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcutupdev%2Fsolana-nft-unstaking/lists"}