Liquid Stake with compassSOL for an 8.94% APY from staking, MEV + fees
Enjoy the freedom of liquid staking in Solana Defi while delegating your stake to the high performance Solana Compass validator. Stake or unstake at any time here, or with a Jupiter swap.
Benefit from our high staking returns and over 2 years experience operating a Solana validator, and receive additional yield from priority fees + MEV tips
Earn 8.9% APY staking with Solana Compass
Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 8.9% APY yield on your SOL, while supporting us to create new guides and tools. Learn more
Stake your SOL
- Click to connect your wallet
- Enter the amount you wish to stake
- Kick back and enjoy your returns
- Unstake from your wallet or our staking dashboard
Earn 8.9% APY staking with Solana Compass
Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 8.9% APY yield on your SOL, while supporting us to create new guides and tools.
Breakpoint 2023: Solang: Running Solidity Natively on Solana
Published on 2023-11-09
An introduction to Solang, a tool that compiles Solidity code to run natively on the Solana blockchain.
Summary
During the Breakpoint 2023 conference, Lucas, a representative from Solana Labs, introduced Solang, a novel Solidity compiler designed to facilitate the running of Solidity smart contracts directly on the Solana blockchain. This breakthrough presents a bridge between Ethereum-developed Solidity contracts and the Solana ecosystem, fostering easier portability and reducing the learning curve for Ethereum developers venturing into Solana. Lucas emphasizes the architectural differences between emulating the Ethereum Virtual Machine (EVM) and running code natively on Solana, and he delineates the advantages of native execution such as performance enhancements and direct interaction with Solana's features.
Key Points:
What is Solang?
Solang is a Solidity-to-Solana compiler that enables developers to write smart contracts in Solidity, the programming language widely used on the Ethereum blockchain, and deploy them on Solana without emulation layers. The tool provides developers with an integrated development environment (IDE) file, which is necessary for interacting with smart contracts through TypeScript code. Solang boasts compatibility with the latest Solidity syntax, grants access to Solana-specific features, and is conveniently integrated with the Anchor CLI, a command tool that streamlines the development process on Solana.
Why Is Solang Significant?
Solang is newsworthy because it bridges the gap between two major blockchain platforms: Ethereum and Solana. This compatibility simplifies the transition for developers familiar with Solidity who want to leverage Solana's fast and cost-efficient blockchain. It reduces the need to relearn programming or port entire projects into Rust, which is the primary language used for Solana smart contracts. Furthermore, Solang supports shared libraries and interfaces, allowing codebase reuse across multiple platforms such as Ethereum, Solana, and Polkadot.
How Does Solang Work?
Solidity smart contracts consist of two parts: the bytecode (program account) which executes the code, and the data account which holds the contract's state. Solang compiles Solidity code into Solana bytecode, which is then deployed to a program account. When interacting with the smart contract, such as calling functions or constructing objects, one interacts with both the bytecode and the data account. Solang also integrates leading Solana features like Program Derived Addresses (PDAs) and allows smart contracts to engage directly with native Solana tools such as the SPL token system.
Solang's Readiness and Contributions
Lucas confirms that Solang is production-ready, citing that it has undergone two security audits with all issues addressed, and documentation is readily available. The tool's examples and codebase are open source, allowing for community contributions. Moreover, Solang aims at providing a developer experience on par with that of Rust in the Solana ecosystem. The team actively seeks contributions in the form of tutorials, additional examples, or library enhancements.
Facts + Figures
- Solang compiles Solidity code to run natively on the Solana blockchain.
- It is up to date with the latest Solidity syntax.
- Solang facilitates interactions between Solidity and Solana's native features.
- The Anchor CLI tool is used to initialize, test, and deploy Solidity projects on Solana.
- Unlike EVM emulation approaches, Solang runs contracts natively.
- Solang supports Solidity constructs in Solana such as PDAs and the SPL token system.
- The tool can interact with other contracts created with Anchor Rust.
- It is designed to simplify the transition from Ethereum to Solana for developers.
- Solang has been subjected to two security audits and is considered production-ready.
- The tool and its related resources are open source, with contributions welcomed.
Top quotes
- "Solang is a Solidity compiler that allows developers to write Solidity code and run natively on Solana."
- "You can do almost anything possible on Solidity if you use Solang."
- "We support basically all Solana features."
- "Solang is very easy... you need to learn about Solana."
- "Solang outputs an IDE file for you to call other contracts in Solana."
Questions Answered
What is Solang?
Solang is a tool that compiles Solidity smart contracts so that they can run natively on the Solana blockchain without requiring emulation. This allows developers familiar with Solidity to make use of Solana's capabilities directly.
Why should Ethereum developers care about Solang?
Developers who are well-versed in Solidity can now benefit from the high performance and low cost of Solana without having to rewrite contracts in Rust or learn a new programming paradigm. Solang offers a gentle learning curve and a faster, simpler transition to Solana's growing ecosystem.
What are the benefits of running Solidity natively on Solana with Solang?
Running Solidity natively on Solana using Solang allows developers to utilize the full suite of Solana's features and optimize their smart contracts for performance. It eliminates the overhead associated with EVM emulation and allows direct interaction with core system functions, such as SPL token operations.
How does Solang compare to EVM emulation methods like Neon?
Solang differs from EVM emulation methods like Neon in that it allows Solidity contracts to run directly on Solana's infrastructure, whereas emulation methods recreate an Ethereum-like environment on Solana, which can introduce additional complexity and overhead.
Is Solang ready for production use?
Yes, Solang is ready for production. The project has completed two security audits and resolved identified issues. Documentation and examples are available, and there’s a strong encouragement for community contributions.
On this page
Related Content
Breakpoint 2023: ZK on Solana: Private Solana Programs
An exploration of zero-knowledge proofs for enhanced privacy on the Solana blockchain.
Breakpoint 2023: Web3 Security and Best Practices
An in-depth look at securing the Web3 environment with industry best practices and tools.
Breakpoint 2023: How Helium Migrated to Solana
The migration of the Helium network to Solana blockchain.
Breakpoint 2023: Water from a Stone: Liquid Staking on Solana
A deep dive into the evolving landscape of liquid staking on the Solana blockchain featuring key industry players.
Breakpoint 2023: A World in a Grain of Sand: State Compression on Solana
Exploring the possibilities of blockchain scalability with state compression technology on Solana.
Breakpoint 2023: Social Media on Solana
An in-depth look at the evolving landscape of social media on the Solana blockchain from the perspectives of key industry players.
Breakpoint 2023: The Investor Nation
Mongolian entrepreneur shares a vision for transforming Mongolia's economy through blockchain technology
Breakpoint 2023: How MetaKeep Onboarded 4.3 Billion People to Web3
MetaKeep's strategy to revolutionize and simplify blockchain technology adoption.
Breakpoint 2023: How to Store Solana NFTs On-Chain - A Brief Overview
An insightful exploration into the essentials of storing NFTs on Solana's blockchain.
Breakpoint 2023: Redefining Music Ownership
An exploration into Boombox Labs' mission to reshape music ownership and fan interaction in the digital age.
Breakpoint 2023: Bonds Can Be Interesting, Too
Introducing stable bonds on the blockchain, fostering growth and stability in the DeFi ecosystem.
Breakpoint 2023: tBTC comes to Solana
Discussions on the integration of tBTC, a decentralized Bitcoin, into the Solana ecosystem.
Breakpoint 2023: Fuzzing, Formal Methods, and the State of Solana Security
An exploration of how fuzzing and formal verification techniques contribute to the security of the Solana blockchain.
Breakpoint 2023: Star Atlas Session
A visionary presentation on Star Atlas's intersection of gaming and blockchain on the Solana platform.
Breakpoint 2023: Youth in Web3
Exploring the journey, challenges, and advice of young professionals in the Web3 ecosystem.
- Our Validator
- Borrow / Lend
- Liquidity Pools
- Token Swaps & Trading
- Yield Farming
- Solana Explained
- Is Solana an Ethereum killer?
- Transaction Fees
- Why Is Solana Going Up?
- Solana's History
- What makes Solana Unique?
- What Is Solana?
- How To Buy Solana
- Solana's Best Projects: Dapps, Defi & NFTs
- Choosing The Best Solana Validator
- Staking Rewards Calculator
- Liquid Staking
- Can You Mine Solana?
- Solana Staking Pools
- Staking On Solana
- How To Unstake Solana
- How To Unstake Solana
- How validators earn
- Best Wallets For Solana