make service compile

This commit is contained in:
GroovieGermanikus 2023-08-29 12:44:04 +02:00
parent edc0c05c70
commit 748ae72d93
8 changed files with 66 additions and 42 deletions

View File

@ -19,8 +19,6 @@ solana-client = "~1.14.9"
solana-account-decoder = "~1.14.9"
solana-sdk = "~1.14.9"
anchor-lang = "0.27.0"
serum_dex = { git = "https://github.com/jup-ag/openbook-program", branch = "feat/expose-things", features = ["no-entrypoint"] }
mango-v4 = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git", features = ["client"] }

View File

@ -7,7 +7,19 @@ license = "AGPL-3.0-or-later"
[dependencies]
mango-feeds-lib = { path = "../lib" }
solana-logger = "*"
solana-client = "1"
solana-logger = "1"
solana-sdk = "1"
anchor-lang = "0.27.0"
anchor-client = "0.27.0"
mango-v4 = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git", features = ["client"] }
mango-v4-client = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git" }
serum_dex = { git = "https://github.com/jup-ag/openbook-program", branch = "feat/expose-things", features = ["no-entrypoint"] }
bs58 = "*"
log = "*"
anyhow = "*"
@ -28,7 +40,6 @@ tokio-tungstenite = "0.17"
bytemuck = "1.7.2"
jemallocator = "0.3.2"
chrono = "0.4.23"
solana-sdk = "~1.14.9"
tokio-postgres = { version = "0.7", features = ["with-chrono-0_4"] }
tokio-postgres-rustls = "0.9.0"
@ -38,9 +49,3 @@ native-tls = "0.2"
# postgres_query hasn't updated its crate in a while
postgres_query = { git = "https://github.com/nolanderc/rust-postgres-query", rev = "b4422051c8a31fbba4a35f88004c1cefb1878dd5" }
base64 = "0.21.0"
mango-v4 = { git = "https://github.com/blockworks-foundation/mango-v4", branch = "dev" }
mango-v4-client = { git = "https://github.com/blockworks-foundation/mango-v4", branch = "dev" }
serum_dex = { git = "https://github.com/jup-ag/openbook-program", branch = "feat/expose-things", features = ["no-entrypoint"] }
anchor-lang = "0.25.0"
anchor-client = "0.25.0"

View File

@ -7,9 +7,19 @@ edition = "2018"
[dependencies]
mango-feeds-lib = { path = "../lib" }
solana-client = "1"
solana-logger = "1"
solana-sdk = "1"
anchor-lang = "0.27.0"
anchor-client = "0.27.0"
mango-v4 = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git", features = ["client"] }
mango-v4-client = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git" }
serum_dex = { git = "https://github.com/jup-ag/openbook-program", branch = "feat/expose-things", features = ["no-entrypoint"] }
bs58 = "*"
log = "*"
anyhow = "*"
@ -26,9 +36,3 @@ async-trait = "0.1"
tokio = { version = "1", features = ["full"] }
tokio-tungstenite = "0.17"
bytemuck = "1.7.2"
mango-v4 = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git", features = ["client"] }
mango-v4-client = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git" }
serum_dex = { git = "https://github.com/jup-ag/openbook-program", branch = "feat/expose-things", features = ["no-entrypoint"] }
anchor-lang = "0.27.0"
anchor-client = "0.27.0"

View File

@ -7,7 +7,19 @@ license = "AGPL-3.0-or-later"
[dependencies]
mango-feeds-lib = { path = "../lib" }
solana-logger = "*"
solana-client = "1"
solana-logger = "1"
solana-sdk = "1"
anchor-lang = "0.27.0"
anchor-client = "0.27.0"
mango-v4 = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git", features = ["client"] }
mango-v4-client = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git" }
serum_dex = { git = "https://github.com/jup-ag/openbook-program", branch = "feat/expose-things", features = ["no-entrypoint"] }
bs58 = "*"
log = "*"
anyhow = "*"
@ -28,7 +40,6 @@ tokio-tungstenite = "0.17"
bytemuck = "1.7.2"
jemallocator = "0.3.2"
chrono = "0.4.23"
solana-sdk = "~1.14.9"
tokio-postgres = { version = "0.7", features = ["with-chrono-0_4"] }
tokio-postgres-rustls = "0.9.0"
@ -38,9 +49,3 @@ native-tls = "0.2"
# postgres_query hasn't updated its crate in a while
postgres_query = { git = "https://github.com/nolanderc/rust-postgres-query", rev = "b4422051c8a31fbba4a35f88004c1cefb1878dd5" }
base64 = "0.21.0"
mango-v4 = { git = "https://github.com/blockworks-foundation/mango-v4", branch = "dev" }
mango-v4-client = { git = "https://github.com/blockworks-foundation/mango-v4", branch = "dev" }
serum_dex = { git = "https://github.com/jup-ag/openbook-program", branch = "feat/expose-things", features = ["no-entrypoint"] }
anchor-lang = "0.25.0"
anchor-client = "0.25.0"

View File

@ -3,7 +3,6 @@ mod fill_event_postgres_target;
use solana_sdk::commitment_config::CommitmentConfig;
use solana_sdk::signature::Keypair;
use anchor_client::Cluster;
use anchor_lang::prelude::Pubkey;
use futures_channel::mpsc::{unbounded, UnboundedSender};
use futures_util::{
@ -33,6 +32,7 @@ use std::{
},
time::Duration,
};
use anchor_client::Cluster;
use tokio::{
net::{TcpListener, TcpStream},
pin, time,

View File

@ -7,7 +7,21 @@ license = "AGPL-3.0-or-later"
[dependencies]
mango-feeds-lib = { path = "../lib" }
solana-logger = "*"
solana-client = "1"
solana-logger = "1"
solana-sdk = "1"
anchor-lang = "0.27.0"
anchor-client = "0.27.0"
mango-v4 = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git", features = ["client"] }
mango-v4-client = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git" }
serum_dex = { git = "https://github.com/jup-ag/openbook-program", branch = "feat/expose-things", features = ["no-entrypoint"] }
fixed = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git" }
bs58 = "*"
log = "*"
anyhow = "*"
@ -25,12 +39,3 @@ tokio = { version = "1", features = ["full"] }
tokio-tungstenite = "0.17"
bytemuck = "1.7.2"
itertools = "0.10.5"
solana-sdk = "~1.14.9"
mango-v4 = { git = "https://github.com/blockworks-foundation/mango-v4", branch = "dev" }
mango-v4-client = { git = "https://github.com/blockworks-foundation/mango-v4", branch = "dev" }
fixed = { git = "https://github.com/blockworks-foundation/mango-v4", branch = "dev" , version = "1.11.0", features = ["serde", "borsh", "debug-assert-in-release"] }
serum_dex = { git = "https://github.com/jup-ag/openbook-program", branch = "feat/expose-things", features = ["no-entrypoint"] }
anchor-lang = "0.25.0"
anchor-client = "0.25.0"

View File

@ -366,7 +366,7 @@ pub async fn init(
max_staleness_slots: None, // don't check oracle staleness to get an orderbook
};
if let Ok((oracle_price, _slot)) = state::oracle_price_and_slot(
if let Ok((oracle_price, _state)) = state::oracle_price_and_state(
&keyed_account,
&oracle_config.to_oracle_config(),
mkt.1.base_decimals,

View File

@ -7,8 +7,19 @@ license = "AGPL-3.0-or-later"
[dependencies]
mango-feeds-lib = { path = "../lib" }
solana-logger = "~1.14.9"
solana-sdk = "~1.14.9"
solana-client = "1"
solana-logger = "1"
solana-sdk = "1"
anchor-lang = "0.27.0"
anchor-client = "0.27.0"
mango-v4 = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git", features = ["client"] }
mango-v4-client = { tag = "program-v0.16.0", git = "https://github.com/blockworks-foundation/mango-v4.git" }
serum_dex = { git = "https://github.com/jup-ag/openbook-program", branch = "feat/expose-things", features = ["no-entrypoint"] }
log = "0.4"
anyhow = "1.0"
toml = "0.5"
@ -22,7 +33,3 @@ tokio = { version = "1", features = ["full"] }
serde = "1.0.130"
serde_derive = "1.0.130"
mango-v4 = { git = "https://github.com/blockworks-foundation/mango-v4", branch = "dev" }
mango-v4-client = { git = "https://github.com/blockworks-foundation/mango-v4", branch = "dev" }
anchor-lang = "0.25.0"
anchor-client = "0.25.0"