* Update ERC721 to latest 1.11.0 from OpenZeppelin-solidity * Hardcode supported interfaces instead of using lookup table. This avoids shifting storage when extending supports interface. * Update build artifacts * Fix linter errors
1224 lines
66 KiB
JSON
1224 lines
66 KiB
JSON
{
|
|
"contractName": "ERC721BasicTokenMock",
|
|
"abi": [
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_interfaceId",
|
|
"type": "bytes4"
|
|
}
|
|
],
|
|
"name": "supportsInterface",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_tokenId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "getApproved",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{
|
|
"name": "_to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"name": "_tokenId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "approve",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{
|
|
"name": "_from",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"name": "_to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"name": "_tokenId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "transferFrom",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{
|
|
"name": "_from",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"name": "_to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"name": "_tokenId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "safeTransferFrom",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_tokenId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "exists",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_tokenId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "ownerOf",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_owner",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "balanceOf",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{
|
|
"name": "_to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"name": "_approved",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"name": "setApprovalForAll",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{
|
|
"name": "_from",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"name": "_to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"name": "_tokenId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "_data",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "safeTransferFrom",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_owner",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"name": "_operator",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "isApprovedForAll",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"name": "_from",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"name": "_to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"name": "_tokenId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Transfer",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"name": "_owner",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"name": "_approved",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"name": "_tokenId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "Approval",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"name": "_owner",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"name": "_operator",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"name": "_approved",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"name": "ApprovalForAll",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{
|
|
"name": "_to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"name": "_tokenId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "mint",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{
|
|
"name": "_tokenId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "burn",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"bytecode": "0x608060405234801561001057600080fd5b50611562806100206000396000f3006080604052600436106100c5576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806301ffc9a7146100ca578063081812fc1461012e578063095ea7b31461019b57806323b872dd146101e857806340c10f191461025557806342842e0e146102a257806342966c681461030f5780634f558e791461033c5780636352211e1461038157806370a08231146103ee578063a22cb46514610445578063b88d4fde14610494578063e985e9c514610547575b600080fd5b3480156100d657600080fd5b5061011460048036038101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690602001909291905050506105c2565b604051808215151515815260200191505060405180910390f35b34801561013a57600080fd5b50610159600480360381019080803590602001909291905050506105d4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101a757600080fd5b506101e6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610611565b005b3480156101f457600080fd5b50610253600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610756565b005b34801561026157600080fd5b506102a0600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610863565b005b3480156102ae57600080fd5b5061030d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610871565b005b34801561031b57600080fd5b5061033a600480360381019080803590602001909291905050506108a9565b005b34801561034857600080fd5b50610367600480360381019080803590602001909291905050506108be565b604051808215151515815260200191505060405180910390f35b34801561038d57600080fd5b506103ac6004803603810190808035906020019092919050505061092f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103fa57600080fd5b5061042f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109ac565b6040518082815260200191505060405180910390f35b34801561045157600080fd5b50610492600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050610a30565b005b3480156104a057600080fd5b50610545600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610b6c565b005b34801561055357600080fd5b506105a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bab565b604051808215151515815260200191505060405180910390f35b60006105cd82610c3f565b9050919050565b60006001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061061c8261092f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561065957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061069957506106988133610bab565b5b15156106a457600080fd5b826001600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b806107613382610d27565b151561076c57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141515156107a857600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156107e457600080fd5b6107ee8483610dbc565b6107f88483610ebf565b6108028383610fed565b818373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b61086d8282611145565b5050565b8061087c3382610d27565b151561088757600080fd5b6108a38484846020604051908101604052806000815250610b6c565b50505050565b6108bb6108b58261092f565b826111eb565b50565b60008060008084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b60008060008084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156109a357600080fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156109e957600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515610a6b57600080fd5b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b81610b773382610d27565b1515610b8257600080fd5b610b8d858585610756565b610b998585858561125f565b1515610ba457600080fd5b5050505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000610c4a82611481565b80610cb557506380ac58cd7c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610d205750634f558e797c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600080610d338361092f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480610da257508373ffffffffffffffffffffffffffffffffffffffff16610d8a846105d4565b73ffffffffffffffffffffffffffffffffffffffff16145b80610db35750610db28185610bab565b5b91505092915050565b8173ffffffffffffffffffffffffffffffffffffffff16610ddc8261092f565b73ffffffffffffffffffffffffffffffffffffffff16141515610dfe57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515610ebb5760006001600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5050565b8173ffffffffffffffffffffffffffffffffffffffff16610edf8261092f565b73ffffffffffffffffffffffffffffffffffffffff16141515610f0157600080fd5b610f546001600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114ee90919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600080600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600073ffffffffffffffffffffffffffffffffffffffff1660008083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561105a57600080fd5b8160008083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506110fe6001600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461150790919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561118157600080fd5b61118b8282610fed565b808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6111f58282610dbc565b6111ff8282610ebf565b80600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000806112818573ffffffffffffffffffffffffffffffffffffffff16611523565b15156112905760019150611478565b8473ffffffffffffffffffffffffffffffffffffffff1663150b7a02338887876040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561138557808201518184015260208101905061136a565b50505050905090810190601f1680156113b25780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156113d457600080fd5b505af11580156113e8573d6000803e3d6000fd5b505050506040513d60208110156113fe57600080fd5b8101908080519060200190929190505050905063150b7a027c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505b50949350505050565b60006301ffc9a77c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008282111515156114fc57fe5b818303905092915050565b6000818301905082811015151561151a57fe5b80905092915050565b600080823b9050600081119150509190505600a165627a7a723058205d016f477df109300b1a677aee4e47e22d13b15f4eca9ae56f717b55816037970029",
|
|
"deployedBytecode": "0x6080604052600436106100c5576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806301ffc9a7146100ca578063081812fc1461012e578063095ea7b31461019b57806323b872dd146101e857806340c10f191461025557806342842e0e146102a257806342966c681461030f5780634f558e791461033c5780636352211e1461038157806370a08231146103ee578063a22cb46514610445578063b88d4fde14610494578063e985e9c514610547575b600080fd5b3480156100d657600080fd5b5061011460048036038101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690602001909291905050506105c2565b604051808215151515815260200191505060405180910390f35b34801561013a57600080fd5b50610159600480360381019080803590602001909291905050506105d4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101a757600080fd5b506101e6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610611565b005b3480156101f457600080fd5b50610253600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610756565b005b34801561026157600080fd5b506102a0600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610863565b005b3480156102ae57600080fd5b5061030d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610871565b005b34801561031b57600080fd5b5061033a600480360381019080803590602001909291905050506108a9565b005b34801561034857600080fd5b50610367600480360381019080803590602001909291905050506108be565b604051808215151515815260200191505060405180910390f35b34801561038d57600080fd5b506103ac6004803603810190808035906020019092919050505061092f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103fa57600080fd5b5061042f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109ac565b6040518082815260200191505060405180910390f35b34801561045157600080fd5b50610492600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050610a30565b005b3480156104a057600080fd5b50610545600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610b6c565b005b34801561055357600080fd5b506105a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bab565b604051808215151515815260200191505060405180910390f35b60006105cd82610c3f565b9050919050565b60006001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061061c8261092f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561065957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061069957506106988133610bab565b5b15156106a457600080fd5b826001600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b806107613382610d27565b151561076c57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141515156107a857600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156107e457600080fd5b6107ee8483610dbc565b6107f88483610ebf565b6108028383610fed565b818373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b61086d8282611145565b5050565b8061087c3382610d27565b151561088757600080fd5b6108a38484846020604051908101604052806000815250610b6c565b50505050565b6108bb6108b58261092f565b826111eb565b50565b60008060008084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b60008060008084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156109a357600080fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156109e957600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515610a6b57600080fd5b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b81610b773382610d27565b1515610b8257600080fd5b610b8d858585610756565b610b998585858561125f565b1515610ba457600080fd5b5050505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000610c4a82611481565b80610cb557506380ac58cd7c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610d205750634f558e797c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600080610d338361092f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480610da257508373ffffffffffffffffffffffffffffffffffffffff16610d8a846105d4565b73ffffffffffffffffffffffffffffffffffffffff16145b80610db35750610db28185610bab565b5b91505092915050565b8173ffffffffffffffffffffffffffffffffffffffff16610ddc8261092f565b73ffffffffffffffffffffffffffffffffffffffff16141515610dfe57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515610ebb5760006001600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5050565b8173ffffffffffffffffffffffffffffffffffffffff16610edf8261092f565b73ffffffffffffffffffffffffffffffffffffffff16141515610f0157600080fd5b610f546001600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114ee90919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600080600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600073ffffffffffffffffffffffffffffffffffffffff1660008083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561105a57600080fd5b8160008083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506110fe6001600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461150790919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561118157600080fd5b61118b8282610fed565b808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6111f58282610dbc565b6111ff8282610ebf565b80600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000806112818573ffffffffffffffffffffffffffffffffffffffff16611523565b15156112905760019150611478565b8473ffffffffffffffffffffffffffffffffffffffff1663150b7a02338887876040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561138557808201518184015260208101905061136a565b50505050905090810190601f1680156113b25780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156113d457600080fd5b505af11580156113e8573d6000803e3d6000fd5b505050506040513d60208110156113fe57600080fd5b8101908080519060200190929190505050905063150b7a027c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505b50949350505050565b60006301ffc9a77c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008282111515156114fc57fe5b818303905092915050565b6000818301905082811015151561151a57fe5b80905092915050565b600080823b9050600081119150509190505600a165627a7a723058205d016f477df109300b1a677aee4e47e22d13b15f4eca9ae56f717b55816037970029",
|
|
"sourceMap": "195:239:14:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;195:239:14;;;;;;;",
|
|
"deployedSourceMap": "195:239:14:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;340:143:5;;8:9:-1;5:2;;;30:1;27;20:12;5:2;340:143:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4612:111:49;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4612:111:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4108:277;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4108:277:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6103:342;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6103:342:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;249:89:14;;8:9:-1;5:2;;;30:1;27;20:12;5:2;249:89:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7061:225:49;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7061:225:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;342:90:14;;8:9:-1;5:2;;;30:1;27;20:12;5:2;342:90:14;;;;;;;;;;;;;;;;;;;;;;;;;;3563:140:49;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3563:140:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3221:164;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3221:164:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2866:142;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2866:142:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5003:205;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5003:205:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7968:302;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7968:302:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5517:168;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5517:168:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;340:143:5;423:4;444:32;463:12;444:18;:32::i;:::-;437:39;;340:143;;;:::o;4612:111:49:-;4672:7;4694:14;:24;4709:8;4694:24;;;;;;;;;;;;;;;;;;;;;4687:31;;4612:111;;;:::o;4108:277::-;4169:13;4185:17;4193:8;4185:7;:17::i;:::-;4169:33;;4223:5;4216:12;;:3;:12;;;;4208:21;;;;;;;;4257:5;4243:19;;:10;:19;;;:58;;;;4266:35;4283:5;4290:10;4266:16;:35::i;:::-;4243:58;4235:67;;;;;;;;4336:3;4309:14;:24;4324:8;4309:24;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;4371:8;4366:3;4350:30;;4359:5;4350:30;;;;;;;;;;;;4108:277;;;:::o;6103:342::-;6214:8;2376:39;2394:10;2406:8;2376:17;:39::i;:::-;2368:48;;;;;;;;6257:1;6240:19;;:5;:19;;;;6232:28;;;;;;;;6289:1;6274:17;;:3;:17;;;;6266:26;;;;;;;;6299:30;6313:5;6320:8;6299:13;:30::i;:::-;6335:32;6351:5;6358:8;6335:15;:32::i;:::-;6373:25;6384:3;6389:8;6373:10;:25::i;:::-;6431:8;6426:3;6410:30;;6419:5;6410:30;;;;;;;;;;;;6103:342;;;;:::o;249:89:14:-;307:26;319:3;324:8;307:11;:26::i;:::-;249:89;;:::o;7061:225:49:-;7176:8;2376:39;2394:10;2406:8;2376:17;:39::i;:::-;2368:48;;;;;;;;7239:42;7256:5;7263:3;7268:8;7239:42;;;;;;;;;;;;;:16;:42::i;:::-;7061:225;;;;:::o;342:90:14:-;387:40;399:17;407:8;399:7;:17::i;:::-;418:8;387:11;:40::i;:::-;342:90;:::o;3563:140:49:-;3618:4;3630:13;3646:10;:20;3657:8;3646:20;;;;;;;;;;;;;;;;;;;;;3630:36;;3696:1;3679:19;;:5;:19;;;;3672:26;;3563:140;;;;:::o;3221:164::-;3277:7;3292:13;3308:10;:20;3319:8;3308:20;;;;;;;;;;;;;;;;;;;;;3292:36;;3359:1;3342:19;;:5;:19;;;;3334:28;;;;;;;;3375:5;3368:12;;3221:164;;;;:::o;2866:142::-;2922:7;2963:1;2945:20;;:6;:20;;;;2937:29;;;;;;;;2979:16;:24;2996:6;2979:24;;;;;;;;;;;;;;;;2972:31;;2866:142;;;:::o;5003:205::-;5087:10;5080:17;;:3;:17;;;;5072:26;;;;;;;;5141:9;5104:17;:29;5122:10;5104:29;;;;;;;;;;;;;;;:34;5134:3;5104:34;;;;;;;;;;;;;;;;:46;;;;;;;;;;;;;;;;;;5188:3;5161:42;;5176:10;5161:42;;;5193:9;5161:42;;;;;;;;;;;;;;;;;;;;;;5003:205;;:::o;7968:302::-;8100:8;2376:39;2394:10;2406:8;2376:17;:39::i;:::-;2368:48;;;;;;;;8118:34;8131:5;8138:3;8143:8;8118:12;:34::i;:::-;8211:53;8236:5;8243:3;8248:8;8258:5;8211:24;:53::i;:::-;8203:62;;;;;;;;7968:302;;;;;:::o;5517:168::-;5623:4;5644:17;:25;5662:6;5644:25;;;;;;;;;;;;;;;:36;5670:9;5644:36;;;;;;;;;;;;;;;;;;;;;;;;;5637:43;;5517:168;;;;:::o;2432:242::-;2516:4;2537:38;2562:12;2537:24;:38::i;:::-;:82;;;;455:10;2601:18;;2585:34;;;:12;:34;;;;2537:82;:132;;;;1096:10;2645:24;;2629:40;;;:12;:40;;;;2537:132;2530:139;;2432:242;;;:::o;8617:438::-;8727:4;8741:13;8757:17;8765:8;8757:7;:17::i;:::-;8741:33;;8953:5;8941:17;;:8;:17;;;:60;;;;8993:8;8968:33;;:21;8980:8;8968:11;:21::i;:::-;:33;;;8941:60;:103;;;;9011:33;9028:5;9035:8;9011:16;:33::i;:::-;8941:103;8926:124;;8617:438;;;;;:::o;10109:214::-;10210:6;10189:27;;:17;10197:8;10189:7;:17::i;:::-;:27;;;10181:36;;;;;;;;10263:1;10227:38;;:14;:24;10242:8;10227:24;;;;;;;;;;;;;;;;;;;;;:38;;;;10223:96;;;10310:1;10275:14;:24;10290:8;10275:24;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;10223:96;10109:214;;:::o;11069:::-;11171:5;11150:26;;:17;11158:8;11150:7;:17::i;:::-;:26;;;11142:35;;;;;;;;11209:30;11237:1;11209:16;:23;11226:5;11209:23;;;;;;;;;;;;;;;;:27;;:30;;;;:::i;:::-;11183:16;:23;11200:5;11183:23;;;;;;;;;;;;;;;:56;;;;11276:1;11245:10;:20;11256:8;11245:20;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;11069:214;;:::o;10586:204::-;10692:1;10660:34;;:10;:20;10671:8;10660:20;;;;;;;;;;;;;;;;;;;;;:34;;;10652:43;;;;;;;;10724:3;10701:10;:20;10712:8;10701:20;;;;;;;;;;;;:26;;;;;;;;;;;;;;;;;;10757:28;10783:1;10757:16;:21;10774:3;10757:21;;;;;;;;;;;;;;;;:25;;:28;;;;:::i;:::-;10733:16;:21;10750:3;10733:21;;;;;;;;;;;;;;;:52;;;;10586:204;;:::o;9304:169::-;9388:1;9373:17;;:3;:17;;;;9365:26;;;;;;;;9397:25;9408:3;9413:8;9397:10;:25::i;:::-;9459:8;9454:3;9433:35;;9450:1;9433:35;;;;;;;;;;;;9304:169;;:::o;9659:188::-;9723:31;9737:6;9745:8;9723:13;:31::i;:::-;9760:33;9776:6;9784:8;9760:15;:33::i;:::-;9833:8;9829:1;9804:38;;9813:6;9804:38;;;;;;;;;;;;9659:188;;:::o;11789:347::-;11928:4;11996:13;11947:16;:3;:14;;;:16::i;:::-;11946:17;11942:49;;;11980:4;11973:11;;;;11942:49;12027:3;12012:36;;;12056:10;12068:5;12075:8;12085:5;12012:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;12012:79:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;12012:79:49;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;12012:79:49;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;12012:79:49;;;;;;;;;;;;;;;;11996:95;;1460:10;12115:15;;12105:25;;;:6;:25;;;;12097:34;;11789:347;;;;;;;;:::o;487:146:5:-;571:4;239:10;608:18;;592:34;;;:12;:34;;;;585:41;;487:146;;;:::o;836:110:8:-;894:7;921:1;916;:6;;909:14;;;;;;940:1;936;:5;929:12;;836:110;;;;:::o;1008:123::-;1066:9;1091:1;1087;:5;1083:9;;1110:1;1105;:6;;1098:14;;;;;;1125:1;1118:8;;1008:123;;;;:::o;438:568:0:-;495:4;507:12;922:4;910:17;902:25;;1000:1;993:4;:8;986:15;;438:568;;;;:::o",
|
|
"source": "pragma solidity ^0.4.21;\n\nimport \"../token/ERC721/ERC721BasicToken.sol\";\n\n\n/**\n * @title ERC721BasicTokenMock\n * This mock just provides a public mint and burn functions for testing purposes\n */\ncontract ERC721BasicTokenMock is ERC721BasicToken {\n function mint(address _to, uint256 _tokenId) public {\n super._mint(_to, _tokenId);\n }\n\n function burn(uint256 _tokenId) public {\n super._burn(ownerOf(_tokenId), _tokenId);\n }\n}\n",
|
|
"sourcePath": "/home/spalladino/Projects/openzeppelin-zos/contracts/mocks/ERC721BasicTokenMock.sol",
|
|
"ast": {
|
|
"absolutePath": "/home/spalladino/Projects/openzeppelin-zos/contracts/mocks/ERC721BasicTokenMock.sol",
|
|
"exportedSymbols": {
|
|
"ERC721BasicTokenMock": [
|
|
770
|
|
]
|
|
},
|
|
"id": 771,
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 736,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.4",
|
|
".21"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "0:24:14"
|
|
},
|
|
{
|
|
"absolutePath": "/home/spalladino/Projects/openzeppelin-zos/contracts/token/ERC721/ERC721BasicToken.sol",
|
|
"file": "../token/ERC721/ERC721BasicToken.sol",
|
|
"id": 737,
|
|
"nodeType": "ImportDirective",
|
|
"scope": 771,
|
|
"sourceUnit": 4268,
|
|
"src": "26:46:14",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"baseContracts": [
|
|
{
|
|
"arguments": null,
|
|
"baseName": {
|
|
"contractScope": null,
|
|
"id": 738,
|
|
"name": "ERC721BasicToken",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 4267,
|
|
"src": "228:16:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_ERC721BasicToken_$4267",
|
|
"typeString": "contract ERC721BasicToken"
|
|
}
|
|
},
|
|
"id": 739,
|
|
"nodeType": "InheritanceSpecifier",
|
|
"src": "228:16:14"
|
|
}
|
|
],
|
|
"contractDependencies": [
|
|
303,
|
|
336,
|
|
3674,
|
|
4267
|
|
],
|
|
"contractKind": "contract",
|
|
"documentation": "@title ERC721BasicTokenMock\nThis mock just provides a public mint and burn functions for testing purposes",
|
|
"fullyImplemented": true,
|
|
"id": 770,
|
|
"linearizedBaseContracts": [
|
|
770,
|
|
4267,
|
|
3674,
|
|
336,
|
|
303
|
|
],
|
|
"name": "ERC721BasicTokenMock",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"body": {
|
|
"id": 753,
|
|
"nodeType": "Block",
|
|
"src": "301:37:14",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 749,
|
|
"name": "_to",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 741,
|
|
"src": "319:3:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 750,
|
|
"name": "_tokenId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 743,
|
|
"src": "324:8:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 746,
|
|
"name": "super",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4947,
|
|
"src": "307:5:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_super$_ERC721BasicTokenMock_$770",
|
|
"typeString": "contract super ERC721BasicTokenMock"
|
|
}
|
|
},
|
|
"id": 748,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "_mint",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 4097,
|
|
"src": "307:11:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
|
|
"typeString": "function (address,uint256)"
|
|
}
|
|
},
|
|
"id": 751,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "307:26:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 752,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "307:26:14"
|
|
}
|
|
]
|
|
},
|
|
"documentation": null,
|
|
"id": 754,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "mint",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 744,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 741,
|
|
"name": "_to",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 754,
|
|
"src": "263:11:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 740,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "263:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 743,
|
|
"name": "_tokenId",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 754,
|
|
"src": "276:16:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 742,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "276:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "262:31:14"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 745,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "301:0:14"
|
|
},
|
|
"scope": 770,
|
|
"src": "249:89:14",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 768,
|
|
"nodeType": "Block",
|
|
"src": "381:51:14",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 763,
|
|
"name": "_tokenId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 756,
|
|
"src": "407:8:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"id": 762,
|
|
"name": "ownerOf",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
3812
|
|
],
|
|
"referencedDeclaration": 3812,
|
|
"src": "399:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_address_$",
|
|
"typeString": "function (uint256) view returns (address)"
|
|
}
|
|
},
|
|
"id": 764,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "399:17:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 765,
|
|
"name": "_tokenId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 756,
|
|
"src": "418:8:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 759,
|
|
"name": "super",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4947,
|
|
"src": "387:5:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_super$_ERC721BasicTokenMock_$770",
|
|
"typeString": "contract super ERC721BasicTokenMock"
|
|
}
|
|
},
|
|
"id": 761,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "_burn",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 4123,
|
|
"src": "387:11:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
|
|
"typeString": "function (address,uint256)"
|
|
}
|
|
},
|
|
"id": 766,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "387:40:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 767,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "387:40:14"
|
|
}
|
|
]
|
|
},
|
|
"documentation": null,
|
|
"id": 769,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "burn",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 757,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 756,
|
|
"name": "_tokenId",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 769,
|
|
"src": "356:16:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 755,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "356:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "355:18:14"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 758,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "381:0:14"
|
|
},
|
|
"scope": 770,
|
|
"src": "342:90:14",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"scope": 771,
|
|
"src": "195:239:14"
|
|
}
|
|
],
|
|
"src": "0:435:14"
|
|
},
|
|
"legacyAST": {
|
|
"absolutePath": "/home/spalladino/Projects/openzeppelin-zos/contracts/mocks/ERC721BasicTokenMock.sol",
|
|
"exportedSymbols": {
|
|
"ERC721BasicTokenMock": [
|
|
770
|
|
]
|
|
},
|
|
"id": 771,
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 736,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.4",
|
|
".21"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "0:24:14"
|
|
},
|
|
{
|
|
"absolutePath": "/home/spalladino/Projects/openzeppelin-zos/contracts/token/ERC721/ERC721BasicToken.sol",
|
|
"file": "../token/ERC721/ERC721BasicToken.sol",
|
|
"id": 737,
|
|
"nodeType": "ImportDirective",
|
|
"scope": 771,
|
|
"sourceUnit": 4268,
|
|
"src": "26:46:14",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"baseContracts": [
|
|
{
|
|
"arguments": null,
|
|
"baseName": {
|
|
"contractScope": null,
|
|
"id": 738,
|
|
"name": "ERC721BasicToken",
|
|
"nodeType": "UserDefinedTypeName",
|
|
"referencedDeclaration": 4267,
|
|
"src": "228:16:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_ERC721BasicToken_$4267",
|
|
"typeString": "contract ERC721BasicToken"
|
|
}
|
|
},
|
|
"id": 739,
|
|
"nodeType": "InheritanceSpecifier",
|
|
"src": "228:16:14"
|
|
}
|
|
],
|
|
"contractDependencies": [
|
|
303,
|
|
336,
|
|
3674,
|
|
4267
|
|
],
|
|
"contractKind": "contract",
|
|
"documentation": "@title ERC721BasicTokenMock\nThis mock just provides a public mint and burn functions for testing purposes",
|
|
"fullyImplemented": true,
|
|
"id": 770,
|
|
"linearizedBaseContracts": [
|
|
770,
|
|
4267,
|
|
3674,
|
|
336,
|
|
303
|
|
],
|
|
"name": "ERC721BasicTokenMock",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"body": {
|
|
"id": 753,
|
|
"nodeType": "Block",
|
|
"src": "301:37:14",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 749,
|
|
"name": "_to",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 741,
|
|
"src": "319:3:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 750,
|
|
"name": "_tokenId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 743,
|
|
"src": "324:8:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 746,
|
|
"name": "super",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4947,
|
|
"src": "307:5:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_super$_ERC721BasicTokenMock_$770",
|
|
"typeString": "contract super ERC721BasicTokenMock"
|
|
}
|
|
},
|
|
"id": 748,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "_mint",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 4097,
|
|
"src": "307:11:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
|
|
"typeString": "function (address,uint256)"
|
|
}
|
|
},
|
|
"id": 751,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "307:26:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 752,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "307:26:14"
|
|
}
|
|
]
|
|
},
|
|
"documentation": null,
|
|
"id": 754,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "mint",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 744,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 741,
|
|
"name": "_to",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 754,
|
|
"src": "263:11:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 740,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "263:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 743,
|
|
"name": "_tokenId",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 754,
|
|
"src": "276:16:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 742,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "276:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "262:31:14"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 745,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "301:0:14"
|
|
},
|
|
"scope": 770,
|
|
"src": "249:89:14",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 768,
|
|
"nodeType": "Block",
|
|
"src": "381:51:14",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"arguments": [
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 763,
|
|
"name": "_tokenId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 756,
|
|
"src": "407:8:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"id": 762,
|
|
"name": "ownerOf",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
3812
|
|
],
|
|
"referencedDeclaration": 3812,
|
|
"src": "399:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_address_$",
|
|
"typeString": "function (uint256) view returns (address)"
|
|
}
|
|
},
|
|
"id": 764,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "399:17:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
{
|
|
"argumentTypes": null,
|
|
"id": 765,
|
|
"name": "_tokenId",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 756,
|
|
"src": "418:8:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 759,
|
|
"name": "super",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4947,
|
|
"src": "387:5:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_super$_ERC721BasicTokenMock_$770",
|
|
"typeString": "contract super ERC721BasicTokenMock"
|
|
}
|
|
},
|
|
"id": 761,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "_burn",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 4123,
|
|
"src": "387:11:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
|
|
"typeString": "function (address,uint256)"
|
|
}
|
|
},
|
|
"id": 766,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "387:40:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 767,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "387:40:14"
|
|
}
|
|
]
|
|
},
|
|
"documentation": null,
|
|
"id": 769,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"isDeclaredConst": false,
|
|
"modifiers": [],
|
|
"name": "burn",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 757,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 756,
|
|
"name": "_tokenId",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 769,
|
|
"src": "356:16:14",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 755,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "356:7:14",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "355:18:14"
|
|
},
|
|
"payable": false,
|
|
"returnParameters": {
|
|
"id": 758,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "381:0:14"
|
|
},
|
|
"scope": 770,
|
|
"src": "342:90:14",
|
|
"stateMutability": "nonpayable",
|
|
"superFunction": null,
|
|
"visibility": "public"
|
|
}
|
|
],
|
|
"scope": 771,
|
|
"src": "195:239:14"
|
|
}
|
|
],
|
|
"src": "0:435:14"
|
|
},
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.4.23+commit.124ca40d.Emscripten.clang"
|
|
},
|
|
"networks": {},
|
|
"schemaVersion": "2.0.0",
|
|
"updatedAt": "2018-08-27T20:45:00.205Z"
|
|
} |