13 releases

new 0.2.5 Apr 24, 2025
0.2.4 Mar 16, 2025
0.2.3 Jan 26, 2025
0.0.7 Oct 11, 2024
0.0.1 Aug 10, 2024

#2204 in Procedural macros

Download history 319/week @ 2025-01-01 33/week @ 2025-01-08 77/week @ 2025-01-15 157/week @ 2025-01-22 39/week @ 2025-01-29 54/week @ 2025-02-05 90/week @ 2025-02-12 51/week @ 2025-02-19 32/week @ 2025-02-26 8/week @ 2025-03-05 176/week @ 2025-03-12 25/week @ 2025-03-19 58/week @ 2025-03-26 23/week @ 2025-04-02 21/week @ 2025-04-09 62/week @ 2025-04-16

168 downloads per month
Used in 3 crates (via ephemeral-rollups-sdk)

MIT license

9KB
136 lines

Delegation program

Delegation module for https://arxiv.org/pdf/2311.02650.pdf

Public Api

Program

Important Instructions

Tests

To run the test suite, use the Solana toolchain:

cargo test-sbf --features unit_test_config

For line coverage, use llvm-cov:

cargo llvm-cov --test test_commit_state

(llvm-cov currently does not work with instructions with CPIs e.g.: delegate, undelegate)

Integration Tests

The integration tests are located in the tests/integration directory. The tests consist of a Bolt/Anchor program that uses the delegation program to delegate, commit, and undelegate accounts. This can be also used a reference for how to interact with the program.

To run the integration test, use Bolt or Anchor:

cd tests/integration && bolt test

or:

cd tests/integration && anchor test

Dependencies

~1.5MB
~38K SLoC