@orbs-network/spot 0.0.11 → 0.0.13

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 (119) hide show
  1. package/README.md +7 -9
  2. package/out/00_DeployWM.s.sol/DeployWM.abi.json +1 -1
  3. package/out/00_DeployWM.s.sol/DeployWM.json +1 -1
  4. package/out/{01_UpdateWMWhitelist.s.sol → 00_UpdateWMWhitelist.s.sol}/UpdateWMWhitelist.json +1 -1
  5. package/out/{02_DeployRepermit.s.sol → 01_DeployRepermit.s.sol}/DeployRepermit.json +1 -1
  6. package/out/02_DeployCosigner.s.sol/DeployCosigner.abi.json +28 -0
  7. package/out/02_DeployCosigner.s.sol/DeployCosigner.json +1 -0
  8. package/out/03_DeployReactor.s.sol/DeployReactor.json +1 -1
  9. package/out/04_DeployExecutor.s.sol/DeployExecutor.json +1 -1
  10. package/out/05_DeployDefaultExchange.s.sol/DeployDefaultExchange.json +1 -1
  11. package/out/05_DeployP2Exchange.s.sol/DeployP2Exchange.json +1 -1
  12. package/out/06_DeployRefinery.s.sol/DeployRefinery.json +1 -1
  13. package/out/07_CheckOrder.s.sol/AlwaysValid1271.json +1 -1
  14. package/out/07_CheckOrder.s.sol/CheckOrder.json +1 -1
  15. package/out/AbstractSigner.sol/AbstractSigner.abi.json +1 -0
  16. package/out/AbstractSigner.sol/AbstractSigner.json +1 -0
  17. package/out/BaseTest.sol/BaseTest.json +1 -1
  18. package/out/Constants.sol/Constants.json +1 -1
  19. package/out/CosignatureLib.sol/CosignatureLib.json +1 -1
  20. package/out/CosignatureLib.t.sol/CosignatureLibTest.json +1 -1
  21. package/out/Cosigner.sol/Cosigner.abi.json +283 -0
  22. package/out/Cosigner.sol/Cosigner.json +1 -0
  23. package/out/Cosigner.t.sol/CosignerTest.abi.json +935 -0
  24. package/out/Cosigner.t.sol/CosignerTest.json +1 -0
  25. package/out/Cosigner.t.sol/CosignerWrapper.abi.json +307 -0
  26. package/out/Cosigner.t.sol/CosignerWrapper.json +1 -0
  27. package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.abi.json +1024 -0
  28. package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.json +1 -0
  29. package/out/DefaultDexAdapter.sol/DefaultDexAdapter.abi.json +3 -3
  30. package/out/DefaultDexAdapter.sol/DefaultDexAdapter.json +1 -1
  31. package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.json +1 -1
  32. package/out/ERC20Mock.sol/ERC20Mock.json +1 -1
  33. package/out/ERC20Mock6Decimals.sol/ERC20Mock6Decimals.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/ExclusivityOverrideLib.sol/ExclusivityOverrideLib.json +1 -1
  37. package/out/ExclusivityOverrideLib.t.sol/ExclusivityCaller.json +1 -1
  38. package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.json +1 -1
  39. package/out/Executor.sol/Executor.abi.json +32 -6
  40. package/out/Executor.sol/Executor.json +1 -1
  41. package/out/Executor.t.sol/ExecutorTest.abi.json +28 -0
  42. package/out/Executor.t.sol/ExecutorTest.json +1 -1
  43. package/out/IEIP712.sol/IEIP712.json +1 -1
  44. package/out/IERC165.sol/IERC165.json +1 -1
  45. package/out/IExchangeAdapter.sol/IExchangeAdapter.abi.json +3 -3
  46. package/out/IExchangeAdapter.sol/IExchangeAdapter.json +1 -1
  47. package/out/IPermit2.sol/IPermit2.json +1 -1
  48. package/out/IReactor.sol/IReactor.abi.json +3 -3
  49. package/out/IReactor.sol/IReactor.json +1 -1
  50. package/out/IReactorCallback.sol/IReactorCallback.abi.json +3 -3
  51. package/out/IReactorCallback.sol/IReactorCallback.json +1 -1
  52. package/out/IWM.sol/IWM.json +1 -1
  53. package/out/Math.sol/Math.json +1 -1
  54. package/out/MockDexRouter.sol/MockDexRouter.json +1 -1
  55. package/out/MockPermit2.sol/MockPermit2.json +1 -1
  56. package/out/MockReactor.sol/MockReactor.abi.json +34 -27
  57. package/out/MockReactor.sol/MockReactor.json +1 -1
  58. package/out/Multicall3Lib.sol/Multicall3Lib.json +1 -1
  59. package/out/OrderLib.sol/OrderLib.json +1 -1
  60. package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.abi.json +7 -0
  61. package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.json +1 -1
  62. package/out/OrderReactor.sol/OrderReactor.abi.json +3 -3
  63. package/out/OrderReactor.sol/OrderReactor.json +1 -1
  64. package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.json +1 -1
  65. package/out/OrderReactorPause.t.sol/SimpleCallback.abi.json +3 -3
  66. package/out/OrderReactorPause.t.sol/SimpleCallback.json +1 -1
  67. package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.json +1 -1
  68. package/out/OrderValidationLib.sol/OrderValidationLib.json +1 -1
  69. package/out/OrderValidationLib.t.sol/OrderValidationLibTest.abi.json +7 -0
  70. package/out/OrderValidationLib.t.sol/OrderValidationLibTest.json +1 -1
  71. package/out/P2DexAdapter.sol/P2DexAdapter.abi.json +3 -3
  72. package/out/P2DexAdapter.sol/P2DexAdapter.json +1 -1
  73. package/out/P2DexAdapter.t.sol/P2DexAdapterTest.json +1 -1
  74. package/out/RePermit.sol/RePermit.json +1 -1
  75. package/out/RePermit.t.sol/RePermitTest.json +1 -1
  76. package/out/RePermitLib.sol/RePermitLib.json +1 -1
  77. package/out/Refinery.sol/Refinery.json +1 -1
  78. package/out/Refinery.t.sol/RefineryTest.json +1 -1
  79. package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.json +1 -1
  80. package/out/ResolutionLib.sol/ResolutionLib.json +1 -1
  81. package/out/ResolutionLib.t.sol/ResolutionLibTest.json +1 -1
  82. package/out/SafeCast.sol/SafeCast.json +1 -1
  83. package/out/SettlementLib.sol/SettlementLib.abi.json +26 -0
  84. package/out/SettlementLib.sol/SettlementLib.json +1 -1
  85. package/out/SettlementLib.t.sol/SettlementLibTest.abi.json +7 -0
  86. package/out/SettlementLib.t.sol/SettlementLibTest.json +1 -1
  87. package/out/SettlementLib.t.sol/SettlementWrapper.abi.json +3 -3
  88. package/out/SettlementLib.t.sol/SettlementWrapper.json +1 -1
  89. package/out/SignedMath.sol/SignedMath.json +1 -1
  90. package/out/StdError.sol/stdError.json +1 -1
  91. package/out/SurplusLib.sol/SurplusLib.json +1 -1
  92. package/out/SurplusLib.t.sol/SurplusHarness.json +1 -1
  93. package/out/SurplusLib.t.sol/SurplusLibTest.json +1 -1
  94. package/out/SwapAdapter.sol/SwapAdapterMock.abi.json +3 -3
  95. package/out/SwapAdapter.sol/SwapAdapterMock.json +1 -1
  96. package/out/TokenLib.sol/TokenLib.json +1 -1
  97. package/out/TokenLib.t.sol/TokenLibHarness.abi.json +108 -0
  98. package/out/TokenLib.t.sol/TokenLibHarness.json +1 -0
  99. package/out/TokenLib.t.sol/TokenLibTest.abi.json +591 -0
  100. package/out/TokenLib.t.sol/TokenLibTest.json +1 -0
  101. package/out/USDTMock.sol/USDTMock.json +1 -1
  102. package/out/WM.sol/WM.json +1 -1
  103. package/out/WM.t.sol/WMTest.json +1 -1
  104. package/out/WMAllowed.sol/WMAllowed.json +1 -1
  105. package/out/build-info/20f563941fc0a849.json +1 -0
  106. package/out/build-info/41e657f703fce171.json +1 -0
  107. package/out/build-info/{f16f669db7eddfe3.json → 4e0fd3e97fb8c77e.json} +1 -1
  108. package/out/build-info/50d4a161d830da98.json +1 -0
  109. package/out/build-info/5ea14177d8c08770.json +1 -0
  110. package/out/build-info/6633b6f1d6f4bfa2.json +1 -0
  111. package/out/build-info/7aad2b179fe2fa67.json +1 -0
  112. package/out/build-info/{e0a36e520084dd42.json → c70ba923379ddca4.json} +1 -1
  113. package/out/build-info/dbc5b333069e50a4.json +1 -0
  114. package/package.json +1 -1
  115. package/script/input/config.json +30 -10
  116. package/script/input/order.json +8 -6
  117. package/script/input/legacy-config.json +0 -80
  118. /package/out/{01_UpdateWMWhitelist.s.sol → 00_UpdateWMWhitelist.s.sol}/UpdateWMWhitelist.abi.json +0 -0
  119. /package/out/{02_DeployRepermit.s.sol → 01_DeployRepermit.s.sol}/DeployRepermit.abi.json +0 -0
@@ -255,9 +255,9 @@
255
255
  "internalType": "uint256"
256
256
  },
257
257
  {
258
- "name": "fee",
259
- "type": "tuple",
260
- "internalType": "struct Output",
258
+ "name": "fees",
259
+ "type": "tuple[]",
260
+ "internalType": "struct Output[]",
261
261
  "components": [
262
262
  {
263
263
  "name": "token",
@@ -551,9 +551,9 @@
551
551
  "internalType": "uint256"
552
552
  },
553
553
  {
554
- "name": "fee",
555
- "type": "tuple",
556
- "internalType": "struct Output",
554
+ "name": "fees",
555
+ "type": "tuple[]",
556
+ "internalType": "struct Output[]",
557
557
  "components": [
558
558
  {
559
559
  "name": "token",
@@ -725,6 +725,32 @@
725
725
  }
726
726
  ]
727
727
  },
728
+ {
729
+ "type": "error",
730
+ "name": "InsufficientPostSwapBalance",
731
+ "inputs": [
732
+ {
733
+ "name": "balance",
734
+ "type": "uint256",
735
+ "internalType": "uint256"
736
+ },
737
+ {
738
+ "name": "resolved",
739
+ "type": "uint256",
740
+ "internalType": "uint256"
741
+ },
742
+ {
743
+ "name": "fees",
744
+ "type": "uint256",
745
+ "internalType": "uint256"
746
+ },
747
+ {
748
+ "name": "required",
749
+ "type": "uint256",
750
+ "internalType": "uint256"
751
+ }
752
+ ]
753
+ },
728
754
  {
729
755
  "type": "error",
730
756
  "name": "InvalidOrder",