{"id":18299988,"url":"https://github.com/chorusone/solido","last_synced_at":"2025-04-05T13:35:31.975Z","repository":{"id":37745866,"uuid":"352397688","full_name":"ChorusOne/solido","owner":"ChorusOne","description":"Lido for Solana is a Lido-DAO governed liquid staking protocol for the Solana blockchain.","archived":false,"fork":false,"pushed_at":"2023-07-11T12:19:32.000Z","size":118995,"stargazers_count":100,"open_issues_count":34,"forks_count":41,"subscribers_count":22,"default_branch":"main","last_synced_at":"2024-06-20T11:49:30.022Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chorusone.github.io/solido/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChorusOne.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audit/2021-07-05-bramah-systems.pdf","citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-28T17:47:34.000Z","updated_at":"2024-05-17T01:48:59.000Z","dependencies_parsed_at":"2024-06-20T11:01:48.624Z","dependency_job_id":"71f484b7-f99b-4d1a-866b-0eb06f0d73cf","html_url":"https://github.com/ChorusOne/solido","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChorusOne%2Fsolido","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChorusOne%2Fsolido/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChorusOne%2Fsolido/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChorusOne%2Fsolido/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChorusOne","download_url":"https://codeload.github.com/ChorusOne/solido/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223192550,"owners_count":17103564,"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":[],"created_at":"2024-11-05T15:11:02.424Z","updated_at":"2024-11-05T15:11:03.537Z","avatar_url":"https://github.com/ChorusOne.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lido for Solana\n\n**Note:** The new upstream is at [lidofinance/solido](https://github.com/lidofinance/solido).\n\n*Lido for Solana* (“Solido” for short) is a [Lido DAO][lido]-governed liquid\nstaking protocol for the Solana blockchain. Anyone who stakes their SOL tokens\nwith Lido will be issued an on-chain representation of the SOL staking position\nwith Lido validators, called *stSOL*.\n\nLido for Solana gives you:\n\n * **Liquidity** — No delegation/activation delays and the ability to sell your\n   staked tokens\n * **One-click staking** — No complicated steps\n * **Decentralized security** — Assets spread across the industry’s leading\n   validators chosen by the Lido DAO\n\nFurther resources:\n\n * [Staking page for end users][stake]\n * [Documentation][documentation]\n * [Blog][blog]\n\n[lido]:          https://lido.fi\n[stake]:         https://solana.lido.fi/\n[documentation]: https://docs.solana.lido.fi/\n[blog]:          https://medium.com/chorus-one\n\n## Deployments\n\nWe continuously develop on the `main` branch in this repository, the code in the\n`main` branch may not reflect what is deployed on-chain. Please check the\n[deployments docs](https://docs.solana.lido.fi/deployments) for the currently\ndeployed version, and see [the changelog](CHANGELOG.md) for which versions are\nintended for deployment.\n\n## Repository layout\n\nThis repository contains the source code for the on-chain program, and for the\n`solido` utility to interact with it. The source code for the staking widget,\nand documentation, are in a different repository, which is not yet public.\n\n * `program` — Solido, the on-chain Solana BPF program that implements Lido for\n   Solana.\n * `anker` — Anker, the on-chain Solana BPF program that implements integration\n   with the [Anchor Protocol][anchor-protocol] on [Terra][terra].\n * `multisig` — A pinned version of the on-chain [Serum multisig\n   program][multisig], used as the upgrade authority of the Solido program, and\n   as the manager of the Solido instance.\n * `cli` — The command-line `solido` utility for interacting with the on-chain\n   programs.\n * `docker` — Dockerfiles for reproducible builds, and for the maintainer image.\n * `testlib` — Utilities for writing tests using the `solana-program-test` test\n   framework. The individual tests are in `program/tests` and `anker/tests`.\n * `tests` — Scripts that test the actual `solido` binary and on-chain program.\n\n[multisig]:        https://github.com/project-serum/multisig\n[anchor-protocol]: https://anchorprotocol.com/\n[terra]:           https://www.terra.money/\n\n## Building\n\nThe on-chain programs and `solido` utility are written in Rust. To build them,\nyou need:\n\n * An x86_64 Linux machine. Mac should work too, but for reproducibility we\n   target Linux.\n * [A Rust toolchain][rust]\n * [The Solana tool suite][solana-tools] (only needed for the on-chain programs,\n   not for the `solido` utility)\n * [Docker][docker] (only needed if you want to [reproduce][reproduce] the\n   official build, or if you want to avoid installing build tools locally)\n * The following system libraries (listed as Debian package names):\n   * `libudev-dev`\n   * `libhidapi-dev`\n   * `pkg-config`\n   * `openssl`\n\nThe Solana version that we test against is listed in our [CI config][ci-config].\n\n[rust]:         https://www.rust-lang.org/tools/install\n[solana-tools]: https://docs.solana.com/cli/install-solana-cli-tools\n[docker]:       https://docs.docker.com/engine/install/\n[reproduce]:    https://chorusone.github.io/solido/development/reproducibility/\n[ci-config]:    https://github.com/ChorusOne/solido/blob/main/.github/workflows/build.yml\n\n### Cloning the repository\n\nThis repository contains a Git submodule. To clone it, pass\n`--recurse-submodules`:\n\n```console\n$ git clone --recurse-submodules https://github.com/chorusone/solido\n```\n\nIf you already cloned the repository without submodules, you can still\ninitialize them later:\n\n```console\n$ git submodule init\n$ git submodule update\n```\n\nIf you have an existing checkout and later update it, make sure to also pass\n`--recurse-submodules` when using `git pull` and `git {checkout,switch}`.\n\n### Solido utility\n\nTo build and test the `solido` utility, use the normal Cargo commands:\n\n```console\n$ cargo test\n$ cargo build --release\n```\n\nThe `solido` binary can then be found in `target/release`.\n\n### On-chain programs\n\nBuilding the on-chain programs requires [the Solana tool suite][solana-tools]:\n\n```console\n$ cargo build-bpf\n$ cargo test-bpf\n```\n\nThe programs `lido.so`, `anker.so`, and `serum_multisig.so` can then be found in\n`target/deploy`.\n\n### Docker container\n\nTo build the container image, use `buildimage.sh`. This will build and package\nSolido along with the Solana toolchain into an image `chorusone/solido:«hash»`,\nwhere _«hash»_ will be the Git hash of the current version of the codebase.\n\nOnce built, one can execute into the container interactively:\n\n```console\n$ docker run --interactive --tty --rm chorusone/solido:hash /bin/sh\n```\n\nThis will provide a shell into the working directory where the Solido artefacts\nand the Solana toolchain are located. Inside that directory, the the `solido`\nutility is in `solido/cli`, and the on-chain programs are in `solido/deploy`.\n\n## License\n\nLido for Solana is licensed under the GNU General Public License version 3.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchorusone%2Fsolido","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchorusone%2Fsolido","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchorusone%2Fsolido/lists"}