diff --git a/optimistic_oracle/src/contracts/interfaces.cairo b/optimistic_oracle/src/contracts/interfaces.cairo index d0b0127..eabe80c 100644 --- a/optimistic_oracle/src/contracts/interfaces.cairo +++ b/optimistic_oracle/src/contracts/interfaces.cairo @@ -66,6 +66,8 @@ pub trait IOptimisticOracle { fn dispute_assertion( ref self: TContractState, assertion_id: felt252, disputer: ContractAddress ); + + fn settle_assertion(ref self: TContractState, assertion_id: felt252); } #[starknet::interface] pub trait IFinder { @@ -142,15 +144,6 @@ pub trait IOracleAncillary { ) -> u256; } -#[starknet::interface] -pub trait IAssertionCallback { - fn assertion_resolved_callback( - self: @TContractState, assertion_id: felt252, asserted_truthfully: bool - ); - - fn assertion_disputed_callback(self: @TContractState, assertion_id: felt252); -} - #[starknet::interface] pub trait IDisputeCallerConfiguration { @@ -178,3 +171,10 @@ pub trait IMockOracleAncillaryConfiguration { fn get_request_parameters(self: @TContractState, request_id: felt252) -> QueryPoint; } + +#[starknet::interface] +pub trait IOptimisticOracleV3CallbackRecipient{ + fn assertion_resolved_callback(self: @TContractState, assertion_id:felt252, asserted_truthfully: bool); + + fn assertion_disputed_callback(self: @TContractState, assertion_id: felt252); +} \ No newline at end of file