#rollup #delegates #ephemeral #entry-point

macro ephemeral-rollups-sdk-attribute-delegate-v2

ephemeral-rollups-sdk-attribute-delegate

3 releases

0.1.2 Dec 16, 2024
0.1.1 Nov 28, 2024
0.1.0 Nov 28, 2024

#10 in #ephemeral

Download history 3/week @ 2025-10-18 1/week @ 2025-10-25

144 downloads per month

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
~39K SLoC