@orbs-network/spot 0.0.2 → 0.0.4

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 (180) hide show
  1. package/README.md +26 -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/ERC20Mock6Decimals.sol/ERC20Mock6Decimals.abi.json +346 -0
  35. package/out/ERC20Mock6Decimals.sol/ERC20Mock6Decimals.json +1 -0
  36. package/out/EpochLib.sol/EpochLib.json +1 -1
  37. package/out/EpochLib.t.sol/EpochLibTest.json +1 -1
  38. package/out/Errors.sol/Errors.abi.json +39 -0
  39. package/out/Errors.sol/Errors.json +1 -0
  40. package/out/ExclusivityOverrideLib.sol/ExclusivityOverrideLib.json +1 -1
  41. package/out/ExclusivityOverrideLib.t.sol/ExclusivityCaller.json +1 -1
  42. package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.json +1 -1
  43. package/out/Executor.sol/Executor.abi.json +69 -21
  44. package/out/Executor.sol/Executor.json +1 -1
  45. package/out/Executor.t.sol/ExecutorTest.json +1 -1
  46. package/out/IEIP712.sol/IEIP712.json +1 -1
  47. package/out/IERC1271.sol/IERC1271.json +1 -1
  48. package/out/IERC1363.sol/IERC1363.abi.json +373 -0
  49. package/out/IERC1363.sol/IERC1363.json +1 -0
  50. package/out/IERC165.sol/IERC165.abi.json +21 -0
  51. package/out/IERC165.sol/IERC165.json +1 -0
  52. package/out/IERC20.sol/IERC20.abi.json +3 -3
  53. package/out/IERC20.sol/IERC20.json +1 -1
  54. package/out/IERC20Metadata.sol/IERC20Metadata.abi.json +3 -3
  55. package/out/IERC20Metadata.sol/IERC20Metadata.json +1 -1
  56. package/out/IERC5267.sol/IERC5267.json +1 -1
  57. package/out/IERC7913.sol/IERC7913SignatureVerifier.abi.json +31 -0
  58. package/out/IERC7913.sol/IERC7913SignatureVerifier.json +1 -0
  59. package/out/IExchangeAdapter.sol/IExchangeAdapter.abi.json +4 -4
  60. package/out/IExchangeAdapter.sol/IExchangeAdapter.json +1 -1
  61. package/out/IMulticall3.sol/IMulticall3.json +1 -1
  62. package/out/IReactor.sol/IReactor.abi.json +4 -4
  63. package/out/IReactor.sol/IReactor.json +1 -1
  64. package/out/IReactorCallback.sol/IReactorCallback.abi.json +4 -4
  65. package/out/IReactorCallback.sol/IReactorCallback.json +1 -1
  66. package/out/IWM.sol/IWM.json +1 -1
  67. package/out/LowLevelCall.sol/LowLevelCall.abi.json +1 -0
  68. package/out/LowLevelCall.sol/LowLevelCall.json +1 -0
  69. package/out/Math.sol/Math.json +1 -1
  70. package/out/MessageHashUtils.sol/MessageHashUtils.abi.json +1 -0
  71. package/out/MessageHashUtils.sol/MessageHashUtils.json +1 -0
  72. package/out/MockDexRouter.sol/MockDexRouter.json +1 -1
  73. package/out/MockReactor.sol/MockReactor.abi.json +8 -8
  74. package/out/MockReactor.sol/MockReactor.json +1 -1
  75. package/out/Multicall3Lib.sol/Multicall3Lib.json +1 -1
  76. package/out/OrderLib.sol/OrderLib.json +1 -1
  77. package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.abi.json +26 -0
  78. package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.json +1 -1
  79. package/out/OrderReactor.sol/OrderReactor.abi.json +134 -6
  80. package/out/OrderReactor.sol/OrderReactor.json +1 -1
  81. package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.abi.json +937 -0
  82. package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.json +1 -0
  83. package/out/OrderReactorPause.t.sol/SimpleCallback.abi.json +285 -0
  84. package/out/OrderReactorPause.t.sol/SimpleCallback.json +1 -0
  85. package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.abi.json +8 -3
  86. package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.json +1 -1
  87. package/out/OrderValidationLib.sol/OrderValidationLib.abi.json +6 -1
  88. package/out/OrderValidationLib.sol/OrderValidationLib.json +1 -1
  89. package/out/OrderValidationLib.t.sol/OrderValidationLibTest.abi.json +29 -3
  90. package/out/OrderValidationLib.t.sol/OrderValidationLibTest.json +1 -1
  91. package/out/Ownable.sol/Ownable.abi.json +22 -0
  92. package/out/Ownable.sol/Ownable.json +1 -1
  93. package/out/Ownable2Step.sol/Ownable2Step.abi.json +22 -0
  94. package/out/Ownable2Step.sol/Ownable2Step.json +1 -1
  95. package/out/Panic.sol/Panic.abi.json +1 -0
  96. package/out/Panic.sol/Panic.json +1 -0
  97. package/out/Pausable.sol/Pausable.abi.json +51 -0
  98. package/out/Pausable.sol/Pausable.json +1 -0
  99. package/out/RePermit.sol/RePermit.abi.json +11 -0
  100. package/out/RePermit.sol/RePermit.json +1 -1
  101. package/out/RePermit.t.sol/RePermitTest.json +1 -1
  102. package/out/RePermitLib.sol/RePermitLib.json +1 -1
  103. package/out/ReentrancyGuard.sol/ReentrancyGuard.abi.json +7 -1
  104. package/out/ReentrancyGuard.sol/ReentrancyGuard.json +1 -1
  105. package/out/Refinery.sol/Refinery.abi.json +32 -0
  106. package/out/Refinery.sol/Refinery.json +1 -1
  107. package/out/Refinery.t.sol/RefineryTest.json +1 -1
  108. package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.abi.json +3 -3
  109. package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.json +1 -1
  110. package/out/ResolutionLib.sol/ResolutionLib.abi.json +1 -1
  111. package/out/ResolutionLib.sol/ResolutionLib.json +1 -1
  112. package/out/ResolutionLib.t.sol/ResolutionLibTest.abi.json +24 -3
  113. package/out/ResolutionLib.t.sol/ResolutionLibTest.json +1 -1
  114. package/out/SafeCast.sol/SafeCast.abi.json +56 -0
  115. package/out/SafeCast.sol/SafeCast.json +1 -0
  116. package/out/SafeERC20.sol/SafeERC20.abi.json +34 -1
  117. package/out/SafeERC20.sol/SafeERC20.json +1 -1
  118. package/out/Script.sol/Script.json +1 -1
  119. package/out/SettlementLib.sol/SettlementLib.json +1 -1
  120. package/out/SettlementLib.t.sol/SettlementLibTest.json +1 -1
  121. package/out/SettlementLib.t.sol/SettlementWrapper.abi.json +36 -4
  122. package/out/SettlementLib.t.sol/SettlementWrapper.json +1 -1
  123. package/out/ShortStrings.sol/ShortStrings.json +1 -1
  124. package/out/SignatureChecker.sol/SignatureChecker.json +1 -1
  125. package/out/SignedMath.sol/SignedMath.json +1 -1
  126. package/out/StdAssertions.sol/StdAssertions.json +1 -1
  127. package/out/StdChains.sol/StdChains.json +1 -1
  128. package/out/StdCheats.sol/StdCheats.json +1 -1
  129. package/out/StdCheats.sol/StdCheatsSafe.json +1 -1
  130. package/out/StdConstants.sol/StdConstants.json +1 -1
  131. package/out/StdError.sol/stdError.json +1 -1
  132. package/out/StdInvariant.sol/StdInvariant.json +1 -1
  133. package/out/StdJson.sol/stdJson.json +1 -1
  134. package/out/StdMath.sol/stdMath.json +1 -1
  135. package/out/StdStorage.sol/stdStorage.json +1 -1
  136. package/out/StdStorage.sol/stdStorageSafe.json +1 -1
  137. package/out/StdStyle.sol/StdStyle.json +1 -1
  138. package/out/StdToml.sol/stdToml.json +1 -1
  139. package/out/StdUtils.sol/StdUtils.json +1 -1
  140. package/out/StorageSlot.sol/StorageSlot.json +1 -1
  141. package/out/Strings.sol/Strings.abi.json +28 -1
  142. package/out/Strings.sol/Strings.json +1 -1
  143. package/out/SurplusLib.sol/SurplusLib.json +1 -1
  144. package/out/SurplusLib.t.sol/SurplusHarness.abi.json +99 -0
  145. package/out/SurplusLib.t.sol/SurplusHarness.json +1 -0
  146. package/out/SurplusLib.t.sol/SurplusLibTest.abi.json +649 -0
  147. package/out/SurplusLib.t.sol/SurplusLibTest.json +1 -0
  148. package/out/SwapAdapter.sol/SwapAdapterMock.abi.json +4 -4
  149. package/out/SwapAdapter.sol/SwapAdapterMock.json +1 -1
  150. package/out/Test.sol/Test.json +1 -1
  151. package/out/TokenLib.sol/TokenLib.json +1 -1
  152. package/out/USDTMock.sol/USDTMock.abi.json +88 -50
  153. package/out/USDTMock.sol/USDTMock.json +1 -1
  154. package/out/Vm.sol/Vm.json +1 -1
  155. package/out/Vm.sol/VmSafe.json +1 -1
  156. package/out/WM.sol/WM.abi.json +22 -0
  157. package/out/WM.sol/WM.json +1 -1
  158. package/out/WM.t.sol/WMTest.json +1 -1
  159. package/out/WMAllowed.sol/WMAllowed.abi.json +20 -0
  160. package/out/WMAllowed.sol/WMAllowed.json +1 -0
  161. package/out/build-info/1b030856fa3ecf8385c021b87d553a62.json +1 -0
  162. package/out/build-info/f6ddd13bd0f7b6f0525777fca44ca964.json +1 -0
  163. package/out/console.sol/console.json +1 -1
  164. package/out/draft-IERC6093.sol/IERC1155Errors.abi.json +104 -0
  165. package/out/draft-IERC6093.sol/IERC1155Errors.json +1 -0
  166. package/out/draft-IERC6093.sol/IERC20Errors.abi.json +88 -0
  167. package/out/draft-IERC6093.sol/IERC20Errors.json +1 -0
  168. package/out/draft-IERC6093.sol/IERC721Errors.abi.json +105 -0
  169. package/out/draft-IERC6093.sol/IERC721Errors.json +1 -0
  170. package/out/safeconsole.sol/safeconsole.json +1 -1
  171. package/package.json +1 -1
  172. package/script/input/config.json +8 -8
  173. package/script/input/order.json +61 -0
  174. package/script/input/repermit.skeleton.json +4 -4
  175. package/out/IERC20Permit.sol/IERC20Permit.abi.json +0 -77
  176. package/out/IERC20Permit.sol/IERC20Permit.json +0 -1
  177. package/out/build-info/73bd7c3e9ec8bc61cee51a6d313820a9.json +0 -1
  178. package/out/build-info/77f38a2f64e07d9cd0b3e2102d7863fd.json +0 -1
  179. package/out/build-info/bf2da9800c0b2d6b74f871364578b022.json +0 -1
  180. package/out/build-info/f1185935442ac1be7e6acad26197fe26.json +0 -1
@@ -523,6 +523,13 @@
523
523
  "outputs": [],
524
524
  "stateMutability": "nonpayable"
525
525
  },
526
+ {
527
+ "type": "function",
528
+ "name": "test_e2e_eth_to_usd_cosigned_respects_decimals",
529
+ "inputs": [],
530
+ "outputs": [],
531
+ "stateMutability": "nonpayable"
532
+ },
526
533
  {
527
534
  "type": "function",
528
535
  "name": "test_e2e_exclusivity_override_enforces_competitor_min_out",
@@ -551,6 +558,13 @@
551
558
  "outputs": [],
552
559
  "stateMutability": "nonpayable"
553
560
  },
561
+ {
562
+ "type": "function",
563
+ "name": "test_e2e_stop_zero_allows_execution",
564
+ "inputs": [],
565
+ "outputs": [],
566
+ "stateMutability": "nonpayable"
567
+ },
554
568
  {
555
569
  "type": "function",
556
570
  "name": "test_e2e_twap_multi_fill_respects_epoch_and_permit_limits",
@@ -558,6 +572,13 @@
558
572
  "outputs": [],
559
573
  "stateMutability": "nonpayable"
560
574
  },
575
+ {
576
+ "type": "function",
577
+ "name": "test_e2e_usd_to_eth_cosigned_respects_decimals",
578
+ "inputs": [],
579
+ "outputs": [],
580
+ "stateMutability": "nonpayable"
581
+ },
561
582
  {
562
583
  "type": "function",
563
584
  "name": "token",
@@ -960,5 +981,10 @@
960
981
  }
961
982
  ],
962
983
  "anonymous": false
984
+ },
985
+ {
986
+ "type": "error",
987
+ "name": "CosignedExceedsStop",
988
+ "inputs": []
963
989
  }
964
990
  ]