Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions linera-sdk/src/contract/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,26 +296,6 @@ where
bcs::from_bytes(&event).expect("Failed to deserialize event")
}

/// Subscribes this application to an event stream.
pub fn subscribe_to_events(
&mut self,
chain_id: ChainId,
application_id: ApplicationId,
name: StreamName,
) {
contract_wit::subscribe_to_events(chain_id.into(), application_id.into(), &name.into())
}

/// Unsubscribes this application from an event stream.
pub fn unsubscribe_from_events(
&mut self,
chain_id: ChainId,
application_id: ApplicationId,
name: StreamName,
) {
contract_wit::unsubscribe_from_events(chain_id.into(), application_id.into(), &name.into())
}

/// Queries an application service as an oracle and returns the response.
///
/// Should only be used with queries where it is very likely that all validators will compute
Expand Down
20 changes: 0 additions & 20 deletions linera-sdk/src/contract/test_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -840,26 +840,6 @@ where
bcs::from_bytes(value).expect("Failed to deserialize event value")
}

/// Subscribes this application to an event stream.
pub fn subscribe_to_events(
&mut self,
_chain_id: ChainId,
_application_id: ApplicationId,
_name: StreamName,
) {
// This is a no-op in the mock runtime.
}

/// Unsubscribes this application from an event stream.
pub fn unsubscribe_from_events(
&mut self,
_chain_id: ChainId,
_application_id: ApplicationId,
_name: StreamName,
) {
// This is a no-op in the mock runtime.
}

/// Adds an expected `query_service` call`, and the response it should return in the test.
pub fn add_expected_service_query<A: ServiceAbi + Send>(
&mut self,
Expand Down