Skip to content

Commit

Permalink
Merge pull request #1886 from oasisprotocol/kostko/feature/rofl-app-p…
Browse files Browse the repository at this point in the history
…relude

runtime-sdk/modules/rofl: Add prelude for ROFL applications
  • Loading branch information
kostko authored Jul 16, 2024
2 parents 1ddb024 + f4b2e44 commit dc8edda
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions runtime-sdk/src/modules/rofl/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use crate::{
mod client;
mod env;
mod notifier;
pub mod prelude;
mod processor;
mod registration;

Expand Down
9 changes: 9 additions & 0 deletions runtime-sdk/src/modules/rofl/app/prelude.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//! Prelude for ROFL applications.
pub use std::sync::Arc;

pub use anyhow::Result;
pub use async_trait::async_trait;

pub use crate::{self as sdk, core::consensus::verifier::TrustRoot, Version};

pub use super::{App, AppId, Environment};
12 changes: 1 addition & 11 deletions tests/runtimes/components-rofl/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
use std::sync::Arc;

use anyhow::Result;
use async_trait::async_trait;

use oasis_runtime_sdk::{
self as sdk,
core::consensus::verifier::TrustRoot,
modules::rofl::app::{App, AppId, Environment},
Version,
};
use oasis_runtime_sdk::modules::rofl::app::prelude::*;

struct TestApp;

Expand Down

0 comments on commit dc8edda

Please sign in to comment.