[ { "inputs": [ { "internalType": "address", "name": "_saleContract", "type": "address" } ], "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": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "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" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "approve", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "getApproved", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "getTokenPower", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "operator", "type": "address" } ], "name": "isApprovedForAll", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_power", "type": "uint256" }, { "internalType": "address", "name": "_to", "type": "address" } ], "name": "mint", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "nftDetailsById", "outputs": [ { "internalType": "uint256", "name": "power", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "safeTransferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "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": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "saleContract", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "bool", "name": "approved", "type": "bool" } ], "name": "setApprovalForAll", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "_uri", "type": "string" } ], "name": "setBaseURI", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "tokenByIndex", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "tokenOfOwnerByIndex", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "tokenURI", "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": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "transferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]
60806040523480156200001157600080fd5b5060405162001fd738038062001fd7833981016040819052620000349162000136565b604051806040016040528060048152602001634241594360e01b8152506040518060400160405280600e81526020016d10985e5b585e10db1d588813919560921b81525081600090816200008991906200020d565b5060016200009882826200020d565b505050620000b5620000af620000e060201b60201c565b620000e4565b6001600b55600e80546001600160a01b0319166001600160a01b0392909216919091179055620002d9565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156200014957600080fd5b81516001600160a01b03811681146200016157600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200019357607f821691505b602082108103620001b457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200020857600081815260208120601f850160051c81016020861015620001e35750805b601f850160051c820191505b818110156200020457828155600101620001ef565b5050505b505050565b81516001600160401b0381111562000229576200022962000168565b62000241816200023a84546200017e565b84620001ba565b602080601f831160018114620002795760008415620002605750858301515b600019600386901b1c1916600185901b17855562000204565b600085815260208120601f198616915b82811015620002aa5788860151825594840194600190910190840162000289565b5085821015620002c95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611cee80620002e96000396000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c8063715018a6116100e3578063b88d4fde1161008c578063df82eb8b11610066578063df82eb8b14610362578063e985e9c514610382578063f2fde38b146103be57600080fd5b8063b88d4fde14610329578063c87b56dd1461033c578063daf6ca301461034f57600080fd5b806394bf804d116100bd57806394bf804d146102fb57806395d89b411461030e578063a22cb4651461031657600080fd5b8063715018a6146102b157806387c5d832146102b95780638da5cb5b146102ea57600080fd5b80632f745c591161014557806355f804b31161011f57806355f804b3146102785780636352211e1461028b57806370a082311461029e57600080fd5b80632f745c591461023f57806342842e0e146102525780634f6ccce71461026557600080fd5b8063095ea7b311610176578063095ea7b31461020557806318160ddd1461021a57806323b872dd1461022c57600080fd5b806301ffc9a71461019d57806306fdde03146101c5578063081812fc146101da575b600080fd5b6101b06101ab366004611683565b6103d1565b60405190151581526020015b60405180910390f35b6101cd6103fc565b6040516101bc91906116f0565b6101ed6101e8366004611703565b61048e565b6040516001600160a01b0390911681526020016101bc565b610218610213366004611738565b6104b5565b005b6008545b6040519081526020016101bc565b61021861023a366004611762565b6105cf565b61021e61024d366004611738565b610600565b610218610260366004611762565b610696565b61021e610273366004611703565b6106b1565b61021861028636600461182a565b610744565b6101ed610299366004611703565b61075c565b61021e6102ac366004611873565b6107bc565b610218610842565b61021e6102c7366004611703565b6000908152600d6020908152604091829020825191820190925290549081905290565b600a546001600160a01b03166101ed565b61021e61030936600461188e565b610856565b6101cd61090e565b6102186103243660046118ba565b61091d565b6102186103373660046118f6565b610928565b6101cd61034a366004611703565b610960565b600e546101ed906001600160a01b031681565b61021e610370366004611703565b600d6020526000908152604090205481565b6101b0610390366004611972565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102186103cc366004611873565b6109c6565b60006001600160e01b0319821663780e9d6360e01b14806103f657506103f682610a3f565b92915050565b60606000805461040b9061199c565b80601f01602080910402602001604051908101604052809291908181526020018280546104379061199c565b80156104845780601f1061045957610100808354040283529160200191610484565b820191906000526020600020905b81548152906001019060200180831161046757829003601f168201915b5050505050905090565b600061049982610a8f565b506000908152600460205260409020546001600160a01b031690565b60006104c08261075c565b9050806001600160a01b0316836001600160a01b0316036105325760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061054e575061054e8133610390565b6105c05760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610529565b6105ca8383610aee565b505050565b6105d93382610b5c565b6105f55760405162461bcd60e51b8152600401610529906119d6565b6105ca838383610bdb565b600061060b836107bc565b821061066d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610529565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6105ca83838360405180602001604052806000815250610928565b60006106bc60085490565b821061071f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610529565b6008828154811061073257610732611a23565b90600052602060002001549050919050565b61074c610d4c565b600c6107588282611a87565b5050565b6000818152600260205260408120546001600160a01b0316806103f65760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610529565b60006001600160a01b0382166108265760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610529565b506001600160a01b031660009081526003602052604090205490565b61084a610d4c565b6108546000610da6565b565b600e546000906001600160a01b031633146108c55760405162461bcd60e51b815260206004820152602960248201527f4261796d61784e46543a2063616c6c6572206973206e6f74207468652073616c6044820152681950dbdb9d1c9858dd60ba1b6064820152608401610529565b60006108d060085490565b6108db906001611b5d565b60408051602080820183528782526000848152600d909152919091209051905590506109078382610df8565b9392505050565b60606001805461040b9061199c565b610758338383610f91565b6109323383610b5c565b61094e5760405162461bcd60e51b8152600401610529906119d6565b61095a8484848461105f565b50505050565b606061096b82610a8f565b6000610975611092565b905060008151116109955760405180602001604052806000815250610907565b8061099f846110a1565b6040516020016109b0929190611b70565b6040516020818303038152906040529392505050565b6109ce610d4c565b6001600160a01b038116610a335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610529565b610a3c81610da6565b50565b60006001600160e01b031982166380ac58cd60e01b1480610a7057506001600160e01b03198216635b5e139f60e01b145b806103f657506301ffc9a760e01b6001600160e01b03198316146103f6565b6000818152600260205260409020546001600160a01b0316610a3c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610529565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610b238261075c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610b688361075c565b9050806001600160a01b0316846001600160a01b03161480610baf57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610bd35750836001600160a01b0316610bc88461048e565b6001600160a01b0316145b949350505050565b826001600160a01b0316610bee8261075c565b6001600160a01b031614610c145760405162461bcd60e51b815260040161052990611b9f565b6001600160a01b038216610c765760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610529565b610c838383836001611134565b826001600160a01b0316610c968261075c565b6001600160a01b031614610cbc5760405162461bcd60e51b815260040161052990611b9f565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a546001600160a01b031633146108545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610529565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216610e4e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610529565b6000818152600260205260409020546001600160a01b031615610eb35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610529565b610ec1600083836001611134565b6000818152600260205260409020546001600160a01b031615610f265760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610529565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031603610ff25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610529565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61106a848484610bdb565b6110768484848461127c565b61095a5760405162461bcd60e51b815260040161052990611be4565b6060600c805461040b9061199c565b606060006110ae8361137d565b600101905060008167ffffffffffffffff8111156110ce576110ce61179e565b6040519080825280601f01601f1916602001820160405280156110f8576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461110257509392505050565b61114084848484611455565b60018111156111b75760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f7274656400000000000000000000006064820152608401610529565b816001600160a01b0385166112135761120e81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611236565b836001600160a01b0316856001600160a01b0316146112365761123685826114dd565b6001600160a01b0384166112525761124d8161157a565b611275565b846001600160a01b0316846001600160a01b031614611275576112758482611629565b5050505050565b60006001600160a01b0384163b1561137257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906112c0903390899088908890600401611c36565b6020604051808303816000875af19250505080156112fb575060408051601f3d908101601f191682019092526112f891810190611c72565b60015b611358573d808015611329576040519150601f19603f3d011682016040523d82523d6000602084013e61132e565b606091505b5080516000036113505760405162461bcd60e51b815260040161052990611be4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610bd3565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106113bc5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106113e8576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061140657662386f26fc10000830492506010015b6305f5e100831061141e576305f5e100830492506008015b612710831061143257612710830492506004015b60648310611444576064830492506002015b600a83106103f65760010192915050565b600181111561095a576001600160a01b0384161561149b576001600160a01b03841660009081526003602052604081208054839290611495908490611c8f565b90915550505b6001600160a01b0383161561095a576001600160a01b038316600090815260036020526040812080548392906114d2908490611b5d565b909155505050505050565b600060016114ea846107bc565b6114f49190611c8f565b600083815260076020526040902054909150808214611547576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061158c90600190611c8f565b600083815260096020526040812054600880549394509092849081106115b4576115b4611a23565b9060005260206000200154905080600883815481106115d5576115d5611a23565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061160d5761160d611ca2565b6001900381819060005260206000200160009055905550505050565b6000611634836107bc565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b031981168114610a3c57600080fd5b60006020828403121561169557600080fd5b81356109078161166d565b60005b838110156116bb5781810151838201526020016116a3565b50506000910152565b600081518084526116dc8160208601602086016116a0565b601f01601f19169290920160200192915050565b60208152600061090760208301846116c4565b60006020828403121561171557600080fd5b5035919050565b80356001600160a01b038116811461173357600080fd5b919050565b6000806040838503121561174b57600080fd5b6117548361171c565b946020939093013593505050565b60008060006060848603121561177757600080fd5b6117808461171c565b925061178e6020850161171c565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156117cf576117cf61179e565b604051601f8501601f19908116603f011681019082821181831017156117f7576117f761179e565b8160405280935085815286868601111561181057600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561183c57600080fd5b813567ffffffffffffffff81111561185357600080fd5b8201601f8101841361186457600080fd5b610bd3848235602084016117b4565b60006020828403121561188557600080fd5b6109078261171c565b600080604083850312156118a157600080fd5b823591506118b16020840161171c565b90509250929050565b600080604083850312156118cd57600080fd5b6118d68361171c565b9150602083013580151581146118eb57600080fd5b809150509250929050565b6000806000806080858703121561190c57600080fd5b6119158561171c565b93506119236020860161171c565b925060408501359150606085013567ffffffffffffffff81111561194657600080fd5b8501601f8101871361195757600080fd5b611966878235602084016117b4565b91505092959194509250565b6000806040838503121561198557600080fd5b61198e8361171c565b91506118b16020840161171c565b600181811c908216806119b057607f821691505b6020821081036119d057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b601f8211156105ca57600081815260208120601f850160051c81016020861015611a605750805b601f850160051c820191505b81811015611a7f57828155600101611a6c565b505050505050565b815167ffffffffffffffff811115611aa157611aa161179e565b611ab581611aaf845461199c565b84611a39565b602080601f831160018114611aea5760008415611ad25750858301515b600019600386901b1c1916600185901b178555611a7f565b600085815260208120601f198616915b82811015611b1957888601518255948401946001909101908401611afa565b5085821015611b375787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808201808211156103f6576103f6611b47565b60008351611b828184602088016116a0565b835190830190611b968183602088016116a0565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152611c6860808301846116c4565b9695505050505050565b600060208284031215611c8457600080fd5b81516109078161166d565b818103818111156103f6576103f6611b47565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220ee43ada21db5bd344a1c884f84e0b0ae16d4d756761d95759159ba84c6ad021564736f6c63430008100033000000000000000000000000cabd42ca62a0dfeb99c179848124061d613a0ddd
Loading