Skip to content

Commit d5a8d2e

Browse files
committed
fix idl build
1 parent 99f4646 commit d5a8d2e

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

Cargo.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

programs/drift/Cargo.toml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,19 @@ drift-rs = []
1919
idl-build = [
2020
"anchor-lang/idl-build",
2121
"anchor-spl/idl-build",
22-
"pyth-lazer-solana-contract/idl-build",
23-
"pythnet-sdk/idl-build",
24-
"pythnet-sdk/idl-build",
22+
"openbook-v2-light/idl-build",
2523
"switchboard-on-demand/idl-build",
26-
"openbook-v2-light/idl-build"
24+
"pythnet-sdk/idl-build"
2725
]
2826

2927
[dependencies]
3028
anchor-lang = "0.32.1"
3129
anchor-spl = { version = "0.32.1", features = ["idl-build"] }
3230
solana-program = "=2.2.1"
3331
pyth-client = "0.2.2"
34-
pyth-lazer-solana-contract = { path = "../../../pyth-crosschain/lazer/contracts/solana/programs/pyth-lazer-solana-contract", features = ["no-entrypoint"]}
35-
pyth-solana-receiver-sdk = { path = "../../../pyth-crosschain/target_chains/solana/pyth_solana_receiver_sdk" }
36-
pythnet-sdk = { path = "../../../pyth-crosschain/pythnet/pythnet_sdk" }
32+
pyth-lazer-solana-contract = { git = "https://github.com/jordy25519/pyth-crosschain", features = ["no-entrypoint"]}
33+
pyth-solana-receiver-sdk = { git = "https://github.com/jordy25519/pyth-crosschain" }
34+
pythnet-sdk = { git = "https://github.com/jordy25519/pyth-crosschain" }
3735
bytemuck = "1.4.0"
3836
hex = "0.4.3"
3937
uint = { version = "0.9.1", default-features = false }

programs/drift/src/instructions/pyth_pull_oracle.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ pub fn get_timestamp_from_price_feed_account(price_feed_account: &AccountInfo) -
209209
}
210210
}
211211

212-
pub fn get_timestamp_from_price_update_message(update_message: &PrefixedVec<u8>) -> Result<i64> {
212+
pub fn get_timestamp_from_price_update_message(
213+
update_message: &PrefixedVec<u16, u8>,
214+
) -> Result<i64> {
213215
let message = from_slice::<byteorder::BE, Message>(update_message.as_ref())
214216
.map_err(|_| ErrorCode::OracleDeserializeMessageFailed)?;
215217
let next_timestamp = match message {

programs/switchboard/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ cpi = ["no-entrypoint"]
1414
default = ["mainnet-beta"]
1515
mainnet-beta=[]
1616
anchor-test= []
17+
idl-build = ["anchor-lang/idl-build"]
1718

1819
[dependencies]
1920
anchor-lang = "0.32.1"

0 commit comments

Comments
 (0)