Liquid Stake with compassSOL for an 8.04% 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.8% APY staking with Solana Compass

Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 6.8% 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.8% APY staking with Solana Compass

Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 6.8% 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 Changelog

Published on 2023-07-19

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

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 dive into exciting new developments in the Solana ecosystem. From community-led hackathons to technical proposals and innovative tools, this week's update showcases the vibrant and rapidly evolving Solana landscape.

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 hackathon presents a unique opportunity for developers to showcase their creativity and build innovative applications that leverage Solana's unique capabilities.

Jacob emphasizes the significance of this event, 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's theme underscores Solana's distinctive features, such as its high speed, low cost, and scalability, which enable developers to create applications that might not be feasible on other blockchain platforms. This event serves as an excellent platform for both seasoned Solana developers and newcomers to the ecosystem to demonstrate their skills and innovative ideas.

Jacob further encourages participation, saying, "So this is the 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. So if you've ever been thinking of, are on the edge of, should I build on Solana, this is the perfect place to start."

The "Only Possible on Solana" hackathon not only provides an opportunity for developers to build and showcase their projects but also offers exposure to a wider audience within the Solana community. This exposure can be invaluable for developers looking to gain traction for their projects or to make a name for themselves in the Solana ecosystem.

Active Stake SYSVAR Proposal

One of the key technical proposals discussed in this episode is a new SYSVAR for querying active stake on the Solana network. This proposal, which is still under discussion and not yet accepted, aims to introduce a mechanism for on-chain querying of the percentage stake per vote account on the cluster.

Jacob explains the proposal: "What this proposal outlines is a SYSVAR that allows you to on-chain query the percentage stake per vote account on the cluster. So 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."

This proposed SYSVAR could have far-reaching implications for various on-chain applications, particularly those related to staking and validator interactions. By providing on-chain access to information about the percentage of stake associated with each validator's vote account, this SYSVAR could enable more sophisticated and efficient staking strategies and validator selection mechanisms.

The potential applications of this SYSVAR are numerous. For instance, it could be used to develop more advanced on-chain governance systems that take into account the relative stake of different validators. It could also enable the creation of more dynamic and responsive staking pools that automatically adjust their strategies based on real-time stake distribution across the network.

Jacob encourages community participation in the discussion of this proposal: "So it's a cool proposal. 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 call for community involvement highlights the open and collaborative nature of Solana's development process. By inviting developers and stakeholders to contribute their thoughts and ideas, the Solana ecosystem ensures that new features and improvements are thoroughly vetted and aligned with the needs of the community.

Improvements to Anchor IDL Generation

A significant update in the Solana development ecosystem comes in the form of improvements to how Anchor generates its Interface Description Language (IDL) files. Anchor, a popular framework for building Solana programs, is set to receive enhancements that will streamline the process of working with Solana programs and improve overall developer experience.

John elaborates on these improvements: "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 updates to Anchor's IDL generation process are poised to significantly enhance the development workflow for Solana developers. By including external types and supporting generics, the new IDL generation process will provide more comprehensive and accurate representations of Solana programs. This, in turn, will lead to more robust and error-resistant client-side interactions with these programs.

One of the key benefits of this update is the reduction of boilerplate code on the client side. By including more detailed information in the IDL, developers will be able to interact with Anchor programs more efficiently, with less need for repetitive or redundant code. This not only saves time but also reduces the potential for errors in client-side implementations.

Jacob adds an important point about the flexibility this update brings: "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 decoupling of IDL generation from the program build process offers developers more flexibility in their workflow. It allows for quicker iterations on the client side without necessarily requiring a full rebuild of the program. This can significantly speed up the development process, especially when working on the client-side implementation of a Solana program.

Moreover, these improvements to IDL generation are likely to enhance the composability of Solana programs. With more detailed and accurate IDLs, it becomes easier for developers to understand and interact with different programs, potentially leading to more complex and interesting integrations between various Solana applications.

Switchboard Functions: Bridging Off-Chain and On-Chain

One of the most exciting developments highlighted in this episode is the release of Switchboard Functions. Switchboard, known for its oracle solutions in the Solana ecosystem, has introduced a powerful new tool that bridges the gap between off-chain computation and on-chain verification.

John explains the concept: "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."

This innovative approach opens up a world of possibilities for Solana developers. By allowing arbitrary code execution off-chain with subsequent on-chain verification, Switchboard Functions enables developers to leverage complex computations or access external data sources without compromising the integrity and security of the blockchain.

The potential applications of Switchboard Functions are vast and varied. John suggests some potential use cases: "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."

In the context of gaming, Switchboard Functions could be used to implement complex game mechanics that require intensive computations, which might be impractical to perform entirely on-chain. For instance, it could be used to generate random numbers with verifiable fairness, simulate complex in-game events, or even integrate real-world data into game mechanics.

Beyond gaming, Switchboard Functions could find applications in various other domains. For example:

  1. Decentralized Finance (DeFi): Complex financial calculations or risk assessments could be performed off-chain and then verified on-chain, enabling more sophisticated DeFi protocols.

  2. Supply Chain Management: Off-chain data about product movement or conditions could be processed and then reliably brought on-chain for transparent supply chain tracking.

  3. Prediction Markets: Complex event outcome calculations could be performed off-chain and then verified on-chain, enabling more accurate and efficient prediction markets.

  4. Machine Learning Integration: Machine learning models could be run off-chain, with their outputs verified and recorded on-chain, opening up possibilities for AI-driven on-chain applications.

The flexibility of Switchboard Functions to work with "any code" makes it a powerful tool for developers looking to push the boundaries of what's possible on Solana. It bridges the gap between the limitless possibilities of off-chain computation and the security and transparency of on-chain verification.

John encourages developers to explore this new tool: "Definitely go check it out and see what you can build with it. I have yet to see people build with things with it because it just came out."

This call to action highlights the cutting-edge nature of Switchboard Functions and the excitement around its potential. As developers begin to experiment with this new tool, we can expect to see innovative applications that leverage the power of off-chain computation while maintaining the integrity and transparency of the Solana blockchain.

The Importance of Community-Driven Development

Throughout the discussion, a recurring theme emerges: the importance of community participation in Solana's development. From the upcoming hackathon to the ongoing discussions about new SYSVARs, the Solana ecosystem thrives on the active involvement of its developer community.

The "Only Possible on Solana" hackathon exemplifies this community-driven approach. By providing a platform for developers to showcase their innovations, Solana is not only fostering creativity but also driving the evolution of its ecosystem. Each project developed during the hackathon has the potential to push the boundaries of what's possible on Solana, contributing to the platform's growth and maturity.

Similarly, the open discussion around the proposed Active Stake SYSVAR demonstrates Solana's commitment to collaborative development. By inviting developers to contribute their thoughts and ideas, Solana ensures that new features and improvements are aligned with the needs of the community and are thoroughly vetted before implementation.

This community-driven approach extends to the tools and frameworks within the Solana ecosystem as well. The improvements to Anchor's IDL generation process, for instance, are likely the result of feedback and contributions from the developer community. By continuously refining and enhancing these tools based on real-world usage and developer needs, Solana maintains a robust and developer-friendly ecosystem.

The release of Switchboard Functions further underscores the innovative spirit of the Solana community. By providing developers with powerful tools to bridge off-chain and on-chain functionality, Switchboard is enabling the creation of more complex and feature-rich applications on Solana.

Solana's Growing Ecosystem

The developments discussed in this episode of the Solana Changelog paint a picture of a vibrant and rapidly evolving ecosystem. From low-level improvements like new SYSVARs to high-level tools like Switchboard Functions, Solana continues to expand its capabilities and refine its developer experience.

The upcoming "Only Possible on Solana" hackathon serves as a testament to the platform's unique strengths. By challenging developers to create applications that are only possible on Solana, the event highlights the platform's distinctive features - its high speed, low cost, and scalability - that set it apart in the blockchain space.

The proposed Active Stake SYSVAR, if implemented, would provide developers with powerful new tools for creating more sophisticated on-chain applications, particularly in the realms of staking and validator interactions. This kind of low-level improvement demonstrates Solana's commitment to providing developers with the primitives they need to build increasingly complex and efficient applications.

At the same time, improvements to developer tools like Anchor show Solana's dedication to enhancing the developer experience. By streamlining processes like IDL generation and reducing boilerplate code, these improvements make it easier and more efficient for developers to build on Solana.

The introduction of Switchboard Functions represents a significant leap forward in bridging the gap between off-chain computation and on-chain verification. This innovative tool opens up new possibilities for developers, enabling them to create more complex and feature-rich applications while maintaining the security and transparency of the blockchain.

Conclusion

This episode of the Solana Changelog provides a snapshot of an ecosystem in constant motion. From community events to technical proposals, from tool improvements to innovative new features, Solana continues to push the boundaries of what's possible in blockchain technology.

The upcoming "Only Possible on Solana" hackathon promises to showcase the unique capabilities of the Solana platform and the creativity of its developer community. The proposed Active Stake SYSVAR, if implemented, will provide developers with powerful new tools for on-chain applications. Improvements to Anchor's IDL generation process will streamline the development workflow, while Switchboard Functions opens up exciting new possibilities for bridging off-chain and on-chain functionality.

These developments collectively paint a picture of a thriving ecosystem that is continuously evolving to meet the needs of its developers and users. As Solana continues to grow and mature, we can expect to see even more innovative applications and use cases emerge, further solidifying Solana's position as a leading platform for blockchain development.

The Solana Changelog serves as an important resource for staying up-to-date with these rapid developments. By tuning in regularly, developers, users, and enthusiasts can keep their finger on the pulse of the Solana ecosystem, ensuring they're always aware of the latest tools, features, and opportunities available on the platform.

As we look forward to future episodes of the Changelog, one thing is clear: the pace of innovation in the Solana ecosystem shows no signs of slowing down. With each passing week, new developments emerge that push the boundaries of what's possible on blockchain, and Solana is at the forefront of this exciting frontier.

Facts + Figures

  • The "Only Possible on Solana" hackathon is scheduled to run from August 1st to August 21st.
  • A new SYSVAR proposal is under discussion that would allow on-chain querying of the percentage stake per vote account on the Solana cluster.
  • Anchor, a popular framework for building Solana programs, is receiving updates to its IDL generation process.
  • The new Anchor IDL generation will enable inclusion of external types, add support for generics, and include more information to reduce boilerplate code on the client side.
  • The updated Anchor IDL generation process can generate IDLs based on macros, without requiring a full program build.
  • Switchboard has released Switchboard Functions, a tool that allows execution of arbitrary code off-chain with subsequent on-chain verification.
  • Switchboard Functions can be particularly useful for gaming applications, as highlighted by the mention of an ongoing Game Jam.
  • The Solana Changelog is a regular update on developments in the Solana ecosystem, hosted by John and Jacob from the Solana Foundation DevRel team.
  • The Solana community is encouraged to participate in discussions about new proposals through the Solana Improvement Documents (SIMD) repository.

Questions Answered

What is the "Only Possible on Solana" hackathon?

The "Only Possible on Solana" hackathon is an upcoming event running from August 1st to August 21st. It's a community-led hackathon that challenges developers to build applications that showcase Solana's unique capabilities. The event is designed to highlight the features that set Solana apart, such as its high speed, low cost, and scalability, which enable developers to create applications that might not be feasible on other blockchain platforms.

What is the new SYSVAR proposal discussed in the podcast?

The new SYSVAR proposal discussed in the podcast is for a mechanism that would allow on-chain querying of the percentage stake per vote account on the Solana cluster. This proposal, which is still under discussion and not yet accepted, aims to provide programs with the ability to access information about validator stakes directly on-chain. This could enable more sophisticated applications related to staking, validator interactions, and potentially governance mechanisms.

What improvements are coming to Anchor's IDL generation?

Anchor, a popular framework for building Solana programs, is receiving updates to its Interface Description Language (IDL) generation process. The new updates will enable the inclusion of external types in the IDL, add support for generics, and overall include more information in the IDL. These improvements aim to reduce boilerplate code on the client side when working with Anchor programs, making it easier and more efficient for developers to interact with Solana programs.

What are Switchboard Functions?

Switchboard Functions is a new tool released by Switchboard, known for its oracle solutions in the Solana ecosystem. This tool allows developers to execute arbitrary code off-chain and then use Switchboard's oracle solution to verify and put that information on-chain. It bridges the gap between off-chain computation and on-chain verification, enabling more complex applications on Solana while maintaining blockchain integrity and security.

How can developers participate in discussions about new Solana proposals?

Developers can participate in discussions about new Solana proposals by visiting the Solana Improvement Documents (SIMD) repository. For the SYSVAR proposal discussed in this episode, developers are encouraged to join the conversation, add their comments, and contribute to shaping the future of Solana. This open approach to development ensures that new features and improvements are thoroughly vetted and aligned with the needs of the Solana community.

Related Content

Solana Changelog July 18 - Active Stake Sysvar and Generating IDLs

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.

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 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 15 - Bankrun JS, Bubblegum, and Radiance

Explore the latest Solana updates including game jam success, new developer tools, light client progress, and innovative local testing solutions

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 - 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 - 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 - 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 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 - Bridge Comparator, Program Loader v4, Feature Gates, and More

Discover the latest Solana developments including Jupiter's bridge comparator, Program Loader v4, feature gates, and more in this comprehensive changelog.

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 Jul 3 - RPC Deprecations, Actions, and Blinks

Explore Solana's latest developments including RPC method deprecations, new Actions and Blinks features, and upcoming changes to compute unit charging.

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.