UNPKG

@uniswap/v4-periphery

Version:

🦄 Peripheral smart contracts for interacting with Uniswap v4

1 lines • 9.61 kB
{"abi":[{"type":"function","name":"deploy","inputs":[{"name":"bytecode","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"updateBestAddress","inputs":[{"name":"salt","type":"bytes32","internalType":"bytes32"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"NewAddressFound","inputs":[{"name":"bestAddress","type":"address","indexed":true,"internalType":"address"},{"name":"submitter","type":"address","indexed":true,"internalType":"address"},{"name":"score","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"error","name":"CompetitionNotOver","inputs":[{"name":"currentTime","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"}]},{"type":"error","name":"CompetitionOver","inputs":[{"name":"currentTime","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"}]},{"type":"error","name":"InvalidBytecode","inputs":[]},{"type":"error","name":"InvalidSender","inputs":[{"name":"salt","type":"bytes32","internalType":"bytes32"},{"name":"sender","type":"address","internalType":"address"}]},{"type":"error","name":"NotAllowedToDeploy","inputs":[{"name":"sender","type":"address","internalType":"address"},{"name":"deployer","type":"address","internalType":"address"}]},{"type":"error","name":"WorseAddress","inputs":[{"name":"newAddress","type":"address","internalType":"address"},{"name":"bestAddress","type":"address","internalType":"address"},{"name":"newScore","type":"uint256","internalType":"uint256"},{"name":"bestScore","type":"uint256","internalType":"uint256"}]}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"deploy(bytes)":"00774360","updateBestAddress(bytes32)":"fd3989f5"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"currentTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"CompetitionNotOver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"currentTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"CompetitionOver\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidBytecode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"}],\"name\":\"NotAllowedToDeploy\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"bestAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"newScore\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bestScore\",\"type\":\"uint256\"}],\"name\":\"WorseAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"bestAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"submitter\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"score\",\"type\":\"uint256\"}],\"name\":\"NewAddressFound\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"bytecode\",\"type\":\"bytes\"}],\"name\":\"deploy\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"updateBestAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"deploy(bytes)\":{\"details\":\"The bytecode must match the initCodeHash\",\"params\":{\"bytecode\":\"The bytecode of the Uniswap v4 PoolManager contract\"}},\"updateBestAddress(bytes32)\":{\"details\":\"The first 20 bytes of the salt must be either address(0) or msg.sender\",\"params\":{\"salt\":\"The salt to use to compute the new address with CREATE2\"}}},\"title\":\"IUniswapV4DeployerCompetition\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"deploy(bytes)\":{\"notice\":\"deploys the Uniswap v4 PoolManager contract\"},\"updateBestAddress(bytes32)\":{\"notice\":\"Updates the best address if the new address has a better vanity score\"}},\"notice\":\"Interface for the UniswapV4DeployerCompetition contract\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/interfaces/IUniswapV4DeployerCompetition.sol\":\"IUniswapV4DeployerCompetition\"},\"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/\"],\"viaIR\":true},\"sources\":{\"src/interfaces/IUniswapV4DeployerCompetition.sol\":{\"keccak256\":\"0xa1d0a1b4dacfdb56ff47314cc021c0b649bccb56d58c471d73d02635c0f096c4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://328343cd44e09d46f602f47e5500dce8200da580c255c7cd434f03a033428f1c\",\"dweb:/ipfs/QmeDjPzqSQepkEpGtV4ofwUrWBytiWw3d8HyAUTyV6eUki\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.26+commit.8a97fa7a"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"uint256","name":"currentTime","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"type":"error","name":"CompetitionNotOver"},{"inputs":[{"internalType":"uint256","name":"currentTime","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"type":"error","name":"CompetitionOver"},{"inputs":[],"type":"error","name":"InvalidBytecode"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"address","name":"sender","type":"address"}],"type":"error","name":"InvalidSender"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"deployer","type":"address"}],"type":"error","name":"NotAllowedToDeploy"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"},{"internalType":"address","name":"bestAddress","type":"address"},{"internalType":"uint256","name":"newScore","type":"uint256"},{"internalType":"uint256","name":"bestScore","type":"uint256"}],"type":"error","name":"WorseAddress"},{"inputs":[{"internalType":"address","name":"bestAddress","type":"address","indexed":true},{"internalType":"address","name":"submitter","type":"address","indexed":true},{"internalType":"uint256","name":"score","type":"uint256","indexed":false}],"type":"event","name":"NewAddressFound","anonymous":false},{"inputs":[{"internalType":"bytes","name":"bytecode","type":"bytes"}],"stateMutability":"nonpayable","type":"function","name":"deploy"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"}],"stateMutability":"nonpayable","type":"function","name":"updateBestAddress"}],"devdoc":{"kind":"dev","methods":{"deploy(bytes)":{"details":"The bytecode must match the initCodeHash","params":{"bytecode":"The bytecode of the Uniswap v4 PoolManager contract"}},"updateBestAddress(bytes32)":{"details":"The first 20 bytes of the salt must be either address(0) or msg.sender","params":{"salt":"The salt to use to compute the new address with CREATE2"}}},"version":1},"userdoc":{"kind":"user","methods":{"deploy(bytes)":{"notice":"deploys the Uniswap v4 PoolManager contract"},"updateBestAddress(bytes32)":{"notice":"Updates the best address if the new address has a better vanity score"}},"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/interfaces/IUniswapV4DeployerCompetition.sol":"IUniswapV4DeployerCompetition"},"evmVersion":"cancun","libraries":{},"viaIR":true},"sources":{"src/interfaces/IUniswapV4DeployerCompetition.sol":{"keccak256":"0xa1d0a1b4dacfdb56ff47314cc021c0b649bccb56d58c471d73d02635c0f096c4","urls":["bzz-raw://328343cd44e09d46f602f47e5500dce8200da580c255c7cd434f03a033428f1c","dweb:/ipfs/QmeDjPzqSQepkEpGtV4ofwUrWBytiWw3d8HyAUTyV6eUki"],"license":"MIT"}},"version":1},"id":121}