@justin-gee/uniswap-tokamak-hardhat-v3-deploy
Version:
Hardhat plugin for Uniswap V3 solc ver 0.8 deployment
79 lines (78 loc) • 8.47 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "UniswapV3PoolSwapTest",
"sourceName": "contracts/test/UniswapV3PoolSwapTest.sol",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "pool",
"type": "address"
},
{
"internalType": "bool",
"name": "zeroForOne",
"type": "bool"
},
{
"internalType": "int256",
"name": "amountSpecified",
"type": "int256"
},
{
"internalType": "uint160",
"name": "sqrtPriceLimitX96",
"type": "uint160"
}
],
"name": "getSwapResult",
"outputs": [
{
"internalType": "int256",
"name": "amount0Delta",
"type": "int256"
},
{
"internalType": "int256",
"name": "amount1Delta",
"type": "int256"
},
{
"internalType": "uint160",
"name": "nextSqrtRatio",
"type": "uint160"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "int256",
"name": "amount0Delta",
"type": "int256"
},
{
"internalType": "int256",
"name": "amount1Delta",
"type": "int256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "uniswapV3SwapCallback",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50610680806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80637f2ba7bc1461003b578063fa461e3314610076575b600080fd5b61004e6100493660046103c5565b61008b565b6040805193845260208401929092526001600160a01b03169082015260600160405180910390f35b610089610084366004610418565b6101b4565b005b6000806000866001600160a01b031663128acb086000888888336040516020016100c491906001600160a01b0391909116815260200190565b6040516020818303038152906040526040518663ffffffff1660e01b81526004016100f3959493929190610498565b60408051808303816000875af1158015610111573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101359190610512565b8093508194505050866001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa15801561017b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019f919061054d565b50979c969b5093995094975050505050505050565b60006101c2828401846105ec565b905060008513156102b057336001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801561020b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022f9190610610565b6040516323b872dd60e01b81526001600160a01b0383811660048301523360248301526044820188905291909116906323b872dd906064016020604051808303816000875af1158015610286573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102aa919061062d565b50610398565b600084131561039857336001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031b9190610610565b6040516323b872dd60e01b81526001600160a01b0383811660048301523360248301526044820187905291909116906323b872dd906064016020604051808303816000875af1158015610372573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610396919061062d565b505b5050505050565b6001600160a01b03811681146103b457600080fd5b50565b80151581146103b457600080fd5b600080600080608085870312156103db57600080fd5b84356103e68161039f565b935060208501356103f6816103b7565b925060408501359150606085013561040d8161039f565b939692955090935050565b6000806000806060858703121561042e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561045457600080fd5b818701915087601f83011261046857600080fd5b81358181111561047757600080fd5b88602082850101111561048957600080fd5b95989497505060200194505050565b600060018060a01b038088168352602087151581850152866040850152818616606085015260a06080850152845191508160a085015260005b828110156104ed5785810182015185820160c0015281016104d1565b5050600060c0828501015260c0601f19601f8301168401019150509695505050505050565b6000806040838503121561052557600080fd5b505080516020909101519092909150565b805161ffff8116811461054857600080fd5b919050565b600080600080600080600060e0888a03121561056857600080fd5b87516105738161039f565b8097505060208801518060020b811461058b57600080fd5b955061059960408901610536565b94506105a760608901610536565b93506105b560808901610536565b925060a088015160ff811681146105cb57600080fd5b60c08901519092506105dc816103b7565b8091505092959891949750929550565b6000602082840312156105fe57600080fd5b81356106098161039f565b9392505050565b60006020828403121561062257600080fd5b81516106098161039f565b60006020828403121561063f57600080fd5b8151610609816103b756fea264697066735822122045a1e71fc87110f1452258ffc504c4a9c618d5361cfea664a744dba1a18cf9fe64736f6c63430008110033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80637f2ba7bc1461003b578063fa461e3314610076575b600080fd5b61004e6100493660046103c5565b61008b565b6040805193845260208401929092526001600160a01b03169082015260600160405180910390f35b610089610084366004610418565b6101b4565b005b6000806000866001600160a01b031663128acb086000888888336040516020016100c491906001600160a01b0391909116815260200190565b6040516020818303038152906040526040518663ffffffff1660e01b81526004016100f3959493929190610498565b60408051808303816000875af1158015610111573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101359190610512565b8093508194505050866001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa15801561017b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019f919061054d565b50979c969b5093995094975050505050505050565b60006101c2828401846105ec565b905060008513156102b057336001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801561020b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022f9190610610565b6040516323b872dd60e01b81526001600160a01b0383811660048301523360248301526044820188905291909116906323b872dd906064016020604051808303816000875af1158015610286573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102aa919061062d565b50610398565b600084131561039857336001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031b9190610610565b6040516323b872dd60e01b81526001600160a01b0383811660048301523360248301526044820187905291909116906323b872dd906064016020604051808303816000875af1158015610372573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610396919061062d565b505b5050505050565b6001600160a01b03811681146103b457600080fd5b50565b80151581146103b457600080fd5b600080600080608085870312156103db57600080fd5b84356103e68161039f565b935060208501356103f6816103b7565b925060408501359150606085013561040d8161039f565b939692955090935050565b6000806000806060858703121561042e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561045457600080fd5b818701915087601f83011261046857600080fd5b81358181111561047757600080fd5b88602082850101111561048957600080fd5b95989497505060200194505050565b600060018060a01b038088168352602087151581850152866040850152818616606085015260a06080850152845191508160a085015260005b828110156104ed5785810182015185820160c0015281016104d1565b5050600060c0828501015260c0601f19601f8301168401019150509695505050505050565b6000806040838503121561052557600080fd5b505080516020909101519092909150565b805161ffff8116811461054857600080fd5b919050565b600080600080600080600060e0888a03121561056857600080fd5b87516105738161039f565b8097505060208801518060020b811461058b57600080fd5b955061059960408901610536565b94506105a760608901610536565b93506105b560808901610536565b925060a088015160ff811681146105cb57600080fd5b60c08901519092506105dc816103b7565b8091505092959891949750929550565b6000602082840312156105fe57600080fd5b81356106098161039f565b9392505050565b60006020828403121561062257600080fd5b81516106098161039f565b60006020828403121561063f57600080fd5b8151610609816103b756fea264697066735822122045a1e71fc87110f1452258ffc504c4a9c618d5361cfea664a744dba1a18cf9fe64736f6c63430008110033",
"linkReferences": {},
"deployedLinkReferences": {}
}