Skip to content

anagrambuild/swig-wallet

Repository files navigation

SWIG Solana Wallet Protocol

Building

  1. You must have the Agave toolchain of at least version 2.2.1 and its requirements installed. See https://docs.anza.xyz/cli/install for more info.
  2. To build, run cargo build-sbf. This will output the program binary file to target/deploy/swig.so.

Testing

  1. Install cargo-nextest, it's the better way to run tests. See https://nexte.st/docs/installation/from-source/ for more info.
  2. Run the general test suite with cargo build-sbf && cargo nextest run --config-file nextest.toml --profile ci --all --workspace --no-fail-fast
  3. Run the tests covering ProgramScope with cargo build-sbf --features=program_scope_test && cargo nextest run --config-file nextest.toml --profile ci --all --workspace --no-fail-fast --features=program_scope_test
  4. Run the tests covering Stake actions by running cargo build-sbf --features=stake_tests && cargo nextest run --config-file nextest.toml --profile ci --all --workspace --no-fail-fast --features=stake_tests

Audit

Swig has been independently auditted by Accretion with plans to undergo additional audits. A copy of the audit report can be shared upon request.

License

Copyright (C) 2025 Anagram Ltd.

This software, Swig, is licensed under the GNU Affero General Public License v3.0.

You may obtain a copy of the License at: https://www.gnu.org/licenses/agpl-3.0.txt

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 8

Languages