@orbs-network/spot 1.9.2 → 1.9.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.
- package/README.md +20 -13
- package/{script/input/config.json → config.json} +54 -10
- package/index.js +8 -3
- package/out/00_DeployWM.s.sol/DeployWM.json +1 -1
- package/out/00_UpdateWMWhitelist.s.sol/UpdateWMWhitelist.json +1 -1
- package/out/01_DeployRepermit.s.sol/DeployRepermit.json +1 -1
- package/out/02_DeployCosigner.s.sol/DeployCosigner.json +1 -1
- package/out/03_DeployReactor.s.sol/DeployReactor.json +1 -1
- package/out/04_DeployExecutor.s.sol/DeployExecutor.json +1 -1
- package/out/05_DeployRefinery.s.sol/DeployRefinery.json +1 -1
- package/out/{06_DeployDefaultExchange.s.sol/DeployDefaultExchange.abi.json → 06_DeployDefaultAdapter.s.sol/DeployDefaultAdapter.abi.json} +1 -1
- package/out/06_DeployDefaultAdapter.s.sol/DeployDefaultAdapter.json +1 -0
- package/out/{06_DeployParaswapExchange.s.sol/DeployParaswapExchange.abi.json → 06_DeployDelegatingAdapter.s.sol/DeployDelegatingAdapter.abi.json} +1 -1
- package/out/06_DeployDelegatingAdapter.s.sol/DeployDelegatingAdapter.json +1 -0
- package/out/{06_DeployP2Exchange.s.sol/DeployP2Exchange.abi.json → 06_DeployP2Adapter.s.sol/DeployP2Adapter.abi.json} +1 -1
- package/out/06_DeployP2Adapter.s.sol/DeployP2Adapter.json +1 -0
- package/out/06_DeployParaswapAdapter.s.sol/DeployParaswapAdapter.abi.json +28 -0
- package/out/06_DeployParaswapAdapter.s.sol/DeployParaswapAdapter.json +1 -0
- package/out/06_DeployUniversalAdapter.s.sol/DeployUniversalAdapter.abi.json +28 -0
- package/out/06_DeployUniversalAdapter.s.sol/DeployUniversalAdapter.json +1 -0
- package/out/BaseTest.sol/BaseTest.abi.json +26 -13
- package/out/BaseTest.sol/BaseTest.json +1 -1
- package/out/Constants.sol/Constants.json +1 -1
- package/out/CosignatureLib.sol/CosignatureLib.abi.json +10 -0
- package/out/CosignatureLib.sol/CosignatureLib.json +1 -1
- package/out/CosignatureLib.t.sol/CosignatureLibTest.abi.json +125 -16
- package/out/CosignatureLib.t.sol/CosignatureLibTest.json +1 -1
- package/out/Cosigner.sol/Cosigner.abi.json +12 -115
- package/out/Cosigner.sol/Cosigner.json +1 -1
- package/out/Cosigner.t.sol/CosignerTest.abi.json +30 -154
- package/out/Cosigner.t.sol/CosignerTest.json +1 -1
- package/out/Cosigner.t.sol/CosignerWrapper.abi.json +12 -115
- package/out/Cosigner.t.sol/CosignerWrapper.json +1 -1
- package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.abi.json +49 -33
- package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.json +1 -1
- package/out/DefaultDexAdapter.sol/DefaultDexAdapter.abi.json +105 -4
- package/out/DefaultDexAdapter.sol/DefaultDexAdapter.json +1 -1
- package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.abi.json +33 -13
- package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.json +1 -1
- package/out/DelegatingAdapter.sol/DelegatingAdapter.abi.json +402 -0
- package/out/DelegatingAdapter.sol/DelegatingAdapter.json +1 -0
- package/out/DelegatingAdapter.t.sol/DelegatingAdapterTest.abi.json +916 -0
- package/out/DelegatingAdapter.t.sol/DelegatingAdapterTest.json +1 -0
- package/out/DelegatingAdapter.t.sol/MockDelegateTarget.abi.json +22 -0
- package/out/DelegatingAdapter.t.sol/MockDelegateTarget.json +1 -0
- package/out/ERC20Mock.sol/ERC20Mock.json +1 -1
- package/out/ERC20Mock6Decimals.sol/ERC20Mock6Decimals.json +1 -1
- package/out/EpochLib.sol/EpochLib.json +1 -1
- package/out/EpochLib.t.sol/EpochLibTest.json +1 -1
- package/out/ExclusivityOverrideLib.sol/ExclusivityOverrideLib.json +1 -1
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityCaller.json +1 -1
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.abi.json +26 -13
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.json +1 -1
- package/out/Executor.sol/Executor.abi.json +200 -13
- package/out/Executor.sol/Executor.json +1 -1
- package/out/Executor.t.sol/ExecutorTest.abi.json +26 -13
- package/out/Executor.t.sol/ExecutorTest.json +1 -1
- package/out/FeeOnTransferERC20Mock.sol/FeeOnTransferERC20Mock.json +1 -1
- package/out/{07_CheckOrder.s.sol/AlwaysValid1271.abi.json → ICommitteeSync.sol/ICommitteeSync.abi.json} +9 -9
- package/out/ICommitteeSync.sol/ICommitteeSync.json +1 -0
- package/out/IEIP712.sol/IEIP712.json +1 -1
- package/out/IExchangeAdapter.sol/IExchangeAdapter.abi.json +105 -4
- package/out/IExchangeAdapter.sol/IExchangeAdapter.json +1 -1
- package/out/IParaswapAugustus.sol/IParaswapAugustus.json +1 -1
- package/out/IPermit2.sol/IPermit2.json +1 -1
- package/out/IReactor.sol/IReactor.abi.json +100 -4
- package/out/IReactor.sol/IReactor.json +1 -1
- package/out/IReactorCallback.sol/IReactorCallback.abi.json +100 -4
- package/out/IReactorCallback.sol/IReactorCallback.json +1 -1
- package/out/IWM.sol/IWM.json +1 -1
- package/out/IWrappedNative.sol/IWrappedNative.abi.json +22 -0
- package/out/IWrappedNative.sol/IWrappedNative.json +1 -0
- package/out/MockCommitteeSync.sol/MockCommitteeSync.abi.json +67 -0
- package/out/MockCommitteeSync.sol/MockCommitteeSync.json +1 -0
- package/out/MockDexRouter.sol/MockDexRouter.json +1 -1
- package/out/MockParaswap.sol/MockParaswapAugustus.json +1 -1
- package/out/MockParaswap.sol/MockTokenTransferProxy.json +1 -1
- package/out/MockPermit2.sol/MockPermit2.json +1 -1
- package/out/MockReactor.sol/MockReactor.abi.json +200 -8
- package/out/MockReactor.sol/MockReactor.json +1 -1
- package/out/Multicall3Lib.sol/Multicall3Lib.json +1 -1
- package/out/OrderLib.sol/OrderLib.json +1 -1
- package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.abi.json +27 -14
- package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.json +1 -1
- package/out/OrderReactor.sol/OrderReactor.abi.json +130 -14
- package/out/OrderReactor.sol/OrderReactor.json +1 -1
- package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.abi.json +26 -13
- package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.json +1 -1
- package/out/OrderReactorPause.t.sol/SimpleCallback.abi.json +100 -4
- package/out/OrderReactorPause.t.sol/SimpleCallback.json +1 -1
- package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.abi.json +136 -22
- package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.json +1 -1
- package/out/OrderValidationLib.sol/OrderValidationLib.abi.json +15 -5
- package/out/OrderValidationLib.sol/OrderValidationLib.json +1 -1
- package/out/OrderValidationLib.t.sol/OrderValidationLibTest.abi.json +160 -30
- package/out/OrderValidationLib.t.sol/OrderValidationLibTest.json +1 -1
- package/out/P2DexAdapter.sol/P2DexAdapter.abi.json +105 -4
- package/out/P2DexAdapter.sol/P2DexAdapter.json +1 -1
- package/out/P2DexAdapter.t.sol/P2DexAdapterTest.abi.json +33 -13
- package/out/P2DexAdapter.t.sol/P2DexAdapterTest.json +1 -1
- package/out/ParaswapDexAdapter.sol/ParaswapDexAdapter.abi.json +105 -4
- package/out/ParaswapDexAdapter.sol/ParaswapDexAdapter.json +1 -1
- package/out/ParaswapDexAdapter.t.sol/ParaswapDexAdapterTest.abi.json +33 -13
- package/out/ParaswapDexAdapter.t.sol/ParaswapDexAdapterTest.json +1 -1
- package/out/RePermit.sol/RePermit.json +1 -1
- package/out/RePermit.t.sol/RePermitTest.abi.json +26 -13
- package/out/RePermit.t.sol/RePermitTest.json +1 -1
- package/out/RePermitLib.sol/RePermitLib.json +1 -1
- package/out/Refinery.sol/Refinery.json +1 -1
- package/out/Refinery.t.sol/PayableTarget.json +1 -1
- package/out/Refinery.t.sol/RefineryTest.abi.json +26 -13
- package/out/Refinery.t.sol/RefineryTest.json +1 -1
- package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.abi.json +122 -18
- package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.json +1 -1
- package/out/ResolutionLib.sol/ResolutionLib.abi.json +1 -1
- package/out/ResolutionLib.sol/ResolutionLib.json +1 -1
- package/out/ResolutionLib.t.sol/ResolutionLibTest.abi.json +133 -20
- package/out/ResolutionLib.t.sol/ResolutionLibTest.json +1 -1
- package/out/SettlementLib.sol/SettlementLib.json +1 -1
- package/out/SettlementLib.t.sol/SettlementLibTest.abi.json +26 -13
- package/out/SettlementLib.t.sol/SettlementLibTest.json +1 -1
- package/out/SettlementLib.t.sol/SettlementWrapper.abi.json +100 -4
- package/out/SettlementLib.t.sol/SettlementWrapper.json +1 -1
- package/out/Settler.sol/Settler.abi.json +454 -0
- package/out/Settler.sol/Settler.json +1 -0
- package/out/Settler.t.sol/SettlerTest.abi.json +995 -0
- package/out/Settler.t.sol/SettlerTest.json +1 -0
- package/out/StdError.sol/stdError.json +1 -1
- package/out/SurplusLib.sol/SurplusLib.json +1 -1
- package/out/SurplusLib.t.sol/SurplusHarness.json +1 -1
- package/out/SurplusLib.t.sol/SurplusLibTest.json +1 -1
- package/out/SwapAdapter.sol/SwapAdapterMock.abi.json +100 -9
- package/out/SwapAdapter.sol/SwapAdapterMock.json +1 -1
- package/out/TokenLib.sol/TokenLib.json +1 -1
- package/out/TokenLib.t.sol/TokenLibHarness.json +1 -1
- package/out/TokenLib.t.sol/TokenLibTest.json +1 -1
- package/out/USDTMock.sol/USDTMock.json +1 -1
- package/out/UniversalAdapter.sol/UniversalAdapter.abi.json +429 -0
- package/out/UniversalAdapter.sol/UniversalAdapter.json +1 -0
- package/out/UniversalAdapter.t.sol/UniversalAdapterTest.abi.json +930 -0
- package/out/UniversalAdapter.t.sol/UniversalAdapterTest.json +1 -0
- package/out/WM.sol/WM.json +1 -1
- package/out/WM.t.sol/WMTest.abi.json +26 -13
- package/out/WM.t.sol/WMTest.json +1 -1
- package/out/WMAllowed.sol/WMAllowed.json +1 -1
- package/out/WrappedNativeMock.sol/WrappedNativeMock.abi.json +360 -0
- package/out/WrappedNativeMock.sol/WrappedNativeMock.json +1 -0
- package/out/build-info/{42633f5ef75c0db8.json → 621c6e28e002a5dd.json} +1 -1
- package/out/build-info/{a2626b343b46f44e.json → 7683d39d37ddee4a.json} +1 -1
- package/package.json +2 -1
- package/script/input/cosignature.skeleton.json +0 -1
- package/script/input/repermit.skeleton.json +12 -2
- package/out/06_DeployDefaultExchange.s.sol/DeployDefaultExchange.json +0 -1
- package/out/06_DeployP2Exchange.s.sol/DeployP2Exchange.json +0 -1
- package/out/06_DeployParaswapExchange.s.sol/DeployParaswapExchange.json +0 -1
- package/out/07_CheckOrder.s.sol/AlwaysValid1271.json +0 -1
- package/out/07_CheckOrder.s.sol/CheckOrder.abi.json +0 -78
- package/out/07_CheckOrder.s.sol/CheckOrder.json +0 -1
- package/script/input/order.json +0 -63
|
@@ -39,11 +39,6 @@
|
|
|
39
39
|
"name": "InvalidOrderInputTokenZero",
|
|
40
40
|
"inputs": []
|
|
41
41
|
},
|
|
42
|
-
{
|
|
43
|
-
"type": "error",
|
|
44
|
-
"name": "InvalidOrderOutputLimitGtStop",
|
|
45
|
-
"inputs": []
|
|
46
|
-
},
|
|
47
42
|
{
|
|
48
43
|
"type": "error",
|
|
49
44
|
"name": "InvalidOrderOutputRecipientZero",
|
|
@@ -69,9 +64,24 @@
|
|
|
69
64
|
"name": "InvalidOrderSlippageTooHigh",
|
|
70
65
|
"inputs": []
|
|
71
66
|
},
|
|
67
|
+
{
|
|
68
|
+
"type": "error",
|
|
69
|
+
"name": "InvalidOrderStartInFuture",
|
|
70
|
+
"inputs": []
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "error",
|
|
74
|
+
"name": "InvalidOrderStartZero",
|
|
75
|
+
"inputs": []
|
|
76
|
+
},
|
|
72
77
|
{
|
|
73
78
|
"type": "error",
|
|
74
79
|
"name": "InvalidOrderSwapperZero",
|
|
75
80
|
"inputs": []
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "error",
|
|
84
|
+
"name": "InvalidOrderTriggerRange",
|
|
85
|
+
"inputs": []
|
|
76
86
|
}
|
|
77
87
|
]
|
|
@@ -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":"
|
|
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":"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":"InvalidOrderStartInFuture","inputs":[]},{"type":"error","name":"InvalidOrderStartZero","inputs":[]},{"type":"error","name":"InvalidOrderSwapperZero","inputs":[]},{"type":"error","name":"InvalidOrderTriggerRange","inputs":[]}],"bytecode":{"object":"0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea264697066735822122040515ae6b62ac9620281919478ac5b49f5e626bb6518b993918cb0d41436b54164736f6c634300081b0033","sourceMap":"288:2818:78:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;288:2818:78;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x730000000000000000000000000000000000000000301460806040525f5ffdfea264697066735822122040515ae6b62ac9620281919478ac5b49f5e626bb6518b993918cb0d41436b54164736f6c634300081b0033","sourceMap":"288:2818:78:-: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\":\"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\":\"InvalidOrderStartInFuture\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderStartZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderSwapperZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOrderTriggerRange\",\"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\":\"prague\",\"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/Constants.sol\":{\"keccak256\":\"0x2e75daa84011ba34b45ca5612bac4c13adf030162b17b1993c0c2f3df31199a2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6eb900f937161693038c08a7fc543f34451c4ab9e2e97b72f0b7dc0b74657ae8\",\"dweb:/ipfs/QmSZRZTNfuxy7HXYKjMCmsS3mqbxprPxjyG8Fyzv3jmbdo\"]},\"src/Structs.sol\":{\"keccak256\":\"0xa48471c41240783de81364f66f0ed0ce976a9f6c496bfe0351dda602cc6cafcc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f49887cd0a32d9bd61033c145e1e537cf961e9e386cd318c24dfd7d89e8ab0d3\",\"dweb:/ipfs/QmeBFGcnMPor54WYeJrBp7JpjU2PxeC4qdjxw2fLATKmYf\"]},\"src/lib/OrderValidationLib.sol\":{\"keccak256\":\"0x68bcc4f36c42e5c1b4b2ee805fede5b1a9e55aa7f7f8971de933de1b82fdec5c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2962452815a4af163fa36ce7694bef915bd96c7ed143e6a26550aa48830dbd43\",\"dweb:/ipfs/QmPA9iv2HGGqijWCyqBkFjR9T2hZZQqYnTm9h9YXihrX85\"]}},\"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":"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":"InvalidOrderStartInFuture"},{"inputs":[],"type":"error","name":"InvalidOrderStartZero"},{"inputs":[],"type":"error","name":"InvalidOrderSwapperZero"},{"inputs":[],"type":"error","name":"InvalidOrderTriggerRange"}],"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":"prague","libraries":{}},"sources":{"src/Constants.sol":{"keccak256":"0x2e75daa84011ba34b45ca5612bac4c13adf030162b17b1993c0c2f3df31199a2","urls":["bzz-raw://6eb900f937161693038c08a7fc543f34451c4ab9e2e97b72f0b7dc0b74657ae8","dweb:/ipfs/QmSZRZTNfuxy7HXYKjMCmsS3mqbxprPxjyG8Fyzv3jmbdo"],"license":"MIT"},"src/Structs.sol":{"keccak256":"0xa48471c41240783de81364f66f0ed0ce976a9f6c496bfe0351dda602cc6cafcc","urls":["bzz-raw://f49887cd0a32d9bd61033c145e1e537cf961e9e386cd318c24dfd7d89e8ab0d3","dweb:/ipfs/QmeBFGcnMPor54WYeJrBp7JpjU2PxeC4qdjxw2fLATKmYf"],"license":"MIT"},"src/lib/OrderValidationLib.sol":{"keccak256":"0x68bcc4f36c42e5c1b4b2ee805fede5b1a9e55aa7f7f8971de933de1b82fdec5c","urls":["bzz-raw://2962452815a4af163fa36ce7694bef915bd96c7ed143e6a26550aa48830dbd43","dweb:/ipfs/QmPA9iv2HGGqijWCyqBkFjR9T2hZZQqYnTm9h9YXihrX85"],"license":"MIT"}},"version":1},"id":78}
|
|
@@ -86,6 +86,11 @@
|
|
|
86
86
|
"type": "uint256",
|
|
87
87
|
"internalType": "uint256"
|
|
88
88
|
},
|
|
89
|
+
{
|
|
90
|
+
"name": "start",
|
|
91
|
+
"type": "uint256",
|
|
92
|
+
"internalType": "uint256"
|
|
93
|
+
},
|
|
89
94
|
{
|
|
90
95
|
"name": "deadline",
|
|
91
96
|
"type": "uint256",
|
|
@@ -154,7 +159,12 @@
|
|
|
154
159
|
"internalType": "uint256"
|
|
155
160
|
},
|
|
156
161
|
{
|
|
157
|
-
"name": "
|
|
162
|
+
"name": "triggerLower",
|
|
163
|
+
"type": "uint256",
|
|
164
|
+
"internalType": "uint256"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "triggerUpper",
|
|
158
168
|
"type": "uint256",
|
|
159
169
|
"internalType": "uint256"
|
|
160
170
|
},
|
|
@@ -173,7 +183,78 @@
|
|
|
173
183
|
"internalType": "bytes"
|
|
174
184
|
},
|
|
175
185
|
{
|
|
176
|
-
"name": "
|
|
186
|
+
"name": "trigger",
|
|
187
|
+
"type": "tuple",
|
|
188
|
+
"internalType": "struct Cosignature",
|
|
189
|
+
"components": [
|
|
190
|
+
{
|
|
191
|
+
"name": "cosigner",
|
|
192
|
+
"type": "address",
|
|
193
|
+
"internalType": "address"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "reactor",
|
|
197
|
+
"type": "address",
|
|
198
|
+
"internalType": "address"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "chainid",
|
|
202
|
+
"type": "uint256",
|
|
203
|
+
"internalType": "uint256"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "timestamp",
|
|
207
|
+
"type": "uint256",
|
|
208
|
+
"internalType": "uint256"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "input",
|
|
212
|
+
"type": "tuple",
|
|
213
|
+
"internalType": "struct CosignedValue",
|
|
214
|
+
"components": [
|
|
215
|
+
{
|
|
216
|
+
"name": "token",
|
|
217
|
+
"type": "address",
|
|
218
|
+
"internalType": "address"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "value",
|
|
222
|
+
"type": "uint256",
|
|
223
|
+
"internalType": "uint256"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "decimals",
|
|
227
|
+
"type": "uint8",
|
|
228
|
+
"internalType": "uint8"
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "output",
|
|
234
|
+
"type": "tuple",
|
|
235
|
+
"internalType": "struct CosignedValue",
|
|
236
|
+
"components": [
|
|
237
|
+
{
|
|
238
|
+
"name": "token",
|
|
239
|
+
"type": "address",
|
|
240
|
+
"internalType": "address"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "value",
|
|
244
|
+
"type": "uint256",
|
|
245
|
+
"internalType": "uint256"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "decimals",
|
|
249
|
+
"type": "uint8",
|
|
250
|
+
"internalType": "uint8"
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "current",
|
|
177
258
|
"type": "tuple",
|
|
178
259
|
"internalType": "struct Cosignature",
|
|
179
260
|
"components": [
|
|
@@ -244,7 +325,12 @@
|
|
|
244
325
|
]
|
|
245
326
|
},
|
|
246
327
|
{
|
|
247
|
-
"name": "
|
|
328
|
+
"name": "triggerCosignature",
|
|
329
|
+
"type": "bytes",
|
|
330
|
+
"internalType": "bytes"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "currentCosignature",
|
|
248
334
|
"type": "bytes",
|
|
249
335
|
"internalType": "bytes"
|
|
250
336
|
}
|
|
@@ -448,19 +534,6 @@
|
|
|
448
534
|
],
|
|
449
535
|
"stateMutability": "view"
|
|
450
536
|
},
|
|
451
|
-
{
|
|
452
|
-
"type": "function",
|
|
453
|
-
"name": "outMax",
|
|
454
|
-
"inputs": [],
|
|
455
|
-
"outputs": [
|
|
456
|
-
{
|
|
457
|
-
"name": "",
|
|
458
|
-
"type": "uint256",
|
|
459
|
-
"internalType": "uint256"
|
|
460
|
-
}
|
|
461
|
-
],
|
|
462
|
-
"stateMutability": "view"
|
|
463
|
-
},
|
|
464
537
|
{
|
|
465
538
|
"type": "function",
|
|
466
539
|
"name": "outToken",
|
|
@@ -686,6 +759,27 @@
|
|
|
686
759
|
],
|
|
687
760
|
"stateMutability": "view"
|
|
688
761
|
},
|
|
762
|
+
{
|
|
763
|
+
"type": "function",
|
|
764
|
+
"name": "test_validate_allows_equal_trigger_bounds",
|
|
765
|
+
"inputs": [],
|
|
766
|
+
"outputs": [],
|
|
767
|
+
"stateMutability": "nonpayable"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"type": "function",
|
|
771
|
+
"name": "test_validate_allows_limit_gt_triggerUpper",
|
|
772
|
+
"inputs": [],
|
|
773
|
+
"outputs": [],
|
|
774
|
+
"stateMutability": "nonpayable"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
"type": "function",
|
|
778
|
+
"name": "test_validate_allows_lower_only_when_upper_unset",
|
|
779
|
+
"inputs": [],
|
|
780
|
+
"outputs": [],
|
|
781
|
+
"stateMutability": "nonpayable"
|
|
782
|
+
},
|
|
689
783
|
{
|
|
690
784
|
"type": "function",
|
|
691
785
|
"name": "test_validate_allows_override_when_exclusivity_set",
|
|
@@ -772,63 +866,63 @@
|
|
|
772
866
|
},
|
|
773
867
|
{
|
|
774
868
|
"type": "function",
|
|
775
|
-
"name": "
|
|
869
|
+
"name": "test_validate_reverts_outputRecipientZero",
|
|
776
870
|
"inputs": [],
|
|
777
871
|
"outputs": [],
|
|
778
872
|
"stateMutability": "nonpayable"
|
|
779
873
|
},
|
|
780
874
|
{
|
|
781
875
|
"type": "function",
|
|
782
|
-
"name": "
|
|
876
|
+
"name": "test_validate_reverts_reactor_mismatch",
|
|
783
877
|
"inputs": [],
|
|
784
878
|
"outputs": [],
|
|
785
879
|
"stateMutability": "nonpayable"
|
|
786
880
|
},
|
|
787
881
|
{
|
|
788
882
|
"type": "function",
|
|
789
|
-
"name": "
|
|
883
|
+
"name": "test_validate_reverts_reactor_zero",
|
|
790
884
|
"inputs": [],
|
|
791
885
|
"outputs": [],
|
|
792
886
|
"stateMutability": "nonpayable"
|
|
793
887
|
},
|
|
794
888
|
{
|
|
795
889
|
"type": "function",
|
|
796
|
-
"name": "
|
|
890
|
+
"name": "test_validate_reverts_same_input_output_token",
|
|
797
891
|
"inputs": [],
|
|
798
892
|
"outputs": [],
|
|
799
893
|
"stateMutability": "nonpayable"
|
|
800
894
|
},
|
|
801
895
|
{
|
|
802
896
|
"type": "function",
|
|
803
|
-
"name": "
|
|
897
|
+
"name": "test_validate_reverts_slippageTooHigh",
|
|
804
898
|
"inputs": [],
|
|
805
899
|
"outputs": [],
|
|
806
900
|
"stateMutability": "nonpayable"
|
|
807
901
|
},
|
|
808
902
|
{
|
|
809
903
|
"type": "function",
|
|
810
|
-
"name": "
|
|
904
|
+
"name": "test_validate_reverts_start_future",
|
|
811
905
|
"inputs": [],
|
|
812
906
|
"outputs": [],
|
|
813
907
|
"stateMutability": "nonpayable"
|
|
814
908
|
},
|
|
815
909
|
{
|
|
816
910
|
"type": "function",
|
|
817
|
-
"name": "
|
|
911
|
+
"name": "test_validate_reverts_start_zero",
|
|
818
912
|
"inputs": [],
|
|
819
913
|
"outputs": [],
|
|
820
914
|
"stateMutability": "nonpayable"
|
|
821
915
|
},
|
|
822
916
|
{
|
|
823
917
|
"type": "function",
|
|
824
|
-
"name": "
|
|
918
|
+
"name": "test_validate_reverts_swapper_zero",
|
|
825
919
|
"inputs": [],
|
|
826
920
|
"outputs": [],
|
|
827
921
|
"stateMutability": "nonpayable"
|
|
828
922
|
},
|
|
829
923
|
{
|
|
830
924
|
"type": "function",
|
|
831
|
-
"name": "
|
|
925
|
+
"name": "test_validate_reverts_triggerLower_gt_triggerUpper",
|
|
832
926
|
"inputs": [],
|
|
833
927
|
"outputs": [],
|
|
834
928
|
"stateMutability": "nonpayable"
|
|
@@ -859,6 +953,32 @@
|
|
|
859
953
|
],
|
|
860
954
|
"stateMutability": "view"
|
|
861
955
|
},
|
|
956
|
+
{
|
|
957
|
+
"type": "function",
|
|
958
|
+
"name": "triggerLower",
|
|
959
|
+
"inputs": [],
|
|
960
|
+
"outputs": [
|
|
961
|
+
{
|
|
962
|
+
"name": "",
|
|
963
|
+
"type": "uint256",
|
|
964
|
+
"internalType": "uint256"
|
|
965
|
+
}
|
|
966
|
+
],
|
|
967
|
+
"stateMutability": "view"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"type": "function",
|
|
971
|
+
"name": "triggerUpper",
|
|
972
|
+
"inputs": [],
|
|
973
|
+
"outputs": [
|
|
974
|
+
{
|
|
975
|
+
"name": "",
|
|
976
|
+
"type": "uint256",
|
|
977
|
+
"internalType": "uint256"
|
|
978
|
+
}
|
|
979
|
+
],
|
|
980
|
+
"stateMutability": "view"
|
|
981
|
+
},
|
|
862
982
|
{
|
|
863
983
|
"type": "function",
|
|
864
984
|
"name": "wm",
|
|
@@ -1276,11 +1396,6 @@
|
|
|
1276
1396
|
"name": "InvalidOrderInputTokenZero",
|
|
1277
1397
|
"inputs": []
|
|
1278
1398
|
},
|
|
1279
|
-
{
|
|
1280
|
-
"type": "error",
|
|
1281
|
-
"name": "InvalidOrderOutputLimitGtStop",
|
|
1282
|
-
"inputs": []
|
|
1283
|
-
},
|
|
1284
1399
|
{
|
|
1285
1400
|
"type": "error",
|
|
1286
1401
|
"name": "InvalidOrderOutputRecipientZero",
|
|
@@ -1306,9 +1421,24 @@
|
|
|
1306
1421
|
"name": "InvalidOrderSlippageTooHigh",
|
|
1307
1422
|
"inputs": []
|
|
1308
1423
|
},
|
|
1424
|
+
{
|
|
1425
|
+
"type": "error",
|
|
1426
|
+
"name": "InvalidOrderStartInFuture",
|
|
1427
|
+
"inputs": []
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
"type": "error",
|
|
1431
|
+
"name": "InvalidOrderStartZero",
|
|
1432
|
+
"inputs": []
|
|
1433
|
+
},
|
|
1309
1434
|
{
|
|
1310
1435
|
"type": "error",
|
|
1311
1436
|
"name": "InvalidOrderSwapperZero",
|
|
1312
1437
|
"inputs": []
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"type": "error",
|
|
1441
|
+
"name": "InvalidOrderTriggerRange",
|
|
1442
|
+
"inputs": []
|
|
1313
1443
|
}
|
|
1314
1444
|
]
|