Solana

SDK

Solana contracts can program against Stork's contract using the stork-sdk rust crate available on crates.io. This SDK provides useful methods and structs for reading from stork price feed account. The Stork contract and SDK are built on top of Anchor.

Installation

Rust

After setting up your Anchor project, add the stork-sdk to your project dependencies by adding the following line to the [dependencies] section of the programs Cargo.toml :

// Cargo.toml
[dependencies]
stork-sdk = ">0.0.5"

or the following command:

cargo add stork-sdk

You can now import the stork-sdk's interfaces with:

// your_module.rs
use stork-sdk::{<...>};

Last updated