{"id":24667987,"url":"https://github.com/vvizardev/nft-burn-reward-sc","last_synced_at":"2026-05-10T09:56:01.776Z","repository":{"id":256239996,"uuid":"822935223","full_name":"vvizardev/nft-burn-reward-sc","owner":"vvizardev","description":"nft-burn-reward-smart-ocntract : This is the NFT brun_reward program by receiving spl-token($MAD)","archived":false,"fork":false,"pushed_at":"2024-10-05T19:15:00.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T17:19:04.040Z","etag":null,"topics":["anchor","burn","nft","reward","rust","smartcontract","solana"],"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:55:02.000Z","updated_at":"2024-10-05T19:15:04.000Z","dependencies_parsed_at":"2024-09-09T20:08:33.784Z","dependency_job_id":"61e18e45-f9c4-4213-af17-963903e6054f","html_url":"https://github.com/vvizardev/nft-burn-reward-sc","commit_stats":null,"previous_names":["solkeen/nft-burn-reward-sc","wizasol/nft-burn-reward-sc","vvizardev/nft-burn-reward-sc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fnft-burn-reward-sc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fnft-burn-reward-sc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fnft-burn-reward-sc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fnft-burn-reward-sc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vvizardev","download_url":"https://codeload.github.com/vvizardev/nft-burn-reward-sc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244795520,"owners_count":20511521,"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":["anchor","burn","nft","reward","rust","smartcontract","solana"],"created_at":"2025-01-26T08:25:08.717Z","updated_at":"2026-05-10T09:55:56.719Z","avatar_url":"https://github.com/vvizardev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Burn Reward\nThis is the NFT brun_reward program by receiving spl-token($MAD)\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/---/.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/brun_reward.ts`\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##  How to deploy this program?\nFirst of all, you have to git clone in your PC.\nIn the folder `backend`, in the terminal \n1. `yarn`\n\n2. `anchor build`\n   In the last sentence you can see:  \n```\n To deploy this program:\n  $ solana program deploy /home/.../backend/target/deploy/brun_reward.so\nThe program address will default to this keypair (override with --program-id):\n  /home/.../backend/target/deploy/brun_reward-keypair.json\n```  \n3. `solana-keygen pubkey /home/.../backend/target/deploy/brun_reward-keypair.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  `brun_reward = \"5N...x6k\"`\n7. Please add this pubkey to the types.ts\n  `export const BURN_PROGRAM_ID = new PublicKey(\"5N...x6k\");`\n  \n8. `anchor build` again\n9. `solana program deploy /home/.../backend/target/deploy/brun_reward.so`\n10. `yarn ts-node` then  you can get `global_authority`\n11. Run the command line like:\n```powershell\nspl-token transfer GkXn6PUbcvpwAzVCgJFychVhAhjwZRMJWmtqzar3SnqG 8480000 Gx...PNF9 --fund-recipient\n```\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\nThe project owner should initialize the project. the function `initProject`\n```js\n    await initProject();\n```\n\n### Users\nUsers can burn their NFT and receive $MAD by using this program.\n\n```js\nexport const burnReward = async (\n    mint: PublicKey,\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvizardev%2Fnft-burn-reward-sc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvvizardev%2Fnft-burn-reward-sc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvizardev%2Fnft-burn-reward-sc/lists"}