@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
@@ -1,77 +0,0 @@
1
- [
2
- {
3
- "type": "function",
4
- "name": "DOMAIN_SEPARATOR",
5
- "inputs": [],
6
- "outputs": [
7
- {
8
- "name": "",
9
- "type": "bytes32",
10
- "internalType": "bytes32"
11
- }
12
- ],
13
- "stateMutability": "view"
14
- },
15
- {
16
- "type": "function",
17
- "name": "nonces",
18
- "inputs": [
19
- {
20
- "name": "owner",
21
- "type": "address",
22
- "internalType": "address"
23
- }
24
- ],
25
- "outputs": [
26
- {
27
- "name": "",
28
- "type": "uint256",
29
- "internalType": "uint256"
30
- }
31
- ],
32
- "stateMutability": "view"
33
- },
34
- {
35
- "type": "function",
36
- "name": "permit",
37
- "inputs": [
38
- {
39
- "name": "owner",
40
- "type": "address",
41
- "internalType": "address"
42
- },
43
- {
44
- "name": "spender",
45
- "type": "address",
46
- "internalType": "address"
47
- },
48
- {
49
- "name": "value",
50
- "type": "uint256",
51
- "internalType": "uint256"
52
- },
53
- {
54
- "name": "deadline",
55
- "type": "uint256",
56
- "internalType": "uint256"
57
- },
58
- {
59
- "name": "v",
60
- "type": "uint8",
61
- "internalType": "uint8"
62
- },
63
- {
64
- "name": "r",
65
- "type": "bytes32",
66
- "internalType": "bytes32"
67
- },
68
- {
69
- "name": "s",
70
- "type": "bytes32",
71
- "internalType": "bytes32"
72
- }
73
- ],
74
- "outputs": [],
75
- "stateMutability": "nonpayable"
76
- }
77
- ]
@@ -1 +0,0 @@
1
- {"abi":[{"type":"function","name":"DOMAIN_SEPARATOR","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"nonces","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"permit","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"spender","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"v","type":"uint8","internalType":"uint8"},{"name":"r","type":"bytes32","internalType":"bytes32"},{"name":"s","type":"bytes32","internalType":"bytes32"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"DOMAIN_SEPARATOR()":"3644e515","nonces(address)":"7ecebe00","permit(address,address,uint256,uint256,uint8,bytes32,bytes32)":"d505accf"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't need to send a transaction, and thus is not required to hold Ether at all. ==== Security Considerations There are two important considerations concerning the use of `permit`. The first is that a valid permit signature expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be considered as an intention to spend the allowance in any specific way. The second is that because permits have built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be generally recommended is: ```solidity function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} doThing(..., value); } function doThing(..., uint256 value) public { token.safeTransferFrom(msg.sender, address(this), value); ... } ``` Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also {SafeERC20-safeTransferFrom}). Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so contracts should have entry points that don't rely on permit.\",\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\"},\"nonces(address)\":{\"details\":\"Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times.\"},\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"details\":\"Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section]. CAUTION: See Security Considerations above.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol\":\"IERC20Permit\"},\"evmVersion\":\"shanghai\",\"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/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/\",\":openzeppelin/=lib/openzeppelin-contracts/contracts/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol\":{\"keccak256\":\"0xb264c03a3442eb37a68ad620cefd1182766b58bee6cec40343480392d6b14d69\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://28879d01fd22c07b44f006612775f8577defbe459cb01685c5e25cd518c91a71\",\"dweb:/ipfs/QmVgfkwv2Fxw6hhTcDUZhE7NkoSKjab3ipM7UaRbt6uXb5\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.20+commit.a1b79de6"},"language":"Solidity","output":{"abi":[{"inputs":[],"stateMutability":"view","type":"function","name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}]},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function","name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"stateMutability":"nonpayable","type":"function","name":"permit"}],"devdoc":{"kind":"dev","methods":{"DOMAIN_SEPARATOR()":{"details":"Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}."},"nonces(address)":{"details":"Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times."},"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)":{"details":"Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section]. CAUTION: See Security Considerations above."}},"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/","openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin/=lib/openzeppelin-contracts/contracts/"],"optimizer":{"enabled":true,"runs":1000000},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol":"IERC20Permit"},"evmVersion":"shanghai","libraries":{}},"sources":{"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol":{"keccak256":"0xb264c03a3442eb37a68ad620cefd1182766b58bee6cec40343480392d6b14d69","urls":["bzz-raw://28879d01fd22c07b44f006612775f8577defbe459cb01685c5e25cd518c91a71","dweb:/ipfs/QmVgfkwv2Fxw6hhTcDUZhE7NkoSKjab3ipM7UaRbt6uXb5"],"license":"MIT"}},"version":1},"id":26}
@@ -1 +0,0 @@
1
- {"id":"73bd7c3e9ec8bc61cee51a6d313820a9","source_id_to_path":{"0":"lib/forge-std/src/Base.sol","1":"lib/forge-std/src/Script.sol","2":"lib/forge-std/src/StdAssertions.sol","3":"lib/forge-std/src/StdChains.sol","4":"lib/forge-std/src/StdCheats.sol","5":"lib/forge-std/src/StdConstants.sol","6":"lib/forge-std/src/StdError.sol","7":"lib/forge-std/src/StdInvariant.sol","8":"lib/forge-std/src/StdJson.sol","9":"lib/forge-std/src/StdMath.sol","10":"lib/forge-std/src/StdStorage.sol","11":"lib/forge-std/src/StdStyle.sol","12":"lib/forge-std/src/StdToml.sol","13":"lib/forge-std/src/StdUtils.sol","14":"lib/forge-std/src/Test.sol","15":"lib/forge-std/src/Vm.sol","16":"lib/forge-std/src/console.sol","17":"lib/forge-std/src/console2.sol","18":"lib/forge-std/src/interfaces/IMulticall3.sol","19":"lib/forge-std/src/safeconsole.sol","20":"lib/openzeppelin-contracts/contracts/access/Ownable.sol","21":"lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol","22":"lib/openzeppelin-contracts/contracts/interfaces/IERC1271.sol","23":"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol","24":"lib/openzeppelin-contracts/contracts/mocks/ERC20Mock.sol","25":"lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol","26":"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol","27":"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol","28":"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol","29":"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol","30":"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol","31":"lib/openzeppelin-contracts/contracts/utils/Address.sol","32":"lib/openzeppelin-contracts/contracts/utils/Context.sol","33":"lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol","34":"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol","35":"lib/openzeppelin-contracts/contracts/utils/Strings.sol","36":"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol","37":"lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol","38":"lib/openzeppelin-contracts/contracts/utils/cryptography/SignatureChecker.sol","39":"lib/openzeppelin-contracts/contracts/utils/math/Math.sol","40":"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol","41":"script/00_DeployWM.s.sol","42":"script/01_UpdateWMWhitelist.s.sol","43":"script/02_DeployRepermit.s.sol","44":"script/05_DeployDefaultExchange.s.sol","45":"script/base/BaseScript.sol","46":"src/Refinery.sol","47":"src/Structs.sol","48":"src/WM.sol","49":"src/adapter/DefaultDexAdapter.sol","50":"src/executor/Executor.sol","51":"src/executor/lib/SettlementLib.sol","52":"src/executor/lib/SurplusLib.sol","53":"src/executor/lib/TokenLib.sol","54":"src/interface/IEIP712.sol","55":"src/interface/IExchangeAdapter.sol","56":"src/interface/IReactor.sol","57":"src/interface/IReactorCallback.sol","58":"src/interface/IWM.sol","59":"src/reactor/Constants.sol","60":"src/reactor/OrderReactor.sol","61":"src/reactor/lib/CosignatureLib.sol","62":"src/reactor/lib/EpochLib.sol","63":"src/reactor/lib/ExclusivityOverrideLib.sol","64":"src/reactor/lib/OrderLib.sol","65":"src/reactor/lib/OrderValidationLib.sol","66":"src/reactor/lib/ResolutionLib.sol","67":"src/repermit/RePermit.sol","68":"src/repermit/RePermitLib.sol","69":"src/utils/Multicall3Lib.sol","70":"test/RePermit.t.sol","71":"test/Refinery.t.sol","72":"test/WM.t.sol","73":"test/adapter/DefaultDexAdapter.t.sol","74":"test/base/BaseTest.sol","75":"test/e2e/OrderReactor.E2E.t.sol","76":"test/executor/Executor.t.sol","77":"test/executor/lib/SettlementLib.t.sol","78":"test/mocks/MockDexRouter.sol","79":"test/mocks/MockReactor.sol","80":"test/mocks/SwapAdapter.sol","81":"test/mocks/USDTMock.sol","82":"test/reactor/CosignatureLib.t.sol","83":"test/reactor/EpochLib.t.sol","84":"test/reactor/ExclusivityOverrideLib.t.sol","85":"test/reactor/OrderValidationLib.Fuzz.t.sol","86":"test/reactor/OrderValidationLib.t.sol","87":"test/reactor/ResolutionLib.Fuzz.t.sol","88":"test/reactor/ResolutionLib.t.sol"},"language":"Solidity"}
@@ -1 +0,0 @@
1
- {"id":"77f38a2f64e07d9cd0b3e2102d7863fd","source_id_to_path":{"0":"lib/forge-std/src/Base.sol","1":"lib/forge-std/src/Script.sol","2":"lib/forge-std/src/StdAssertions.sol","3":"lib/forge-std/src/StdChains.sol","4":"lib/forge-std/src/StdCheats.sol","5":"lib/forge-std/src/StdConstants.sol","6":"lib/forge-std/src/StdError.sol","7":"lib/forge-std/src/StdInvariant.sol","8":"lib/forge-std/src/StdJson.sol","9":"lib/forge-std/src/StdMath.sol","10":"lib/forge-std/src/StdStorage.sol","11":"lib/forge-std/src/StdStyle.sol","12":"lib/forge-std/src/StdToml.sol","13":"lib/forge-std/src/StdUtils.sol","14":"lib/forge-std/src/Test.sol","15":"lib/forge-std/src/Vm.sol","16":"lib/forge-std/src/console.sol","17":"lib/forge-std/src/console2.sol","18":"lib/forge-std/src/interfaces/IMulticall3.sol","19":"lib/forge-std/src/safeconsole.sol","20":"lib/openzeppelin-contracts/contracts/access/Ownable.sol","21":"lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol","22":"lib/openzeppelin-contracts/contracts/interfaces/IERC1271.sol","23":"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol","24":"lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol","25":"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol","26":"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol","27":"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol","28":"lib/openzeppelin-contracts/contracts/utils/Address.sol","29":"lib/openzeppelin-contracts/contracts/utils/Context.sol","30":"lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol","31":"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol","32":"lib/openzeppelin-contracts/contracts/utils/Strings.sol","33":"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol","34":"lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol","35":"lib/openzeppelin-contracts/contracts/utils/cryptography/SignatureChecker.sol","36":"lib/openzeppelin-contracts/contracts/utils/math/Math.sol","37":"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol","38":"script/03_DeployReactor.s.sol","39":"script/base/BaseScript.sol","40":"src/Refinery.sol","41":"src/Structs.sol","42":"src/WM.sol","43":"src/adapter/DefaultDexAdapter.sol","44":"src/executor/Executor.sol","45":"src/executor/lib/SettlementLib.sol","46":"src/executor/lib/SurplusLib.sol","47":"src/executor/lib/TokenLib.sol","48":"src/interface/IEIP712.sol","49":"src/interface/IExchangeAdapter.sol","50":"src/interface/IReactor.sol","51":"src/interface/IReactorCallback.sol","52":"src/interface/IWM.sol","53":"src/reactor/Constants.sol","54":"src/reactor/OrderReactor.sol","55":"src/reactor/lib/CosignatureLib.sol","56":"src/reactor/lib/EpochLib.sol","57":"src/reactor/lib/ExclusivityOverrideLib.sol","58":"src/reactor/lib/OrderLib.sol","59":"src/reactor/lib/OrderValidationLib.sol","60":"src/reactor/lib/ResolutionLib.sol","61":"src/repermit/RePermit.sol","62":"src/repermit/RePermitLib.sol","63":"src/utils/Multicall3Lib.sol"},"language":"Solidity"}
@@ -1 +0,0 @@
1
- {"id":"bf2da9800c0b2d6b74f871364578b022","source_id_to_path":{"0":"lib/forge-std/src/Base.sol","1":"lib/forge-std/src/StdAssertions.sol","2":"lib/forge-std/src/StdChains.sol","3":"lib/forge-std/src/StdCheats.sol","4":"lib/forge-std/src/StdConstants.sol","5":"lib/forge-std/src/StdError.sol","6":"lib/forge-std/src/StdInvariant.sol","7":"lib/forge-std/src/StdJson.sol","8":"lib/forge-std/src/StdMath.sol","9":"lib/forge-std/src/StdStorage.sol","10":"lib/forge-std/src/StdStyle.sol","11":"lib/forge-std/src/StdToml.sol","12":"lib/forge-std/src/StdUtils.sol","13":"lib/forge-std/src/Test.sol","14":"lib/forge-std/src/Vm.sol","15":"lib/forge-std/src/console.sol","16":"lib/forge-std/src/console2.sol","17":"lib/forge-std/src/interfaces/IMulticall3.sol","18":"lib/forge-std/src/safeconsole.sol","19":"lib/openzeppelin-contracts/contracts/access/Ownable.sol","20":"lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol","21":"lib/openzeppelin-contracts/contracts/interfaces/IERC1271.sol","22":"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol","23":"lib/openzeppelin-contracts/contracts/mocks/ERC20Mock.sol","24":"lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol","25":"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol","26":"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol","27":"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol","28":"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol","29":"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol","30":"lib/openzeppelin-contracts/contracts/utils/Address.sol","31":"lib/openzeppelin-contracts/contracts/utils/Context.sol","32":"lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol","33":"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol","34":"lib/openzeppelin-contracts/contracts/utils/Strings.sol","35":"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol","36":"lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol","37":"lib/openzeppelin-contracts/contracts/utils/cryptography/SignatureChecker.sol","38":"lib/openzeppelin-contracts/contracts/utils/math/Math.sol","39":"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol","40":"src/Structs.sol","41":"src/adapter/DefaultDexAdapter.sol","42":"src/executor/Executor.sol","43":"src/interface/IEIP712.sol","44":"src/interface/IExchangeAdapter.sol","45":"src/interface/IReactor.sol","46":"src/interface/IReactorCallback.sol","47":"src/interface/IWM.sol","48":"src/lib/CosignatureLib.sol","49":"src/lib/EpochLib.sol","50":"src/lib/ExclusivityOverrideLib.sol","51":"src/lib/Multicall3Lib.sol","52":"src/lib/OrderLib.sol","53":"src/lib/OrderValidationLib.sol","54":"src/lib/RePermitLib.sol","55":"src/lib/ResolutionLib.sol","56":"src/lib/SettlementLib.sol","57":"src/lib/SurplusLib.sol","58":"src/lib/TokenLib.sol","59":"src/ops/Refinery.sol","60":"src/ops/WM.sol","61":"src/reactor/Constants.sol","62":"src/reactor/OrderReactor.sol","63":"src/repermit/RePermit.sol","64":"test/CosignatureLib.t.sol","65":"test/DefaultDexAdapter.t.sol","66":"test/EpochLib.t.sol","67":"test/ExclusivityOverrideLib.t.sol","68":"test/Executor.t.sol","69":"test/OrderReactor.E2E.t.sol","70":"test/OrderValidationLib.Fuzz.t.sol","71":"test/OrderValidationLib.t.sol","72":"test/RePermit.t.sol","73":"test/Refinery.t.sol","74":"test/ResolutionLib.Fuzz.t.sol","75":"test/ResolutionLib.t.sol","76":"test/SettlementLib.t.sol","77":"test/WM.t.sol","78":"test/base/BaseTest.sol","79":"test/mocks/MockDexRouter.sol","80":"test/mocks/MockReactor.sol","81":"test/mocks/SwapAdapter.sol","82":"test/mocks/USDTMock.sol"},"language":"Solidity"}
@@ -1 +0,0 @@
1
- {"id":"f1185935442ac1be7e6acad26197fe26","source_id_to_path":{"0":"lib/forge-std/src/Base.sol","1":"lib/forge-std/src/Script.sol","2":"lib/forge-std/src/StdChains.sol","3":"lib/forge-std/src/StdCheats.sol","4":"lib/forge-std/src/StdConstants.sol","5":"lib/forge-std/src/StdJson.sol","6":"lib/forge-std/src/StdMath.sol","7":"lib/forge-std/src/StdStorage.sol","8":"lib/forge-std/src/StdStyle.sol","9":"lib/forge-std/src/StdUtils.sol","10":"lib/forge-std/src/Vm.sol","11":"lib/forge-std/src/console.sol","12":"lib/forge-std/src/console2.sol","13":"lib/forge-std/src/interfaces/IMulticall3.sol","14":"lib/forge-std/src/safeconsole.sol","15":"lib/openzeppelin-contracts/contracts/access/Ownable.sol","16":"lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol","17":"lib/openzeppelin-contracts/contracts/interfaces/IERC1271.sol","18":"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol","19":"lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol","20":"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol","21":"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol","22":"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol","23":"lib/openzeppelin-contracts/contracts/utils/Address.sol","24":"lib/openzeppelin-contracts/contracts/utils/Context.sol","25":"lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol","26":"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol","27":"lib/openzeppelin-contracts/contracts/utils/Strings.sol","28":"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol","29":"lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol","30":"lib/openzeppelin-contracts/contracts/utils/cryptography/SignatureChecker.sol","31":"lib/openzeppelin-contracts/contracts/utils/math/Math.sol","32":"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol","33":"script/00_DeployWM.s.sol","34":"script/01_UpdateWMWhitelist.s.sol","35":"script/02_DeployRepermit.s.sol","36":"script/03_DeployReactor.s.sol","37":"script/04_DeployExecutor.s.sol","38":"script/05_DeployDefaultExchange.s.sol","39":"script/06_DeployRefinery.s.sol","40":"src/Structs.sol","41":"src/adapter/DefaultDexAdapter.sol","42":"src/executor/Executor.sol","43":"src/interface/IEIP712.sol","44":"src/interface/IExchangeAdapter.sol","45":"src/interface/IReactor.sol","46":"src/interface/IReactorCallback.sol","47":"src/interface/IWM.sol","48":"src/lib/CosignatureLib.sol","49":"src/lib/EpochLib.sol","50":"src/lib/ExclusivityOverrideLib.sol","51":"src/lib/Multicall3Lib.sol","52":"src/lib/OrderLib.sol","53":"src/lib/OrderValidationLib.sol","54":"src/lib/RePermitLib.sol","55":"src/lib/ResolutionLib.sol","56":"src/lib/SettlementLib.sol","57":"src/lib/SurplusLib.sol","58":"src/lib/TokenLib.sol","59":"src/ops/Refinery.sol","60":"src/ops/WM.sol","61":"src/reactor/Constants.sol","62":"src/reactor/OrderReactor.sol","63":"src/repermit/RePermit.sol"},"language":"Solidity"}