Skip to content

Commit

Permalink
add submitintent trait
Browse files Browse the repository at this point in the history
  • Loading branch information
enthusiastmartin committed Jan 14, 2025
1 parent 4289f43 commit ad20c56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions traits/src/ice.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pub trait SubmitIntent<IntentId, Intent>{
type Error;
fn submit_intent(intent: Intent) -> Result<IntentId, Self::Error>;
}
1 change: 1 addition & 0 deletions traits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub mod price;
pub mod registry;
pub mod router;
pub mod stableswap;
pub mod ice;

pub use oracle::*;
pub use registry::*;
Expand Down

0 comments on commit ad20c56

Please sign in to comment.