Skip to content

Commit

Permalink
cosmos sdk module and plugin cleanup (#3606)
Browse files Browse the repository at this point in the history
  • Loading branch information
benluelo authored Jan 22, 2025
2 parents bf7eb41 + da9e48f commit 2b7e377
Show file tree
Hide file tree
Showing 3 changed files with 1,511 additions and 1,617 deletions.
24 changes: 24 additions & 0 deletions lib/unionlabs/src/ibc/core/client/height.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,30 @@ impl Height {
}
}

// Implement once this is stabilized: https://github.com/rust-lang/rust/issues/42168
// impl Step for Height {
// fn steps_between(start: &Self, end: &Self) -> Option<usize> {
// start
// .revision_matches(end)
// .then(|| <u64 as Step>::steps_between(&start.height(), &end.height()))
// .flatten()
// }

// fn forward_checked(start: Self, count: usize) -> Option<Self> {
// start
// .revision_matches(end)
// .then(|| <u64 as Step>::forward_checked(&start.height(), &end.height()))
// .flatten()
// }

// fn backward_checked(start: Self, count: usize) -> Option<Self> {
// start
// .revision_matches(end)
// .then(|| <u64 as Step>::backward_checked(&start.height(), &end.height()))
// .flatten()
// }
// }

impl FromStr for Height {
type Err = HeightFromStrError;

Expand Down
Loading

0 comments on commit 2b7e377

Please sign in to comment.