Skip to content

Commit 3795653

Browse files
committed
Cleanup
1 parent 0e0aa63 commit 3795653

File tree

3 files changed

+5
-68
lines changed

3 files changed

+5
-68
lines changed

src/Errors/GenericErrors.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ error InvalidAmount();
1717
error InvalidCallData();
1818
error InvalidConfig();
1919
error InvalidContract();
20-
error InvalidDeadline();
2120
error InvalidDestinationChain();
2221
error InvalidFallbackAddress();
2322
error InvalidNonEVMReceiver();
24-
error InvalidProver();
2523
error InvalidReceiver();
2624
error InvalidSendingToken();
2725
error NativeAssetNotSupported();

src/Interfaces/IEco.sol

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

test/solidity/Facets/EcoFacet.t.sol

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ import { LibAllowList } from "../../../src/Libraries/LibAllowList.sol";
77
import { LibSwap } from "../../../src/Libraries/LibSwap.sol";
88
import { EcoFacet } from "../../../src/Facets/EcoFacet.sol";
99
import { IEco } from "../../../src/Interfaces/IEco.sol";
10-
import { InvalidContract, InvalidProver, InvalidDeadline } from "../../../src/Errors/GenericErrors.sol";
10+
import { InvalidContract } from "../../../src/Errors/GenericErrors.sol";
11+
12+
// Errors from EcoFacet
13+
error InvalidProver();
14+
error InvalidDeadline();
1115

1216
// Test contract wrapper
1317
contract TestEcoFacet is EcoFacet {

0 commit comments

Comments
 (0)