800USDC Total Prizes | ||
500 USDC 1st 300 USDC 2nd |
4
SUBMISSIONS
Syncing...
REMAINING
SKILLS NEEDED
RELATED LIVE LISTINGS
As developers in the Solana ecosystem, understanding the space requirements for storing state data in Anchor is crucial. Space is expensive, and optimizing it is essential for efficient program execution and cost-effectiveness. Therefore, we are launching this bounty to encourage the development of a solution that calculates the required space for a state in Anchor.
Here’s the problem: Whenever you want to add a new state to your program in Anchor, the process of looking up the anchor space reference can be time-consuming and straightforward. Building a tool to simplify this process doesn't necessarily require complex technology.
While the exact solution for this problem may not be defined yet, here are some suggestions:
Aim for a website as the preferred implementation.
Consider incorporating features that streamline the process and integrate seamlessly, such as:
Allowing users to select the state directly in their code and triggering a shortcut to calculate the required space.
Enabling users to conveniently paste the calculated result directly into their code / Automatically paste it into their code.
Explore other intuitive functionalities that enhance efficiency and ease of use.
The result could look like this:
impl MyState {
pub const MAX_SIZE: usize = 32 + // authority: Pubkey
1 + // count: u8
}
Account for scenarios where users have types without a fixed size, such as Vec or String. Provide a mechanism that allows them to define a maximum size for the items in the array or the characters in the string, ensuring accurate space calculations.
This seamless integration can be developed within a short timeframe, requiring just a few days of work. By implementing this solution, builders can save significant time and ensure the accuracy of their space calculations.
🥇 First Prize:
$500 USDC
Member status in Superteam
🥈 Second Prize
$300 USDC
Functionality
Does your project have a clean and simple-to-use UI?
Does your project calculate the space correctly 100% of the time?
Does your project actually save time and effort compared to manually using the space reference?
Submission requirements
A functional website
The tool should be accessible at the time of submission
The submission link should be the URL of the website
For any questions, DM @yusuf_cptl on Twitter
Deadline: June 10, 2023; 11:59 PM (Central European Time)
Participation in this bounty is entirely voluntary. Bounties are a way to learn and dabble in opportunities to build in web3. These are neither full-time jobs nor project-based engagements. Please be advised that the sponsors will not have time for individualized feedback due to the number of entries we receive. Please check out Superteam Terms of Engagement.
SKILLS NEEDED
Blockchain