New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@valueswap/v2-core

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@valueswap/v2-core - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

build/Migrations.json

505

build/ERC20.json
{
"_format": "hh-sol-artifact-1",
"contractName": "ERC20",
"sourceName": "contracts/test/ERC20.sol",
"abi": [

@@ -355,6 +353,499 @@ {

],
"bytecode": "0x608060405234801561001057600080fd5b50604051610d1a380380610d1a8339818101604052602081101561003357600080fd5b50516040514690806052610cc88239604080519182900360520182208282018252600c83526b2b30b63ab2b9bbb0b8102b1960a11b6020938401528151808301835260018152603160f81b908401528151808401919091527f19c4a77517fd66407a36fee63f0eb3eeb401145d45beaea91c8c60744e13ddc5818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c0909401905282519201919091206003555061011833826001600160e01b0361011e16565b5061021e565b610137816000546101c060201b6109f41790919060201c565b60009081556001600160a01b0383168152600160209081526040909120546101689183906109f46101c0821b17901c565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b80820182811015610218576040805162461bcd60e51b815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b92915050565b610a9b8061022d6000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80633644e5151161008c57806395d89b411161006657806395d89b411461029f578063a9059cbb146102a7578063d505accf146102e0578063dd62ed3e14610340576100df565b80633644e5151461023157806370a08231146102395780637ecebe001461026c576100df565b806323b872dd116100bd57806323b872dd146101c857806330adf81f1461020b578063313ce56714610213576100df565b806306fdde03146100e4578063095ea7b31461016157806318160ddd146101ae575b600080fd5b6100ec61037b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012657818101518382015260200161010e565b50505050905090810190601f1680156101535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61019a6004803603604081101561017757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356103b4565b604080519115158252519081900360200190f35b6101b66103cb565b60408051918252519081900360200190f35b61019a600480360360608110156101de57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356103d1565b6101b66104b0565b61021b6104d4565b6040805160ff9092168252519081900360200190f35b6101b66104d9565b6101b66004803603602081101561024f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104df565b6101b66004803603602081101561028257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104f1565b6100ec610503565b61019a600480360360408110156102bd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561053c565b61033e600480360360e08110156102f657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610549565b005b6101b66004803603604081101561035657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610815565b6040518060400160405280600c81526020017f56616c756573776170205632000000000000000000000000000000000000000081525081565b60006103c1338484610832565b5060015b92915050565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1461049b5773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610469908363ffffffff6108a116565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b6104a6848484610913565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60016020526000908152604090205481565b60046020526000908152604090205481565b6040518060400160405280600781526020017f564e54572d56320000000000000000000000000000000000000000000000000081525081565b60006103c1338484610913565b428410156105b857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f56616c75657377617056323a2045585049524544000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015610719573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81161580159061079457508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b6107ff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f56616c75657377617056323a20494e56414c49445f5349474e41545552450000604482015290519081900360640190fd5b61080a898989610832565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b808203828111156103c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054610949908263ffffffff6108a116565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260016020526040808220939093559084168152205461098b908263ffffffff6109f416565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b808201828110156103c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfea265627a7a72315820870e873f693188944d5383449f2c80eb2ca07ff9cf3db057497acb0044ea666c64736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100df5760003560e01c80633644e5151161008c57806395d89b411161006657806395d89b411461029f578063a9059cbb146102a7578063d505accf146102e0578063dd62ed3e14610340576100df565b80633644e5151461023157806370a08231146102395780637ecebe001461026c576100df565b806323b872dd116100bd57806323b872dd146101c857806330adf81f1461020b578063313ce56714610213576100df565b806306fdde03146100e4578063095ea7b31461016157806318160ddd146101ae575b600080fd5b6100ec61037b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012657818101518382015260200161010e565b50505050905090810190601f1680156101535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61019a6004803603604081101561017757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356103b4565b604080519115158252519081900360200190f35b6101b66103cb565b60408051918252519081900360200190f35b61019a600480360360608110156101de57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356103d1565b6101b66104b0565b61021b6104d4565b6040805160ff9092168252519081900360200190f35b6101b66104d9565b6101b66004803603602081101561024f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104df565b6101b66004803603602081101561028257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104f1565b6100ec610503565b61019a600480360360408110156102bd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561053c565b61033e600480360360e08110156102f657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610549565b005b6101b66004803603604081101561035657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610815565b6040518060400160405280600c81526020017f56616c756573776170205632000000000000000000000000000000000000000081525081565b60006103c1338484610832565b5060015b92915050565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1461049b5773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610469908363ffffffff6108a116565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b6104a6848484610913565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60016020526000908152604090205481565b60046020526000908152604090205481565b6040518060400160405280600781526020017f564e54572d56320000000000000000000000000000000000000000000000000081525081565b60006103c1338484610913565b428410156105b857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f56616c75657377617056323a2045585049524544000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015610719573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81161580159061079457508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b6107ff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f56616c75657377617056323a20494e56414c49445f5349474e41545552450000604482015290519081900360640190fd5b61080a898989610832565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b808203828111156103c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054610949908263ffffffff6108a116565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260016020526040808220939093559084168152205461098b908263ffffffff6109f416565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b808201828110156103c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfea265627a7a72315820870e873f693188944d5383449f2c80eb2ca07ff9cf3db057497acb0044ea666c64736f6c63430005100032",
"linkReferences": {},
"deployedLinkReferences": {}
}
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_totalSupply\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"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\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"./contracts/test/ERC20.sol\":\"ERC20\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"./contracts/ValueswapV2ERC20.sol\":{\"keccak256\":\"0xe616624cfeaeb5311f7f0eab598a26de110a0fbda15f275f1965fcfb97b04b49\",\"urls\":[\"bzz-raw://b4e4bf089b5dc29c34bd0e9691e466f6241a066fdc321305903c9a6c4262ca86\",\"dweb:/ipfs/QmWdcra2Uz3U5qbCMLJ8wUN5SZ7rD5s4xkQ1hduHUNeL5h\"]},\"./contracts/interfaces/IValueswapV2ERC20.sol\":{\"keccak256\":\"0xe9ea84484219e3698be9ab0635b8c38d42c237a46092c0425de56ad02dddf54e\",\"urls\":[\"bzz-raw://85db01c43d9c69c3267641381f0b9c596bb0917ab9eb9df92d7be71ae323d4ee\",\"dweb:/ipfs/QmXMs4dJu3mUysjsvkPLsEazB5znCCGYdH9m4i4vUiwkai\"]},\"./contracts/libraries/SafeMath.sol\":{\"keccak256\":\"0x9c8465de751317860b623cd77f7f53f41a84b6624c0580ee526dcf7a2b7cb80c\",\"urls\":[\"bzz-raw://9b371b3eb0649b486f76cd628cc060354d1ac11fa8baed1170567271655f05d7\",\"dweb:/ipfs/QmTUg31wK9UyX6o1Q1mxE4DQhuc1rWGBanNTu1uagNVQB6\"]},\"./contracts/test/ERC20.sol\":{\"keccak256\":\"0x32144a920b7d6a4b675a89b9f0adf4b3820cf085352fbc44bb70ba231e88c91b\",\"urls\":[\"bzz-raw://5a1bd3ecd9d0ac7e0e51a0244890585c2d8b2f7af604c3b367130bb6546ae1b5\",\"dweb:/ipfs/QmZNj8hugRwPTeafbLZqQofw2Me61Jain9i7HADtqUaq9c\"]}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b50604051610d1a380380610d1a8339818101604052602081101561003357600080fd5b50516040514690806052610cc88239604080519182900360520182208282018252600c83526b2b30b63ab2b9bbb0b8102b1960a11b6020938401528151808301835260018152603160f81b908401528151808401919091527f19c4a77517fd66407a36fee63f0eb3eeb401145d45beaea91c8c60744e13ddc5818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c0909401905282519201919091206003555061011833826001600160e01b0361011e16565b5061021e565b610137816000546101c060201b6109f41790919060201c565b60009081556001600160a01b0383168152600160209081526040909120546101689183906109f46101c0821b17901c565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b80820182811015610218576040805162461bcd60e51b815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b92915050565b610a9b8061022d6000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80633644e5151161008c57806395d89b411161006657806395d89b411461029f578063a9059cbb146102a7578063d505accf146102e0578063dd62ed3e14610340576100df565b80633644e5151461023157806370a08231146102395780637ecebe001461026c576100df565b806323b872dd116100bd57806323b872dd146101c857806330adf81f1461020b578063313ce56714610213576100df565b806306fdde03146100e4578063095ea7b31461016157806318160ddd146101ae575b600080fd5b6100ec61037b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012657818101518382015260200161010e565b50505050905090810190601f1680156101535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61019a6004803603604081101561017757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356103b4565b604080519115158252519081900360200190f35b6101b66103cb565b60408051918252519081900360200190f35b61019a600480360360608110156101de57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356103d1565b6101b66104b0565b61021b6104d4565b6040805160ff9092168252519081900360200190f35b6101b66104d9565b6101b66004803603602081101561024f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104df565b6101b66004803603602081101561028257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104f1565b6100ec610503565b61019a600480360360408110156102bd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561053c565b61033e600480360360e08110156102f657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610549565b005b6101b66004803603604081101561035657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610815565b6040518060400160405280600c81526020017f56616c756573776170205632000000000000000000000000000000000000000081525081565b60006103c1338484610832565b5060015b92915050565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1461049b5773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610469908363ffffffff6108a116565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b6104a6848484610913565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60016020526000908152604090205481565b60046020526000908152604090205481565b6040518060400160405280600781526020017f564e54572d56320000000000000000000000000000000000000000000000000081525081565b60006103c1338484610913565b428410156105b857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f56616c75657377617056323a2045585049524544000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015610719573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81161580159061079457508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b6107ff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f56616c75657377617056323a20494e56414c49445f5349474e41545552450000604482015290519081900360640190fd5b61080a898989610832565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b808203828111156103c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054610949908263ffffffff6108a116565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260016020526040808220939093559084168152205461098b908263ffffffff6109f416565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b808201828110156103c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfea265627a7a72315820cb4c45534eae114de16fa1edd61756cadb6476e3af424b74cb909ababe11edb064736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100df5760003560e01c80633644e5151161008c57806395d89b411161006657806395d89b411461029f578063a9059cbb146102a7578063d505accf146102e0578063dd62ed3e14610340576100df565b80633644e5151461023157806370a08231146102395780637ecebe001461026c576100df565b806323b872dd116100bd57806323b872dd146101c857806330adf81f1461020b578063313ce56714610213576100df565b806306fdde03146100e4578063095ea7b31461016157806318160ddd146101ae575b600080fd5b6100ec61037b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012657818101518382015260200161010e565b50505050905090810190601f1680156101535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61019a6004803603604081101561017757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356103b4565b604080519115158252519081900360200190f35b6101b66103cb565b60408051918252519081900360200190f35b61019a600480360360608110156101de57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356103d1565b6101b66104b0565b61021b6104d4565b6040805160ff9092168252519081900360200190f35b6101b66104d9565b6101b66004803603602081101561024f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104df565b6101b66004803603602081101561028257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104f1565b6100ec610503565b61019a600480360360408110156102bd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561053c565b61033e600480360360e08110156102f657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610549565b005b6101b66004803603604081101561035657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610815565b6040518060400160405280600c81526020017f56616c756573776170205632000000000000000000000000000000000000000081525081565b60006103c1338484610832565b5060015b92915050565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1461049b5773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610469908363ffffffff6108a116565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b6104a6848484610913565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60016020526000908152604090205481565b60046020526000908152604090205481565b6040518060400160405280600781526020017f564e54572d56320000000000000000000000000000000000000000000000000081525081565b60006103c1338484610913565b428410156105b857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f56616c75657377617056323a2045585049524544000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015610719573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81161580159061079457508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b6107ff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f56616c75657377617056323a20494e56414c49445f5349474e41545552450000604482015290519081900360640190fd5b61080a898989610832565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b808203828111156103c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054610949908263ffffffff6108a116565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260016020526040808220939093559084168152205461098b908263ffffffff6109f416565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b808201828110156103c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfea265627a7a72315820cb4c45534eae114de16fa1edd61756cadb6476e3af424b74cb909ababe11edb064736f6c63430005100032",
"sourceMap": "61:129:12:-;;;102:86;8:9:-1;5:2;;;30:1;27;20:12;5:2;102:86:12;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;102:86:12;1111:95:1;;1015:7;;1111:95;;;;;;;;;;;;;;;;1240:4;;;;;;;;-1:-1:-1;;;1240:4:1;;;;;1274:10;;;;;;;;;;-1:-1:-1;;;1274:10:1;;;;1083:272;;;;;;;;;1224:22;1083:272;;;;1264:21;1083:272;;;;;;;;;;;1336:4;1083:272;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;1083:272:1;;;;;;1060:305;;;;;;;;1041:16;:324;-1:-1:-1;150:31:12;156:10;168:12;-1:-1:-1;;;;;150:5:12;:31;:::i;:::-;102:86;61:129;;1378:197:1;1450:22;1466:5;1450:11;;:15;;;;;;:22;;;;:::i;:::-;1436:11;:36;;;-1:-1:-1;;;;;1498:13:1;;;;:9;:13;;;;;;;;;:24;;1516:5;;1498:17;;;;;:24;;:::i;:::-;-1:-1:-1;;;;;1482:13:1;;;;;;:9;:13;;;;;;;;:40;;;;1537:31;;;;;;;1482:13;;;;1537:31;;;;;;;;;;1378:197;;:::o;155:126:10:-;238:5;;;233:16;;;;225:49;;;;;-1:-1:-1;;;225:49:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;155:126;;;;:::o;61:129:12:-;;;;;;;",
"deployedSourceMap": "61:129:12:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;61:129:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;190:44:1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;190:44:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2186:144;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2186:144:1;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;328:24;;;:::i;:::-;;;;;;;;;;;;;;;;2478:295;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2478:295:1;;;;;;;;;;;;;;;;;;:::i;614:108::-;;;:::i;287:35::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;473:31;;;:::i;358:41::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;358:41:1;;;;:::i;728:38::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;728:38:1;;;;:::i;240:41::-;;;:::i;2336:136::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2336:136:1;;;;;;;;;:::i;2779:666::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;2779:666:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;405:61;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;405:61:1;;;;;;;;;;;:::i;190:44::-;;;;;;;;;;;;;;;;;;;:::o;2186:144::-;2250:4;2266:36;2275:10;2287:7;2296:5;2266:8;:36::i;:::-;-1:-1:-1;2319:4:1;2186:144;;;;;:::o;328:24::-;;;;:::o;2478:295::-;2576:15;;;2556:4;2576:15;;;:9;:15;;;;;;;;2592:10;2576:27;;;;;;;;2612:2;2576:39;2572:138;;2661:15;;;;;;;:9;:15;;;;;;;;2677:10;2661:27;;;;;;;;:38;;2693:5;2661:38;:31;:38;:::i;:::-;2631:15;;;;;;;:9;:15;;;;;;;;2647:10;2631:27;;;;;;;:68;2572:138;2719:26;2729:4;2735:2;2739:5;2719:9;:26::i;:::-;-1:-1:-1;2762:4:1;2478:295;;;;;:::o;614:108::-;656:66;614:108;:::o;287:35::-;320:2;287:35;:::o;473:31::-;;;;:::o;358:41::-;;;;;;;;;;;;;:::o;728:38::-;;;;;;;;;;;;;:::o;240:41::-;;;;;;;;;;;;;;;;;;;:::o;2336:136::-;2396:4;2412:32;2422:10;2434:2;2438:5;2412:9;:32::i;2779:666::-;2924:15;2912:8;:27;;2904:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3076:16;;3171:13;;;;2974:14;3171:13;;;:6;:13;;;;;;;;:15;;;;;;;;;3120:77;;656:66;3120:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;3120:77:1;;;;;3110:88;;;;;;3014:198;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;3014:198:1;;;;;;2991:231;;;;;;;;;3259:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2974:14;;3171:15;3259:26;;;;;-1:-1:-1;3259:26:1;;;;;;;;;;3171:15;3259:26;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;3259:26:1;;;;;;-1:-1:-1;;3303:30:1;;;;;;;:59;;;3357:5;3337:25;;:16;:25;;;3303:59;3295:102;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3407:31;3416:5;3423:7;3432:5;3407:8;:31::i;:::-;2779:666;;;;;;;;;:::o;405:61::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;1792:166::-;1872:16;;;;;;;;:9;:16;;;;;;;;:25;;;;;;;;;;;;;:33;;;1920:31;;;;;;;;;;;;;;;;;1792:166;;;:::o;287:127:10:-;370:5;;;365:16;;;;357:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1964:216:1;2057:15;;;;;;;:9;:15;;;;;;:26;;2077:5;2057:26;:19;:26;:::i;:::-;2039:15;;;;;;;;:9;:15;;;;;;:44;;;;2109:13;;;;;;;:24;;2127:5;2109:24;:17;:24;:::i;:::-;2093:13;;;;;;;;:9;:13;;;;;;;;;:40;;;;2148:25;;;;;;;2093:13;;2148:25;;;;;;;;;;;;;1964:216;;;:::o;155:126:10:-;238:5;;;233:16;;;;225:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"source": "pragma solidity =0.5.16;\n\nimport '../ValueswapV2ERC20.sol';\n\ncontract ERC20 is ValueswapV2ERC20 {\n constructor(uint _totalSupply) public {\n _mint(msg.sender, _totalSupply);\n }\n}\n",
"sourcePath": "./contracts/test/ERC20.sol",
"ast": {
"absolutePath": "./contracts/test/ERC20.sol",
"exportedSymbols": {
"ERC20": [
2385
]
},
"id": 2386,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2369,
"literals": [
"solidity",
"=",
"0.5",
".16"
],
"nodeType": "PragmaDirective",
"src": "0:24:12"
},
{
"absolutePath": "./contracts/ValueswapV2ERC20.sol",
"file": "../ValueswapV2ERC20.sol",
"id": 2370,
"nodeType": "ImportDirective",
"scope": 2386,
"sourceUnit": 418,
"src": "26:33:12",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 2371,
"name": "ValueswapV2ERC20",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 417,
"src": "79:16:12",
"typeDescriptions": {
"typeIdentifier": "t_contract$_ValueswapV2ERC20_$417",
"typeString": "contract ValueswapV2ERC20"
}
},
"id": 2372,
"nodeType": "InheritanceSpecifier",
"src": "79:16:12"
}
],
"contractDependencies": [
417,
1869
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 2385,
"linearizedBaseContracts": [
2385,
417,
1869
],
"name": "ERC20",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 2383,
"nodeType": "Block",
"src": "140:48:12",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 2378,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2400,
"src": "156:3:12",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 2379,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "156:10:12",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
{
"argumentTypes": null,
"id": 2380,
"name": "_totalSupply",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2374,
"src": "168:12:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 2377,
"name": "_mint",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 154,
"src": "150:5:12",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
"typeString": "function (address,uint256)"
}
},
"id": 2381,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "150:31:12",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 2382,
"nodeType": "ExpressionStatement",
"src": "150:31:12"
}
]
},
"documentation": null,
"id": 2384,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2375,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2374,
"name": "_totalSupply",
"nodeType": "VariableDeclaration",
"scope": 2384,
"src": "114:17:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2373,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "114:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "113:19:12"
},
"returnParameters": {
"id": 2376,
"nodeType": "ParameterList",
"parameters": [],
"src": "140:0:12"
},
"scope": 2385,
"src": "102:86:12",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 2386,
"src": "61:129:12"
}
],
"src": "0:191:12"
},
"legacyAST": {
"attributes": {
"absolutePath": "./contracts/test/ERC20.sol",
"exportedSymbols": {
"ERC20": [
2385
]
}
},
"children": [
{
"attributes": {
"literals": [
"solidity",
"=",
"0.5",
".16"
]
},
"id": 2369,
"name": "PragmaDirective",
"src": "0:24:12"
},
{
"attributes": {
"SourceUnit": 418,
"absolutePath": "./contracts/ValueswapV2ERC20.sol",
"file": "../ValueswapV2ERC20.sol",
"scope": 2386,
"symbolAliases": [
null
],
"unitAlias": ""
},
"id": 2370,
"name": "ImportDirective",
"src": "26:33:12"
},
{
"attributes": {
"contractDependencies": [
417,
1869
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts": [
2385,
417,
1869
],
"name": "ERC20",
"scope": 2386
},
"children": [
{
"attributes": {
"arguments": null
},
"children": [
{
"attributes": {
"contractScope": null,
"name": "ValueswapV2ERC20",
"referencedDeclaration": 417,
"type": "contract ValueswapV2ERC20"
},
"id": 2371,
"name": "UserDefinedTypeName",
"src": "79:16:12"
}
],
"id": 2372,
"name": "InheritanceSpecifier",
"src": "79:16:12"
},
{
"attributes": {
"documentation": null,
"implemented": true,
"isConstructor": true,
"kind": "constructor",
"modifiers": [
null
],
"name": "",
"scope": 2385,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "_totalSupply",
"scope": 2384,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 2373,
"name": "ElementaryTypeName",
"src": "114:4:12"
}
],
"id": 2374,
"name": "VariableDeclaration",
"src": "114:17:12"
}
],
"id": 2375,
"name": "ParameterList",
"src": "113:19:12"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 2376,
"name": "ParameterList",
"src": "140:0:12"
},
{
"children": [
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"isStructConstructorCall": false,
"lValueRequested": false,
"names": [
null
],
"type": "tuple()",
"type_conversion": false
},
"children": [
{
"attributes": {
"argumentTypes": [
{
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"overloadedDeclarations": [
null
],
"referencedDeclaration": 154,
"type": "function (address,uint256)",
"value": "_mint"
},
"id": 2377,
"name": "Identifier",
"src": "150:5:12"
},
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"member_name": "sender",
"referencedDeclaration": null,
"type": "address payable"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 2400,
"type": "msg",
"value": "msg"
},
"id": 2378,
"name": "Identifier",
"src": "156:3:12"
}
],
"id": 2379,
"name": "MemberAccess",
"src": "156:10:12"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 2374,
"type": "uint256",
"value": "_totalSupply"
},
"id": 2380,
"name": "Identifier",
"src": "168:12:12"
}
],
"id": 2381,
"name": "FunctionCall",
"src": "150:31:12"
}
],
"id": 2382,
"name": "ExpressionStatement",
"src": "150:31:12"
}
],
"id": 2383,
"name": "Block",
"src": "140:48:12"
}
],
"id": 2384,
"name": "FunctionDefinition",
"src": "102:86:12"
}
],
"id": 2385,
"name": "ContractDefinition",
"src": "61:129:12"
}
],
"id": 2386,
"name": "SourceUnit",
"src": "0:191:12"
},
"compiler": {
"name": "solc",
"version": "0.5.16+commit.9c3226ce.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.3.3",
"updatedAt": "2020-12-27T05:44:55.121Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}
{
"_format": "hh-sol-artifact-1",
"contractName": "IValueswapV2Callee",
"sourceName": "contracts/interfaces/IValueswapV2Callee.sol",
"abi": [

@@ -37,6 +35,392 @@ {

],
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"valueswapV2Call\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"./contracts/interfaces/IValueswapV2Callee.sol\":\"IValueswapV2Callee\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"./contracts/interfaces/IValueswapV2Callee.sol\":{\"keccak256\":\"0x6ae31ab548230a0da52d5478beb1759507c55d9be5bbb3393dd84f769c796781\",\"urls\":[\"bzz-raw://f94793e529f221f55f6eb94ea18c28a7dc4c393c16a036efbe292eb83fd00d89\",\"dweb:/ipfs/QmbbBRZV73opEXQHrW8txVHNCXCrXM2f6eLnB6qTGGXKFi\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity >=0.5.0;\n\ninterface IValueswapV2Callee {\n function valueswapV2Call(address sender, uint amount0, uint amount1, bytes calldata data) external;\n}\n",
"sourcePath": "./contracts/interfaces/IValueswapV2Callee.sol",
"ast": {
"absolutePath": "./contracts/interfaces/IValueswapV2Callee.sol",
"exportedSymbols": {
"IValueswapV2Callee": [
1751
]
},
"id": 1752,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1739,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:24:5"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 1751,
"linearizedBaseContracts": [
1751
],
"name": "IValueswapV2Callee",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 1750,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "valueswapV2Call",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1748,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1741,
"name": "sender",
"nodeType": "VariableDeclaration",
"scope": 1750,
"src": "86:14:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1740,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "86:7:5",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1743,
"name": "amount0",
"nodeType": "VariableDeclaration",
"scope": 1750,
"src": "102:12:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1742,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "102:4:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1745,
"name": "amount1",
"nodeType": "VariableDeclaration",
"scope": 1750,
"src": "116:12:5",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1744,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "116:4:5",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1747,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 1750,
"src": "130:19:5",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1746,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "130:5:5",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "85:65:5"
},
"returnParameters": {
"id": 1749,
"nodeType": "ParameterList",
"parameters": [],
"src": "159:0:5"
},
"scope": 1751,
"src": "61:99:5",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 1752,
"src": "26:136:5"
}
],
"src": "0:163:5"
},
"legacyAST": {
"attributes": {
"absolutePath": "./contracts/interfaces/IValueswapV2Callee.sol",
"exportedSymbols": {
"IValueswapV2Callee": [
1751
]
}
},
"children": [
{
"attributes": {
"literals": [
"solidity",
">=",
"0.5",
".0"
]
},
"id": 1739,
"name": "PragmaDirective",
"src": "0:24:5"
},
{
"attributes": {
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"linearizedBaseContracts": [
1751
],
"name": "IValueswapV2Callee",
"scope": 1752
},
"children": [
{
"attributes": {
"body": null,
"documentation": null,
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "valueswapV2Call",
"scope": 1751,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "sender",
"scope": 1750,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1740,
"name": "ElementaryTypeName",
"src": "86:7:5"
}
],
"id": 1741,
"name": "VariableDeclaration",
"src": "86:14:5"
},
{
"attributes": {
"constant": false,
"name": "amount0",
"scope": 1750,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 1742,
"name": "ElementaryTypeName",
"src": "102:4:5"
}
],
"id": 1743,
"name": "VariableDeclaration",
"src": "102:12:5"
},
{
"attributes": {
"constant": false,
"name": "amount1",
"scope": 1750,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 1744,
"name": "ElementaryTypeName",
"src": "116:4:5"
}
],
"id": 1745,
"name": "VariableDeclaration",
"src": "116:12:5"
},
{
"attributes": {
"constant": false,
"name": "data",
"scope": 1750,
"stateVariable": false,
"storageLocation": "calldata",
"type": "bytes",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bytes",
"type": "bytes"
},
"id": 1746,
"name": "ElementaryTypeName",
"src": "130:5:5"
}
],
"id": 1747,
"name": "VariableDeclaration",
"src": "130:19:5"
}
],
"id": 1748,
"name": "ParameterList",
"src": "85:65:5"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 1749,
"name": "ParameterList",
"src": "159:0:5"
}
],
"id": 1750,
"name": "FunctionDefinition",
"src": "61:99:5"
}
],
"id": 1751,
"name": "ContractDefinition",
"src": "26:136:5"
}
],
"id": 1752,
"name": "SourceUnit",
"src": "0:163:5"
},
"compiler": {
"name": "solc",
"version": "0.5.16+commit.9c3226ce.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.3.3",
"updatedAt": "2020-12-27T05:44:55.114Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}
{
"_format": "hh-sol-artifact-1",
"contractName": "IValueswapV2Factory",
"sourceName": "contracts/interfaces/IValueswapV2Factory.sol",
"abi": [

@@ -39,14 +37,8 @@ {

"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "allPairs",
"inputs": [],
"name": "feeTo",
"outputs": [
{
"internalType": "address",
"name": "pair",
"name": "",
"type": "address"

@@ -62,8 +54,8 @@ }

"inputs": [],
"name": "allPairsLength",
"name": "feeToSetter",
"outputs": [
{
"internalType": "uint256",
"internalType": "address",
"name": "",
"type": "uint256"
"type": "address"
}

@@ -76,3 +68,3 @@ ],

{
"constant": false,
"constant": true,
"inputs": [

@@ -90,3 +82,3 @@ {

],
"name": "createPair",
"name": "getPair",
"outputs": [

@@ -100,3 +92,3 @@ {

"payable": false,
"stateMutability": "nonpayable",
"stateMutability": "view",
"type": "function"

@@ -106,8 +98,14 @@ },

"constant": true,
"inputs": [],
"name": "feeTo",
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "allPairs",
"outputs": [
{
"internalType": "address",
"name": "",
"name": "pair",
"type": "address"

@@ -123,8 +121,8 @@ }

"inputs": [],
"name": "feeToSetter",
"name": "allPairsLength",
"outputs": [
{
"internalType": "address",
"internalType": "uint256",
"name": "",
"type": "address"
"type": "uint256"
}

@@ -137,3 +135,3 @@ ],

{
"constant": true,
"constant": false,
"inputs": [

@@ -151,3 +149,3 @@ {

],
"name": "getPair",
"name": "createPair",
"outputs": [

@@ -161,3 +159,3 @@ {

"payable": false,
"stateMutability": "view",
"stateMutability": "nonpayable",
"type": "function"

@@ -196,6 +194,1603 @@ },

],
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"PairCreated\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"allPairs\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"allPairsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"createPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeToSetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"getPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setFeeTo\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setFeeToSetter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"./contracts/interfaces/IValueswapV2Factory.sol\":\"IValueswapV2Factory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"./contracts/interfaces/IValueswapV2Factory.sol\":{\"keccak256\":\"0xb460a829a001f806a64896c88b0094dfc6f0673e4511028258e901e5bf100fcc\",\"urls\":[\"bzz-raw://0c5d49debe3da0e52d459238afb9c9170c0c57b7985fb10ac08b501251095775\",\"dweb:/ipfs/QmdZBtyUdxSwN1wy99GhQHUBexQbQaPbaYWjqmjkLmHos7\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity >=0.5.0;\n\ninterface IValueswapV2Factory {\n event PairCreated(address indexed token0, address indexed token1, address pair, uint);\n\n function feeTo() external view returns (address);\n function feeToSetter() external view returns (address);\n\n function getPair(address tokenA, address tokenB) external view returns (address pair);\n function allPairs(uint) external view returns (address pair);\n function allPairsLength() external view returns (uint);\n\n function createPair(address tokenA, address tokenB) external returns (address pair);\n\n function setFeeTo(address) external;\n function setFeeToSetter(address) external;\n}\n",
"sourcePath": "./contracts/interfaces/IValueswapV2Factory.sol",
"ast": {
"absolutePath": "./contracts/interfaces/IValueswapV2Factory.sol",
"exportedSymbols": {
"IValueswapV2Factory": [
1932
]
},
"id": 1933,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1871,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:24:7"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 1932,
"linearizedBaseContracts": [
1932
],
"name": "IValueswapV2Factory",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 1881,
"name": "PairCreated",
"nodeType": "EventDefinition",
"parameters": {
"id": 1880,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1873,
"indexed": true,
"name": "token0",
"nodeType": "VariableDeclaration",
"scope": 1881,
"src": "80:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1872,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "80:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1875,
"indexed": true,
"name": "token1",
"nodeType": "VariableDeclaration",
"scope": 1881,
"src": "104:22:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1874,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "104:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1877,
"indexed": false,
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 1881,
"src": "128:12:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1876,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "128:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1879,
"indexed": false,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1881,
"src": "142:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1878,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "142:4:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "79:68:7"
},
"src": "62:86:7"
},
{
"body": null,
"documentation": null,
"id": 1886,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "feeTo",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1882,
"nodeType": "ParameterList",
"parameters": [],
"src": "168:2:7"
},
"returnParameters": {
"id": 1885,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1884,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1886,
"src": "194:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1883,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "194:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "193:9:7"
},
"scope": 1932,
"src": "154:49:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1891,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "feeToSetter",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1887,
"nodeType": "ParameterList",
"parameters": [],
"src": "228:2:7"
},
"returnParameters": {
"id": 1890,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1889,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1891,
"src": "254:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1888,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "254:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "253:9:7"
},
"scope": 1932,
"src": "208:55:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1900,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPair",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1896,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1893,
"name": "tokenA",
"nodeType": "VariableDeclaration",
"scope": 1900,
"src": "286:14:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1892,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "286:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1895,
"name": "tokenB",
"nodeType": "VariableDeclaration",
"scope": 1900,
"src": "302:14:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1894,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "302:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "285:32:7"
},
"returnParameters": {
"id": 1899,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1898,
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 1900,
"src": "341:12:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1897,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "341:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "340:14:7"
},
"scope": 1932,
"src": "269:86:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1907,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allPairs",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1903,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1902,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1907,
"src": "378:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1901,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "378:4:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "377:6:7"
},
"returnParameters": {
"id": 1906,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1905,
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 1907,
"src": "407:12:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1904,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "407:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "406:14:7"
},
"scope": 1932,
"src": "360:61:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1912,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allPairsLength",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1908,
"nodeType": "ParameterList",
"parameters": [],
"src": "449:2:7"
},
"returnParameters": {
"id": 1911,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1910,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1912,
"src": "475:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1909,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "475:4:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "474:6:7"
},
"scope": 1932,
"src": "426:55:7",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1921,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "createPair",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1917,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1914,
"name": "tokenA",
"nodeType": "VariableDeclaration",
"scope": 1921,
"src": "507:14:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1913,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "507:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1916,
"name": "tokenB",
"nodeType": "VariableDeclaration",
"scope": 1921,
"src": "523:14:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1915,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "523:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "506:32:7"
},
"returnParameters": {
"id": 1920,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1919,
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 1921,
"src": "557:12:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1918,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "557:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "556:14:7"
},
"scope": 1932,
"src": "487:84:7",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1926,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setFeeTo",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1924,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1923,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1926,
"src": "595:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1922,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "595:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "594:9:7"
},
"returnParameters": {
"id": 1925,
"nodeType": "ParameterList",
"parameters": [],
"src": "612:0:7"
},
"scope": 1932,
"src": "577:36:7",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 1931,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setFeeToSetter",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1929,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1928,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1931,
"src": "642:7:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1927,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "642:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "641:9:7"
},
"returnParameters": {
"id": 1930,
"nodeType": "ParameterList",
"parameters": [],
"src": "659:0:7"
},
"scope": 1932,
"src": "618:42:7",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 1933,
"src": "26:636:7"
}
],
"src": "0:663:7"
},
"legacyAST": {
"attributes": {
"absolutePath": "./contracts/interfaces/IValueswapV2Factory.sol",
"exportedSymbols": {
"IValueswapV2Factory": [
1932
]
}
},
"children": [
{
"attributes": {
"literals": [
"solidity",
">=",
"0.5",
".0"
]
},
"id": 1871,
"name": "PragmaDirective",
"src": "0:24:7"
},
{
"attributes": {
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"linearizedBaseContracts": [
1932
],
"name": "IValueswapV2Factory",
"scope": 1933
},
"children": [
{
"attributes": {
"anonymous": false,
"documentation": null,
"name": "PairCreated"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"indexed": true,
"name": "token0",
"scope": 1881,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1872,
"name": "ElementaryTypeName",
"src": "80:7:7"
}
],
"id": 1873,
"name": "VariableDeclaration",
"src": "80:22:7"
},
{
"attributes": {
"constant": false,
"indexed": true,
"name": "token1",
"scope": 1881,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1874,
"name": "ElementaryTypeName",
"src": "104:7:7"
}
],
"id": 1875,
"name": "VariableDeclaration",
"src": "104:22:7"
},
{
"attributes": {
"constant": false,
"indexed": false,
"name": "pair",
"scope": 1881,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1876,
"name": "ElementaryTypeName",
"src": "128:7:7"
}
],
"id": 1877,
"name": "VariableDeclaration",
"src": "128:12:7"
},
{
"attributes": {
"constant": false,
"indexed": false,
"name": "",
"scope": 1881,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 1878,
"name": "ElementaryTypeName",
"src": "142:4:7"
}
],
"id": 1879,
"name": "VariableDeclaration",
"src": "142:4:7"
}
],
"id": 1880,
"name": "ParameterList",
"src": "79:68:7"
}
],
"id": 1881,
"name": "EventDefinition",
"src": "62:86:7"
},
{
"attributes": {
"body": null,
"documentation": null,
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "feeTo",
"scope": 1932,
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 1882,
"name": "ParameterList",
"src": "168:2:7"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 1886,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1883,
"name": "ElementaryTypeName",
"src": "194:7:7"
}
],
"id": 1884,
"name": "VariableDeclaration",
"src": "194:7:7"
}
],
"id": 1885,
"name": "ParameterList",
"src": "193:9:7"
}
],
"id": 1886,
"name": "FunctionDefinition",
"src": "154:49:7"
},
{
"attributes": {
"body": null,
"documentation": null,
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "feeToSetter",
"scope": 1932,
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 1887,
"name": "ParameterList",
"src": "228:2:7"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 1891,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1888,
"name": "ElementaryTypeName",
"src": "254:7:7"
}
],
"id": 1889,
"name": "VariableDeclaration",
"src": "254:7:7"
}
],
"id": 1890,
"name": "ParameterList",
"src": "253:9:7"
}
],
"id": 1891,
"name": "FunctionDefinition",
"src": "208:55:7"
},
{
"attributes": {
"body": null,
"documentation": null,
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "getPair",
"scope": 1932,
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "tokenA",
"scope": 1900,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1892,
"name": "ElementaryTypeName",
"src": "286:7:7"
}
],
"id": 1893,
"name": "VariableDeclaration",
"src": "286:14:7"
},
{
"attributes": {
"constant": false,
"name": "tokenB",
"scope": 1900,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1894,
"name": "ElementaryTypeName",
"src": "302:7:7"
}
],
"id": 1895,
"name": "VariableDeclaration",
"src": "302:14:7"
}
],
"id": 1896,
"name": "ParameterList",
"src": "285:32:7"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "pair",
"scope": 1900,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1897,
"name": "ElementaryTypeName",
"src": "341:7:7"
}
],
"id": 1898,
"name": "VariableDeclaration",
"src": "341:12:7"
}
],
"id": 1899,
"name": "ParameterList",
"src": "340:14:7"
}
],
"id": 1900,
"name": "FunctionDefinition",
"src": "269:86:7"
},
{
"attributes": {
"body": null,
"documentation": null,
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "allPairs",
"scope": 1932,
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 1907,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 1901,
"name": "ElementaryTypeName",
"src": "378:4:7"
}
],
"id": 1902,
"name": "VariableDeclaration",
"src": "378:4:7"
}
],
"id": 1903,
"name": "ParameterList",
"src": "377:6:7"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "pair",
"scope": 1907,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1904,
"name": "ElementaryTypeName",
"src": "407:7:7"
}
],
"id": 1905,
"name": "VariableDeclaration",
"src": "407:12:7"
}
],
"id": 1906,
"name": "ParameterList",
"src": "406:14:7"
}
],
"id": 1907,
"name": "FunctionDefinition",
"src": "360:61:7"
},
{
"attributes": {
"body": null,
"documentation": null,
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "allPairsLength",
"scope": 1932,
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 1908,
"name": "ParameterList",
"src": "449:2:7"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 1912,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 1909,
"name": "ElementaryTypeName",
"src": "475:4:7"
}
],
"id": 1910,
"name": "VariableDeclaration",
"src": "475:4:7"
}
],
"id": 1911,
"name": "ParameterList",
"src": "474:6:7"
}
],
"id": 1912,
"name": "FunctionDefinition",
"src": "426:55:7"
},
{
"attributes": {
"body": null,
"documentation": null,
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "createPair",
"scope": 1932,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "tokenA",
"scope": 1921,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1913,
"name": "ElementaryTypeName",
"src": "507:7:7"
}
],
"id": 1914,
"name": "VariableDeclaration",
"src": "507:14:7"
},
{
"attributes": {
"constant": false,
"name": "tokenB",
"scope": 1921,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1915,
"name": "ElementaryTypeName",
"src": "523:7:7"
}
],
"id": 1916,
"name": "VariableDeclaration",
"src": "523:14:7"
}
],
"id": 1917,
"name": "ParameterList",
"src": "506:32:7"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "pair",
"scope": 1921,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1918,
"name": "ElementaryTypeName",
"src": "557:7:7"
}
],
"id": 1919,
"name": "VariableDeclaration",
"src": "557:12:7"
}
],
"id": 1920,
"name": "ParameterList",
"src": "556:14:7"
}
],
"id": 1921,
"name": "FunctionDefinition",
"src": "487:84:7"
},
{
"attributes": {
"body": null,
"documentation": null,
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "setFeeTo",
"scope": 1932,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 1926,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1922,
"name": "ElementaryTypeName",
"src": "595:7:7"
}
],
"id": 1923,
"name": "VariableDeclaration",
"src": "595:7:7"
}
],
"id": 1924,
"name": "ParameterList",
"src": "594:9:7"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 1925,
"name": "ParameterList",
"src": "612:0:7"
}
],
"id": 1926,
"name": "FunctionDefinition",
"src": "577:36:7"
},
{
"attributes": {
"body": null,
"documentation": null,
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "setFeeToSetter",
"scope": 1932,
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "",
"scope": 1931,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 1927,
"name": "ElementaryTypeName",
"src": "642:7:7"
}
],
"id": 1928,
"name": "VariableDeclaration",
"src": "642:7:7"
}
],
"id": 1929,
"name": "ParameterList",
"src": "641:9:7"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 1930,
"name": "ParameterList",
"src": "659:0:7"
}
],
"id": 1931,
"name": "FunctionDefinition",
"src": "618:42:7"
}
],
"id": 1932,
"name": "ContractDefinition",
"src": "26:636:7"
}
],
"id": 1933,
"name": "SourceUnit",
"src": "0:663:7"
},
"compiler": {
"name": "solc",
"version": "0.5.16+commit.9c3226ce.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.3.3",
"updatedAt": "2020-12-27T05:44:55.115Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}
{
"_format": "hh-sol-artifact-1",
"contractName": "UQ112x112",
"sourceName": "contracts/libraries/UQ112x112.sol",
"abi": [],
"bytecode": "0x60556023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a72315820adc890e3417037fd6b504badd4dc00fd6c078dc343b4ad17f1bb8a673d0fbf0a64736f6c63430005100032",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a72315820adc890e3417037fd6b504badd4dc00fd6c078dc343b4ad17f1bb8a673d0fbf0a64736f6c63430005100032",
"linkReferences": {},
"deployedLinkReferences": {}
}
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"./contracts/libraries/UQ112x112.sol\":\"UQ112x112\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"./contracts/libraries/UQ112x112.sol\":{\"keccak256\":\"0x2240694530251ab376ae468d0a2d3ee8b3109e56f2acadbc203cdf341506dd31\",\"urls\":[\"bzz-raw://56f55c411faa2924df0915ff77129b9d8c64d3e4d28554e7234f3774ac95958a\",\"dweb:/ipfs/QmYrzUurXL8ijzS8EnLtQTVD7fKPReosg2DsEPXXCY7ec3\"]}},\"version\":1}",
"bytecode": "0x60556023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a7231582085b25ba714e601a27462bfac2a01ed213a85b43c2cafab0e37353d53da3ba7d264736f6c63430005100032",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a7231582085b25ba714e601a27462bfac2a01ed213a85b43c2cafab0e37353d53da3ba7d264736f6c63430005100032",
"sourceMap": "183:394:11:-;;132:2:-1;166:7;155:9;146:7;137:37;255:7;249:14;246:1;241:23;235:4;232:33;222:2;;269:9;222:2;293:9;290:1;283:20;323:4;314:7;306:22;347:7;338;331:24",
"deployedSourceMap": "183:394:11:-;;;;;;;;",
"source": "pragma solidity =0.5.16;\n\n// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))\n\n// range: [0, 2**112 - 1]\n// resolution: 1 / 2**112\n\nlibrary UQ112x112 {\n uint224 constant Q112 = 2**112;\n\n // encode a uint112 as a UQ112x112\n function encode(uint112 y) internal pure returns (uint224 z) {\n z = uint224(y) * Q112; // never overflows\n }\n\n // divide a UQ112x112 by a uint112, returning a UQ112x112\n function uqdiv(uint224 x, uint112 y) internal pure returns (uint224 z) {\n z = x / uint224(y);\n }\n}\n",
"sourcePath": "./contracts/libraries/UQ112x112.sol",
"ast": {
"absolutePath": "./contracts/libraries/UQ112x112.sol",
"exportedSymbols": {
"UQ112x112": [
2367
]
},
"id": 2368,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2327,
"literals": [
"solidity",
"=",
"0.5",
".16"
],
"nodeType": "PragmaDirective",
"src": "0:24:11"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "library",
"documentation": null,
"fullyImplemented": true,
"id": 2367,
"linearizedBaseContracts": [
2367
],
"name": "UQ112x112",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": true,
"id": 2332,
"name": "Q112",
"nodeType": "VariableDeclaration",
"scope": 2367,
"src": "207:30:11",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
},
"typeName": {
"id": 2328,
"name": "uint224",
"nodeType": "ElementaryTypeName",
"src": "207:7:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"value": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_rational_5192296858534827628530496329220096_by_1",
"typeString": "int_const 5192...(26 digits omitted)...0096"
},
"id": 2331,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"hexValue": "32",
"id": 2329,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "231:1:11",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_2_by_1",
"typeString": "int_const 2"
},
"value": "2"
},
"nodeType": "BinaryOperation",
"operator": "**",
"rightExpression": {
"argumentTypes": null,
"hexValue": "313132",
"id": 2330,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "234:3:11",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_112_by_1",
"typeString": "int_const 112"
},
"value": "112"
},
"src": "231:6:11",
"typeDescriptions": {
"typeIdentifier": "t_rational_5192296858534827628530496329220096_by_1",
"typeString": "int_const 5192...(26 digits omitted)...0096"
}
},
"visibility": "internal"
},
{
"body": {
"id": 2347,
"nodeType": "Block",
"src": "344:57:11",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2345,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 2339,
"name": "z",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2337,
"src": "354:1:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
},
"id": 2344,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 2341,
"name": "y",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2334,
"src": "366:1:11",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint112",
"typeString": "uint112"
}
],
"id": 2340,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "358:7:11",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint224_$",
"typeString": "type(uint224)"
},
"typeName": "uint224"
},
"id": 2342,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "358:10:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"nodeType": "BinaryOperation",
"operator": "*",
"rightExpression": {
"argumentTypes": null,
"id": 2343,
"name": "Q112",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2332,
"src": "371:4:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"src": "358:17:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"src": "354:21:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"id": 2346,
"nodeType": "ExpressionStatement",
"src": "354:21:11"
}
]
},
"documentation": null,
"id": 2348,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "encode",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2335,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2334,
"name": "y",
"nodeType": "VariableDeclaration",
"scope": 2348,
"src": "299:9:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
},
"typeName": {
"id": 2333,
"name": "uint112",
"nodeType": "ElementaryTypeName",
"src": "299:7:11",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "298:11:11"
},
"returnParameters": {
"id": 2338,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2337,
"name": "z",
"nodeType": "VariableDeclaration",
"scope": 2348,
"src": "333:9:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
},
"typeName": {
"id": 2336,
"name": "uint224",
"nodeType": "ElementaryTypeName",
"src": "333:7:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "332:11:11"
},
"scope": 2367,
"src": "283:118:11",
"stateMutability": "pure",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 2365,
"nodeType": "Block",
"src": "540:35:11",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2363,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 2357,
"name": "z",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2355,
"src": "550:1:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
},
"id": 2362,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 2358,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2350,
"src": "554:1:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"nodeType": "BinaryOperation",
"operator": "/",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 2360,
"name": "y",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2352,
"src": "566:1:11",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint112",
"typeString": "uint112"
}
],
"id": 2359,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "558:7:11",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_uint224_$",
"typeString": "type(uint224)"
},
"typeName": "uint224"
},
"id": 2361,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "558:10:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"src": "554:14:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"src": "550:18:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"id": 2364,
"nodeType": "ExpressionStatement",
"src": "550:18:11"
}
]
},
"documentation": null,
"id": 2366,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "uqdiv",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2353,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2350,
"name": "x",
"nodeType": "VariableDeclaration",
"scope": 2366,
"src": "484:9:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
},
"typeName": {
"id": 2349,
"name": "uint224",
"nodeType": "ElementaryTypeName",
"src": "484:7:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2352,
"name": "y",
"nodeType": "VariableDeclaration",
"scope": 2366,
"src": "495:9:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
},
"typeName": {
"id": 2351,
"name": "uint112",
"nodeType": "ElementaryTypeName",
"src": "495:7:11",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "483:22:11"
},
"returnParameters": {
"id": 2356,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2355,
"name": "z",
"nodeType": "VariableDeclaration",
"scope": 2366,
"src": "529:9:11",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
},
"typeName": {
"id": 2354,
"name": "uint224",
"nodeType": "ElementaryTypeName",
"src": "529:7:11",
"typeDescriptions": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "528:11:11"
},
"scope": 2367,
"src": "469:106:11",
"stateMutability": "pure",
"superFunction": null,
"visibility": "internal"
}
],
"scope": 2368,
"src": "183:394:11"
}
],
"src": "0:578:11"
},
"legacyAST": {
"attributes": {
"absolutePath": "./contracts/libraries/UQ112x112.sol",
"exportedSymbols": {
"UQ112x112": [
2367
]
}
},
"children": [
{
"attributes": {
"literals": [
"solidity",
"=",
"0.5",
".16"
]
},
"id": 2327,
"name": "PragmaDirective",
"src": "0:24:11"
},
{
"attributes": {
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "library",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts": [
2367
],
"name": "UQ112x112",
"scope": 2368
},
"children": [
{
"attributes": {
"constant": true,
"name": "Q112",
"scope": 2367,
"stateVariable": true,
"storageLocation": "default",
"type": "uint224",
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint224",
"type": "uint224"
},
"id": 2328,
"name": "ElementaryTypeName",
"src": "207:7:11"
},
{
"attributes": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_rational_5192296858534827628530496329220096_by_1",
"typeString": "int_const 5192...(26 digits omitted)...0096"
},
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"operator": "**",
"type": "int_const 5192...(26 digits omitted)...0096"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"hexvalue": "32",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 2",
"value": "2"
},
"id": 2329,
"name": "Literal",
"src": "231:1:11"
},
{
"attributes": {
"argumentTypes": null,
"hexvalue": "313132",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"subdenomination": null,
"token": "number",
"type": "int_const 112",
"value": "112"
},
"id": 2330,
"name": "Literal",
"src": "234:3:11"
}
],
"id": 2331,
"name": "BinaryOperation",
"src": "231:6:11"
}
],
"id": 2332,
"name": "VariableDeclaration",
"src": "207:30:11"
},
{
"attributes": {
"documentation": null,
"implemented": true,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "encode",
"scope": 2367,
"stateMutability": "pure",
"superFunction": null,
"visibility": "internal"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "y",
"scope": 2348,
"stateVariable": false,
"storageLocation": "default",
"type": "uint112",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint112",
"type": "uint112"
},
"id": 2333,
"name": "ElementaryTypeName",
"src": "299:7:11"
}
],
"id": 2334,
"name": "VariableDeclaration",
"src": "299:9:11"
}
],
"id": 2335,
"name": "ParameterList",
"src": "298:11:11"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "z",
"scope": 2348,
"stateVariable": false,
"storageLocation": "default",
"type": "uint224",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint224",
"type": "uint224"
},
"id": 2336,
"name": "ElementaryTypeName",
"src": "333:7:11"
}
],
"id": 2337,
"name": "VariableDeclaration",
"src": "333:9:11"
}
],
"id": 2338,
"name": "ParameterList",
"src": "332:11:11"
},
{
"children": [
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "uint224"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 2337,
"type": "uint224",
"value": "z"
},
"id": 2339,
"name": "Identifier",
"src": "354:1:11"
},
{
"attributes": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
},
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "*",
"type": "uint224"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"isStructConstructorCall": false,
"lValueRequested": false,
"names": [
null
],
"type": "uint224",
"type_conversion": true
},
"children": [
{
"attributes": {
"argumentTypes": [
{
"typeIdentifier": "t_uint112",
"typeString": "uint112"
}
],
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"type": "type(uint224)",
"value": "uint224"
},
"id": 2340,
"name": "ElementaryTypeNameExpression",
"src": "358:7:11"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 2334,
"type": "uint112",
"value": "y"
},
"id": 2341,
"name": "Identifier",
"src": "366:1:11"
}
],
"id": 2342,
"name": "FunctionCall",
"src": "358:10:11"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 2332,
"type": "uint224",
"value": "Q112"
},
"id": 2343,
"name": "Identifier",
"src": "371:4:11"
}
],
"id": 2344,
"name": "BinaryOperation",
"src": "358:17:11"
}
],
"id": 2345,
"name": "Assignment",
"src": "354:21:11"
}
],
"id": 2346,
"name": "ExpressionStatement",
"src": "354:21:11"
}
],
"id": 2347,
"name": "Block",
"src": "344:57:11"
}
],
"id": 2348,
"name": "FunctionDefinition",
"src": "283:118:11"
},
{
"attributes": {
"documentation": null,
"implemented": true,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "uqdiv",
"scope": 2367,
"stateMutability": "pure",
"superFunction": null,
"visibility": "internal"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"name": "x",
"scope": 2366,
"stateVariable": false,
"storageLocation": "default",
"type": "uint224",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint224",
"type": "uint224"
},
"id": 2349,
"name": "ElementaryTypeName",
"src": "484:7:11"
}
],
"id": 2350,
"name": "VariableDeclaration",
"src": "484:9:11"
},
{
"attributes": {
"constant": false,
"name": "y",
"scope": 2366,
"stateVariable": false,
"storageLocation": "default",
"type": "uint112",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint112",
"type": "uint112"
},
"id": 2351,
"name": "ElementaryTypeName",
"src": "495:7:11"
}
],
"id": 2352,
"name": "VariableDeclaration",
"src": "495:9:11"
}
],
"id": 2353,
"name": "ParameterList",
"src": "483:22:11"
},
{
"children": [
{
"attributes": {
"constant": false,
"name": "z",
"scope": 2366,
"stateVariable": false,
"storageLocation": "default",
"type": "uint224",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint224",
"type": "uint224"
},
"id": 2354,
"name": "ElementaryTypeName",
"src": "529:7:11"
}
],
"id": 2355,
"name": "VariableDeclaration",
"src": "529:9:11"
}
],
"id": 2356,
"name": "ParameterList",
"src": "528:11:11"
},
{
"children": [
{
"children": [
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "=",
"type": "uint224"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 2355,
"type": "uint224",
"value": "z"
},
"id": 2357,
"name": "Identifier",
"src": "550:1:11"
},
{
"attributes": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint224",
"typeString": "uint224"
},
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"operator": "/",
"type": "uint224"
},
"children": [
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 2350,
"type": "uint224",
"value": "x"
},
"id": 2358,
"name": "Identifier",
"src": "554:1:11"
},
{
"attributes": {
"argumentTypes": null,
"isConstant": false,
"isLValue": false,
"isPure": false,
"isStructConstructorCall": false,
"lValueRequested": false,
"names": [
null
],
"type": "uint224",
"type_conversion": true
},
"children": [
{
"attributes": {
"argumentTypes": [
{
"typeIdentifier": "t_uint112",
"typeString": "uint112"
}
],
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"type": "type(uint224)",
"value": "uint224"
},
"id": 2359,
"name": "ElementaryTypeNameExpression",
"src": "558:7:11"
},
{
"attributes": {
"argumentTypes": null,
"overloadedDeclarations": [
null
],
"referencedDeclaration": 2352,
"type": "uint112",
"value": "y"
},
"id": 2360,
"name": "Identifier",
"src": "566:1:11"
}
],
"id": 2361,
"name": "FunctionCall",
"src": "558:10:11"
}
],
"id": 2362,
"name": "BinaryOperation",
"src": "554:14:11"
}
],
"id": 2363,
"name": "Assignment",
"src": "550:18:11"
}
],
"id": 2364,
"name": "ExpressionStatement",
"src": "550:18:11"
}
],
"id": 2365,
"name": "Block",
"src": "540:35:11"
}
],
"id": 2366,
"name": "FunctionDefinition",
"src": "469:106:11"
}
],
"id": 2367,
"name": "ContractDefinition",
"src": "183:394:11"
}
],
"id": 2368,
"name": "SourceUnit",
"src": "0:578:11"
},
"compiler": {
"name": "solc",
"version": "0.5.16+commit.9c3226ce.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.3.3",
"updatedAt": "2020-12-27T05:44:55.120Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}

37

package.json
{
"name": "@valueswap/v2-core",
"version": "1.0.2",
"version": "1.1.0",
"description": "🎛 Core contracts for the ValueswapV2 protocol",

@@ -14,12 +14,14 @@ "author": "Value Network",

"lint:fix": "yarn prettier ./test/*.ts --write",
"clean": "npx hardhat clean && rimraf ./build/",
"copy": "node ./scripts/copy-contracts.js",
"get-hash": "truffle exec scripts/get-init-code-hash.js",
"clean": "rimraf ./build/",
"precompile": "yarn clean",
"compile": "npx hardhat compile",
"postcompile": "yarn copy",
"deploy": "node ./scripts/deploy.js",
"verify": "node ./scripts/verify.js",
"compile": "truffle compile",
"postcompile": "yarn get-hash",
"pretest": "yarn compile",
"test": "mocha",
"prepublishOnly-": "yarn test"
"test": "truffle test",
"predeploy": "yarn compile",
"deploy": "truffle migrations --network",
"verify": "truffle run verify --network",
"prepublishOnly-": "yarn test",
"ganache-cli": "ganache-cli"
},

@@ -34,20 +36,15 @@ "files": [

"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.0",
"@nomiclabs/hardhat-etherscan": "^2.1.0",
"@nomiclabs/hardhat-waffle": "^2.0.0",
"@types/chai": "^4.2.6",
"@types/mocha": "^5.2.7",
"chai": "^4.2.0",
"copyfiles": "^2.4.1",
"del-cli": "^3.0.1",
"ethereum-waffle": "^3.0.0",
"ethereum-waffle": "^3.2.1",
"ethereumjs-util": "^6.2.0",
"ethers": "^5.0.0",
"hardhat": "^2.0.6",
"mocha": "^6.2.2",
"ganache-cli": "^6.12.1",
"prettier": "^1.19.1",
"rimraf": "^3.0.0",
"solc": "0.5.16",
"truffle-plugin-verify": "^0.5.4",
"ts-node": "^8.5.4",
"typescript": "^3.7.3"
"typescript": "^3.7.3",
"@truffle/hdwallet-provider": "^1.2.1",
"truffle": "^5.1.59"
},

@@ -54,0 +51,0 @@ "keywords": [

# Valueswap V2
[![Version](https://img.shields.io/npm/v/@valueswap/v2-core)](https://www.npmjs.com/package/@valueswap/v2-core)

@@ -9,16 +8,20 @@

# Local Development
The following assumes the use of `node@>=10`.
## Install Dependencies
`yarn`
## Compile Contracts
`yarn compile`
## Run Tests
`yarn test`
`yarn test`
## Deployment
See in [DEPLOYMENT](/docs/DEPLOYMENT.md)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc