-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
956b298
commit 67da5a8
Showing
20 changed files
with
1,543 additions
and
1,490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/BorrowerEnforcer.sol → src/enforcers/BorrowerEnforcer.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
pragma solidity =0.8.17; | ||
|
||
// import {ReceivedItem} from "seaport-types/src/lib/ConsiderationStructs.sol"; | ||
import {ConduitTransfer} from "seaport-types/src/conduit/lib/ConduitStructs.sol"; | ||
import {LoanManager} from "starport-core/LoanManager.sol"; | ||
|
||
abstract contract CaveatEnforcer { | ||
function enforceCaveat(bytes calldata terms, LoanManager.Loan memory loan) public virtual returns (bool); | ||
} | ||
|
||
struct Caveat { | ||
address enforcer; | ||
bytes32 salt; | ||
uint256 deadline; | ||
bytes data; | ||
} | ||
|
||
struct CaveatWithApproval { | ||
uint8 v; | ||
bytes32 r; | ||
bytes32 s; | ||
Caveat caveat; | ||
} | ||
|
||
function validate(ConduitTransfer[] calldata solution, LoanManager.Loan calldata loan, bytes calldata caveatData) public view virtual; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.