@orbs-network/spot 0.0.1
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/LICENSE +21 -0
- package/README.md +223 -0
- package/out/00_DeployWM.s.sol/DeployWM.abi.json +35 -0
- package/out/00_DeployWM.s.sol/DeployWM.json +1 -0
- package/out/01_UpdateWMWhitelist.s.sol/UpdateWMWhitelist.abi.json +55 -0
- package/out/01_UpdateWMWhitelist.s.sol/UpdateWMWhitelist.json +1 -0
- package/out/02_DeployRepermit.s.sol/DeployRepermit.abi.json +35 -0
- package/out/02_DeployRepermit.s.sol/DeployRepermit.json +1 -0
- package/out/03_DeployReactor.s.sol/DeployReactor.abi.json +35 -0
- package/out/03_DeployReactor.s.sol/DeployReactor.json +1 -0
- package/out/04_DeployExecutor.s.sol/DeployExecutor.abi.json +35 -0
- package/out/04_DeployExecutor.s.sol/DeployExecutor.json +1 -0
- package/out/05_DeployDefaultExchange.s.sol/DeployDefaultExchange.abi.json +35 -0
- package/out/05_DeployDefaultExchange.s.sol/DeployDefaultExchange.json +1 -0
- package/out/06_DeployRefinery.s.sol/DeployRefinery.abi.json +35 -0
- package/out/06_DeployRefinery.s.sol/DeployRefinery.json +1 -0
- package/out/Address.sol/Address.abi.json +1 -0
- package/out/Address.sol/Address.json +1 -0
- package/out/Base.sol/CommonBase.abi.json +1 -0
- package/out/Base.sol/CommonBase.json +1 -0
- package/out/Base.sol/ScriptBase.abi.json +1 -0
- package/out/Base.sol/ScriptBase.json +1 -0
- package/out/Base.sol/TestBase.abi.json +1 -0
- package/out/Base.sol/TestBase.json +1 -0
- package/out/BaseScript.sol/BaseScript.abi.json +22 -0
- package/out/BaseScript.sol/BaseScript.json +1 -0
- package/out/BaseTest.sol/BaseTest.abi.json +876 -0
- package/out/BaseTest.sol/BaseTest.json +1 -0
- package/out/Constants.sol/Constants.abi.json +28 -0
- package/out/Constants.sol/Constants.json +1 -0
- package/out/Context.sol/Context.abi.json +1 -0
- package/out/Context.sol/Context.json +1 -0
- package/out/CosignatureLib.sol/CosignatureLib.abi.json +62 -0
- package/out/CosignatureLib.sol/CosignatureLib.json +1 -0
- package/out/CosignatureLib.t.sol/CosignatureLibTest.abi.json +1254 -0
- package/out/CosignatureLib.t.sol/CosignatureLibTest.json +1 -0
- package/out/DefaultDexAdapter.sol/DefaultDexAdapter.abi.json +309 -0
- package/out/DefaultDexAdapter.sol/DefaultDexAdapter.json +1 -0
- package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.abi.json +930 -0
- package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.json +1 -0
- package/out/ECDSA.sol/ECDSA.abi.json +1 -0
- package/out/ECDSA.sol/ECDSA.json +1 -0
- package/out/EIP712.sol/EIP712.abi.json +67 -0
- package/out/EIP712.sol/EIP712.json +1 -0
- package/out/ERC20.sol/ERC20.abi.json +288 -0
- package/out/ERC20.sol/ERC20.json +1 -0
- package/out/ERC20Mock.sol/ERC20Mock.abi.json +313 -0
- package/out/ERC20Mock.sol/ERC20Mock.json +1 -0
- package/out/EpochLib.sol/EpochLib.abi.json +7 -0
- package/out/EpochLib.sol/EpochLib.json +1 -0
- package/out/EpochLib.t.sol/EpochLibTest.abi.json +621 -0
- package/out/EpochLib.t.sol/EpochLibTest.json +1 -0
- package/out/ExclusivityOverrideLib.sol/ExclusivityOverrideLib.abi.json +7 -0
- package/out/ExclusivityOverrideLib.sol/ExclusivityOverrideLib.json +1 -0
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityCaller.abi.json +36 -0
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityCaller.json +1 -0
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.abi.json +910 -0
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.json +1 -0
- package/out/Executor.sol/Executor.abi.json +706 -0
- package/out/Executor.sol/Executor.json +1 -0
- package/out/Executor.t.sol/ExecutorTest.abi.json +1011 -0
- package/out/Executor.t.sol/ExecutorTest.json +1 -0
- package/out/IEIP712.sol/IEIP712.abi.json +34 -0
- package/out/IEIP712.sol/IEIP712.json +1 -0
- package/out/IERC1271.sol/IERC1271.abi.json +26 -0
- package/out/IERC1271.sol/IERC1271.json +1 -0
- package/out/IERC20.sol/IERC20.abi.json +185 -0
- package/out/IERC20.sol/IERC20.json +1 -0
- package/out/IERC20Metadata.sol/IERC20Metadata.abi.json +224 -0
- package/out/IERC20Metadata.sol/IERC20Metadata.json +1 -0
- package/out/IERC20Permit.sol/IERC20Permit.abi.json +77 -0
- package/out/IERC20Permit.sol/IERC20Permit.json +1 -0
- package/out/IERC5267.sol/IERC5267.abi.json +51 -0
- package/out/IERC5267.sol/IERC5267.json +1 -0
- package/out/IExchangeAdapter.sol/IExchangeAdapter.abi.json +285 -0
- package/out/IExchangeAdapter.sol/IExchangeAdapter.json +1 -0
- package/out/IMulticall3.sol/IMulticall3.abi.json +440 -0
- package/out/IMulticall3.sol/IMulticall3.json +1 -0
- package/out/IReactor.sol/IReactor.abi.json +275 -0
- package/out/IReactor.sol/IReactor.json +1 -0
- package/out/IReactorCallback.sol/IReactorCallback.abi.json +285 -0
- package/out/IReactorCallback.sol/IReactorCallback.json +1 -0
- package/out/IWM.sol/IWM.abi.json +21 -0
- package/out/IWM.sol/IWM.json +1 -0
- package/out/Math.sol/Math.abi.json +1 -0
- package/out/Math.sol/Math.json +1 -0
- package/out/MockDexRouter.sol/MockDexRouter.abi.json +61 -0
- package/out/MockDexRouter.sol/MockDexRouter.json +1 -0
- package/out/MockReactor.sol/MockReactor.abi.json +572 -0
- package/out/MockReactor.sol/MockReactor.json +1 -0
- package/out/Multicall3Lib.sol/Multicall3Lib.abi.json +18 -0
- package/out/Multicall3Lib.sol/Multicall3Lib.json +1 -0
- package/out/OrderLib.sol/OrderLib.abi.json +1 -0
- package/out/OrderLib.sol/OrderLib.json +1 -0
- package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.abi.json +977 -0
- package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.json +1 -0
- package/out/OrderReactor.sol/OrderReactor.abi.json +516 -0
- package/out/OrderReactor.sol/OrderReactor.json +1 -0
- package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.abi.json +1228 -0
- package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.json +1 -0
- package/out/OrderValidationLib.sol/OrderValidationLib.abi.json +72 -0
- package/out/OrderValidationLib.sol/OrderValidationLib.json +1 -0
- package/out/OrderValidationLib.t.sol/OrderValidationLibTest.abi.json +1280 -0
- package/out/OrderValidationLib.t.sol/OrderValidationLibTest.json +1 -0
- package/out/Ownable.sol/Ownable.abi.json +54 -0
- package/out/Ownable.sol/Ownable.json +1 -0
- package/out/Ownable2Step.sol/Ownable2Step.abi.json +93 -0
- package/out/Ownable2Step.sol/Ownable2Step.json +1 -0
- package/out/RePermit.sol/RePermit.abi.json +302 -0
- package/out/RePermit.sol/RePermit.json +1 -0
- package/out/RePermit.t.sol/RePermitTest.abi.json +1110 -0
- package/out/RePermit.t.sol/RePermitTest.json +1 -0
- package/out/RePermitLib.sol/RePermitLib.abi.json +79 -0
- package/out/RePermitLib.sol/RePermitLib.json +1 -0
- package/out/ReentrancyGuard.sol/ReentrancyGuard.abi.json +1 -0
- package/out/ReentrancyGuard.sol/ReentrancyGuard.json +1 -0
- package/out/Refinery.sol/Refinery.abi.json +147 -0
- package/out/Refinery.sol/Refinery.json +1 -0
- package/out/Refinery.t.sol/RefineryTest.abi.json +1034 -0
- package/out/Refinery.t.sol/RefineryTest.json +1 -0
- package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.abi.json +1154 -0
- package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.json +1 -0
- package/out/ResolutionLib.sol/ResolutionLib.abi.json +7 -0
- package/out/ResolutionLib.sol/ResolutionLib.json +1 -0
- package/out/ResolutionLib.t.sol/ResolutionLibTest.abi.json +1130 -0
- package/out/ResolutionLib.t.sol/ResolutionLibTest.json +1 -0
- package/out/SafeERC20.sol/SafeERC20.abi.json +1 -0
- package/out/SafeERC20.sol/SafeERC20.json +1 -0
- package/out/Script.sol/Script.abi.json +15 -0
- package/out/Script.sol/Script.json +1 -0
- package/out/SettlementLib.sol/SettlementLib.abi.json +62 -0
- package/out/SettlementLib.sol/SettlementLib.json +1 -0
- package/out/SettlementLib.t.sol/SettlementLibTest.abi.json +1090 -0
- package/out/SettlementLib.t.sol/SettlementLibTest.json +1 -0
- package/out/SettlementLib.t.sol/SettlementWrapper.abi.json +345 -0
- package/out/SettlementLib.t.sol/SettlementWrapper.json +1 -0
- package/out/ShortStrings.sol/ShortStrings.abi.json +18 -0
- package/out/ShortStrings.sol/ShortStrings.json +1 -0
- package/out/SignatureChecker.sol/SignatureChecker.abi.json +1 -0
- package/out/SignatureChecker.sol/SignatureChecker.json +1 -0
- package/out/SignedMath.sol/SignedMath.abi.json +1 -0
- package/out/SignedMath.sol/SignedMath.json +1 -0
- package/out/StdAssertions.sol/StdAssertions.abi.json +379 -0
- package/out/StdAssertions.sol/StdAssertions.json +1 -0
- package/out/StdChains.sol/StdChains.abi.json +1 -0
- package/out/StdChains.sol/StdChains.json +1 -0
- package/out/StdCheats.sol/StdCheats.abi.json +1 -0
- package/out/StdCheats.sol/StdCheats.json +1 -0
- package/out/StdCheats.sol/StdCheatsSafe.abi.json +1 -0
- package/out/StdCheats.sol/StdCheatsSafe.json +1 -0
- package/out/StdConstants.sol/StdConstants.abi.json +1 -0
- package/out/StdConstants.sol/StdConstants.json +1 -0
- package/out/StdError.sol/stdError.abi.json +119 -0
- package/out/StdError.sol/stdError.json +1 -0
- package/out/StdInvariant.sol/StdInvariant.abi.json +180 -0
- package/out/StdInvariant.sol/StdInvariant.json +1 -0
- package/out/StdJson.sol/stdJson.abi.json +1 -0
- package/out/StdJson.sol/stdJson.json +1 -0
- package/out/StdMath.sol/stdMath.abi.json +1 -0
- package/out/StdMath.sol/stdMath.json +1 -0
- package/out/StdStorage.sol/stdStorage.abi.json +1 -0
- package/out/StdStorage.sol/stdStorage.json +1 -0
- package/out/StdStorage.sol/stdStorageSafe.abi.json +52 -0
- package/out/StdStorage.sol/stdStorageSafe.json +1 -0
- package/out/StdStyle.sol/StdStyle.abi.json +1 -0
- package/out/StdStyle.sol/StdStyle.json +1 -0
- package/out/StdToml.sol/stdToml.abi.json +1 -0
- package/out/StdToml.sol/stdToml.json +1 -0
- package/out/StdUtils.sol/StdUtils.abi.json +1 -0
- package/out/StdUtils.sol/StdUtils.json +1 -0
- package/out/StorageSlot.sol/StorageSlot.abi.json +1 -0
- package/out/StorageSlot.sol/StorageSlot.json +1 -0
- package/out/Strings.sol/Strings.abi.json +1 -0
- package/out/Strings.sol/Strings.json +1 -0
- package/out/SurplusLib.sol/SurplusLib.abi.json +39 -0
- package/out/SurplusLib.sol/SurplusLib.json +1 -0
- package/out/SwapAdapter.sol/SwapAdapterMock.abi.json +290 -0
- package/out/SwapAdapter.sol/SwapAdapterMock.json +1 -0
- package/out/Test.sol/Test.abi.json +570 -0
- package/out/Test.sol/Test.json +1 -0
- package/out/TokenLib.sol/TokenLib.abi.json +1 -0
- package/out/TokenLib.sol/TokenLib.json +1 -0
- package/out/USDTMock.sol/USDTMock.abi.json +300 -0
- package/out/USDTMock.sol/USDTMock.json +1 -0
- package/out/Vm.sol/Vm.abi.json +11771 -0
- package/out/Vm.sol/Vm.json +1 -0
- package/out/Vm.sol/VmSafe.abi.json +9371 -0
- package/out/Vm.sol/VmSafe.json +1 -0
- package/out/WM.sol/WM.abi.json +160 -0
- package/out/WM.sol/WM.json +1 -0
- package/out/WM.t.sol/WMTest.abi.json +985 -0
- package/out/WM.t.sol/WMTest.json +1 -0
- package/out/build-info/363db87197fc9814c7bfdf743fe3f032.json +1 -0
- package/out/build-info/58edb1e201d69cafa30a8647665617e6.json +1 -0
- package/out/build-info/73bd7c3e9ec8bc61cee51a6d313820a9.json +1 -0
- package/out/build-info/77f38a2f64e07d9cd0b3e2102d7863fd.json +1 -0
- package/out/build-info/c14311d7870724b723128a4d397b0f4c.json +1 -0
- package/out/console.sol/console.abi.json +1 -0
- package/out/console.sol/console.json +1 -0
- package/out/safeconsole.sol/safeconsole.abi.json +1 -0
- package/out/safeconsole.sol/safeconsole.json +1 -0
- package/package.json +25 -0
- package/script/input/config.json +20 -0
- package/script/input/cosignature.skeleton.json +68 -0
- package/script/input/legacy-config.json +80 -0
- package/script/input/repermit.skeleton.json +185 -0
- package/script/input/wm.json +1003 -0
- package/script/input/wm2.json +13 -0
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
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}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "eip712Domain",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "fields",
|
|
9
|
+
"type": "bytes1",
|
|
10
|
+
"internalType": "bytes1"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "name",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"internalType": "string"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "version",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"internalType": "string"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "chainId",
|
|
24
|
+
"type": "uint256",
|
|
25
|
+
"internalType": "uint256"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "verifyingContract",
|
|
29
|
+
"type": "address",
|
|
30
|
+
"internalType": "address"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "salt",
|
|
34
|
+
"type": "bytes32",
|
|
35
|
+
"internalType": "bytes32"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "extensions",
|
|
39
|
+
"type": "uint256[]",
|
|
40
|
+
"internalType": "uint256[]"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"stateMutability": "view"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "event",
|
|
47
|
+
"name": "EIP712DomainChanged",
|
|
48
|
+
"inputs": [],
|
|
49
|
+
"anonymous": false
|
|
50
|
+
}
|
|
51
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"abi":[{"type":"function","name":"eip712Domain","inputs":[],"outputs":[{"name":"fields","type":"bytes1","internalType":"bytes1"},{"name":"name","type":"string","internalType":"string"},{"name":"version","type":"string","internalType":"string"},{"name":"chainId","type":"uint256","internalType":"uint256"},{"name":"verifyingContract","type":"address","internalType":"address"},{"name":"salt","type":"bytes32","internalType":"bytes32"},{"name":"extensions","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"type":"event","name":"EIP712DomainChanged","inputs":[],"anonymous":false}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"eip712Domain()":"84b0196e"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[],\"name\":\"EIP712DomainChanged\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"eip712Domain\",\"outputs\":[{\"internalType\":\"bytes1\",\"name\":\"fields\",\"type\":\"bytes1\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifyingContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"extensions\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"EIP712DomainChanged()\":{\"details\":\"MAY be emitted to signal that the domain could have changed.\"}},\"kind\":\"dev\",\"methods\":{\"eip712Domain()\":{\"details\":\"returns the fields and values that describe the domain separator used by this contract for EIP-712 signature.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol\":\"IERC5267\"},\"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/interfaces/IERC5267.sol\":{\"keccak256\":\"0xac6c2efc64baccbde4904ae18ed45139c9aa8cff96d6888344d1e4d2eb8b659f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6e416a280c610b6b7a5f158e4a41aacfaec01ef14d5d1de13b46be9e090265fc\",\"dweb:/ipfs/QmYZP2KrdyccBbhLZT42auhvBTMkwiwUS3V6HWb42rbwbG\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.20+commit.a1b79de6"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"event","name":"EIP712DomainChanged","anonymous":false},{"inputs":[],"stateMutability":"view","type":"function","name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}]}],"devdoc":{"kind":"dev","methods":{"eip712Domain()":{"details":"returns the fields and values that describe the domain separator used by this contract for EIP-712 signature."}},"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/interfaces/IERC5267.sol":"IERC5267"},"evmVersion":"shanghai","libraries":{}},"sources":{"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol":{"keccak256":"0xac6c2efc64baccbde4904ae18ed45139c9aa8cff96d6888344d1e4d2eb8b659f","urls":["bzz-raw://6e416a280c610b6b7a5f158e4a41aacfaec01ef14d5d1de13b46be9e090265fc","dweb:/ipfs/QmYZP2KrdyccBbhLZT42auhvBTMkwiwUS3V6HWb42rbwbG"],"license":"MIT"}},"version":1},"id":23}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "delegateSwap",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "hash",
|
|
8
|
+
"type": "bytes32",
|
|
9
|
+
"internalType": "bytes32"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "resolvedAmountOut",
|
|
13
|
+
"type": "uint256",
|
|
14
|
+
"internalType": "uint256"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "co",
|
|
18
|
+
"type": "tuple",
|
|
19
|
+
"internalType": "struct CosignedOrder",
|
|
20
|
+
"components": [
|
|
21
|
+
{
|
|
22
|
+
"name": "order",
|
|
23
|
+
"type": "tuple",
|
|
24
|
+
"internalType": "struct Order",
|
|
25
|
+
"components": [
|
|
26
|
+
{
|
|
27
|
+
"name": "reactor",
|
|
28
|
+
"type": "address",
|
|
29
|
+
"internalType": "address"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "executor",
|
|
33
|
+
"type": "address",
|
|
34
|
+
"internalType": "address"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "exchange",
|
|
38
|
+
"type": "tuple",
|
|
39
|
+
"internalType": "struct Exchange",
|
|
40
|
+
"components": [
|
|
41
|
+
{
|
|
42
|
+
"name": "adapter",
|
|
43
|
+
"type": "address",
|
|
44
|
+
"internalType": "address"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "ref",
|
|
48
|
+
"type": "address",
|
|
49
|
+
"internalType": "address"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "share",
|
|
53
|
+
"type": "uint32",
|
|
54
|
+
"internalType": "uint32"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "data",
|
|
58
|
+
"type": "bytes",
|
|
59
|
+
"internalType": "bytes"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "swapper",
|
|
65
|
+
"type": "address",
|
|
66
|
+
"internalType": "address"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "nonce",
|
|
70
|
+
"type": "uint256",
|
|
71
|
+
"internalType": "uint256"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "deadline",
|
|
75
|
+
"type": "uint256",
|
|
76
|
+
"internalType": "uint256"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "chainid",
|
|
80
|
+
"type": "uint256",
|
|
81
|
+
"internalType": "uint256"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "exclusivity",
|
|
85
|
+
"type": "uint32",
|
|
86
|
+
"internalType": "uint32"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "epoch",
|
|
90
|
+
"type": "uint32",
|
|
91
|
+
"internalType": "uint32"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "slippage",
|
|
95
|
+
"type": "uint32",
|
|
96
|
+
"internalType": "uint32"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "freshness",
|
|
100
|
+
"type": "uint32",
|
|
101
|
+
"internalType": "uint32"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "input",
|
|
105
|
+
"type": "tuple",
|
|
106
|
+
"internalType": "struct Input",
|
|
107
|
+
"components": [
|
|
108
|
+
{
|
|
109
|
+
"name": "token",
|
|
110
|
+
"type": "address",
|
|
111
|
+
"internalType": "address"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "amount",
|
|
115
|
+
"type": "uint256",
|
|
116
|
+
"internalType": "uint256"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "maxAmount",
|
|
120
|
+
"type": "uint256",
|
|
121
|
+
"internalType": "uint256"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "output",
|
|
127
|
+
"type": "tuple",
|
|
128
|
+
"internalType": "struct Output",
|
|
129
|
+
"components": [
|
|
130
|
+
{
|
|
131
|
+
"name": "token",
|
|
132
|
+
"type": "address",
|
|
133
|
+
"internalType": "address"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "amount",
|
|
137
|
+
"type": "uint256",
|
|
138
|
+
"internalType": "uint256"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "maxAmount",
|
|
142
|
+
"type": "uint256",
|
|
143
|
+
"internalType": "uint256"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "recipient",
|
|
147
|
+
"type": "address",
|
|
148
|
+
"internalType": "address"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "signature",
|
|
156
|
+
"type": "bytes",
|
|
157
|
+
"internalType": "bytes"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "cosignatureData",
|
|
161
|
+
"type": "tuple",
|
|
162
|
+
"internalType": "struct Cosignature",
|
|
163
|
+
"components": [
|
|
164
|
+
{
|
|
165
|
+
"name": "cosigner",
|
|
166
|
+
"type": "address",
|
|
167
|
+
"internalType": "address"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "reactor",
|
|
171
|
+
"type": "address",
|
|
172
|
+
"internalType": "address"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "chainid",
|
|
176
|
+
"type": "uint256",
|
|
177
|
+
"internalType": "uint256"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "timestamp",
|
|
181
|
+
"type": "uint256",
|
|
182
|
+
"internalType": "uint256"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "input",
|
|
186
|
+
"type": "tuple",
|
|
187
|
+
"internalType": "struct CosignedValue",
|
|
188
|
+
"components": [
|
|
189
|
+
{
|
|
190
|
+
"name": "token",
|
|
191
|
+
"type": "address",
|
|
192
|
+
"internalType": "address"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "value",
|
|
196
|
+
"type": "uint256",
|
|
197
|
+
"internalType": "uint256"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "decimals",
|
|
201
|
+
"type": "uint8",
|
|
202
|
+
"internalType": "uint8"
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "output",
|
|
208
|
+
"type": "tuple",
|
|
209
|
+
"internalType": "struct CosignedValue",
|
|
210
|
+
"components": [
|
|
211
|
+
{
|
|
212
|
+
"name": "token",
|
|
213
|
+
"type": "address",
|
|
214
|
+
"internalType": "address"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "value",
|
|
218
|
+
"type": "uint256",
|
|
219
|
+
"internalType": "uint256"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "decimals",
|
|
223
|
+
"type": "uint8",
|
|
224
|
+
"internalType": "uint8"
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "cosignature",
|
|
232
|
+
"type": "bytes",
|
|
233
|
+
"internalType": "bytes"
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "x",
|
|
239
|
+
"type": "tuple",
|
|
240
|
+
"internalType": "struct Execution",
|
|
241
|
+
"components": [
|
|
242
|
+
{
|
|
243
|
+
"name": "minAmountOut",
|
|
244
|
+
"type": "uint256",
|
|
245
|
+
"internalType": "uint256"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "fee",
|
|
249
|
+
"type": "tuple",
|
|
250
|
+
"internalType": "struct Output",
|
|
251
|
+
"components": [
|
|
252
|
+
{
|
|
253
|
+
"name": "token",
|
|
254
|
+
"type": "address",
|
|
255
|
+
"internalType": "address"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "amount",
|
|
259
|
+
"type": "uint256",
|
|
260
|
+
"internalType": "uint256"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "maxAmount",
|
|
264
|
+
"type": "uint256",
|
|
265
|
+
"internalType": "uint256"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "recipient",
|
|
269
|
+
"type": "address",
|
|
270
|
+
"internalType": "address"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "data",
|
|
276
|
+
"type": "bytes",
|
|
277
|
+
"internalType": "bytes"
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"outputs": [],
|
|
283
|
+
"stateMutability": "nonpayable"
|
|
284
|
+
}
|
|
285
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"abi":[{"type":"function","name":"delegateSwap","inputs":[{"name":"hash","type":"bytes32","internalType":"bytes32"},{"name":"resolvedAmountOut","type":"uint256","internalType":"uint256"},{"name":"co","type":"tuple","internalType":"struct CosignedOrder","components":[{"name":"order","type":"tuple","internalType":"struct Order","components":[{"name":"reactor","type":"address","internalType":"address"},{"name":"executor","type":"address","internalType":"address"},{"name":"exchange","type":"tuple","internalType":"struct Exchange","components":[{"name":"adapter","type":"address","internalType":"address"},{"name":"ref","type":"address","internalType":"address"},{"name":"share","type":"uint32","internalType":"uint32"},{"name":"data","type":"bytes","internalType":"bytes"}]},{"name":"swapper","type":"address","internalType":"address"},{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"chainid","type":"uint256","internalType":"uint256"},{"name":"exclusivity","type":"uint32","internalType":"uint32"},{"name":"epoch","type":"uint32","internalType":"uint32"},{"name":"slippage","type":"uint32","internalType":"uint32"},{"name":"freshness","type":"uint32","internalType":"uint32"},{"name":"input","type":"tuple","internalType":"struct Input","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"maxAmount","type":"uint256","internalType":"uint256"}]},{"name":"output","type":"tuple","internalType":"struct Output","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"maxAmount","type":"uint256","internalType":"uint256"},{"name":"recipient","type":"address","internalType":"address"}]}]},{"name":"signature","type":"bytes","internalType":"bytes"},{"name":"cosignatureData","type":"tuple","internalType":"struct Cosignature","components":[{"name":"cosigner","type":"address","internalType":"address"},{"name":"reactor","type":"address","internalType":"address"},{"name":"chainid","type":"uint256","internalType":"uint256"},{"name":"timestamp","type":"uint256","internalType":"uint256"},{"name":"input","type":"tuple","internalType":"struct CosignedValue","components":[{"name":"token","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"decimals","type":"uint8","internalType":"uint8"}]},{"name":"output","type":"tuple","internalType":"struct CosignedValue","components":[{"name":"token","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"decimals","type":"uint8","internalType":"uint8"}]}]},{"name":"cosignature","type":"bytes","internalType":"bytes"}]},{"name":"x","type":"tuple","internalType":"struct Execution","components":[{"name":"minAmountOut","type":"uint256","internalType":"uint256"},{"name":"fee","type":"tuple","internalType":"struct Output","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"maxAmount","type":"uint256","internalType":"uint256"},{"name":"recipient","type":"address","internalType":"address"}]},{"name":"data","type":"bytes","internalType":"bytes"}]}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"delegateSwap(bytes32,uint256,((address,address,(address,address,uint32,bytes),address,uint256,uint256,uint256,uint32,uint32,uint32,uint32,(address,uint256,uint256),(address,uint256,uint256,address)),bytes,(address,address,uint256,uint256,(address,uint256,uint8),(address,uint256,uint8)),bytes),(uint256,(address,uint256,uint256,address),bytes))":"5780159b"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"resolvedAmountOut\",\"type\":\"uint256\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"reactor\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"executor\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"adapter\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ref\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"share\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"struct Exchange\",\"name\":\"exchange\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"swapper\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"chainid\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"exclusivity\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"epoch\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"slippage\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"freshness\",\"type\":\"uint32\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxAmount\",\"type\":\"uint256\"}],\"internalType\":\"struct Input\",\"name\":\"input\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"struct Output\",\"name\":\"output\",\"type\":\"tuple\"}],\"internalType\":\"struct Order\",\"name\":\"order\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"cosigner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"reactor\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"}],\"internalType\":\"struct CosignedValue\",\"name\":\"input\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"}],\"internalType\":\"struct CosignedValue\",\"name\":\"output\",\"type\":\"tuple\"}],\"internalType\":\"struct Cosignature\",\"name\":\"cosignatureData\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"cosignature\",\"type\":\"bytes\"}],\"internalType\":\"struct CosignedOrder\",\"name\":\"co\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"struct Output\",\"name\":\"fee\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"struct Execution\",\"name\":\"x\",\"type\":\"tuple\"}],\"name\":\"delegateSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/interface/IExchangeAdapter.sol\":\"IExchangeAdapter\"},\"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\":{\"src/Structs.sol\":{\"keccak256\":\"0xb8f5c5a86dd60a9160f14ff7e64868ba50a5d07278d194a107cb298fb665121d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://278d79b5b0b96e17f5ba16adf6139a1c069a186eacd84ae72e8b029f614c3911\",\"dweb:/ipfs/QmVvHhBbrNXYXJcykbxo2vLWakFiSTkGbtsQw8ZeNkxpe9\"]},\"src/interface/IExchangeAdapter.sol\":{\"keccak256\":\"0x94c4298b1d82eb6a685e3f303e70e4a6b6485930fffda002341911cbe6bbec44\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c8ea380ca0699184ee95fa68983134f65ad8f2170026913fd3553007256ff90c\",\"dweb:/ipfs/QmUVkXi3woVeRAkqwPRYodntbATGD54xzThCJ8unaU9Mkw\"]},\"src/reactor/lib/OrderLib.sol\":{\"keccak256\":\"0x9027482831f27a5babbf36b8262131358494e0ab2820e0aaa1e1c2890296e4d2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0018d195ad1957861ff1cc890ef4c937f65fd6cd21682a55f1fc823d71bce97e\",\"dweb:/ipfs/QmSSH1fL8u8QgT8zc4yvkDJ4YQE9BvKPz7dcQ28psvv9AY\"]},\"src/repermit/RePermitLib.sol\":{\"keccak256\":\"0xae647bd60b6730eb08bbca01c6b6b9a8a610ac8015943879b330fce4c26c7bd3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a9bad3638e093877d949c56c95acedbbdc39e5d098bc4df501c1ec4c88604c1e\",\"dweb:/ipfs/QmWxLsuWM44cxoh4Zq3WAFVDP5iiQok51Fn4aTYo7nQX1s\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.20+commit.a1b79de6"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"uint256","name":"resolvedAmountOut","type":"uint256"},{"internalType":"struct CosignedOrder","name":"co","type":"tuple","components":[{"internalType":"struct Order","name":"order","type":"tuple","components":[{"internalType":"address","name":"reactor","type":"address"},{"internalType":"address","name":"executor","type":"address"},{"internalType":"struct Exchange","name":"exchange","type":"tuple","components":[{"internalType":"address","name":"adapter","type":"address"},{"internalType":"address","name":"ref","type":"address"},{"internalType":"uint32","name":"share","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}]},{"internalType":"address","name":"swapper","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"chainid","type":"uint256"},{"internalType":"uint32","name":"exclusivity","type":"uint32"},{"internalType":"uint32","name":"epoch","type":"uint32"},{"internalType":"uint32","name":"slippage","type":"uint32"},{"internalType":"uint32","name":"freshness","type":"uint32"},{"internalType":"struct Input","name":"input","type":"tuple","components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"}]},{"internalType":"struct Output","name":"output","type":"tuple","components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}]}]},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"struct Cosignature","name":"cosignatureData","type":"tuple","components":[{"internalType":"address","name":"cosigner","type":"address"},{"internalType":"address","name":"reactor","type":"address"},{"internalType":"uint256","name":"chainid","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"struct CosignedValue","name":"input","type":"tuple","components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint8","name":"decimals","type":"uint8"}]},{"internalType":"struct CosignedValue","name":"output","type":"tuple","components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint8","name":"decimals","type":"uint8"}]}]},{"internalType":"bytes","name":"cosignature","type":"bytes"}]},{"internalType":"struct Execution","name":"x","type":"tuple","components":[{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"struct Output","name":"fee","type":"tuple","components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}]},{"internalType":"bytes","name":"data","type":"bytes"}]}],"stateMutability":"nonpayable","type":"function","name":"delegateSwap"}],"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/","openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin/=lib/openzeppelin-contracts/contracts/"],"optimizer":{"enabled":true,"runs":1000000},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/interface/IExchangeAdapter.sol":"IExchangeAdapter"},"evmVersion":"shanghai","libraries":{}},"sources":{"src/Structs.sol":{"keccak256":"0xb8f5c5a86dd60a9160f14ff7e64868ba50a5d07278d194a107cb298fb665121d","urls":["bzz-raw://278d79b5b0b96e17f5ba16adf6139a1c069a186eacd84ae72e8b029f614c3911","dweb:/ipfs/QmVvHhBbrNXYXJcykbxo2vLWakFiSTkGbtsQw8ZeNkxpe9"],"license":"MIT"},"src/interface/IExchangeAdapter.sol":{"keccak256":"0x94c4298b1d82eb6a685e3f303e70e4a6b6485930fffda002341911cbe6bbec44","urls":["bzz-raw://c8ea380ca0699184ee95fa68983134f65ad8f2170026913fd3553007256ff90c","dweb:/ipfs/QmUVkXi3woVeRAkqwPRYodntbATGD54xzThCJ8unaU9Mkw"],"license":"MIT"},"src/reactor/lib/OrderLib.sol":{"keccak256":"0x9027482831f27a5babbf36b8262131358494e0ab2820e0aaa1e1c2890296e4d2","urls":["bzz-raw://0018d195ad1957861ff1cc890ef4c937f65fd6cd21682a55f1fc823d71bce97e","dweb:/ipfs/QmSSH1fL8u8QgT8zc4yvkDJ4YQE9BvKPz7dcQ28psvv9AY"],"license":"MIT"},"src/repermit/RePermitLib.sol":{"keccak256":"0xae647bd60b6730eb08bbca01c6b6b9a8a610ac8015943879b330fce4c26c7bd3","urls":["bzz-raw://a9bad3638e093877d949c56c95acedbbdc39e5d098bc4df501c1ec4c88604c1e","dweb:/ipfs/QmWxLsuWM44cxoh4Zq3WAFVDP5iiQok51Fn4aTYo7nQX1s"],"license":"MIT"}},"version":1},"id":49}
|