Liquid Stake with compassSOL for an 9.66% 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 6.9% APY staking with Solana Compass

Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 6.9% APY yield on your SOL, while supporting us to create new guides and tools. Learn more

Stake your SOL

  1. Click to connect your wallet
  2. Enter the amount you wish to stake
  3. Kick back and enjoy your returns
  4. Unstake from your wallet or our staking dashboard

Earn 6.9% APY staking with Solana Compass

Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 6.9% APY yield on your SOL, while supporting us to create new guides and tools.

Learn more

Solana Changelog July 18 - Active Stake Sysvar and Generating IDLs

By Solana-Changelog

Published on 2023-07-19

Explore the latest Solana developments including a new SIMD proposal for active stake queries, improvements to Anchor IDL generation, and the launch of Switchboard Functions for off-chain code execution.

The notes below are AI generated and may not be 100% accurate. Watch the video to be sure!

Solana Changelog: Active Stake Sysvar, IDL Generation, and Switchboard Functions

In the latest episode of the Solana Changelog, John and Jacob from the Solana Foundation DevRel team discuss exciting developments in the Solana ecosystem. This week's highlights include an upcoming community-led hackathon, a new SIMD proposal for querying active stake, improvements to Anchor's IDL generation, and the launch of Switchboard Functions. Let's dive into these topics and explore their implications for the Solana ecosystem.

The "Only Possible on Solana" Hackathon

The Solana community is gearing up for an exciting event - the "Only Possible on Solana" hackathon, scheduled to run from August 1st to August 21st. This community-led initiative aims to showcase the unique capabilities of the Solana blockchain and inspire developers to create innovative applications that leverage its strengths.

Jacob emphasized the significance of this hackathon, stating, "This hackathon is really good for anybody that wants to build something within the Solana community. And I love the theme 'Only Possible on Solana'. There's a lot of things that Solana enables, for example, just take the easy and simple example of consumer level applications."

The hackathon presents an excellent opportunity for developers to demonstrate their creativity and technical skills while building on Solana. It's particularly beneficial for those who are new to the ecosystem or have been considering developing on Solana but haven't taken the plunge yet. As Jacob noted, "This is the perfect place to showcase your product, build something cool and get in front of a lot of new people that have never seen anything on Solana before."

The "Only Possible on Solana" theme encourages participants to explore and utilize Solana's unique features, such as its high throughput, low transaction costs, and composability. These characteristics enable developers to create applications that may not be feasible or practical on other blockchain platforms.

For aspiring Solana developers, this hackathon offers a golden opportunity to dive into the ecosystem, learn from experienced developers, and potentially gain recognition for their innovative ideas. The event is likely to attract a diverse range of participants, from seasoned blockchain developers to newcomers eager to explore the potential of Solana.

SIMD Proposal: Active Stake Sysvar

One of the key topics discussed in this episode is a new Solana Improvement Document (SIMD) proposal. This proposal focuses on introducing a sysvar that would allow on-chain programs to query the percentage of stake per vote account on the Solana cluster.

Jacob explained the proposal: "This week's proposal is, I believe it is about SISFARs for figuring out the active stake on the cluster. So this proposal is still being discussed. It's not an accepted proposal yet. What this proposal outlines is a SISFAR that allows you to on-chain query the percentage stake per vote account on the cluster."

The proposed sysvar would provide valuable information about the distribution of stake across different validators on the Solana network. This data could be utilized in various ways within smart contracts and decentralized applications (dApps).

Jacob highlighted some potential use cases: "You can think of different applications for this. You can think of doing things with staking with this, understanding doing more things with the validators and their vote accounts on chain within programs. So this will enable a lot more things on chain, specifically with different validators and what their percentage of stake on the network is."

By making this information available on-chain, the proposal aims to enhance the capabilities of Solana programs, particularly in areas related to staking, validator interactions, and network governance. Developers could leverage this data to create more sophisticated staking protocols, implement validator-aware features, or design new governance mechanisms that take into account the distribution of stake across the network.

It's important to note that this proposal is still in the discussion phase and has not yet been accepted. The Solana community is encouraged to review the proposal and contribute to the ongoing conversation. Jacob emphasized the open nature of the discussion: "If you want to join into the conversation or the discussion, just go to the SIMD under the Solana Improvement Documents repository and join the discussion. Add your comments. Let's see where we can get with this."

This proposal demonstrates the continuous efforts within the Solana ecosystem to improve and expand the capabilities of the blockchain. By proposing new features and improvements, the community ensures that Solana remains at the forefront of blockchain technology, offering developers and users an ever-expanding toolkit for building and interacting with decentralized applications.

Anchor IDL Generation Improvements

Another significant development highlighted in this episode is an update to how Anchor generates its Interface Description Language (IDL) files. Anchor, a popular framework for building Solana programs, is receiving improvements that will streamline the process of interacting with Anchor-based programs and enhance overall composability.

John detailed the commit: "The commit highlight of the week has to do with updates to how Anchor generates its IDL. This new update will enable inclusion of external types to the IDL, add support for generics, and overall is a basis for including more info in the IDL to remove simple plate from the client side when working with Anchor programs."

These improvements to IDL generation are set to have a significant impact on Solana development. By including external types and supporting generics, the new IDL generation process will provide more comprehensive and accurate representations of Anchor programs. This enhanced information will be particularly beneficial for client-side development, reducing the need for boilerplate code and simplifying the process of interacting with Anchor programs.

The update also marks a shift in how IDLs are generated. Jacob noted, "This is kind of like generating the IDL outside of the program build, right? It's like you don't have to run Anchor build to generate the IDL anymore, which would also build the program itself. It can generate based off of, I believe, like the macros."

This change in the IDL generation process offers several advantages:

  1. Faster Development: Developers can now generate IDLs without rebuilding the entire program, potentially speeding up the development process.

  2. Improved Flexibility: The ability to generate IDLs based on macros provides more flexibility in how program interfaces are defined and documented.

  3. Enhanced Composability: With more detailed IDLs, it becomes easier for different Solana programs to interact with each other, fostering greater composability within the ecosystem.

  4. Simplified Client Development: The inclusion of more information in the IDL reduces the amount of boilerplate code needed on the client side, making it easier to develop front-end applications that interact with Solana programs.

These improvements to Anchor's IDL generation process represent a significant step forward for Solana development. By simplifying the interaction between programs and clients, and enhancing the overall developer experience, these updates contribute to making Solana an even more attractive platform for building decentralized applications.

Switchboard Functions: Off-Chain Execution with On-Chain Verification

The final major topic discussed in this episode is the recent release of Switchboard Functions. Switchboard, known for its oracle solutions in the Solana ecosystem, has introduced a new feature that allows developers to execute arbitrary code off-chain and securely bring the results on-chain.

John introduced the feature: "Switchboard released this past week. Switchboard functions. So, Switchboard functions is kind of like a way that you can take any amount of code and be able to execute it off-chain and then using their Oracle solution, be able to verify and put that information on-chain."

Switchboard Functions represents a significant advancement in bridging the gap between off-chain computation and on-chain verification. This feature opens up new possibilities for developers, enabling them to perform complex computations or access external data sources without the limitations of on-chain execution, while still maintaining the security and trustlessness of blockchain technology.

The flexibility of Switchboard Functions is one of its key strengths. As John noted, "It's really cool since it's like any code." This means developers are not limited to predefined operations or data sources. They can write custom code to perform a wide range of tasks, from complex calculations to API calls, and then bring the results on-chain in a verifiable manner.

While the feature is new and its full potential is yet to be explored, John suggested some potential applications: "There's probably a lot of different things you can do with games. I know the Game Jam is this week. So if you want to try using Switchboard Oracle's or the functions within the Game Jam, definitely try it out."

Some potential use cases for Switchboard Functions could include:

  1. Gaming: Implementing complex game logic off-chain while maintaining on-chain state and verification.
  2. DeFi: Performing intricate financial calculations or risk assessments off-chain and bringing the results on-chain for use in DeFi protocols.
  3. Data Analysis: Analyzing large datasets off-chain and providing summarized or processed data to on-chain applications.
  4. AI/ML Integration: Running machine learning models off-chain and utilizing the predictions or insights in on-chain applications.
  5. External API Integration: Fetching and processing data from various external APIs and bringing verified results on-chain.

The introduction of Switchboard Functions aligns well with Solana's focus on high performance and scalability. By allowing complex computations to occur off-chain, it helps prevent blockchain bloat and keeps on-chain operations lean and efficient. At the same time, the Oracle-based verification ensures that the results of these off-chain computations can be trusted and used securely within on-chain applications.

As developers begin to explore and experiment with Switchboard Functions, we can expect to see innovative use cases emerge. This feature has the potential to significantly expand the capabilities of decentralized applications on Solana, enabling more complex and data-rich applications while maintaining the security and decentralization benefits of blockchain technology.

Conclusion

This episode of the Solana Changelog highlights several exciting developments in the Solana ecosystem. The upcoming "Only Possible on Solana" hackathon presents an excellent opportunity for developers to showcase their skills and push the boundaries of what's possible on the Solana blockchain. The SIMD proposal for an active stake sysvar demonstrates the ongoing efforts to enhance Solana's on-chain capabilities, potentially enabling new use cases in staking and governance.

The improvements to Anchor's IDL generation process represent a significant step forward in simplifying Solana development and enhancing program composability. These changes will likely contribute to a more streamlined and efficient development experience on Solana.

Finally, the introduction of Switchboard Functions opens up new possibilities for integrating off-chain computation with on-chain verification, potentially enabling more complex and data-rich applications on Solana.

These developments collectively underscore Solana's commitment to innovation and continuous improvement. As the ecosystem evolves, we can expect to see increasingly sophisticated and powerful applications built on Solana, further cementing its position as a leading blockchain platform for decentralized applications.

Facts + Figures

  • The "Only Possible on Solana" hackathon is scheduled to run from August 1st to August 21st.
  • A new SIMD proposal aims to introduce a sysvar for querying the percentage of stake per vote account on the Solana cluster.
  • The proposed sysvar would enable on-chain programs to access information about stake distribution across validators.
  • Anchor, a popular framework for building Solana programs, is receiving updates to its IDL generation process.
  • The new Anchor IDL generation will support the inclusion of external types and generics.
  • The updated IDL generation process aims to reduce boilerplate code on the client side when working with Anchor programs.
  • Switchboard has released a new feature called Switchboard Functions.
  • Switchboard Functions allows developers to execute arbitrary code off-chain and securely bring the results on-chain.
  • The flexibility of Switchboard Functions enables its use in various applications, including gaming and DeFi.
  • The Solana Game Jam is ongoing, providing an opportunity for developers to experiment with Switchboard Functions in game development.

Questions Answered

What is the "Only Possible on Solana" hackathon?

The "Only Possible on Solana" hackathon is a community-led event running from August 1st to August 21st. It aims to showcase the unique capabilities of the Solana blockchain by encouraging developers to create innovative applications that leverage Solana's strengths. The hackathon provides an opportunity for both experienced and new developers to build on Solana, demonstrate their creativity, and potentially gain recognition for their ideas.

What does the new SIMD proposal for active stake sysvar aim to achieve?

The new SIMD proposal aims to introduce a sysvar that would allow on-chain programs to query the percentage of stake per vote account on the Solana cluster. This would provide valuable information about the distribution of stake across different validators on the Solana network. The proposal, if accepted, could enable new use cases in areas such as staking, validator interactions, and network governance by making this information available on-chain.

How are Anchor IDL generation improvements enhancing Solana development?

The improvements to Anchor's IDL generation process are enhancing Solana development by enabling the inclusion of external types to the IDL, adding support for generics, and including more information in the IDL. These updates aim to reduce boilerplate code on the client side when working with Anchor programs, simplify the process of interacting with Anchor-based programs, and enhance overall composability. Additionally, the new process allows for IDL generation outside of the program build, potentially speeding up the development process.

What are Switchboard Functions and how do they benefit Solana developers?

Switchboard Functions is a new feature released by Switchboard that allows developers to execute arbitrary code off-chain and securely bring the results on-chain using their Oracle solution. This feature benefits Solana developers by enabling them to perform complex computations or access external data sources without the limitations of on-chain execution, while still maintaining the security and trustlessness of blockchain technology. Switchboard Functions can be applied to various use cases, including gaming, DeFi, data analysis, and AI/ML integration.

How does the Solana ecosystem continue to evolve and improve?

The Solana ecosystem continues to evolve and improve through various initiatives and developments. These include community-led events like the "Only Possible on Solana" hackathon, ongoing proposals for new features (such as the active stake sysvar), improvements to developer tools like Anchor, and the introduction of new capabilities like Switchboard Functions. These efforts collectively contribute to enhancing Solana's capabilities, improving the developer experience, and enabling the creation of more sophisticated and powerful decentralized applications on the platform.

Related Content

Solana Changelog July 18 - Active Stake Sysvar and Generating IDLs

Explore the latest Solana developments, including a new SYSVAR for active stake, improvements to Anchor IDL generation, and Switchboard's innovative off-chain functions.

Solana Changelog March 7 - Verifiable Builds, Admin RPC, and Geyser

Explore the latest Solana developments including verifiable builds, admin RPC improvements, and Geyser interface updates for enhanced performance and security.

Solana Changelog May 8 - MoveStake, Core Concepts, and Bigtable Support

Explore the latest Solana developments including the MoveStake proposal, CLI enhancements, Bigtable support for test validators, and revamped core concept documentation.

Solana Changelog - January 17, 2023 - SIMD 3, Compute Cost Updates, Golana

Dive into the latest Solana developments including the SIMD 3 proposal for dynamic base fees, compute cost updates, and the introduction of Golana for Go developers.

Solana Changelog - MoveStake, Core Concepts, and Bigtable Support

Explore the latest Solana developments including MoveStake proposal, CLI improvements, and revamped core concept documentation. Learn how these changes enhance the Solana ecosystem.

Solana Changelog May 31: Interfaces, Solang, and Solana ChatGPT

Explore the latest Solana developments including interfaces, Solang Compiler v0.3.0, and the new Solana ChatGPT plugin in this comprehensive changelog.

Solana Changelog - August 1 - Gamejam, RWA, Quick Program Deploys

Explore the latest Solana developments including the Game Jam, RWA security token standards, and improved program deployment speeds in this week's Changelog.

Solana Changelog July 6 - Cubik, SPL-token, and Solana-Tools

Explore the latest Solana developments including Cardinal Labs shutdown, Jupiter's Token 2022 adoption, Cubik's tooling round, and proposed SPL-token improvements.

Solana Changelog - January 31, 2023 - Geyser Improvements, Program-Test, and Bokken

Explore the latest Solana developments including a proposed fee market for storage, Geyser improvements, and the game-changing Bokken debugger for Solana programs.

Solana Changelog - April 9 - Flare and GetEpochStake

Discover the latest Solana developments including the Flare CLI for smart contract interaction, GetEpochStake proposal, and crucial performance enhancements for validators.

Solana Changelog Oct 30th

Explore the latest Solana developments including Old Faithful RPC on Filecoin, verified builds in Explorer, and a new transaction size specification

Solana Changelog May 16 - IDL Standard, 1.14.17, and Dune Analytics

Discover the latest Solana developments, including IDL standardization, 1.14.17 release progress, and Dune Analytics integration for enhanced on-chain data analysis.

Solana Changelog July 6 - Cubik, SPL-token, and Solana-Tools

Explore the latest Solana updates including Cardinal Labs shutdown, Jupiter's Token 2022 support, Cubik's tooling round, and new developer resources

Solana Changelog May 23 - Lite RPC, Programmable Smart Wallets, and Idle Games

Explore the latest Solana updates including Lite RPC for efficient transactions, programmable smart wallets, and exciting developments in game creation on the blockchain.

Solana Changelog - Token Extensions and Transaction Size Fees

Explore Solana's latest developments including token extensions, transaction size fees, and the upcoming Mountain Dew 5 event in this comprehensive changelog.