UNPKG

@uniswap/universal-router

Version:

Smart contracts for Universal Router

1 lines 7.29 kB
{"abi":[{"type":"function","name":"execute","inputs":[{"name":"commands","type":"bytes","internalType":"bytes"},{"name":"inputs","type":"bytes[]","internalType":"bytes[]"},{"name":"deadline","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"error","name":"ETHNotAccepted","inputs":[]},{"type":"error","name":"ExecutionFailed","inputs":[{"name":"commandIndex","type":"uint256","internalType":"uint256"},{"name":"message","type":"bytes","internalType":"bytes"}]},{"type":"error","name":"InvalidEthSender","inputs":[]},{"type":"error","name":"LengthMismatch","inputs":[]},{"type":"error","name":"TransactionDeadlinePassed","inputs":[]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"execute(bytes,bytes[],uint256)":"3593564c"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"ETHNotAccepted\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"commandIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"ExecutionFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidEthSender\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LengthMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransactionDeadlinePassed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"commands\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"inputs\",\"type\":\"bytes[]\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"execute\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"execute(bytes,bytes[],uint256)\":{\"params\":{\"commands\":\"A set of concatenated commands, each 1 byte in length\",\"deadline\":\"The deadline by which the transaction must be executed\",\"inputs\":\"An array of byte strings containing abi encoded inputs for each command\"}}},\"version\":1},\"userdoc\":{\"errors\":{\"ETHNotAccepted()\":[{\"notice\":\"Thrown when attempting to send ETH directly to the contract\"}],\"ExecutionFailed(uint256,bytes)\":[{\"notice\":\"Thrown when a required command has failed\"}],\"LengthMismatch()\":[{\"notice\":\"Thrown when attempting to execute commands and an incorrect number of inputs are provided\"}],\"TransactionDeadlinePassed()\":[{\"notice\":\"Thrown when executing commands with an expired deadline\"}]},\"kind\":\"user\",\"methods\":{\"execute(bytes,bytes[],uint256)\":{\"notice\":\"Executes encoded commands along with provided inputs. Reverts if deadline has expired.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IUniversalRouter.sol\":\"IUniversalRouter\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":44444444},\"remappings\":[\":@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/\",\":@openzeppelin/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/\",\":@openzeppelin/contracts/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/contracts/\",\":@uniswap/v2-core/=node_modules/@uniswap/v2-core/\",\":@uniswap/v3-core/=node_modules/@uniswap/v3-core/\",\":@uniswap/v3-periphery/=lib/v3-periphery/\",\":@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/\",\":@uniswap/v4-periphery/=lib/v4-periphery/\",\":ds-test/=lib/solmate/lib/ds-test/src/\",\":erc4626-tests/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-gas-snapshot/=lib/permit2/lib/forge-gas-snapshot/src/\",\":forge-std/=lib/forge-std/src/\",\":hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/\",\":openzeppelin-contracts/=lib/permit2/lib/openzeppelin-contracts/\",\":permit2/=lib/permit2/\",\":solmate/=lib/solmate/\",\":v3-periphery/=lib/v3-periphery/contracts/\",\":v4-core/=lib/v4-periphery/lib/v4-core/src/\",\":v4-periphery/=lib/v4-periphery/\"],\"viaIR\":true},\"sources\":{\"contracts/interfaces/IUniversalRouter.sol\":{\"keccak256\":\"0x2525b52d1edf5df89bfd093c5b933b9e8f65236f44f58096763a6c87a5cafb63\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://5cc0fcfedd6b32586099ee0f6781bb81da99175c65013c06bb6f61a125babb18\",\"dweb:/ipfs/QmcEkSzkjkPpp3YyJZaY232TjuNU4Pw6CSiTWz7sk2Sq5D\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.26+commit.8a97fa7a"},"language":"Solidity","output":{"abi":[{"inputs":[],"type":"error","name":"ETHNotAccepted"},{"inputs":[{"internalType":"uint256","name":"commandIndex","type":"uint256"},{"internalType":"bytes","name":"message","type":"bytes"}],"type":"error","name":"ExecutionFailed"},{"inputs":[],"type":"error","name":"InvalidEthSender"},{"inputs":[],"type":"error","name":"LengthMismatch"},{"inputs":[],"type":"error","name":"TransactionDeadlinePassed"},{"inputs":[{"internalType":"bytes","name":"commands","type":"bytes"},{"internalType":"bytes[]","name":"inputs","type":"bytes[]"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"stateMutability":"payable","type":"function","name":"execute"}],"devdoc":{"kind":"dev","methods":{"execute(bytes,bytes[],uint256)":{"params":{"commands":"A set of concatenated commands, each 1 byte in length","deadline":"The deadline by which the transaction must be executed","inputs":"An array of byte strings containing abi encoded inputs for each command"}}},"version":1},"userdoc":{"kind":"user","methods":{"execute(bytes,bytes[],uint256)":{"notice":"Executes encoded commands along with provided inputs. Reverts if deadline has expired."}},"version":1}},"settings":{"remappings":["@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/","@openzeppelin/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/","@openzeppelin/contracts/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/contracts/","@uniswap/v2-core/=node_modules/@uniswap/v2-core/","@uniswap/v3-core/=node_modules/@uniswap/v3-core/","@uniswap/v3-periphery/=lib/v3-periphery/","@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/","@uniswap/v4-periphery/=lib/v4-periphery/","ds-test/=lib/solmate/lib/ds-test/src/","erc4626-tests/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/","forge-gas-snapshot/=lib/permit2/lib/forge-gas-snapshot/src/","forge-std/=lib/forge-std/src/","hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/","openzeppelin-contracts/=lib/permit2/lib/openzeppelin-contracts/","permit2/=lib/permit2/","solmate/=lib/solmate/","v3-periphery/=lib/v3-periphery/contracts/","v4-core/=lib/v4-periphery/lib/v4-core/src/","v4-periphery/=lib/v4-periphery/"],"optimizer":{"enabled":true,"runs":44444444},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"contracts/interfaces/IUniversalRouter.sol":"IUniversalRouter"},"evmVersion":"cancun","libraries":{},"viaIR":true},"sources":{"contracts/interfaces/IUniversalRouter.sol":{"keccak256":"0x2525b52d1edf5df89bfd093c5b933b9e8f65236f44f58096763a6c87a5cafb63","urls":["bzz-raw://5cc0fcfedd6b32586099ee0f6781bb81da99175c65013c06bb6f61a125babb18","dweb:/ipfs/QmcEkSzkjkPpp3YyJZaY232TjuNU4Pw6CSiTWz7sk2Sq5D"],"license":"GPL-3.0-or-later"}},"version":1},"id":4}