4 releases (breaking)

0.11.0 Sep 2, 2022
0.10.0 Aug 2, 2022
0.2.0 Jul 20, 2022
0.1.0 May 7, 2022

#5 in #volt

Apache-2.0

66KB
1.5K SLoC

Friktion (volt) ABI

Overview

Provides contexts and instruction functions to interact with Friktion Program via CPI calls

Friktion program ID: VoLT1mJz1sbnxwq5Fv2SXjdVDgPXrb9tJyC8WpMDkSp

Keep in mind, the CPI feature must be enabled on "volt-abi" as the following demonstrates:

volt-abi = { version="0.2.0", features = ["cpi"]}

Examples

To see an example of this ABI in action, see our CPI Examples

Practical Notes:

  • vault_token_destination && underlying_token_source accounts must be initialized prior to calling the Deposit instruction. The authorities on those token accounts must be the dao_authority, which practically is a PDA of the invoking program.

Warning

Unaudited sdk Friktion Labs takes no responsibility for damage that results from usage of this sdk, nor makes any guarantee as to the correctness of the sdk. Users of these crates take full responsibility for any mishaps that results from the usage of this sdk.

Dependencies

~21–31MB
~530K SLoC