@@ -14,46 +14,17 @@ import {
1414} from "raindex-interface-0.1.8/src/interface/IRaindexV6.sol " ;
1515import {IInterpreterV4} from "rainlang-interface-0.2.13/src/interface/IInterpreterV4.sol " ;
1616import {IInterpreterStoreV3} from "rainlang-interface-0.2.13/src/interface/IInterpreterStoreV3.sol " ;
17- import {
18- ReentrancyGuardReentrantCall,
19- NotOrderOwner,
20- TokenMismatch,
21- MinimumIO,
22- SameOwner,
23- UnsupportedCalculateOutputs,
24- NegativeVaultBalance,
25- NegativeVaultBalanceChange,
26- NegativePull,
27- NegativePush,
28- NegativeBounty,
29- ClearZeroAmount
30- } from "src/error/ErrRaindexV6.sol " ;
3117
3218/// @title RaindexV6ErrorSelectorTest
33- /// @notice Signature strings are the oracle for every error RaindexV6 reverts
34- /// with, both as declared and as the deployed artifact reverts with them .
19+ /// @notice Signature strings are the oracle for the revert data the deployed
20+ /// RaindexV6 artifact reverts with.
3521contract RaindexV6ErrorSelectorTest is Test {
3622 IRaindexV6 internal raindex;
3723
3824 function setUp () external {
3925 raindex = IRaindexV6 (deployCode ("RaindexV6.sol:RaindexV6 " ));
4026 }
4127
42- function testErrorSelectorsMatchSignatures () external pure {
43- assertEq (ReentrancyGuardReentrantCall.selector , bytes4 (keccak256 ("ReentrancyGuardReentrantCall() " )));
44- assertEq (NotOrderOwner.selector , bytes4 (keccak256 ("NotOrderOwner(address) " )));
45- assertEq (TokenMismatch.selector , bytes4 (keccak256 ("TokenMismatch() " )));
46- assertEq (MinimumIO.selector , bytes4 (keccak256 ("MinimumIO(bytes32,bytes32) " )));
47- assertEq (SameOwner.selector , bytes4 (keccak256 ("SameOwner() " )));
48- assertEq (UnsupportedCalculateOutputs.selector , bytes4 (keccak256 ("UnsupportedCalculateOutputs(uint256) " )));
49- assertEq (NegativeVaultBalance.selector , bytes4 (keccak256 ("NegativeVaultBalance(bytes32) " )));
50- assertEq (NegativeVaultBalanceChange.selector , bytes4 (keccak256 ("NegativeVaultBalanceChange(bytes32) " )));
51- assertEq (NegativePull.selector , bytes4 (keccak256 ("NegativePull() " )));
52- assertEq (NegativePush.selector , bytes4 (keccak256 ("NegativePush() " )));
53- assertEq (NegativeBounty.selector , bytes4 (keccak256 ("NegativeBounty() " )));
54- assertEq (ClearZeroAmount.selector , bytes4 (keccak256 ("ClearZeroAmount() " )));
55- }
56-
5728 function order (address owner , address inputToken , address outputToken ) internal pure returns (OrderV4 memory ) {
5829 IOV2[] memory inputs = new IOV2 [](1 );
5930 inputs[0 ] = IOV2 (inputToken, bytes32 (uint256 (1 )));
0 commit comments