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
461 downloads per month
Used in 56 crates
(41 directly)
35KB
658 lines
vipers 😎
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