volt-abi

Crates.iovolt-abi
lib.rsvolt-abi
version0.11.0
sourcesrc
created_at2022-05-07 00:19:02.152553
updated_at2022-09-02 17:04:28.369515
descriptionInterface for composing on Friktion Volt Program
homepagehttps://app.friktion.fi
repositoryhttps://github.com/Friktion-Labs/volt-abi
max_upload_size
id581907
size78,446
Amontons (bigdefidev)

documentation

README

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.

Commit count: 0

cargo fmt