@orbs-network/spot 0.0.11 → 0.0.12
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 +7 -9
- package/out/00_DeployWM.s.sol/DeployWM.json +1 -1
- package/out/{01_UpdateWMWhitelist.s.sol → 00_UpdateWMWhitelist.s.sol}/UpdateWMWhitelist.json +1 -1
- package/out/{02_DeployRepermit.s.sol → 01_DeployRepermit.s.sol}/DeployRepermit.json +1 -1
- package/out/02_DeployCosigner.s.sol/DeployCosigner.abi.json +28 -0
- package/out/02_DeployCosigner.s.sol/DeployCosigner.json +1 -0
- package/out/03_DeployReactor.s.sol/DeployReactor.json +1 -1
- package/out/04_DeployExecutor.s.sol/DeployExecutor.json +1 -1
- package/out/05_DeployDefaultExchange.s.sol/DeployDefaultExchange.json +1 -1
- package/out/05_DeployP2Exchange.s.sol/DeployP2Exchange.json +1 -1
- package/out/06_DeployRefinery.s.sol/DeployRefinery.json +1 -1
- package/out/07_CheckOrder.s.sol/AlwaysValid1271.json +1 -1
- package/out/07_CheckOrder.s.sol/CheckOrder.json +1 -1
- package/out/AbstractSigner.sol/AbstractSigner.abi.json +1 -0
- package/out/AbstractSigner.sol/AbstractSigner.json +1 -0
- package/out/BaseTest.sol/BaseTest.json +1 -1
- package/out/Constants.sol/Constants.json +1 -1
- package/out/CosignatureLib.sol/CosignatureLib.json +1 -1
- package/out/CosignatureLib.t.sol/CosignatureLibTest.json +1 -1
- package/out/Cosigner.sol/Cosigner.abi.json +283 -0
- package/out/Cosigner.sol/Cosigner.json +1 -0
- package/out/Cosigner.t.sol/CosignerTest.abi.json +935 -0
- package/out/Cosigner.t.sol/CosignerTest.json +1 -0
- package/out/Cosigner.t.sol/CosignerWrapper.abi.json +307 -0
- package/out/Cosigner.t.sol/CosignerWrapper.json +1 -0
- package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.abi.json +1024 -0
- package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.json +1 -0
- package/out/DefaultDexAdapter.sol/DefaultDexAdapter.abi.json +3 -3
- package/out/DefaultDexAdapter.sol/DefaultDexAdapter.json +1 -1
- package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.json +1 -1
- 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.json +1 -1
- package/out/Executor.sol/Executor.abi.json +32 -6
- package/out/Executor.sol/Executor.json +1 -1
- package/out/Executor.t.sol/ExecutorTest.abi.json +28 -0
- package/out/Executor.t.sol/ExecutorTest.json +1 -1
- package/out/IEIP712.sol/IEIP712.json +1 -1
- package/out/IERC165.sol/IERC165.json +1 -1
- package/out/IExchangeAdapter.sol/IExchangeAdapter.abi.json +3 -3
- package/out/IExchangeAdapter.sol/IExchangeAdapter.json +1 -1
- package/out/IPermit2.sol/IPermit2.json +1 -1
- package/out/IReactor.sol/IReactor.abi.json +3 -3
- package/out/IReactor.sol/IReactor.json +1 -1
- package/out/IReactorCallback.sol/IReactorCallback.abi.json +3 -3
- package/out/IReactorCallback.sol/IReactorCallback.json +1 -1
- package/out/IWM.sol/IWM.json +1 -1
- package/out/Math.sol/Math.json +1 -1
- package/out/MockDexRouter.sol/MockDexRouter.json +1 -1
- package/out/MockPermit2.sol/MockPermit2.json +1 -1
- package/out/MockReactor.sol/MockReactor.abi.json +34 -27
- 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 +7 -0
- package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.json +1 -1
- package/out/OrderReactor.sol/OrderReactor.abi.json +3 -3
- package/out/OrderReactor.sol/OrderReactor.json +1 -1
- package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.json +1 -1
- package/out/OrderReactorPause.t.sol/SimpleCallback.abi.json +3 -3
- package/out/OrderReactorPause.t.sol/SimpleCallback.json +1 -1
- package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.json +1 -1
- package/out/OrderValidationLib.sol/OrderValidationLib.json +1 -1
- package/out/OrderValidationLib.t.sol/OrderValidationLibTest.abi.json +7 -0
- package/out/OrderValidationLib.t.sol/OrderValidationLibTest.json +1 -1
- package/out/P2DexAdapter.sol/P2DexAdapter.abi.json +3 -3
- package/out/P2DexAdapter.sol/P2DexAdapter.json +1 -1
- package/out/P2DexAdapter.t.sol/P2DexAdapterTest.json +1 -1
- package/out/RePermit.sol/RePermit.json +1 -1
- 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/RefineryTest.json +1 -1
- package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.json +1 -1
- package/out/ResolutionLib.sol/ResolutionLib.json +1 -1
- package/out/ResolutionLib.t.sol/ResolutionLibTest.json +1 -1
- package/out/SafeCast.sol/SafeCast.json +1 -1
- package/out/SettlementLib.sol/SettlementLib.abi.json +26 -0
- package/out/SettlementLib.sol/SettlementLib.json +1 -1
- package/out/SettlementLib.t.sol/SettlementLibTest.abi.json +7 -0
- package/out/SettlementLib.t.sol/SettlementLibTest.json +1 -1
- package/out/SettlementLib.t.sol/SettlementWrapper.abi.json +3 -3
- package/out/SettlementLib.t.sol/SettlementWrapper.json +1 -1
- package/out/SignedMath.sol/SignedMath.json +1 -1
- 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 +3 -3
- package/out/SwapAdapter.sol/SwapAdapterMock.json +1 -1
- package/out/TokenLib.sol/TokenLib.json +1 -1
- package/out/TokenLib.t.sol/TokenLibHarness.abi.json +108 -0
- package/out/TokenLib.t.sol/TokenLibHarness.json +1 -0
- package/out/TokenLib.t.sol/TokenLibTest.abi.json +591 -0
- package/out/TokenLib.t.sol/TokenLibTest.json +1 -0
- package/out/USDTMock.sol/USDTMock.json +1 -1
- package/out/WM.sol/WM.json +1 -1
- package/out/WM.t.sol/WMTest.json +1 -1
- package/out/WMAllowed.sol/WMAllowed.json +1 -1
- package/out/build-info/20f563941fc0a849.json +1 -0
- package/out/build-info/41e657f703fce171.json +1 -0
- package/out/build-info/{f16f669db7eddfe3.json → 4e0fd3e97fb8c77e.json} +1 -1
- package/out/build-info/50d4a161d830da98.json +1 -0
- package/out/build-info/5ea14177d8c08770.json +1 -0
- package/out/build-info/6633b6f1d6f4bfa2.json +1 -0
- package/out/build-info/{e0a36e520084dd42.json → c70ba923379ddca4.json} +1 -1
- package/out/build-info/dbc5b333069e50a4.json +1 -0
- package/package.json +1 -1
- package/script/input/config.json +10 -10
- package/script/input/order.json +8 -6
- package/script/input/legacy-config.json +0 -80
- /package/out/{01_UpdateWMWhitelist.s.sol → 00_UpdateWMWhitelist.s.sol}/UpdateWMWhitelist.abi.json +0 -0
- /package/out/{02_DeployRepermit.s.sol → 01_DeployRepermit.s.sol}/DeployRepermit.abi.json +0 -0
|
@@ -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":"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":"
|
|
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":"0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea26469706673582212203d86c2db3ded872c6250b58a9b0225c8520d069ffb97272dac9d35e19a72d17964736f6c634300081b0033","sourceMap":"335:2690:71:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;335:2690:71;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x730000000000000000000000000000000000000000301460806040525f5ffdfea26469706673582212203d86c2db3ded872c6250b58a9b0225c8520d069ffb97272dac9d35e19a72d17964736f6c634300081b0033","sourceMap":"335:2690:71:-: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\":\"0x819ff983afc2a315d22295d50d6025a7be24a94b4f343d52c0af6ca435569fe4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7f7f85b455a14823758afc36fe93b388b2c383819e6a6d2b84dac7fec8afa64c\",\"dweb:/ipfs/QmXvwNCRksTMBq6JuiKz4G1eYQ98NGHPvu7M7aQkv9FZSB\"]},\"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":"0x819ff983afc2a315d22295d50d6025a7be24a94b4f343d52c0af6ca435569fe4","urls":["bzz-raw://7f7f85b455a14823758afc36fe93b388b2c383819e6a6d2b84dac7fec8afa64c","dweb:/ipfs/QmXvwNCRksTMBq6JuiKz4G1eYQ98NGHPvu7M7aQkv9FZSB"],"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":71}
|
|
@@ -693,6 +693,13 @@
|
|
|
693
693
|
"outputs": [],
|
|
694
694
|
"stateMutability": "nonpayable"
|
|
695
695
|
},
|
|
696
|
+
{
|
|
697
|
+
"type": "function",
|
|
698
|
+
"name": "test_validate_allows_slippageEqualToMax",
|
|
699
|
+
"inputs": [],
|
|
700
|
+
"outputs": [],
|
|
701
|
+
"stateMutability": "nonpayable"
|
|
702
|
+
},
|
|
696
703
|
{
|
|
697
704
|
"type": "function",
|
|
698
705
|
"name": "test_validate_ok",
|