[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" } ], "name": "Burn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" } ], "name": "Mint", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" } ], "name": "burn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "collection", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "factory", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_collection", "type": "address" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" } ], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" } ]
6080604052600160055534801561001557600080fd5b50600380546001600160a01b03191633179055610db9806100376000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806395d89b411161008c578063c45a015511610066578063c45a01551461022c578063c4d66de81461023f578063dd62ed3e14610252578063de836ebd1461027d57600080fd5b806395d89b41146101e1578063a9059cbb14610204578063ba36b92d1461021757600080fd5b806323b872dd116100c857806323b872dd14610169578063313ce5671461017c57806370a08231146101965780637de1e536146101b657600080fd5b806306fdde03146100ef578063095ea7b31461012f57806318160ddd14610152575b600080fd5b6101196040518060400160405280600b81526020016a15dc985c1c19590813919560aa1b81525081565b6040516101269190610a24565b60405180910390f35b61014261013d366004610a95565b610290565b6040519015158152602001610126565b61015b60005481565b604051908152602001610126565b610142610177366004610abf565b6102a6565b610184601281565b60405160ff9091168152602001610126565b61015b6101a4366004610afb565b60016020526000908152604090205481565b6004546101c9906001600160a01b031681565b6040516001600160a01b039091168152602001610126565b6101196040518060400160405280600481526020016315d3919560e21b81525081565b610142610212366004610a95565b610320565b61022a610225366004610b33565b61032d565b005b6003546101c9906001600160a01b031681565b61022a61024d366004610afb565b61042d565b61015b610260366004610c04565b600260209081526000928352604080842090915290825290205481565b61022a61028b366004610b33565b610486565b600061029d338484610574565b50600192915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120546000191461030b576001600160a01b038416600090815260026020908152604080832033845290915281208054849290610305908490610c4d565b90915550505b6103168484846105d6565b5060019392505050565b600061029d3384846105d6565b60035460405163e4b643e360e01b81523360048201526001600160a01b039091169063e4b643e39060240160206040518083038186803b15801561037057600080fd5b505afa158015610384573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a89190610c64565b6103cd5760405162461bcd60e51b81526004016103c490610c86565b60405180910390fd5b6005546001146104145760405162461bcd60e51b815260206004820152601260248201527114ddd9595c1b919b1a5c0e881313d0d2d15160721b60448201526064016103c4565b60006005556104243383836106d6565b50506001600555565b6003546001600160a01b031633146104575760405162461bcd60e51b81526004016103c490610c86565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60035460405163e4b643e360e01b81523360048201526001600160a01b039091169063e4b643e39060240160206040518083038186803b1580156104c957600080fd5b505afa1580156104dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105019190610c64565b61051d5760405162461bcd60e51b81526004016103c490610c86565b6005546001146105645760405162461bcd60e51b815260206004820152601260248201527114ddd9595c1b919b1a5c0e881313d0d2d15160721b60448201526064016103c4565b6000600555610424338383610887565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6105e8670de0b6b3a764000082610cb5565b156106355760405162461bcd60e51b815260206004820152601a60248201527f53776565706e466c69703a205041525449414c5f414d4f554e5400000000000060448201526064016103c4565b6001600160a01b0383166000908152600160205260408120805483929061065d908490610c4d565b90915550506001600160a01b0382166000908152600160205260408120805483929061068a908490610cd7565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516105c991815260200190565b805160006106ec82670de0b6b3a7640000610cef565b6001600160a01b038616600090815260016020526040812080549293508392909190610719908490610c4d565b92505081905550806000808282546107319190610c4d565b90915550506040518181526000906001600160a01b038716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a360005b828110156108345760045484516001600160a01b03909116906323b872dd90309088908890869081106107af576107af610d0e565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561080957600080fd5b505af115801561081d573d6000803e3d6000fd5b50505050808061082c90610d24565b91505061077a565b50836001600160a01b0316856001600160a01b03167f1a9ecd79d4129de1f6144bf993d21f4a1803c25ad4040ae9571f25082792125e856040516108789190610d3f565b60405180910390a35050505050565b8051600061089d82670de0b6b3a7640000610cef565b9050806000808282546108b09190610cd7565b90915550506001600160a01b038416600090815260016020526040812080548392906108dd908490610cd7565b90915550506040518181526001600160a01b038516906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a360005b828110156109e05760045484516001600160a01b03909116906323b872dd908890309088908690811061095b5761095b610d0e565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156109b557600080fd5b505af11580156109c9573d6000803e3d6000fd5b5050505080806109d890610d24565b915050610926565b50836001600160a01b0316856001600160a01b03167ffd9359b77bedf90cc62dc5e65e71caac46edc3f206e575d895e753ae8f6e88ea856040516108789190610d3f565b600060208083528351808285015260005b81811015610a5157858101830151858201604001528201610a35565b81811115610a63576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610a9057600080fd5b919050565b60008060408385031215610aa857600080fd5b610ab183610a79565b946020939093013593505050565b600080600060608486031215610ad457600080fd5b610add84610a79565b9250610aeb60208501610a79565b9150604084013590509250925092565b600060208284031215610b0d57600080fd5b610b1682610a79565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610b4657600080fd5b610b4f83610a79565b915060208084013567ffffffffffffffff80821115610b6d57600080fd5b818601915086601f830112610b8157600080fd5b813581811115610b9357610b93610b1d565b8060051b604051601f19603f83011681018181108582111715610bb857610bb8610b1d565b604052918252848201925083810185019189831115610bd657600080fd5b938501935b82851015610bf457843584529385019392850192610bdb565b8096505050505050509250929050565b60008060408385031215610c1757600080fd5b610c2083610a79565b9150610c2e60208401610a79565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b600082821015610c5f57610c5f610c37565b500390565b600060208284031215610c7657600080fd5b81518015158114610b1657600080fd5b60208082526015908201527429bbb2b2b837233634b81d102327a92124a22222a760591b604082015260600190565b600082610cd257634e487b7160e01b600052601260045260246000fd5b500690565b60008219821115610cea57610cea610c37565b500190565b6000816000190483118215151615610d0957610d09610c37565b500290565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610d3857610d38610c37565b5060010190565b6020808252825182820181905260009190848201906040850190845b81811015610d7757835183529284019291840191600101610d5b565b5090969550505050505056fea264697066735822122065f9ecfcc407a1d269811cd7a37dffb6905ac971b6557f20a3611f94832d4afa64736f6c63430008090033