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
:
or the following command:
You can now import the stork-sdk's interfaces with:
Last updated