Skip to content

feat: catchup to agave@06464c5#424

Merged
ksn6 merged 3 commits intoanza-xyz:masterfrom
ksn6:update-sdk-version-to-3.0.0
Aug 28, 2025
Merged

feat: catchup to agave@06464c5#424
ksn6 merged 3 commits intoanza-xyz:masterfrom
ksn6:update-sdk-version-to-3.0.0

Conversation

@ksn6
Copy link
Copy Markdown
Contributor

@ksn6 ksn6 commented Aug 27, 2025

Just a single commit that updates us to 3.0.0: anza-xyz/agave#7492

* Bump all crates

* Update programs/sbf deps and lockfile

* Update programs/sbf and tests

* Update lockfile

* Straightforward changes, updating type names and functions

* VoteState -> VoteStateV3
* VoteStateVersions::convert_to_current -> convert_to_v3
* Sysvar -> SysvarSerialize
* Import StakeHistory from solana_stake_interface
* BorshIoError(String) -> BorshIoError
* Import ClusterType from solana_cluster_tpe
* Keypair::from_bytes -> Keypair::try_from
* Hash.0 -> Hash::as_bytes

* IMPORTANT: Update runtime / syscalls with new AccountInfo

AccountInfo renamed `rent_epoch` to `_unused` and the entrypoint no
longer deserializes the field at all, so make sure this won't cause any
divergence in the runtime.

* Update sol_to_lamports and lamports_to_sol in libs

* zk-keygen: update to zk-sdk and v3 crates

* watchtower: Update to v3 crates and sol_str_to_lamports

* test-validator: Update sol string parsing with sol_str_to_lamports

* gossip: Update to sdk v3 crates

* Keypair::from_bytes -> try_from
* Keypair::generate -> generate random bytes by hand

* faucet: Use build_balance_message instead of floats

* ledger-tool: Use build_balance_message and new imports

* stake-accounts: Update to sol_str_to_lamports / build_balance_message

* tokens: Use build_balance_message / sol_str_to_lamports

* cli: Update dependencies and string treatment

* Use sol_str_to_lamports, build_balance_message, and normal
  multiplication for tests
* Update error logging to use TryFrom<u32> as well
* Update to feature and config interface crates
* Update VoteState -> VoteStateV3

* Fix clippy issue

* Update lockfiles post-rebase

* Enable crate features now required based on hack check

* Run cargo sort

* Update frozen-abi based on VoteState name change

* Run cargo fmt on programs/sbf

* Fixup expected strings in tests

* Remove SysvarId where not needed

* Update program-entrypoint to v3.1

* Fixup failing sbf tests

* Fix rebase issue, use cluster-type from new crate

* Fixup lockfile everywhere

* Fix unused import error for non-solana builds

* Update programs and tests
@ksn6 ksn6 marked this pull request as ready for review August 27, 2025 23:29
@ksn6 ksn6 changed the title feat: catchup to agave feat: catchup to agave@06464c5 Aug 27, 2025
@ksn6 ksn6 merged commit 4e76a40 into anza-xyz:master Aug 28, 2025
7 checks passed
@ksn6 ksn6 deleted the update-sdk-version-to-3.0.0 branch August 28, 2025 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants