Skip to content

Commit

Permalink
feat: update interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
JordyRo1 committed Jul 9, 2024
1 parent 4364a8f commit 730e3b2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions optimistic_oracle/src/contracts/interfaces.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ pub trait IOptimisticOracle<TContractState> {
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<TContractState> {
Expand Down Expand Up @@ -142,15 +144,6 @@ pub trait IOracleAncillary<TContractState> {
) -> u256;
}

#[starknet::interface]
pub trait IAssertionCallback<TContractState> {
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<TContractState> {
Expand Down Expand Up @@ -178,3 +171,10 @@ pub trait IMockOracleAncillaryConfiguration<TContractState> {
fn get_request_parameters(self: @TContractState, request_id: felt252) -> QueryPoint;
}


#[starknet::interface]
pub trait IOptimisticOracleV3CallbackRecipient<TContractState>{
fn assertion_resolved_callback(self: @TContractState, assertion_id:felt252, asserted_truthfully: bool);

fn assertion_disputed_callback(self: @TContractState, assertion_id: felt252);
}

0 comments on commit 730e3b2

Please sign in to comment.