#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

#4 in #saber

Download history 258/week @ 2024-04-14 263/week @ 2024-04-21 220/week @ 2024-04-28 181/week @ 2024-05-05 202/week @ 2024-05-12 192/week @ 2024-05-19 232/week @ 2024-05-26 228/week @ 2024-06-02 107/week @ 2024-06-09 229/week @ 2024-06-16 220/week @ 2024-06-23 67/week @ 2024-06-30 238/week @ 2024-07-07 188/week @ 2024-07-14 194/week @ 2024-07-21 185/week @ 2024-07-28

807 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

~11–23MB
~329K SLoC