#solana #anchor #saber

vipers

Assorted checks and validations for writing safer Solana programs

24 stable releases

2.0.6 Jul 20, 2022
2.0.2 Mar 21, 2022
1.6.1 Feb 14, 2022
1.5.5 Dec 4, 2021
0.1.1 Aug 23, 2021

#7 in #saber

Download history 195/week @ 2024-07-29 175/week @ 2024-08-05 178/week @ 2024-08-12 119/week @ 2024-08-19 139/week @ 2024-08-26 166/week @ 2024-09-02 156/week @ 2024-09-09 152/week @ 2024-09-16 330/week @ 2024-09-23 232/week @ 2024-09-30 110/week @ 2024-10-14 153/week @ 2024-10-21 137/week @ 2024-10-28 119/week @ 2024-11-04 42/week @ 2024-11-11

461 downloads per month
Used in 56 crates (41 directly)

Apache-2.0

35KB
658 lines

vipers 😎

Crates.io License Build Status Contributors Code Coverage

Assorted checks and validations for writing safer Solana programs.

Motivation

Solana's fee mechanism is unlike Ethereum's, in that the number of bytecode instructions executed does not add to the cost of a transaction. Due to this, it is wise to design Solana code with excessive safety checks in order to minimize the chance of exploits.

This library provides several utilities for Anchor programs to validate account structs and check for invariants.

Support

For support, join the Saber Discord at chat.saber.so!

License

Apache 2.0

Dependencies

~10–22MB
~309K SLoC