201 lines
16 KiB
JSON
Generated
201 lines
16 KiB
JSON
Generated
{
|
|
"schemaVersion": "2.0.0",
|
|
"contractName": "ERC721Token",
|
|
"compilerOutput": {
|
|
"abi": [
|
|
{
|
|
"constant": true,
|
|
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
|
|
"name": "getApproved",
|
|
"outputs": [{ "name": "", "type": "address" }],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [{ "name": "_approved", "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": "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": "_operator", "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"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"methods": {
|
|
"approve(address,uint256)": {
|
|
"details": "The zero address indicates there is no approved address. Throws unless `msg.sender` is the current NFT owner, or an authorized operator of the current owner.",
|
|
"params": { "_approved": "The new approved NFT controller", "_tokenId": "The NFT to approve" }
|
|
},
|
|
"balanceOf(address)": {
|
|
"details": "NFTs assigned to the zero address are considered invalid, and this function throws for queries about the zero address.",
|
|
"params": { "_owner": "An address for whom to query the balance" },
|
|
"return": "The number of NFTs owned by `_owner`, possibly zero"
|
|
},
|
|
"getApproved(uint256)": {
|
|
"details": "Throws if `_tokenId` is not a valid NFT.",
|
|
"params": { "_tokenId": "The NFT to find the approved address for" },
|
|
"return": "The approved address for this NFT, or the zero address if there is none"
|
|
},
|
|
"isApprovedForAll(address,address)": {
|
|
"params": {
|
|
"_operator": "The address that acts on behalf of the owner",
|
|
"_owner": "The address that owns the NFTs"
|
|
},
|
|
"return": "True if `_operator` is an approved operator for `_owner`, false otherwise"
|
|
},
|
|
"ownerOf(uint256)": {
|
|
"details": "NFTs assigned to zero address are considered invalid, and queries about them do throw.",
|
|
"params": { "_tokenId": "The identifier for an NFT" },
|
|
"return": "The address of the owner of the NFT"
|
|
},
|
|
"safeTransferFrom(address,address,uint256)": {
|
|
"details": "This works identically to the other function with an extra data parameter, except this function just sets data to \"\".",
|
|
"params": {
|
|
"_from": "The current owner of the NFT",
|
|
"_to": "The new owner",
|
|
"_tokenId": "The NFT to transfer"
|
|
}
|
|
},
|
|
"safeTransferFrom(address,address,uint256,bytes)": {
|
|
"details": "Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT. When transfer is complete, this function checks if `_to` is a smart contract (code size > 0). If so, it calls `onERC721Received` on `_to` and throws if the return value is not `bytes4(keccak256(\"onERC721Received(address,address,uint256,bytes)\"))`.",
|
|
"params": {
|
|
"_data": "Additional data with no specified format, sent in call to `_to`",
|
|
"_from": "The current owner of the NFT",
|
|
"_to": "The new owner",
|
|
"_tokenId": "The NFT to transfer"
|
|
}
|
|
},
|
|
"setApprovalForAll(address,bool)": {
|
|
"details": "Emits the ApprovalForAll event. The contract MUST allow multiple operators per owner.",
|
|
"params": {
|
|
"_approved": "True if the operator is approved, false to revoke approval",
|
|
"_operator": "Address to add to the set of authorized operators"
|
|
}
|
|
},
|
|
"transferFrom(address,address,uint256)": {
|
|
"details": "Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT.",
|
|
"params": {
|
|
"_from": "The current owner of the NFT",
|
|
"_to": "The new owner",
|
|
"_tokenId": "The NFT to transfer"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"evm": {
|
|
"bytecode": {
|
|
"object": "0x608060405234801561001057600080fd5b50610e2d806100206000396000f3006080604052600436106100985763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663081812fc811461009d578063095ea7b3146100de57806323b872dd1461011157806342842e0e146101485780636352211e1461017f57806370a0823114610197578063a22cb465146101d7578063b88d4fde1461020a578063e985e9c514610250575b600080fd5b3480156100a957600080fd5b506100b5600435610298565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156100ea57600080fd5b5061010f73ffffffffffffffffffffffffffffffffffffffff600435166024356102c0565b005b34801561011d57600080fd5b5061010f73ffffffffffffffffffffffffffffffffffffffff600435811690602435166044356103e4565b34801561015457600080fd5b5061010f73ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610744565b34801561018b57600080fd5b506100b560043561090f565b3480156101a357600080fd5b506101c573ffffffffffffffffffffffffffffffffffffffff600435166109a8565b60408051918252519081900360200190f35b3480156101e357600080fd5b5061010f73ffffffffffffffffffffffffffffffffffffffff600435166024351515610a57565b34801561021657600080fd5b5061010f73ffffffffffffffffffffffffffffffffffffffff60048035821691602480359091169160443591606435908101910135610af0565b34801561025c57600080fd5b5061028473ffffffffffffffffffffffffffffffffffffffff60043581169060243516610cd4565b604080519115158252519081900360200190f35b60009081526001602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006102cb8261090f565b90503373ffffffffffffffffffffffffffffffffffffffff821614806102f657506102f68133610cd4565b151561036357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4552433732315f494e56414c49445f53454e4445520000000000000000000000604482015290519081900360640190fd5b60008281526001602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000808073ffffffffffffffffffffffffffffffffffffffff8516151561046c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4552433732315f5a45524f5f544f5f4144445245535300000000000000000000604482015290519081900360640190fd5b6104758461090f565b925073ffffffffffffffffffffffffffffffffffffffff868116908416146104fe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4552433732315f4f574e45525f4d49534d415443480000000000000000000000604482015290519081900360640190fd5b33915061050a84610298565b90508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16148061054b575061054b8383610cd4565b8061058157508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15156105ee57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4552433732315f494e56414c49445f5350454e44455200000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81161561063f57600084815260016020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555b60008481526020818152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8a8116919091179091558916835260029091529020546106a8906001610d0f565b73ffffffffffffffffffffffffffffffffffffffff80881660009081526002602052604080822093909355908716815220546106e5906001610d86565b73ffffffffffffffffffffffffffffffffffffffff808716600081815260026020526040808220949094559251879391928a16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050505050565b6000806107528585856103e4565b833b9150600082111561090857604080517f150b7a0200000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff8781166024830152604482018690526080606483015260006084830181905292519087169263150b7a029260c480820193602093909283900390910190829087803b1580156107ef57600080fd5b505af1158015610803573d6000803e3d6000fd5b505050506040513d602081101561081957600080fd5b5051604080517f6f6e455243373231526563656976656428616464726573732c6164647265737381527f2c75696e743235362c62797465732900000000000000000000000000000000006020820152905190819003602f0190209091507fffffffff0000000000000000000000000000000000000000000000000000000080831691161461090857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4552433732315f494e56414c49445f53454c4543544f52000000000000000000604482015290519081900360640190fd5b5050505050565b60008181526020819052604081205473ffffffffffffffffffffffffffffffffffffffff168015156109a257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4552433732315f5a45524f5f4f574e4552000000000000000000000000000000604482015290519081900360640190fd5b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82161515610a2e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4552433732315f5a45524f5f4f574e4552000000000000000000000000000000604482015290519081900360640190fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b33600081815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b600080610afe8787876103e4565b853b91506000821115610ccb576040517f150b7a02000000000000000000000000000000000000000000000000000000008152336004820181815273ffffffffffffffffffffffffffffffffffffffff8a811660248501526044840189905260806064850190815260848501889052908a169363150b7a0293928c928b928b928b92909160a40184848082843782019150509650505050505050602060405180830381600087803b158015610bb257600080fd5b505af1158015610bc6573d6000803e3d6000fd5b505050506040513d6020811015610bdc57600080fd5b5051604080517f6f6e455243373231526563656976656428616464726573732c6164647265737381527f2c75696e743235362c62797465732900000000000000000000000000000000006020820152905190819003602f0190209091507fffffffff00000000000000000000000000000000000000000000000000000000808316911614610ccb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4552433732315f494e56414c49445f53454c4543544f52000000000000000000604482015290519081900360640190fd5b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260036020908152604080832093909416825291909152205460ff1690565b600082821115610d8057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f55494e543235365f554e444552464c4f57000000000000000000000000000000604482015290519081900360640190fd5b50900390565b600082820183811015610dfa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f55494e543235365f4f564552464c4f5700000000000000000000000000000000604482015290519081900360640190fd5b93925050505600a165627a7a723058207318c14c91209a554964c5f972b95a90fe384dd7dd96ccfd0609544e6439c3c90029"
|
|
}
|
|
}
|
|
},
|
|
"networks": {}
|
|
}
|