Skip to content

Commit

Permalink
update resolver API
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Nov 6, 2023
1 parent b54e775 commit 8db4140
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/resolvers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use bp::Txid;
use rgb::WitnessOrd;
use rgb::{ExposedSeal, SealDefinition, WitnessOrd};

pub trait ResolveHeight {
type Error: std::error::Error;

fn resolve_height(&mut self, txid: Txid) -> Result<WitnessOrd, Self::Error>;
fn resolve_height<S: ExposedSeal>(
&mut self,
seal_definition: SealDefinition<S>,
) -> Result<WitnessOrd, Self::Error>;
}

0 comments on commit 8db4140

Please sign in to comment.