• Stars
    star
    129
  • Rank 270,490 (Top 6 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created almost 3 years ago
  • Updated 3 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
390
star
2

merkle-distributor

📦 A smart contract that distributes a balance of tokens according to a Merkle root
TypeScript
167
star
3

saber-common

🗡 Saber common utilities and libraries
TypeScript
142
star
4

sail

⛵️ A React library for Solana account management and transaction processing.
TypeScript
76
star
5

anchor-gen

Generates an Anchor CPI crate from a JSON IDL.
Rust
74
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
12
star
10

u128

🧮 U128 helpers for Solana programs.
Rust
11
star
11

spl-token-icons

TypeScript
10
star
12

pool-manager

Allows anyone to create a new Saber pool.
TypeScript
8
star
13

saber-dapp

Frontend for the Saber dapp.
TypeScript
8
star
14

docs

Saber official documentation.
JavaScript
4
star
15

saber-build-common

Common build tools for Saber projects.
TypeScript
4
star
16

saber-lp-token-list

Token list of Saber LP tokens.
3
star
17

install-solana-action

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

governance

Saber Governance forum and proposals.
Nix
2
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