gmsol-sdk 0.9.0

GMX-Solana is an extension of GMX on the Solana blockchain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Pyth pull oracle support.
pub mod pull_oracle;

pub use pull_oracle::{
    hermes::{EncodingType, Hermes},
    PythPullOracle,
};

use pyth_sdk::Identifier;
use solana_sdk::pubkey::Pubkey;

/// Convert a pubkey to feed id.
pub fn pubkey_to_identifier(feed: &Pubkey) -> Identifier {
    Identifier::new(feed.to_bytes())
}