[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10625":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":16,"starSnapshotCount":16,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},10625,"solang","hyperledger-solang\u002Fsolang","hyperledger-solang","Solidity Compiler for Solana, Polkadot and Stellar","https:\u002F\u002Fsolang.readthedocs.io\u002F",null,"Rust",1381,270,21,202,0,4,55.7,"Apache License 2.0",false,"main",true,[24,25,26,27,28,29,30,31,32,33,34,35],"blockchain","bpf","compiler","polkadot","rust","smart-contracts","solana","solidity","soroban","stellar","substrate","wasm","2026-06-13 04:00:49","\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fhyperledger\u002Fsolang\u002Fmain\u002Fdocs\u002Fhl_solang_horizontal-color.svg\" alt=\"Solang Logo\" width=\"75%\"\u002F>\n\n# solang - Solidity Compiler for Solana, Polkadot and Soroban\n\n[![Discord](https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F905194001349627914?logo=Hyperledger&style=plastic)](https:\u002F\u002Fdiscord.gg\u002Fhyperledger)\n[![CI](https:\u002F\u002Fgithub.com\u002Fhyperledger-solang\u002Fsolang\u002Fworkflows\u002Ftest\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fhyperledger-solang\u002Fsolang\u002Factions)\n[![Documentation Status](https:\u002F\u002Freadthedocs.org\u002Fprojects\u002Fsolang\u002Fbadge\u002F?version=latest)](https:\u002F\u002Fsolang.readthedocs.io\u002Fen\u002Flatest\u002F?badge=latest)\n[![license](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fhyperledger\u002Fsolang.svg)](LICENSE)\n[![LoC](https:\u002F\u002Ftokei.rs\u002Fb1\u002Fgithub\u002Fhyperledger\u002Fsolang?category=lines)](https:\u002F\u002Fgithub.com\u002Fhyperledger-solang\u002Fsolang)\n\nWelcome to Solang, a new Solidity compiler written in rust which uses\nllvm as the compiler backend. Solang can compile Solidity for Solana, Soroban and the\nPolkadot Parachains with the `contracts` pallet.\nSolang is source compatible with Solidity 0.8,\nwith some caveats due to differences in the underlying blockchain.\n\nSolang is under active development right now, and has\n[extensive documentation](https:\u002F\u002Fsolang.readthedocs.io\u002Fen\u002Flatest\u002F).\n\n## Solana\n\nPlease follow the [Solang Getting Started Guide](https:\u002F\u002Fsolana.com\u002Fdevelopers\u002Fguides\u002Fsolang\u002Fgetting-started).\n\nSolang is part of the [Solana Tools Suite](https:\u002F\u002Fdocs.solana.com\u002Fcli\u002Finstall-solana-cli-tools) (version v1.16.3 and higher).\nThere is no need to install it separately.\n\n## Installation\n\nSolang is available as a Brew cask for MacOS, with the following command:\n\n```\nbrew install hyperledger\u002Fsolang\u002Fsolang\n```\n\nFor other operating systems, please check the [installation guide](https:\u002F\u002Fsolang.readthedocs.io\u002Fen\u002Flatest\u002Finstalling.html).\n\n## Build for Polkadot\n\nRun the following command, selecting the flipper example available on Solang's repository:\n\n```bash\nsolang compile --target polkadot examples\u002Fpolkadot\u002Fflipper.sol\n```\n\nAlternatively if you want to use the solang container, run:\n\n```\ndocker run --rm -it -v $(pwd):\u002Fsources ghcr.io\u002Fhyperledger\u002Fsolang compile -v -o \u002Fsources --target polkadot \u002Fsources\u002Fflipper.sol\n```\nYou will have a file called flipper.contract. You can use this directly in\nthe [Contracts UI](https:\u002F\u002Fcontracts-ui.substrate.io\u002F),\nas if your smart contract was written using ink!.\n\n\n## Build for Soroban\n\nSelect one of the supported contracts for Soroban, available in on Solang's repository:\n\n```bash\nsolang compile --target soroban examples\u002Fsoroban\u002Ftoken.sol\n```\n\nYou will have a file called `token.wasm`. Deploy it using the [`Stellar CLI`](https:\u002F\u002Fdevelopers.stellar.org\u002Fdocs\u002Ftools\u002Fcli), after following the [`Stellar CLI Setup Manual`](https:\u002F\u002Fdevelopers.stellar.org\u002Fdocs\u002Fbuild\u002Fsmart-contracts\u002Fgetting-started\u002Fsetup):\n\n``` bash\nstellar contract deploy --source-account alice --wasm token.wasm --network testnet -- --_admin alice --_name SolangToken --_symbol SOLT --_decimals 18\nℹ️  Skipping install because wasm already installed\nℹ️  Using wasm hash b1c84d8b8057a62fb6d77ef55c9e7fb2e66c74136c7df32efd87a1c9d475f1b0\nℹ️  Simulating deploy transaction…\nℹ️  Transaction hash is fc3b1f00d2940e646d210e6e96347fd45dc8dd873009604ec67957edb6f6589d\n🔗 https:\u002F\u002Fstellar.expert\u002Fexplorer\u002Ftestnet\u002Ftx\u002Ffc3b1f00d2940e646d210e6e96347fd45dc8dd873009604ec67957edb6f6589d\nℹ️  Signing transaction: fc3b1f00d2940e646d210e6e96347fd45dc8dd873009604ec67957edb6f6589d\n🌎 Submitting deploy transaction…\n🔗 https:\u002F\u002Fstellar.expert\u002Fexplorer\u002Ftestnet\u002Fcontract\u002FCDGUMUXA6IRRVMMKIVQJWLZZONDXBJ4AITHQS757PTBVAL4U54HI3KEW\n✅ Deployed!\nCDGUMUXA6IRRVMMKIVQJWLZZONDXBJ4AITHQS757PTBVAL4U54HI3KEW\n```\n\nOnce deployed, copy the deployed contract ID and interact with it:\n\n``` bash\nstellar contract invoke --network testnet --id CDGUMUXA6IRRVMMKIVQJWLZZONDXBJ4AITHQS757PTBVAL4U54HI3KEW  --source-account alice -- mint --to alice --amount 120\nℹ️  Signing transaction: e0d68ae85bfbe0fceed8bcadd6613e12b3159f27dbf7c18e35e94de2b4a11ee2\n```\n\n\n\n## Tentative roadmap\n\nSolang has a high level of compatibility with many blockchains. We are trying to ensure the compiler stays\nup to date with the newest Solidity syntax and features.  In addition, we focus on bringing new performance optimizations\nand improve developer experience.\nHere is a brief description of what we envision for the next versions.\n\n### V0.4\n\n| Feature                                            | Status                                               |\n|----------------------------------------------------|------------------------------------------------------|\n| Improve management over optimization passes        | Not started                                          |\n| Adopt single static assignment for code generation | In progress                                          |\n| Support openzeppelin on Polkadot target            | In progress                                          |\n| Provide Solidity -> Polkadot porting guide         | Not started                                          |\n| Declare accounts for a Solidity function on Solana | In progress                                          |\n| Tooling for calls between ink! \u003C> solidity         | In progress                                          |\n| Provide CLI for node interactions                  | [Done](https:\u002F\u002Fgithub.com\u002Fhyperledger-solang\u002Fsolang-aqd)    |\n| Support all [Soroban examples](https:\u002F\u002Fgithub.com\u002Fstellar\u002Fsoroban-examples) | In progress |\n\n## License\n\n[Apache 2.0](LICENSE)\n","solang 是一个为 Solana、Polkadot 和 Soroban 平台编译 Solidity 智能合约的编译器。它使用 Rust 语言编写，并以 LLVM 作为后端，支持将 Solidity 代码编译成适用于不同区块链平台的字节码或 WASM 文件。该项目与 Solidity 0.8 版本兼容，但因各链特性的差异存在一些限制。solang 适合于希望在上述任一平台上部署智能合约的开发者使用，尤其是那些熟悉 Solidity 且希望跨多个生态系统复用其技能和代码库的团队。通过提供针对特定目标（如 Polkadot 的 `.contract` 文件或 Soroban 的 `.wasm` 文件）生成正确格式输出的能力，solang 简化了跨链智能合约开发流程。",2,"2026-06-11 03:29:23","top_topic"]