Skip to content

Commit caf0c02

Browse files
committed
chore: release 0.9.6
1 parent 5a07d41 commit caf0c02

File tree

9 files changed

+196
-194
lines changed

9 files changed

+196
-194
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace.package]
2-
version = "0.9.5"
2+
version = "0.9.6"
33
edition = "2024"
44
description = "Surfpool is the best place to train before surfing Solana."
55
license = "Apache-2.0"
@@ -52,7 +52,7 @@ serde_derive = "1.0.217" # must match the serde version, see https://github.com/
5252
serde_json = "1.0.135"
5353
serde_with = "3"
5454
solana-account = "2.2.1"
55-
solana-account-decoder = "2.2.1"
55+
solana-account-decoder = "=2.2.2"
5656
solana-account-decoder-client-types = { version = "2.2.1" }
5757
solana-address-lookup-table-interface = "2.2.1"
5858
solana-blake3-hasher = { version = "2.2.1", features = ["serde"]}
@@ -68,7 +68,6 @@ solana-keypair = "2.2.1"
6868
solana-message = { version = "2.2.1", features = ["serde"]}
6969
solana-native-token = "2.2.1"
7070
solana-packet = "2.2.1"
71-
solana-program = "2.2.1"
7271
solana-program-runtime = "2.2.1"
7372
solana-pubkey = { version = "2.2.1", features = ["serde"]}
7473
solana-rpc-client = "2.2.1"

crates/cli/src/cli/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ pub struct StartSimnet {
184184
#[arg(long = "subgraph-database-path", short = 'd')]
185185
pub subgraph_database_path: Option<String>,
186186
/// Disable Studio (default: false)
187-
#[clap(long = "no-studio")]
188-
pub no_studio: bool,
187+
#[clap(long = "studio", action=ArgAction::SetFalse)]
188+
pub studio: bool,
189189
/// Set the Studio port
190190
#[arg(long = "studio-port", short = 's', default_value_t = CHANGE_TO_DEFAULT_STUDIO_PORT_ONCE_SUPERVISOR_MERGED)]
191191
pub studio_port: u16,

crates/cli/src/cli/simnet/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub async fn handle_start_local_surfnet_command(
137137
match simnet_events_rx.recv() {
138138
Ok(SimnetEvent::Aborted(error)) => return Err(error),
139139
Ok(SimnetEvent::Shutdown) => return Ok(()),
140-
Ok(SimnetEvent::Connected(_)) | Ok(SimnetEvent::Ready) => break,
140+
Ok(SimnetEvent::Connected(_)) => break,
141141
_other => continue,
142142
}
143143
}
@@ -173,7 +173,7 @@ pub async fn handle_start_local_surfnet_command(
173173
}
174174
}
175175

176-
let displayed_url = if cmd.no_studio {
176+
let displayed_url = if cmd.studio {
177177
DisplayedUrl::Datasource(sanitized_config)
178178
} else {
179179
DisplayedUrl::Studio(sanitized_config)

crates/cli/src/http/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ fn start_subgraph_runloop(
257257
collections_map.add_collection(metadata);
258258
gql_schema.replace(new_dynamic_schema(collections_map.clone()));
259259

260-
let console_url = format!("{}/data", config.studio_url.clone());
260+
let console_url = format!("{}/subgraphs", config.studio_url.clone());
261261
let _ = sender.send(console_url);
262262
}
263263
SubgraphCommand::ObserveCollection(subgraph_observer_rx) => {

crates/cli/src/tui/simnet.rs

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,28 @@ impl App {
104104
) -> App {
105105
let palette = palette::tailwind::EMERALD;
106106

107+
let mut events = vec![];
108+
let (rpc_url, ws_url, datasource) = match &displayed_url {
109+
DisplayedUrl::Datasource(config) | DisplayedUrl::Studio(config) => (
110+
config.rpc_url.clone(),
111+
config.ws_url.clone(),
112+
config.rpc_datasource_url.clone(),
113+
),
114+
};
115+
events.push((
116+
EventType::Success,
117+
Local::now(),
118+
format!("Surfnet up and running, emulating local Solana validator (RPC: {rpc_url}, WS: {ws_url})"),
119+
));
120+
events.push((
121+
EventType::Info,
122+
Local::now(),
123+
format!("Connecting surfnet to datasource {datasource}..."),
124+
));
125+
107126
App {
108-
state: TableState::default().with_selected(0),
109-
scroll_state: ScrollbarState::new(5 * ITEM_HEIGHT),
127+
state: TableState::default().with_offset(0),
128+
scroll_state: ScrollbarState::new(0),
110129
colors: ColorTheme::new(&palette),
111130
simnet_events_rx,
112131
simnet_commands_tx,
@@ -120,27 +139,7 @@ impl App {
120139
transaction_count: None,
121140
},
122141
successful_transactions: 0,
123-
events: {
124-
let mut events = vec![];
125-
let (rpc_url, ws_url, datasource) = match &displayed_url {
126-
DisplayedUrl::Datasource(config) | DisplayedUrl::Studio(config) => (
127-
config.rpc_url.clone(),
128-
config.ws_url.clone(),
129-
config.rpc_datasource_url.clone(),
130-
),
131-
};
132-
events.push((
133-
EventType::Success,
134-
Local::now(),
135-
format!("Started local validator [RPC: {rpc_url}, WS: {ws_url}]"),
136-
));
137-
events.push((
138-
EventType::Success,
139-
Local::now(),
140-
format!("Connected validator to datasource {datasource}"),
141-
));
142-
events
143-
},
142+
events,
144143
include_debug_logs,
145144
deploy_progress_rx,
146145
status_bar_message: None,
@@ -166,6 +165,10 @@ impl App {
166165
*self.state.offset_mut() = ITEM_HEIGHT;
167166
}
168167

168+
pub fn tail(&mut self) {
169+
self.state.select_last();
170+
}
171+
169172
pub fn previous(&mut self) {
170173
self.state.select_previous();
171174
self.scroll_state.prev();
@@ -424,10 +427,10 @@ fn run_app<B: Backend>(terminal: &mut Terminal<B>, mut app: App) -> io::Result<(
424427

425428
for event in new_events {
426429
app.events.push(event);
427-
app.next();
430+
app.tail();
428431
}
429432

430-
if event::poll(Duration::from_millis(5))? {
433+
if event::poll(Duration::from_millis(25))? {
431434
if let Event::Key(key_event) = event::read()? {
432435
if key_event.kind == KeyEventKind::Press {
433436
use KeyCode::*;

crates/subgraph/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ crate-type = ["cdylib", "rlib"]
1414

1515
[dependencies]
1616
agave-geyser-plugin-interface = { workspace = true }
17-
solana-program = { workspace = true }
17+
solana-clock = { workspace = true }
1818
solana-signature = { workspace = true }
1919
txtx-addon-kit = { workspace = true }
2020
txtx-addon-network-svm = { workspace = true }

crates/subgraph/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use agave_geyser_plugin_interface::geyser_plugin_interface::{
55
ReplicaTransactionInfoVersions, Result as PluginResult, SlotStatus,
66
};
77
use ipc_channel::ipc::IpcSender;
8-
use solana_program::clock::Slot;
8+
use solana_clock::Slot;
99
use solana_signature::Signature;
1010
use surfpool_types::{DataIndexingCommand, SubgraphPluginConfig};
1111
use txtx_addon_kit::types::types::Value as TxtxValue;

crates/types/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl SimnetEvent {
287287
match self {
288288
SimnetEvent::EpochInfoUpdate(epoch_info) => {
289289
format!(
290-
"Connection established. Epoch {} / Slot index {} / Slot {}.",
290+
"Datasource connection successful. Epoch {} / Slot index {} / Slot {}.",
291291
epoch_info.epoch, epoch_info.slot_index, epoch_info.absolute_slot
292292
)
293293
}

0 commit comments

Comments
 (0)