{"id":22886657,"url":"https://github.com/knightworlds/solana-spl-staker","last_synced_at":"2025-08-11T21:31:51.126Z","repository":{"id":236508991,"uuid":"792748526","full_name":"knightworlds/solana-spl-staker","owner":"knightworlds","description":"stake solana spl token and get other spl token as reward","archived":false,"fork":false,"pushed_at":"2024-04-27T13:19:13.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-03T18:50:10.559Z","etag":null,"topics":["anchor","lock-spl","rust","solana","solana-program","spl","stake","stake-spl"],"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/knightworlds.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-27T13:17:32.000Z","updated_at":"2024-04-27T13:20:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"4397d3c0-aa33-4187-a6aa-b1c517a53089","html_url":"https://github.com/knightworlds/solana-spl-staker","commit_stats":null,"previous_names":["stable0man/solana-spl-staker","billtovitt/solana-spl-staker","knightworlds/solana-spl-staker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightworlds%2Fsolana-spl-staker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightworlds%2Fsolana-spl-staker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightworlds%2Fsolana-spl-staker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightworlds%2Fsolana-spl-staker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knightworlds","download_url":"https://codeload.github.com/knightworlds/solana-spl-staker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229609347,"owners_count":18098169,"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","lock-spl","rust","solana","solana-program","spl","stake","stake-spl"],"created_at":"2024-12-13T20:19:41.471Z","updated_at":"2024-12-13T20:19:41.914Z","avatar_url":"https://github.com/knightworlds.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solana DeFi Stake Program Rust\n# Solana mint spl token (old token program)\n# Solana mint spl authority\n# Solana update spl token metadata\n\n\n## Stake Program\n`programs/staker/src/lib.rs`\nsolana rust program in anchor ehich have 3 functions:\n  1. `create_myspl_ata` create ata for stake frogram for hold user tokens\n  2. `stake` get user token save them in program ata and give the stake token\n  3. `unstake` get stake token back from user and give his token back to him\n\n\n### Get accounts for call stake program functions\nrun script for get functions params address `ts-node scripts/getPdaAndAtaAddressForProgram.ts`\n\n## Mint spl tokens and update them\n`scripts/spl`\n  1. for mint spl token 1st set the `.env` requirements\n  2. set the token metadata in `scripts/spl/splHelper/consts.ts`\n  3. after mint mint address and other info will save in `scripts/spl/outputs` folder with the token name\n\n### Run scripts\n  1. `scripts/spl/call/mint.ts` for mint new spl token (before this `.env` and `conts.ts` should be set)\n  2. `scripts/spl/call/update.ts` for update spl token metadata (before this `.env` and `conts.ts` should be set)\n  3. `scripts/spl/call/disableMintAuthority.ts` for disable mint authority\n  4. `scripts/spl/call/disableMetadataMutable.ts` for disable metadata mutable\n  5. `scripts/spl/call/disableFreezeAuthority.ts` for disable freeze authority\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknightworlds%2Fsolana-spl-staker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknightworlds%2Fsolana-spl-staker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknightworlds%2Fsolana-spl-staker/lists"}