UNPKG

@uniswap/v4-periphery

Version:

🦄 Peripheral smart contracts for interacting with Uniswap v4

1 lines • 8.86 kB
{"abi":[{"type":"constructor","inputs":[{"name":"name","type":"string","internalType":"string"}],"stateMutability":"nonpayable"},{"type":"function","name":"DOMAIN_SEPARATOR","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"}],"bytecode":{"object":"0x60e060405234801561000f575f80fd5b506040516102ba3803806102ba83398101604081905261002e916100bc565b8051602082012060c0524660a05261009f60c051604080517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8666020820152908101919091524660608201523060808201525f9060a00160405160208183030381529060405280519060200120905090565b6080525061016c565b634e487b7160e01b5f52604160045260245ffd5b5f602082840312156100cc575f80fd5b81516001600160401b038111156100e1575f80fd5b8201601f810184136100f1575f80fd5b80516001600160401b0381111561010a5761010a6100a8565b604051601f8201601f19908116603f011681016001600160401b0381118282101715610138576101386100a8565b60405281815282820160200186101561014f575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b60805160a05160c0516101276101935f395f609e01525f604a01525f60f801526101275ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c80633644e5151461002d575b5f80fd5b610035610047565b60405190815260200160405180910390f35b5f7f000000000000000000000000000000000000000000000000000000000000000046146100f5576100f0604080517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86660208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091524660608201523060808201525f9060a00160405160208183030381529060405280519060200120905090565b905090565b507f00000000000000000000000000000000000000000000000000000000000000009056fea164736f6c634300081a000a","sourceMap":"649:2045:142:-:0;;;1162:189;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1219:22;;;;;;1204:37;;1271:13;1252:32;;1321:23;1839:12;;1816:66;;;1075:80;1816:66;;;1317:25:262;1358:18;;;1351:34;;;;1853:13:142;1401:18:262;;;1394:34;1876:4:142;1444:18:262;;;1437:60;1780:7:142;;1289:19:262;;1816:66:142;;;;;;;;;;;;1806:77;;;;;;1799:84;;1725:165;;1321:23;1294:50;;-1:-1:-1;649:2045:142;;14:127:262;75:10;70:3;66:20;63:1;56:31;106:4;103:1;96:15;130:4;127:1;120:15;146:935;226:6;279:2;267:9;258:7;254:23;250:32;247:52;;;295:1;292;285:12;247:52;322:16;;-1:-1:-1;;;;;350:30:262;;347:50;;;393:1;390;383:12;347:50;416:22;;469:4;461:13;;457:27;-1:-1:-1;447:55:262;;498:1;495;488:12;447:55;525:9;;-1:-1:-1;;;;;546:30:262;;543:56;;;579:18;;:::i;:::-;628:2;622:9;720:2;682:17;;-1:-1:-1;;678:31:262;;;711:2;674:40;670:54;658:67;;-1:-1:-1;;;;;740:34:262;;776:22;;;737:62;734:88;;;802:18;;:::i;:::-;838:2;831:22;862;;;903:15;;;920:2;899:24;896:37;-1:-1:-1;893:57:262;;;946:1;943;936:12;893:57;995:6;990:2;986;982:11;977:2;969:6;965:15;959:43;1048:1;1022:19;;;1043:2;1018:28;1011:39;;;;1026:6;146:935;-1:-1:-1;;;;146:935:262:o;1086:417::-;649:2045:142;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x608060405234801561000f575f80fd5b5060043610610029575f3560e01c80633644e5151461002d575b5f80fd5b610035610047565b60405190815260200160405180910390f35b5f7f000000000000000000000000000000000000000000000000000000000000000046146100f5576100f0604080517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86660208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091524660608201523060808201525f9060a00160405160208183030381529060405280519060200120905090565b905090565b507f00000000000000000000000000000000000000000000000000000000000000009056fea164736f6c634300081a000a","sourceMap":"649:2045:142:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1388:241;;;:::i;:::-;;;160:25:262;;;148:2;133:18;1388:241:142;;;;;;;;1437:7;1553:16;1536:13;:33;:86;;1599:23;1816:66;;;1075:80;1816:66;;;427:25:262;1839:12:142;468:18:262;;;461:34;;;;1853:13:142;511:18:262;;;504:34;1876:4:142;554:18:262;;;547:83;1780:7:142;;399:19:262;;1816:66:142;;;;;;;;;;;;1806:77;;;;;;1799:84;;1725:165;;1599:23;1529:93;;1388:241;:::o;1536:86::-;-1:-1:-1;1572:24:142;;1388:241::o","linkReferences":{},"immutableReferences":{"65760":[{"start":248,"length":32}],"65762":[{"start":74,"length":32}],"65764":[{"start":158,"length":32}]}},"methodIdentifiers":{"DOMAIN_SEPARATOR()":"3644e515"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Maintains cross-chain replay protection in the event of a forkShould not be delegatecall'd because DOMAIN_SEPARATOR returns the cached hash and does not recompute with the delegatecallers addressReference: https://github.com/Uniswap/permit2/blob/3f17e8db813189a03950dc7fc8382524a095c053/src/EIP712.solReference: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/7bd2b2aaf68c21277097166a9a51eb72ae239b34/contracts/utils/cryptography/EIP712.sol\",\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"returns\":{\"_0\":\"bytes32 The domain separator\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"notice\":\"Returns the domain separator for the current chain.\"}},\"notice\":\"Generic EIP712 implementation\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/base/EIP712_v4.sol\":\"EIP712_v4\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":44444444},\"remappings\":[\":@ensdomains/=lib/v4-core/node_modules/@ensdomains/\",\":@openzeppelin/=lib/v4-core/lib/openzeppelin-contracts/\",\":@uniswap/v4-core/=lib/v4-core/\",\":ds-test/=lib/v4-core/lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-gas-snapshot/=lib/permit2/lib/forge-gas-snapshot/src/\",\":forge-std/=lib/v4-core/lib/forge-std/src/\",\":hardhat/=lib/v4-core/node_modules/hardhat/\",\":openzeppelin-contracts/=lib/v4-core/lib/openzeppelin-contracts/\",\":permit2/=lib/permit2/\",\":solmate/=lib/v4-core/lib/solmate/\",\":v4-core/=lib/v4-core/src/\"]},\"sources\":{\"src/base/EIP712_v4.sol\":{\"keccak256\":\"0x151e85890822c1b0fe85ec3c021826cb42f615e2b9d6fcdd79019681a6ee5588\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c5df84221ba4fe59c8223e94bec954b7f7602d4ad81d2f0c046a67c21c1d24be\",\"dweb:/ipfs/QmbTUqqHxRxEDyrMPApozbC6DEYMZGa27dWu3KodNACiLy\"]},\"src/interfaces/IEIP712_v4.sol\":{\"keccak256\":\"0xd7f7115476e307a0bfc32a0f0a0f5434e9e5ca62a6c5af1e18b75e48161bb408\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b1600b953556da38a7adc5ad2a2925ec5fb138fecf8eec48743646543195b736\",\"dweb:/ipfs/QmarZi2aiLVAfHXgnDWV1cCFiZk2DdPW7KJnWHqzuRChJR\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.26+commit.8a97fa7a"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"stateMutability":"view","type":"function","name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}]}],"devdoc":{"kind":"dev","methods":{"DOMAIN_SEPARATOR()":{"returns":{"_0":"bytes32 The domain separator"}}},"version":1},"userdoc":{"kind":"user","methods":{"DOMAIN_SEPARATOR()":{"notice":"Returns the domain separator for the current chain."}},"version":1}},"settings":{"remappings":["@ensdomains/=lib/v4-core/node_modules/@ensdomains/","@openzeppelin/=lib/v4-core/lib/openzeppelin-contracts/","@uniswap/v4-core/=lib/v4-core/","ds-test/=lib/v4-core/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/","forge-gas-snapshot/=lib/permit2/lib/forge-gas-snapshot/src/","forge-std/=lib/v4-core/lib/forge-std/src/","hardhat/=lib/v4-core/node_modules/hardhat/","openzeppelin-contracts/=lib/v4-core/lib/openzeppelin-contracts/","permit2/=lib/permit2/","solmate/=lib/v4-core/lib/solmate/","v4-core/=lib/v4-core/src/"],"optimizer":{"enabled":true,"runs":44444444},"metadata":{"bytecodeHash":"none"},"compilationTarget":{"src/base/EIP712_v4.sol":"EIP712_v4"},"evmVersion":"cancun","libraries":{}},"sources":{"src/base/EIP712_v4.sol":{"keccak256":"0x151e85890822c1b0fe85ec3c021826cb42f615e2b9d6fcdd79019681a6ee5588","urls":["bzz-raw://c5df84221ba4fe59c8223e94bec954b7f7602d4ad81d2f0c046a67c21c1d24be","dweb:/ipfs/QmbTUqqHxRxEDyrMPApozbC6DEYMZGa27dWu3KodNACiLy"],"license":"MIT"},"src/interfaces/IEIP712_v4.sol":{"keccak256":"0xd7f7115476e307a0bfc32a0f0a0f5434e9e5ca62a6c5af1e18b75e48161bb408","urls":["bzz-raw://b1600b953556da38a7adc5ad2a2925ec5fb138fecf8eec48743646543195b736","dweb:/ipfs/QmarZi2aiLVAfHXgnDWV1cCFiZk2DdPW7KJnWHqzuRChJR"],"license":"MIT"}},"version":1},"id":37}