{ "contractName": "RealEstateMarketplaceToken", "abi": [ { "inputs": [ { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "symbol", "type": "string" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "approved", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "operator", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "approved", "type": "bool" } ], "name": "ApprovalForAll", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "oldOwner", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "", "type": "address" } ], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "", "type": "address" } ], "name": "Unpaused", "type": "event" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "_myid", "type": "bytes32" }, { "internalType": "string", "name": "_result", "type": "string" } ], "name": "__callback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "_myid", "type": "bytes32" }, { "internalType": "string", "name": "_result", "type": "string" }, { "internalType": "bytes", "name": "_proof", "type": "bytes" } ], "name": "__callback", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "approve", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "baseTokenURI", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "getApproved", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "operator", "type": "address" } ], "name": "isApprovedForAll", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "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": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "safeTransferFrom", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "bytes", "name": "_data", "type": "bytes" } ], "name": "safeTransferFrom", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "bool", "name": "approved", "type": "bool" } ], "name": "setApprovalForAll", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "bool", "name": "newPauseValue", "type": "bool" } ], "name": "setPaused", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "tokenByIndex", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "tokenOfOwnerByIndex", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "tokenURI", "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": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "transferFrom", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "mint", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_myid\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"_result\",\"type\":\"string\"}],\"name\":\"__callback\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_myid\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"_result\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"_proof\",\"type\":\"bytes\"}],\"name\":\"__callback\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"baseTokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bool\",\"name\":\"newPauseValue\",\"type\":\"bool\"}],\"name\":\"setPaused\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"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\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{\"isApprovedForAll(address,address)\":{\"details\":\"Tells whether an operator is approved by a given owner\",\"params\":{\"operator\":\"operator address which you want to query the approval of\",\"owner\":\"owner address which you want to query the approval of\"},\"return\":\"bool whether the given operator is approved by the given owner\"},\"setApprovalForAll(address,bool)\":{\"details\":\"Sets or unsets the approval of a given operator An operator is allowed to transfer all tokens of the sender on their behalf\",\"params\":{\"approved\":\"representing the status of the approval to be set\",\"to\":\"operator address to set the approval\"}},\"supportsInterface(bytes4)\":{\"details\":\"implement supportsInterface(bytes4) using a lookup table\"},\"tokenByIndex(uint256)\":{\"details\":\"Gets the token ID at a given index of all the tokens in this contract Reverts if the index is greater or equal to the total number of tokens\",\"params\":{\"index\":\"uint256 representing the index to be accessed of the tokens list\"},\"return\":\"uint256 token ID at the given index of the tokens list\"},\"tokenOfOwnerByIndex(address,uint256)\":{\"details\":\"Gets the token ID at a given index of the tokens list of the requested owner\",\"params\":{\"index\":\"uint256 representing the index to be accessed of the requested tokens list\",\"owner\":\"address owning the tokens list to be accessed\"},\"return\":\"uint256 token ID at the given index of the tokens list owned by the requested address\"},\"totalSupply()\":{\"details\":\"Gets the total amount of tokens stored by the contract\",\"return\":\"uint256 representing the total amount of tokens\"}}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"project:/contracts/RealEstateMarketplaceToken.sol\":\"RealEstateMarketplaceToken\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"openzeppelin-solidity/contracts/drafts/Counters.sol\":{\"keccak256\":\"0x5be8533c5950173dc2b77b75108fae6e6c5449aedadde3385ba457394aad2384\",\"urls\":[\"bzz-raw://d429fb04f5b31d909dc759d0f88e28055b80b4dd43e5def4dffc947fa0609229\",\"dweb:/ipfs/QmaY9idX5CwLLtjjTQAdiiaDSrncgafkatUZXTbbajpz8b\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f\",\"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq\"]},\"openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol\":{\"keccak256\":\"0x042048c375daca04b31e31c91bbae912b84b5eb818c4e31b2deb530fd2305342\",\"urls\":[\"bzz-raw://d877a87c5e29b9ffca3e334378058c051a4e012fd3635039681003a9376baf1f\",\"dweb:/ipfs/QmR45snf93cFXtB71TZcmoGy9DbcMha8CqgkDKaLvhjXZK\"]},\"openzeppelin-solidity/contracts/utils/Address.sol\":{\"keccak256\":\"0x1a8e5072509c5ea7365eb1d48030b9be865140c8fb779968da0a459a0e174a11\",\"urls\":[\"bzz-raw://03335b7b07c7c8c8d613cfdd8ec39a0b5ec133ee510bf2fe6cc5a496767bef4b\",\"dweb:/ipfs/Qmebp4nzPja645c9yXSdJkGq96oU3am3LUnG2K3R7XxyKf\"]},\"project:/contracts/Oraclize.sol\":{\"keccak256\":\"0xe5ebe286b4624095629f76c6ac8dbad3cb305fbdb43fff09e4eebed35a05b49c\",\"urls\":[\"bzz-raw://681373c60944fa44771ccea64da3a0e1b428255757df53cfee06eae96f4ac91d\",\"dweb:/ipfs/QmWS7E26x3aXyYEZSzhTTpr8Pu11y5NK9p9iMwwvm7tMsz\"]},\"project:/contracts/RealEstateMarketplaceToken.sol\":{\"keccak256\":\"0x33c8458f7e2e3557fdf1a5ff9a6a1a79a21055a271a97d79450ca0b2e82c5432\",\"urls\":[\"bzz-raw://aa6b72995b9c063b0de56ff40e3846a79fda702c4cd981fc7f93cff47de06a25\",\"dweb:/ipfs/QmRv8xKcCM3wDJXxGBai7nnGtJ6CigbuQaZ5Gs9iJt73tU\"]}},\"version\":1}", "bytecode": "0x60806040523480156200001157600080fd5b506040516200349d3803806200349d833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b838201915060208201858111156200006f57600080fd5b82518660018202830111640100000000821117156200008d57600080fd5b8083526020830192505050908051906020019080838360005b83811015620000c3578082015181840152602081019050620000a6565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011557600080fd5b838201915060208201858111156200012c57600080fd5b82518660018202830111640100000000821117156200014a57600080fd5b8083526020830192505050908051906020019080838360005b838110156200018057808201518184015260208101905062000163565b50505050905090810190601f168015620001ae5780820380516001836020036101000a031916815260200191505b5060405250505081816040518060600160405280603f81526020016200345e603f91397f22500af037c600dd7b720644ab6e358635085601d9ac508ad83eb2d6b2d729ca6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a16200035e6301ffc9a760e01b620003fc60201b60201c565b620003766380ac58cd60e01b620003fc60201b60201c565b6200038e63780e9d6360e01b620003fc60201b60201c565b82600f9080519060200190620003a69291906200049c565b508160109080519060200190620003bf9291906200049c565b508060119080519060200190620003d89291906200049c565b50620003f1635b5e139f60e01b620003fc60201b60201c565b50505050506200054b565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156200043057600080fd5b6001806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004df57805160ff191683800117855562000510565b8280016001018555821562000510579182015b828111156200050f578251825591602001919060010190620004f2565b5b5090506200051f919062000523565b5090565b6200054891905b80821115620005445760008160009055506001016200052a565b5090565b90565b612f03806200055b6000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c806342842e0e116100c3578063a22cb4651161007c578063a22cb465146108de578063b88d4fde1461092e578063c87b56dd14610a33578063d547cfb714610ada578063e985e9c514610b5d578063f2fde38b14610bd95761014d565b806342842e0e1461069b5780634f6ccce7146107095780636352211e1461074b57806370a08231146107b95780638da5cb5b1461081157806395d89b411461085b5761014d565b806318160ddd1161011557806318160ddd1461032657806323b872dd1461034457806327dc297e146103b25780632f745c591461047757806338bbfa50146104d957806340c10f19146106355761014d565b806301ffc9a71461015257806306fdde03146101b7578063081812fc1461023a578063095ea7b3146102a857806316c38b3c146102f6575b600080fd5b61019d6004803603602081101561016857600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610c1d565b604051808215151515815260200191505060405180910390f35b6101bf610c85565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101ff5780820151818401526020810190506101e4565b50505050905090810190601f16801561022c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102666004803603602081101561025057600080fd5b8101908080359060200190929190505050610d27565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102f4600480360360408110156102be57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d64565b005b6103246004803603602081101561030c57600080fd5b81019080803515159060200190929190505050610fcf565b005b61032e6111de565b6040518082815260200191505060405180910390f35b6103b06004803603606081101561035a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111eb565b005b610475600480360360408110156103c857600080fd5b8101908080359060200190929190803590602001906401000000008111156103ef57600080fd5b82018360208201111561040157600080fd5b8035906020019184600183028401116401000000008311171561042357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061125a565b005b6104c36004803603604081101561048d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061129d565b6040518082815260200191505060405180910390f35b610633600480360360608110156104ef57600080fd5b81019080803590602001909291908035906020019064010000000081111561051657600080fd5b82018360208201111561052857600080fd5b8035906020019184600183028401116401000000008311171561054a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156105ad57600080fd5b8201836020820111156105bf57600080fd5b803590602001918460018302840111640100000000831117156105e157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611310565b005b6106816004803603604081101561064b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611315565b604051808215151515815260200191505060405180910390f35b610707600480360360608110156106b157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506113d9565b005b6107356004803603602081101561071f57600080fd5b81019080803590602001909291905050506113f9565b6040518082815260200191505060405180910390f35b6107776004803603602081101561076157600080fd5b810190808035906020019092919050505061142d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6107fb600480360360208110156107cf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061146a565b6040518082815260200191505060405180910390f35b6108196114ba565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108636114e3565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156108a3578082015181840152602081019050610888565b50505050905090810190601f1680156108d05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61092c600480360360408110156108f457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611585565b005b610a316004803603608081101561094457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156109ab57600080fd5b8201836020820111156109bd57600080fd5b803590602001918460018302840111640100000000831117156109df57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506116bf565b005b610a5f60048036036020811015610a4957600080fd5b81019080803590602001909291905050506116e5565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610a9f578082015181840152602081019050610a84565b50505050905090810190601f168015610acc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610ae26117ac565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610b22578082015181840152602081019050610b07565b50505050905090810190601f168015610b4f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610bbf60048036036040811015610b7357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061184e565b604051808215151515815260200191505060405180910390f35b610c1b60048036036020811015610bef57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118e2565b005b600060016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6060600f8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d1d5780601f10610cf257610100808354040283529160200191610d1d565b820191906000526020600020905b815481529060010190602001808311610d0057829003601f168201915b5050505050905090565b60006003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526036815260200180612de36036913960400191505060405180910390fd5b610e246114ba565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610e965750610e956002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163361184e565b5b610eeb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612e7b602f913960400191505060405180910390fd5b816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611074576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d815260200180612e3e603d913960400191505060405180910390fd5b801515600060149054906101000a900460ff16151514156110e0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612e196025913960400191505060405180910390fd5b80600060146101000a81548160ff021916908315150217905550600060149054906101000a900460ff1615611177577f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a16111db565b7f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a15b50565b6000600880549050905090565b6111f53382611b25565b61124a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526030815260200180612db36030913960400191505060405180910390fd5b611255838383611bba565b505050565b611299828260006040519080825280601f01601f1916602001820160405280156112935781602001600182028038833980820191505090505b50611310565b5050565b60006112a88361146a565b82106112b357600080fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106112fd57fe5b9060005260206000200154905092915050565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d815260200180612e3e603d913960400191505060405180910390fd5b6113c68383611bde565b6113cf82611bff565b6001905092915050565b6113f4838383604051806020016040528060008152506116bf565b505050565b60006114036111de565b821061140e57600080fd5b6008828154811061141b57fe5b90600052602060002001549050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006114b3600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611d17565b9050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060108054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561157b5780601f106115505761010080835404028352916020019161157b565b820191906000526020600020905b81548152906001019060200180831161155e57829003601f168201915b5050505050905090565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115be57600080fd5b80600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b6116ca8484846111eb565b6116d684848484611d25565b6116df57600080fd5b50505050565b60606116f082611f0e565b6116f957600080fd5b601260008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117a05780601f10611775576101008083540402835291602001916117a0565b820191906000526020600020905b81548152906001019060200180831161178357829003601f168201915b50505050509050919050565b606060118054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156118445780601f1061181957610100808354040283529160200191611844565b820191906000526020600020905b81548152906001019060200180831161182757829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d815260200180612e3e603d913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f6e6577206f776e65722063616e6e6f742062652030783020616464726573730081525060200191505060405180910390fd5b7f22500af037c600dd7b720644ab6e358635085601d9ac508ad83eb2d6b2d729ca6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080611b318361142d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611ba057508373ffffffffffffffffffffffffffffffffffffffff16611b8884610d27565b73ffffffffffffffffffffffffffffffffffffffff16145b80611bb15750611bb0818561184e565b5b91505092915050565b611bc5838383611f80565b611bcf83826121fe565b611bd9828261239c565b505050565b611be88282612463565b611bf2828261239c565b611bfb816126d4565b5050565b600073ffffffffffffffffffffffffffffffffffffffff16611c208261142d565b73ffffffffffffffffffffffffffffffffffffffff161415611c4157600080fd5b611ced60118054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611cda5780601f10611caf57610100808354040283529160200191611cda565b820191906000526020600020905b815481529060010190602001808311611cbd57829003601f168201915b5050505050611ce883612720565b61284d565b601260008381526020019081526020016000209080519060200190611d13929190612ce1565b5050565b600081600001549050919050565b6000611d468473ffffffffffffffffffffffffffffffffffffffff16612891565b611d535760019050611f06565b60008473ffffffffffffffffffffffffffffffffffffffff1663150b7a02338887876040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611e2e578082015181840152602081019050611e13565b50505050905090810190601f168015611e5b5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015611e7d57600080fd5b505af1158015611e91573d6000803e3d6000fd5b505050506040513d6020811015611ea757600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150505b949350505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b6002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612037576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612eaa6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f6e657720746f6b656e2061646472657373206d7573742062652076616c69640081525060200191505060405180910390fd5b6003600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055612157600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206128dc565b61219e600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206128ff565b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006122566001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905061291590919063ffffffff16565b9050600060076000848152602001908152602001600020549050818114612343576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083815481106122c357fe5b9060005260206000200154905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811061231b57fe5b9060005260206000200181905550816007600083815260200190815260200160002081905550505b600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054809190600190036123959190612d61565b5050505050565b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506007600083815260200190815260200160002081905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612506576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f696e76616c696420616464726573732070726f7669646564000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146125db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f746f6b656e496420616c7265616479206578697374730000000000000000000081525060200191505060405180910390fd5b816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612674600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206128ff565b808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505090600182039060005260206000200160009091929091909150555050565b60606000821415612768576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612848565b600082905060005b60008214612792578080600101915050600a828161278a57fe5b049150612770565b6060816040519080825280601f01601f1916602001820160405280156127c75781602001600182028038833980820191505090505b50905060006001830390505b6000861461284057600a86816127e557fe5b0660300160f81b828280600190039350815181106127ff57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a868161283857fe5b0495506127d3565b819450505050505b919050565b6060612889838360405180602001604052806000815250604051806020016040528060008152506040518060200160405280600081525061295f565b905092915050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91508082141580156128d357506000801b8214155b92505050919050565b6128f46001826000015461291590919063ffffffff16565b816000018190555050565b6001816000016000828254019250508190555050565b600061295783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612c21565b905092915050565b6060808690506060869050606086905060608690506060869050606081518351855187518951010101016040519080825280601f01601f1916602001820160405280156129bb5781602001600182028038833980820191505090505b509050606081905060008090506000809050600090505b8851811015612a40578881815181106129e757fe5b602001015160f81c60f81b838380600101945081518110612a0457fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506129d2565b600090505b8751811015612ab357878181518110612a5a57fe5b602001015160f81c60f81b838380600101945081518110612a7757fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050612a45565b600090505b8651811015612b2657868181518110612acd57fe5b602001015160f81c60f81b838380600101945081518110612aea57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050612ab8565b600090505b8551811015612b9957858181518110612b4057fe5b602001015160f81c60f81b838380600101945081518110612b5d57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050612b2b565b600090505b8451811015612c0c57848181518110612bb357fe5b602001015160f81c60f81b838380600101945081518110612bd057fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050612b9e565b82995050505050505050505095945050505050565b6000838311158290612cce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612c93578082015181840152602081019050612c78565b50505050905090810190601f168015612cc05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612d2257805160ff1916838001178555612d50565b82800160010185558215612d50579182015b82811115612d4f578251825591602001919060010190612d34565b5b509050612d5d9190612d8d565b5090565b815481835581811115612d8857818360005260206000209182019101612d879190612d8d565b5b505050565b612daf91905b80821115612dab576000816000905550600101612d93565b5090565b9056fe6d75737420626520617070726f766564206f7220626520746865206f776e6572206f662074686520636f6e747261637474686520676976656e2061646472657373206d757374206e6f7420626520746865206f776e6572206f662074686520746f6b656e496470617573656420737461746520697320616c726561647920696e2074686973207374617465746869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656420627920746865206f776e6572206f662074686520636f6e74726163746d7573742062652063616c6c6564206279206f776e657220756e6c65737320617070726f76656420666f7220616c6c66726f6d2061646472657373206d757374206265206f776e6572206f6620746f6b656e4964a265627a7a723158205214da480ab30a5c9c0c1d2a2afde5762e11d94d00c0384608ef8dbf44e6841f64736f6c6343000510003268747470733a2f2f73332d75732d776573742d322e616d617a6f6e6177732e636f6d2f756461636974792d626c6f636b636861696e2f63617073746f6e652f", "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061014d5760003560e01c806342842e0e116100c3578063a22cb4651161007c578063a22cb465146108de578063b88d4fde1461092e578063c87b56dd14610a33578063d547cfb714610ada578063e985e9c514610b5d578063f2fde38b14610bd95761014d565b806342842e0e1461069b5780634f6ccce7146107095780636352211e1461074b57806370a08231146107b95780638da5cb5b1461081157806395d89b411461085b5761014d565b806318160ddd1161011557806318160ddd1461032657806323b872dd1461034457806327dc297e146103b25780632f745c591461047757806338bbfa50146104d957806340c10f19146106355761014d565b806301ffc9a71461015257806306fdde03146101b7578063081812fc1461023a578063095ea7b3146102a857806316c38b3c146102f6575b600080fd5b61019d6004803603602081101561016857600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610c1d565b604051808215151515815260200191505060405180910390f35b6101bf610c85565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101ff5780820151818401526020810190506101e4565b50505050905090810190601f16801561022c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102666004803603602081101561025057600080fd5b8101908080359060200190929190505050610d27565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102f4600480360360408110156102be57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d64565b005b6103246004803603602081101561030c57600080fd5b81019080803515159060200190929190505050610fcf565b005b61032e6111de565b6040518082815260200191505060405180910390f35b6103b06004803603606081101561035a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111eb565b005b610475600480360360408110156103c857600080fd5b8101908080359060200190929190803590602001906401000000008111156103ef57600080fd5b82018360208201111561040157600080fd5b8035906020019184600183028401116401000000008311171561042357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061125a565b005b6104c36004803603604081101561048d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061129d565b6040518082815260200191505060405180910390f35b610633600480360360608110156104ef57600080fd5b81019080803590602001909291908035906020019064010000000081111561051657600080fd5b82018360208201111561052857600080fd5b8035906020019184600183028401116401000000008311171561054a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156105ad57600080fd5b8201836020820111156105bf57600080fd5b803590602001918460018302840111640100000000831117156105e157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611310565b005b6106816004803603604081101561064b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611315565b604051808215151515815260200191505060405180910390f35b610707600480360360608110156106b157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506113d9565b005b6107356004803603602081101561071f57600080fd5b81019080803590602001909291905050506113f9565b6040518082815260200191505060405180910390f35b6107776004803603602081101561076157600080fd5b810190808035906020019092919050505061142d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6107fb600480360360208110156107cf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061146a565b6040518082815260200191505060405180910390f35b6108196114ba565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108636114e3565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156108a3578082015181840152602081019050610888565b50505050905090810190601f1680156108d05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61092c600480360360408110156108f457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611585565b005b610a316004803603608081101561094457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156109ab57600080fd5b8201836020820111156109bd57600080fd5b803590602001918460018302840111640100000000831117156109df57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506116bf565b005b610a5f60048036036020811015610a4957600080fd5b81019080803590602001909291905050506116e5565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610a9f578082015181840152602081019050610a84565b50505050905090810190601f168015610acc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610ae26117ac565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610b22578082015181840152602081019050610b07565b50505050905090810190601f168015610b4f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610bbf60048036036040811015610b7357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061184e565b604051808215151515815260200191505060405180910390f35b610c1b60048036036020811015610bef57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118e2565b005b600060016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6060600f8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d1d5780601f10610cf257610100808354040283529160200191610d1d565b820191906000526020600020905b815481529060010190602001808311610d0057829003601f168201915b5050505050905090565b60006003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526036815260200180612de36036913960400191505060405180910390fd5b610e246114ba565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610e965750610e956002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163361184e565b5b610eeb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612e7b602f913960400191505060405180910390fd5b816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611074576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d815260200180612e3e603d913960400191505060405180910390fd5b801515600060149054906101000a900460ff16151514156110e0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612e196025913960400191505060405180910390fd5b80600060146101000a81548160ff021916908315150217905550600060149054906101000a900460ff1615611177577f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a16111db565b7f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a15b50565b6000600880549050905090565b6111f53382611b25565b61124a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526030815260200180612db36030913960400191505060405180910390fd5b611255838383611bba565b505050565b611299828260006040519080825280601f01601f1916602001820160405280156112935781602001600182028038833980820191505090505b50611310565b5050565b60006112a88361146a565b82106112b357600080fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106112fd57fe5b9060005260206000200154905092915050565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d815260200180612e3e603d913960400191505060405180910390fd5b6113c68383611bde565b6113cf82611bff565b6001905092915050565b6113f4838383604051806020016040528060008152506116bf565b505050565b60006114036111de565b821061140e57600080fd5b6008828154811061141b57fe5b90600052602060002001549050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006114b3600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020611d17565b9050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060108054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561157b5780601f106115505761010080835404028352916020019161157b565b820191906000526020600020905b81548152906001019060200180831161155e57829003601f168201915b5050505050905090565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115be57600080fd5b80600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b6116ca8484846111eb565b6116d684848484611d25565b6116df57600080fd5b50505050565b60606116f082611f0e565b6116f957600080fd5b601260008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117a05780601f10611775576101008083540402835291602001916117a0565b820191906000526020600020905b81548152906001019060200180831161178357829003601f168201915b50505050509050919050565b606060118054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156118445780601f1061181957610100808354040283529160200191611844565b820191906000526020600020905b81548152906001019060200180831161182757829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d815260200180612e3e603d913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f6e6577206f776e65722063616e6e6f742062652030783020616464726573730081525060200191505060405180910390fd5b7f22500af037c600dd7b720644ab6e358635085601d9ac508ad83eb2d6b2d729ca6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080611b318361142d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611ba057508373ffffffffffffffffffffffffffffffffffffffff16611b8884610d27565b73ffffffffffffffffffffffffffffffffffffffff16145b80611bb15750611bb0818561184e565b5b91505092915050565b611bc5838383611f80565b611bcf83826121fe565b611bd9828261239c565b505050565b611be88282612463565b611bf2828261239c565b611bfb816126d4565b5050565b600073ffffffffffffffffffffffffffffffffffffffff16611c208261142d565b73ffffffffffffffffffffffffffffffffffffffff161415611c4157600080fd5b611ced60118054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611cda5780601f10611caf57610100808354040283529160200191611cda565b820191906000526020600020905b815481529060010190602001808311611cbd57829003601f168201915b5050505050611ce883612720565b61284d565b601260008381526020019081526020016000209080519060200190611d13929190612ce1565b5050565b600081600001549050919050565b6000611d468473ffffffffffffffffffffffffffffffffffffffff16612891565b611d535760019050611f06565b60008473ffffffffffffffffffffffffffffffffffffffff1663150b7a02338887876040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611e2e578082015181840152602081019050611e13565b50505050905090810190601f168015611e5b5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015611e7d57600080fd5b505af1158015611e91573d6000803e3d6000fd5b505050506040513d6020811015611ea757600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150505b949350505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b6002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612037576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612eaa6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f6e657720746f6b656e2061646472657373206d7573742062652076616c69640081525060200191505060405180910390fd5b6003600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055612157600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206128dc565b61219e600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206128ff565b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006122566001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905061291590919063ffffffff16565b9050600060076000848152602001908152602001600020549050818114612343576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083815481106122c357fe5b9060005260206000200154905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811061231b57fe5b9060005260206000200181905550816007600083815260200190815260200160002081905550505b600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054809190600190036123959190612d61565b5050505050565b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506007600083815260200190815260200160002081905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612506576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f696e76616c696420616464726573732070726f7669646564000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146125db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f746f6b656e496420616c7265616479206578697374730000000000000000000081525060200191505060405180910390fd5b816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612674600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206128ff565b808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505090600182039060005260206000200160009091929091909150555050565b60606000821415612768576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612848565b600082905060005b60008214612792578080600101915050600a828161278a57fe5b049150612770565b6060816040519080825280601f01601f1916602001820160405280156127c75781602001600182028038833980820191505090505b50905060006001830390505b6000861461284057600a86816127e557fe5b0660300160f81b828280600190039350815181106127ff57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a868161283857fe5b0495506127d3565b819450505050505b919050565b6060612889838360405180602001604052806000815250604051806020016040528060008152506040518060200160405280600081525061295f565b905092915050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91508082141580156128d357506000801b8214155b92505050919050565b6128f46001826000015461291590919063ffffffff16565b816000018190555050565b6001816000016000828254019250508190555050565b600061295783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612c21565b905092915050565b6060808690506060869050606086905060608690506060869050606081518351855187518951010101016040519080825280601f01601f1916602001820160405280156129bb5781602001600182028038833980820191505090505b509050606081905060008090506000809050600090505b8851811015612a40578881815181106129e757fe5b602001015160f81c60f81b838380600101945081518110612a0457fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506129d2565b600090505b8751811015612ab357878181518110612a5a57fe5b602001015160f81c60f81b838380600101945081518110612a7757fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050612a45565b600090505b8651811015612b2657868181518110612acd57fe5b602001015160f81c60f81b838380600101945081518110612aea57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050612ab8565b600090505b8551811015612b9957858181518110612b4057fe5b602001015160f81c60f81b838380600101945081518110612b5d57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050612b2b565b600090505b8451811015612c0c57848181518110612bb357fe5b602001015160f81c60f81b838380600101945081518110612bd057fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050612b9e565b82995050505050505050505095945050505050565b6000838311158290612cce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612c93578082015181840152602081019050612c78565b50505050905090810190601f168015612cc05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612d2257805160ff1916838001178555612d50565b82800160010185558215612d50579182015b82811115612d4f578251825591602001919060010190612d34565b5b509050612d5d9190612d8d565b5090565b815481835581811115612d8857818360005260206000209182019101612d879190612d8d565b5b505050565b612daf91905b80821115612dab576000816000905550600101612d93565b5090565b9056fe6d75737420626520617070726f766564206f7220626520746865206f776e6572206f662074686520636f6e747261637474686520676976656e2061646472657373206d757374206e6f7420626520746865206f776e6572206f662074686520746f6b656e496470617573656420737461746520697320616c726561647920696e2074686973207374617465746869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656420627920746865206f776e6572206f662074686520636f6e74726163746d7573742062652063616c6c6564206279206f776e657220756e6c65737320617070726f76656420666f7220616c6c66726f6d2061646472657373206d757374206265206f776e6572206f6620746f6b656e4964a265627a7a723158205214da480ab30a5c9c0c1d2a2afde5762e11d94d00c0384608ef8dbf44e6841f64736f6c63430005100032", "sourceMap": "22817:1084:6:-;;;23060:225;8:9:-1;5:2;;;30:1;27;20:12;5:2;23060:225:6;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23060:225:6;;;;;;;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;71:11;66:3;62:21;55:28;;123:4;118:3;114:14;159:9;141:16;138:31;135:2;;;182:1;179;172:12;135:2;219:3;213:10;330:9;325:1;311:12;307:20;289:16;285:43;282:58;261:11;247:12;244:29;233:115;230:2;;;361:1;358;351:12;230:2;384:12;379:3;372:25;420:4;415:3;411:14;404:21;;0:432;;23060:225:6;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;23060:225:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;71:11;66:3;62:21;55:28;;123:4;118:3;114:14;159:9;141:16;138:31;135:2;;;182:1;179;172:12;135:2;219:3;213:10;330:9;325:1;311:12;307:20;289:16;285:43;282:58;261:11;247:12;244:29;233:115;230:2;;;361:1;358;351:12;230:2;384:12;379:3;372:25;420:4;415:3;411:14;404:21;;0:432;;23060:225:6;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;23060:225:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23165:4;23183:6;21191:312;;;;;;;;;;;;;;;;;747:37;765:6;;;;;;;;;;;773:10;747:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;803:10;794:6;;:19;;;;;;;;;;;;;;;;;;2568:5;2558:7;;:15;;;;;;;;;;;;;;;;;;2588:20;2597:10;2588:20;;;;;;;;;;;;;;;;;;;;;;3417:40;3015:10;3436:20;;3417:18;;;:40;;:::i;:::-;5670;5545:10;5689:20;;5670:18;;;:40;;:::i;:::-;13803:51;13409:10;13822:31;;13803:18;;;:51;;:::i;:::-;21369:4;21361:5;:12;;;;;;;;;;;;:::i;:::-;;21393:6;21383:7;:16;;;;;;;;;;;;:::i;:::-;;21425:12;21409:13;:28;;;;;;;;;;;;:::i;:::-;;21447:49;21002:10;21466:29;;21447:18;;;:49;;:::i;:::-;21191:312;;;23060:225;;22817:1084;;3795:158;3885:10;3870:25;;:11;:25;;;;;3862:34;;;;;;3942:4;3906:20;:33;3927:11;3906:33;;;;;;;;;;;;;;;;;;:40;;;;;;;;;;;;;;;;;;3795:158;:::o;22817:1084::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;", "deployedSourceMap": "22817:1084:6:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22817:1084:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3555:161;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;3555:161:6;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;21590:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;21590:83:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7028:167;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;7028:167:6;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;6262:760;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;6262:760:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2091:340;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2091:340:6;;;;;;;;;;;;;;;;;;;:::i;:::-;;14596:94;;;:::i;:::-;;;;;;;;;;;;;;;;;;;8200:296;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;8200:296:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;14801:122:5;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14801:122:5;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;14801:122:5;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;14801:122:5;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;14801:122:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;14801:122:5;;;;;;;;;;;;;;;:::i;:::-;;14234:210:6;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14234:210:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;14929:166:5;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14929:166:5;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;14929:166:5;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;14929:166:5;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;14929:166:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;14929:166:5;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;14929:166:5;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;14929:166:5;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;14929:166:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;14929:166:5;;;;;;;;;;;;;;;:::i;:::-;;23732:167:6;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23732:167:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;8502:162;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;8502:162:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;15027:148;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;15027:148:6;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6022:163;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;6022:163:6;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;5723:293;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;5723:293:6;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;524:77;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;21679:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;21679:87:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7487:213;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;7487:213:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;8670:249;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;8670:249:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;8670:249:6;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;8670:249:6;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;8670:249:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;8670:249:6;;;;;;;;;;;;;;;:::i;:::-;;21877:151;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21877:151:6;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;21877:151:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21772:99;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;21772:99:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8021:173;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;8021:173:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1281:367;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1281:367:6;;;;;;;;;;;;;;;;;;;:::i;:::-;;3555:161;3649:4;3676:20;:33;3697:11;3676:33;;;;;;;;;;;;;;;;;;;;;;;;;;;3669:40;;3555:161;;;:::o;21590:83::-;21629:13;21661:5;21654:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21590:83;:::o;7028:167::-;7087:7;7164:15;:24;7180:7;7164:24;;;;;;;;;;;;;;;;;;;;;7157:31;;7028:167;;;:::o;6262:760::-;6429:11;:20;6441:7;6429:20;;;;;;;;;;;;;;;;;;;;;6423:26;;:2;:26;;;;6402:127;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6678:7;:5;:7::i;:::-;6664:21;;:10;:21;;;:91;;;;6705:50;6722:11;:20;6734:7;6722:20;;;;;;;;;;;;;;;;;;;;;6744:10;6705:16;:50::i;:::-;6664:91;6643:185;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6918:2;6891:15;:24;6907:7;6891:24;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;7007:7;7003:2;6972:43;;6981:11;:20;6993:7;6981:20;;;;;;;;;;;;;;;;;;;;;6972:43;;;;;;;;;;;;6262:760;;:::o;2091:340::-;999:6;;;;;;;;;;;985:20;;:10;:20;;;964:128;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2189:13;2178:24;;:7;;;;;;;;;;;:24;;;;2157:108;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2285:13;2275:7;;:23;;;;;;;;;;;;;;;;;;2312:7;;;;;;;;;;;2308:117;;;2340:18;2347:10;2340:18;;;;;;;;;;;;;;;;;;;;;;2308:117;;;2394:20;2403:10;2394:20;;;;;;;;;;;;;;;;;;;;;;2308:117;2091:340;:::o;14596:94::-;14640:7;14666:10;:17;;;;14659:24;;14596:94;:::o;8200:296::-;8333:39;8352:10;8364:7;8333:18;:39::i;:::-;8312:134;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8457:32;8471:4;8477:2;8481:7;8457:13;:32::i;:::-;8200:296;;;:::o;14801:122:5:-;14876:40;14887:5;14894:7;14913:1;14903:12;;;;;;;;;;;;;;;;;;;;;;;;;29:1:-1;21:6;17:14;116:4;104:10;96:6;87:34;147:4;139:6;135:17;125:27;;0:156;14903:12:5;;;;14876:10;:40::i;:::-;14801:122;;:::o;14234:210:6:-;14338:7;14377:16;14387:5;14377:9;:16::i;:::-;14369:5;:24;14361:33;;;;;;14411:12;:19;14424:5;14411:19;;;;;;;;;;;;;;;14431:5;14411:26;;;;;;;;;;;;;;;;14404:33;;14234:210;;;;:::o;14929:166:5:-;;;;:::o;23732:167:6:-;23801:4;999:6;;;;;;;;;;;985:20;;:10;:20;;;964:128;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23817:24;23829:2;23833:7;23817:11;:24::i;:::-;23851:20;23863:7;23851:11;:20::i;:::-;23888:4;23881:11;;23732:167;;;;:::o;8502:162::-;8618:39;8635:4;8641:2;8645:7;8618:39;;;;;;;;;;;;:16;:39::i;:::-;8502:162;;;:::o;15027:148::-;15085:7;15120:13;:11;:13::i;:::-;15112:5;:21;15104:30;;;;;;15151:10;15162:5;15151:17;;;;;;;;;;;;;;;;15144:24;;15027:148;;;:::o;6022:163::-;6077:7;6158:11;:20;6170:7;6158:20;;;;;;;;;;;;;;;;;;;;;6151:27;;6022:163;;;:::o;5723:293::-;5778:7;5967:42;5984:17;:24;6002:5;5984:24;;;;;;;;;;;;;;;5967:16;:42::i;:::-;5960:49;;5723:293;;;:::o;524:77::-;562:7;588:6;;;;;;;;;;;581:13;;524:77;:::o;21679:87::-;21720:13;21752:7;21745:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21679:87;:::o;7487:213::-;7572:10;7566:16;;:2;:16;;;;7558:25;;;;;;7630:8;7593:18;:30;7612:10;7593:30;;;;;;;;;;;;;;;:34;7624:2;7593:34;;;;;;;;;;;;;;;;:45;;;;;;;;;;;;;;;;;;7680:2;7653:40;;7668:10;7653:40;;;7684:8;7653:40;;;;;;;;;;;;;;;;;;;;;;7487:213;;:::o;8670:249::-;8814:31;8827:4;8833:2;8837:7;8814:12;:31::i;:::-;8863:48;8886:4;8892:2;8896:7;8905:5;8863:22;:48::i;:::-;8855:57;;;;;;8670:249;;;;:::o;21877:151::-;21935:13;21968:16;21976:7;21968;:16::i;:::-;21960:25;;;;;;22002:10;:19;22013:7;22002:19;;;;;;;;;;;21995:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21877:151;;;:::o;21772:99::-;21819:13;21851;21844:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21772:99;:::o;8021:173::-;8125:4;8152:18;:25;8171:5;8152:25;;;;;;;;;;;;;;;:35;8178:8;8152:35;;;;;;;;;;;;;;;;;;;;;;;;;8145:42;;8021:173;;;;:::o;1281:367::-;999:6;;;;;;;;;;;985:20;;:10;:20;;;964:128;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1440:1;1420:22;;:8;:22;;;;1412:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1579:35;1597:6;;;;;;;;;;;1605:8;1579:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1633:8;1624:6;;:17;;;;;;;;;;;;;;;;;;1281:367;:::o;9625:298::-;9734:4;9754:13;9770:16;9778:7;9770;:16::i;:::-;9754:32;;9815:5;9804:16;;:7;:16;;;:63;;;;9860:7;9836:31;;:20;9848:7;9836:11;:20::i;:::-;:31;;;9804:63;:111;;;;9883:32;9900:5;9907:7;9883:16;:32::i;:::-;9804:111;9796:120;;;9625:298;;;;:::o;15550:269::-;15665:38;15685:4;15691:2;15695:7;15665:19;:38::i;:::-;15714:47;15747:4;15753:7;15714:32;:47::i;:::-;15772:40;15800:2;15804:7;15772:27;:40::i;:::-;15550:269;;;:::o;16074:196::-;16137:24;16149:2;16153:7;16137:11;:24::i;:::-;16172:40;16200:2;16204:7;16172:27;:40::i;:::-;16223;16255:7;16223:31;:40::i;:::-;16074:196;;:::o;22500:178::-;22593:1;22565:30;;:16;22573:7;22565;:16::i;:::-;:30;;;;22557:39;;;;;;22628:43;22638:13;22628:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22653:17;22662:7;22653:8;:17::i;:::-;22628:9;:43::i;:::-;22606:10;:19;22617:7;22606:19;;;;;;;;;;;:65;;;;;;;;;;;;:::i;:::-;;22500:178;:::o;1065:112:0:-;1130:7;1156;:14;;;1149:21;;1065:112;;;:::o;12170:431:6:-;12321:4;12342:15;:2;:13;;;:15::i;:::-;12337:58;;12380:4;12373:11;;;;12337:58;12405:13;12437:2;12421:36;;;12471:10;12495:4;12513:7;12534:5;12421:128;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;12421:128:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;12421:128:6;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;12421:128:6;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;12421:128:6;;;;;;;;;;;;;;;;12405:144;;4683:10;12577:16;;12567:26;;;:6;:26;;;;12559:35;;;12170:431;;;;;;;:::o;9113:152::-;9170:4;9186:13;9202:11;:20;9214:7;9202:20;;;;;;;;;;;;;;;;;;;;;9186:36;;9256:1;9239:19;;:5;:19;;;;9232:26;;;9113:152;;;:::o;10868:774::-;11082:11;:20;11094:7;11082:20;;;;;;;;;;;;;;;;;;;;;11074:28;;:4;:28;;;11053:112;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11265:1;11251:16;;:2;:16;;;;11243:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11353:15;:24;11369:7;11353:24;;;;;;;;;;;;11346:31;;;;;;;;;;;11462:43;11481:17;:23;11499:4;11481:23;;;;;;;;;;;;;;;11462:18;:43::i;:::-;11515:41;11534:17;:21;11552:2;11534:21;;;;;;;;;;;;;;;11515:18;:41::i;:::-;11627:7;11623:2;11608:27;;11617:4;11608:27;;;;;;;;;;;;10868:774;;;:::o;18074:1140::-;18348:22;18373:32;18403:1;18373:12;:18;18386:4;18373:18;;;;;;;;;;;;;;;:25;;;;:29;;:32;;;;:::i;:::-;18348:57;;18415:18;18436:17;:26;18454:7;18436:26;;;;;;;;;;;;18415:47;;18580:14;18566:10;:28;18562:323;;18610:19;18632:12;:18;18645:4;18632:18;;;;;;;;;;;;;;;18651:14;18632:34;;;;;;;;;;;;;;;;18610:56;;18714:11;18681:12;:18;18694:4;18681:18;;;;;;;;;;;;;;;18700:10;18681:30;;;;;;;;;;;;;;;:44;;;;18830:10;18797:17;:30;18815:11;18797:30;;;;;;;;;;;:43;;;;18562:323;;18971:12;:18;18984:4;18971:18;;;;;;;;;;;;;;;:27;;;;;;;;;;;;:::i;:::-;;18074:1140;;;;:::o;16920:183::-;17033:12;:16;17046:2;17033:16;;;;;;;;;;;;;;;:23;;;;17004:17;:26;17022:7;17004:26;;;;;;;;;;;:52;;;;17066:12;:16;17079:2;17066:16;;;;;;;;;;;;;;;17088:7;17066:30;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;17066:30:6;;;;;;;;;;;;;;;;;;;;;;16920:183;;:::o;10080:589::-;10244:1;10230:16;;:2;:16;;;10226:81;;;10262:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10226:81;10352:1;10320:34;;:11;:20;10332:7;10320:20;;;;;;;;;;;;;;;;;;;;;:34;;;10316:97;;10370:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10316:97;10524:2;10501:11;:20;10513:7;10501:20;;;;;;;;;;;;:25;;;;;;;;;;;;;;;;;;10536:41;10555:17;:21;10573:2;10555:21;;;;;;;;;;;;;;;10536:18;:41::i;:::-;10654:7;10650:2;10629:33;;10646:1;10629:33;;;;;;;;;;;;10080:589;;:::o;17298:161::-;17401:10;:17;;;;17374:15;:24;17390:7;17374:24;;;;;;;;;;;:44;;;;17428:10;17444:7;17428:24;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;17428:24:6;;;;;;;;;;;;;;;;;;;;;;17298:161;:::o;43271:465:5:-;43321:27;43370:1;43364:2;:7;43360:48;;;43387:10;;;;;;;;;;;;;;;;;;;;;43360:48;43417:6;43426:2;43417:11;;43438:8;43456:66;43468:1;43463;:6;43456:66;;43485:5;;;;;;;43509:2;43504:7;;;;;;;;;43456:66;;;43531:17;43561:3;43551:14;;;;;;;;;;;;;;;;;;;;;;;;;29:1:-1;21:6;17:14;116:4;104:10;96:6;87:34;147:4;139:6;135:17;125:27;;0:156;43551:14:5;;;;43531:34;;43575:6;43590:1;43584:3;:7;43575:16;;43601:100;43614:1;43608:2;:7;43601:100;;43664:2;43659;:7;;;;;;43654:2;:12;43643:25;;43631:4;43636:3;;;;;;;43631:9;;;;;;;;;;;:37;;;;;;;;;;;43688:2;43682:8;;;;;;;;;43601:100;;;43724:4;43710:19;;;;;;43271:465;;;;:::o;39712:166::-;39790:33;39842:29;39852:2;39856;39842:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:9;:29::i;:::-;39835:36;;39712:166;;;;:::o;686:610:3:-;746:4;1004:16;1030:19;1052:66;1030:88;;;;1219:7;1207:20;1195:32;;1258:11;1246:8;:23;;:42;;;;;1285:3;1273:15;;:8;:15;;1246:42;1238:51;;;;686:610;;;:::o;1367:108:0:-;1447:21;1466:1;1447:7;:14;;;:18;;:21;;;;:::i;:::-;1430:7;:14;;:38;;;;1367:108;:::o;1183:178::-;1353:1;1335:7;:14;;;:19;;;;;;;;;;;1183:178;:::o;1274:134:1:-;1332:7;1358:43;1362:1;1365;1358:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1351:50;;1274:134;;;;:::o;40282:1020:5:-;40414:33;40459:16;40484:2;40459:28;;40497:16;40522:2;40497:28;;40535:16;40560:2;40535:28;;40573:16;40598:2;40573:28;;40611:16;40636:2;40611:28;;40649:19;40734:3;:10;40721:3;:10;40708:3;:10;40695:3;:10;40682:3;:10;:23;:36;:49;:62;40671:74;;;;;;;;;;;;;;;;;;;;;;;;;29:1:-1;21:6;17:14;116:4;104:10;96:6;87:34;147:4;139:6;135:17;125:27;;0:156;40671:74:5;;;;40649:96;;40755:19;40783:5;40755:34;;40799:6;40808:1;40799:10;;40819:6;40828:1;40819:10;;40848:1;40844:5;;40839:78;40855:3;:10;40851:1;:14;40839:78;;;40900:3;40904:1;40900:6;;;;;;;;;;;;;;;;40886;40893:3;;;;;;40886:11;;;;;;;;;;;:20;;;;;;;;;;;40867:3;;;;;;;40839:78;;;40935:1;40931:5;;40926:78;40942:3;:10;40938:1;:14;40926:78;;;40987:3;40991:1;40987:6;;;;;;;;;;;;;;;;40973;40980:3;;;;;;40973:11;;;;;;;;;;;:20;;;;;;;;;;;40954:3;;;;;;;40926:78;;;41022:1;41018:5;;41013:78;41029:3;:10;41025:1;:14;41013:78;;;41074:3;41078:1;41074:6;;;;;;;;;;;;;;;;41060;41067:3;;;;;;41060:11;;;;;;;;;;;:20;;;;;;;;;;;41041:3;;;;;;;41013:78;;;41109:1;41105:5;;41100:78;41116:3;:10;41112:1;:14;41100:78;;;41161:3;41165:1;41161:6;;;;;;;;;;;;;;;;41147;41154:3;;;;;;41147:11;;;;;;;;;;;:20;;;;;;;;;;;41128:3;;;;;;;41100:78;;;41196:1;41192:5;;41187:78;41203:3;:10;41199:1;:14;41187:78;;;41248:3;41252:1;41248:6;;;;;;;;;;;;;;;;41234;41241:3;;;;;;41234:11;;;;;;;;;;;:20;;;;;;;;;;;41215:3;;;;;;;41187:78;;;41288:6;41274:21;;;;;;;;;;;40282:1020;;;;;;;:::o;1732:187:1:-;1818:7;1850:1;1845;:6;;1853:12;1837:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1837:29:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1876:9;1892:1;1888;:5;1876:17;;1911:1;1904:8;;;1732:187;;;;;:::o;22817:1084:6:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o", "source": "pragma solidity ^0.5.0;\n\nimport \"openzeppelin-solidity/contracts/utils/Address.sol\";\nimport \"openzeppelin-solidity/contracts/drafts/Counters.sol\";\nimport \"openzeppelin-solidity/contracts/math/SafeMath.sol\";\nimport \"openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol\";\nimport \"./Oraclize.sol\";\n\ncontract Ownable {\n // DONE: 1) create a private '_owner' variable of type address with a public getter function\n address private _owner;\n\n event OwnershipTransfer(address oldOwner, address newOwner);\n\n function owner() public view returns (address) {\n return _owner;\n }\n\n // DONE: 2) create an internal constructor that sets the _owner var to the creater of the contract\n constructor() public {\n emit OwnershipTransfer(_owner, msg.sender);\n _owner = msg.sender;\n }\n\n // DONE: 3) create an 'onlyOwner' modifier that throws if called by any account other than the owner.\n modifier onlyOwner() {\n require(\n msg.sender == _owner,\n \"this function can only be called by the owner of the contract\"\n );\n _;\n }\n\n // DONE: 4) fill out the transferOwnership function\n // DONE: 5) create an event that emits anytime ownerShip is transfered (including in the constructor)\n\n function transferOwnership(address newOwner) public onlyOwner {\n // DONE: make sure the new owner is a real address\n require(newOwner != address(0), \"new owner cannot be 0x0 address\");\n // DONE: add functionality to transfer control of the contract to a newOwner.\n emit OwnershipTransfer(_owner, newOwner);\n _owner = newOwner;\n }\n}\n\n// DONE: Create a Pausable contract that inherits from the Ownable contract\ncontract Pausable is Ownable {\n // DONE: 1) create a private '_paused' variable of type bool\n bool private _paused;\n\n // DONE: 5) create a Paused & Unpaused event that emits the address that triggered the event\n event Paused(address);\n event Unpaused(address);\n\n // DONE: 2) create a public setter using the inherited onlyOwner modifier\n function setPaused(bool newPauseValue) public onlyOwner {\n require(\n _paused != newPauseValue,\n \"paused state is already in this state\"\n );\n _paused = newPauseValue;\n if (_paused) {\n emit Paused(msg.sender);\n } else {\n emit Unpaused(msg.sender);\n }\n }\n\n // DONE: 3) create an internal constructor that sets the _paused variable to false\n constructor() internal {\n _paused = false;\n emit Unpaused(msg.sender);\n }\n\n // DONE: 4) create 'whenNotPaused' & 'paused' modifier that throws in the appropriate situation\n modifier whenNotPaused() {\n require(!_paused, \"contract must not be paused to continue\");\n _;\n }\n\n modifier paused() {\n require(_paused, \"contract must be paused to continue\");\n _;\n }\n}\n\ncontract ERC165 {\n bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;\n /*\n * 0x01ffc9a7 ===\n * bytes4(keccak256('supportsInterface(bytes4)'))\n */\n\n /**\n * @dev a mapping of interface id to whether or not it's supported\n */\n mapping(bytes4 => bool) private _supportedInterfaces;\n\n /**\n * @dev A contract implementing SupportsInterfaceWithLookup\n * implement ERC165 itself\n */\n constructor() internal {\n _registerInterface(_INTERFACE_ID_ERC165);\n }\n\n /**\n * @dev implement supportsInterface(bytes4) using a lookup table\n */\n function supportsInterface(bytes4 interfaceId)\n external\n view\n returns (bool)\n {\n return _supportedInterfaces[interfaceId];\n }\n\n /**\n * @dev internal method for registering an interface\n */\n function _registerInterface(bytes4 interfaceId) internal {\n require(interfaceId != 0xffffffff);\n _supportedInterfaces[interfaceId] = true;\n }\n}\n\ncontract ERC721 is Pausable, ERC165 {\n event Transfer(\n address indexed from,\n address indexed to,\n uint256 indexed tokenId\n );\n\n event Approval(\n address indexed owner,\n address indexed approved,\n uint256 indexed tokenId\n );\n\n event ApprovalForAll(\n address indexed owner,\n address indexed operator,\n bool approved\n );\n\n using SafeMath for uint256;\n using Address for address;\n using Counters for Counters.Counter;\n\n // Equals to `bytes4(keccak256(\"onERC721Received(address,address,uint256,bytes)\"))`\n // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`\n bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;\n\n // Mapping from token ID to owner\n mapping(uint256 => address) private _tokenOwner;\n\n // Mapping from token ID to approved address\n mapping(uint256 => address) private _tokenApprovals;\n\n // Mapping from owner to number of owned token\n // IMPORTANT: this mapping uses Counters lib which is used to protect overflow when incrementing/decrementing a uint\n // use the following functions when interacting with Counters: increment(), decrement(), and current() to get the value\n // see: https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/drafts/Counters.sol\n mapping(address => Counters.Counter) private _ownedTokensCount;\n\n // Mapping from owner to operator approvals\n mapping(address => mapping(address => bool)) private _operatorApprovals;\n\n bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;\n\n constructor() public {\n // register the supported interfaces to conform to ERC721 via ERC165\n _registerInterface(_INTERFACE_ID_ERC721);\n }\n\n function balanceOf(address owner) public view returns (uint256) {\n // DONE return the token balance of given address\n // TIP: remember the functions to use for Counters. you can refresh yourself with the link above\n return Counters.current(_ownedTokensCount[owner]);\n }\n\n function ownerOf(uint256 tokenId) public view returns (address) {\n // DONE: return the owner of the given tokenId\n return _tokenOwner[tokenId];\n }\n\n // @dev Approves another address to transfer the given token ID\n function approve(address to, uint256 tokenId) public {\n // DONE require the given address to not be the owner of the tokenId\n require(\n to != _tokenOwner[tokenId],\n \"the given address must not be the owner of the tokenId\"\n );\n // DONE require the msg sender to be the owner of the contract or isApprovedForAll() to be true\n require(\n msg.sender == owner() ||\n isApprovedForAll(_tokenOwner[tokenId], msg.sender),\n \"must be called by owner unless approved for all\"\n );\n\n // DONE add 'to' address to token approvals\n _tokenApprovals[tokenId] = to;\n\n // DONE emit Approval Event\n emit Approval(_tokenOwner[tokenId], to, tokenId);\n }\n\n function getApproved(uint256 tokenId) public view returns (address) {\n // DONE return token approval if it exists\n return _tokenApprovals[tokenId];\n }\n\n /**\n * @dev Sets or unsets the approval of a given operator\n * An operator is allowed to transfer all tokens of the sender on their behalf\n * @param to operator address to set the approval\n * @param approved representing the status of the approval to be set\n */\n function setApprovalForAll(address to, bool approved) public {\n require(to != msg.sender);\n _operatorApprovals[msg.sender][to] = approved;\n emit ApprovalForAll(msg.sender, to, approved);\n }\n\n /**\n * @dev Tells whether an operator is approved by a given owner\n * @param owner owner address which you want to query the approval of\n * @param operator operator address which you want to query the approval of\n * @return bool whether the given operator is approved by the given owner\n */\n function isApprovedForAll(address owner, address operator)\n public\n view\n returns (bool)\n {\n return _operatorApprovals[owner][operator];\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) public {\n require(\n _isApprovedOrOwner(msg.sender, tokenId),\n \"must be approved or be the owner of the contract\"\n );\n\n _transferFrom(from, to, tokenId);\n }\n\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId\n ) public {\n safeTransferFrom(from, to, tokenId, \"\");\n }\n\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId,\n bytes memory _data\n ) public {\n transferFrom(from, to, tokenId);\n require(_checkOnERC721Received(from, to, tokenId, _data));\n }\n\n /**\n * @dev Returns whether the specified token exists\n * @param tokenId uint256 ID of the token to query the existence of\n * @return bool whether the token exists\n */\n function _exists(uint256 tokenId) internal view returns (bool) {\n address owner = _tokenOwner[tokenId];\n return owner != address(0);\n }\n\n /**\n * @dev Returns whether the given spender can transfer a given token ID\n * @param spender address of the spender to query\n * @param tokenId uint256 ID of the token to be transferred\n * @return bool whether the msg.sender is approved for the given token ID,\n * is an operator of the owner, or is the owner of the token\n */\n function _isApprovedOrOwner(address spender, uint256 tokenId)\n internal\n view\n returns (bool)\n {\n address owner = ownerOf(tokenId);\n return (spender == owner ||\n getApproved(tokenId) == spender ||\n isApprovedForAll(owner, spender));\n }\n\n // @dev Internal function to mint a new token\n // TIP: remember the functions to use for Counters. you can refresh yourself with the link above\n function _mint(address to, uint256 tokenId) internal {\n // DONE revert if given tokenId already exists or given address is invalid\n if (to == address(0)) {\n revert(\"invalid address provided\");\n }\n if (_tokenOwner[tokenId] != address(0)) {\n revert(\"tokenId already exists\");\n }\n\n // DONE mint tokenId to given address & increase token count of owner\n _tokenOwner[tokenId] = to;\n Counters.increment(_ownedTokensCount[to]);\n\n // DONE emit Transfer event\n emit Transfer(address(0), to, tokenId);\n }\n\n // @dev Internal function to transfer ownership of a given token ID to another address.\n // TIP: remember the functions to use for Counters. you can refresh yourself with the link above\n function _transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) internal {\n // DONE: require from address is the owner of the given token\n require(\n from == _tokenOwner[tokenId],\n \"from address must be owner of tokenId\"\n );\n // DONE: require token is being transfered to valid address\n require(to != address(0), \"new token address must be valid\");\n\n // DONE: clear approval\n delete _tokenApprovals[tokenId];\n\n // DONE: update token counts & transfer ownership of the token ID\n Counters.decrement(_ownedTokensCount[from]);\n Counters.increment(_ownedTokensCount[to]);\n\n // DONE: emit correct event\n emit Transfer(from, to, tokenId);\n }\n\n /**\n * @dev Internal function to invoke `onERC721Received` on a target address\n * The call is not executed if the target address is not a contract\n * @param from address representing the previous owner of the given token ID\n * @param to target address that will receive the tokens\n * @param tokenId uint256 ID of the token to be transferred\n * @param _data bytes optional data to send along with the call\n * @return bool whether the call correctly returned the expected magic value\n */\n function _checkOnERC721Received(\n address from,\n address to,\n uint256 tokenId,\n bytes memory _data\n ) internal returns (bool) {\n if (!to.isContract()) {\n return true;\n }\n\n bytes4 retval = IERC721Receiver(to).onERC721Received(\n msg.sender,\n from,\n tokenId,\n _data\n );\n return (retval == _ERC721_RECEIVED);\n }\n\n // @dev Private function to clear current approval of a given token ID\n function _clearApproval(uint256 tokenId) private {\n if (_tokenApprovals[tokenId] != address(0)) {\n _tokenApprovals[tokenId] = address(0);\n }\n }\n}\n\ncontract ERC721Enumerable is ERC165, ERC721 {\n // Mapping from owner to list of owned token IDs\n mapping(address => uint256[]) private _ownedTokens;\n\n // Mapping from token ID to index of the owner tokens list\n mapping(uint256 => uint256) private _ownedTokensIndex;\n\n // Array with all token ids, used for enumeration\n uint256[] private _allTokens;\n\n // Mapping from token id to position in the allTokens array\n mapping(uint256 => uint256) private _allTokensIndex;\n\n bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;\n\n /*\n * 0x780e9d63 ===\n * bytes4(keccak256('totalSupply()')) ^\n * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^\n * bytes4(keccak256('tokenByIndex(uint256)'))\n */\n\n /**\n * @dev Constructor function\n */\n constructor() public {\n // register the supported interface to conform to ERC721Enumerable via ERC165\n _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);\n }\n\n /**\n * @dev Gets the token ID at a given index of the tokens list of the requested owner\n * @param owner address owning the tokens list to be accessed\n * @param index uint256 representing the index to be accessed of the requested tokens list\n * @return uint256 token ID at the given index of the tokens list owned by the requested address\n */\n function tokenOfOwnerByIndex(address owner, uint256 index)\n public\n view\n returns (uint256)\n {\n require(index < balanceOf(owner));\n return _ownedTokens[owner][index];\n }\n\n /**\n * @dev Gets the total amount of tokens stored by the contract\n * @return uint256 representing the total amount of tokens\n */\n function totalSupply() public view returns (uint256) {\n return _allTokens.length;\n }\n\n /**\n * @dev Gets the token ID at a given index of all the tokens in this contract\n * Reverts if the index is greater or equal to the total number of tokens\n * @param index uint256 representing the index to be accessed of the tokens list\n * @return uint256 token ID at the given index of the tokens list\n */\n function tokenByIndex(uint256 index) public view returns (uint256) {\n require(index < totalSupply());\n return _allTokens[index];\n }\n\n /**\n * @dev Internal function to transfer ownership of a given token ID to another address.\n * As opposed to transferFrom, this imposes no restrictions on msg.sender.\n * @param from current owner of the token\n * @param to address to receive the ownership of the given token ID\n * @param tokenId uint256 ID of the token to be transferred\n */\n function _transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) internal {\n super._transferFrom(from, to, tokenId);\n\n _removeTokenFromOwnerEnumeration(from, tokenId);\n\n _addTokenToOwnerEnumeration(to, tokenId);\n }\n\n /**\n * @dev Internal function to mint a new token\n * Reverts if the given token ID already exists\n * @param to address the beneficiary that will own the minted token\n * @param tokenId uint256 ID of the token to be minted\n */\n function _mint(address to, uint256 tokenId) internal {\n super._mint(to, tokenId);\n\n _addTokenToOwnerEnumeration(to, tokenId);\n\n _addTokenToAllTokensEnumeration(tokenId);\n }\n\n /**\n * @dev Gets the list of token IDs of the requested owner\n * @param owner address owning the tokens\n * @return uint256[] List of token IDs owned by the requested address\n */\n function _tokensOfOwner(address owner)\n internal\n view\n returns (uint256[] storage)\n {\n return _ownedTokens[owner];\n }\n\n /**\n * @dev Private function to add a token to this extension's ownership-tracking data structures.\n * @param to address representing the new owner of the given token ID\n * @param tokenId uint256 ID of the token to be added to the tokens list of the given address\n */\n function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {\n _ownedTokensIndex[tokenId] = _ownedTokens[to].length;\n _ownedTokens[to].push(tokenId);\n }\n\n /**\n * @dev Private function to add a token to this extension's token tracking data structures.\n * @param tokenId uint256 ID of the token to be added to the tokens list\n */\n function _addTokenToAllTokensEnumeration(uint256 tokenId) private {\n _allTokensIndex[tokenId] = _allTokens.length;\n _allTokens.push(tokenId);\n }\n\n /**\n * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that\n * while the token is not assigned a new owner, the _ownedTokensIndex mapping is _not_ updated: this allows for\n * gas optimizations e.g. when performing a transfer operation (avoiding double writes).\n * This has O(1) time complexity, but alters the order of the _ownedTokens array.\n * @param from address representing the previous owner of the given token ID\n * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address\n */\n function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId)\n private\n {\n // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and\n // then delete the last slot (swap and pop).\n\n uint256 lastTokenIndex = _ownedTokens[from].length.sub(1);\n uint256 tokenIndex = _ownedTokensIndex[tokenId];\n\n // When the token to delete is the last token, the swap operation is unnecessary\n if (tokenIndex != lastTokenIndex) {\n uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];\n\n _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token\n _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index\n }\n\n // This also deletes the contents at the last position of the array\n _ownedTokens[from].length--;\n\n // Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occupied by\n // lastTokenId, or just over the end of the array if the token was the last one).\n }\n\n /**\n * @dev Private function to remove a token from this extension's token tracking data structures.\n * This has O(1) time complexity, but alters the order of the _allTokens array.\n * @param tokenId uint256 ID of the token to be removed from the tokens list\n */\n function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {\n // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and\n // then delete the last slot (swap and pop).\n\n uint256 lastTokenIndex = _allTokens.length.sub(1);\n uint256 tokenIndex = _allTokensIndex[tokenId];\n\n // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so\n // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding\n // an 'if' statement (like in _removeTokenFromOwnerEnumeration)\n uint256 lastTokenId = _allTokens[lastTokenIndex];\n\n _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token\n _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index\n\n // This also deletes the contents at the last position of the array\n _allTokens.length--;\n _allTokensIndex[tokenId] = 0;\n }\n}\n\ncontract ERC721Metadata is ERC721Enumerable, usingOraclize {\n // DONE: Create private vars for token _name, _symbol, and _baseTokenURI (string)\n string private _name;\n string private _symbol;\n string private _baseTokenURI;\n\n // DONE: create private mapping of tokenId's to token uri's called '_tokenURIs'\n mapping(uint256 => string) private _tokenURIs;\n\n bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;\n\n /*\n * 0x5b5e139f ===\n * bytes4(keccak256('name()')) ^\n * bytes4(keccak256('symbol()')) ^\n * bytes4(keccak256('tokenURI(uint256)'))\n */\n\n constructor(\n string memory name,\n string memory symbol,\n string memory baseTokenURI\n ) public {\n // DONE: set instance var values\n _name = name;\n _symbol = symbol;\n _baseTokenURI = baseTokenURI;\n _registerInterface(_INTERFACE_ID_ERC721_METADATA);\n }\n\n // DONE: create external getter functions for name, symbol, and baseTokenURI\n function name() external view returns (string memory) {\n return _name;\n }\n\n function symbol() external view returns (string memory) {\n return _symbol;\n }\n\n function baseTokenURI() external view returns (string memory) {\n return _baseTokenURI;\n }\n\n function tokenURI(uint256 tokenId) external view returns (string memory) {\n require(_exists(tokenId));\n return _tokenURIs[tokenId];\n }\n\n // DONE: Create an internal function to set the tokenURI of a specified tokenId\n // It should be the _baseTokenURI + the tokenId in string form\n // TIP #1: use strConcat() from the imported oraclizeAPI lib to set the complete token URI\n // TIP #2: you can also use uint2str() to convert a uint to a string\n // see https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol for strConcat()\n // require the token exists before setting\n function setTokenURI(uint256 tokenId) internal {\n require(ownerOf(tokenId) != address(0));\n _tokenURIs[tokenId] = strConcat(_baseTokenURI, uint2str(tokenId));\n }\n}\n\n// DONE's: Create CustomERC721Token contract that inherits from the ERC721Metadata contract. You can name this contract as you please\ncontract RealEstateMarketplaceToken is ERC721Metadata {\n // 1) Pass in appropriate values for the inherited ERC721Metadata contract\n // - make the base token uri: https://s3-us-west-2.amazonaws.com/udacity-blockchain/capstone/\n constructor(string memory name, string memory symbol)\n public\n ERC721Metadata(\n name,\n symbol,\n \"https://s3-us-west-2.amazonaws.com/udacity-blockchain/capstone/\"\n )\n {}\n\n // 2) create a public mint() that does the following:\n // -can only be executed by the contract owner\n // -takes in a 'to' address, tokenId, and tokenURI as parameters\n // -returns a true boolean upon completion of the function\n // -calls the superclass mint and setTokenURI functions\n // NOTE: I removed tokenURI because it wasn't used, as it is dynamically constructed\n // in setTokenURI()\n function mint(address to, uint256 tokenId) public onlyOwner returns (bool) {\n super._mint(to, tokenId);\n setTokenURI(tokenId);\n return true;\n }\n}\n", "sourcePath": "C:\\Users\\jerom\\source\\Blockchain-Capstone\\eth-contracts\\contracts\\RealEstateMarketplaceToken.sol", "ast": { "absolutePath": "project:/contracts/RealEstateMarketplaceToken.sol", "exportedSymbols": { "ERC165": [ 6852 ], "ERC721": [ 7349 ], "ERC721Enumerable": [ 7647 ], "ERC721Metadata": [ 7760 ], "Ownable": [ 6728 ], "Pausable": [ 6806 ], "RealEstateMarketplaceToken": [ 7801 ] }, "id": 7802, "nodeType": "SourceUnit", "nodes": [ { "id": 6653, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:6" }, { "absolutePath": "openzeppelin-solidity/contracts/utils/Address.sol", "file": "openzeppelin-solidity/contracts/utils/Address.sol", "id": 6654, "nodeType": "ImportDirective", "scope": 7802, "sourceUnit": 327, "src": "25:59:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "openzeppelin-solidity/contracts/drafts/Counters.sol", "file": "openzeppelin-solidity/contracts/drafts/Counters.sol", "id": 6655, "nodeType": "ImportDirective", "scope": 7802, "sourceUnit": 49, "src": "85:61:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "file": "openzeppelin-solidity/contracts/math/SafeMath.sol", "id": 6656, "nodeType": "ImportDirective", "scope": 7802, "sourceUnit": 236, "src": "147:59:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol", "file": "openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol", "id": 6657, "nodeType": "ImportDirective", "scope": 7802, "sourceUnit": 252, "src": "207:74:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "project:/contracts/Oraclize.sol", "file": "./Oraclize.sol", "id": 6658, "nodeType": "ImportDirective", "scope": 7802, "sourceUnit": 6652, "src": "282:24:6", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 6728, "linearizedBaseContracts": [ 6728 ], "name": "Ownable", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 6660, "name": "_owner", "nodeType": "VariableDeclaration", "scope": 6728, "src": "429:22:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6659, "name": "address", "nodeType": "ElementaryTypeName", "src": "429:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "private" }, { "anonymous": false, "documentation": null, "id": 6666, "name": "OwnershipTransfer", "nodeType": "EventDefinition", "parameters": { "id": 6665, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6662, "indexed": false, "name": "oldOwner", "nodeType": "VariableDeclaration", "scope": 6666, "src": "482:16:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6661, "name": "address", "nodeType": "ElementaryTypeName", "src": "482:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6664, "indexed": false, "name": "newOwner", "nodeType": "VariableDeclaration", "scope": 6666, "src": "500:16:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6663, "name": "address", "nodeType": "ElementaryTypeName", "src": "500:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "481:36:6" }, "src": "458:60:6" }, { "body": { "id": 6673, "nodeType": "Block", "src": "571:30:6", "statements": [ { "expression": { "argumentTypes": null, "id": 6671, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6660, "src": "588:6:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "functionReturnParameters": 6670, "id": 6672, "nodeType": "Return", "src": "581:13:6" } ] }, "documentation": null, "id": 6674, "implemented": true, "kind": "function", "modifiers": [], "name": "owner", "nodeType": "FunctionDefinition", "parameters": { "id": 6667, "nodeType": "ParameterList", "parameters": [], "src": "538:2:6" }, "returnParameters": { "id": 6670, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6669, "name": "", "nodeType": "VariableDeclaration", "scope": 6674, "src": "562:7:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6668, "name": "address", "nodeType": "ElementaryTypeName", "src": "562:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "561:9:6" }, "scope": 6728, "src": "524:77:6", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 6688, "nodeType": "Block", "src": "732:88:6", "statements": [ { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6678, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6660, "src": "765:6:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6679, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "773:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6680, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "773:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address_payable", "typeString": "address payable" } ], "id": 6677, "name": "OwnershipTransfer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6666, "src": "747:17:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, "id": 6681, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "747:37:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6682, "nodeType": "EmitStatement", "src": "742:42:6" }, { "expression": { "argumentTypes": null, "id": 6686, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6683, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6660, "src": "794:6:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6684, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "803:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6685, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "803:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "794:19:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 6687, "nodeType": "ExpressionStatement", "src": "794:19:6" } ] }, "documentation": null, "id": 6689, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 6675, "nodeType": "ParameterList", "parameters": [], "src": "722:2:6" }, "returnParameters": { "id": 6676, "nodeType": "ParameterList", "parameters": [], "src": "732:0:6" }, "scope": 6728, "src": "711:109:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 6700, "nodeType": "Block", "src": "954:156:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 6695, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6692, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "985:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6693, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "985:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 6694, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6660, "src": "999:6:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "985:20:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "746869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656420627920746865206f776e6572206f662074686520636f6e7472616374", "id": 6696, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1019:63:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_ba3e7562fcf431c27b189e6cf5aa54e3a61f3e032cb6876fab3870c29611e6e6", "typeString": "literal_string \"this function can only be called by the owner of the contract\"" }, "value": "this function can only be called by the owner of the contract" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_ba3e7562fcf431c27b189e6cf5aa54e3a61f3e032cb6876fab3870c29611e6e6", "typeString": "literal_string \"this function can only be called by the owner of the contract\"" } ], "id": 6691, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "src": "964:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 6697, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "964:128:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6698, "nodeType": "ExpressionStatement", "src": "964:128:6" }, { "id": 6699, "nodeType": "PlaceholderStatement", "src": "1102:1:6" } ] }, "documentation": null, "id": 6701, "name": "onlyOwner", "nodeType": "ModifierDefinition", "parameters": { "id": 6690, "nodeType": "ParameterList", "parameters": [], "src": "951:2:6" }, "src": "933:177:6", "visibility": "internal" }, { "body": { "id": 6726, "nodeType": "Block", "src": "1343:305:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 6713, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 6709, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6703, "src": "1420:8:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 6711, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1440:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 6710, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1432:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 6712, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1432:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "1420:22:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "6e6577206f776e65722063616e6e6f74206265203078302061646472657373", "id": 6714, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1444:33:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_bd9ab7ce17a059af092b4286e23ea4d700ff2750e28fe38d9bef50d9c723469d", "typeString": "literal_string \"new owner cannot be 0x0 address\"" }, "value": "new owner cannot be 0x0 address" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_bd9ab7ce17a059af092b4286e23ea4d700ff2750e28fe38d9bef50d9c723469d", "typeString": "literal_string \"new owner cannot be 0x0 address\"" } ], "id": 6708, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "src": "1412:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 6715, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1412:66:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6716, "nodeType": "ExpressionStatement", "src": "1412:66:6" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6718, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6660, "src": "1597:6:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 6719, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6703, "src": "1605:8:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 6717, "name": "OwnershipTransfer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6666, "src": "1579:17:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$", "typeString": "function (address,address)" } }, "id": 6720, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1579:35:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6721, "nodeType": "EmitStatement", "src": "1574:40:6" }, { "expression": { "argumentTypes": null, "id": 6724, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6722, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6660, "src": "1624:6:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 6723, "name": "newOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6703, "src": "1633:8:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1624:17:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 6725, "nodeType": "ExpressionStatement", "src": "1624:17:6" } ] }, "documentation": null, "id": 6727, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 6706, "modifierName": { "argumentTypes": null, "id": 6705, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6701, "src": "1333:9:6", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "1333:9:6" } ], "name": "transferOwnership", "nodeType": "FunctionDefinition", "parameters": { "id": 6704, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6703, "name": "newOwner", "nodeType": "VariableDeclaration", "scope": 6727, "src": "1308:16:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6702, "name": "address", "nodeType": "ElementaryTypeName", "src": "1308:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "1307:18:6" }, "returnParameters": { "id": 6707, "nodeType": "ParameterList", "parameters": [], "src": "1343:0:6" }, "scope": 6728, "src": "1281:367:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 7802, "src": "308:1342:6" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6729, "name": "Ownable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6728, "src": "1750:7:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Ownable_$6728", "typeString": "contract Ownable" } }, "id": 6730, "nodeType": "InheritanceSpecifier", "src": "1750:7:6" } ], "contractDependencies": [ 6728 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 6806, "linearizedBaseContracts": [ 6806, 6728 ], "name": "Pausable", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 6732, "name": "_paused", "nodeType": "VariableDeclaration", "scope": 6806, "src": "1830:20:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6731, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1830:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "private" }, { "anonymous": false, "documentation": null, "id": 6736, "name": "Paused", "nodeType": "EventDefinition", "parameters": { "id": 6735, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6734, "indexed": false, "name": "", "nodeType": "VariableDeclaration", "scope": 6736, "src": "1968:7:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6733, "name": "address", "nodeType": "ElementaryTypeName", "src": "1968:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "1967:9:6" }, "src": "1955:22:6" }, { "anonymous": false, "documentation": null, "id": 6740, "name": "Unpaused", "nodeType": "EventDefinition", "parameters": { "id": 6739, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6738, "indexed": false, "name": "", "nodeType": "VariableDeclaration", "scope": 6740, "src": "1997:7:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6737, "name": "address", "nodeType": "ElementaryTypeName", "src": "1997:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "1996:9:6" }, "src": "1982:24:6" }, { "body": { "id": 6772, "nodeType": "Block", "src": "2147:284:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 6750, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 6748, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6732, "src": "2178:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "id": 6749, "name": "newPauseValue", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6742, "src": "2189:13:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "2178:24:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "70617573656420737461746520697320616c726561647920696e2074686973207374617465", "id": 6751, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2216:39:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_b69146a3a78ae073537e9ede7e751faba5526c951eb0616243a7a52da6d4e1f4", "typeString": "literal_string \"paused state is already in this state\"" }, "value": "paused state is already in this state" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_b69146a3a78ae073537e9ede7e751faba5526c951eb0616243a7a52da6d4e1f4", "typeString": "literal_string \"paused state is already in this state\"" } ], "id": 6747, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "src": "2157:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 6752, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2157:108:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6753, "nodeType": "ExpressionStatement", "src": "2157:108:6" }, { "expression": { "argumentTypes": null, "id": 6756, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6754, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6732, "src": "2275:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 6755, "name": "newPauseValue", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6742, "src": "2285:13:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "2275:23:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 6757, "nodeType": "ExpressionStatement", "src": "2275:23:6" }, { "condition": { "argumentTypes": null, "id": 6758, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6732, "src": "2312:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": { "id": 6770, "nodeType": "Block", "src": "2375:50:6", "statements": [ { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6766, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "2403:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6767, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2403:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address_payable", "typeString": "address payable" } ], "id": 6765, "name": "Unpaused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6740, "src": "2394:8:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 6768, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2394:20:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6769, "nodeType": "EmitStatement", "src": "2389:25:6" } ] }, "id": 6771, "nodeType": "IfStatement", "src": "2308:117:6", "trueBody": { "id": 6764, "nodeType": "Block", "src": "2321:48:6", "statements": [ { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6760, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "2347:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6761, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2347:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address_payable", "typeString": "address payable" } ], "id": 6759, "name": "Paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6736, "src": "2340:6:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 6762, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2340:18:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6763, "nodeType": "EmitStatement", "src": "2335:23:6" } ] } } ] }, "documentation": null, "id": 6773, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 6745, "modifierName": { "argumentTypes": null, "id": 6744, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6701, "src": "2137:9:6", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "2137:9:6" } ], "name": "setPaused", "nodeType": "FunctionDefinition", "parameters": { "id": 6743, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6742, "name": "newPauseValue", "nodeType": "VariableDeclaration", "scope": 6773, "src": "2110:18:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6741, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2110:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "2109:20:6" }, "returnParameters": { "id": 6746, "nodeType": "ParameterList", "parameters": [], "src": "2147:0:6" }, "scope": 6806, "src": "2091:340:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 6785, "nodeType": "Block", "src": "2548:67:6", "statements": [ { "expression": { "argumentTypes": null, "id": 6778, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 6776, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6732, "src": "2558:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "66616c7365", "id": 6777, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "2568:5:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "false" }, "src": "2558:15:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 6779, "nodeType": "ExpressionStatement", "src": "2558:15:6" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6781, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "2597:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6782, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "2597:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address_payable", "typeString": "address payable" } ], "id": 6780, "name": "Unpaused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6740, "src": "2588:8:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$", "typeString": "function (address)" } }, "id": 6783, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2588:20:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6784, "nodeType": "EmitStatement", "src": "2583:25:6" } ] }, "documentation": null, "id": 6786, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 6774, "nodeType": "ParameterList", "parameters": [], "src": "2536:2:6" }, "returnParameters": { "id": 6775, "nodeType": "ParameterList", "parameters": [], "src": "2548:0:6" }, "scope": 6806, "src": "2525:90:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 6795, "nodeType": "Block", "src": "2747:88:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6790, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "2765:8:6", "subExpression": { "argumentTypes": null, "id": 6789, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6732, "src": "2766:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "636f6e7472616374206d757374206e6f742062652070617573656420746f20636f6e74696e7565", "id": 6791, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2775:41:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_d17c5c02084563d7bbb82ae001e72642aa795e111016796674979e3dedda2c0f", "typeString": "literal_string \"contract must not be paused to continue\"" }, "value": "contract must not be paused to continue" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_d17c5c02084563d7bbb82ae001e72642aa795e111016796674979e3dedda2c0f", "typeString": "literal_string \"contract must not be paused to continue\"" } ], "id": 6788, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "src": "2757:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 6792, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2757:60:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6793, "nodeType": "ExpressionStatement", "src": "2757:60:6" }, { "id": 6794, "nodeType": "PlaceholderStatement", "src": "2827:1:6" } ] }, "documentation": null, "id": 6796, "name": "whenNotPaused", "nodeType": "ModifierDefinition", "parameters": { "id": 6787, "nodeType": "ParameterList", "parameters": [], "src": "2744:2:6" }, "src": "2722:113:6", "visibility": "internal" }, { "body": { "id": 6804, "nodeType": "Block", "src": "2859:83:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6799, "name": "_paused", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6732, "src": "2877:7:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "636f6e7472616374206d7573742062652070617573656420746f20636f6e74696e7565", "id": 6800, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "2886:37:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_0cd7439887f4857265468bf24dd469f4999c6f553ad0853094e0f8a657ac6e25", "typeString": "literal_string \"contract must be paused to continue\"" }, "value": "contract must be paused to continue" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_0cd7439887f4857265468bf24dd469f4999c6f553ad0853094e0f8a657ac6e25", "typeString": "literal_string \"contract must be paused to continue\"" } ], "id": 6798, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "src": "2869:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 6801, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "2869:55:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6802, "nodeType": "ExpressionStatement", "src": "2869:55:6" }, { "id": 6803, "nodeType": "PlaceholderStatement", "src": "2934:1:6" } ] }, "documentation": null, "id": 6805, "name": "paused", "nodeType": "ModifierDefinition", "parameters": { "id": 6797, "nodeType": "ParameterList", "parameters": [], "src": "2856:2:6" }, "src": "2841:101:6", "visibility": "internal" } ], "scope": 7802, "src": "1729:1215:6" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 6852, "linearizedBaseContracts": [ 6852 ], "name": "ERC165", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "id": 6809, "name": "_INTERFACE_ID_ERC165", "nodeType": "VariableDeclaration", "scope": 6852, "src": "2968:57:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 6807, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "2968:6:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30783031666663396137", "id": 6808, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3015:10:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_33540519_by_1", "typeString": "int_const 33540519" }, "value": "0x01ffc9a7" }, "visibility": "private" }, { "constant": false, "id": 6813, "name": "_supportedInterfaces", "nodeType": "VariableDeclaration", "scope": 6852, "src": "3214:52:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "typeName": { "id": 6812, "keyType": { "id": 6810, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "3222:6:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "Mapping", "src": "3214:23:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" }, "valueType": { "id": 6811, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3232:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "value": null, "visibility": "private" }, { "body": { "id": 6820, "nodeType": "Block", "src": "3407:57:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6817, "name": "_INTERFACE_ID_ERC165", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6809, "src": "3436:20:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "id": 6816, "name": "_registerInterface", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6851, "src": "3417:18:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$", "typeString": "function (bytes4)" } }, "id": 6818, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3417:40:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6819, "nodeType": "ExpressionStatement", "src": "3417:40:6" } ] }, "documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself", "id": 6821, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 6814, "nodeType": "ParameterList", "parameters": [], "src": "3395:2:6" }, "returnParameters": { "id": 6815, "nodeType": "ParameterList", "parameters": [], "src": "3407:0:6" }, "scope": 6852, "src": "3384:80:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 6832, "nodeType": "Block", "src": "3659:57:6", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6828, "name": "_supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6813, "src": "3676:20:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 6830, "indexExpression": { "argumentTypes": null, "id": 6829, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6823, "src": "3697:11:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "3676:33:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 6827, "id": 6831, "nodeType": "Return", "src": "3669:40:6" } ] }, "documentation": "@dev implement supportsInterface(bytes4) using a lookup table", "id": 6833, "implemented": true, "kind": "function", "modifiers": [], "name": "supportsInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 6824, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6823, "name": "interfaceId", "nodeType": "VariableDeclaration", "scope": 6833, "src": "3582:18:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 6822, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "3582:6:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "3581:20:6" }, "returnParameters": { "id": 6827, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6826, "name": "", "nodeType": "VariableDeclaration", "scope": 6833, "src": "3649:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6825, "name": "bool", "nodeType": "ElementaryTypeName", "src": "3649:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "3648:6:6" }, "scope": 6852, "src": "3555:161:6", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": { "id": 6850, "nodeType": "Block", "src": "3852:101:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 6841, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 6839, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6835, "src": "3870:11:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "hexValue": "30786666666666666666", "id": 6840, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "3885:10:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_4294967295_by_1", "typeString": "int_const 4294967295" }, "value": "0xffffffff" }, "src": "3870:25:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 6838, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "3862:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 6842, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "3862:34:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6843, "nodeType": "ExpressionStatement", "src": "3862:34:6" }, { "expression": { "argumentTypes": null, "id": 6848, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6844, "name": "_supportedInterfaces", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6813, "src": "3906:20:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_bytes4_$_t_bool_$", "typeString": "mapping(bytes4 => bool)" } }, "id": 6846, "indexExpression": { "argumentTypes": null, "id": 6845, "name": "interfaceId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6835, "src": "3927:11:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "3906:33:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "74727565", "id": 6847, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "3942:4:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "src": "3906:40:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 6849, "nodeType": "ExpressionStatement", "src": "3906:40:6" } ] }, "documentation": "@dev internal method for registering an interface", "id": 6851, "implemented": true, "kind": "function", "modifiers": [], "name": "_registerInterface", "nodeType": "FunctionDefinition", "parameters": { "id": 6836, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6835, "name": "interfaceId", "nodeType": "VariableDeclaration", "scope": 6851, "src": "3823:18:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 6834, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "3823:6:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "src": "3822:20:6" }, "returnParameters": { "id": 6837, "nodeType": "ParameterList", "parameters": [], "src": "3852:0:6" }, "scope": 6852, "src": "3795:158:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], "scope": 7802, "src": "2946:1009:6" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6853, "name": "Pausable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6806, "src": "3976:8:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Pausable_$6806", "typeString": "contract Pausable" } }, "id": 6854, "nodeType": "InheritanceSpecifier", "src": "3976:8:6" }, { "arguments": null, "baseName": { "contractScope": null, "id": 6855, "name": "ERC165", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6852, "src": "3986:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC165_$6852", "typeString": "contract ERC165" } }, "id": 6856, "nodeType": "InheritanceSpecifier", "src": "3986:6:6" } ], "contractDependencies": [ 6728, 6806, 6852 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 7349, "linearizedBaseContracts": [ 7349, 6852, 6806, 6728 ], "name": "ERC721", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 6864, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 6863, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6858, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", "scope": 6864, "src": "4023:20:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6857, "name": "address", "nodeType": "ElementaryTypeName", "src": "4023:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6860, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", "scope": 6864, "src": "4053:18:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6859, "name": "address", "nodeType": "ElementaryTypeName", "src": "4053:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6862, "indexed": true, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 6864, "src": "4081:23:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6861, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4081:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "4013:97:6" }, "src": "3999:112:6" }, { "anonymous": false, "documentation": null, "id": 6872, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 6871, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6866, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 6872, "src": "4141:21:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6865, "name": "address", "nodeType": "ElementaryTypeName", "src": "4141:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6868, "indexed": true, "name": "approved", "nodeType": "VariableDeclaration", "scope": 6872, "src": "4172:24:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6867, "name": "address", "nodeType": "ElementaryTypeName", "src": "4172:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6870, "indexed": true, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 6872, "src": "4206:23:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6869, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4206:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "4131:104:6" }, "src": "4117:119:6" }, { "anonymous": false, "documentation": null, "id": 6880, "name": "ApprovalForAll", "nodeType": "EventDefinition", "parameters": { "id": 6879, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6874, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 6880, "src": "4272:21:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6873, "name": "address", "nodeType": "ElementaryTypeName", "src": "4272:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6876, "indexed": true, "name": "operator", "nodeType": "VariableDeclaration", "scope": 6880, "src": "4303:24:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6875, "name": "address", "nodeType": "ElementaryTypeName", "src": "4303:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6878, "indexed": false, "name": "approved", "nodeType": "VariableDeclaration", "scope": 6880, "src": "4337:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6877, "name": "bool", "nodeType": "ElementaryTypeName", "src": "4337:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "4262:94:6" }, "src": "4242:115:6" }, { "id": 6883, "libraryName": { "contractScope": null, "id": 6881, "name": "SafeMath", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 235, "src": "4369:8:6", "typeDescriptions": { "typeIdentifier": "t_contract$_SafeMath_$235", "typeString": "library SafeMath" } }, "nodeType": "UsingForDirective", "src": "4363:27:6", "typeName": { "id": 6882, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4382:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, { "id": 6886, "libraryName": { "contractScope": null, "id": 6884, "name": "Address", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 326, "src": "4401:7:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Address_$326", "typeString": "library Address" } }, "nodeType": "UsingForDirective", "src": "4395:26:6", "typeName": { "id": 6885, "name": "address", "nodeType": "ElementaryTypeName", "src": "4413:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } }, { "id": 6889, "libraryName": { "contractScope": null, "id": 6887, "name": "Counters", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 48, "src": "4432:8:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Counters_$48", "typeString": "library Counters" } }, "nodeType": "UsingForDirective", "src": "4426:36:6", "typeName": { "contractScope": null, "id": 6888, "name": "Counters.Counter", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8, "src": "4445:16:6", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$8_storage_ptr", "typeString": "struct Counters.Counter" } } }, { "constant": true, "id": 6892, "name": "_ERC721_RECEIVED", "nodeType": "VariableDeclaration", "scope": 7349, "src": "4640:53:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 6890, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "4640:6:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30783135306237613032", "id": 6891, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "4683:10:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_353073666_by_1", "typeString": "int_const 353073666" }, "value": "0x150b7a02" }, "visibility": "private" }, { "constant": false, "id": 6896, "name": "_tokenOwner", "nodeType": "VariableDeclaration", "scope": 7349, "src": "4738:47:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" }, "typeName": { "id": 6895, "keyType": { "id": 6893, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4746:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "4738:27:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" }, "valueType": { "id": 6894, "name": "address", "nodeType": "ElementaryTypeName", "src": "4757:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } }, "value": null, "visibility": "private" }, { "constant": false, "id": 6900, "name": "_tokenApprovals", "nodeType": "VariableDeclaration", "scope": 7349, "src": "4841:51:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" }, "typeName": { "id": 6899, "keyType": { "id": 6897, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "4849:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "4841:27:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" }, "valueType": { "id": 6898, "name": "address", "nodeType": "ElementaryTypeName", "src": "4860:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } }, "value": null, "visibility": "private" }, { "constant": false, "id": 6904, "name": "_ownedTokensCount", "nodeType": "VariableDeclaration", "scope": 7349, "src": "5303:62:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Counter_$8_storage_$", "typeString": "mapping(address => struct Counters.Counter)" }, "typeName": { "id": 6903, "keyType": { "id": 6901, "name": "address", "nodeType": "ElementaryTypeName", "src": "5311:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "5303:36:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Counter_$8_storage_$", "typeString": "mapping(address => struct Counters.Counter)" }, "valueType": { "contractScope": null, "id": 6902, "name": "Counters.Counter", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8, "src": "5322:16:6", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$8_storage_ptr", "typeString": "struct Counters.Counter" } } }, "value": null, "visibility": "private" }, { "constant": false, "id": 6910, "name": "_operatorApprovals", "nodeType": "VariableDeclaration", "scope": 7349, "src": "5420:71:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(address => mapping(address => bool))" }, "typeName": { "id": 6909, "keyType": { "id": 6905, "name": "address", "nodeType": "ElementaryTypeName", "src": "5428:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "5420:44:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(address => mapping(address => bool))" }, "valueType": { "id": 6908, "keyType": { "id": 6906, "name": "address", "nodeType": "ElementaryTypeName", "src": "5447:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "5439:24:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" }, "valueType": { "id": 6907, "name": "bool", "nodeType": "ElementaryTypeName", "src": "5458:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } } }, "value": null, "visibility": "private" }, { "constant": true, "id": 6913, "name": "_INTERFACE_ID_ERC721", "nodeType": "VariableDeclaration", "scope": 7349, "src": "5498:57:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 6911, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "5498:6:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30783830616335386364", "id": 6912, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "5545:10:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2158778573_by_1", "typeString": "int_const 2158778573" }, "value": "0x80ac58cd" }, "visibility": "private" }, { "body": { "id": 6920, "nodeType": "Block", "src": "5583:134:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 6917, "name": "_INTERFACE_ID_ERC721", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6913, "src": "5689:20:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "id": 6916, "name": "_registerInterface", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6851, "src": "5670:18:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$", "typeString": "function (bytes4)" } }, "id": 6918, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5670:40:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6919, "nodeType": "ExpressionStatement", "src": "5670:40:6" } ] }, "documentation": null, "id": 6921, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 6914, "nodeType": "ParameterList", "parameters": [], "src": "5573:2:6" }, "returnParameters": { "id": 6915, "nodeType": "ParameterList", "parameters": [], "src": "5583:0:6" }, "scope": 7349, "src": "5562:155:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 6935, "nodeType": "Block", "src": "5787:229:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6930, "name": "_ownedTokensCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6904, "src": "5984:17:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Counter_$8_storage_$", "typeString": "mapping(address => struct Counters.Counter storage ref)" } }, "id": 6932, "indexExpression": { "argumentTypes": null, "id": 6931, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6923, "src": "6002:5:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "5984:24:6", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$8_storage", "typeString": "struct Counters.Counter storage ref" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_Counter_$8_storage", "typeString": "struct Counters.Counter storage ref" } ], "expression": { "argumentTypes": null, "id": 6928, "name": "Counters", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 48, "src": "5967:8:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Counters_$48_$", "typeString": "type(library Counters)" } }, "id": 6929, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "current", "nodeType": "MemberAccess", "referencedDeclaration": 19, "src": "5967:16:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_struct$_Counter_$8_storage_ptr_$returns$_t_uint256_$", "typeString": "function (struct Counters.Counter storage pointer) view returns (uint256)" } }, "id": 6933, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "5967:42:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 6927, "id": 6934, "nodeType": "Return", "src": "5960:49:6" } ] }, "documentation": null, "id": 6936, "implemented": true, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { "id": 6924, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6923, "name": "owner", "nodeType": "VariableDeclaration", "scope": 6936, "src": "5742:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6922, "name": "address", "nodeType": "ElementaryTypeName", "src": "5742:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "5741:15:6" }, "returnParameters": { "id": 6927, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6926, "name": "", "nodeType": "VariableDeclaration", "scope": 6936, "src": "5778:7:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6925, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "5778:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "5777:9:6" }, "scope": 7349, "src": "5723:293:6", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 6947, "nodeType": "Block", "src": "6086:99:6", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6943, "name": "_tokenOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6896, "src": "6158:11:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 6945, "indexExpression": { "argumentTypes": null, "id": 6944, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6938, "src": "6170:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "6158:20:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "functionReturnParameters": 6942, "id": 6946, "nodeType": "Return", "src": "6151:27:6" } ] }, "documentation": null, "id": 6948, "implemented": true, "kind": "function", "modifiers": [], "name": "ownerOf", "nodeType": "FunctionDefinition", "parameters": { "id": 6939, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6938, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 6948, "src": "6039:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6937, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "6039:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "6038:17:6" }, "returnParameters": { "id": 6942, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6941, "name": "", "nodeType": "VariableDeclaration", "scope": 6948, "src": "6077:7:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6940, "name": "address", "nodeType": "ElementaryTypeName", "src": "6077:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "6076:9:6" }, "scope": 7349, "src": "6022:163:6", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 6995, "nodeType": "Block", "src": "6315:707:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 6960, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 6956, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6950, "src": "6423:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6957, "name": "_tokenOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6896, "src": "6429:11:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 6959, "indexExpression": { "argumentTypes": null, "id": 6958, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6952, "src": "6441:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "6429:20:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "6423:26:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "74686520676976656e2061646472657373206d757374206e6f7420626520746865206f776e6572206f662074686520746f6b656e4964", "id": 6961, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6463:56:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_81a360bc52c14c134cb7d9160492675febfaf971920beb29b1bae55618d469e5", "typeString": "literal_string \"the given address must not be the owner of the tokenId\"" }, "value": "the given address must not be the owner of the tokenId" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_81a360bc52c14c134cb7d9160492675febfaf971920beb29b1bae55618d469e5", "typeString": "literal_string \"the given address must not be the owner of the tokenId\"" } ], "id": 6955, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "src": "6402:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 6962, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6402:127:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6963, "nodeType": "ExpressionStatement", "src": "6402:127:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 6977, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 6969, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6965, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "6664:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6966, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "6664:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 6967, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6674, "src": "6678:5:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 6968, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6678:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "6664:21:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "||", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6971, "name": "_tokenOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6896, "src": "6722:11:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 6973, "indexExpression": { "argumentTypes": null, "id": 6972, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6952, "src": "6734:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "6722:20:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 6974, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "6744:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 6975, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "6744:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address_payable", "typeString": "address payable" } ], "id": 6970, "name": "isApprovedForAll", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7055, "src": "6705:16:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$returns$_t_bool_$", "typeString": "function (address,address) view returns (bool)" } }, "id": 6976, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6705:50:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "6664:91:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "6d7573742062652063616c6c6564206279206f776e657220756e6c65737320617070726f76656420666f7220616c6c", "id": 6978, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "6769:49:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_d18ad11708fa8fd864f8eafe6efb8b4caf256aa0a745c32d6f46b52a471cd79f", "typeString": "literal_string \"must be called by owner unless approved for all\"" }, "value": "must be called by owner unless approved for all" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_d18ad11708fa8fd864f8eafe6efb8b4caf256aa0a745c32d6f46b52a471cd79f", "typeString": "literal_string \"must be called by owner unless approved for all\"" } ], "id": 6964, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "src": "6643:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 6979, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6643:185:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6980, "nodeType": "ExpressionStatement", "src": "6643:185:6" }, { "expression": { "argumentTypes": null, "id": 6985, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6981, "name": "_tokenApprovals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6900, "src": "6891:15:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 6983, "indexExpression": { "argumentTypes": null, "id": 6982, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6952, "src": "6907:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "6891:24:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 6984, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6950, "src": "6918:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "6891:29:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 6986, "nodeType": "ExpressionStatement", "src": "6891:29:6" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 6988, "name": "_tokenOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6896, "src": "6981:11:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 6990, "indexExpression": { "argumentTypes": null, "id": 6989, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6952, "src": "6993:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "6981:20:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 6991, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6950, "src": "7003:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 6992, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6952, "src": "7007:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 6987, "name": "Approval", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6872, "src": "6972:8:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, "id": 6993, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "6972:43:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 6994, "nodeType": "EmitStatement", "src": "6967:48:6" } ] }, "documentation": null, "id": 6996, "implemented": true, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 6953, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6950, "name": "to", "nodeType": "VariableDeclaration", "scope": 6996, "src": "6279:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6949, "name": "address", "nodeType": "ElementaryTypeName", "src": "6279:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6952, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 6996, "src": "6291:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6951, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "6291:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "6278:29:6" }, "returnParameters": { "id": 6954, "nodeType": "ParameterList", "parameters": [], "src": "6315:0:6" }, "scope": 7349, "src": "6262:760:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 7007, "nodeType": "Block", "src": "7096:99:6", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7003, "name": "_tokenApprovals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6900, "src": "7164:15:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 7005, "indexExpression": { "argumentTypes": null, "id": 7004, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6998, "src": "7180:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "7164:24:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "functionReturnParameters": 7002, "id": 7006, "nodeType": "Return", "src": "7157:31:6" } ] }, "documentation": null, "id": 7008, "implemented": true, "kind": "function", "modifiers": [], "name": "getApproved", "nodeType": "FunctionDefinition", "parameters": { "id": 6999, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6998, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7008, "src": "7049:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6997, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "7049:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "7048:17:6" }, "returnParameters": { "id": 7002, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7001, "name": "", "nodeType": "VariableDeclaration", "scope": 7008, "src": "7087:7:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7000, "name": "address", "nodeType": "ElementaryTypeName", "src": "7087:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "7086:9:6" }, "scope": 7349, "src": "7028:167:6", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 7038, "nodeType": "Block", "src": "7548:152:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 7019, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 7016, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7010, "src": "7566:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7017, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "7572:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 7018, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "7572:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "7566:16:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 7015, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "7558:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 7020, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7558:25:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7021, "nodeType": "ExpressionStatement", "src": "7558:25:6" }, { "expression": { "argumentTypes": null, "id": 7029, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7022, "name": "_operatorApprovals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6910, "src": "7593:18:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(address => mapping(address => bool))" } }, "id": 7026, "indexExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7023, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "7612:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 7024, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "7612:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "7593:30:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 7027, "indexExpression": { "argumentTypes": null, "id": 7025, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7010, "src": "7624:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "7593:34:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 7028, "name": "approved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7012, "src": "7630:8:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "7593:45:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "id": 7030, "nodeType": "ExpressionStatement", "src": "7593:45:6" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7032, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "7668:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 7033, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "7668:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, { "argumentTypes": null, "id": 7034, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7010, "src": "7680:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7035, "name": "approved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7012, "src": "7684:8:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 7031, "name": "ApprovalForAll", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6880, "src": "7653:14:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_bool_$returns$__$", "typeString": "function (address,address,bool)" } }, "id": 7036, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "7653:40:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7037, "nodeType": "EmitStatement", "src": "7648:45:6" } ] }, "documentation": "@dev Sets or unsets the approval of a given operator\nAn operator is allowed to transfer all tokens of the sender on their behalf\n@param to operator address to set the approval\n@param approved representing the status of the approval to be set", "id": 7039, "implemented": true, "kind": "function", "modifiers": [], "name": "setApprovalForAll", "nodeType": "FunctionDefinition", "parameters": { "id": 7013, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7010, "name": "to", "nodeType": "VariableDeclaration", "scope": 7039, "src": "7514:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7009, "name": "address", "nodeType": "ElementaryTypeName", "src": "7514:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7012, "name": "approved", "nodeType": "VariableDeclaration", "scope": 7039, "src": "7526:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 7011, "name": "bool", "nodeType": "ElementaryTypeName", "src": "7526:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "7513:27:6" }, "returnParameters": { "id": 7014, "nodeType": "ParameterList", "parameters": [], "src": "7548:0:6" }, "scope": 7349, "src": "7487:213:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 7054, "nodeType": "Block", "src": "8135:59:6", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7048, "name": "_operatorApprovals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6910, "src": "8152:18:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$", "typeString": "mapping(address => mapping(address => bool))" } }, "id": 7050, "indexExpression": { "argumentTypes": null, "id": 7049, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7041, "src": "8171:5:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "8152:25:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", "typeString": "mapping(address => bool)" } }, "id": 7052, "indexExpression": { "argumentTypes": null, "id": 7051, "name": "operator", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7043, "src": "8178:8:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "8152:35:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 7047, "id": 7053, "nodeType": "Return", "src": "8145:42:6" } ] }, "documentation": "@dev Tells whether an operator is approved by a given owner\n@param owner owner address which you want to query the approval of\n@param operator operator address which you want to query the approval of\n@return bool whether the given operator is approved by the given owner", "id": 7055, "implemented": true, "kind": "function", "modifiers": [], "name": "isApprovedForAll", "nodeType": "FunctionDefinition", "parameters": { "id": 7044, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7041, "name": "owner", "nodeType": "VariableDeclaration", "scope": 7055, "src": "8047:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7040, "name": "address", "nodeType": "ElementaryTypeName", "src": "8047:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7043, "name": "operator", "nodeType": "VariableDeclaration", "scope": 7055, "src": "8062:16:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7042, "name": "address", "nodeType": "ElementaryTypeName", "src": "8062:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "8046:33:6" }, "returnParameters": { "id": 7047, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7046, "name": "", "nodeType": "VariableDeclaration", "scope": 7055, "src": "8125:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 7045, "name": "bool", "nodeType": "ElementaryTypeName", "src": "8125:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "8124:6:6" }, "scope": 7349, "src": "8021:173:6", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 7079, "nodeType": "Block", "src": "8302:194:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7066, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "8352:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 7067, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "8352:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, { "argumentTypes": null, "id": 7068, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7061, "src": "8364:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7065, "name": "_isApprovedOrOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7176, "src": "8333:18:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_address_$_t_uint256_$returns$_t_bool_$", "typeString": "function (address,uint256) view returns (bool)" } }, "id": 7069, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8333:39:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "6d75737420626520617070726f766564206f7220626520746865206f776e6572206f662074686520636f6e7472616374", "id": 7070, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "8386:50:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_066c104c13e1ea3f3e9903257d43d21fdf7679f1bc7a6667b2764316457f3eea", "typeString": "literal_string \"must be approved or be the owner of the contract\"" }, "value": "must be approved or be the owner of the contract" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_066c104c13e1ea3f3e9903257d43d21fdf7679f1bc7a6667b2764316457f3eea", "typeString": "literal_string \"must be approved or be the owner of the contract\"" } ], "id": 7064, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "src": "8312:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 7071, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8312:134:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7072, "nodeType": "ExpressionStatement", "src": "8312:134:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7074, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7057, "src": "8471:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7075, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7059, "src": "8477:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7076, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7061, "src": "8481:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7073, "name": "_transferFrom", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7285, "src": "8457:13:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, "id": 7077, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8457:32:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7078, "nodeType": "ExpressionStatement", "src": "8457:32:6" } ] }, "documentation": null, "id": 7080, "implemented": true, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 7062, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7057, "name": "from", "nodeType": "VariableDeclaration", "scope": 7080, "src": "8231:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7056, "name": "address", "nodeType": "ElementaryTypeName", "src": "8231:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7059, "name": "to", "nodeType": "VariableDeclaration", "scope": 7080, "src": "8253:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7058, "name": "address", "nodeType": "ElementaryTypeName", "src": "8253:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7061, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7080, "src": "8273:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7060, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8273:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "8221:73:6" }, "returnParameters": { "id": 7063, "nodeType": "ParameterList", "parameters": [], "src": "8302:0:6" }, "scope": 7349, "src": "8200:296:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 7096, "nodeType": "Block", "src": "8608:56:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7090, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7082, "src": "8635:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7091, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7084, "src": "8641:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7092, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7086, "src": "8645:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "hexValue": "", "id": 7093, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "8654:2:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", "typeString": "literal_string \"\"" }, "value": "" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", "typeString": "literal_string \"\"" } ], "id": 7089, "name": "safeTransferFrom", "nodeType": "Identifier", "overloadedDeclarations": [ 7097, 7124 ], "referencedDeclaration": 7124, "src": "8618:16:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$returns$__$", "typeString": "function (address,address,uint256,bytes memory)" } }, "id": 7094, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8618:39:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7095, "nodeType": "ExpressionStatement", "src": "8618:39:6" } ] }, "documentation": null, "id": 7097, "implemented": true, "kind": "function", "modifiers": [], "name": "safeTransferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 7087, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7082, "name": "from", "nodeType": "VariableDeclaration", "scope": 7097, "src": "8537:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7081, "name": "address", "nodeType": "ElementaryTypeName", "src": "8537:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7084, "name": "to", "nodeType": "VariableDeclaration", "scope": 7097, "src": "8559:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7083, "name": "address", "nodeType": "ElementaryTypeName", "src": "8559:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7086, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7097, "src": "8579:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7085, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8579:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "8527:73:6" }, "returnParameters": { "id": 7088, "nodeType": "ParameterList", "parameters": [], "src": "8608:0:6" }, "scope": 7349, "src": "8502:162:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 7123, "nodeType": "Block", "src": "8804:115:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7109, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7099, "src": "8827:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7110, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7101, "src": "8833:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7111, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7103, "src": "8837:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7108, "name": "transferFrom", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7080, "src": "8814:12:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, "id": 7112, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8814:31:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7113, "nodeType": "ExpressionStatement", "src": "8814:31:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7116, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7099, "src": "8886:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7117, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7101, "src": "8892:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7118, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7103, "src": "8896:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "id": 7119, "name": "_data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7105, "src": "8905:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "id": 7115, "name": "_checkOnERC721Received", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7325, "src": "8863:22:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_bool_$", "typeString": "function (address,address,uint256,bytes memory) returns (bool)" } }, "id": 7120, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8863:48:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 7114, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "8855:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 7121, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "8855:57:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7122, "nodeType": "ExpressionStatement", "src": "8855:57:6" } ] }, "documentation": null, "id": 7124, "implemented": true, "kind": "function", "modifiers": [], "name": "safeTransferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 7106, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7099, "name": "from", "nodeType": "VariableDeclaration", "scope": 7124, "src": "8705:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7098, "name": "address", "nodeType": "ElementaryTypeName", "src": "8705:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7101, "name": "to", "nodeType": "VariableDeclaration", "scope": 7124, "src": "8727:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7100, "name": "address", "nodeType": "ElementaryTypeName", "src": "8727:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7103, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7124, "src": "8747:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7102, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "8747:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7105, "name": "_data", "nodeType": "VariableDeclaration", "scope": 7124, "src": "8772:18:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 7104, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "8772:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "8695:101:6" }, "returnParameters": { "id": 7107, "nodeType": "ParameterList", "parameters": [], "src": "8804:0:6" }, "scope": 7349, "src": "8670:249:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 7143, "nodeType": "Block", "src": "9176:89:6", "statements": [ { "assignments": [ 7132 ], "declarations": [ { "constant": false, "id": 7132, "name": "owner", "nodeType": "VariableDeclaration", "scope": 7143, "src": "9186:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7131, "name": "address", "nodeType": "ElementaryTypeName", "src": "9186:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "id": 7136, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7133, "name": "_tokenOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6896, "src": "9202:11:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 7135, "indexExpression": { "argumentTypes": null, "id": 7134, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7126, "src": "9214:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "9202:20:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "VariableDeclarationStatement", "src": "9186:36:6" }, { "expression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 7141, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 7137, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7132, "src": "9239:5:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 7139, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "9256:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 7138, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "9248:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 7140, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9248:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "9239:19:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 7130, "id": 7142, "nodeType": "Return", "src": "9232:26:6" } ] }, "documentation": "@dev Returns whether the specified token exists\n@param tokenId uint256 ID of the token to query the existence of\n@return bool whether the token exists", "id": 7144, "implemented": true, "kind": "function", "modifiers": [], "name": "_exists", "nodeType": "FunctionDefinition", "parameters": { "id": 7127, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7126, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7144, "src": "9130:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7125, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "9130:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "9129:17:6" }, "returnParameters": { "id": 7130, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7129, "name": "", "nodeType": "VariableDeclaration", "scope": 7144, "src": "9170:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 7128, "name": "bool", "nodeType": "ElementaryTypeName", "src": "9170:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "9169:6:6" }, "scope": 7349, "src": "9113:152:6", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { "id": 7175, "nodeType": "Block", "src": "9744:179:6", "statements": [ { "assignments": [ 7154 ], "declarations": [ { "constant": false, "id": 7154, "name": "owner", "nodeType": "VariableDeclaration", "scope": 7175, "src": "9754:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7153, "name": "address", "nodeType": "ElementaryTypeName", "src": "9754:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "id": 7158, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7156, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7148, "src": "9778:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7155, "name": "ownerOf", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6948, "src": "9770:7:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_address_$", "typeString": "function (uint256) view returns (address)" } }, "id": 7157, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9770:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "VariableDeclarationStatement", "src": "9754:32:6" }, { "expression": { "argumentTypes": null, "components": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 7172, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "id": 7167, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 7161, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 7159, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7146, "src": "9804:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 7160, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7154, "src": "9815:5:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "9804:16:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "||", "rightExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 7166, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7163, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7148, "src": "9848:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7162, "name": "getApproved", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7008, "src": "9836:11:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_address_$", "typeString": "function (uint256) view returns (address)" } }, "id": 7164, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9836:20:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 7165, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7146, "src": "9860:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "9836:31:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "9804:63:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "nodeType": "BinaryOperation", "operator": "||", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7169, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7154, "src": "9900:5:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7170, "name": "spender", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7146, "src": "9907:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 7168, "name": "isApprovedForAll", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7055, "src": "9883:16:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$returns$_t_bool_$", "typeString": "function (address,address) view returns (bool)" } }, "id": 7171, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "9883:32:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "src": "9804:111:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "id": 7173, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", "src": "9803:113:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 7152, "id": 7174, "nodeType": "Return", "src": "9796:120:6" } ] }, "documentation": "@dev Returns whether the given spender can transfer a given token ID\n@param spender address of the spender to query\n@param tokenId uint256 ID of the token to be transferred\n@return bool whether the msg.sender is approved for the given token ID,\nis an operator of the owner, or is the owner of the token", "id": 7176, "implemented": true, "kind": "function", "modifiers": [], "name": "_isApprovedOrOwner", "nodeType": "FunctionDefinition", "parameters": { "id": 7149, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7146, "name": "spender", "nodeType": "VariableDeclaration", "scope": 7176, "src": "9653:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7145, "name": "address", "nodeType": "ElementaryTypeName", "src": "9653:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7148, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7176, "src": "9670:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7147, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "9670:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "9652:34:6" }, "returnParameters": { "id": 7152, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7151, "name": "", "nodeType": "VariableDeclaration", "scope": 7176, "src": "9734:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 7150, "name": "bool", "nodeType": "ElementaryTypeName", "src": "9734:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "9733:6:6" }, "scope": 7349, "src": "9625:298:6", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { "id": 7229, "nodeType": "Block", "src": "10133:536:6", "statements": [ { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 7187, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 7183, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7178, "src": "10230:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 7185, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "10244:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 7184, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "10236:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 7186, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10236:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "10230:16:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 7193, "nodeType": "IfStatement", "src": "10226:81:6", "trueBody": { "id": 7192, "nodeType": "Block", "src": "10248:59:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "696e76616c696420616464726573732070726f7669646564", "id": 7189, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "10269:26:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_fd7df492914e18a9116965d53533f73b3bf6774f69e8f0675111bc1f59c415e1", "typeString": "literal_string \"invalid address provided\"" }, "value": "invalid address provided" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_fd7df492914e18a9116965d53533f73b3bf6774f69e8f0675111bc1f59c415e1", "typeString": "literal_string \"invalid address provided\"" } ], "id": 7188, "name": "revert", "nodeType": "Identifier", "overloadedDeclarations": [ 8962, 8963 ], "referencedDeclaration": 8963, "src": "10262:6:6", "typeDescriptions": { "typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory) pure" } }, "id": 7190, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10262:34:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7191, "nodeType": "ExpressionStatement", "src": "10262:34:6" } ] } }, { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 7200, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7194, "name": "_tokenOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6896, "src": "10320:11:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 7196, "indexExpression": { "argumentTypes": null, "id": 7195, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7180, "src": "10332:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "10320:20:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 7198, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "10352:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 7197, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "10344:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 7199, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10344:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "10320:34:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 7206, "nodeType": "IfStatement", "src": "10316:97:6", "trueBody": { "id": 7205, "nodeType": "Block", "src": "10356:57:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "746f6b656e496420616c726561647920657869737473", "id": 7202, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "10377:24:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_db28e955058f1079289a36104e2773695d4ef3db2ce6b16d98568cf681bf5617", "typeString": "literal_string \"tokenId already exists\"" }, "value": "tokenId already exists" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_db28e955058f1079289a36104e2773695d4ef3db2ce6b16d98568cf681bf5617", "typeString": "literal_string \"tokenId already exists\"" } ], "id": 7201, "name": "revert", "nodeType": "Identifier", "overloadedDeclarations": [ 8962, 8963 ], "referencedDeclaration": 8963, "src": "10370:6:6", "typeDescriptions": { "typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$", "typeString": "function (string memory) pure" } }, "id": 7203, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10370:32:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7204, "nodeType": "ExpressionStatement", "src": "10370:32:6" } ] } }, { "expression": { "argumentTypes": null, "id": 7211, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7207, "name": "_tokenOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6896, "src": "10501:11:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 7209, "indexExpression": { "argumentTypes": null, "id": 7208, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7180, "src": "10513:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "10501:20:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 7210, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7178, "src": "10524:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "10501:25:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 7212, "nodeType": "ExpressionStatement", "src": "10501:25:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7216, "name": "_ownedTokensCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6904, "src": "10555:17:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Counter_$8_storage_$", "typeString": "mapping(address => struct Counters.Counter storage ref)" } }, "id": 7218, "indexExpression": { "argumentTypes": null, "id": 7217, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7178, "src": "10573:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "10555:21:6", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$8_storage", "typeString": "struct Counters.Counter storage ref" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_Counter_$8_storage", "typeString": "struct Counters.Counter storage ref" } ], "expression": { "argumentTypes": null, "id": 7213, "name": "Counters", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 48, "src": "10536:8:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Counters_$48_$", "typeString": "type(library Counters)" } }, "id": 7215, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "increment", "nodeType": "MemberAccess", "referencedDeclaration": 31, "src": "10536:18:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_Counter_$8_storage_ptr_$returns$__$", "typeString": "function (struct Counters.Counter storage pointer)" } }, "id": 7219, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10536:41:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7220, "nodeType": "ExpressionStatement", "src": "10536:41:6" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 7223, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "10646:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 7222, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "10638:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 7224, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10638:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, { "argumentTypes": null, "id": 7225, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7178, "src": "10650:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7226, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7180, "src": "10654:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7221, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6864, "src": "10629:8:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, "id": 7227, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "10629:33:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7228, "nodeType": "EmitStatement", "src": "10624:38:6" } ] }, "documentation": null, "id": 7230, "implemented": true, "kind": "function", "modifiers": [], "name": "_mint", "nodeType": "FunctionDefinition", "parameters": { "id": 7181, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7178, "name": "to", "nodeType": "VariableDeclaration", "scope": 7230, "src": "10095:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7177, "name": "address", "nodeType": "ElementaryTypeName", "src": "10095:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7180, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7230, "src": "10107:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7179, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "10107:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "10094:29:6" }, "returnParameters": { "id": 7182, "nodeType": "ParameterList", "parameters": [], "src": "10133:0:6" }, "scope": 7349, "src": "10080:589:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 7284, "nodeType": "Block", "src": "10973:669:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 7244, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 7240, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7232, "src": "11074:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7241, "name": "_tokenOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6896, "src": "11082:11:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 7243, "indexExpression": { "argumentTypes": null, "id": 7242, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7236, "src": "11094:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "11082:20:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "11074:28:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "66726f6d2061646472657373206d757374206265206f776e6572206f6620746f6b656e4964", "id": 7245, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "11116:39:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_f34e4caa16cde9bf75567b0cbf4a11866848b7c8dec447d057792edc1e35d0ec", "typeString": "literal_string \"from address must be owner of tokenId\"" }, "value": "from address must be owner of tokenId" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_f34e4caa16cde9bf75567b0cbf4a11866848b7c8dec447d057792edc1e35d0ec", "typeString": "literal_string \"from address must be owner of tokenId\"" } ], "id": 7239, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "src": "11053:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 7246, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11053:112:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7247, "nodeType": "ExpressionStatement", "src": "11053:112:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 7253, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 7249, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7234, "src": "11251:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 7251, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "11265:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 7250, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "11257:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 7252, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11257:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "11251:16:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "argumentTypes": null, "hexValue": "6e657720746f6b656e2061646472657373206d7573742062652076616c6964", "id": 7254, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "11269:33:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_7168fe357a16516d3f7128acd3d31c3e2cd6340ebdf1bd0604ea50c6c2b8f2aa", "typeString": "literal_string \"new token address must be valid\"" }, "value": "new token address must be valid" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_7168fe357a16516d3f7128acd3d31c3e2cd6340ebdf1bd0604ea50c6c2b8f2aa", "typeString": "literal_string \"new token address must be valid\"" } ], "id": 7248, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "src": "11243:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 7255, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11243:60:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7256, "nodeType": "ExpressionStatement", "src": "11243:60:6" }, { "expression": { "argumentTypes": null, "id": 7260, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "delete", "prefix": true, "src": "11346:31:6", "subExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7257, "name": "_tokenApprovals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6900, "src": "11353:15:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 7259, "indexExpression": { "argumentTypes": null, "id": 7258, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7236, "src": "11369:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "11353:24:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7261, "nodeType": "ExpressionStatement", "src": "11346:31:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7265, "name": "_ownedTokensCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6904, "src": "11481:17:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Counter_$8_storage_$", "typeString": "mapping(address => struct Counters.Counter storage ref)" } }, "id": 7267, "indexExpression": { "argumentTypes": null, "id": 7266, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7232, "src": "11499:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "11481:23:6", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$8_storage", "typeString": "struct Counters.Counter storage ref" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_Counter_$8_storage", "typeString": "struct Counters.Counter storage ref" } ], "expression": { "argumentTypes": null, "id": 7262, "name": "Counters", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 48, "src": "11462:8:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Counters_$48_$", "typeString": "type(library Counters)" } }, "id": 7264, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "decrement", "nodeType": "MemberAccess", "referencedDeclaration": 47, "src": "11462:18:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_Counter_$8_storage_ptr_$returns$__$", "typeString": "function (struct Counters.Counter storage pointer)" } }, "id": 7268, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11462:43:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7269, "nodeType": "ExpressionStatement", "src": "11462:43:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7273, "name": "_ownedTokensCount", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6904, "src": "11534:17:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_struct$_Counter_$8_storage_$", "typeString": "mapping(address => struct Counters.Counter storage ref)" } }, "id": 7275, "indexExpression": { "argumentTypes": null, "id": 7274, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7234, "src": "11552:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "11534:21:6", "typeDescriptions": { "typeIdentifier": "t_struct$_Counter_$8_storage", "typeString": "struct Counters.Counter storage ref" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_struct$_Counter_$8_storage", "typeString": "struct Counters.Counter storage ref" } ], "expression": { "argumentTypes": null, "id": 7270, "name": "Counters", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 48, "src": "11515:8:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Counters_$48_$", "typeString": "type(library Counters)" } }, "id": 7272, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "increment", "nodeType": "MemberAccess", "referencedDeclaration": 31, "src": "11515:18:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_Counter_$8_storage_ptr_$returns$__$", "typeString": "function (struct Counters.Counter storage pointer)" } }, "id": 7276, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11515:41:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7277, "nodeType": "ExpressionStatement", "src": "11515:41:6" }, { "eventCall": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7279, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7232, "src": "11617:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7280, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7234, "src": "11623:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7281, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7236, "src": "11627:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7278, "name": "Transfer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6864, "src": "11608:8:6", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, "id": 7282, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "11608:27:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7283, "nodeType": "EmitStatement", "src": "11603:32:6" } ] }, "documentation": null, "id": 7285, "implemented": true, "kind": "function", "modifiers": [], "name": "_transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 7237, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7232, "name": "from", "nodeType": "VariableDeclaration", "scope": 7285, "src": "10900:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7231, "name": "address", "nodeType": "ElementaryTypeName", "src": "10900:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7234, "name": "to", "nodeType": "VariableDeclaration", "scope": 7285, "src": "10922:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7233, "name": "address", "nodeType": "ElementaryTypeName", "src": "10922:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7236, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7285, "src": "10942:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7235, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "10942:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "10890:73:6" }, "returnParameters": { "id": 7238, "nodeType": "ParameterList", "parameters": [], "src": "10973:0:6" }, "scope": 7349, "src": "10868:774:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 7324, "nodeType": "Block", "src": "12327:274:6", "statements": [ { "condition": { "argumentTypes": null, "id": 7301, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "!", "prefix": true, "src": "12341:16:6", "subExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "expression": { "argumentTypes": null, "id": 7298, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7289, "src": "12342:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 7299, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "isContract", "nodeType": "MemberAccess", "referencedDeclaration": 278, "src": "12342:13:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$bound_to$_t_address_$", "typeString": "function (address) view returns (bool)" } }, "id": 7300, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12342:15:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 7305, "nodeType": "IfStatement", "src": "12337:58:6", "trueBody": { "id": 7304, "nodeType": "Block", "src": "12359:36:6", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 7302, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "12380:4:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "functionReturnParameters": 7297, "id": 7303, "nodeType": "Return", "src": "12373:11:6" } ] } }, { "assignments": [ 7307 ], "declarations": [ { "constant": false, "id": 7307, "name": "retval", "nodeType": "VariableDeclaration", "scope": 7324, "src": "12405:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 7306, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "12405:6:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": null, "visibility": "internal" } ], "id": 7318, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7312, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8957, "src": "12471:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 7313, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "12471:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, { "argumentTypes": null, "id": 7314, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7287, "src": "12495:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7315, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7291, "src": "12513:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "id": 7316, "name": "_data", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7293, "src": "12534:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7309, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7289, "src": "12437:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 7308, "name": "IERC721Receiver", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 251, "src": "12421:15:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_IERC721Receiver_$251_$", "typeString": "type(contract IERC721Receiver)" } }, "id": 7310, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12421:19:6", "typeDescriptions": { "typeIdentifier": "t_contract$_IERC721Receiver_$251", "typeString": "contract IERC721Receiver" } }, "id": 7311, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "onERC721Received", "nodeType": "MemberAccess", "referencedDeclaration": 250, "src": "12421:36:6", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_bytes4_$", "typeString": "function (address,address,uint256,bytes memory) external returns (bytes4)" } }, "id": 7317, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12421:128:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "VariableDeclarationStatement", "src": "12405:144:6" }, { "expression": { "argumentTypes": null, "components": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "id": 7321, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 7319, "name": "retval", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7307, "src": "12567:6:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 7320, "name": "_ERC721_RECEIVED", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6892, "src": "12577:16:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "src": "12567:26:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "id": 7322, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", "src": "12566:28:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "functionReturnParameters": 7297, "id": 7323, "nodeType": "Return", "src": "12559:35:6" } ] }, "documentation": "@dev Internal function to invoke `onERC721Received` on a target address\nThe call is not executed if the target address is not a contract\n@param from address representing the previous owner of the given token ID\n@param to target address that will receive the tokens\n@param tokenId uint256 ID of the token to be transferred\n@param _data bytes optional data to send along with the call\n@return bool whether the call correctly returned the expected magic value", "id": 7325, "implemented": true, "kind": "function", "modifiers": [], "name": "_checkOnERC721Received", "nodeType": "FunctionDefinition", "parameters": { "id": 7294, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7287, "name": "from", "nodeType": "VariableDeclaration", "scope": 7325, "src": "12211:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7286, "name": "address", "nodeType": "ElementaryTypeName", "src": "12211:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7289, "name": "to", "nodeType": "VariableDeclaration", "scope": 7325, "src": "12233:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7288, "name": "address", "nodeType": "ElementaryTypeName", "src": "12233:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7291, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7325, "src": "12253:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7290, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "12253:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7293, "name": "_data", "nodeType": "VariableDeclaration", "scope": 7325, "src": "12278:18:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 7292, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "12278:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "12201:101:6" }, "returnParameters": { "id": 7297, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7296, "name": "", "nodeType": "VariableDeclaration", "scope": 7325, "src": "12321:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 7295, "name": "bool", "nodeType": "ElementaryTypeName", "src": "12321:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "12320:6:6" }, "scope": 7349, "src": "12170:431:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 7347, "nodeType": "Block", "src": "12731:122:6", "statements": [ { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 7336, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7330, "name": "_tokenApprovals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6900, "src": "12745:15:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 7332, "indexExpression": { "argumentTypes": null, "id": 7331, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7327, "src": "12761:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "12745:24:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 7334, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "12781:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 7333, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "12773:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 7335, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12773:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "12745:38:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 7346, "nodeType": "IfStatement", "src": "12741:106:6", "trueBody": { "id": 7345, "nodeType": "Block", "src": "12785:62:6", "statements": [ { "expression": { "argumentTypes": null, "id": 7343, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7337, "name": "_tokenApprovals", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6900, "src": "12799:15:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$", "typeString": "mapping(uint256 => address)" } }, "id": 7339, "indexExpression": { "argumentTypes": null, "id": 7338, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7327, "src": "12815:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "12799:24:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 7341, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "12834:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 7340, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "12826:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 7342, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "12826:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "12799:37:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 7344, "nodeType": "ExpressionStatement", "src": "12799:37:6" } ] } } ] }, "documentation": null, "id": 7348, "implemented": true, "kind": "function", "modifiers": [], "name": "_clearApproval", "nodeType": "FunctionDefinition", "parameters": { "id": 7328, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7327, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7348, "src": "12706:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7326, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "12706:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "12705:17:6" }, "returnParameters": { "id": 7329, "nodeType": "ParameterList", "parameters": [], "src": "12731:0:6" }, "scope": 7349, "src": "12682:171:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "private" } ], "scope": 7802, "src": "3957:8898:6" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 7350, "name": "ERC165", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6852, "src": "12886:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC165_$6852", "typeString": "contract ERC165" } }, "id": 7351, "nodeType": "InheritanceSpecifier", "src": "12886:6:6" }, { "arguments": null, "baseName": { "contractScope": null, "id": 7352, "name": "ERC721", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 7349, "src": "12894:6:6", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC721_$7349", "typeString": "contract ERC721" } }, "id": 7353, "nodeType": "InheritanceSpecifier", "src": "12894:6:6" } ], "contractDependencies": [ 6728, 6806, 6852, 7349 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 7647, "linearizedBaseContracts": [ 7647, 7349, 6852, 6806, 6728 ], "name": "ERC721Enumerable", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 7358, "name": "_ownedTokens", "nodeType": "VariableDeclaration", "scope": 7647, "src": "12960:50:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", "typeString": "mapping(address => uint256[])" }, "typeName": { "id": 7357, "keyType": { "id": 7354, "name": "address", "nodeType": "ElementaryTypeName", "src": "12968:7:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Mapping", "src": "12960:29:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", "typeString": "mapping(address => uint256[])" }, "valueType": { "baseType": { "id": 7355, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "12979:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7356, "length": null, "nodeType": "ArrayTypeName", "src": "12979:9:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } } }, "value": null, "visibility": "private" }, { "constant": false, "id": 7362, "name": "_ownedTokensIndex", "nodeType": "VariableDeclaration", "scope": 7647, "src": "13080:53:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "typeName": { "id": 7361, "keyType": { "id": 7359, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13088:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "13080:27:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "valueType": { "id": 7360, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13099:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "value": null, "visibility": "private" }, { "constant": false, "id": 7365, "name": "_allTokens", "nodeType": "VariableDeclaration", "scope": 7647, "src": "13194:28:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 7363, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13194:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7364, "length": null, "nodeType": "ArrayTypeName", "src": "13194:9:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "private" }, { "constant": false, "id": 7369, "name": "_allTokensIndex", "nodeType": "VariableDeclaration", "scope": 7647, "src": "13293:51:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "typeName": { "id": 7368, "keyType": { "id": 7366, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13301:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "13293:27:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" }, "valueType": { "id": 7367, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "13312:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } }, "value": null, "visibility": "private" }, { "constant": true, "id": 7372, "name": "_INTERFACE_ID_ERC721_ENUMERABLE", "nodeType": "VariableDeclaration", "scope": 7647, "src": "13351:68:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 7370, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "13351:6:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30783738306539643633", "id": 7371, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "13409:10:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_2014223715_by_1", "typeString": "int_const 2014223715" }, "value": "0x780e9d63" }, "visibility": "private" }, { "body": { "id": 7379, "nodeType": "Block", "src": "13707:154:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7376, "name": "_INTERFACE_ID_ERC721_ENUMERABLE", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7372, "src": "13822:31:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "id": 7375, "name": "_registerInterface", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6851, "src": "13803:18:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$", "typeString": "function (bytes4)" } }, "id": 7377, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "13803:51:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7378, "nodeType": "ExpressionStatement", "src": "13803:51:6" } ] }, "documentation": "@dev Constructor function", "id": 7380, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 7373, "nodeType": "ParameterList", "parameters": [], "src": "13697:2:6" }, "returnParameters": { "id": 7374, "nodeType": "ParameterList", "parameters": [], "src": "13707:0:6" }, "scope": 7647, "src": "13686:175:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 7403, "nodeType": "Block", "src": "14351:93:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 7394, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 7390, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7384, "src": "14369:5:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7392, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7382, "src": "14387:5:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 7391, "name": "balanceOf", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6936, "src": "14377:9:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_uint256_$", "typeString": "function (address) view returns (uint256)" } }, "id": 7393, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "14377:16:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "14369:24:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 7389, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "14361:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 7395, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "14361:33:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7396, "nodeType": "ExpressionStatement", "src": "14361:33:6" }, { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7397, "name": "_ownedTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7358, "src": "14411:12:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", "typeString": "mapping(address => uint256[] storage ref)" } }, "id": 7399, "indexExpression": { "argumentTypes": null, "id": 7398, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7382, "src": "14424:5:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "14411:19:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7401, "indexExpression": { "argumentTypes": null, "id": 7400, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7384, "src": "14431:5:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "14411:26:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 7388, "id": 7402, "nodeType": "Return", "src": "14404:33:6" } ] }, "documentation": "@dev Gets the token ID at a given index of the tokens list of the requested owner\n@param owner address owning the tokens list to be accessed\n@param index uint256 representing the index to be accessed of the requested tokens list\n@return uint256 token ID at the given index of the tokens list owned by the requested address", "id": 7404, "implemented": true, "kind": "function", "modifiers": [], "name": "tokenOfOwnerByIndex", "nodeType": "FunctionDefinition", "parameters": { "id": 7385, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7382, "name": "owner", "nodeType": "VariableDeclaration", "scope": 7404, "src": "14263:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7381, "name": "address", "nodeType": "ElementaryTypeName", "src": "14263:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7384, "name": "index", "nodeType": "VariableDeclaration", "scope": 7404, "src": "14278:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7383, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "14278:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "14262:30:6" }, "returnParameters": { "id": 7388, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7387, "name": "", "nodeType": "VariableDeclaration", "scope": 7404, "src": "14338:7:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7386, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "14338:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "14337:9:6" }, "scope": 7647, "src": "14234:210:6", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 7412, "nodeType": "Block", "src": "14649:41:6", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7409, "name": "_allTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7365, "src": "14666:10:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7410, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "14666:17:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 7408, "id": 7411, "nodeType": "Return", "src": "14659:24:6" } ] }, "documentation": "@dev Gets the total amount of tokens stored by the contract\n@return uint256 representing the total amount of tokens", "id": 7413, "implemented": true, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { "id": 7405, "nodeType": "ParameterList", "parameters": [], "src": "14616:2:6" }, "returnParameters": { "id": 7408, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7407, "name": "", "nodeType": "VariableDeclaration", "scope": 7413, "src": "14640:7:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7406, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "14640:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "14639:9:6" }, "scope": 7647, "src": "14596:94:6", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 7431, "nodeType": "Block", "src": "15094:81:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 7424, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 7421, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7415, "src": "15112:5:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "<", "rightExpression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 7422, "name": "totalSupply", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7413, "src": "15120:11:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", "typeString": "function () view returns (uint256)" } }, "id": 7423, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "15120:13:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "15112:21:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 7420, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "15104:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 7425, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "15104:30:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7426, "nodeType": "ExpressionStatement", "src": "15104:30:6" }, { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7427, "name": "_allTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7365, "src": "15151:10:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7429, "indexExpression": { "argumentTypes": null, "id": 7428, "name": "index", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7415, "src": "15162:5:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "15151:17:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "functionReturnParameters": 7419, "id": 7430, "nodeType": "Return", "src": "15144:24:6" } ] }, "documentation": "@dev Gets the token ID at a given index of all the tokens in this contract\nReverts if the index is greater or equal to the total number of tokens\n@param index uint256 representing the index to be accessed of the tokens list\n@return uint256 token ID at the given index of the tokens list", "id": 7432, "implemented": true, "kind": "function", "modifiers": [], "name": "tokenByIndex", "nodeType": "FunctionDefinition", "parameters": { "id": 7416, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7415, "name": "index", "nodeType": "VariableDeclaration", "scope": 7432, "src": "15049:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7414, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "15049:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "15048:15:6" }, "returnParameters": { "id": 7419, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7418, "name": "", "nodeType": "VariableDeclaration", "scope": 7432, "src": "15085:7:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7417, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "15085:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "15084:9:6" }, "scope": 7647, "src": "15027:148:6", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { "id": 7459, "nodeType": "Block", "src": "15655:164:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7444, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7434, "src": "15685:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7445, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7436, "src": "15691:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7446, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7438, "src": "15695:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 7441, "name": "super", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9002, "src": "15665:5:6", "typeDescriptions": { "typeIdentifier": "t_super$_ERC721Enumerable_$7647", "typeString": "contract super ERC721Enumerable" } }, "id": 7443, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "_transferFrom", "nodeType": "MemberAccess", "referencedDeclaration": 7285, "src": "15665:19:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,address,uint256)" } }, "id": 7447, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "15665:38:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7448, "nodeType": "ExpressionStatement", "src": "15665:38:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7450, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7434, "src": "15747:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7451, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7438, "src": "15753:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7449, "name": "_removeTokenFromOwnerEnumeration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7597, "src": "15714:32:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, "id": 7452, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "15714:47:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7453, "nodeType": "ExpressionStatement", "src": "15714:47:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7455, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7436, "src": "15800:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7456, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7438, "src": "15804:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7454, "name": "_addTokenToOwnerEnumeration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7521, "src": "15772:27:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, "id": 7457, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "15772:40:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7458, "nodeType": "ExpressionStatement", "src": "15772:40:6" } ] }, "documentation": "@dev Internal function to transfer ownership of a given token ID to another address.\nAs opposed to transferFrom, this imposes no restrictions on msg.sender.\n@param from current owner of the token\n@param to address to receive the ownership of the given token ID\n@param tokenId uint256 ID of the token to be transferred", "id": 7460, "implemented": true, "kind": "function", "modifiers": [], "name": "_transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 7439, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7434, "name": "from", "nodeType": "VariableDeclaration", "scope": 7460, "src": "15582:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7433, "name": "address", "nodeType": "ElementaryTypeName", "src": "15582:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7436, "name": "to", "nodeType": "VariableDeclaration", "scope": 7460, "src": "15604:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7435, "name": "address", "nodeType": "ElementaryTypeName", "src": "15604:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7438, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7460, "src": "15624:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7437, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "15624:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "15572:73:6" }, "returnParameters": { "id": 7440, "nodeType": "ParameterList", "parameters": [], "src": "15655:0:6" }, "scope": 7647, "src": "15550:269:6", "stateMutability": "nonpayable", "superFunction": 7285, "visibility": "internal" }, { "body": { "id": 7483, "nodeType": "Block", "src": "16127:143:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7470, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7462, "src": "16149:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7471, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7464, "src": "16153:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 7467, "name": "super", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9002, "src": "16137:5:6", "typeDescriptions": { "typeIdentifier": "t_super$_ERC721Enumerable_$7647", "typeString": "contract super ERC721Enumerable" } }, "id": 7469, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "_mint", "nodeType": "MemberAccess", "referencedDeclaration": 7230, "src": "16137:11:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, "id": 7472, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "16137:24:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7473, "nodeType": "ExpressionStatement", "src": "16137:24:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7475, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7462, "src": "16200:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7476, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7464, "src": "16204:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7474, "name": "_addTokenToOwnerEnumeration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7521, "src": "16172:27:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, "id": 7477, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "16172:40:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7478, "nodeType": "ExpressionStatement", "src": "16172:40:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7480, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7464, "src": "16255:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7479, "name": "_addTokenToAllTokensEnumeration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7540, "src": "16223:31:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 7481, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "16223:40:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7482, "nodeType": "ExpressionStatement", "src": "16223:40:6" } ] }, "documentation": "@dev Internal function to mint a new token\nReverts if the given token ID already exists\n@param to address the beneficiary that will own the minted token\n@param tokenId uint256 ID of the token to be minted", "id": 7484, "implemented": true, "kind": "function", "modifiers": [], "name": "_mint", "nodeType": "FunctionDefinition", "parameters": { "id": 7465, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7462, "name": "to", "nodeType": "VariableDeclaration", "scope": 7484, "src": "16089:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7461, "name": "address", "nodeType": "ElementaryTypeName", "src": "16089:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7464, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7484, "src": "16101:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7463, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "16101:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "16088:29:6" }, "returnParameters": { "id": 7466, "nodeType": "ParameterList", "parameters": [], "src": "16127:0:6" }, "scope": 7647, "src": "16074:196:6", "stateMutability": "nonpayable", "superFunction": 7230, "visibility": "internal" }, { "body": { "id": 7496, "nodeType": "Block", "src": "16583:43:6", "statements": [ { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7492, "name": "_ownedTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7358, "src": "16600:12:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", "typeString": "mapping(address => uint256[] storage ref)" } }, "id": 7494, "indexExpression": { "argumentTypes": null, "id": 7493, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7486, "src": "16613:5:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "16600:19:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "functionReturnParameters": 7491, "id": 7495, "nodeType": "Return", "src": "16593:26:6" } ] }, "documentation": "@dev Gets the list of token IDs of the requested owner\n@param owner address owning the tokens\n@return uint256[] List of token IDs owned by the requested address", "id": 7497, "implemented": true, "kind": "function", "modifiers": [], "name": "_tokensOfOwner", "nodeType": "FunctionDefinition", "parameters": { "id": 7487, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7486, "name": "owner", "nodeType": "VariableDeclaration", "scope": 7497, "src": "16498:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7485, "name": "address", "nodeType": "ElementaryTypeName", "src": "16498:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "16497:15:6" }, "returnParameters": { "id": 7491, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7490, "name": "", "nodeType": "VariableDeclaration", "scope": 7497, "src": "16560:17:6", "stateVariable": false, "storageLocation": "storage", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" }, "typeName": { "baseType": { "id": 7488, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "16560:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7489, "length": null, "nodeType": "ArrayTypeName", "src": "16560:9:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", "typeString": "uint256[]" } }, "value": null, "visibility": "internal" } ], "src": "16559:19:6" }, "scope": 7647, "src": "16474:152:6", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { "id": 7520, "nodeType": "Block", "src": "16994:109:6", "statements": [ { "expression": { "argumentTypes": null, "id": 7511, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7504, "name": "_ownedTokensIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7362, "src": "17004:17:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 7506, "indexExpression": { "argumentTypes": null, "id": 7505, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7501, "src": "17022:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "17004:26:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7507, "name": "_ownedTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7358, "src": "17033:12:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", "typeString": "mapping(address => uint256[] storage ref)" } }, "id": 7509, "indexExpression": { "argumentTypes": null, "id": 7508, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7499, "src": "17046:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "17033:16:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7510, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "17033:23:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "17004:52:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7512, "nodeType": "ExpressionStatement", "src": "17004:52:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7517, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7501, "src": "17088:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7513, "name": "_ownedTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7358, "src": "17066:12:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", "typeString": "mapping(address => uint256[] storage ref)" } }, "id": 7515, "indexExpression": { "argumentTypes": null, "id": 7514, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7499, "src": "17079:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "17066:16:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7516, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "push", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "17066:21:6", "typeDescriptions": { "typeIdentifier": "t_function_arraypush_nonpayable$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256) returns (uint256)" } }, "id": 7518, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "17066:30:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7519, "nodeType": "ExpressionStatement", "src": "17066:30:6" } ] }, "documentation": "@dev Private function to add a token to this extension's ownership-tracking data structures.\n@param to address representing the new owner of the given token ID\n@param tokenId uint256 ID of the token to be added to the tokens list of the given address", "id": 7521, "implemented": true, "kind": "function", "modifiers": [], "name": "_addTokenToOwnerEnumeration", "nodeType": "FunctionDefinition", "parameters": { "id": 7502, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7499, "name": "to", "nodeType": "VariableDeclaration", "scope": 7521, "src": "16957:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7498, "name": "address", "nodeType": "ElementaryTypeName", "src": "16957:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7501, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7521, "src": "16969:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7500, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "16969:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "16956:29:6" }, "returnParameters": { "id": 7503, "nodeType": "ParameterList", "parameters": [], "src": "16994:0:6" }, "scope": 7647, "src": "16920:183:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "private" }, { "body": { "id": 7539, "nodeType": "Block", "src": "17364:95:6", "statements": [ { "expression": { "argumentTypes": null, "id": 7531, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7526, "name": "_allTokensIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7369, "src": "17374:15:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 7528, "indexExpression": { "argumentTypes": null, "id": 7527, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7523, "src": "17390:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "17374:24:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7529, "name": "_allTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7365, "src": "17401:10:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7530, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "17401:17:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "17374:44:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7532, "nodeType": "ExpressionStatement", "src": "17374:44:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7536, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7523, "src": "17444:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 7533, "name": "_allTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7365, "src": "17428:10:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7535, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "push", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "17428:15:6", "typeDescriptions": { "typeIdentifier": "t_function_arraypush_nonpayable$_t_uint256_$returns$_t_uint256_$", "typeString": "function (uint256) returns (uint256)" } }, "id": 7537, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "17428:24:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7538, "nodeType": "ExpressionStatement", "src": "17428:24:6" } ] }, "documentation": "@dev Private function to add a token to this extension's token tracking data structures.\n@param tokenId uint256 ID of the token to be added to the tokens list", "id": 7540, "implemented": true, "kind": "function", "modifiers": [], "name": "_addTokenToAllTokensEnumeration", "nodeType": "FunctionDefinition", "parameters": { "id": 7524, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7523, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7540, "src": "17339:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7522, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "17339:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "17338:17:6" }, "returnParameters": { "id": 7525, "nodeType": "ParameterList", "parameters": [], "src": "17364:0:6" }, "scope": 7647, "src": "17298:161:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "private" }, { "body": { "id": 7596, "nodeType": "Block", "src": "18167:1047:6", "statements": [ { "assignments": [ 7548 ], "declarations": [ { "constant": false, "id": 7548, "name": "lastTokenIndex", "nodeType": "VariableDeclaration", "scope": 7596, "src": "18348:22:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7547, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "18348:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 7556, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "31", "id": 7554, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "18403:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" } ], "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7549, "name": "_ownedTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7358, "src": "18373:12:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", "typeString": "mapping(address => uint256[] storage ref)" } }, "id": 7551, "indexExpression": { "argumentTypes": null, "id": 7550, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7542, "src": "18386:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "18373:18:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7552, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "18373:25:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7553, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", "referencedDeclaration": 91, "src": "18373:29:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, "id": 7555, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "18373:32:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "18348:57:6" }, { "assignments": [ 7558 ], "declarations": [ { "constant": false, "id": 7558, "name": "tokenIndex", "nodeType": "VariableDeclaration", "scope": 7596, "src": "18415:18:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7557, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "18415:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 7562, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7559, "name": "_ownedTokensIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7362, "src": "18436:17:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 7561, "indexExpression": { "argumentTypes": null, "id": 7560, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7544, "src": "18454:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "18436:26:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "18415:47:6" }, { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "id": 7565, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "id": 7563, "name": "tokenIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7558, "src": "18566:10:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "id": 7564, "name": "lastTokenIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7548, "src": "18580:14:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "18566:28:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 7589, "nodeType": "IfStatement", "src": "18562:323:6", "trueBody": { "id": 7588, "nodeType": "Block", "src": "18596:289:6", "statements": [ { "assignments": [ 7567 ], "declarations": [ { "constant": false, "id": 7567, "name": "lastTokenId", "nodeType": "VariableDeclaration", "scope": 7588, "src": "18610:19:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7566, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "18610:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 7573, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7568, "name": "_ownedTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7358, "src": "18632:12:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", "typeString": "mapping(address => uint256[] storage ref)" } }, "id": 7570, "indexExpression": { "argumentTypes": null, "id": 7569, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7542, "src": "18645:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "18632:18:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7572, "indexExpression": { "argumentTypes": null, "id": 7571, "name": "lastTokenIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7548, "src": "18651:14:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "18632:34:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "18610:56:6" }, { "expression": { "argumentTypes": null, "id": 7580, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7574, "name": "_ownedTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7358, "src": "18681:12:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", "typeString": "mapping(address => uint256[] storage ref)" } }, "id": 7577, "indexExpression": { "argumentTypes": null, "id": 7575, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7542, "src": "18694:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "18681:18:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7578, "indexExpression": { "argumentTypes": null, "id": 7576, "name": "tokenIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7558, "src": "18700:10:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "18681:30:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 7579, "name": "lastTokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7567, "src": "18714:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "18681:44:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7581, "nodeType": "ExpressionStatement", "src": "18681:44:6" }, { "expression": { "argumentTypes": null, "id": 7586, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7582, "name": "_ownedTokensIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7362, "src": "18797:17:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 7584, "indexExpression": { "argumentTypes": null, "id": 7583, "name": "lastTokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7567, "src": "18815:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "18797:30:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 7585, "name": "tokenIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7558, "src": "18830:10:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "18797:43:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7587, "nodeType": "ExpressionStatement", "src": "18797:43:6" } ] } }, { "expression": { "argumentTypes": null, "id": 7594, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "18971:27:6", "subExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7590, "name": "_ownedTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7358, "src": "18971:12:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_uint256_$dyn_storage_$", "typeString": "mapping(address => uint256[] storage ref)" } }, "id": 7592, "indexExpression": { "argumentTypes": null, "id": 7591, "name": "from", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7542, "src": "18984:4:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "18971:18:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7593, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "18971:25:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7595, "nodeType": "ExpressionStatement", "src": "18971:27:6" } ] }, "documentation": "@dev Private function to remove a token from this extension's ownership-tracking data structures. Note that\nwhile the token is not assigned a new owner, the _ownedTokensIndex mapping is _not_ updated: this allows for\ngas optimizations e.g. when performing a transfer operation (avoiding double writes).\nThis has O(1) time complexity, but alters the order of the _ownedTokens array.\n@param from address representing the previous owner of the given token ID\n@param tokenId uint256 ID of the token to be removed from the tokens list of the given address", "id": 7597, "implemented": true, "kind": "function", "modifiers": [], "name": "_removeTokenFromOwnerEnumeration", "nodeType": "FunctionDefinition", "parameters": { "id": 7545, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7542, "name": "from", "nodeType": "VariableDeclaration", "scope": 7597, "src": "18116:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7541, "name": "address", "nodeType": "ElementaryTypeName", "src": "18116:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7544, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7597, "src": "18130:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7543, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "18130:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "18115:31:6" }, "returnParameters": { "id": 7546, "nodeType": "ParameterList", "parameters": [], "src": "18167:0:6" }, "scope": 7647, "src": "18074:1140:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "private" }, { "body": { "id": 7645, "nodeType": "Block", "src": "19573:993:6", "statements": [ { "assignments": [ 7603 ], "declarations": [ { "constant": false, "id": 7603, "name": "lastTokenIndex", "nodeType": "VariableDeclaration", "scope": 7645, "src": "19751:22:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7602, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "19751:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 7609, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "31", "id": 7607, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "19798:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" }, "value": "1" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" } ], "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7604, "name": "_allTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7365, "src": "19776:10:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7605, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "19776:17:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7606, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sub", "nodeType": "MemberAccess", "referencedDeclaration": 91, "src": "19776:21:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$", "typeString": "function (uint256,uint256) pure returns (uint256)" } }, "id": 7608, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "19776:24:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "19751:49:6" }, { "assignments": [ 7611 ], "declarations": [ { "constant": false, "id": 7611, "name": "tokenIndex", "nodeType": "VariableDeclaration", "scope": 7645, "src": "19810:18:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7610, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "19810:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 7615, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7612, "name": "_allTokensIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7369, "src": "19831:15:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 7614, "indexExpression": { "argumentTypes": null, "id": 7613, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7599, "src": "19847:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "19831:24:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "19810:45:6" }, { "assignments": [ 7617 ], "declarations": [ { "constant": false, "id": 7617, "name": "lastTokenId", "nodeType": "VariableDeclaration", "scope": 7645, "src": "20177:19:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7616, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "20177:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "id": 7621, "initialValue": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7618, "name": "_allTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7365, "src": "20199:10:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7620, "indexExpression": { "argumentTypes": null, "id": 7619, "name": "lastTokenIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7603, "src": "20210:14:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "20199:26:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", "src": "20177:48:6" }, { "expression": { "argumentTypes": null, "id": 7626, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7622, "name": "_allTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7365, "src": "20236:10:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7624, "indexExpression": { "argumentTypes": null, "id": 7623, "name": "tokenIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7611, "src": "20247:10:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "20236:22:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 7625, "name": "lastTokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7617, "src": "20261:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "20236:36:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7627, "nodeType": "ExpressionStatement", "src": "20236:36:6" }, { "expression": { "argumentTypes": null, "id": 7632, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7628, "name": "_allTokensIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7369, "src": "20340:15:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 7630, "indexExpression": { "argumentTypes": null, "id": 7629, "name": "lastTokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7617, "src": "20356:11:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "20340:28:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 7631, "name": "tokenIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7611, "src": "20371:10:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "20340:41:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7633, "nodeType": "ExpressionStatement", "src": "20340:41:6" }, { "expression": { "argumentTypes": null, "id": 7637, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "UnaryOperation", "operator": "--", "prefix": false, "src": "20502:19:6", "subExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7634, "name": "_allTokens", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7365, "src": "20502:10:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$dyn_storage", "typeString": "uint256[] storage ref" } }, "id": 7636, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "20502:17:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7638, "nodeType": "ExpressionStatement", "src": "20502:19:6" }, { "expression": { "argumentTypes": null, "id": 7643, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7639, "name": "_allTokensIndex", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7369, "src": "20531:15:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_uint256_$", "typeString": "mapping(uint256 => uint256)" } }, "id": 7641, "indexExpression": { "argumentTypes": null, "id": 7640, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7599, "src": "20547:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "20531:24:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "hexValue": "30", "id": 7642, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "20558:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "src": "20531:28:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7644, "nodeType": "ExpressionStatement", "src": "20531:28:6" } ] }, "documentation": "@dev Private function to remove a token from this extension's token tracking data structures.\nThis has O(1) time complexity, but alters the order of the _allTokens array.\n@param tokenId uint256 ID of the token to be removed from the tokens list", "id": 7646, "implemented": true, "kind": "function", "modifiers": [], "name": "_removeTokenFromAllTokensEnumeration", "nodeType": "FunctionDefinition", "parameters": { "id": 7600, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7599, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7646, "src": "19548:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7598, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "19548:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "19547:17:6" }, "returnParameters": { "id": 7601, "nodeType": "ParameterList", "parameters": [], "src": "19573:0:6" }, "scope": 7647, "src": "19502:1064:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "private" } ], "scope": 7802, "src": "12857:7711:6" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 7648, "name": "ERC721Enumerable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 7647, "src": "20597:16:6", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC721Enumerable_$7647", "typeString": "contract ERC721Enumerable" } }, "id": 7649, "nodeType": "InheritanceSpecifier", "src": "20597:16:6" }, { "arguments": null, "baseName": { "contractScope": null, "id": 7650, "name": "usingOraclize", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 6651, "src": "20615:13:6", "typeDescriptions": { "typeIdentifier": "t_contract$_usingOraclize_$6651", "typeString": "contract usingOraclize" } }, "id": 7651, "nodeType": "InheritanceSpecifier", "src": "20615:13:6" } ], "contractDependencies": [ 6651, 6728, 6806, 6852, 7349, 7647 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 7760, "linearizedBaseContracts": [ 7760, 6651, 7647, 7349, 6852, 6806, 6728 ], "name": "ERC721Metadata", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 7653, "name": "_name", "nodeType": "VariableDeclaration", "scope": 7760, "src": "20721:20:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 7652, "name": "string", "nodeType": "ElementaryTypeName", "src": "20721:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "private" }, { "constant": false, "id": 7655, "name": "_symbol", "nodeType": "VariableDeclaration", "scope": 7760, "src": "20747:22:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 7654, "name": "string", "nodeType": "ElementaryTypeName", "src": "20747:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "private" }, { "constant": false, "id": 7657, "name": "_baseTokenURI", "nodeType": "VariableDeclaration", "scope": 7760, "src": "20775:28:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string" }, "typeName": { "id": 7656, "name": "string", "nodeType": "ElementaryTypeName", "src": "20775:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "private" }, { "constant": false, "id": 7661, "name": "_tokenURIs", "nodeType": "VariableDeclaration", "scope": 7760, "src": "20894:45:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_string_storage_$", "typeString": "mapping(uint256 => string)" }, "typeName": { "id": 7660, "keyType": { "id": 7658, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "20902:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Mapping", "src": "20894:26:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_string_storage_$", "typeString": "mapping(uint256 => string)" }, "valueType": { "id": 7659, "name": "string", "nodeType": "ElementaryTypeName", "src": "20913:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } } }, "value": null, "visibility": "private" }, { "constant": true, "id": 7664, "name": "_INTERFACE_ID_ERC721_METADATA", "nodeType": "VariableDeclaration", "scope": 7760, "src": "20946:66:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 7662, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "20946:6:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "value": { "argumentTypes": null, "hexValue": "30783562356531333966", "id": 7663, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "21002:10:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1532892063_by_1", "typeString": "int_const 1532892063" }, "value": "0x5b5e139f" }, "visibility": "private" }, { "body": { "id": 7689, "nodeType": "Block", "src": "21310:193:6", "statements": [ { "expression": { "argumentTypes": null, "id": 7675, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 7673, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7653, "src": "21361:5:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 7674, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7666, "src": "21369:4:6", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "21361:12:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 7676, "nodeType": "ExpressionStatement", "src": "21361:12:6" }, { "expression": { "argumentTypes": null, "id": 7679, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 7677, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7655, "src": "21383:7:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 7678, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7668, "src": "21393:6:6", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "21383:16:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 7680, "nodeType": "ExpressionStatement", "src": "21383:16:6" }, { "expression": { "argumentTypes": null, "id": 7683, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 7681, "name": "_baseTokenURI", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7657, "src": "21409:13:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 7682, "name": "baseTokenURI", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7670, "src": "21425:12:6", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "21409:28:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 7684, "nodeType": "ExpressionStatement", "src": "21409:28:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7686, "name": "_INTERFACE_ID_ERC721_METADATA", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7664, "src": "21466:29:6", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } ], "id": 7685, "name": "_registerInterface", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6851, "src": "21447:18:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_bytes4_$returns$__$", "typeString": "function (bytes4)" } }, "id": 7687, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "21447:49:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7688, "nodeType": "ExpressionStatement", "src": "21447:49:6" } ] }, "documentation": null, "id": 7690, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 7671, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7666, "name": "name", "nodeType": "VariableDeclaration", "scope": 7690, "src": "21212:18:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 7665, "name": "string", "nodeType": "ElementaryTypeName", "src": "21212:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7668, "name": "symbol", "nodeType": "VariableDeclaration", "scope": 7690, "src": "21240:20:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 7667, "name": "string", "nodeType": "ElementaryTypeName", "src": "21240:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7670, "name": "baseTokenURI", "nodeType": "VariableDeclaration", "scope": 7690, "src": "21270:26:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 7669, "name": "string", "nodeType": "ElementaryTypeName", "src": "21270:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "21202:100:6" }, "returnParameters": { "id": 7672, "nodeType": "ParameterList", "parameters": [], "src": "21310:0:6" }, "scope": 7760, "src": "21191:312:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 7697, "nodeType": "Block", "src": "21644:29:6", "statements": [ { "expression": { "argumentTypes": null, "id": 7695, "name": "_name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7653, "src": "21661:5:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "functionReturnParameters": 7694, "id": 7696, "nodeType": "Return", "src": "21654:12:6" } ] }, "documentation": null, "id": 7698, "implemented": true, "kind": "function", "modifiers": [], "name": "name", "nodeType": "FunctionDefinition", "parameters": { "id": 7691, "nodeType": "ParameterList", "parameters": [], "src": "21603:2:6" }, "returnParameters": { "id": 7694, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7693, "name": "", "nodeType": "VariableDeclaration", "scope": 7698, "src": "21629:13:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 7692, "name": "string", "nodeType": "ElementaryTypeName", "src": "21629:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "21628:15:6" }, "scope": 7760, "src": "21590:83:6", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": { "id": 7705, "nodeType": "Block", "src": "21735:31:6", "statements": [ { "expression": { "argumentTypes": null, "id": 7703, "name": "_symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7655, "src": "21752:7:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "functionReturnParameters": 7702, "id": 7704, "nodeType": "Return", "src": "21745:14:6" } ] }, "documentation": null, "id": 7706, "implemented": true, "kind": "function", "modifiers": [], "name": "symbol", "nodeType": "FunctionDefinition", "parameters": { "id": 7699, "nodeType": "ParameterList", "parameters": [], "src": "21694:2:6" }, "returnParameters": { "id": 7702, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7701, "name": "", "nodeType": "VariableDeclaration", "scope": 7706, "src": "21720:13:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 7700, "name": "string", "nodeType": "ElementaryTypeName", "src": "21720:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "21719:15:6" }, "scope": 7760, "src": "21679:87:6", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": { "id": 7713, "nodeType": "Block", "src": "21834:37:6", "statements": [ { "expression": { "argumentTypes": null, "id": 7711, "name": "_baseTokenURI", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7657, "src": "21851:13:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "functionReturnParameters": 7710, "id": 7712, "nodeType": "Return", "src": "21844:20:6" } ] }, "documentation": null, "id": 7714, "implemented": true, "kind": "function", "modifiers": [], "name": "baseTokenURI", "nodeType": "FunctionDefinition", "parameters": { "id": 7707, "nodeType": "ParameterList", "parameters": [], "src": "21793:2:6" }, "returnParameters": { "id": 7710, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7709, "name": "", "nodeType": "VariableDeclaration", "scope": 7714, "src": "21819:13:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 7708, "name": "string", "nodeType": "ElementaryTypeName", "src": "21819:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "21818:15:6" }, "scope": 7760, "src": "21772:99:6", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": { "id": 7731, "nodeType": "Block", "src": "21950:78:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7723, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7716, "src": "21976:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7722, "name": "_exists", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7144, "src": "21968:7:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", "typeString": "function (uint256) view returns (bool)" } }, "id": 7724, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "21968:16:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 7721, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "21960:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 7725, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "21960:25:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7726, "nodeType": "ExpressionStatement", "src": "21960:25:6" }, { "expression": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7727, "name": "_tokenURIs", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7661, "src": "22002:10:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_string_storage_$", "typeString": "mapping(uint256 => string storage ref)" } }, "id": 7729, "indexExpression": { "argumentTypes": null, "id": 7728, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7716, "src": "22013:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", "src": "22002:19:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "functionReturnParameters": 7720, "id": 7730, "nodeType": "Return", "src": "21995:26:6" } ] }, "documentation": null, "id": 7732, "implemented": true, "kind": "function", "modifiers": [], "name": "tokenURI", "nodeType": "FunctionDefinition", "parameters": { "id": 7717, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7716, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7732, "src": "21895:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7715, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "21895:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "21894:17:6" }, "returnParameters": { "id": 7720, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7719, "name": "", "nodeType": "VariableDeclaration", "scope": 7732, "src": "21935:13:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 7718, "name": "string", "nodeType": "ElementaryTypeName", "src": "21935:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "21934:15:6" }, "scope": 7760, "src": "21877:151:6", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": { "id": 7758, "nodeType": "Block", "src": "22547:131:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 7744, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7739, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7734, "src": "22573:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7738, "name": "ownerOf", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6948, "src": "22565:7:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_address_$", "typeString": "function (uint256) view returns (address)" } }, "id": 7740, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "22565:16:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "!=", "rightExpression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "hexValue": "30", "id": 7742, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "22593:1:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 7741, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "22585:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": "address" }, "id": 7743, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "22585:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "src": "22565:30:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" } ], "id": 7737, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "src": "22557:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, "id": 7745, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "22557:39:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7746, "nodeType": "ExpressionStatement", "src": "22557:39:6" }, { "expression": { "argumentTypes": null, "id": 7756, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 7747, "name": "_tokenURIs", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7661, "src": "22606:10:6", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_uint256_$_t_string_storage_$", "typeString": "mapping(uint256 => string storage ref)" } }, "id": 7749, "indexExpression": { "argumentTypes": null, "id": 7748, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7734, "src": "22617:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", "src": "22606:19:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7751, "name": "_baseTokenURI", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7657, "src": "22638:13:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7753, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7734, "src": "22662:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7752, "name": "uint2str", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5499, "src": "22653:8:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_string_memory_ptr_$", "typeString": "function (uint256) pure returns (string memory)" } }, "id": 7754, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "22653:17:6", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "id": 7750, "name": "strConcat", "nodeType": "Identifier", "overloadedDeclarations": [ 4919, 4939, 4961, 5155 ], "referencedDeclaration": 4919, "src": "22628:9:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_pure$_t_string_memory_ptr_$_t_string_memory_ptr_$returns$_t_string_memory_ptr_$", "typeString": "function (string memory,string memory) pure returns (string memory)" } }, "id": 7755, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "22628:43:6", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, "src": "22606:65:6", "typeDescriptions": { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" } }, "id": 7757, "nodeType": "ExpressionStatement", "src": "22606:65:6" } ] }, "documentation": null, "id": 7759, "implemented": true, "kind": "function", "modifiers": [], "name": "setTokenURI", "nodeType": "FunctionDefinition", "parameters": { "id": 7735, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7734, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7759, "src": "22521:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7733, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "22521:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "22520:17:6" }, "returnParameters": { "id": 7736, "nodeType": "ParameterList", "parameters": [], "src": "22547:0:6" }, "scope": 7760, "src": "22500:178:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" } ], "scope": 7802, "src": "20570:2110:6" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 7761, "name": "ERC721Metadata", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 7760, "src": "22856:14:6", "typeDescriptions": { "typeIdentifier": "t_contract$_ERC721Metadata_$7760", "typeString": "contract ERC721Metadata" } }, "id": 7762, "nodeType": "InheritanceSpecifier", "src": "22856:14:6" } ], "contractDependencies": [ 6651, 6728, 6806, 6852, 7349, 7647, 7760 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 7801, "linearizedBaseContracts": [ 7801, 7760, 6651, 7647, 7349, 6852, 6806, 6728 ], "name": "RealEstateMarketplaceToken", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 7774, "nodeType": "Block", "src": "23283:2:6", "statements": [] }, "documentation": null, "id": 7775, "implemented": true, "kind": "constructor", "modifiers": [ { "arguments": [ { "argumentTypes": null, "id": 7769, "name": "name", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7764, "src": "23165:4:6", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, { "argumentTypes": null, "id": 7770, "name": "symbol", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7766, "src": "23183:6:6", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } }, { "argumentTypes": null, "hexValue": "68747470733a2f2f73332d75732d776573742d322e616d617a6f6e6177732e636f6d2f756461636974792d626c6f636b636861696e2f63617073746f6e652f", "id": 7771, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "23203:65:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_cfa4573958f09c487edb2f9856efbbf1d5e6472e1155243fcdb5ea3c5dfd2e5a", "typeString": "literal_string \"https://s3-us-west-2.amazonaws.com/udacity-blockchain/capstone/\"" }, "value": "https://s3-us-west-2.amazonaws.com/udacity-blockchain/capstone/" } ], "id": 7772, "modifierName": { "argumentTypes": null, "id": 7768, "name": "ERC721Metadata", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7760, "src": "23137:14:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_ERC721Metadata_$7760_$", "typeString": "type(contract ERC721Metadata)" } }, "nodeType": "ModifierInvocation", "src": "23137:141:6" } ], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 7767, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7764, "name": "name", "nodeType": "VariableDeclaration", "scope": 7775, "src": "23072:18:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 7763, "name": "string", "nodeType": "ElementaryTypeName", "src": "23072:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7766, "name": "symbol", "nodeType": "VariableDeclaration", "scope": 7775, "src": "23092:20:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 7765, "name": "string", "nodeType": "ElementaryTypeName", "src": "23092:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "23071:42:6" }, "returnParameters": { "id": 7773, "nodeType": "ParameterList", "parameters": [], "src": "23283:0:6" }, "scope": 7801, "src": "23060:225:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 7799, "nodeType": "Block", "src": "23807:92:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7789, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7777, "src": "23829:2:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, { "argumentTypes": null, "id": 7790, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7779, "src": "23833:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 7786, "name": "super", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9006, "src": "23817:5:6", "typeDescriptions": { "typeIdentifier": "t_super$_RealEstateMarketplaceToken_$7801", "typeString": "contract super RealEstateMarketplaceToken" } }, "id": 7788, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "_mint", "nodeType": "MemberAccess", "referencedDeclaration": 7484, "src": "23817:11:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$", "typeString": "function (address,uint256)" } }, "id": 7791, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "23817:24:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7792, "nodeType": "ExpressionStatement", "src": "23817:24:6" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 7794, "name": "tokenId", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7779, "src": "23863:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "id": 7793, "name": "setTokenURI", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7759, "src": "23851:11:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, "id": 7795, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "23851:20:6", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7796, "nodeType": "ExpressionStatement", "src": "23851:20:6" }, { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 7797, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "23888:4:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "functionReturnParameters": 7785, "id": 7798, "nodeType": "Return", "src": "23881:11:6" } ] }, "documentation": null, "id": 7800, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 7782, "modifierName": { "argumentTypes": null, "id": 7781, "name": "onlyOwner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6701, "src": "23782:9:6", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "23782:9:6" } ], "name": "mint", "nodeType": "FunctionDefinition", "parameters": { "id": 7780, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7777, "name": "to", "nodeType": "VariableDeclaration", "scope": 7800, "src": "23746:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7776, "name": "address", "nodeType": "ElementaryTypeName", "src": "23746:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 7779, "name": "tokenId", "nodeType": "VariableDeclaration", "scope": 7800, "src": "23758:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7778, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "23758:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "23745:29:6" }, "returnParameters": { "id": 7785, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7784, "name": "", "nodeType": "VariableDeclaration", "scope": 7800, "src": "23801:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 7783, "name": "bool", "nodeType": "ElementaryTypeName", "src": "23801:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "23800:6:6" }, "scope": 7801, "src": "23732:167:6", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 7802, "src": "22817:1084:6" } ], "src": "0:23902:6" }, "legacyAST": { "attributes": { "absolutePath": "project:/contracts/RealEstateMarketplaceToken.sol", "exportedSymbols": { "ERC165": [ 6852 ], "ERC721": [ 7349 ], "ERC721Enumerable": [ 7647 ], "ERC721Metadata": [ 7760 ], "Ownable": [ 6728 ], "Pausable": [ 6806 ], "RealEstateMarketplaceToken": [ 7801 ] } }, "children": [ { "attributes": { "literals": [ "solidity", "^", "0.5", ".0" ] }, "id": 6653, "name": "PragmaDirective", "src": "0:23:6" }, { "attributes": { "SourceUnit": 327, "absolutePath": "openzeppelin-solidity/contracts/utils/Address.sol", "file": "openzeppelin-solidity/contracts/utils/Address.sol", "scope": 7802, "symbolAliases": [ null ], "unitAlias": "" }, "id": 6654, "name": "ImportDirective", "src": "25:59:6" }, { "attributes": { "SourceUnit": 49, "absolutePath": "openzeppelin-solidity/contracts/drafts/Counters.sol", "file": "openzeppelin-solidity/contracts/drafts/Counters.sol", "scope": 7802, "symbolAliases": [ null ], "unitAlias": "" }, "id": 6655, "name": "ImportDirective", "src": "85:61:6" }, { "attributes": { "SourceUnit": 236, "absolutePath": "openzeppelin-solidity/contracts/math/SafeMath.sol", "file": "openzeppelin-solidity/contracts/math/SafeMath.sol", "scope": 7802, "symbolAliases": [ null ], "unitAlias": "" }, "id": 6656, "name": "ImportDirective", "src": "147:59:6" }, { "attributes": { "SourceUnit": 252, "absolutePath": "openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol", "file": "openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol", "scope": 7802, "symbolAliases": [ null ], "unitAlias": "" }, "id": 6657, "name": "ImportDirective", "src": "207:74:6" }, { "attributes": { "SourceUnit": 6652, "absolutePath": "project:/contracts/Oraclize.sol", "file": "./Oraclize.sol", "scope": 7802, "symbolAliases": [ null ], "unitAlias": "" }, "id": 6658, "name": "ImportDirective", "src": "282:24:6" }, { "attributes": { "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "linearizedBaseContracts": [ 6728 ], "name": "Ownable", "scope": 7802 }, "children": [ { "attributes": { "constant": false, "name": "_owner", "scope": 6728, "stateVariable": true, "storageLocation": "default", "type": "address", "value": null, "visibility": "private" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6659, "name": "ElementaryTypeName", "src": "429:7:6" } ], "id": 6660, "name": "VariableDeclaration", "src": "429:22:6" }, { "attributes": { "anonymous": false, "documentation": null, "name": "OwnershipTransfer" }, "children": [ { "children": [ { "attributes": { "constant": false, "indexed": false, "name": "oldOwner", "scope": 6666, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6661, "name": "ElementaryTypeName", "src": "482:7:6" } ], "id": 6662, "name": "VariableDeclaration", "src": "482:16:6" }, { "attributes": { "constant": false, "indexed": false, "name": "newOwner", "scope": 6666, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6663, "name": "ElementaryTypeName", "src": "500:7:6" } ], "id": 6664, "name": "VariableDeclaration", "src": "500:16:6" } ], "id": 6665, "name": "ParameterList", "src": "481:36:6" } ], "id": 6666, "name": "EventDefinition", "src": "458:60:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "owner", "scope": 6728, "stateMutability": "view", "superFunction": null, "visibility": "public" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 6667, "name": "ParameterList", "src": "538:2:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 6674, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6668, "name": "ElementaryTypeName", "src": "562:7:6" } ], "id": 6669, "name": "VariableDeclaration", "src": "562:7:6" } ], "id": 6670, "name": "ParameterList", "src": "561:9:6" }, { "children": [ { "attributes": { "functionReturnParameters": 6670 }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6660, "type": "address", "value": "_owner" }, "id": 6671, "name": "Identifier", "src": "588:6:6" } ], "id": 6672, "name": "Return", "src": "581:13:6" } ], "id": 6673, "name": "Block", "src": "571:30:6" } ], "id": 6674, "name": "FunctionDefinition", "src": "524:77:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": true, "kind": "constructor", "modifiers": [ null ], "name": "", "scope": 6728, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 6675, "name": "ParameterList", "src": "722:2:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 6676, "name": "ParameterList", "src": "732:0:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_address_payable", "typeString": "address payable" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6666, "type": "function (address,address)", "value": "OwnershipTransfer" }, "id": 6677, "name": "Identifier", "src": "747:17:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6660, "type": "address", "value": "_owner" }, "id": 6678, "name": "Identifier", "src": "765:6:6" }, { "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": 8957, "type": "msg", "value": "msg" }, "id": 6679, "name": "Identifier", "src": "773:3:6" } ], "id": 6680, "name": "MemberAccess", "src": "773:10:6" } ], "id": 6681, "name": "FunctionCall", "src": "747:37:6" } ], "id": 6682, "name": "EmitStatement", "src": "742:42:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6660, "type": "address", "value": "_owner" }, "id": 6683, "name": "Identifier", "src": "794:6:6" }, { "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": 8957, "type": "msg", "value": "msg" }, "id": 6684, "name": "Identifier", "src": "803:3:6" } ], "id": 6685, "name": "MemberAccess", "src": "803:10:6" } ], "id": 6686, "name": "Assignment", "src": "794:19:6" } ], "id": 6687, "name": "ExpressionStatement", "src": "794:19:6" } ], "id": 6688, "name": "Block", "src": "732:88:6" } ], "id": 6689, "name": "FunctionDefinition", "src": "711:109:6" }, { "attributes": { "documentation": null, "name": "onlyOwner", "visibility": "internal" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 6690, "name": "ParameterList", "src": "951:2:6" }, { "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_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_ba3e7562fcf431c27b189e6cf5aa54e3a61f3e032cb6876fab3870c29611e6e6", "typeString": "literal_string \"this function can only be called by the owner of the contract\"" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "type": "function (bool,string memory) pure", "value": "require" }, "id": 6691, "name": "Identifier", "src": "964:7:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "==", "type": "bool" }, "children": [ { "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": 8957, "type": "msg", "value": "msg" }, "id": 6692, "name": "Identifier", "src": "985:3:6" } ], "id": 6693, "name": "MemberAccess", "src": "985:10:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6660, "type": "address", "value": "_owner" }, "id": 6694, "name": "Identifier", "src": "999:6:6" } ], "id": 6695, "name": "BinaryOperation", "src": "985:20:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "746869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656420627920746865206f776e6572206f662074686520636f6e7472616374", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"this function can only be called by the owner of the contract\"", "value": "this function can only be called by the owner of the contract" }, "id": 6696, "name": "Literal", "src": "1019:63:6" } ], "id": 6697, "name": "FunctionCall", "src": "964:128:6" } ], "id": 6698, "name": "ExpressionStatement", "src": "964:128:6" }, { "id": 6699, "name": "PlaceholderStatement", "src": "1102:1:6" } ], "id": 6700, "name": "Block", "src": "954:156:6" } ], "id": 6701, "name": "ModifierDefinition", "src": "933:177:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "name": "transferOwnership", "scope": 6728, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "newOwner", "scope": 6727, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6702, "name": "ElementaryTypeName", "src": "1308:7:6" } ], "id": 6703, "name": "VariableDeclaration", "src": "1308:16:6" } ], "id": 6704, "name": "ParameterList", "src": "1307:18:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 6707, "name": "ParameterList", "src": "1343:0:6" }, { "attributes": { "arguments": null }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6701, "type": "modifier ()", "value": "onlyOwner" }, "id": 6705, "name": "Identifier", "src": "1333:9:6" } ], "id": 6706, "name": "ModifierInvocation", "src": "1333:9:6" }, { "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_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_bd9ab7ce17a059af092b4286e23ea4d700ff2750e28fe38d9bef50d9c723469d", "typeString": "literal_string \"new owner cannot be 0x0 address\"" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "type": "function (bool,string memory) pure", "value": "require" }, "id": 6708, "name": "Identifier", "src": "1412:7:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6703, "type": "address", "value": "newOwner" }, "id": 6709, "name": "Identifier", "src": "1420:8:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address payable", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(address)", "value": "address" }, "id": 6710, "name": "ElementaryTypeNameExpression", "src": "1432:7:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 6711, "name": "Literal", "src": "1440:1:6" } ], "id": 6712, "name": "FunctionCall", "src": "1432:10:6" } ], "id": 6713, "name": "BinaryOperation", "src": "1420:22:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "6e6577206f776e65722063616e6e6f74206265203078302061646472657373", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"new owner cannot be 0x0 address\"", "value": "new owner cannot be 0x0 address" }, "id": 6714, "name": "Literal", "src": "1444:33:6" } ], "id": 6715, "name": "FunctionCall", "src": "1412:66:6" } ], "id": 6716, "name": "ExpressionStatement", "src": "1412:66:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6666, "type": "function (address,address)", "value": "OwnershipTransfer" }, "id": 6717, "name": "Identifier", "src": "1579:17:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6660, "type": "address", "value": "_owner" }, "id": 6718, "name": "Identifier", "src": "1597:6:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6703, "type": "address", "value": "newOwner" }, "id": 6719, "name": "Identifier", "src": "1605:8:6" } ], "id": 6720, "name": "FunctionCall", "src": "1579:35:6" } ], "id": 6721, "name": "EmitStatement", "src": "1574:40:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6660, "type": "address", "value": "_owner" }, "id": 6722, "name": "Identifier", "src": "1624:6:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6703, "type": "address", "value": "newOwner" }, "id": 6723, "name": "Identifier", "src": "1633:8:6" } ], "id": 6724, "name": "Assignment", "src": "1624:17:6" } ], "id": 6725, "name": "ExpressionStatement", "src": "1624:17:6" } ], "id": 6726, "name": "Block", "src": "1343:305:6" } ], "id": 6727, "name": "FunctionDefinition", "src": "1281:367:6" } ], "id": 6728, "name": "ContractDefinition", "src": "308:1342:6" }, { "attributes": { "contractDependencies": [ 6728 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "linearizedBaseContracts": [ 6806, 6728 ], "name": "Pausable", "scope": 7802 }, "children": [ { "attributes": { "arguments": null }, "children": [ { "attributes": { "contractScope": null, "name": "Ownable", "referencedDeclaration": 6728, "type": "contract Ownable" }, "id": 6729, "name": "UserDefinedTypeName", "src": "1750:7:6" } ], "id": 6730, "name": "InheritanceSpecifier", "src": "1750:7:6" }, { "attributes": { "constant": false, "name": "_paused", "scope": 6806, "stateVariable": true, "storageLocation": "default", "type": "bool", "value": null, "visibility": "private" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 6731, "name": "ElementaryTypeName", "src": "1830:4:6" } ], "id": 6732, "name": "VariableDeclaration", "src": "1830:20:6" }, { "attributes": { "anonymous": false, "documentation": null, "name": "Paused" }, "children": [ { "children": [ { "attributes": { "constant": false, "indexed": false, "name": "", "scope": 6736, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6733, "name": "ElementaryTypeName", "src": "1968:7:6" } ], "id": 6734, "name": "VariableDeclaration", "src": "1968:7:6" } ], "id": 6735, "name": "ParameterList", "src": "1967:9:6" } ], "id": 6736, "name": "EventDefinition", "src": "1955:22:6" }, { "attributes": { "anonymous": false, "documentation": null, "name": "Unpaused" }, "children": [ { "children": [ { "attributes": { "constant": false, "indexed": false, "name": "", "scope": 6740, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6737, "name": "ElementaryTypeName", "src": "1997:7:6" } ], "id": 6738, "name": "VariableDeclaration", "src": "1997:7:6" } ], "id": 6739, "name": "ParameterList", "src": "1996:9:6" } ], "id": 6740, "name": "EventDefinition", "src": "1982:24:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "name": "setPaused", "scope": 6806, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "newPauseValue", "scope": 6773, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 6741, "name": "ElementaryTypeName", "src": "2110:4:6" } ], "id": 6742, "name": "VariableDeclaration", "src": "2110:18:6" } ], "id": 6743, "name": "ParameterList", "src": "2109:20:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 6746, "name": "ParameterList", "src": "2147:0:6" }, { "attributes": { "arguments": null }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6701, "type": "modifier ()", "value": "onlyOwner" }, "id": 6744, "name": "Identifier", "src": "2137:9:6" } ], "id": 6745, "name": "ModifierInvocation", "src": "2137:9:6" }, { "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_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_b69146a3a78ae073537e9ede7e751faba5526c951eb0616243a7a52da6d4e1f4", "typeString": "literal_string \"paused state is already in this state\"" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "type": "function (bool,string memory) pure", "value": "require" }, "id": 6747, "name": "Identifier", "src": "2157:7:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6732, "type": "bool", "value": "_paused" }, "id": 6748, "name": "Identifier", "src": "2178:7:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6742, "type": "bool", "value": "newPauseValue" }, "id": 6749, "name": "Identifier", "src": "2189:13:6" } ], "id": 6750, "name": "BinaryOperation", "src": "2178:24:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "70617573656420737461746520697320616c726561647920696e2074686973207374617465", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"paused state is already in this state\"", "value": "paused state is already in this state" }, "id": 6751, "name": "Literal", "src": "2216:39:6" } ], "id": 6752, "name": "FunctionCall", "src": "2157:108:6" } ], "id": 6753, "name": "ExpressionStatement", "src": "2157:108:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6732, "type": "bool", "value": "_paused" }, "id": 6754, "name": "Identifier", "src": "2275:7:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6742, "type": "bool", "value": "newPauseValue" }, "id": 6755, "name": "Identifier", "src": "2285:13:6" } ], "id": 6756, "name": "Assignment", "src": "2275:23:6" } ], "id": 6757, "name": "ExpressionStatement", "src": "2275:23:6" }, { "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6732, "type": "bool", "value": "_paused" }, "id": 6758, "name": "Identifier", "src": "2312:7:6" }, { "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" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6736, "type": "function (address)", "value": "Paused" }, "id": 6759, "name": "Identifier", "src": "2340:6:6" }, { "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": 8957, "type": "msg", "value": "msg" }, "id": 6760, "name": "Identifier", "src": "2347:3:6" } ], "id": 6761, "name": "MemberAccess", "src": "2347:10:6" } ], "id": 6762, "name": "FunctionCall", "src": "2340:18:6" } ], "id": 6763, "name": "EmitStatement", "src": "2335:23:6" } ], "id": 6764, "name": "Block", "src": "2321:48:6" }, { "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" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6740, "type": "function (address)", "value": "Unpaused" }, "id": 6765, "name": "Identifier", "src": "2394:8:6" }, { "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": 8957, "type": "msg", "value": "msg" }, "id": 6766, "name": "Identifier", "src": "2403:3:6" } ], "id": 6767, "name": "MemberAccess", "src": "2403:10:6" } ], "id": 6768, "name": "FunctionCall", "src": "2394:20:6" } ], "id": 6769, "name": "EmitStatement", "src": "2389:25:6" } ], "id": 6770, "name": "Block", "src": "2375:50:6" } ], "id": 6771, "name": "IfStatement", "src": "2308:117:6" } ], "id": 6772, "name": "Block", "src": "2147:284:6" } ], "id": 6773, "name": "FunctionDefinition", "src": "2091:340:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": true, "kind": "constructor", "modifiers": [ null ], "name": "", "scope": 6806, "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 6774, "name": "ParameterList", "src": "2536:2:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 6775, "name": "ParameterList", "src": "2548:0:6" }, { "children": [ { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6732, "type": "bool", "value": "_paused" }, "id": 6776, "name": "Identifier", "src": "2558:7:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "66616c7365", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "bool", "type": "bool", "value": "false" }, "id": 6777, "name": "Literal", "src": "2568:5:6" } ], "id": 6778, "name": "Assignment", "src": "2558:15:6" } ], "id": 6779, "name": "ExpressionStatement", "src": "2558:15:6" }, { "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" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6740, "type": "function (address)", "value": "Unpaused" }, "id": 6780, "name": "Identifier", "src": "2588:8:6" }, { "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": 8957, "type": "msg", "value": "msg" }, "id": 6781, "name": "Identifier", "src": "2597:3:6" } ], "id": 6782, "name": "MemberAccess", "src": "2597:10:6" } ], "id": 6783, "name": "FunctionCall", "src": "2588:20:6" } ], "id": 6784, "name": "EmitStatement", "src": "2583:25:6" } ], "id": 6785, "name": "Block", "src": "2548:67:6" } ], "id": 6786, "name": "FunctionDefinition", "src": "2525:90:6" }, { "attributes": { "documentation": null, "name": "whenNotPaused", "visibility": "internal" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 6787, "name": "ParameterList", "src": "2744:2:6" }, { "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_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_d17c5c02084563d7bbb82ae001e72642aa795e111016796674979e3dedda2c0f", "typeString": "literal_string \"contract must not be paused to continue\"" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "type": "function (bool,string memory) pure", "value": "require" }, "id": 6788, "name": "Identifier", "src": "2757:7:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!", "prefix": true, "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6732, "type": "bool", "value": "_paused" }, "id": 6789, "name": "Identifier", "src": "2766:7:6" } ], "id": 6790, "name": "UnaryOperation", "src": "2765:8:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "636f6e7472616374206d757374206e6f742062652070617573656420746f20636f6e74696e7565", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"contract must not be paused to continue\"", "value": "contract must not be paused to continue" }, "id": 6791, "name": "Literal", "src": "2775:41:6" } ], "id": 6792, "name": "FunctionCall", "src": "2757:60:6" } ], "id": 6793, "name": "ExpressionStatement", "src": "2757:60:6" }, { "id": 6794, "name": "PlaceholderStatement", "src": "2827:1:6" } ], "id": 6795, "name": "Block", "src": "2747:88:6" } ], "id": 6796, "name": "ModifierDefinition", "src": "2722:113:6" }, { "attributes": { "documentation": null, "name": "paused", "visibility": "internal" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 6797, "name": "ParameterList", "src": "2856:2:6" }, { "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_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_0cd7439887f4857265468bf24dd469f4999c6f553ad0853094e0f8a657ac6e25", "typeString": "literal_string \"contract must be paused to continue\"" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "type": "function (bool,string memory) pure", "value": "require" }, "id": 6798, "name": "Identifier", "src": "2869:7:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6732, "type": "bool", "value": "_paused" }, "id": 6799, "name": "Identifier", "src": "2877:7:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "636f6e7472616374206d7573742062652070617573656420746f20636f6e74696e7565", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"contract must be paused to continue\"", "value": "contract must be paused to continue" }, "id": 6800, "name": "Literal", "src": "2886:37:6" } ], "id": 6801, "name": "FunctionCall", "src": "2869:55:6" } ], "id": 6802, "name": "ExpressionStatement", "src": "2869:55:6" }, { "id": 6803, "name": "PlaceholderStatement", "src": "2934:1:6" } ], "id": 6804, "name": "Block", "src": "2859:83:6" } ], "id": 6805, "name": "ModifierDefinition", "src": "2841:101:6" } ], "id": 6806, "name": "ContractDefinition", "src": "1729:1215:6" }, { "attributes": { "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "linearizedBaseContracts": [ 6852 ], "name": "ERC165", "scope": 7802 }, "children": [ { "attributes": { "constant": true, "name": "_INTERFACE_ID_ERC165", "scope": 6852, "stateVariable": true, "storageLocation": "default", "type": "bytes4", "visibility": "private" }, "children": [ { "attributes": { "name": "bytes4", "type": "bytes4" }, "id": 6807, "name": "ElementaryTypeName", "src": "2968:6:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30783031666663396137", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 33540519", "value": "0x01ffc9a7" }, "id": 6808, "name": "Literal", "src": "3015:10:6" } ], "id": 6809, "name": "VariableDeclaration", "src": "2968:57:6" }, { "attributes": { "constant": false, "name": "_supportedInterfaces", "scope": 6852, "stateVariable": true, "storageLocation": "default", "type": "mapping(bytes4 => bool)", "value": null, "visibility": "private" }, "children": [ { "attributes": { "type": "mapping(bytes4 => bool)" }, "children": [ { "attributes": { "name": "bytes4", "type": "bytes4" }, "id": 6810, "name": "ElementaryTypeName", "src": "3222:6:6" }, { "attributes": { "name": "bool", "type": "bool" }, "id": 6811, "name": "ElementaryTypeName", "src": "3232:4:6" } ], "id": 6812, "name": "Mapping", "src": "3214:23:6" } ], "id": 6813, "name": "VariableDeclaration", "src": "3214:52:6" }, { "attributes": { "documentation": "@dev A contract implementing SupportsInterfaceWithLookup\nimplement ERC165 itself", "implemented": true, "isConstructor": true, "kind": "constructor", "modifiers": [ null ], "name": "", "scope": 6852, "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 6814, "name": "ParameterList", "src": "3395:2:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 6815, "name": "ParameterList", "src": "3407:0:6" }, { "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_bytes4", "typeString": "bytes4" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6851, "type": "function (bytes4)", "value": "_registerInterface" }, "id": 6816, "name": "Identifier", "src": "3417:18:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6809, "type": "bytes4", "value": "_INTERFACE_ID_ERC165" }, "id": 6817, "name": "Identifier", "src": "3436:20:6" } ], "id": 6818, "name": "FunctionCall", "src": "3417:40:6" } ], "id": 6819, "name": "ExpressionStatement", "src": "3417:40:6" } ], "id": 6820, "name": "Block", "src": "3407:57:6" } ], "id": 6821, "name": "FunctionDefinition", "src": "3384:80:6" }, { "attributes": { "documentation": "@dev implement supportsInterface(bytes4) using a lookup table", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "supportsInterface", "scope": 6852, "stateMutability": "view", "superFunction": null, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "interfaceId", "scope": 6833, "stateVariable": false, "storageLocation": "default", "type": "bytes4", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bytes4", "type": "bytes4" }, "id": 6822, "name": "ElementaryTypeName", "src": "3582:6:6" } ], "id": 6823, "name": "VariableDeclaration", "src": "3582:18:6" } ], "id": 6824, "name": "ParameterList", "src": "3581:20:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 6833, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 6825, "name": "ElementaryTypeName", "src": "3649:4:6" } ], "id": 6826, "name": "VariableDeclaration", "src": "3649:4:6" } ], "id": 6827, "name": "ParameterList", "src": "3648:6:6" }, { "children": [ { "attributes": { "functionReturnParameters": 6827 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6813, "type": "mapping(bytes4 => bool)", "value": "_supportedInterfaces" }, "id": 6828, "name": "Identifier", "src": "3676:20:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6823, "type": "bytes4", "value": "interfaceId" }, "id": 6829, "name": "Identifier", "src": "3697:11:6" } ], "id": 6830, "name": "IndexAccess", "src": "3676:33:6" } ], "id": 6831, "name": "Return", "src": "3669:40:6" } ], "id": 6832, "name": "Block", "src": "3659:57:6" } ], "id": 6833, "name": "FunctionDefinition", "src": "3555:161:6" }, { "attributes": { "documentation": "@dev internal method for registering an interface", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_registerInterface", "scope": 6852, "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "interfaceId", "scope": 6851, "stateVariable": false, "storageLocation": "default", "type": "bytes4", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bytes4", "type": "bytes4" }, "id": 6834, "name": "ElementaryTypeName", "src": "3823:6:6" } ], "id": 6835, "name": "VariableDeclaration", "src": "3823:18:6" } ], "id": 6836, "name": "ParameterList", "src": "3822:20:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 6837, "name": "ParameterList", "src": "3852:0:6" }, { "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_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 6838, "name": "Identifier", "src": "3862:7:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6835, "type": "bytes4", "value": "interfaceId" }, "id": 6839, "name": "Identifier", "src": "3870:11:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30786666666666666666", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 4294967295", "value": "0xffffffff" }, "id": 6840, "name": "Literal", "src": "3885:10:6" } ], "id": 6841, "name": "BinaryOperation", "src": "3870:25:6" } ], "id": 6842, "name": "FunctionCall", "src": "3862:34:6" } ], "id": 6843, "name": "ExpressionStatement", "src": "3862:34:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6813, "type": "mapping(bytes4 => bool)", "value": "_supportedInterfaces" }, "id": 6844, "name": "Identifier", "src": "3906:20:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6835, "type": "bytes4", "value": "interfaceId" }, "id": 6845, "name": "Identifier", "src": "3927:11:6" } ], "id": 6846, "name": "IndexAccess", "src": "3906:33:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "74727565", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "bool", "type": "bool", "value": "true" }, "id": 6847, "name": "Literal", "src": "3942:4:6" } ], "id": 6848, "name": "Assignment", "src": "3906:40:6" } ], "id": 6849, "name": "ExpressionStatement", "src": "3906:40:6" } ], "id": 6850, "name": "Block", "src": "3852:101:6" } ], "id": 6851, "name": "FunctionDefinition", "src": "3795:158:6" } ], "id": 6852, "name": "ContractDefinition", "src": "2946:1009:6" }, { "attributes": { "contractDependencies": [ 6728, 6806, 6852 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "linearizedBaseContracts": [ 7349, 6852, 6806, 6728 ], "name": "ERC721", "scope": 7802 }, "children": [ { "attributes": { "arguments": null }, "children": [ { "attributes": { "contractScope": null, "name": "Pausable", "referencedDeclaration": 6806, "type": "contract Pausable" }, "id": 6853, "name": "UserDefinedTypeName", "src": "3976:8:6" } ], "id": 6854, "name": "InheritanceSpecifier", "src": "3976:8:6" }, { "attributes": { "arguments": null }, "children": [ { "attributes": { "contractScope": null, "name": "ERC165", "referencedDeclaration": 6852, "type": "contract ERC165" }, "id": 6855, "name": "UserDefinedTypeName", "src": "3986:6:6" } ], "id": 6856, "name": "InheritanceSpecifier", "src": "3986:6:6" }, { "attributes": { "anonymous": false, "documentation": null, "name": "Transfer" }, "children": [ { "children": [ { "attributes": { "constant": false, "indexed": true, "name": "from", "scope": 6864, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6857, "name": "ElementaryTypeName", "src": "4023:7:6" } ], "id": 6858, "name": "VariableDeclaration", "src": "4023:20:6" }, { "attributes": { "constant": false, "indexed": true, "name": "to", "scope": 6864, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6859, "name": "ElementaryTypeName", "src": "4053:7:6" } ], "id": 6860, "name": "VariableDeclaration", "src": "4053:18:6" }, { "attributes": { "constant": false, "indexed": true, "name": "tokenId", "scope": 6864, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 6861, "name": "ElementaryTypeName", "src": "4081:7:6" } ], "id": 6862, "name": "VariableDeclaration", "src": "4081:23:6" } ], "id": 6863, "name": "ParameterList", "src": "4013:97:6" } ], "id": 6864, "name": "EventDefinition", "src": "3999:112:6" }, { "attributes": { "anonymous": false, "documentation": null, "name": "Approval" }, "children": [ { "children": [ { "attributes": { "constant": false, "indexed": true, "name": "owner", "scope": 6872, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6865, "name": "ElementaryTypeName", "src": "4141:7:6" } ], "id": 6866, "name": "VariableDeclaration", "src": "4141:21:6" }, { "attributes": { "constant": false, "indexed": true, "name": "approved", "scope": 6872, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6867, "name": "ElementaryTypeName", "src": "4172:7:6" } ], "id": 6868, "name": "VariableDeclaration", "src": "4172:24:6" }, { "attributes": { "constant": false, "indexed": true, "name": "tokenId", "scope": 6872, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 6869, "name": "ElementaryTypeName", "src": "4206:7:6" } ], "id": 6870, "name": "VariableDeclaration", "src": "4206:23:6" } ], "id": 6871, "name": "ParameterList", "src": "4131:104:6" } ], "id": 6872, "name": "EventDefinition", "src": "4117:119:6" }, { "attributes": { "anonymous": false, "documentation": null, "name": "ApprovalForAll" }, "children": [ { "children": [ { "attributes": { "constant": false, "indexed": true, "name": "owner", "scope": 6880, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6873, "name": "ElementaryTypeName", "src": "4272:7:6" } ], "id": 6874, "name": "VariableDeclaration", "src": "4272:21:6" }, { "attributes": { "constant": false, "indexed": true, "name": "operator", "scope": 6880, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6875, "name": "ElementaryTypeName", "src": "4303:7:6" } ], "id": 6876, "name": "VariableDeclaration", "src": "4303:24:6" }, { "attributes": { "constant": false, "indexed": false, "name": "approved", "scope": 6880, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 6877, "name": "ElementaryTypeName", "src": "4337:4:6" } ], "id": 6878, "name": "VariableDeclaration", "src": "4337:13:6" } ], "id": 6879, "name": "ParameterList", "src": "4262:94:6" } ], "id": 6880, "name": "EventDefinition", "src": "4242:115:6" }, { "children": [ { "attributes": { "contractScope": null, "name": "SafeMath", "referencedDeclaration": 235, "type": "library SafeMath" }, "id": 6881, "name": "UserDefinedTypeName", "src": "4369:8:6" }, { "attributes": { "name": "uint256", "type": "uint256" }, "id": 6882, "name": "ElementaryTypeName", "src": "4382:7:6" } ], "id": 6883, "name": "UsingForDirective", "src": "4363:27:6" }, { "children": [ { "attributes": { "contractScope": null, "name": "Address", "referencedDeclaration": 326, "type": "library Address" }, "id": 6884, "name": "UserDefinedTypeName", "src": "4401:7:6" }, { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6885, "name": "ElementaryTypeName", "src": "4413:7:6" } ], "id": 6886, "name": "UsingForDirective", "src": "4395:26:6" }, { "children": [ { "attributes": { "contractScope": null, "name": "Counters", "referencedDeclaration": 48, "type": "library Counters" }, "id": 6887, "name": "UserDefinedTypeName", "src": "4432:8:6" }, { "attributes": { "contractScope": null, "name": "Counters.Counter", "referencedDeclaration": 8, "type": "struct Counters.Counter" }, "id": 6888, "name": "UserDefinedTypeName", "src": "4445:16:6" } ], "id": 6889, "name": "UsingForDirective", "src": "4426:36:6" }, { "attributes": { "constant": true, "name": "_ERC721_RECEIVED", "scope": 7349, "stateVariable": true, "storageLocation": "default", "type": "bytes4", "visibility": "private" }, "children": [ { "attributes": { "name": "bytes4", "type": "bytes4" }, "id": 6890, "name": "ElementaryTypeName", "src": "4640:6:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30783135306237613032", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 353073666", "value": "0x150b7a02" }, "id": 6891, "name": "Literal", "src": "4683:10:6" } ], "id": 6892, "name": "VariableDeclaration", "src": "4640:53:6" }, { "attributes": { "constant": false, "name": "_tokenOwner", "scope": 7349, "stateVariable": true, "storageLocation": "default", "type": "mapping(uint256 => address)", "value": null, "visibility": "private" }, "children": [ { "attributes": { "type": "mapping(uint256 => address)" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 6893, "name": "ElementaryTypeName", "src": "4746:7:6" }, { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6894, "name": "ElementaryTypeName", "src": "4757:7:6" } ], "id": 6895, "name": "Mapping", "src": "4738:27:6" } ], "id": 6896, "name": "VariableDeclaration", "src": "4738:47:6" }, { "attributes": { "constant": false, "name": "_tokenApprovals", "scope": 7349, "stateVariable": true, "storageLocation": "default", "type": "mapping(uint256 => address)", "value": null, "visibility": "private" }, "children": [ { "attributes": { "type": "mapping(uint256 => address)" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 6897, "name": "ElementaryTypeName", "src": "4849:7:6" }, { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6898, "name": "ElementaryTypeName", "src": "4860:7:6" } ], "id": 6899, "name": "Mapping", "src": "4841:27:6" } ], "id": 6900, "name": "VariableDeclaration", "src": "4841:51:6" }, { "attributes": { "constant": false, "name": "_ownedTokensCount", "scope": 7349, "stateVariable": true, "storageLocation": "default", "type": "mapping(address => struct Counters.Counter)", "value": null, "visibility": "private" }, "children": [ { "attributes": { "type": "mapping(address => struct Counters.Counter)" }, "children": [ { "attributes": { "name": "address", "type": "address" }, "id": 6901, "name": "ElementaryTypeName", "src": "5311:7:6" }, { "attributes": { "contractScope": null, "name": "Counters.Counter", "referencedDeclaration": 8, "type": "struct Counters.Counter" }, "id": 6902, "name": "UserDefinedTypeName", "src": "5322:16:6" } ], "id": 6903, "name": "Mapping", "src": "5303:36:6" } ], "id": 6904, "name": "VariableDeclaration", "src": "5303:62:6" }, { "attributes": { "constant": false, "name": "_operatorApprovals", "scope": 7349, "stateVariable": true, "storageLocation": "default", "type": "mapping(address => mapping(address => bool))", "value": null, "visibility": "private" }, "children": [ { "attributes": { "type": "mapping(address => mapping(address => bool))" }, "children": [ { "attributes": { "name": "address", "type": "address" }, "id": 6905, "name": "ElementaryTypeName", "src": "5428:7:6" }, { "attributes": { "type": "mapping(address => bool)" }, "children": [ { "attributes": { "name": "address", "type": "address" }, "id": 6906, "name": "ElementaryTypeName", "src": "5447:7:6" }, { "attributes": { "name": "bool", "type": "bool" }, "id": 6907, "name": "ElementaryTypeName", "src": "5458:4:6" } ], "id": 6908, "name": "Mapping", "src": "5439:24:6" } ], "id": 6909, "name": "Mapping", "src": "5420:44:6" } ], "id": 6910, "name": "VariableDeclaration", "src": "5420:71:6" }, { "attributes": { "constant": true, "name": "_INTERFACE_ID_ERC721", "scope": 7349, "stateVariable": true, "storageLocation": "default", "type": "bytes4", "visibility": "private" }, "children": [ { "attributes": { "name": "bytes4", "type": "bytes4" }, "id": 6911, "name": "ElementaryTypeName", "src": "5498:6:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30783830616335386364", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2158778573", "value": "0x80ac58cd" }, "id": 6912, "name": "Literal", "src": "5545:10:6" } ], "id": 6913, "name": "VariableDeclaration", "src": "5498:57:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": true, "kind": "constructor", "modifiers": [ null ], "name": "", "scope": 7349, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 6914, "name": "ParameterList", "src": "5573:2:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 6915, "name": "ParameterList", "src": "5583:0:6" }, { "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_bytes4", "typeString": "bytes4" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6851, "type": "function (bytes4)", "value": "_registerInterface" }, "id": 6916, "name": "Identifier", "src": "5670:18:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6913, "type": "bytes4", "value": "_INTERFACE_ID_ERC721" }, "id": 6917, "name": "Identifier", "src": "5689:20:6" } ], "id": 6918, "name": "FunctionCall", "src": "5670:40:6" } ], "id": 6919, "name": "ExpressionStatement", "src": "5670:40:6" } ], "id": 6920, "name": "Block", "src": "5583:134:6" } ], "id": 6921, "name": "FunctionDefinition", "src": "5562:155:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "balanceOf", "scope": 7349, "stateMutability": "view", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "owner", "scope": 6936, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6922, "name": "ElementaryTypeName", "src": "5742:7:6" } ], "id": 6923, "name": "VariableDeclaration", "src": "5742:13:6" } ], "id": 6924, "name": "ParameterList", "src": "5741:15:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 6936, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 6925, "name": "ElementaryTypeName", "src": "5778:7:6" } ], "id": 6926, "name": "VariableDeclaration", "src": "5778:7:6" } ], "id": 6927, "name": "ParameterList", "src": "5777:9:6" }, { "children": [ { "attributes": { "functionReturnParameters": 6927 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_struct$_Counter_$8_storage", "typeString": "struct Counters.Counter storage ref" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "current", "referencedDeclaration": 19, "type": "function (struct Counters.Counter storage pointer) view returns (uint256)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 48, "type": "type(library Counters)", "value": "Counters" }, "id": 6928, "name": "Identifier", "src": "5967:8:6" } ], "id": 6929, "name": "MemberAccess", "src": "5967:16:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "struct Counters.Counter storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6904, "type": "mapping(address => struct Counters.Counter storage ref)", "value": "_ownedTokensCount" }, "id": 6930, "name": "Identifier", "src": "5984:17:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6923, "type": "address", "value": "owner" }, "id": 6931, "name": "Identifier", "src": "6002:5:6" } ], "id": 6932, "name": "IndexAccess", "src": "5984:24:6" } ], "id": 6933, "name": "FunctionCall", "src": "5967:42:6" } ], "id": 6934, "name": "Return", "src": "5960:49:6" } ], "id": 6935, "name": "Block", "src": "5787:229:6" } ], "id": 6936, "name": "FunctionDefinition", "src": "5723:293:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "ownerOf", "scope": 7349, "stateMutability": "view", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "tokenId", "scope": 6948, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 6937, "name": "ElementaryTypeName", "src": "6039:7:6" } ], "id": 6938, "name": "VariableDeclaration", "src": "6039:15:6" } ], "id": 6939, "name": "ParameterList", "src": "6038:17:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 6948, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6940, "name": "ElementaryTypeName", "src": "6077:7:6" } ], "id": 6941, "name": "VariableDeclaration", "src": "6077:7:6" } ], "id": 6942, "name": "ParameterList", "src": "6076:9:6" }, { "children": [ { "attributes": { "functionReturnParameters": 6942 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6896, "type": "mapping(uint256 => address)", "value": "_tokenOwner" }, "id": 6943, "name": "Identifier", "src": "6158:11:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6938, "type": "uint256", "value": "tokenId" }, "id": 6944, "name": "Identifier", "src": "6170:7:6" } ], "id": 6945, "name": "IndexAccess", "src": "6158:20:6" } ], "id": 6946, "name": "Return", "src": "6151:27:6" } ], "id": 6947, "name": "Block", "src": "6086:99:6" } ], "id": 6948, "name": "FunctionDefinition", "src": "6022:163:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "approve", "scope": 7349, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "to", "scope": 6996, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 6949, "name": "ElementaryTypeName", "src": "6279:7:6" } ], "id": 6950, "name": "VariableDeclaration", "src": "6279:10:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 6996, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 6951, "name": "ElementaryTypeName", "src": "6291:7:6" } ], "id": 6952, "name": "VariableDeclaration", "src": "6291:15:6" } ], "id": 6953, "name": "ParameterList", "src": "6278:29:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 6954, "name": "ParameterList", "src": "6315:0:6" }, { "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_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_81a360bc52c14c134cb7d9160492675febfaf971920beb29b1bae55618d469e5", "typeString": "literal_string \"the given address must not be the owner of the tokenId\"" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "type": "function (bool,string memory) pure", "value": "require" }, "id": 6955, "name": "Identifier", "src": "6402:7:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6950, "type": "address", "value": "to" }, "id": 6956, "name": "Identifier", "src": "6423:2:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6896, "type": "mapping(uint256 => address)", "value": "_tokenOwner" }, "id": 6957, "name": "Identifier", "src": "6429:11:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6952, "type": "uint256", "value": "tokenId" }, "id": 6958, "name": "Identifier", "src": "6441:7:6" } ], "id": 6959, "name": "IndexAccess", "src": "6429:20:6" } ], "id": 6960, "name": "BinaryOperation", "src": "6423:26:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "74686520676976656e2061646472657373206d757374206e6f7420626520746865206f776e6572206f662074686520746f6b656e4964", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"the given address must not be the owner of the tokenId\"", "value": "the given address must not be the owner of the tokenId" }, "id": 6961, "name": "Literal", "src": "6463:56:6" } ], "id": 6962, "name": "FunctionCall", "src": "6402:127:6" } ], "id": 6963, "name": "ExpressionStatement", "src": "6402:127:6" }, { "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_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_d18ad11708fa8fd864f8eafe6efb8b4caf256aa0a745c32d6f46b52a471cd79f", "typeString": "literal_string \"must be called by owner unless approved for all\"" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "type": "function (bool,string memory) pure", "value": "require" }, "id": 6964, "name": "Identifier", "src": "6643:7:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "||", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "==", "type": "bool" }, "children": [ { "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": 8957, "type": "msg", "value": "msg" }, "id": 6965, "name": "Identifier", "src": "6664:3:6" } ], "id": 6966, "name": "MemberAccess", "src": "6664:10:6" }, { "attributes": { "argumentTypes": null, "arguments": [ null ], "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ null ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6674, "type": "function () view returns (address)", "value": "owner" }, "id": 6967, "name": "Identifier", "src": "6678:5:6" } ], "id": 6968, "name": "FunctionCall", "src": "6678:7:6" } ], "id": 6969, "name": "BinaryOperation", "src": "6664:21:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "bool", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address_payable", "typeString": "address payable" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7055, "type": "function (address,address) view returns (bool)", "value": "isApprovedForAll" }, "id": 6970, "name": "Identifier", "src": "6705:16:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6896, "type": "mapping(uint256 => address)", "value": "_tokenOwner" }, "id": 6971, "name": "Identifier", "src": "6722:11:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6952, "type": "uint256", "value": "tokenId" }, "id": 6972, "name": "Identifier", "src": "6734:7:6" } ], "id": 6973, "name": "IndexAccess", "src": "6722:20:6" }, { "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": 8957, "type": "msg", "value": "msg" }, "id": 6974, "name": "Identifier", "src": "6744:3:6" } ], "id": 6975, "name": "MemberAccess", "src": "6744:10:6" } ], "id": 6976, "name": "FunctionCall", "src": "6705:50:6" } ], "id": 6977, "name": "BinaryOperation", "src": "6664:91:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "6d7573742062652063616c6c6564206279206f776e657220756e6c65737320617070726f76656420666f7220616c6c", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"must be called by owner unless approved for all\"", "value": "must be called by owner unless approved for all" }, "id": 6978, "name": "Literal", "src": "6769:49:6" } ], "id": 6979, "name": "FunctionCall", "src": "6643:185:6" } ], "id": 6980, "name": "ExpressionStatement", "src": "6643:185:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6900, "type": "mapping(uint256 => address)", "value": "_tokenApprovals" }, "id": 6981, "name": "Identifier", "src": "6891:15:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6952, "type": "uint256", "value": "tokenId" }, "id": 6982, "name": "Identifier", "src": "6907:7:6" } ], "id": 6983, "name": "IndexAccess", "src": "6891:24:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6950, "type": "address", "value": "to" }, "id": 6984, "name": "Identifier", "src": "6918:2:6" } ], "id": 6985, "name": "Assignment", "src": "6891:29:6" } ], "id": 6986, "name": "ExpressionStatement", "src": "6891:29:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6872, "type": "function (address,address,uint256)", "value": "Approval" }, "id": 6987, "name": "Identifier", "src": "6972:8:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6896, "type": "mapping(uint256 => address)", "value": "_tokenOwner" }, "id": 6988, "name": "Identifier", "src": "6981:11:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6952, "type": "uint256", "value": "tokenId" }, "id": 6989, "name": "Identifier", "src": "6993:7:6" } ], "id": 6990, "name": "IndexAccess", "src": "6981:20:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6950, "type": "address", "value": "to" }, "id": 6991, "name": "Identifier", "src": "7003:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6952, "type": "uint256", "value": "tokenId" }, "id": 6992, "name": "Identifier", "src": "7007:7:6" } ], "id": 6993, "name": "FunctionCall", "src": "6972:43:6" } ], "id": 6994, "name": "EmitStatement", "src": "6967:48:6" } ], "id": 6995, "name": "Block", "src": "6315:707:6" } ], "id": 6996, "name": "FunctionDefinition", "src": "6262:760:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "getApproved", "scope": 7349, "stateMutability": "view", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "tokenId", "scope": 7008, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 6997, "name": "ElementaryTypeName", "src": "7049:7:6" } ], "id": 6998, "name": "VariableDeclaration", "src": "7049:15:6" } ], "id": 6999, "name": "ParameterList", "src": "7048:17:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7008, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7000, "name": "ElementaryTypeName", "src": "7087:7:6" } ], "id": 7001, "name": "VariableDeclaration", "src": "7087:7:6" } ], "id": 7002, "name": "ParameterList", "src": "7086:9:6" }, { "children": [ { "attributes": { "functionReturnParameters": 7002 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6900, "type": "mapping(uint256 => address)", "value": "_tokenApprovals" }, "id": 7003, "name": "Identifier", "src": "7164:15:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6998, "type": "uint256", "value": "tokenId" }, "id": 7004, "name": "Identifier", "src": "7180:7:6" } ], "id": 7005, "name": "IndexAccess", "src": "7164:24:6" } ], "id": 7006, "name": "Return", "src": "7157:31:6" } ], "id": 7007, "name": "Block", "src": "7096:99:6" } ], "id": 7008, "name": "FunctionDefinition", "src": "7028:167:6" }, { "attributes": { "documentation": "@dev Sets or unsets the approval of a given operator\nAn operator is allowed to transfer all tokens of the sender on their behalf\n@param to operator address to set the approval\n@param approved representing the status of the approval to be set", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "setApprovalForAll", "scope": 7349, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "to", "scope": 7039, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7009, "name": "ElementaryTypeName", "src": "7514:7:6" } ], "id": 7010, "name": "VariableDeclaration", "src": "7514:10:6" }, { "attributes": { "constant": false, "name": "approved", "scope": 7039, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 7011, "name": "ElementaryTypeName", "src": "7526:4:6" } ], "id": 7012, "name": "VariableDeclaration", "src": "7526:13:6" } ], "id": 7013, "name": "ParameterList", "src": "7513:27:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7014, "name": "ParameterList", "src": "7548:0:6" }, { "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_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 7015, "name": "Identifier", "src": "7558:7:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7010, "type": "address", "value": "to" }, "id": 7016, "name": "Identifier", "src": "7566:2:6" }, { "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": 8957, "type": "msg", "value": "msg" }, "id": 7017, "name": "Identifier", "src": "7572:3:6" } ], "id": 7018, "name": "MemberAccess", "src": "7572:10:6" } ], "id": 7019, "name": "BinaryOperation", "src": "7566:16:6" } ], "id": 7020, "name": "FunctionCall", "src": "7558:25:6" } ], "id": 7021, "name": "ExpressionStatement", "src": "7558:25:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "mapping(address => bool)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6910, "type": "mapping(address => mapping(address => bool))", "value": "_operatorApprovals" }, "id": 7022, "name": "Identifier", "src": "7593:18:6" }, { "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": 8957, "type": "msg", "value": "msg" }, "id": 7023, "name": "Identifier", "src": "7612:3:6" } ], "id": 7024, "name": "MemberAccess", "src": "7612:10:6" } ], "id": 7026, "name": "IndexAccess", "src": "7593:30:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7010, "type": "address", "value": "to" }, "id": 7025, "name": "Identifier", "src": "7624:2:6" } ], "id": 7027, "name": "IndexAccess", "src": "7593:34:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7012, "type": "bool", "value": "approved" }, "id": 7028, "name": "Identifier", "src": "7630:8:6" } ], "id": 7029, "name": "Assignment", "src": "7593:45:6" } ], "id": 7030, "name": "ExpressionStatement", "src": "7593:45:6" }, { "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_address", "typeString": "address" }, { "typeIdentifier": "t_bool", "typeString": "bool" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6880, "type": "function (address,address,bool)", "value": "ApprovalForAll" }, "id": 7031, "name": "Identifier", "src": "7653:14:6" }, { "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": 8957, "type": "msg", "value": "msg" }, "id": 7032, "name": "Identifier", "src": "7668:3:6" } ], "id": 7033, "name": "MemberAccess", "src": "7668:10:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7010, "type": "address", "value": "to" }, "id": 7034, "name": "Identifier", "src": "7680:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7012, "type": "bool", "value": "approved" }, "id": 7035, "name": "Identifier", "src": "7684:8:6" } ], "id": 7036, "name": "FunctionCall", "src": "7653:40:6" } ], "id": 7037, "name": "EmitStatement", "src": "7648:45:6" } ], "id": 7038, "name": "Block", "src": "7548:152:6" } ], "id": 7039, "name": "FunctionDefinition", "src": "7487:213:6" }, { "attributes": { "documentation": "@dev Tells whether an operator is approved by a given owner\n@param owner owner address which you want to query the approval of\n@param operator operator address which you want to query the approval of\n@return bool whether the given operator is approved by the given owner", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "isApprovedForAll", "scope": 7349, "stateMutability": "view", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "owner", "scope": 7055, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7040, "name": "ElementaryTypeName", "src": "8047:7:6" } ], "id": 7041, "name": "VariableDeclaration", "src": "8047:13:6" }, { "attributes": { "constant": false, "name": "operator", "scope": 7055, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7042, "name": "ElementaryTypeName", "src": "8062:7:6" } ], "id": 7043, "name": "VariableDeclaration", "src": "8062:16:6" } ], "id": 7044, "name": "ParameterList", "src": "8046:33:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7055, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 7045, "name": "ElementaryTypeName", "src": "8125:4:6" } ], "id": 7046, "name": "VariableDeclaration", "src": "8125:4:6" } ], "id": 7047, "name": "ParameterList", "src": "8124:6:6" }, { "children": [ { "attributes": { "functionReturnParameters": 7047 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "mapping(address => bool)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6910, "type": "mapping(address => mapping(address => bool))", "value": "_operatorApprovals" }, "id": 7048, "name": "Identifier", "src": "8152:18:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7041, "type": "address", "value": "owner" }, "id": 7049, "name": "Identifier", "src": "8171:5:6" } ], "id": 7050, "name": "IndexAccess", "src": "8152:25:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7043, "type": "address", "value": "operator" }, "id": 7051, "name": "Identifier", "src": "8178:8:6" } ], "id": 7052, "name": "IndexAccess", "src": "8152:35:6" } ], "id": 7053, "name": "Return", "src": "8145:42:6" } ], "id": 7054, "name": "Block", "src": "8135:59:6" } ], "id": 7055, "name": "FunctionDefinition", "src": "8021:173:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "transferFrom", "scope": 7349, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "from", "scope": 7080, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7056, "name": "ElementaryTypeName", "src": "8231:7:6" } ], "id": 7057, "name": "VariableDeclaration", "src": "8231:12:6" }, { "attributes": { "constant": false, "name": "to", "scope": 7080, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7058, "name": "ElementaryTypeName", "src": "8253:7:6" } ], "id": 7059, "name": "VariableDeclaration", "src": "8253:10:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 7080, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7060, "name": "ElementaryTypeName", "src": "8273:7:6" } ], "id": 7061, "name": "VariableDeclaration", "src": "8273:15:6" } ], "id": 7062, "name": "ParameterList", "src": "8221:73:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7063, "name": "ParameterList", "src": "8302:0:6" }, { "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_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_066c104c13e1ea3f3e9903257d43d21fdf7679f1bc7a6667b2764316457f3eea", "typeString": "literal_string \"must be approved or be the owner of the contract\"" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "type": "function (bool,string memory) pure", "value": "require" }, "id": 7064, "name": "Identifier", "src": "8312:7:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "bool", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7176, "type": "function (address,uint256) view returns (bool)", "value": "_isApprovedOrOwner" }, "id": 7065, "name": "Identifier", "src": "8333:18:6" }, { "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": 8957, "type": "msg", "value": "msg" }, "id": 7066, "name": "Identifier", "src": "8352:3:6" } ], "id": 7067, "name": "MemberAccess", "src": "8352:10:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7061, "type": "uint256", "value": "tokenId" }, "id": 7068, "name": "Identifier", "src": "8364:7:6" } ], "id": 7069, "name": "FunctionCall", "src": "8333:39:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "6d75737420626520617070726f766564206f7220626520746865206f776e6572206f662074686520636f6e7472616374", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"must be approved or be the owner of the contract\"", "value": "must be approved or be the owner of the contract" }, "id": 7070, "name": "Literal", "src": "8386:50:6" } ], "id": 7071, "name": "FunctionCall", "src": "8312:134:6" } ], "id": 7072, "name": "ExpressionStatement", "src": "8312:134:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7285, "type": "function (address,address,uint256)", "value": "_transferFrom" }, "id": 7073, "name": "Identifier", "src": "8457:13:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7057, "type": "address", "value": "from" }, "id": 7074, "name": "Identifier", "src": "8471:4:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7059, "type": "address", "value": "to" }, "id": 7075, "name": "Identifier", "src": "8477:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7061, "type": "uint256", "value": "tokenId" }, "id": 7076, "name": "Identifier", "src": "8481:7:6" } ], "id": 7077, "name": "FunctionCall", "src": "8457:32:6" } ], "id": 7078, "name": "ExpressionStatement", "src": "8457:32:6" } ], "id": 7079, "name": "Block", "src": "8302:194:6" } ], "id": 7080, "name": "FunctionDefinition", "src": "8200:296:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "safeTransferFrom", "scope": 7349, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "from", "scope": 7097, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7081, "name": "ElementaryTypeName", "src": "8537:7:6" } ], "id": 7082, "name": "VariableDeclaration", "src": "8537:12:6" }, { "attributes": { "constant": false, "name": "to", "scope": 7097, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7083, "name": "ElementaryTypeName", "src": "8559:7:6" } ], "id": 7084, "name": "VariableDeclaration", "src": "8559:10:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 7097, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7085, "name": "ElementaryTypeName", "src": "8579:7:6" } ], "id": 7086, "name": "VariableDeclaration", "src": "8579:15:6" } ], "id": 7087, "name": "ParameterList", "src": "8527:73:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7088, "name": "ParameterList", "src": "8608:0:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", "typeString": "literal_string \"\"" } ], "overloadedDeclarations": [ 7097, 7124 ], "referencedDeclaration": 7124, "type": "function (address,address,uint256,bytes memory)", "value": "safeTransferFrom" }, "id": 7089, "name": "Identifier", "src": "8618:16:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7082, "type": "address", "value": "from" }, "id": 7090, "name": "Identifier", "src": "8635:4:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7084, "type": "address", "value": "to" }, "id": 7091, "name": "Identifier", "src": "8641:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7086, "type": "uint256", "value": "tokenId" }, "id": 7092, "name": "Identifier", "src": "8645:7:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"\"", "value": "" }, "id": 7093, "name": "Literal", "src": "8654:2:6" } ], "id": 7094, "name": "FunctionCall", "src": "8618:39:6" } ], "id": 7095, "name": "ExpressionStatement", "src": "8618:39:6" } ], "id": 7096, "name": "Block", "src": "8608:56:6" } ], "id": 7097, "name": "FunctionDefinition", "src": "8502:162:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "safeTransferFrom", "scope": 7349, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "from", "scope": 7124, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7098, "name": "ElementaryTypeName", "src": "8705:7:6" } ], "id": 7099, "name": "VariableDeclaration", "src": "8705:12:6" }, { "attributes": { "constant": false, "name": "to", "scope": 7124, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7100, "name": "ElementaryTypeName", "src": "8727:7:6" } ], "id": 7101, "name": "VariableDeclaration", "src": "8727:10:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 7124, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7102, "name": "ElementaryTypeName", "src": "8747:7:6" } ], "id": 7103, "name": "VariableDeclaration", "src": "8747:15:6" }, { "attributes": { "constant": false, "name": "_data", "scope": 7124, "stateVariable": false, "storageLocation": "memory", "type": "bytes", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bytes", "type": "bytes" }, "id": 7104, "name": "ElementaryTypeName", "src": "8772:5:6" } ], "id": 7105, "name": "VariableDeclaration", "src": "8772:18:6" } ], "id": 7106, "name": "ParameterList", "src": "8695:101:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7107, "name": "ParameterList", "src": "8804:0:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7080, "type": "function (address,address,uint256)", "value": "transferFrom" }, "id": 7108, "name": "Identifier", "src": "8814:12:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7099, "type": "address", "value": "from" }, "id": 7109, "name": "Identifier", "src": "8827:4:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7101, "type": "address", "value": "to" }, "id": 7110, "name": "Identifier", "src": "8833:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7103, "type": "uint256", "value": "tokenId" }, "id": 7111, "name": "Identifier", "src": "8837:7:6" } ], "id": 7112, "name": "FunctionCall", "src": "8814:31:6" } ], "id": 7113, "name": "ExpressionStatement", "src": "8814:31:6" }, { "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_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 7114, "name": "Identifier", "src": "8855:7:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "bool", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7325, "type": "function (address,address,uint256,bytes memory) returns (bool)", "value": "_checkOnERC721Received" }, "id": 7115, "name": "Identifier", "src": "8863:22:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7099, "type": "address", "value": "from" }, "id": 7116, "name": "Identifier", "src": "8886:4:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7101, "type": "address", "value": "to" }, "id": 7117, "name": "Identifier", "src": "8892:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7103, "type": "uint256", "value": "tokenId" }, "id": 7118, "name": "Identifier", "src": "8896:7:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7105, "type": "bytes memory", "value": "_data" }, "id": 7119, "name": "Identifier", "src": "8905:5:6" } ], "id": 7120, "name": "FunctionCall", "src": "8863:48:6" } ], "id": 7121, "name": "FunctionCall", "src": "8855:57:6" } ], "id": 7122, "name": "ExpressionStatement", "src": "8855:57:6" } ], "id": 7123, "name": "Block", "src": "8804:115:6" } ], "id": 7124, "name": "FunctionDefinition", "src": "8670:249:6" }, { "attributes": { "documentation": "@dev Returns whether the specified token exists\n@param tokenId uint256 ID of the token to query the existence of\n@return bool whether the token exists", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_exists", "scope": 7349, "stateMutability": "view", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "tokenId", "scope": 7144, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7125, "name": "ElementaryTypeName", "src": "9130:7:6" } ], "id": 7126, "name": "VariableDeclaration", "src": "9130:15:6" } ], "id": 7127, "name": "ParameterList", "src": "9129:17:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7144, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 7128, "name": "ElementaryTypeName", "src": "9170:4:6" } ], "id": 7129, "name": "VariableDeclaration", "src": "9170:4:6" } ], "id": 7130, "name": "ParameterList", "src": "9169:6:6" }, { "children": [ { "attributes": { "assignments": [ 7132 ] }, "children": [ { "attributes": { "constant": false, "name": "owner", "scope": 7143, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7131, "name": "ElementaryTypeName", "src": "9186:7:6" } ], "id": 7132, "name": "VariableDeclaration", "src": "9186:13:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6896, "type": "mapping(uint256 => address)", "value": "_tokenOwner" }, "id": 7133, "name": "Identifier", "src": "9202:11:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7126, "type": "uint256", "value": "tokenId" }, "id": 7134, "name": "Identifier", "src": "9214:7:6" } ], "id": 7135, "name": "IndexAccess", "src": "9202:20:6" } ], "id": 7136, "name": "VariableDeclarationStatement", "src": "9186:36:6" }, { "attributes": { "functionReturnParameters": 7130 }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7132, "type": "address", "value": "owner" }, "id": 7137, "name": "Identifier", "src": "9239:5:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address payable", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(address)", "value": "address" }, "id": 7138, "name": "ElementaryTypeNameExpression", "src": "9248:7:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 7139, "name": "Literal", "src": "9256:1:6" } ], "id": 7140, "name": "FunctionCall", "src": "9248:10:6" } ], "id": 7141, "name": "BinaryOperation", "src": "9239:19:6" } ], "id": 7142, "name": "Return", "src": "9232:26:6" } ], "id": 7143, "name": "Block", "src": "9176:89:6" } ], "id": 7144, "name": "FunctionDefinition", "src": "9113:152:6" }, { "attributes": { "documentation": "@dev Returns whether the given spender can transfer a given token ID\n@param spender address of the spender to query\n@param tokenId uint256 ID of the token to be transferred\n@return bool whether the msg.sender is approved for the given token ID,\nis an operator of the owner, or is the owner of the token", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_isApprovedOrOwner", "scope": 7349, "stateMutability": "view", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "spender", "scope": 7176, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7145, "name": "ElementaryTypeName", "src": "9653:7:6" } ], "id": 7146, "name": "VariableDeclaration", "src": "9653:15:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 7176, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7147, "name": "ElementaryTypeName", "src": "9670:7:6" } ], "id": 7148, "name": "VariableDeclaration", "src": "9670:15:6" } ], "id": 7149, "name": "ParameterList", "src": "9652:34:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7176, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 7150, "name": "ElementaryTypeName", "src": "9734:4:6" } ], "id": 7151, "name": "VariableDeclaration", "src": "9734:4:6" } ], "id": 7152, "name": "ParameterList", "src": "9733:6:6" }, { "children": [ { "attributes": { "assignments": [ 7154 ] }, "children": [ { "attributes": { "constant": false, "name": "owner", "scope": 7175, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7153, "name": "ElementaryTypeName", "src": "9754:7:6" } ], "id": 7154, "name": "VariableDeclaration", "src": "9754:13:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6948, "type": "function (uint256) view returns (address)", "value": "ownerOf" }, "id": 7155, "name": "Identifier", "src": "9770:7:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7148, "type": "uint256", "value": "tokenId" }, "id": 7156, "name": "Identifier", "src": "9778:7:6" } ], "id": 7157, "name": "FunctionCall", "src": "9770:16:6" } ], "id": 7158, "name": "VariableDeclarationStatement", "src": "9754:32:6" }, { "attributes": { "functionReturnParameters": 7152 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "||", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bool", "typeString": "bool" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "||", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "==", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7146, "type": "address", "value": "spender" }, "id": 7159, "name": "Identifier", "src": "9804:7:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7154, "type": "address", "value": "owner" }, "id": 7160, "name": "Identifier", "src": "9815:5:6" } ], "id": 7161, "name": "BinaryOperation", "src": "9804:16:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "==", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7008, "type": "function (uint256) view returns (address)", "value": "getApproved" }, "id": 7162, "name": "Identifier", "src": "9836:11:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7148, "type": "uint256", "value": "tokenId" }, "id": 7163, "name": "Identifier", "src": "9848:7:6" } ], "id": 7164, "name": "FunctionCall", "src": "9836:20:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7146, "type": "address", "value": "spender" }, "id": 7165, "name": "Identifier", "src": "9860:7:6" } ], "id": 7166, "name": "BinaryOperation", "src": "9836:31:6" } ], "id": 7167, "name": "BinaryOperation", "src": "9804:63:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "bool", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7055, "type": "function (address,address) view returns (bool)", "value": "isApprovedForAll" }, "id": 7168, "name": "Identifier", "src": "9883:16:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7154, "type": "address", "value": "owner" }, "id": 7169, "name": "Identifier", "src": "9900:5:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7146, "type": "address", "value": "spender" }, "id": 7170, "name": "Identifier", "src": "9907:7:6" } ], "id": 7171, "name": "FunctionCall", "src": "9883:32:6" } ], "id": 7172, "name": "BinaryOperation", "src": "9804:111:6" } ], "id": 7173, "name": "TupleExpression", "src": "9803:113:6" } ], "id": 7174, "name": "Return", "src": "9796:120:6" } ], "id": 7175, "name": "Block", "src": "9744:179:6" } ], "id": 7176, "name": "FunctionDefinition", "src": "9625:298:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_mint", "scope": 7349, "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "to", "scope": 7230, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7177, "name": "ElementaryTypeName", "src": "10095:7:6" } ], "id": 7178, "name": "VariableDeclaration", "src": "10095:10:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 7230, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7179, "name": "ElementaryTypeName", "src": "10107:7:6" } ], "id": 7180, "name": "VariableDeclaration", "src": "10107:15:6" } ], "id": 7181, "name": "ParameterList", "src": "10094:29:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7182, "name": "ParameterList", "src": "10133:0:6" }, { "children": [ { "attributes": { "falseBody": null }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "==", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7178, "type": "address", "value": "to" }, "id": 7183, "name": "Identifier", "src": "10230:2:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address payable", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(address)", "value": "address" }, "id": 7184, "name": "ElementaryTypeNameExpression", "src": "10236:7:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 7185, "name": "Literal", "src": "10244:1:6" } ], "id": 7186, "name": "FunctionCall", "src": "10236:10:6" } ], "id": 7187, "name": "BinaryOperation", "src": "10230:16:6" }, { "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_stringliteral_fd7df492914e18a9116965d53533f73b3bf6774f69e8f0675111bc1f59c415e1", "typeString": "literal_string \"invalid address provided\"" } ], "overloadedDeclarations": [ 8962, 8963 ], "referencedDeclaration": 8963, "type": "function (string memory) pure", "value": "revert" }, "id": 7188, "name": "Identifier", "src": "10262:6:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "696e76616c696420616464726573732070726f7669646564", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"invalid address provided\"", "value": "invalid address provided" }, "id": 7189, "name": "Literal", "src": "10269:26:6" } ], "id": 7190, "name": "FunctionCall", "src": "10262:34:6" } ], "id": 7191, "name": "ExpressionStatement", "src": "10262:34:6" } ], "id": 7192, "name": "Block", "src": "10248:59:6" } ], "id": 7193, "name": "IfStatement", "src": "10226:81:6" }, { "attributes": { "falseBody": null }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6896, "type": "mapping(uint256 => address)", "value": "_tokenOwner" }, "id": 7194, "name": "Identifier", "src": "10320:11:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7180, "type": "uint256", "value": "tokenId" }, "id": 7195, "name": "Identifier", "src": "10332:7:6" } ], "id": 7196, "name": "IndexAccess", "src": "10320:20:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address payable", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(address)", "value": "address" }, "id": 7197, "name": "ElementaryTypeNameExpression", "src": "10344:7:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 7198, "name": "Literal", "src": "10352:1:6" } ], "id": 7199, "name": "FunctionCall", "src": "10344:10:6" } ], "id": 7200, "name": "BinaryOperation", "src": "10320:34:6" }, { "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_stringliteral_db28e955058f1079289a36104e2773695d4ef3db2ce6b16d98568cf681bf5617", "typeString": "literal_string \"tokenId already exists\"" } ], "overloadedDeclarations": [ 8962, 8963 ], "referencedDeclaration": 8963, "type": "function (string memory) pure", "value": "revert" }, "id": 7201, "name": "Identifier", "src": "10370:6:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "746f6b656e496420616c726561647920657869737473", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"tokenId already exists\"", "value": "tokenId already exists" }, "id": 7202, "name": "Literal", "src": "10377:24:6" } ], "id": 7203, "name": "FunctionCall", "src": "10370:32:6" } ], "id": 7204, "name": "ExpressionStatement", "src": "10370:32:6" } ], "id": 7205, "name": "Block", "src": "10356:57:6" } ], "id": 7206, "name": "IfStatement", "src": "10316:97:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6896, "type": "mapping(uint256 => address)", "value": "_tokenOwner" }, "id": 7207, "name": "Identifier", "src": "10501:11:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7180, "type": "uint256", "value": "tokenId" }, "id": 7208, "name": "Identifier", "src": "10513:7:6" } ], "id": 7209, "name": "IndexAccess", "src": "10501:20:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7178, "type": "address", "value": "to" }, "id": 7210, "name": "Identifier", "src": "10524:2:6" } ], "id": 7211, "name": "Assignment", "src": "10501:25:6" } ], "id": 7212, "name": "ExpressionStatement", "src": "10501:25:6" }, { "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_struct$_Counter_$8_storage", "typeString": "struct Counters.Counter storage ref" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "increment", "referencedDeclaration": 31, "type": "function (struct Counters.Counter storage pointer)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 48, "type": "type(library Counters)", "value": "Counters" }, "id": 7213, "name": "Identifier", "src": "10536:8:6" } ], "id": 7215, "name": "MemberAccess", "src": "10536:18:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "struct Counters.Counter storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6904, "type": "mapping(address => struct Counters.Counter storage ref)", "value": "_ownedTokensCount" }, "id": 7216, "name": "Identifier", "src": "10555:17:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7178, "type": "address", "value": "to" }, "id": 7217, "name": "Identifier", "src": "10573:2:6" } ], "id": 7218, "name": "IndexAccess", "src": "10555:21:6" } ], "id": 7219, "name": "FunctionCall", "src": "10536:41:6" } ], "id": 7220, "name": "ExpressionStatement", "src": "10536:41:6" }, { "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_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6864, "type": "function (address,address,uint256)", "value": "Transfer" }, "id": 7221, "name": "Identifier", "src": "10629:8:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address payable", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(address)", "value": "address" }, "id": 7222, "name": "ElementaryTypeNameExpression", "src": "10638:7:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 7223, "name": "Literal", "src": "10646:1:6" } ], "id": 7224, "name": "FunctionCall", "src": "10638:10:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7178, "type": "address", "value": "to" }, "id": 7225, "name": "Identifier", "src": "10650:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7180, "type": "uint256", "value": "tokenId" }, "id": 7226, "name": "Identifier", "src": "10654:7:6" } ], "id": 7227, "name": "FunctionCall", "src": "10629:33:6" } ], "id": 7228, "name": "EmitStatement", "src": "10624:38:6" } ], "id": 7229, "name": "Block", "src": "10133:536:6" } ], "id": 7230, "name": "FunctionDefinition", "src": "10080:589:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_transferFrom", "scope": 7349, "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "from", "scope": 7285, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7231, "name": "ElementaryTypeName", "src": "10900:7:6" } ], "id": 7232, "name": "VariableDeclaration", "src": "10900:12:6" }, { "attributes": { "constant": false, "name": "to", "scope": 7285, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7233, "name": "ElementaryTypeName", "src": "10922:7:6" } ], "id": 7234, "name": "VariableDeclaration", "src": "10922:10:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 7285, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7235, "name": "ElementaryTypeName", "src": "10942:7:6" } ], "id": 7236, "name": "VariableDeclaration", "src": "10942:15:6" } ], "id": 7237, "name": "ParameterList", "src": "10890:73:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7238, "name": "ParameterList", "src": "10973:0:6" }, { "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_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_f34e4caa16cde9bf75567b0cbf4a11866848b7c8dec447d057792edc1e35d0ec", "typeString": "literal_string \"from address must be owner of tokenId\"" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "type": "function (bool,string memory) pure", "value": "require" }, "id": 7239, "name": "Identifier", "src": "11053:7:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "==", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7232, "type": "address", "value": "from" }, "id": 7240, "name": "Identifier", "src": "11074:4:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6896, "type": "mapping(uint256 => address)", "value": "_tokenOwner" }, "id": 7241, "name": "Identifier", "src": "11082:11:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7236, "type": "uint256", "value": "tokenId" }, "id": 7242, "name": "Identifier", "src": "11094:7:6" } ], "id": 7243, "name": "IndexAccess", "src": "11082:20:6" } ], "id": 7244, "name": "BinaryOperation", "src": "11074:28:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "66726f6d2061646472657373206d757374206265206f776e6572206f6620746f6b656e4964", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"from address must be owner of tokenId\"", "value": "from address must be owner of tokenId" }, "id": 7245, "name": "Literal", "src": "11116:39:6" } ], "id": 7246, "name": "FunctionCall", "src": "11053:112:6" } ], "id": 7247, "name": "ExpressionStatement", "src": "11053:112:6" }, { "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_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_7168fe357a16516d3f7128acd3d31c3e2cd6340ebdf1bd0604ea50c6c2b8f2aa", "typeString": "literal_string \"new token address must be valid\"" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8961, "type": "function (bool,string memory) pure", "value": "require" }, "id": 7248, "name": "Identifier", "src": "11243:7:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7234, "type": "address", "value": "to" }, "id": 7249, "name": "Identifier", "src": "11251:2:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address payable", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(address)", "value": "address" }, "id": 7250, "name": "ElementaryTypeNameExpression", "src": "11257:7:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 7251, "name": "Literal", "src": "11265:1:6" } ], "id": 7252, "name": "FunctionCall", "src": "11257:10:6" } ], "id": 7253, "name": "BinaryOperation", "src": "11251:16:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "6e657720746f6b656e2061646472657373206d7573742062652076616c6964", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"new token address must be valid\"", "value": "new token address must be valid" }, "id": 7254, "name": "Literal", "src": "11269:33:6" } ], "id": 7255, "name": "FunctionCall", "src": "11243:60:6" } ], "id": 7256, "name": "ExpressionStatement", "src": "11243:60:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "delete", "prefix": true, "type": "tuple()" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6900, "type": "mapping(uint256 => address)", "value": "_tokenApprovals" }, "id": 7257, "name": "Identifier", "src": "11353:15:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7236, "type": "uint256", "value": "tokenId" }, "id": 7258, "name": "Identifier", "src": "11369:7:6" } ], "id": 7259, "name": "IndexAccess", "src": "11353:24:6" } ], "id": 7260, "name": "UnaryOperation", "src": "11346:31:6" } ], "id": 7261, "name": "ExpressionStatement", "src": "11346:31:6" }, { "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_struct$_Counter_$8_storage", "typeString": "struct Counters.Counter storage ref" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "decrement", "referencedDeclaration": 47, "type": "function (struct Counters.Counter storage pointer)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 48, "type": "type(library Counters)", "value": "Counters" }, "id": 7262, "name": "Identifier", "src": "11462:8:6" } ], "id": 7264, "name": "MemberAccess", "src": "11462:18:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "struct Counters.Counter storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6904, "type": "mapping(address => struct Counters.Counter storage ref)", "value": "_ownedTokensCount" }, "id": 7265, "name": "Identifier", "src": "11481:17:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7232, "type": "address", "value": "from" }, "id": 7266, "name": "Identifier", "src": "11499:4:6" } ], "id": 7267, "name": "IndexAccess", "src": "11481:23:6" } ], "id": 7268, "name": "FunctionCall", "src": "11462:43:6" } ], "id": 7269, "name": "ExpressionStatement", "src": "11462:43:6" }, { "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_struct$_Counter_$8_storage", "typeString": "struct Counters.Counter storage ref" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "increment", "referencedDeclaration": 31, "type": "function (struct Counters.Counter storage pointer)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 48, "type": "type(library Counters)", "value": "Counters" }, "id": 7270, "name": "Identifier", "src": "11515:8:6" } ], "id": 7272, "name": "MemberAccess", "src": "11515:18:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "struct Counters.Counter storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6904, "type": "mapping(address => struct Counters.Counter storage ref)", "value": "_ownedTokensCount" }, "id": 7273, "name": "Identifier", "src": "11534:17:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7234, "type": "address", "value": "to" }, "id": 7274, "name": "Identifier", "src": "11552:2:6" } ], "id": 7275, "name": "IndexAccess", "src": "11534:21:6" } ], "id": 7276, "name": "FunctionCall", "src": "11515:41:6" } ], "id": 7277, "name": "ExpressionStatement", "src": "11515:41:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6864, "type": "function (address,address,uint256)", "value": "Transfer" }, "id": 7278, "name": "Identifier", "src": "11608:8:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7232, "type": "address", "value": "from" }, "id": 7279, "name": "Identifier", "src": "11617:4:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7234, "type": "address", "value": "to" }, "id": 7280, "name": "Identifier", "src": "11623:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7236, "type": "uint256", "value": "tokenId" }, "id": 7281, "name": "Identifier", "src": "11627:7:6" } ], "id": 7282, "name": "FunctionCall", "src": "11608:27:6" } ], "id": 7283, "name": "EmitStatement", "src": "11603:32:6" } ], "id": 7284, "name": "Block", "src": "10973:669:6" } ], "id": 7285, "name": "FunctionDefinition", "src": "10868:774:6" }, { "attributes": { "documentation": "@dev Internal function to invoke `onERC721Received` on a target address\nThe call is not executed if the target address is not a contract\n@param from address representing the previous owner of the given token ID\n@param to target address that will receive the tokens\n@param tokenId uint256 ID of the token to be transferred\n@param _data bytes optional data to send along with the call\n@return bool whether the call correctly returned the expected magic value", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_checkOnERC721Received", "scope": 7349, "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "from", "scope": 7325, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7286, "name": "ElementaryTypeName", "src": "12211:7:6" } ], "id": 7287, "name": "VariableDeclaration", "src": "12211:12:6" }, { "attributes": { "constant": false, "name": "to", "scope": 7325, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7288, "name": "ElementaryTypeName", "src": "12233:7:6" } ], "id": 7289, "name": "VariableDeclaration", "src": "12233:10:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 7325, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7290, "name": "ElementaryTypeName", "src": "12253:7:6" } ], "id": 7291, "name": "VariableDeclaration", "src": "12253:15:6" }, { "attributes": { "constant": false, "name": "_data", "scope": 7325, "stateVariable": false, "storageLocation": "memory", "type": "bytes", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bytes", "type": "bytes" }, "id": 7292, "name": "ElementaryTypeName", "src": "12278:5:6" } ], "id": 7293, "name": "VariableDeclaration", "src": "12278:18:6" } ], "id": 7294, "name": "ParameterList", "src": "12201:101:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7325, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 7295, "name": "ElementaryTypeName", "src": "12321:4:6" } ], "id": 7296, "name": "VariableDeclaration", "src": "12321:4:6" } ], "id": 7297, "name": "ParameterList", "src": "12320:6:6" }, { "children": [ { "attributes": { "falseBody": null }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!", "prefix": true, "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "arguments": [ null ], "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "bool", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ null ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "isContract", "referencedDeclaration": 278, "type": "function (address) view returns (bool)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7289, "type": "address", "value": "to" }, "id": 7298, "name": "Identifier", "src": "12342:2:6" } ], "id": 7299, "name": "MemberAccess", "src": "12342:13:6" } ], "id": 7300, "name": "FunctionCall", "src": "12342:15:6" } ], "id": 7301, "name": "UnaryOperation", "src": "12341:16:6" }, { "children": [ { "attributes": { "functionReturnParameters": 7297 }, "children": [ { "attributes": { "argumentTypes": null, "hexvalue": "74727565", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "bool", "type": "bool", "value": "true" }, "id": 7302, "name": "Literal", "src": "12380:4:6" } ], "id": 7303, "name": "Return", "src": "12373:11:6" } ], "id": 7304, "name": "Block", "src": "12359:36:6" } ], "id": 7305, "name": "IfStatement", "src": "12337:58:6" }, { "attributes": { "assignments": [ 7307 ] }, "children": [ { "attributes": { "constant": false, "name": "retval", "scope": 7324, "stateVariable": false, "storageLocation": "default", "type": "bytes4", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bytes4", "type": "bytes4" }, "id": 7306, "name": "ElementaryTypeName", "src": "12405:6:6" } ], "id": 7307, "name": "VariableDeclaration", "src": "12405:13:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "bytes4", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" }, { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes memory" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "onERC721Received", "referencedDeclaration": 250, "type": "function (address,address,uint256,bytes memory) external returns (bytes4)" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "contract IERC721Receiver", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 251, "type": "type(contract IERC721Receiver)", "value": "IERC721Receiver" }, "id": 7308, "name": "Identifier", "src": "12421:15:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7289, "type": "address", "value": "to" }, "id": 7309, "name": "Identifier", "src": "12437:2:6" } ], "id": 7310, "name": "FunctionCall", "src": "12421:19:6" } ], "id": 7311, "name": "MemberAccess", "src": "12421:36:6" }, { "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": 8957, "type": "msg", "value": "msg" }, "id": 7312, "name": "Identifier", "src": "12471:3:6" } ], "id": 7313, "name": "MemberAccess", "src": "12471:10:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7287, "type": "address", "value": "from" }, "id": 7314, "name": "Identifier", "src": "12495:4:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7291, "type": "uint256", "value": "tokenId" }, "id": 7315, "name": "Identifier", "src": "12513:7:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7293, "type": "bytes memory", "value": "_data" }, "id": 7316, "name": "Identifier", "src": "12534:5:6" } ], "id": 7317, "name": "FunctionCall", "src": "12421:128:6" } ], "id": 7318, "name": "VariableDeclarationStatement", "src": "12405:144:6" }, { "attributes": { "functionReturnParameters": 7297 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "==", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7307, "type": "bytes4", "value": "retval" }, "id": 7319, "name": "Identifier", "src": "12567:6:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6892, "type": "bytes4", "value": "_ERC721_RECEIVED" }, "id": 7320, "name": "Identifier", "src": "12577:16:6" } ], "id": 7321, "name": "BinaryOperation", "src": "12567:26:6" } ], "id": 7322, "name": "TupleExpression", "src": "12566:28:6" } ], "id": 7323, "name": "Return", "src": "12559:35:6" } ], "id": 7324, "name": "Block", "src": "12327:274:6" } ], "id": 7325, "name": "FunctionDefinition", "src": "12170:431:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_clearApproval", "scope": 7349, "stateMutability": "nonpayable", "superFunction": null, "visibility": "private" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "tokenId", "scope": 7348, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7326, "name": "ElementaryTypeName", "src": "12706:7:6" } ], "id": 7327, "name": "VariableDeclaration", "src": "12706:15:6" } ], "id": 7328, "name": "ParameterList", "src": "12705:17:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7329, "name": "ParameterList", "src": "12731:0:6" }, { "children": [ { "attributes": { "falseBody": null }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6900, "type": "mapping(uint256 => address)", "value": "_tokenApprovals" }, "id": 7330, "name": "Identifier", "src": "12745:15:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7327, "type": "uint256", "value": "tokenId" }, "id": 7331, "name": "Identifier", "src": "12761:7:6" } ], "id": 7332, "name": "IndexAccess", "src": "12745:24:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address payable", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(address)", "value": "address" }, "id": 7333, "name": "ElementaryTypeNameExpression", "src": "12773:7:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 7334, "name": "Literal", "src": "12781:1:6" } ], "id": 7335, "name": "FunctionCall", "src": "12773:10:6" } ], "id": 7336, "name": "BinaryOperation", "src": "12745:38:6" }, { "children": [ { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "address" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6900, "type": "mapping(uint256 => address)", "value": "_tokenApprovals" }, "id": 7337, "name": "Identifier", "src": "12799:15:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7327, "type": "uint256", "value": "tokenId" }, "id": 7338, "name": "Identifier", "src": "12815:7:6" } ], "id": 7339, "name": "IndexAccess", "src": "12799:24:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address payable", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(address)", "value": "address" }, "id": 7340, "name": "ElementaryTypeNameExpression", "src": "12826:7:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 7341, "name": "Literal", "src": "12834:1:6" } ], "id": 7342, "name": "FunctionCall", "src": "12826:10:6" } ], "id": 7343, "name": "Assignment", "src": "12799:37:6" } ], "id": 7344, "name": "ExpressionStatement", "src": "12799:37:6" } ], "id": 7345, "name": "Block", "src": "12785:62:6" } ], "id": 7346, "name": "IfStatement", "src": "12741:106:6" } ], "id": 7347, "name": "Block", "src": "12731:122:6" } ], "id": 7348, "name": "FunctionDefinition", "src": "12682:171:6" } ], "id": 7349, "name": "ContractDefinition", "src": "3957:8898:6" }, { "attributes": { "contractDependencies": [ 6728, 6806, 6852, 7349 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "linearizedBaseContracts": [ 7647, 7349, 6852, 6806, 6728 ], "name": "ERC721Enumerable", "scope": 7802 }, "children": [ { "attributes": { "arguments": null }, "children": [ { "attributes": { "contractScope": null, "name": "ERC165", "referencedDeclaration": 6852, "type": "contract ERC165" }, "id": 7350, "name": "UserDefinedTypeName", "src": "12886:6:6" } ], "id": 7351, "name": "InheritanceSpecifier", "src": "12886:6:6" }, { "attributes": { "arguments": null }, "children": [ { "attributes": { "contractScope": null, "name": "ERC721", "referencedDeclaration": 7349, "type": "contract ERC721" }, "id": 7352, "name": "UserDefinedTypeName", "src": "12894:6:6" } ], "id": 7353, "name": "InheritanceSpecifier", "src": "12894:6:6" }, { "attributes": { "constant": false, "name": "_ownedTokens", "scope": 7647, "stateVariable": true, "storageLocation": "default", "type": "mapping(address => uint256[])", "value": null, "visibility": "private" }, "children": [ { "attributes": { "type": "mapping(address => uint256[])" }, "children": [ { "attributes": { "name": "address", "type": "address" }, "id": 7354, "name": "ElementaryTypeName", "src": "12968:7:6" }, { "attributes": { "length": null, "type": "uint256[]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7355, "name": "ElementaryTypeName", "src": "12979:7:6" } ], "id": 7356, "name": "ArrayTypeName", "src": "12979:9:6" } ], "id": 7357, "name": "Mapping", "src": "12960:29:6" } ], "id": 7358, "name": "VariableDeclaration", "src": "12960:50:6" }, { "attributes": { "constant": false, "name": "_ownedTokensIndex", "scope": 7647, "stateVariable": true, "storageLocation": "default", "type": "mapping(uint256 => uint256)", "value": null, "visibility": "private" }, "children": [ { "attributes": { "type": "mapping(uint256 => uint256)" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7359, "name": "ElementaryTypeName", "src": "13088:7:6" }, { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7360, "name": "ElementaryTypeName", "src": "13099:7:6" } ], "id": 7361, "name": "Mapping", "src": "13080:27:6" } ], "id": 7362, "name": "VariableDeclaration", "src": "13080:53:6" }, { "attributes": { "constant": false, "name": "_allTokens", "scope": 7647, "stateVariable": true, "storageLocation": "default", "type": "uint256[]", "value": null, "visibility": "private" }, "children": [ { "attributes": { "length": null, "type": "uint256[]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7363, "name": "ElementaryTypeName", "src": "13194:7:6" } ], "id": 7364, "name": "ArrayTypeName", "src": "13194:9:6" } ], "id": 7365, "name": "VariableDeclaration", "src": "13194:28:6" }, { "attributes": { "constant": false, "name": "_allTokensIndex", "scope": 7647, "stateVariable": true, "storageLocation": "default", "type": "mapping(uint256 => uint256)", "value": null, "visibility": "private" }, "children": [ { "attributes": { "type": "mapping(uint256 => uint256)" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7366, "name": "ElementaryTypeName", "src": "13301:7:6" }, { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7367, "name": "ElementaryTypeName", "src": "13312:7:6" } ], "id": 7368, "name": "Mapping", "src": "13293:27:6" } ], "id": 7369, "name": "VariableDeclaration", "src": "13293:51:6" }, { "attributes": { "constant": true, "name": "_INTERFACE_ID_ERC721_ENUMERABLE", "scope": 7647, "stateVariable": true, "storageLocation": "default", "type": "bytes4", "visibility": "private" }, "children": [ { "attributes": { "name": "bytes4", "type": "bytes4" }, "id": 7370, "name": "ElementaryTypeName", "src": "13351:6:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30783738306539643633", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 2014223715", "value": "0x780e9d63" }, "id": 7371, "name": "Literal", "src": "13409:10:6" } ], "id": 7372, "name": "VariableDeclaration", "src": "13351:68:6" }, { "attributes": { "documentation": "@dev Constructor function", "implemented": true, "isConstructor": true, "kind": "constructor", "modifiers": [ null ], "name": "", "scope": 7647, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 7373, "name": "ParameterList", "src": "13697:2:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7374, "name": "ParameterList", "src": "13707:0:6" }, { "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_bytes4", "typeString": "bytes4" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6851, "type": "function (bytes4)", "value": "_registerInterface" }, "id": 7375, "name": "Identifier", "src": "13803:18:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7372, "type": "bytes4", "value": "_INTERFACE_ID_ERC721_ENUMERABLE" }, "id": 7376, "name": "Identifier", "src": "13822:31:6" } ], "id": 7377, "name": "FunctionCall", "src": "13803:51:6" } ], "id": 7378, "name": "ExpressionStatement", "src": "13803:51:6" } ], "id": 7379, "name": "Block", "src": "13707:154:6" } ], "id": 7380, "name": "FunctionDefinition", "src": "13686:175:6" }, { "attributes": { "documentation": "@dev Gets the token ID at a given index of the tokens list of the requested owner\n@param owner address owning the tokens list to be accessed\n@param index uint256 representing the index to be accessed of the requested tokens list\n@return uint256 token ID at the given index of the tokens list owned by the requested address", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "tokenOfOwnerByIndex", "scope": 7647, "stateMutability": "view", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "owner", "scope": 7404, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7381, "name": "ElementaryTypeName", "src": "14263:7:6" } ], "id": 7382, "name": "VariableDeclaration", "src": "14263:13:6" }, { "attributes": { "constant": false, "name": "index", "scope": 7404, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7383, "name": "ElementaryTypeName", "src": "14278:7:6" } ], "id": 7384, "name": "VariableDeclaration", "src": "14278:13:6" } ], "id": 7385, "name": "ParameterList", "src": "14262:30:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7404, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7386, "name": "ElementaryTypeName", "src": "14338:7:6" } ], "id": 7387, "name": "VariableDeclaration", "src": "14338:7:6" } ], "id": 7388, "name": "ParameterList", "src": "14337:9:6" }, { "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_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 7389, "name": "Identifier", "src": "14361:7:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "<", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7384, "type": "uint256", "value": "index" }, "id": 7390, "name": "Identifier", "src": "14369:5:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6936, "type": "function (address) view returns (uint256)", "value": "balanceOf" }, "id": 7391, "name": "Identifier", "src": "14377:9:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7382, "type": "address", "value": "owner" }, "id": 7392, "name": "Identifier", "src": "14387:5:6" } ], "id": 7393, "name": "FunctionCall", "src": "14377:16:6" } ], "id": 7394, "name": "BinaryOperation", "src": "14369:24:6" } ], "id": 7395, "name": "FunctionCall", "src": "14361:33:6" } ], "id": 7396, "name": "ExpressionStatement", "src": "14361:33:6" }, { "attributes": { "functionReturnParameters": 7388 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256[] storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7358, "type": "mapping(address => uint256[] storage ref)", "value": "_ownedTokens" }, "id": 7397, "name": "Identifier", "src": "14411:12:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7382, "type": "address", "value": "owner" }, "id": 7398, "name": "Identifier", "src": "14424:5:6" } ], "id": 7399, "name": "IndexAccess", "src": "14411:19:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7384, "type": "uint256", "value": "index" }, "id": 7400, "name": "Identifier", "src": "14431:5:6" } ], "id": 7401, "name": "IndexAccess", "src": "14411:26:6" } ], "id": 7402, "name": "Return", "src": "14404:33:6" } ], "id": 7403, "name": "Block", "src": "14351:93:6" } ], "id": 7404, "name": "FunctionDefinition", "src": "14234:210:6" }, { "attributes": { "documentation": "@dev Gets the total amount of tokens stored by the contract\n@return uint256 representing the total amount of tokens", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "totalSupply", "scope": 7647, "stateMutability": "view", "superFunction": null, "visibility": "public" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 7405, "name": "ParameterList", "src": "14616:2:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7413, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7406, "name": "ElementaryTypeName", "src": "14640:7:6" } ], "id": 7407, "name": "VariableDeclaration", "src": "14640:7:6" } ], "id": 7408, "name": "ParameterList", "src": "14639:9:6" }, { "children": [ { "attributes": { "functionReturnParameters": 7408 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7365, "type": "uint256[] storage ref", "value": "_allTokens" }, "id": 7409, "name": "Identifier", "src": "14666:10:6" } ], "id": 7410, "name": "MemberAccess", "src": "14666:17:6" } ], "id": 7411, "name": "Return", "src": "14659:24:6" } ], "id": 7412, "name": "Block", "src": "14649:41:6" } ], "id": 7413, "name": "FunctionDefinition", "src": "14596:94:6" }, { "attributes": { "documentation": "@dev Gets the token ID at a given index of all the tokens in this contract\nReverts if the index is greater or equal to the total number of tokens\n@param index uint256 representing the index to be accessed of the tokens list\n@return uint256 token ID at the given index of the tokens list", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "tokenByIndex", "scope": 7647, "stateMutability": "view", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "index", "scope": 7432, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7414, "name": "ElementaryTypeName", "src": "15049:7:6" } ], "id": 7415, "name": "VariableDeclaration", "src": "15049:13:6" } ], "id": 7416, "name": "ParameterList", "src": "15048:15:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7432, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7417, "name": "ElementaryTypeName", "src": "15085:7:6" } ], "id": 7418, "name": "VariableDeclaration", "src": "15085:7:6" } ], "id": 7419, "name": "ParameterList", "src": "15084:9:6" }, { "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_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 7420, "name": "Identifier", "src": "15104:7:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "<", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7415, "type": "uint256", "value": "index" }, "id": 7421, "name": "Identifier", "src": "15112:5:6" }, { "attributes": { "argumentTypes": null, "arguments": [ null ], "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ null ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7413, "type": "function () view returns (uint256)", "value": "totalSupply" }, "id": 7422, "name": "Identifier", "src": "15120:11:6" } ], "id": 7423, "name": "FunctionCall", "src": "15120:13:6" } ], "id": 7424, "name": "BinaryOperation", "src": "15112:21:6" } ], "id": 7425, "name": "FunctionCall", "src": "15104:30:6" } ], "id": 7426, "name": "ExpressionStatement", "src": "15104:30:6" }, { "attributes": { "functionReturnParameters": 7419 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7365, "type": "uint256[] storage ref", "value": "_allTokens" }, "id": 7427, "name": "Identifier", "src": "15151:10:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7415, "type": "uint256", "value": "index" }, "id": 7428, "name": "Identifier", "src": "15162:5:6" } ], "id": 7429, "name": "IndexAccess", "src": "15151:17:6" } ], "id": 7430, "name": "Return", "src": "15144:24:6" } ], "id": 7431, "name": "Block", "src": "15094:81:6" } ], "id": 7432, "name": "FunctionDefinition", "src": "15027:148:6" }, { "attributes": { "documentation": "@dev Internal function to transfer ownership of a given token ID to another address.\nAs opposed to transferFrom, this imposes no restrictions on msg.sender.\n@param from current owner of the token\n@param to address to receive the ownership of the given token ID\n@param tokenId uint256 ID of the token to be transferred", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_transferFrom", "scope": 7647, "stateMutability": "nonpayable", "superFunction": 7285, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "from", "scope": 7460, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7433, "name": "ElementaryTypeName", "src": "15582:7:6" } ], "id": 7434, "name": "VariableDeclaration", "src": "15582:12:6" }, { "attributes": { "constant": false, "name": "to", "scope": 7460, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7435, "name": "ElementaryTypeName", "src": "15604:7:6" } ], "id": 7436, "name": "VariableDeclaration", "src": "15604:10:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 7460, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7437, "name": "ElementaryTypeName", "src": "15624:7:6" } ], "id": 7438, "name": "VariableDeclaration", "src": "15624:15:6" } ], "id": 7439, "name": "ParameterList", "src": "15572:73:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7440, "name": "ParameterList", "src": "15655:0:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_address", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "_transferFrom", "referencedDeclaration": 7285, "type": "function (address,address,uint256)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 9002, "type": "contract super ERC721Enumerable", "value": "super" }, "id": 7441, "name": "Identifier", "src": "15665:5:6" } ], "id": 7443, "name": "MemberAccess", "src": "15665:19:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7434, "type": "address", "value": "from" }, "id": 7444, "name": "Identifier", "src": "15685:4:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7436, "type": "address", "value": "to" }, "id": 7445, "name": "Identifier", "src": "15691:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7438, "type": "uint256", "value": "tokenId" }, "id": 7446, "name": "Identifier", "src": "15695:7:6" } ], "id": 7447, "name": "FunctionCall", "src": "15665:38:6" } ], "id": 7448, "name": "ExpressionStatement", "src": "15665:38:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7597, "type": "function (address,uint256)", "value": "_removeTokenFromOwnerEnumeration" }, "id": 7449, "name": "Identifier", "src": "15714:32:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7434, "type": "address", "value": "from" }, "id": 7450, "name": "Identifier", "src": "15747:4:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7438, "type": "uint256", "value": "tokenId" }, "id": 7451, "name": "Identifier", "src": "15753:7:6" } ], "id": 7452, "name": "FunctionCall", "src": "15714:47:6" } ], "id": 7453, "name": "ExpressionStatement", "src": "15714:47:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7521, "type": "function (address,uint256)", "value": "_addTokenToOwnerEnumeration" }, "id": 7454, "name": "Identifier", "src": "15772:27:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7436, "type": "address", "value": "to" }, "id": 7455, "name": "Identifier", "src": "15800:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7438, "type": "uint256", "value": "tokenId" }, "id": 7456, "name": "Identifier", "src": "15804:7:6" } ], "id": 7457, "name": "FunctionCall", "src": "15772:40:6" } ], "id": 7458, "name": "ExpressionStatement", "src": "15772:40:6" } ], "id": 7459, "name": "Block", "src": "15655:164:6" } ], "id": 7460, "name": "FunctionDefinition", "src": "15550:269:6" }, { "attributes": { "documentation": "@dev Internal function to mint a new token\nReverts if the given token ID already exists\n@param to address the beneficiary that will own the minted token\n@param tokenId uint256 ID of the token to be minted", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_mint", "scope": 7647, "stateMutability": "nonpayable", "superFunction": 7230, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "to", "scope": 7484, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7461, "name": "ElementaryTypeName", "src": "16089:7:6" } ], "id": 7462, "name": "VariableDeclaration", "src": "16089:10:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 7484, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7463, "name": "ElementaryTypeName", "src": "16101:7:6" } ], "id": 7464, "name": "VariableDeclaration", "src": "16101:15:6" } ], "id": 7465, "name": "ParameterList", "src": "16088:29:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7466, "name": "ParameterList", "src": "16127:0:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "_mint", "referencedDeclaration": 7230, "type": "function (address,uint256)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 9002, "type": "contract super ERC721Enumerable", "value": "super" }, "id": 7467, "name": "Identifier", "src": "16137:5:6" } ], "id": 7469, "name": "MemberAccess", "src": "16137:11:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7462, "type": "address", "value": "to" }, "id": 7470, "name": "Identifier", "src": "16149:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7464, "type": "uint256", "value": "tokenId" }, "id": 7471, "name": "Identifier", "src": "16153:7:6" } ], "id": 7472, "name": "FunctionCall", "src": "16137:24:6" } ], "id": 7473, "name": "ExpressionStatement", "src": "16137:24:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7521, "type": "function (address,uint256)", "value": "_addTokenToOwnerEnumeration" }, "id": 7474, "name": "Identifier", "src": "16172:27:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7462, "type": "address", "value": "to" }, "id": 7475, "name": "Identifier", "src": "16200:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7464, "type": "uint256", "value": "tokenId" }, "id": 7476, "name": "Identifier", "src": "16204:7:6" } ], "id": 7477, "name": "FunctionCall", "src": "16172:40:6" } ], "id": 7478, "name": "ExpressionStatement", "src": "16172:40:6" }, { "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_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7540, "type": "function (uint256)", "value": "_addTokenToAllTokensEnumeration" }, "id": 7479, "name": "Identifier", "src": "16223:31:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7464, "type": "uint256", "value": "tokenId" }, "id": 7480, "name": "Identifier", "src": "16255:7:6" } ], "id": 7481, "name": "FunctionCall", "src": "16223:40:6" } ], "id": 7482, "name": "ExpressionStatement", "src": "16223:40:6" } ], "id": 7483, "name": "Block", "src": "16127:143:6" } ], "id": 7484, "name": "FunctionDefinition", "src": "16074:196:6" }, { "attributes": { "documentation": "@dev Gets the list of token IDs of the requested owner\n@param owner address owning the tokens\n@return uint256[] List of token IDs owned by the requested address", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_tokensOfOwner", "scope": 7647, "stateMutability": "view", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "owner", "scope": 7497, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7485, "name": "ElementaryTypeName", "src": "16498:7:6" } ], "id": 7486, "name": "VariableDeclaration", "src": "16498:13:6" } ], "id": 7487, "name": "ParameterList", "src": "16497:15:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7497, "stateVariable": false, "storageLocation": "storage", "type": "uint256[]", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "length": null, "type": "uint256[]" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7488, "name": "ElementaryTypeName", "src": "16560:7:6" } ], "id": 7489, "name": "ArrayTypeName", "src": "16560:9:6" } ], "id": 7490, "name": "VariableDeclaration", "src": "16560:17:6" } ], "id": 7491, "name": "ParameterList", "src": "16559:19:6" }, { "children": [ { "attributes": { "functionReturnParameters": 7491 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256[] storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7358, "type": "mapping(address => uint256[] storage ref)", "value": "_ownedTokens" }, "id": 7492, "name": "Identifier", "src": "16600:12:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7486, "type": "address", "value": "owner" }, "id": 7493, "name": "Identifier", "src": "16613:5:6" } ], "id": 7494, "name": "IndexAccess", "src": "16600:19:6" } ], "id": 7495, "name": "Return", "src": "16593:26:6" } ], "id": 7496, "name": "Block", "src": "16583:43:6" } ], "id": 7497, "name": "FunctionDefinition", "src": "16474:152:6" }, { "attributes": { "documentation": "@dev Private function to add a token to this extension's ownership-tracking data structures.\n@param to address representing the new owner of the given token ID\n@param tokenId uint256 ID of the token to be added to the tokens list of the given address", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_addTokenToOwnerEnumeration", "scope": 7647, "stateMutability": "nonpayable", "superFunction": null, "visibility": "private" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "to", "scope": 7521, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7498, "name": "ElementaryTypeName", "src": "16957:7:6" } ], "id": 7499, "name": "VariableDeclaration", "src": "16957:10:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 7521, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7500, "name": "ElementaryTypeName", "src": "16969:7:6" } ], "id": 7501, "name": "VariableDeclaration", "src": "16969:15:6" } ], "id": 7502, "name": "ParameterList", "src": "16956:29:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7503, "name": "ParameterList", "src": "16994:0:6" }, { "children": [ { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7362, "type": "mapping(uint256 => uint256)", "value": "_ownedTokensIndex" }, "id": 7504, "name": "Identifier", "src": "17004:17:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7501, "type": "uint256", "value": "tokenId" }, "id": 7505, "name": "Identifier", "src": "17022:7:6" } ], "id": 7506, "name": "IndexAccess", "src": "17004:26:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256[] storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7358, "type": "mapping(address => uint256[] storage ref)", "value": "_ownedTokens" }, "id": 7507, "name": "Identifier", "src": "17033:12:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7499, "type": "address", "value": "to" }, "id": 7508, "name": "Identifier", "src": "17046:2:6" } ], "id": 7509, "name": "IndexAccess", "src": "17033:16:6" } ], "id": 7510, "name": "MemberAccess", "src": "17033:23:6" } ], "id": 7511, "name": "Assignment", "src": "17004:52:6" } ], "id": 7512, "name": "ExpressionStatement", "src": "17004:52:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "push", "referencedDeclaration": null, "type": "function (uint256) returns (uint256)" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256[] storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7358, "type": "mapping(address => uint256[] storage ref)", "value": "_ownedTokens" }, "id": 7513, "name": "Identifier", "src": "17066:12:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7499, "type": "address", "value": "to" }, "id": 7514, "name": "Identifier", "src": "17079:2:6" } ], "id": 7515, "name": "IndexAccess", "src": "17066:16:6" } ], "id": 7516, "name": "MemberAccess", "src": "17066:21:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7501, "type": "uint256", "value": "tokenId" }, "id": 7517, "name": "Identifier", "src": "17088:7:6" } ], "id": 7518, "name": "FunctionCall", "src": "17066:30:6" } ], "id": 7519, "name": "ExpressionStatement", "src": "17066:30:6" } ], "id": 7520, "name": "Block", "src": "16994:109:6" } ], "id": 7521, "name": "FunctionDefinition", "src": "16920:183:6" }, { "attributes": { "documentation": "@dev Private function to add a token to this extension's token tracking data structures.\n@param tokenId uint256 ID of the token to be added to the tokens list", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_addTokenToAllTokensEnumeration", "scope": 7647, "stateMutability": "nonpayable", "superFunction": null, "visibility": "private" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "tokenId", "scope": 7540, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7522, "name": "ElementaryTypeName", "src": "17339:7:6" } ], "id": 7523, "name": "VariableDeclaration", "src": "17339:15:6" } ], "id": 7524, "name": "ParameterList", "src": "17338:17:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7525, "name": "ParameterList", "src": "17364:0:6" }, { "children": [ { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7369, "type": "mapping(uint256 => uint256)", "value": "_allTokensIndex" }, "id": 7526, "name": "Identifier", "src": "17374:15:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7523, "type": "uint256", "value": "tokenId" }, "id": 7527, "name": "Identifier", "src": "17390:7:6" } ], "id": 7528, "name": "IndexAccess", "src": "17374:24:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7365, "type": "uint256[] storage ref", "value": "_allTokens" }, "id": 7529, "name": "Identifier", "src": "17401:10:6" } ], "id": 7530, "name": "MemberAccess", "src": "17401:17:6" } ], "id": 7531, "name": "Assignment", "src": "17374:44:6" } ], "id": 7532, "name": "ExpressionStatement", "src": "17374:44:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "push", "referencedDeclaration": null, "type": "function (uint256) returns (uint256)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7365, "type": "uint256[] storage ref", "value": "_allTokens" }, "id": 7533, "name": "Identifier", "src": "17428:10:6" } ], "id": 7535, "name": "MemberAccess", "src": "17428:15:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7523, "type": "uint256", "value": "tokenId" }, "id": 7536, "name": "Identifier", "src": "17444:7:6" } ], "id": 7537, "name": "FunctionCall", "src": "17428:24:6" } ], "id": 7538, "name": "ExpressionStatement", "src": "17428:24:6" } ], "id": 7539, "name": "Block", "src": "17364:95:6" } ], "id": 7540, "name": "FunctionDefinition", "src": "17298:161:6" }, { "attributes": { "documentation": "@dev Private function to remove a token from this extension's ownership-tracking data structures. Note that\nwhile the token is not assigned a new owner, the _ownedTokensIndex mapping is _not_ updated: this allows for\ngas optimizations e.g. when performing a transfer operation (avoiding double writes).\nThis has O(1) time complexity, but alters the order of the _ownedTokens array.\n@param from address representing the previous owner of the given token ID\n@param tokenId uint256 ID of the token to be removed from the tokens list of the given address", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_removeTokenFromOwnerEnumeration", "scope": 7647, "stateMutability": "nonpayable", "superFunction": null, "visibility": "private" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "from", "scope": 7597, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7541, "name": "ElementaryTypeName", "src": "18116:7:6" } ], "id": 7542, "name": "VariableDeclaration", "src": "18116:12:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 7597, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7543, "name": "ElementaryTypeName", "src": "18130:7:6" } ], "id": 7544, "name": "VariableDeclaration", "src": "18130:15:6" } ], "id": 7545, "name": "ParameterList", "src": "18115:31:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7546, "name": "ParameterList", "src": "18167:0:6" }, { "children": [ { "attributes": { "assignments": [ 7548 ] }, "children": [ { "attributes": { "constant": false, "name": "lastTokenIndex", "scope": 7596, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7547, "name": "ElementaryTypeName", "src": "18348:7:6" } ], "id": 7548, "name": "VariableDeclaration", "src": "18348:22:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "sub", "referencedDeclaration": 91, "type": "function (uint256,uint256) pure returns (uint256)" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256[] storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7358, "type": "mapping(address => uint256[] storage ref)", "value": "_ownedTokens" }, "id": 7549, "name": "Identifier", "src": "18373:12:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7542, "type": "address", "value": "from" }, "id": 7550, "name": "Identifier", "src": "18386:4:6" } ], "id": 7551, "name": "IndexAccess", "src": "18373:18:6" } ], "id": 7552, "name": "MemberAccess", "src": "18373:25:6" } ], "id": 7553, "name": "MemberAccess", "src": "18373:29:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 7554, "name": "Literal", "src": "18403:1:6" } ], "id": 7555, "name": "FunctionCall", "src": "18373:32:6" } ], "id": 7556, "name": "VariableDeclarationStatement", "src": "18348:57:6" }, { "attributes": { "assignments": [ 7558 ] }, "children": [ { "attributes": { "constant": false, "name": "tokenIndex", "scope": 7596, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7557, "name": "ElementaryTypeName", "src": "18415:7:6" } ], "id": 7558, "name": "VariableDeclaration", "src": "18415:18:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7362, "type": "mapping(uint256 => uint256)", "value": "_ownedTokensIndex" }, "id": 7559, "name": "Identifier", "src": "18436:17:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7544, "type": "uint256", "value": "tokenId" }, "id": 7560, "name": "Identifier", "src": "18454:7:6" } ], "id": 7561, "name": "IndexAccess", "src": "18436:26:6" } ], "id": 7562, "name": "VariableDeclarationStatement", "src": "18415:47:6" }, { "attributes": { "falseBody": null }, "children": [ { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7558, "type": "uint256", "value": "tokenIndex" }, "id": 7563, "name": "Identifier", "src": "18566:10:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7548, "type": "uint256", "value": "lastTokenIndex" }, "id": 7564, "name": "Identifier", "src": "18580:14:6" } ], "id": 7565, "name": "BinaryOperation", "src": "18566:28:6" }, { "children": [ { "attributes": { "assignments": [ 7567 ] }, "children": [ { "attributes": { "constant": false, "name": "lastTokenId", "scope": 7588, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7566, "name": "ElementaryTypeName", "src": "18610:7:6" } ], "id": 7567, "name": "VariableDeclaration", "src": "18610:19:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256[] storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7358, "type": "mapping(address => uint256[] storage ref)", "value": "_ownedTokens" }, "id": 7568, "name": "Identifier", "src": "18632:12:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7542, "type": "address", "value": "from" }, "id": 7569, "name": "Identifier", "src": "18645:4:6" } ], "id": 7570, "name": "IndexAccess", "src": "18632:18:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7548, "type": "uint256", "value": "lastTokenIndex" }, "id": 7571, "name": "Identifier", "src": "18651:14:6" } ], "id": 7572, "name": "IndexAccess", "src": "18632:34:6" } ], "id": 7573, "name": "VariableDeclarationStatement", "src": "18610:56:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256[] storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7358, "type": "mapping(address => uint256[] storage ref)", "value": "_ownedTokens" }, "id": 7574, "name": "Identifier", "src": "18681:12:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7542, "type": "address", "value": "from" }, "id": 7575, "name": "Identifier", "src": "18694:4:6" } ], "id": 7577, "name": "IndexAccess", "src": "18681:18:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7558, "type": "uint256", "value": "tokenIndex" }, "id": 7576, "name": "Identifier", "src": "18700:10:6" } ], "id": 7578, "name": "IndexAccess", "src": "18681:30:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7567, "type": "uint256", "value": "lastTokenId" }, "id": 7579, "name": "Identifier", "src": "18714:11:6" } ], "id": 7580, "name": "Assignment", "src": "18681:44:6" } ], "id": 7581, "name": "ExpressionStatement", "src": "18681:44:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7362, "type": "mapping(uint256 => uint256)", "value": "_ownedTokensIndex" }, "id": 7582, "name": "Identifier", "src": "18797:17:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7567, "type": "uint256", "value": "lastTokenId" }, "id": 7583, "name": "Identifier", "src": "18815:11:6" } ], "id": 7584, "name": "IndexAccess", "src": "18797:30:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7558, "type": "uint256", "value": "tokenIndex" }, "id": 7585, "name": "Identifier", "src": "18830:10:6" } ], "id": 7586, "name": "Assignment", "src": "18797:43:6" } ], "id": 7587, "name": "ExpressionStatement", "src": "18797:43:6" } ], "id": 7588, "name": "Block", "src": "18596:289:6" } ], "id": 7589, "name": "IfStatement", "src": "18562:323:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "--", "prefix": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256[] storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7358, "type": "mapping(address => uint256[] storage ref)", "value": "_ownedTokens" }, "id": 7590, "name": "Identifier", "src": "18971:12:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7542, "type": "address", "value": "from" }, "id": 7591, "name": "Identifier", "src": "18984:4:6" } ], "id": 7592, "name": "IndexAccess", "src": "18971:18:6" } ], "id": 7593, "name": "MemberAccess", "src": "18971:25:6" } ], "id": 7594, "name": "UnaryOperation", "src": "18971:27:6" } ], "id": 7595, "name": "ExpressionStatement", "src": "18971:27:6" } ], "id": 7596, "name": "Block", "src": "18167:1047:6" } ], "id": 7597, "name": "FunctionDefinition", "src": "18074:1140:6" }, { "attributes": { "documentation": "@dev Private function to remove a token from this extension's token tracking data structures.\nThis has O(1) time complexity, but alters the order of the _allTokens array.\n@param tokenId uint256 ID of the token to be removed from the tokens list", "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_removeTokenFromAllTokensEnumeration", "scope": 7647, "stateMutability": "nonpayable", "superFunction": null, "visibility": "private" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "tokenId", "scope": 7646, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7598, "name": "ElementaryTypeName", "src": "19548:7:6" } ], "id": 7599, "name": "VariableDeclaration", "src": "19548:15:6" } ], "id": 7600, "name": "ParameterList", "src": "19547:17:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7601, "name": "ParameterList", "src": "19573:0:6" }, { "children": [ { "attributes": { "assignments": [ 7603 ] }, "children": [ { "attributes": { "constant": false, "name": "lastTokenIndex", "scope": 7645, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7602, "name": "ElementaryTypeName", "src": "19751:7:6" } ], "id": 7603, "name": "VariableDeclaration", "src": "19751:22:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "uint256", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_1_by_1", "typeString": "int_const 1" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "sub", "referencedDeclaration": 91, "type": "function (uint256,uint256) pure returns (uint256)" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7365, "type": "uint256[] storage ref", "value": "_allTokens" }, "id": 7604, "name": "Identifier", "src": "19776:10:6" } ], "id": 7605, "name": "MemberAccess", "src": "19776:17:6" } ], "id": 7606, "name": "MemberAccess", "src": "19776:21:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "31", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1", "value": "1" }, "id": 7607, "name": "Literal", "src": "19798:1:6" } ], "id": 7608, "name": "FunctionCall", "src": "19776:24:6" } ], "id": 7609, "name": "VariableDeclarationStatement", "src": "19751:49:6" }, { "attributes": { "assignments": [ 7611 ] }, "children": [ { "attributes": { "constant": false, "name": "tokenIndex", "scope": 7645, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7610, "name": "ElementaryTypeName", "src": "19810:7:6" } ], "id": 7611, "name": "VariableDeclaration", "src": "19810:18:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7369, "type": "mapping(uint256 => uint256)", "value": "_allTokensIndex" }, "id": 7612, "name": "Identifier", "src": "19831:15:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7599, "type": "uint256", "value": "tokenId" }, "id": 7613, "name": "Identifier", "src": "19847:7:6" } ], "id": 7614, "name": "IndexAccess", "src": "19831:24:6" } ], "id": 7615, "name": "VariableDeclarationStatement", "src": "19810:45:6" }, { "attributes": { "assignments": [ 7617 ] }, "children": [ { "attributes": { "constant": false, "name": "lastTokenId", "scope": 7645, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7616, "name": "ElementaryTypeName", "src": "20177:7:6" } ], "id": 7617, "name": "VariableDeclaration", "src": "20177:19:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7365, "type": "uint256[] storage ref", "value": "_allTokens" }, "id": 7618, "name": "Identifier", "src": "20199:10:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7603, "type": "uint256", "value": "lastTokenIndex" }, "id": 7619, "name": "Identifier", "src": "20210:14:6" } ], "id": 7620, "name": "IndexAccess", "src": "20199:26:6" } ], "id": 7621, "name": "VariableDeclarationStatement", "src": "20177:48:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7365, "type": "uint256[] storage ref", "value": "_allTokens" }, "id": 7622, "name": "Identifier", "src": "20236:10:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7611, "type": "uint256", "value": "tokenIndex" }, "id": 7623, "name": "Identifier", "src": "20247:10:6" } ], "id": 7624, "name": "IndexAccess", "src": "20236:22:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7617, "type": "uint256", "value": "lastTokenId" }, "id": 7625, "name": "Identifier", "src": "20261:11:6" } ], "id": 7626, "name": "Assignment", "src": "20236:36:6" } ], "id": 7627, "name": "ExpressionStatement", "src": "20236:36:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7369, "type": "mapping(uint256 => uint256)", "value": "_allTokensIndex" }, "id": 7628, "name": "Identifier", "src": "20340:15:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7617, "type": "uint256", "value": "lastTokenId" }, "id": 7629, "name": "Identifier", "src": "20356:11:6" } ], "id": 7630, "name": "IndexAccess", "src": "20340:28:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7611, "type": "uint256", "value": "tokenIndex" }, "id": 7631, "name": "Identifier", "src": "20371:10:6" } ], "id": 7632, "name": "Assignment", "src": "20340:41:6" } ], "id": 7633, "name": "ExpressionStatement", "src": "20340:41:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "--", "prefix": false, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "member_name": "length", "referencedDeclaration": null, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7365, "type": "uint256[] storage ref", "value": "_allTokens" }, "id": 7634, "name": "Identifier", "src": "20502:10:6" } ], "id": 7636, "name": "MemberAccess", "src": "20502:17:6" } ], "id": 7637, "name": "UnaryOperation", "src": "20502:19:6" } ], "id": 7638, "name": "ExpressionStatement", "src": "20502:19:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "uint256" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7369, "type": "mapping(uint256 => uint256)", "value": "_allTokensIndex" }, "id": 7639, "name": "Identifier", "src": "20531:15:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7599, "type": "uint256", "value": "tokenId" }, "id": 7640, "name": "Identifier", "src": "20547:7:6" } ], "id": 7641, "name": "IndexAccess", "src": "20531:24:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 7642, "name": "Literal", "src": "20558:1:6" } ], "id": 7643, "name": "Assignment", "src": "20531:28:6" } ], "id": 7644, "name": "ExpressionStatement", "src": "20531:28:6" } ], "id": 7645, "name": "Block", "src": "19573:993:6" } ], "id": 7646, "name": "FunctionDefinition", "src": "19502:1064:6" } ], "id": 7647, "name": "ContractDefinition", "src": "12857:7711:6" }, { "attributes": { "contractDependencies": [ 6651, 6728, 6806, 6852, 7349, 7647 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "linearizedBaseContracts": [ 7760, 6651, 7647, 7349, 6852, 6806, 6728 ], "name": "ERC721Metadata", "scope": 7802 }, "children": [ { "attributes": { "arguments": null }, "children": [ { "attributes": { "contractScope": null, "name": "ERC721Enumerable", "referencedDeclaration": 7647, "type": "contract ERC721Enumerable" }, "id": 7648, "name": "UserDefinedTypeName", "src": "20597:16:6" } ], "id": 7649, "name": "InheritanceSpecifier", "src": "20597:16:6" }, { "attributes": { "arguments": null }, "children": [ { "attributes": { "contractScope": null, "name": "usingOraclize", "referencedDeclaration": 6651, "type": "contract usingOraclize" }, "id": 7650, "name": "UserDefinedTypeName", "src": "20615:13:6" } ], "id": 7651, "name": "InheritanceSpecifier", "src": "20615:13:6" }, { "attributes": { "constant": false, "name": "_name", "scope": 7760, "stateVariable": true, "storageLocation": "default", "type": "string", "value": null, "visibility": "private" }, "children": [ { "attributes": { "name": "string", "type": "string" }, "id": 7652, "name": "ElementaryTypeName", "src": "20721:6:6" } ], "id": 7653, "name": "VariableDeclaration", "src": "20721:20:6" }, { "attributes": { "constant": false, "name": "_symbol", "scope": 7760, "stateVariable": true, "storageLocation": "default", "type": "string", "value": null, "visibility": "private" }, "children": [ { "attributes": { "name": "string", "type": "string" }, "id": 7654, "name": "ElementaryTypeName", "src": "20747:6:6" } ], "id": 7655, "name": "VariableDeclaration", "src": "20747:22:6" }, { "attributes": { "constant": false, "name": "_baseTokenURI", "scope": 7760, "stateVariable": true, "storageLocation": "default", "type": "string", "value": null, "visibility": "private" }, "children": [ { "attributes": { "name": "string", "type": "string" }, "id": 7656, "name": "ElementaryTypeName", "src": "20775:6:6" } ], "id": 7657, "name": "VariableDeclaration", "src": "20775:28:6" }, { "attributes": { "constant": false, "name": "_tokenURIs", "scope": 7760, "stateVariable": true, "storageLocation": "default", "type": "mapping(uint256 => string)", "value": null, "visibility": "private" }, "children": [ { "attributes": { "type": "mapping(uint256 => string)" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7658, "name": "ElementaryTypeName", "src": "20902:7:6" }, { "attributes": { "name": "string", "type": "string" }, "id": 7659, "name": "ElementaryTypeName", "src": "20913:6:6" } ], "id": 7660, "name": "Mapping", "src": "20894:26:6" } ], "id": 7661, "name": "VariableDeclaration", "src": "20894:45:6" }, { "attributes": { "constant": true, "name": "_INTERFACE_ID_ERC721_METADATA", "scope": 7760, "stateVariable": true, "storageLocation": "default", "type": "bytes4", "visibility": "private" }, "children": [ { "attributes": { "name": "bytes4", "type": "bytes4" }, "id": 7662, "name": "ElementaryTypeName", "src": "20946:6:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30783562356531333966", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 1532892063", "value": "0x5b5e139f" }, "id": 7663, "name": "Literal", "src": "21002:10:6" } ], "id": 7664, "name": "VariableDeclaration", "src": "20946:66:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": true, "kind": "constructor", "modifiers": [ null ], "name": "", "scope": 7760, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "name", "scope": 7690, "stateVariable": false, "storageLocation": "memory", "type": "string", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "string", "type": "string" }, "id": 7665, "name": "ElementaryTypeName", "src": "21212:6:6" } ], "id": 7666, "name": "VariableDeclaration", "src": "21212:18:6" }, { "attributes": { "constant": false, "name": "symbol", "scope": 7690, "stateVariable": false, "storageLocation": "memory", "type": "string", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "string", "type": "string" }, "id": 7667, "name": "ElementaryTypeName", "src": "21240:6:6" } ], "id": 7668, "name": "VariableDeclaration", "src": "21240:20:6" }, { "attributes": { "constant": false, "name": "baseTokenURI", "scope": 7690, "stateVariable": false, "storageLocation": "memory", "type": "string", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "string", "type": "string" }, "id": 7669, "name": "ElementaryTypeName", "src": "21270:6:6" } ], "id": 7670, "name": "VariableDeclaration", "src": "21270:26:6" } ], "id": 7671, "name": "ParameterList", "src": "21202:100:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7672, "name": "ParameterList", "src": "21310:0:6" }, { "children": [ { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "string storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7653, "type": "string storage ref", "value": "_name" }, "id": 7673, "name": "Identifier", "src": "21361:5:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7666, "type": "string memory", "value": "name" }, "id": 7674, "name": "Identifier", "src": "21369:4:6" } ], "id": 7675, "name": "Assignment", "src": "21361:12:6" } ], "id": 7676, "name": "ExpressionStatement", "src": "21361:12:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "string storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7655, "type": "string storage ref", "value": "_symbol" }, "id": 7677, "name": "Identifier", "src": "21383:7:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7668, "type": "string memory", "value": "symbol" }, "id": 7678, "name": "Identifier", "src": "21393:6:6" } ], "id": 7679, "name": "Assignment", "src": "21383:16:6" } ], "id": 7680, "name": "ExpressionStatement", "src": "21383:16:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "string storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7657, "type": "string storage ref", "value": "_baseTokenURI" }, "id": 7681, "name": "Identifier", "src": "21409:13:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7670, "type": "string memory", "value": "baseTokenURI" }, "id": 7682, "name": "Identifier", "src": "21425:12:6" } ], "id": 7683, "name": "Assignment", "src": "21409:28:6" } ], "id": 7684, "name": "ExpressionStatement", "src": "21409:28:6" }, { "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_bytes4", "typeString": "bytes4" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6851, "type": "function (bytes4)", "value": "_registerInterface" }, "id": 7685, "name": "Identifier", "src": "21447:18:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7664, "type": "bytes4", "value": "_INTERFACE_ID_ERC721_METADATA" }, "id": 7686, "name": "Identifier", "src": "21466:29:6" } ], "id": 7687, "name": "FunctionCall", "src": "21447:49:6" } ], "id": 7688, "name": "ExpressionStatement", "src": "21447:49:6" } ], "id": 7689, "name": "Block", "src": "21310:193:6" } ], "id": 7690, "name": "FunctionDefinition", "src": "21191:312:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "name", "scope": 7760, "stateMutability": "view", "superFunction": null, "visibility": "external" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 7691, "name": "ParameterList", "src": "21603:2:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7698, "stateVariable": false, "storageLocation": "memory", "type": "string", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "string", "type": "string" }, "id": 7692, "name": "ElementaryTypeName", "src": "21629:6:6" } ], "id": 7693, "name": "VariableDeclaration", "src": "21629:13:6" } ], "id": 7694, "name": "ParameterList", "src": "21628:15:6" }, { "children": [ { "attributes": { "functionReturnParameters": 7694 }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7653, "type": "string storage ref", "value": "_name" }, "id": 7695, "name": "Identifier", "src": "21661:5:6" } ], "id": 7696, "name": "Return", "src": "21654:12:6" } ], "id": 7697, "name": "Block", "src": "21644:29:6" } ], "id": 7698, "name": "FunctionDefinition", "src": "21590:83:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "symbol", "scope": 7760, "stateMutability": "view", "superFunction": null, "visibility": "external" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 7699, "name": "ParameterList", "src": "21694:2:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7706, "stateVariable": false, "storageLocation": "memory", "type": "string", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "string", "type": "string" }, "id": 7700, "name": "ElementaryTypeName", "src": "21720:6:6" } ], "id": 7701, "name": "VariableDeclaration", "src": "21720:13:6" } ], "id": 7702, "name": "ParameterList", "src": "21719:15:6" }, { "children": [ { "attributes": { "functionReturnParameters": 7702 }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7655, "type": "string storage ref", "value": "_symbol" }, "id": 7703, "name": "Identifier", "src": "21752:7:6" } ], "id": 7704, "name": "Return", "src": "21745:14:6" } ], "id": 7705, "name": "Block", "src": "21735:31:6" } ], "id": 7706, "name": "FunctionDefinition", "src": "21679:87:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "baseTokenURI", "scope": 7760, "stateMutability": "view", "superFunction": null, "visibility": "external" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 7707, "name": "ParameterList", "src": "21793:2:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7714, "stateVariable": false, "storageLocation": "memory", "type": "string", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "string", "type": "string" }, "id": 7708, "name": "ElementaryTypeName", "src": "21819:6:6" } ], "id": 7709, "name": "VariableDeclaration", "src": "21819:13:6" } ], "id": 7710, "name": "ParameterList", "src": "21818:15:6" }, { "children": [ { "attributes": { "functionReturnParameters": 7710 }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7657, "type": "string storage ref", "value": "_baseTokenURI" }, "id": 7711, "name": "Identifier", "src": "21851:13:6" } ], "id": 7712, "name": "Return", "src": "21844:20:6" } ], "id": 7713, "name": "Block", "src": "21834:37:6" } ], "id": 7714, "name": "FunctionDefinition", "src": "21772:99:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "tokenURI", "scope": 7760, "stateMutability": "view", "superFunction": null, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "tokenId", "scope": 7732, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7715, "name": "ElementaryTypeName", "src": "21895:7:6" } ], "id": 7716, "name": "VariableDeclaration", "src": "21895:15:6" } ], "id": 7717, "name": "ParameterList", "src": "21894:17:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7732, "stateVariable": false, "storageLocation": "memory", "type": "string", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "string", "type": "string" }, "id": 7718, "name": "ElementaryTypeName", "src": "21935:6:6" } ], "id": 7719, "name": "VariableDeclaration", "src": "21935:13:6" } ], "id": 7720, "name": "ParameterList", "src": "21934:15:6" }, { "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_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 7721, "name": "Identifier", "src": "21960:7:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "bool", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7144, "type": "function (uint256) view returns (bool)", "value": "_exists" }, "id": 7722, "name": "Identifier", "src": "21968:7:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7716, "type": "uint256", "value": "tokenId" }, "id": 7723, "name": "Identifier", "src": "21976:7:6" } ], "id": 7724, "name": "FunctionCall", "src": "21968:16:6" } ], "id": 7725, "name": "FunctionCall", "src": "21960:25:6" } ], "id": 7726, "name": "ExpressionStatement", "src": "21960:25:6" }, { "attributes": { "functionReturnParameters": 7720 }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": false, "type": "string storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7661, "type": "mapping(uint256 => string storage ref)", "value": "_tokenURIs" }, "id": 7727, "name": "Identifier", "src": "22002:10:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7716, "type": "uint256", "value": "tokenId" }, "id": 7728, "name": "Identifier", "src": "22013:7:6" } ], "id": 7729, "name": "IndexAccess", "src": "22002:19:6" } ], "id": 7730, "name": "Return", "src": "21995:26:6" } ], "id": 7731, "name": "Block", "src": "21950:78:6" } ], "id": 7732, "name": "FunctionDefinition", "src": "21877:151:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "setTokenURI", "scope": 7760, "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "tokenId", "scope": 7759, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7733, "name": "ElementaryTypeName", "src": "22521:7:6" } ], "id": 7734, "name": "VariableDeclaration", "src": "22521:15:6" } ], "id": 7735, "name": "ParameterList", "src": "22520:17:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7736, "name": "ParameterList", "src": "22547:0:6" }, { "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_bool", "typeString": "bool" } ], "overloadedDeclarations": [ 8960, 8961 ], "referencedDeclaration": 8960, "type": "function (bool) pure", "value": "require" }, "id": 7737, "name": "Identifier", "src": "22557:7:6" }, { "attributes": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "!=", "type": "bool" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 6948, "type": "function (uint256) view returns (address)", "value": "ownerOf" }, "id": 7738, "name": "Identifier", "src": "22565:7:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7734, "type": "uint256", "value": "tokenId" }, "id": 7739, "name": "Identifier", "src": "22573:7:6" } ], "id": 7740, "name": "FunctionCall", "src": "22565:16:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": true, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "address payable", "type_conversion": true }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "type": "type(address)", "value": "address" }, "id": 7741, "name": "ElementaryTypeNameExpression", "src": "22585:7:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "30", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "number", "type": "int_const 0", "value": "0" }, "id": 7742, "name": "Literal", "src": "22593:1:6" } ], "id": 7743, "name": "FunctionCall", "src": "22585:10:6" } ], "id": 7744, "name": "BinaryOperation", "src": "22565:30:6" } ], "id": 7745, "name": "FunctionCall", "src": "22557:39:6" } ], "id": 7746, "name": "ExpressionStatement", "src": "22557:39:6" }, { "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "operator": "=", "type": "string storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": true, "isPure": false, "lValueRequested": true, "type": "string storage ref" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7661, "type": "mapping(uint256 => string storage ref)", "value": "_tokenURIs" }, "id": 7747, "name": "Identifier", "src": "22606:10:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7734, "type": "uint256", "value": "tokenId" }, "id": 7748, "name": "Identifier", "src": "22617:7:6" } ], "id": 7749, "name": "IndexAccess", "src": "22606:19:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "string memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_string_storage", "typeString": "string storage ref" }, { "typeIdentifier": "t_string_memory_ptr", "typeString": "string memory" } ], "overloadedDeclarations": [ 4919, 4939, 4961, 5155 ], "referencedDeclaration": 4919, "type": "function (string memory,string memory) pure returns (string memory)", "value": "strConcat" }, "id": 7750, "name": "Identifier", "src": "22628:9:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7657, "type": "string storage ref", "value": "_baseTokenURI" }, "id": 7751, "name": "Identifier", "src": "22638:13:6" }, { "attributes": { "argumentTypes": null, "isConstant": false, "isLValue": false, "isPure": false, "isStructConstructorCall": false, "lValueRequested": false, "names": [ null ], "type": "string memory", "type_conversion": false }, "children": [ { "attributes": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 5499, "type": "function (uint256) pure returns (string memory)", "value": "uint2str" }, "id": 7752, "name": "Identifier", "src": "22653:8:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7734, "type": "uint256", "value": "tokenId" }, "id": 7753, "name": "Identifier", "src": "22662:7:6" } ], "id": 7754, "name": "FunctionCall", "src": "22653:17:6" } ], "id": 7755, "name": "FunctionCall", "src": "22628:43:6" } ], "id": 7756, "name": "Assignment", "src": "22606:65:6" } ], "id": 7757, "name": "ExpressionStatement", "src": "22606:65:6" } ], "id": 7758, "name": "Block", "src": "22547:131:6" } ], "id": 7759, "name": "FunctionDefinition", "src": "22500:178:6" } ], "id": 7760, "name": "ContractDefinition", "src": "20570:2110:6" }, { "attributes": { "contractDependencies": [ 6651, 6728, 6806, 6852, 7349, 7647, 7760 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "linearizedBaseContracts": [ 7801, 7760, 6651, 7647, 7349, 6852, 6806, 6728 ], "name": "RealEstateMarketplaceToken", "scope": 7802 }, "children": [ { "attributes": { "arguments": null }, "children": [ { "attributes": { "contractScope": null, "name": "ERC721Metadata", "referencedDeclaration": 7760, "type": "contract ERC721Metadata" }, "id": 7761, "name": "UserDefinedTypeName", "src": "22856:14:6" } ], "id": 7762, "name": "InheritanceSpecifier", "src": "22856:14:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": true, "kind": "constructor", "name": "", "scope": 7801, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "name", "scope": 7775, "stateVariable": false, "storageLocation": "memory", "type": "string", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "string", "type": "string" }, "id": 7763, "name": "ElementaryTypeName", "src": "23072:6:6" } ], "id": 7764, "name": "VariableDeclaration", "src": "23072:18:6" }, { "attributes": { "constant": false, "name": "symbol", "scope": 7775, "stateVariable": false, "storageLocation": "memory", "type": "string", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "string", "type": "string" }, "id": 7765, "name": "ElementaryTypeName", "src": "23092:6:6" } ], "id": 7766, "name": "VariableDeclaration", "src": "23092:20:6" } ], "id": 7767, "name": "ParameterList", "src": "23071:42:6" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 7773, "name": "ParameterList", "src": "23283:0:6" }, { "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7760, "type": "type(contract ERC721Metadata)", "value": "ERC721Metadata" }, "id": 7768, "name": "Identifier", "src": "23137:14:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7764, "type": "string memory", "value": "name" }, "id": 7769, "name": "Identifier", "src": "23165:4:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7766, "type": "string memory", "value": "symbol" }, "id": 7770, "name": "Identifier", "src": "23183:6:6" }, { "attributes": { "argumentTypes": null, "hexvalue": "68747470733a2f2f73332d75732d776573742d322e616d617a6f6e6177732e636f6d2f756461636974792d626c6f636b636861696e2f63617073746f6e652f", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "string", "type": "literal_string \"https://s3-us-west-2.amazonaws.com/udacity-blockchain/capstone/\"", "value": "https://s3-us-west-2.amazonaws.com/udacity-blockchain/capstone/" }, "id": 7771, "name": "Literal", "src": "23203:65:6" } ], "id": 7772, "name": "ModifierInvocation", "src": "23137:141:6" }, { "attributes": { "statements": [ null ] }, "children": [], "id": 7774, "name": "Block", "src": "23283:2:6" } ], "id": 7775, "name": "FunctionDefinition", "src": "23060:225:6" }, { "attributes": { "documentation": null, "implemented": true, "isConstructor": false, "kind": "function", "name": "mint", "scope": 7801, "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "to", "scope": 7800, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 7776, "name": "ElementaryTypeName", "src": "23746:7:6" } ], "id": 7777, "name": "VariableDeclaration", "src": "23746:10:6" }, { "attributes": { "constant": false, "name": "tokenId", "scope": 7800, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 7778, "name": "ElementaryTypeName", "src": "23758:7:6" } ], "id": 7779, "name": "VariableDeclaration", "src": "23758:15:6" } ], "id": 7780, "name": "ParameterList", "src": "23745:29:6" }, { "children": [ { "attributes": { "constant": false, "name": "", "scope": 7800, "stateVariable": false, "storageLocation": "default", "type": "bool", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bool", "type": "bool" }, "id": 7783, "name": "ElementaryTypeName", "src": "23801:4:6" } ], "id": 7784, "name": "VariableDeclaration", "src": "23801:4:6" } ], "id": 7785, "name": "ParameterList", "src": "23800:6:6" }, { "attributes": { "arguments": null }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 6701, "type": "modifier ()", "value": "onlyOwner" }, "id": 7781, "name": "Identifier", "src": "23782:9:6" } ], "id": 7782, "name": "ModifierInvocation", "src": "23782:9:6" }, { "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", "typeString": "address" }, { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "_mint", "referencedDeclaration": 7484, "type": "function (address,uint256)" }, "children": [ { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 9006, "type": "contract super RealEstateMarketplaceToken", "value": "super" }, "id": 7786, "name": "Identifier", "src": "23817:5:6" } ], "id": 7788, "name": "MemberAccess", "src": "23817:11:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7777, "type": "address", "value": "to" }, "id": 7789, "name": "Identifier", "src": "23829:2:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7779, "type": "uint256", "value": "tokenId" }, "id": 7790, "name": "Identifier", "src": "23833:7:6" } ], "id": 7791, "name": "FunctionCall", "src": "23817:24:6" } ], "id": 7792, "name": "ExpressionStatement", "src": "23817:24:6" }, { "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_uint256", "typeString": "uint256" } ], "overloadedDeclarations": [ null ], "referencedDeclaration": 7759, "type": "function (uint256)", "value": "setTokenURI" }, "id": 7793, "name": "Identifier", "src": "23851:11:6" }, { "attributes": { "argumentTypes": null, "overloadedDeclarations": [ null ], "referencedDeclaration": 7779, "type": "uint256", "value": "tokenId" }, "id": 7794, "name": "Identifier", "src": "23863:7:6" } ], "id": 7795, "name": "FunctionCall", "src": "23851:20:6" } ], "id": 7796, "name": "ExpressionStatement", "src": "23851:20:6" }, { "attributes": { "functionReturnParameters": 7785 }, "children": [ { "attributes": { "argumentTypes": null, "hexvalue": "74727565", "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "subdenomination": null, "token": "bool", "type": "bool", "value": "true" }, "id": 7797, "name": "Literal", "src": "23888:4:6" } ], "id": 7798, "name": "Return", "src": "23881:11:6" } ], "id": 7799, "name": "Block", "src": "23807:92:6" } ], "id": 7800, "name": "FunctionDefinition", "src": "23732:167:6" } ], "id": 7801, "name": "ContractDefinition", "src": "22817:1084:6" } ], "id": 7802, "name": "SourceUnit", "src": "0:23902:6" }, "compiler": { "name": "solc", "version": "0.5.16+commit.9c3226ce.Emscripten.clang" }, "networks": { "4": { "events": {}, "links": {}, "address": "0xd2D28e7383081EB2253e7786FdeF358A05194e2e", "transactionHash": "0xd08942f545e0b36f0a9cb457f087cd5b5e566f18f2f57369a99c8aab59e421c7" } }, "schemaVersion": "3.4.3", "updatedAt": "2021-10-30T19:14:22.640Z", "networkType": "ethereum", "devdoc": { "methods": { "isApprovedForAll(address,address)": { "details": "Tells whether an operator is approved by a given owner", "params": { "operator": "operator address which you want to query the approval of", "owner": "owner address which you want to query the approval of" }, "return": "bool whether the given operator is approved by the given owner" }, "setApprovalForAll(address,bool)": { "details": "Sets or unsets the approval of a given operator An operator is allowed to transfer all tokens of the sender on their behalf", "params": { "approved": "representing the status of the approval to be set", "to": "operator address to set the approval" } }, "supportsInterface(bytes4)": { "details": "implement supportsInterface(bytes4) using a lookup table" }, "tokenByIndex(uint256)": { "details": "Gets the token ID at a given index of all the tokens in this contract Reverts if the index is greater or equal to the total number of tokens", "params": { "index": "uint256 representing the index to be accessed of the tokens list" }, "return": "uint256 token ID at the given index of the tokens list" }, "tokenOfOwnerByIndex(address,uint256)": { "details": "Gets the token ID at a given index of the tokens list of the requested owner", "params": { "index": "uint256 representing the index to be accessed of the requested tokens list", "owner": "address owning the tokens list to be accessed" }, "return": "uint256 token ID at the given index of the tokens list owned by the requested address" }, "totalSupply()": { "details": "Gets the total amount of tokens stored by the contract", "return": "uint256 representing the total amount of tokens" } } }, "userdoc": { "methods": {} } }