@orbs-network/spot 1.9.5 → 1.10.0
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 +13 -20
- package/index.js +3 -8
- 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/06_DeployDefaultExchange.s.sol/DeployDefaultExchange.abi.json +28 -0
- package/out/06_DeployDefaultExchange.s.sol/DeployDefaultExchange.json +1 -0
- package/out/06_DeployP2Exchange.s.sol/DeployP2Exchange.abi.json +28 -0
- package/out/06_DeployP2Exchange.s.sol/DeployP2Exchange.json +1 -0
- package/out/06_DeployParaswapExchange.s.sol/DeployParaswapExchange.abi.json +28 -0
- package/out/06_DeployParaswapExchange.s.sol/DeployParaswapExchange.json +1 -0
- package/out/07_CheckOrder.s.sol/AlwaysValid1271.abi.json +26 -0
- package/out/07_CheckOrder.s.sol/AlwaysValid1271.json +1 -0
- package/out/07_CheckOrder.s.sol/CheckOrder.abi.json +78 -0
- package/out/07_CheckOrder.s.sol/CheckOrder.json +1 -0
- package/out/BaseTest.sol/BaseTest.abi.json +13 -26
- package/out/BaseTest.sol/BaseTest.json +1 -1
- package/out/CosignatureLib.sol/CosignatureLib.abi.json +0 -10
- package/out/CosignatureLib.sol/CosignatureLib.json +1 -1
- package/out/CosignatureLib.t.sol/CosignatureLibTest.abi.json +16 -125
- package/out/CosignatureLib.t.sol/CosignatureLibTest.json +1 -1
- package/out/Cosigner.sol/Cosigner.abi.json +115 -12
- package/out/Cosigner.sol/Cosigner.json +1 -1
- package/out/Cosigner.t.sol/CosignerTest.abi.json +154 -30
- package/out/Cosigner.t.sol/CosignerTest.json +1 -1
- package/out/Cosigner.t.sol/CosignerWrapper.abi.json +115 -12
- package/out/Cosigner.t.sol/CosignerWrapper.json +1 -1
- package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.abi.json +33 -49
- package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.json +1 -1
- package/out/DefaultDexAdapter.sol/DefaultDexAdapter.abi.json +4 -105
- package/out/DefaultDexAdapter.sol/DefaultDexAdapter.json +1 -1
- package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.abi.json +13 -33
- package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.json +1 -1
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityCaller.json +1 -1
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.abi.json +13 -26
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.json +1 -1
- package/out/Executor.sol/Executor.abi.json +13 -200
- package/out/Executor.sol/Executor.json +1 -1
- package/out/Executor.t.sol/ExecutorTest.abi.json +13 -26
- package/out/Executor.t.sol/ExecutorTest.json +1 -1
- package/out/IExchangeAdapter.sol/IExchangeAdapter.abi.json +4 -105
- package/out/IExchangeAdapter.sol/IExchangeAdapter.json +1 -1
- package/out/IReactor.sol/IReactor.abi.json +4 -100
- package/out/IReactor.sol/IReactor.json +1 -1
- package/out/IReactorCallback.sol/IReactorCallback.abi.json +4 -100
- package/out/IReactorCallback.sol/IReactorCallback.json +1 -1
- package/out/MockReactor.sol/MockReactor.abi.json +8 -200
- package/out/MockReactor.sol/MockReactor.json +1 -1
- package/out/OrderLib.sol/OrderLib.json +1 -1
- package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.abi.json +14 -27
- package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.json +1 -1
- package/out/OrderReactor.sol/OrderReactor.abi.json +14 -130
- package/out/OrderReactor.sol/OrderReactor.json +1 -1
- package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.abi.json +13 -26
- package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.json +1 -1
- package/out/OrderReactorPause.t.sol/SimpleCallback.abi.json +4 -100
- package/out/OrderReactorPause.t.sol/SimpleCallback.json +1 -1
- package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.abi.json +22 -136
- package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.json +1 -1
- package/out/OrderValidationLib.sol/OrderValidationLib.abi.json +5 -15
- package/out/OrderValidationLib.sol/OrderValidationLib.json +1 -1
- package/out/OrderValidationLib.t.sol/OrderValidationLibTest.abi.json +30 -160
- package/out/OrderValidationLib.t.sol/OrderValidationLibTest.json +1 -1
- package/out/P2DexAdapter.sol/P2DexAdapter.abi.json +4 -105
- package/out/P2DexAdapter.sol/P2DexAdapter.json +1 -1
- package/out/P2DexAdapter.t.sol/P2DexAdapterTest.abi.json +13 -33
- package/out/P2DexAdapter.t.sol/P2DexAdapterTest.json +1 -1
- package/out/ParaswapDexAdapter.sol/ParaswapDexAdapter.abi.json +4 -105
- package/out/ParaswapDexAdapter.sol/ParaswapDexAdapter.json +1 -1
- package/out/ParaswapDexAdapter.t.sol/ParaswapDexAdapterTest.abi.json +13 -33
- package/out/ParaswapDexAdapter.t.sol/ParaswapDexAdapterTest.json +1 -1
- package/out/RePermit.t.sol/RePermitTest.abi.json +13 -26
- package/out/RePermit.t.sol/RePermitTest.json +1 -1
- package/out/Refinery.t.sol/PayableTarget.json +1 -1
- package/out/Refinery.t.sol/RefineryTest.abi.json +13 -26
- package/out/Refinery.t.sol/RefineryTest.json +1 -1
- package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.abi.json +18 -122
- 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 +20 -133
- 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 +13 -26
- package/out/SettlementLib.t.sol/SettlementLibTest.json +1 -1
- package/out/SettlementLib.t.sol/SettlementWrapper.abi.json +4 -100
- package/out/SettlementLib.t.sol/SettlementWrapper.json +1 -1
- package/out/SwapAdapter.sol/SwapAdapterMock.abi.json +9 -100
- package/out/SwapAdapter.sol/SwapAdapterMock.json +1 -1
- package/out/WM.t.sol/WMTest.abi.json +13 -26
- package/out/WM.t.sol/WMTest.json +1 -1
- package/out/build-info/12dff9362aac7f9c.json +1 -0
- package/package.json +1 -2
- package/{config.json → script/input/config.json} +6 -84
- package/script/input/cosignature.skeleton.json +1 -0
- package/script/input/order.json +63 -0
- package/script/input/repermit.skeleton.json +2 -12
|
@@ -39,6 +39,11 @@
|
|
|
39
39
|
"name": "InvalidOrderInputTokenZero",
|
|
40
40
|
"inputs": []
|
|
41
41
|
},
|
|
42
|
+
{
|
|
43
|
+
"type": "error",
|
|
44
|
+
"name": "InvalidOrderOutputLimitGtStop",
|
|
45
|
+
"inputs": []
|
|
46
|
+
},
|
|
42
47
|
{
|
|
43
48
|
"type": "error",
|
|
44
49
|
"name": "InvalidOrderOutputRecipientZero",
|
|
@@ -64,24 +69,9 @@
|
|
|
64
69
|
"name": "InvalidOrderSlippageTooHigh",
|
|
65
70
|
"inputs": []
|
|
66
71
|
},
|
|
67
|
-
{
|
|
68
|
-
"type": "error",
|
|
69
|
-
"name": "InvalidOrderStartInFuture",
|
|
70
|
-
"inputs": []
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"type": "error",
|
|
74
|
-
"name": "InvalidOrderStartZero",
|
|
75
|
-
"inputs": []
|
|
76
|
-
},
|
|
77
72
|
{
|
|
78
73
|
"type": "error",
|
|
79
74
|
"name": "InvalidOrderSwapperZero",
|
|
80
75
|
"inputs": []
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"type": "error",
|
|
84
|
-
"name": "InvalidOrderTriggerRange",
|
|
85
|
-
"inputs": []
|
|
86
76
|
}
|
|
87
77
|
]
|
|
@@ -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":"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":"0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea2646970667358221220116377d34185e8d7a4f52a55c7598038bdea225a306bc660f6f1b66df8207d5664736f6c634300081b0033","sourceMap":"335:2690:81:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;335:2690:81;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x730000000000000000000000000000000000000000301460806040525f5ffdfea2646970667358221220116377d34185e8d7a4f52a55c7598038bdea225a306bc660f6f1b66df8207d5664736f6c634300081b0033","sourceMap":"335:2690:81:-: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\":\"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\":\"0xf333f3676f0f76774d7d9de41872eb11a4f76a398207761238555a71b7c38674\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bafa4db0f6f5b7ff915558f1f38c996037ac5d6a16965db793da45f11688e314\",\"dweb:/ipfs/QmZ5Es6Gh7FMBr4oJYwy9RCTTuGNvfuuPhPMLabo3Gg9pc\"]},\"src/lib/OrderLib.sol\":{\"keccak256\":\"0x2ce527e21f8207c252290b9e0adb9377736049fd82a9343fadb2c6f62da2ed9f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://623d417a8639b65c25c880a2b3564bcbc774bf4e7634843880f9a22665c45041\",\"dweb:/ipfs/Qmdymg2wbw8e4qBEb9E4tqphxkUKUsfvLEJDxuA5H7XHKJ\"]},\"src/lib/OrderValidationLib.sol\":{\"keccak256\":\"0x0d9b704d8eee56052dd5ea52d477f82f789b45701b86f651772a9d498a5c6b68\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a9557ef08c3cded829d17d865779002da20f5948af96ceaa9ab72f8c6e092959\",\"dweb:/ipfs/QmdoNUtPogRkRb2gsVdNxtkE7yhFQrSNyopvaez9P3inpA\"]},\"src/lib/RePermitLib.sol\":{\"keccak256\":\"0xb7015e0112917ca49ebc1bd68d723c4fdfa19c3a1f1d0bf866643f94f7a20d96\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d838303d9afac9021bde8a45a16995c8c6e8ea9e725820a05d8c87c22308a091\",\"dweb:/ipfs/QmSDA5XvwYDLwWvkDPDSjviDc8LgaWnjJ9sEAR34xcrL13\"]}},\"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":"prague","libraries":{}},"sources":{"src/Constants.sol":{"keccak256":"0x2e75daa84011ba34b45ca5612bac4c13adf030162b17b1993c0c2f3df31199a2","urls":["bzz-raw://6eb900f937161693038c08a7fc543f34451c4ab9e2e97b72f0b7dc0b74657ae8","dweb:/ipfs/QmSZRZTNfuxy7HXYKjMCmsS3mqbxprPxjyG8Fyzv3jmbdo"],"license":"MIT"},"src/Structs.sol":{"keccak256":"0xf333f3676f0f76774d7d9de41872eb11a4f76a398207761238555a71b7c38674","urls":["bzz-raw://bafa4db0f6f5b7ff915558f1f38c996037ac5d6a16965db793da45f11688e314","dweb:/ipfs/QmZ5Es6Gh7FMBr4oJYwy9RCTTuGNvfuuPhPMLabo3Gg9pc"],"license":"MIT"},"src/lib/OrderLib.sol":{"keccak256":"0x2ce527e21f8207c252290b9e0adb9377736049fd82a9343fadb2c6f62da2ed9f","urls":["bzz-raw://623d417a8639b65c25c880a2b3564bcbc774bf4e7634843880f9a22665c45041","dweb:/ipfs/Qmdymg2wbw8e4qBEb9E4tqphxkUKUsfvLEJDxuA5H7XHKJ"],"license":"MIT"},"src/lib/OrderValidationLib.sol":{"keccak256":"0x0d9b704d8eee56052dd5ea52d477f82f789b45701b86f651772a9d498a5c6b68","urls":["bzz-raw://a9557ef08c3cded829d17d865779002da20f5948af96ceaa9ab72f8c6e092959","dweb:/ipfs/QmdoNUtPogRkRb2gsVdNxtkE7yhFQrSNyopvaez9P3inpA"],"license":"MIT"},"src/lib/RePermitLib.sol":{"keccak256":"0xb7015e0112917ca49ebc1bd68d723c4fdfa19c3a1f1d0bf866643f94f7a20d96","urls":["bzz-raw://d838303d9afac9021bde8a45a16995c8c6e8ea9e725820a05d8c87c22308a091","dweb:/ipfs/QmSDA5XvwYDLwWvkDPDSjviDc8LgaWnjJ9sEAR34xcrL13"],"license":"MIT"}},"version":1},"id":81}
|
|
@@ -86,11 +86,6 @@
|
|
|
86
86
|
"type": "uint256",
|
|
87
87
|
"internalType": "uint256"
|
|
88
88
|
},
|
|
89
|
-
{
|
|
90
|
-
"name": "start",
|
|
91
|
-
"type": "uint256",
|
|
92
|
-
"internalType": "uint256"
|
|
93
|
-
},
|
|
94
89
|
{
|
|
95
90
|
"name": "deadline",
|
|
96
91
|
"type": "uint256",
|
|
@@ -159,12 +154,7 @@
|
|
|
159
154
|
"internalType": "uint256"
|
|
160
155
|
},
|
|
161
156
|
{
|
|
162
|
-
"name": "
|
|
163
|
-
"type": "uint256",
|
|
164
|
-
"internalType": "uint256"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"name": "triggerUpper",
|
|
157
|
+
"name": "stop",
|
|
168
158
|
"type": "uint256",
|
|
169
159
|
"internalType": "uint256"
|
|
170
160
|
},
|
|
@@ -183,78 +173,7 @@
|
|
|
183
173
|
"internalType": "bytes"
|
|
184
174
|
},
|
|
185
175
|
{
|
|
186
|
-
"name": "
|
|
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",
|
|
176
|
+
"name": "cosignatureData",
|
|
258
177
|
"type": "tuple",
|
|
259
178
|
"internalType": "struct Cosignature",
|
|
260
179
|
"components": [
|
|
@@ -325,12 +244,7 @@
|
|
|
325
244
|
]
|
|
326
245
|
},
|
|
327
246
|
{
|
|
328
|
-
"name": "
|
|
329
|
-
"type": "bytes",
|
|
330
|
-
"internalType": "bytes"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"name": "currentCosignature",
|
|
247
|
+
"name": "cosignature",
|
|
334
248
|
"type": "bytes",
|
|
335
249
|
"internalType": "bytes"
|
|
336
250
|
}
|
|
@@ -534,6 +448,19 @@
|
|
|
534
448
|
],
|
|
535
449
|
"stateMutability": "view"
|
|
536
450
|
},
|
|
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
|
+
},
|
|
537
464
|
{
|
|
538
465
|
"type": "function",
|
|
539
466
|
"name": "outToken",
|
|
@@ -759,27 +686,6 @@
|
|
|
759
686
|
],
|
|
760
687
|
"stateMutability": "view"
|
|
761
688
|
},
|
|
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
|
-
},
|
|
783
689
|
{
|
|
784
690
|
"type": "function",
|
|
785
691
|
"name": "test_validate_allows_override_when_exclusivity_set",
|
|
@@ -866,63 +772,63 @@
|
|
|
866
772
|
},
|
|
867
773
|
{
|
|
868
774
|
"type": "function",
|
|
869
|
-
"name": "
|
|
775
|
+
"name": "test_validate_reverts_outputAmountGtMax",
|
|
870
776
|
"inputs": [],
|
|
871
777
|
"outputs": [],
|
|
872
778
|
"stateMutability": "nonpayable"
|
|
873
779
|
},
|
|
874
780
|
{
|
|
875
781
|
"type": "function",
|
|
876
|
-
"name": "
|
|
782
|
+
"name": "test_validate_reverts_outputRecipientZero",
|
|
877
783
|
"inputs": [],
|
|
878
784
|
"outputs": [],
|
|
879
785
|
"stateMutability": "nonpayable"
|
|
880
786
|
},
|
|
881
787
|
{
|
|
882
788
|
"type": "function",
|
|
883
|
-
"name": "
|
|
789
|
+
"name": "test_validate_reverts_reactor_mismatch",
|
|
884
790
|
"inputs": [],
|
|
885
791
|
"outputs": [],
|
|
886
792
|
"stateMutability": "nonpayable"
|
|
887
793
|
},
|
|
888
794
|
{
|
|
889
795
|
"type": "function",
|
|
890
|
-
"name": "
|
|
796
|
+
"name": "test_validate_reverts_reactor_zero",
|
|
891
797
|
"inputs": [],
|
|
892
798
|
"outputs": [],
|
|
893
799
|
"stateMutability": "nonpayable"
|
|
894
800
|
},
|
|
895
801
|
{
|
|
896
802
|
"type": "function",
|
|
897
|
-
"name": "
|
|
803
|
+
"name": "test_validate_reverts_same_input_output_token",
|
|
898
804
|
"inputs": [],
|
|
899
805
|
"outputs": [],
|
|
900
806
|
"stateMutability": "nonpayable"
|
|
901
807
|
},
|
|
902
808
|
{
|
|
903
809
|
"type": "function",
|
|
904
|
-
"name": "
|
|
810
|
+
"name": "test_validate_reverts_slippageTooHigh",
|
|
905
811
|
"inputs": [],
|
|
906
812
|
"outputs": [],
|
|
907
813
|
"stateMutability": "nonpayable"
|
|
908
814
|
},
|
|
909
815
|
{
|
|
910
816
|
"type": "function",
|
|
911
|
-
"name": "
|
|
817
|
+
"name": "test_validate_reverts_swapper_zero",
|
|
912
818
|
"inputs": [],
|
|
913
819
|
"outputs": [],
|
|
914
820
|
"stateMutability": "nonpayable"
|
|
915
821
|
},
|
|
916
822
|
{
|
|
917
823
|
"type": "function",
|
|
918
|
-
"name": "
|
|
824
|
+
"name": "test_validate_stop_zero_allows_any_limit",
|
|
919
825
|
"inputs": [],
|
|
920
826
|
"outputs": [],
|
|
921
827
|
"stateMutability": "nonpayable"
|
|
922
828
|
},
|
|
923
829
|
{
|
|
924
830
|
"type": "function",
|
|
925
|
-
"name": "
|
|
831
|
+
"name": "test_validate_stop_zero_treated_as_max",
|
|
926
832
|
"inputs": [],
|
|
927
833
|
"outputs": [],
|
|
928
834
|
"stateMutability": "nonpayable"
|
|
@@ -953,32 +859,6 @@
|
|
|
953
859
|
],
|
|
954
860
|
"stateMutability": "view"
|
|
955
861
|
},
|
|
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
|
-
},
|
|
982
862
|
{
|
|
983
863
|
"type": "function",
|
|
984
864
|
"name": "wm",
|
|
@@ -1396,6 +1276,11 @@
|
|
|
1396
1276
|
"name": "InvalidOrderInputTokenZero",
|
|
1397
1277
|
"inputs": []
|
|
1398
1278
|
},
|
|
1279
|
+
{
|
|
1280
|
+
"type": "error",
|
|
1281
|
+
"name": "InvalidOrderOutputLimitGtStop",
|
|
1282
|
+
"inputs": []
|
|
1283
|
+
},
|
|
1399
1284
|
{
|
|
1400
1285
|
"type": "error",
|
|
1401
1286
|
"name": "InvalidOrderOutputRecipientZero",
|
|
@@ -1421,24 +1306,9 @@
|
|
|
1421
1306
|
"name": "InvalidOrderSlippageTooHigh",
|
|
1422
1307
|
"inputs": []
|
|
1423
1308
|
},
|
|
1424
|
-
{
|
|
1425
|
-
"type": "error",
|
|
1426
|
-
"name": "InvalidOrderStartInFuture",
|
|
1427
|
-
"inputs": []
|
|
1428
|
-
},
|
|
1429
|
-
{
|
|
1430
|
-
"type": "error",
|
|
1431
|
-
"name": "InvalidOrderStartZero",
|
|
1432
|
-
"inputs": []
|
|
1433
|
-
},
|
|
1434
1309
|
{
|
|
1435
1310
|
"type": "error",
|
|
1436
1311
|
"name": "InvalidOrderSwapperZero",
|
|
1437
1312
|
"inputs": []
|
|
1438
|
-
},
|
|
1439
|
-
{
|
|
1440
|
-
"type": "error",
|
|
1441
|
-
"name": "InvalidOrderTriggerRange",
|
|
1442
|
-
"inputs": []
|
|
1443
1313
|
}
|
|
1444
1314
|
]
|