{"id":30779591,"url":"https://github.com/vvizardev/marinade-liquid-stake-fork","last_synced_at":"2026-03-07T12:01:31.636Z","repository":{"id":250870609,"uuid":"833191602","full_name":"vvizardev/marinade-liquid-stake-fork","owner":"vvizardev","description":"This project implements a Marinade-compatible Liquid Staking smart contract on Solana with a full suite of Web3-based test cases.                       solana-liquid-stake-smart-contract-staking solana-liquid-stake-smart-contract-staking solana-liquid-stake-smart-contract-staking solana-liquid-stake-smart-contract-staking ","archived":false,"fork":false,"pushed_at":"2025-08-07T08:34:49.000Z","size":42922,"stargazers_count":40,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-21T07:39:05.507Z","etag":null,"topics":["anchor","liquid","marinade","native","rust","smart-contract","solana","stake"],"latest_commit_sha":null,"homepage":"https://marinade.finance/","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-24T14:32:08.000Z","updated_at":"2026-01-16T11:22:26.000Z","dependencies_parsed_at":"2025-09-04T22:43:26.405Z","dependency_job_id":"e1475af6-961a-4fbc-9b2f-e139ea4f5fa9","html_url":"https://github.com/vvizardev/marinade-liquid-stake-fork","commit_stats":null,"previous_names":["anti-dominator/staking-contract-nft-pnft-cnft","solkeen/staking-contract-nft-pnft-cnft","wizasol/staking-contract-nft-pnft-cnft","vvizardev/solana-ai-agent-trade","vvizardev/nft-staking-contract","wizasol/nft-staking-contract","vvizardev/marinade-liquid-stake-fork"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vvizardev/marinade-liquid-stake-fork","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fmarinade-liquid-stake-fork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fmarinade-liquid-stake-fork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fmarinade-liquid-stake-fork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fmarinade-liquid-stake-fork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vvizardev","download_url":"https://codeload.github.com/vvizardev/marinade-liquid-stake-fork/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fmarinade-liquid-stake-fork/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30212485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T09:02:10.694Z","status":"ssl_error","status_checked_at":"2026-03-07T09:02:08.429Z","response_time":53,"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":["anchor","liquid","marinade","native","rust","smart-contract","solana","stake"],"created_at":"2025-09-05T06:44:09.242Z","updated_at":"2026-03-07T12:01:31.464Z","avatar_url":"https://github.com/vvizardev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Marinade Liquid Staking Smart Contract\n\nThis project implements a Marinade-compatible Liquid Staking smart contract on Solana with a full suite of Web3-based test cases.\n\n## 📦 Features\n\n- Stake SOL and receive mSOL (Marinade Staked SOL)\n- Unstake to receive SOL back\n- mSOL/SOL accounting via Marinade protocol\n- Web3-based test suite with `@solana/web3.js` and `@project-serum/anchor`\n- Simulates staking/unstaking in a local test validator\n\n## 📁 Project Structure\n\n```\n.\n├── programs/\n│   └── marinade_staking/       # Solana smart contract (Anchor)\n├── tests/\n│   └── marinade.test.ts        # Web3 test cases\n├── migrations/\n├── Anchor.toml\n├── Cargo.toml\n└── README.md\n```\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- [Anchor](https://book.anchor-lang.com/)\n- [Solana CLI](https://docs.solana.com/cli/install-solana-cli-tools)\n- Node.js \u003e= 16\n- Yarn or NPM\n\n### Install\n\n```bash\ngit clone https://github.com/your-username/marinade-liquid-staking.git\ncd marinade-liquid-staking\nyarn install\n```\n\n### Build \u0026 Deploy Locally\n\n```bash\nanchor build\nanchor deploy\n```\n\n### Run Tests\n\n```bash\nanchor test\n```\n\n## 🧪 Example Test Case\n\n```ts\nit(\"Stake SOL and receive mSOL\", async () =\u003e {\n  const tx = await program.methods\n    .stake(new anchor.BN(1_000_000_000)) // 1 SOL\n    .accounts({\n      user: user.publicKey,\n      marinadeState: marinadeStatePDA,\n      msolMint: msolMint,\n      systemProgram: SystemProgram.programId,\n    })\n    .signers([user])\n    .rpc();\n\n  const msolBalance = await getTokenBalance(userMsolATA);\n  assert.ok(msolBalance \u003e 0, \"User should receive mSOL\");\n});\n```\n\n## 🔐 Smart Contract (Program)\n\n- Written in Rust using [Anchor](https://github.com/coral-xyz/anchor)\n- Interacts with Marinade's on-chain staking pool\n- Performs CPI calls to stake/unstake\n\n## 📜 License\n\nMIT License\n\n---\n\n### 🤝 Credits\n\nBuilt on top of the [Marinade Finance](https://marinade.finance) staking protocol.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvizardev%2Fmarinade-liquid-stake-fork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvvizardev%2Fmarinade-liquid-stake-fork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvizardev%2Fmarinade-liquid-stake-fork/lists"}