docs.rs failed to build magicblock-delegation-program-1.1.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
magicblock-delegation-program-1.1.2
Delegation program
Delegation module for https://arxiv.org/pdf/2311.02650.pdf
Public Api
Instruction Builders– utilities to generate Instructions.Args– Instructions arguments structures.Consts– Program constants.Errors– Custom program errors.
Program
Entrypoint– The program entrypoint.Processors– Instruction implementations.
Important Instructions
Delegate- Delegate an accountCommitState– Commit a new stateFinalize– Finalize a new stateUndelegate– Undelegate an account
Tests
To run the test suite, use the Solana toolchain:
For line coverage, use llvm-cov:
(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:
&&
or:
&&