• Stars
    star
    133
  • Rank 272,600 (Top 6 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created over 3 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ•ถ Assorted checks and validations for writing safer Solana programs.

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

More Repositories

1

stable-swap

๐Ÿ” StableSwap by Saber: an automated market maker for mean-reverting trading pairs.
Rust
402
star
2

merkle-distributor

๐Ÿ“ฆ A smart contract that distributes a balance of tokens according to a Merkle root
TypeScript
184
star
3

saber-common

๐Ÿ—ก Saber common utilities and libraries
TypeScript
144
star
4

anchor-gen

Generates an Anchor CPI crate from a JSON IDL.
Rust
101
star
5

sail

โ›ต๏ธ A React library for Solana account management and transaction processing.
TypeScript
77
star
6

captain

๐Ÿง‘โ€โœˆ Version control and key management for Solana programs.
Rust
35
star
7

saber-periphery

โš”๏ธ Peripheral contracts for interacting with Saber.
TypeScript
19
star
8

snapshots

๐Ÿ“ธ Voting Escrow Snapshots: Historical snapshots of previous voting escrow balances.
Rust
13
star
9

saber-overlay

Saber Nix overlay.
Nix
13
star
10

u128

๐Ÿงฎ U128 helpers for Solana programs.
Rust
11
star
11

spl-token-icons

TypeScript
10
star
12

saber-dapp

Frontend for the Saber dapp.
TypeScript
10
star
13

pool-manager

Allows anyone to create a new Saber pool.
TypeScript
9
star
14

saber-build-common

Common build tools for Saber projects.
TypeScript
5
star
15

docs

Saber official documentation.
JavaScript
4
star
16

governance

Saber Governance forum and proposals.
Nix
3
star
17

install-solana-action

GitHub Action to install Solana and Anchor using Nix.
3
star
18

saber-lp-token-list

Token list of Saber LP tokens.
3
star
19

saber-lp-token-list-generator

Generates the Saber LP token list.
TypeScript
2
star
20

saber-registry-dist

List of Saber pools, tokens, and environments
HTML
2
star
21

brand

โš”๏ธ Official Saber brand assets.
1
star
22

token-fns

Saber token math utilities, built to minimize bundle size.
TypeScript
1
star
23

registry

Saber Asset Registry, generated from saber-hq/governance
HTML
1
star