@@ -38,26 +38,6 @@ interface IEco {
3838 TokenAmount[] tokens;
3939 }
4040
41- /// @notice Complete intent struct
42- struct Intent {
43- uint64 destination;
44- Route route;
45- Reward reward;
46- }
47-
48- /// @notice Creates an intent without funding (optional, for solver discovery)
49- /// @notice Creates an intent without funding (optional, for solver discovery)
50- /// @param destination Target chain ID
51- /// @param route Execution instructions for destination chain
52- /// @param reward Incentive structure for solvers
53- /// @return intentHash Hash of the created intent
54- /// @return vault Address of the deterministic vault for this intent
55- function publish (
56- uint64 destination ,
57- Route calldata route ,
58- Reward calldata reward
59- ) external returns (bytes32 intentHash , address vault );
60-
6141 /// @notice Funds an intent by escrowing rewards
6242 /// @param destination Target chain ID
6343 /// @param routeHash Hash of the route component
@@ -70,49 +50,4 @@ interface IEco {
7050 Reward calldata reward ,
7151 bool allowPartial
7252 ) external payable returns (bytes32 intentHash );
73-
74- /// @notice Executes intent on destination chain
75- /// @param intentHash Hash of the intent to fulfill
76- /// @param route Route data for execution
77- /// @param rewardHash Hash of the reward component
78- /// @param claimant Address to receive rewards
79- /// @return results Array of return data from executed calls
80- function fulfill (
81- bytes32 intentHash ,
82- Route calldata route ,
83- bytes32 rewardHash ,
84- address claimant
85- ) external returns (bytes [] memory results );
86-
87- /// @notice Submit cross-chain proof of fulfillment
88- /// @param prover Address of the prover contract
89- /// @param sourceChainDomainID Source chain domain identifier
90- /// @param intentHashes Array of intent hashes being proven
91- /// @param data Encoded proof data
92- function prove (
93- address prover ,
94- uint64 sourceChainDomainID ,
95- bytes32 [] calldata intentHashes ,
96- bytes calldata data
97- ) external ;
98-
99- /// @notice Claim rewards after proof submission
100- /// @param destination Target chain ID
101- /// @param routeHash Hash of the route component
102- /// @param reward Reward structure
103- function withdraw (
104- uint64 destination ,
105- bytes32 routeHash ,
106- Reward calldata reward
107- ) external ;
108-
109- /// @notice Reclaim rewards if intent expires
110- /// @param destination Target chain ID
111- /// @param routeHash Hash of the route component
112- /// @param reward Reward structure
113- function refund (
114- uint64 destination ,
115- bytes32 routeHash ,
116- Reward calldata reward
117- ) external ;
11853}
0 commit comments