@orbs-network/spot 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/README.md +25 -22
  2. package/out/00_DeployWM.s.sol/DeployWM.json +1 -1
  3. package/out/01_UpdateWMWhitelist.s.sol/UpdateWMWhitelist.json +1 -1
  4. package/out/02_DeployRepermit.s.sol/DeployRepermit.json +1 -1
  5. package/out/03_DeployReactor.s.sol/DeployReactor.json +1 -1
  6. package/out/04_DeployExecutor.s.sol/DeployExecutor.json +1 -1
  7. package/out/05_DeployDefaultExchange.s.sol/DeployDefaultExchange.json +1 -1
  8. package/out/06_DeployRefinery.s.sol/DeployRefinery.json +1 -1
  9. package/out/07_CheckOrderSignature.s.sol/CheckOrderSignature.abi.json +33 -0
  10. package/out/07_CheckOrderSignature.s.sol/CheckOrderSignature.json +1 -0
  11. package/out/Address.sol/Address.abi.json +13 -1
  12. package/out/Address.sol/Address.json +1 -1
  13. package/out/Base.sol/CommonBase.json +1 -1
  14. package/out/Base.sol/ScriptBase.json +1 -1
  15. package/out/Base.sol/TestBase.json +1 -1
  16. package/out/BaseTest.sol/BaseTest.json +1 -1
  17. package/out/Bytes.sol/Bytes.abi.json +1 -0
  18. package/out/Bytes.sol/Bytes.json +1 -0
  19. package/out/Constants.sol/Constants.json +1 -1
  20. package/out/Context.sol/Context.json +1 -1
  21. package/out/CosignatureLib.sol/CosignatureLib.json +1 -1
  22. package/out/CosignatureLib.t.sol/CosignatureLibTest.abi.json +2 -2
  23. package/out/CosignatureLib.t.sol/CosignatureLibTest.json +1 -1
  24. package/out/DefaultDexAdapter.sol/DefaultDexAdapter.abi.json +47 -4
  25. package/out/DefaultDexAdapter.sol/DefaultDexAdapter.json +1 -1
  26. package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.json +1 -1
  27. package/out/ECDSA.sol/ECDSA.abi.json +29 -1
  28. package/out/ECDSA.sol/ECDSA.json +1 -1
  29. package/out/EIP712.sol/EIP712.json +1 -1
  30. package/out/ERC20.sol/ERC20.abi.json +89 -67
  31. package/out/ERC20.sol/ERC20.json +1 -1
  32. package/out/ERC20Mock.sol/ERC20Mock.abi.json +89 -51
  33. package/out/ERC20Mock.sol/ERC20Mock.json +1 -1
  34. package/out/EpochLib.sol/EpochLib.json +1 -1
  35. package/out/EpochLib.t.sol/EpochLibTest.json +1 -1
  36. package/out/Errors.sol/Errors.abi.json +39 -0
  37. package/out/Errors.sol/Errors.json +1 -0
  38. package/out/ExclusivityOverrideLib.sol/ExclusivityOverrideLib.json +1 -1
  39. package/out/ExclusivityOverrideLib.t.sol/ExclusivityCaller.json +1 -1
  40. package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.json +1 -1
  41. package/out/Executor.sol/Executor.abi.json +69 -21
  42. package/out/Executor.sol/Executor.json +1 -1
  43. package/out/Executor.t.sol/ExecutorTest.json +1 -1
  44. package/out/IEIP712.sol/IEIP712.json +1 -1
  45. package/out/IERC1271.sol/IERC1271.json +1 -1
  46. package/out/IERC1363.sol/IERC1363.abi.json +373 -0
  47. package/out/IERC1363.sol/IERC1363.json +1 -0
  48. package/out/IERC165.sol/IERC165.abi.json +21 -0
  49. package/out/IERC165.sol/IERC165.json +1 -0
  50. package/out/IERC20.sol/IERC20.abi.json +3 -3
  51. package/out/IERC20.sol/IERC20.json +1 -1
  52. package/out/IERC20Metadata.sol/IERC20Metadata.abi.json +3 -3
  53. package/out/IERC20Metadata.sol/IERC20Metadata.json +1 -1
  54. package/out/IERC5267.sol/IERC5267.json +1 -1
  55. package/out/IERC7913.sol/IERC7913SignatureVerifier.abi.json +31 -0
  56. package/out/IERC7913.sol/IERC7913SignatureVerifier.json +1 -0
  57. package/out/IExchangeAdapter.sol/IExchangeAdapter.abi.json +4 -4
  58. package/out/IExchangeAdapter.sol/IExchangeAdapter.json +1 -1
  59. package/out/IMulticall3.sol/IMulticall3.json +1 -1
  60. package/out/IReactor.sol/IReactor.abi.json +4 -4
  61. package/out/IReactor.sol/IReactor.json +1 -1
  62. package/out/IReactorCallback.sol/IReactorCallback.abi.json +4 -4
  63. package/out/IReactorCallback.sol/IReactorCallback.json +1 -1
  64. package/out/IWM.sol/IWM.json +1 -1
  65. package/out/LowLevelCall.sol/LowLevelCall.abi.json +1 -0
  66. package/out/LowLevelCall.sol/LowLevelCall.json +1 -0
  67. package/out/Math.sol/Math.json +1 -1
  68. package/out/MessageHashUtils.sol/MessageHashUtils.abi.json +1 -0
  69. package/out/MessageHashUtils.sol/MessageHashUtils.json +1 -0
  70. package/out/MockDexRouter.sol/MockDexRouter.json +1 -1
  71. package/out/MockReactor.sol/MockReactor.abi.json +8 -8
  72. package/out/MockReactor.sol/MockReactor.json +1 -1
  73. package/out/Multicall3Lib.sol/Multicall3Lib.json +1 -1
  74. package/out/OrderLib.sol/OrderLib.json +1 -1
  75. package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.json +1 -1
  76. package/out/OrderReactor.sol/OrderReactor.abi.json +134 -6
  77. package/out/OrderReactor.sol/OrderReactor.json +1 -1
  78. package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.abi.json +937 -0
  79. package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.json +1 -0
  80. package/out/OrderReactorPause.t.sol/SimpleCallback.abi.json +285 -0
  81. package/out/OrderReactorPause.t.sol/SimpleCallback.json +1 -0
  82. package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.abi.json +8 -3
  83. package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.json +1 -1
  84. package/out/OrderValidationLib.sol/OrderValidationLib.abi.json +6 -1
  85. package/out/OrderValidationLib.sol/OrderValidationLib.json +1 -1
  86. package/out/OrderValidationLib.t.sol/OrderValidationLibTest.abi.json +15 -3
  87. package/out/OrderValidationLib.t.sol/OrderValidationLibTest.json +1 -1
  88. package/out/Ownable.sol/Ownable.abi.json +22 -0
  89. package/out/Ownable.sol/Ownable.json +1 -1
  90. package/out/Ownable2Step.sol/Ownable2Step.abi.json +22 -0
  91. package/out/Ownable2Step.sol/Ownable2Step.json +1 -1
  92. package/out/Panic.sol/Panic.abi.json +1 -0
  93. package/out/Panic.sol/Panic.json +1 -0
  94. package/out/Pausable.sol/Pausable.abi.json +51 -0
  95. package/out/Pausable.sol/Pausable.json +1 -0
  96. package/out/RePermit.sol/RePermit.abi.json +11 -0
  97. package/out/RePermit.sol/RePermit.json +1 -1
  98. package/out/RePermit.t.sol/RePermitTest.json +1 -1
  99. package/out/RePermitLib.sol/RePermitLib.json +1 -1
  100. package/out/ReentrancyGuard.sol/ReentrancyGuard.abi.json +7 -1
  101. package/out/ReentrancyGuard.sol/ReentrancyGuard.json +1 -1
  102. package/out/Refinery.sol/Refinery.abi.json +32 -0
  103. package/out/Refinery.sol/Refinery.json +1 -1
  104. package/out/Refinery.t.sol/RefineryTest.json +1 -1
  105. package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.abi.json +3 -3
  106. package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.json +1 -1
  107. package/out/ResolutionLib.sol/ResolutionLib.abi.json +1 -1
  108. package/out/ResolutionLib.sol/ResolutionLib.json +1 -1
  109. package/out/ResolutionLib.t.sol/ResolutionLibTest.abi.json +3 -3
  110. package/out/ResolutionLib.t.sol/ResolutionLibTest.json +1 -1
  111. package/out/SafeCast.sol/SafeCast.abi.json +56 -0
  112. package/out/SafeCast.sol/SafeCast.json +1 -0
  113. package/out/SafeERC20.sol/SafeERC20.abi.json +34 -1
  114. package/out/SafeERC20.sol/SafeERC20.json +1 -1
  115. package/out/Script.sol/Script.json +1 -1
  116. package/out/SettlementLib.sol/SettlementLib.json +1 -1
  117. package/out/SettlementLib.t.sol/SettlementLibTest.json +1 -1
  118. package/out/SettlementLib.t.sol/SettlementWrapper.abi.json +36 -4
  119. package/out/SettlementLib.t.sol/SettlementWrapper.json +1 -1
  120. package/out/ShortStrings.sol/ShortStrings.json +1 -1
  121. package/out/SignatureChecker.sol/SignatureChecker.json +1 -1
  122. package/out/SignedMath.sol/SignedMath.json +1 -1
  123. package/out/StdAssertions.sol/StdAssertions.json +1 -1
  124. package/out/StdChains.sol/StdChains.json +1 -1
  125. package/out/StdCheats.sol/StdCheats.json +1 -1
  126. package/out/StdCheats.sol/StdCheatsSafe.json +1 -1
  127. package/out/StdConstants.sol/StdConstants.json +1 -1
  128. package/out/StdError.sol/stdError.json +1 -1
  129. package/out/StdInvariant.sol/StdInvariant.json +1 -1
  130. package/out/StdJson.sol/stdJson.json +1 -1
  131. package/out/StdMath.sol/stdMath.json +1 -1
  132. package/out/StdStorage.sol/stdStorage.json +1 -1
  133. package/out/StdStorage.sol/stdStorageSafe.json +1 -1
  134. package/out/StdStyle.sol/StdStyle.json +1 -1
  135. package/out/StdToml.sol/stdToml.json +1 -1
  136. package/out/StdUtils.sol/StdUtils.json +1 -1
  137. package/out/StorageSlot.sol/StorageSlot.json +1 -1
  138. package/out/Strings.sol/Strings.abi.json +28 -1
  139. package/out/Strings.sol/Strings.json +1 -1
  140. package/out/SurplusLib.sol/SurplusLib.json +1 -1
  141. package/out/SurplusLib.t.sol/SurplusHarness.abi.json +99 -0
  142. package/out/SurplusLib.t.sol/SurplusHarness.json +1 -0
  143. package/out/SurplusLib.t.sol/SurplusLibTest.abi.json +649 -0
  144. package/out/SurplusLib.t.sol/SurplusLibTest.json +1 -0
  145. package/out/SwapAdapter.sol/SwapAdapterMock.abi.json +4 -4
  146. package/out/SwapAdapter.sol/SwapAdapterMock.json +1 -1
  147. package/out/Test.sol/Test.json +1 -1
  148. package/out/TokenLib.sol/TokenLib.json +1 -1
  149. package/out/USDTMock.sol/USDTMock.abi.json +88 -50
  150. package/out/USDTMock.sol/USDTMock.json +1 -1
  151. package/out/Vm.sol/Vm.json +1 -1
  152. package/out/Vm.sol/VmSafe.json +1 -1
  153. package/out/WM.sol/WM.abi.json +22 -0
  154. package/out/WM.sol/WM.json +1 -1
  155. package/out/WM.t.sol/WMTest.json +1 -1
  156. package/out/WMAllowed.sol/WMAllowed.abi.json +20 -0
  157. package/out/WMAllowed.sol/WMAllowed.json +1 -0
  158. package/out/build-info/037112f63429c300b44e96328184f05a.json +1 -0
  159. package/out/build-info/16de2dd5b443b11d72d219dfcd1709b9.json +1 -0
  160. package/out/build-info/50bc67b585dbea6ac87fe65f446e0ec8.json +1 -0
  161. package/out/build-info/59250f5d4903fd400804c8dcf9731df6.json +1 -0
  162. package/out/build-info/9c92abef5721c2db19a5f93602da1109.json +1 -0
  163. package/out/build-info/dc9b337f3ebd0040efbc89ac5318ff6e.json +1 -0
  164. package/out/build-info/e3089fca92b0a40eb41a6add475e1864.json +1 -0
  165. package/out/build-info/f3a0be9d4dbd4ae836db0c7e923178fd.json +1 -0
  166. package/out/build-info/ffa3efad6bfcb2b770c05c8e61943032.json +1 -0
  167. package/out/console.sol/console.json +1 -1
  168. package/out/draft-IERC6093.sol/IERC1155Errors.abi.json +104 -0
  169. package/out/draft-IERC6093.sol/IERC1155Errors.json +1 -0
  170. package/out/draft-IERC6093.sol/IERC20Errors.abi.json +88 -0
  171. package/out/draft-IERC6093.sol/IERC20Errors.json +1 -0
  172. package/out/draft-IERC6093.sol/IERC721Errors.abi.json +105 -0
  173. package/out/draft-IERC6093.sol/IERC721Errors.json +1 -0
  174. package/out/safeconsole.sol/safeconsole.json +1 -1
  175. package/package.json +1 -1
  176. package/script/input/config.json +8 -8
  177. package/script/input/order.json +61 -0
  178. package/script/input/repermit.skeleton.json +4 -4
  179. package/out/IERC20Permit.sol/IERC20Permit.abi.json +0 -77
  180. package/out/IERC20Permit.sol/IERC20Permit.json +0 -1
  181. package/out/build-info/73bd7c3e9ec8bc61cee51a6d313820a9.json +0 -1
  182. package/out/build-info/77f38a2f64e07d9cd0b3e2102d7863fd.json +0 -1
  183. package/out/build-info/bf2da9800c0b2d6b74f871364578b022.json +0 -1
  184. package/out/build-info/f1185935442ac1be7e6acad26197fe26.json +0 -1
@@ -41,7 +41,7 @@
41
41
  },
42
42
  {
43
43
  "type": "error",
44
- "name": "InvalidOrderOutputAmountGtMax",
44
+ "name": "InvalidOrderOutputLimitGtStop",
45
45
  "inputs": []
46
46
  },
47
47
  {
@@ -59,6 +59,11 @@
59
59
  "name": "InvalidOrderReactorZero",
60
60
  "inputs": []
61
61
  },
62
+ {
63
+ "type": "error",
64
+ "name": "InvalidOrderSameToken",
65
+ "inputs": []
66
+ },
62
67
  {
63
68
  "type": "error",
64
69
  "name": "InvalidOrderSlippageTooHigh",
@@ -1 +1 @@
1
- {"abi":[{"type":"error","name":"InvalidOrderAdapterZero","inputs":[]},{"type":"error","name":"InvalidOrderChainid","inputs":[]},{"type":"error","name":"InvalidOrderDeadlineExpired","inputs":[]},{"type":"error","name":"InvalidOrderExchangeShareBps","inputs":[]},{"type":"error","name":"InvalidOrderExecutorZero","inputs":[]},{"type":"error","name":"InvalidOrderInputAmountGtMax","inputs":[]},{"type":"error","name":"InvalidOrderInputAmountZero","inputs":[]},{"type":"error","name":"InvalidOrderInputTokenZero","inputs":[]},{"type":"error","name":"InvalidOrderOutputAmountGtMax","inputs":[]},{"type":"error","name":"InvalidOrderOutputRecipientZero","inputs":[]},{"type":"error","name":"InvalidOrderReactorMismatch","inputs":[]},{"type":"error","name":"InvalidOrderReactorZero","inputs":[]},{"type":"error","name":"InvalidOrderSlippageTooHigh","inputs":[]},{"type":"error","name":"InvalidOrderSwapperZero","inputs":[]}],"bytecode":{"object":"0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f80fdfea26469706673582212205cec70b5115a041c38c7c555f514ec50b473b3e9710456d30d6bd7b0f24a241364736f6c63430008140033","sourceMap":"197:1912:53:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;197:1912:53;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x730000000000000000000000000000000000000000301460806040525f80fdfea26469706673582212205cec70b5115a041c38c7c555f514ec50b473b3e9710456d30d6bd7b0f24a241364736f6c63430008140033","sourceMap":"197:1912:53:-:0;;;;;;;;","linkReferences":{}},"methodIdentifiers":{},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"InvalidOrderAdapterZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderChainid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderDeadlineExpired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderExchangeShareBps\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderExecutorZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderInputAmountGtMax\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderInputAmountZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderInputTokenZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderOutputAmountGtMax\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderOutputRecipientZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderReactorMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderReactorZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderSlippageTooHigh\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderSwapperZero\",\"type\":\"error\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/lib/OrderValidationLib.sol\":\"OrderValidationLib\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/\",\":openzeppelin/=lib/openzeppelin-contracts/contracts/\"]},\"sources\":{\"src/Structs.sol\":{\"keccak256\":\"0xb8f5c5a86dd60a9160f14ff7e64868ba50a5d07278d194a107cb298fb665121d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://278d79b5b0b96e17f5ba16adf6139a1c069a186eacd84ae72e8b029f614c3911\",\"dweb:/ipfs/QmVvHhBbrNXYXJcykbxo2vLWakFiSTkGbtsQw8ZeNkxpe9\"]},\"src/lib/OrderLib.sol\":{\"keccak256\":\"0xe87302c5bcede6a7134f273355c71994f9cf672571db05103504eafaff8a23af\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d99fc2177b6d0b3daf53ef02029f359723cf48736f7cb99d0ba1b093b48045bd\",\"dweb:/ipfs/QmR9YXq95wPVifG6cvECYDQJX1H5DoeM22XL5bZmWUdt5u\"]},\"src/lib/OrderValidationLib.sol\":{\"keccak256\":\"0x7475a039c0a73108ec6d6c61c822542993382325dec9b6e363da806ebf86daaf\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1db954efe2186f8704322ba4ef3cdc9b8f84d9c9f13d62f86ce5608153bf5294\",\"dweb:/ipfs/Qmekb3kj9GkbsnWJHm85ZU79MicPdQ3x8CWU3VT8wvK1Qv\"]},\"src/lib/RePermitLib.sol\":{\"keccak256\":\"0xae647bd60b6730eb08bbca01c6b6b9a8a610ac8015943879b330fce4c26c7bd3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a9bad3638e093877d949c56c95acedbbdc39e5d098bc4df501c1ec4c88604c1e\",\"dweb:/ipfs/QmWxLsuWM44cxoh4Zq3WAFVDP5iiQok51Fn4aTYo7nQX1s\"]},\"src/reactor/Constants.sol\":{\"keccak256\":\"0xada4f05a3939e87c9a9364ec976b76774286937a23c5777dbd5d3614f529911c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://013077d36c627b6cbb08b9f93f5e5fe0f4dc5bba183cd80f3d2549a5b87ab3fd\",\"dweb:/ipfs/QmdPwC2ThZeuypVKXQYrqp1L7dZEHPASnYVsgcb5dSugGz\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.20+commit.a1b79de6"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"error","name":"InvalidOrderAdapterZero"},{"inputs":[],"type":"error","name":"InvalidOrderChainid"},{"inputs":[],"type":"error","name":"InvalidOrderDeadlineExpired"},{"inputs":[],"type":"error","name":"InvalidOrderExchangeShareBps"},{"inputs":[],"type":"error","name":"InvalidOrderExecutorZero"},{"inputs":[],"type":"error","name":"InvalidOrderInputAmountGtMax"},{"inputs":[],"type":"error","name":"InvalidOrderInputAmountZero"},{"inputs":[],"type":"error","name":"InvalidOrderInputTokenZero"},{"inputs":[],"type":"error","name":"InvalidOrderOutputAmountGtMax"},{"inputs":[],"type":"error","name":"InvalidOrderOutputRecipientZero"},{"inputs":[],"type":"error","name":"InvalidOrderReactorMismatch"},{"inputs":[],"type":"error","name":"InvalidOrderReactorZero"},{"inputs":[],"type":"error","name":"InvalidOrderSlippageTooHigh"},{"inputs":[],"type":"error","name":"InvalidOrderSwapperZero"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","ds-test/=lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin/=lib/openzeppelin-contracts/contracts/"],"optimizer":{"enabled":true,"runs":1000000},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/lib/OrderValidationLib.sol":"OrderValidationLib"},"evmVersion":"shanghai","libraries":{}},"sources":{"src/Structs.sol":{"keccak256":"0xb8f5c5a86dd60a9160f14ff7e64868ba50a5d07278d194a107cb298fb665121d","urls":["bzz-raw://278d79b5b0b96e17f5ba16adf6139a1c069a186eacd84ae72e8b029f614c3911","dweb:/ipfs/QmVvHhBbrNXYXJcykbxo2vLWakFiSTkGbtsQw8ZeNkxpe9"],"license":"MIT"},"src/lib/OrderLib.sol":{"keccak256":"0xe87302c5bcede6a7134f273355c71994f9cf672571db05103504eafaff8a23af","urls":["bzz-raw://d99fc2177b6d0b3daf53ef02029f359723cf48736f7cb99d0ba1b093b48045bd","dweb:/ipfs/QmR9YXq95wPVifG6cvECYDQJX1H5DoeM22XL5bZmWUdt5u"],"license":"MIT"},"src/lib/OrderValidationLib.sol":{"keccak256":"0x7475a039c0a73108ec6d6c61c822542993382325dec9b6e363da806ebf86daaf","urls":["bzz-raw://1db954efe2186f8704322ba4ef3cdc9b8f84d9c9f13d62f86ce5608153bf5294","dweb:/ipfs/Qmekb3kj9GkbsnWJHm85ZU79MicPdQ3x8CWU3VT8wvK1Qv"],"license":"MIT"},"src/lib/RePermitLib.sol":{"keccak256":"0xae647bd60b6730eb08bbca01c6b6b9a8a610ac8015943879b330fce4c26c7bd3","urls":["bzz-raw://a9bad3638e093877d949c56c95acedbbdc39e5d098bc4df501c1ec4c88604c1e","dweb:/ipfs/QmWxLsuWM44cxoh4Zq3WAFVDP5iiQok51Fn4aTYo7nQX1s"],"license":"MIT"},"src/reactor/Constants.sol":{"keccak256":"0xada4f05a3939e87c9a9364ec976b76774286937a23c5777dbd5d3614f529911c","urls":["bzz-raw://013077d36c627b6cbb08b9f93f5e5fe0f4dc5bba183cd80f3d2549a5b87ab3fd","dweb:/ipfs/QmdPwC2ThZeuypVKXQYrqp1L7dZEHPASnYVsgcb5dSugGz"],"license":"MIT"}},"version":1},"id":53}
1
+ {"abi":[{"type":"error","name":"InvalidOrderAdapterZero","inputs":[]},{"type":"error","name":"InvalidOrderChainid","inputs":[]},{"type":"error","name":"InvalidOrderDeadlineExpired","inputs":[]},{"type":"error","name":"InvalidOrderExchangeShareBps","inputs":[]},{"type":"error","name":"InvalidOrderExecutorZero","inputs":[]},{"type":"error","name":"InvalidOrderInputAmountGtMax","inputs":[]},{"type":"error","name":"InvalidOrderInputAmountZero","inputs":[]},{"type":"error","name":"InvalidOrderInputTokenZero","inputs":[]},{"type":"error","name":"InvalidOrderOutputLimitGtStop","inputs":[]},{"type":"error","name":"InvalidOrderOutputRecipientZero","inputs":[]},{"type":"error","name":"InvalidOrderReactorMismatch","inputs":[]},{"type":"error","name":"InvalidOrderReactorZero","inputs":[]},{"type":"error","name":"InvalidOrderSameToken","inputs":[]},{"type":"error","name":"InvalidOrderSlippageTooHigh","inputs":[]},{"type":"error","name":"InvalidOrderSwapperZero","inputs":[]}],"bytecode":{"object":"0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea264697066735822122033cb1c4378525242db0b8be3e2cb394d7fb5156919f97a2bcfebf493e8a1883664736f6c634300081b0033","sourceMap":"343:2541:65:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;343:2541:65;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x730000000000000000000000000000000000000000301460806040525f5ffdfea264697066735822122033cb1c4378525242db0b8be3e2cb394d7fb5156919f97a2bcfebf493e8a1883664736f6c634300081b0033","sourceMap":"343:2541:65:-:0;;;;;;;;","linkReferences":{}},"methodIdentifiers":{},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"InvalidOrderAdapterZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderChainid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderDeadlineExpired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderExchangeShareBps\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderExecutorZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderInputAmountGtMax\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderInputAmountZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderInputTokenZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderOutputLimitGtStop\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderOutputRecipientZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderReactorMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderReactorZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderSameToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderSlippageTooHigh\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderSwapperZero\",\"type\":\"error\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"title\":\"Order validation library\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Validates order structure and enforces business logic constraints including chain ID verification\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/lib/OrderValidationLib.sol\":\"OrderValidationLib\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/\"]},\"sources\":{\"src/Structs.sol\":{\"keccak256\":\"0xc0a0b668aee4bdcb91c078baaf0d5b75fab48a3dffc79773f969787217a3588f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c4a0f169927bfa17c1900e6cb7903f3237631c71e93b3423c211d1a0af7bcde2\",\"dweb:/ipfs/QmbpQafUYtDoRiykJgehxU3ZzxmGPRYYVEAbHUb6QfLeee\"]},\"src/lib/OrderLib.sol\":{\"keccak256\":\"0xb43b90228444c8dbe0f7f7fea23d77e7211efbd5ccc4a63717a68f564478c2e9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5ee37e0abe06d5e523dd6a11106a685edc8f530a6b8c7e639eee00482d97d407\",\"dweb:/ipfs/QmcSh12r7RadKajpTr1D99r6htMCzNSVsaaLKfuqtt9q5f\"]},\"src/lib/OrderValidationLib.sol\":{\"keccak256\":\"0xd33ab2ca523fe8d6b776399f5ba567c2a4b5e508b871da61df33b030e8f65348\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da2282d857cc1fbb1f637e3d5b0f74b532318a3295e1de3e37395356452bd74f\",\"dweb:/ipfs/QmXqwenuR1dAk1bC7rw9RjjgaobayhDuLtBoicFar4LPGy\"]},\"src/lib/RePermitLib.sol\":{\"keccak256\":\"0xb7015e0112917ca49ebc1bd68d723c4fdfa19c3a1f1d0bf866643f94f7a20d96\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d838303d9afac9021bde8a45a16995c8c6e8ea9e725820a05d8c87c22308a091\",\"dweb:/ipfs/QmSDA5XvwYDLwWvkDPDSjviDc8LgaWnjJ9sEAR34xcrL13\"]},\"src/reactor/Constants.sol\":{\"keccak256\":\"0x2e75daa84011ba34b45ca5612bac4c13adf030162b17b1993c0c2f3df31199a2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6eb900f937161693038c08a7fc543f34451c4ab9e2e97b72f0b7dc0b74657ae8\",\"dweb:/ipfs/QmSZRZTNfuxy7HXYKjMCmsS3mqbxprPxjyG8Fyzv3jmbdo\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.27+commit.40a35a09"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"error","name":"InvalidOrderAdapterZero"},{"inputs":[],"type":"error","name":"InvalidOrderChainid"},{"inputs":[],"type":"error","name":"InvalidOrderDeadlineExpired"},{"inputs":[],"type":"error","name":"InvalidOrderExchangeShareBps"},{"inputs":[],"type":"error","name":"InvalidOrderExecutorZero"},{"inputs":[],"type":"error","name":"InvalidOrderInputAmountGtMax"},{"inputs":[],"type":"error","name":"InvalidOrderInputAmountZero"},{"inputs":[],"type":"error","name":"InvalidOrderInputTokenZero"},{"inputs":[],"type":"error","name":"InvalidOrderOutputLimitGtStop"},{"inputs":[],"type":"error","name":"InvalidOrderOutputRecipientZero"},{"inputs":[],"type":"error","name":"InvalidOrderReactorMismatch"},{"inputs":[],"type":"error","name":"InvalidOrderReactorZero"},{"inputs":[],"type":"error","name":"InvalidOrderSameToken"},{"inputs":[],"type":"error","name":"InvalidOrderSlippageTooHigh"},{"inputs":[],"type":"error","name":"InvalidOrderSwapperZero"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","ds-test/=lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/"],"optimizer":{"enabled":true,"runs":1000000},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/lib/OrderValidationLib.sol":"OrderValidationLib"},"evmVersion":"cancun","libraries":{}},"sources":{"src/Structs.sol":{"keccak256":"0xc0a0b668aee4bdcb91c078baaf0d5b75fab48a3dffc79773f969787217a3588f","urls":["bzz-raw://c4a0f169927bfa17c1900e6cb7903f3237631c71e93b3423c211d1a0af7bcde2","dweb:/ipfs/QmbpQafUYtDoRiykJgehxU3ZzxmGPRYYVEAbHUb6QfLeee"],"license":"MIT"},"src/lib/OrderLib.sol":{"keccak256":"0xb43b90228444c8dbe0f7f7fea23d77e7211efbd5ccc4a63717a68f564478c2e9","urls":["bzz-raw://5ee37e0abe06d5e523dd6a11106a685edc8f530a6b8c7e639eee00482d97d407","dweb:/ipfs/QmcSh12r7RadKajpTr1D99r6htMCzNSVsaaLKfuqtt9q5f"],"license":"MIT"},"src/lib/OrderValidationLib.sol":{"keccak256":"0xd33ab2ca523fe8d6b776399f5ba567c2a4b5e508b871da61df33b030e8f65348","urls":["bzz-raw://da2282d857cc1fbb1f637e3d5b0f74b532318a3295e1de3e37395356452bd74f","dweb:/ipfs/QmXqwenuR1dAk1bC7rw9RjjgaobayhDuLtBoicFar4LPGy"],"license":"MIT"},"src/lib/RePermitLib.sol":{"keccak256":"0xb7015e0112917ca49ebc1bd68d723c4fdfa19c3a1f1d0bf866643f94f7a20d96","urls":["bzz-raw://d838303d9afac9021bde8a45a16995c8c6e8ea9e725820a05d8c87c22308a091","dweb:/ipfs/QmSDA5XvwYDLwWvkDPDSjviDc8LgaWnjJ9sEAR34xcrL13"],"license":"MIT"},"src/reactor/Constants.sol":{"keccak256":"0x2e75daa84011ba34b45ca5612bac4c13adf030162b17b1993c0c2f3df31199a2","urls":["bzz-raw://6eb900f937161693038c08a7fc543f34451c4ab9e2e97b72f0b7dc0b74657ae8","dweb:/ipfs/QmSZRZTNfuxy7HXYKjMCmsS3mqbxprPxjyG8Fyzv3jmbdo"],"license":"MIT"}},"version":1},"id":65}
@@ -149,12 +149,12 @@
149
149
  "internalType": "address"
150
150
  },
151
151
  {
152
- "name": "amount",
152
+ "name": "limit",
153
153
  "type": "uint256",
154
154
  "internalType": "uint256"
155
155
  },
156
156
  {
157
- "name": "maxAmount",
157
+ "name": "stop",
158
158
  "type": "uint256",
159
159
  "internalType": "uint256"
160
160
  },
@@ -791,6 +791,13 @@
791
791
  "outputs": [],
792
792
  "stateMutability": "nonpayable"
793
793
  },
794
+ {
795
+ "type": "function",
796
+ "name": "test_validate_reverts_same_input_output_token",
797
+ "inputs": [],
798
+ "outputs": [],
799
+ "stateMutability": "nonpayable"
800
+ },
794
801
  {
795
802
  "type": "function",
796
803
  "name": "test_validate_reverts_slippageTooHigh",
@@ -1250,7 +1257,7 @@
1250
1257
  },
1251
1258
  {
1252
1259
  "type": "error",
1253
- "name": "InvalidOrderOutputAmountGtMax",
1260
+ "name": "InvalidOrderOutputLimitGtStop",
1254
1261
  "inputs": []
1255
1262
  },
1256
1263
  {
@@ -1268,6 +1275,11 @@
1268
1275
  "name": "InvalidOrderReactorZero",
1269
1276
  "inputs": []
1270
1277
  },
1278
+ {
1279
+ "type": "error",
1280
+ "name": "InvalidOrderSameToken",
1281
+ "inputs": []
1282
+ },
1271
1283
  {
1272
1284
  "type": "error",
1273
1285
  "name": "InvalidOrderSlippageTooHigh",