pub trait ServiceRuntime: BaseRuntime {
// Required methods
fn try_query_application(
&mut self,
queried_id: ApplicationId,
argument: Vec<u8>,
) -> Result<Vec<u8>, ExecutionError>;
fn schedule_operation(
&mut self,
operation: Vec<u8>,
) -> Result<(), ExecutionError>;
fn check_execution_time(&mut self) -> Result<(), ExecutionError>;
}
Required Methods§
Sourcefn try_query_application(
&mut self,
queried_id: ApplicationId,
argument: Vec<u8>,
) -> Result<Vec<u8>, ExecutionError>
fn try_query_application( &mut self, queried_id: ApplicationId, argument: Vec<u8>, ) -> Result<Vec<u8>, ExecutionError>
Queries another application.
Sourcefn schedule_operation(
&mut self,
operation: Vec<u8>,
) -> Result<(), ExecutionError>
fn schedule_operation( &mut self, operation: Vec<u8>, ) -> Result<(), ExecutionError>
Schedules an operation to be included in the block proposed after execution.
Sourcefn check_execution_time(&mut self) -> Result<(), ExecutionError>
fn check_execution_time(&mut self) -> Result<(), ExecutionError>
Checks if the service has exceeded its execution time limit.