Address Contract Partially Verified
Address
0xCF3586d2437244c83DF9A569D94c840451e7fb1D
Balance
0 ETH
Nonce
1
Code Size
19015 bytes
Creator
0xfCd89550...11cc at tx 0x7a011d1b...8f39cc
Indexed Transactions
0
Contract Bytecode
19015 bytes
0x6080604052600436106102255760003560e01c8063715018a611610123578063b88d4fde116100ab578063d223a6311161006f578063d223a631146107e6578063e985e9c51461080f578063f2c4ce1e1461084c578063f2fde38b14610875578063f43a22dc1461089e57610225565b8063b88d4fde14610701578063c66828621461072a578063c6f6f21614610755578063c87b56dd1461077e578063cd7c0326146107bb57610225565b8063940cd05b116100f2578063940cd05b1461063d57806395d89b4114610666578063a035b1fe14610691578063a0712d68146106bc578063a22cb465146106d857610225565b8063715018a6146105a75780638069876d146105be5780638da5cb5b146105e957806391b7f5ed1461061457610225565b806332cb6b0c116101b157806355f804b31161017557806355f804b3146104b05780635c975abb146104d95780636352211e146105045780636f8b44b01461054157806370a082311461056a57610225565b806332cb6b0c146103dd5780633ccfd60b1461040857806342842e0e1461041f5780634f6ccce714610448578063518302271461048557610225565b8063081c8c44116101f8578063081c8c44146102f8578063095ea7b31461032357806318160ddd1461034c57806323b872dd146103775780632f745c59146103a057610225565b806301ffc9a71461022a57806302329a291461026757806306fdde0314610290578063081812fc146102bb575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c919061348d565b6108c9565b60405161025e9190613af1565b60405180910390f35b34801561027357600080fd5b5061028e60048036038101906102899190613460565b610a13565b005b34801561029c57600080fd5b506102a5610aac565b6040516102b29190613b0c565b60405180910390f35b3480156102c757600080fd5b506102e260048036038101906102dd919061355d565b610b3e565b6040516102ef9190613a8a565b60405180910390f35b34801561030457600080fd5b5061030d610bc3565b60405161031a9190613b0c565b60405180910390f35b34801561032f57600080fd5b5061034a60048036038101906103459190613420565b610c51565b005b34801561035857600080fd5b50610361610d6a565b60405161036e9190613e2e565b60405180910390f35b34801561038357600080fd5b5061039e6004803603810190610399919061330a565b610d73565b005b3480156103ac57600080fd5b506103c760048036038101906103c29190613420565b610d83565b6040516103d49190613e2e565b60405180910390f35b3480156103e957600080fd5b506103f2610f81565b6040516103ff9190613e2e565b60405180910390f35b34801561041457600080fd5b5061041d610f87565b005b34801561042b57600080fd5b506104466004803603810190610441919061330a565b61107c565b005b34801561045457600080fd5b5061046f600480360381019061046a919061355d565b61109c565b60405161047c9190613e2e565b60405180910390f35b34801561049157600080fd5b5061049a6110ef565b6040516104a79190613af1565b60405180910390f35b3480156104bc57600080fd5b506104d760048036038101906104d29190613514565b611102565b005b3480156104e557600080fd5b506104ee611198565b6040516104fb9190613af1565b60405180910390f35b34801561051057600080fd5b5061052b6004803603810190610526919061355d565b6111ab565b6040516105389190613a8a565b60405180910390f35b34801561054d57600080fd5b506105686004803603810190610563919061355d565b6111c1565b005b34801561057657600080fd5b50610591600480360381019061058c919061329d565b611247565b60405161059e9190613e2e565b60405180910390f35b3480156105b357600080fd5b506105bc611330565b005b3480156105ca57600080fd5b506105d36113b8565b6040516105e09190613e2e565b60405180910390f35b3480156105f557600080fd5b506105fe6113be565b60405161060b9190613a8a565b60405180910390f35b34801561062057600080fd5b5061063b6004803603810190610636919061355d565b6113e8565b005b34801561064957600080fd5b50610664600480360381019061065f9190613460565b61146e565b005b34801561067257600080fd5b5061067b611507565b6040516106889190613b0c565b60405180910390f35b34801561069d57600080fd5b506106a6611599565b6040516106b39190613e2e565b60405180910390f35b6106d660048036038101906106d1919061355d565b61159f565b005b3480156106e457600080fd5b506106ff60048036038101906106fa91906133e0565b611791565b005b34801561070d57600080fd5b506107286004803603810190610723919061335d565b611912565b005b34801561073657600080fd5b5061073f61196e565b60405161074c9190613b0c565b60405180910390f35b34801561076157600080fd5b5061077c6004803603810190610777919061355d565b6119a7565b005b34801561078a57600080fd5b506107a560048036038101906107a0919061355d565b611a2d565b6040516107b29190613b0c565b60405180910390f35b3480156107c757600080fd5b506107d0611bbb565b6040516107dd9190613a8a565b60405180910390f35b3480156107f257600080fd5b5061080d6004803603810190610808919061355d565b611bd3565b005b34801561081b57600080fd5b50610836600480360381019061083191906132ca565b611c59565b6040516108439190613af1565b60405180910390f35b34801561085857600080fd5b50610873600480360381019061086e9190613514565b611d4d565b005b34801561088157600080fd5b5061089c6004803603810190610897919061329d565b611de3565b005b3480156108aa57600080fd5b506108b3611edb565b6040516108c09190613e2e565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109fc57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a0c5750610a0b82611ee1565b5b9050919050565b610a1b611f4b565b73ffffffffffffffffffffffffffffffffffffffff16610a396113be565b73ffffffffffffffffffffffffffffffffffffffff1614610a8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8690613cae565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b606060018054610abb9061419c565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae79061419c565b8015610b345780601f10610b0957610100808354040283529160200191610b34565b820191906000526020600020905b815481529060010190602001808311610b1757829003601f168201915b5050505050905090565b6000610b4982611f53565b610b88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7f90613e0e565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60098054610bd09061419c565b80601f0160208091040260200160405190810160405280929190818152602001828054610bfc9061419c565b8015610c495780601f10610c1e57610100808354040283529160200191610c49565b820191906000526020600020905b815481529060010190602001808311610c2c57829003601f168201915b505050505081565b6000610c5c826111ab565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ccd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc490613d2e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cec611f4b565b73ffffffffffffffffffffffffffffffffffffffff161480610d1b5750610d1a81610d15611f4b565b611c59565b5b610d5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5190613c0e565b60405180910390fd5b610d65838383611f60565b505050565b60008054905090565b610d7e838383612012565b505050565b6000610d8e83611247565b8210610dcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc690613b2e565b60405180910390fd5b6000610dd9610d6a565b905060008060005b83811015610f3f576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610ed357806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f2b5786841415610f1c578195505050505050610f7b565b8380610f27906141ff565b9450505b508080610f37906141ff565b915050610de1565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7290613dee565b60405180910390fd5b92915050565b600b5481565b610f8f611f4b565b73ffffffffffffffffffffffffffffffffffffffff16610fad6113be565b73ffffffffffffffffffffffffffffffffffffffff1614611003576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffa90613cae565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff164760405161102990613a75565b60006040518083038185875af1925050503d8060008114611066576040519150601f19603f3d011682016040523d82523d6000602084013e61106b565b606091505b505090508061107957600080fd5b50565b61109783838360405180602001604052806000815250611912565b505050565b60006110a6610d6a565b82106110e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110de90613bce565b60405180910390fd5b819050919050565b600e60019054906101000a900460ff1681565b61110a611f4b565b73ffffffffffffffffffffffffffffffffffffffff166111286113be565b73ffffffffffffffffffffffffffffffffffffffff161461117e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117590613cae565b60405180910390fd5b8060089080519060200190611194929190613062565b5050565b600e60009054906101000a900460ff1681565b60006111b6826125b9565b600001519050919050565b6111c9611f4b565b73ffffffffffffffffffffffffffffffffffffffff166111e76113be565b73ffffffffffffffffffffffffffffffffffffffff161461123d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123490613cae565b60405180910390fd5b80600b8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112af90613c4e565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611338611f4b565b73ffffffffffffffffffffffffffffffffffffffff166113566113be565b73ffffffffffffffffffffffffffffffffffffffff16146113ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a390613cae565b60405180910390fd5b6113b66000612714565b565b600c5481565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6113f0611f4b565b73ffffffffffffffffffffffffffffffffffffffff1661140e6113be565b73ffffffffffffffffffffffffffffffffffffffff1614611464576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145b90613cae565b60405180910390fd5b80600a8190555050565b611476611f4b565b73ffffffffffffffffffffffffffffffffffffffff166114946113be565b73ffffffffffffffffffffffffffffffffffffffff16146114ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e190613cae565b60405180910390fd5b80600e60016101000a81548160ff02191690831515021790555050565b6060600280546115169061419c565b80601f01602080910402602001604051908101604052809291908181526020018280546115429061419c565b801561158f5780601f106115645761010080835404028352916020019161158f565b820191906000526020600020905b81548152906001019060200180831161157257829003601f168201915b5050505050905090565b600a5481565b600e60009054906101000a900460ff16156115ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e690613b4e565b60405180910390fd5b806115f8610d6a565b6116029190613f79565b600b541015611646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163d90613c2e565b60405180910390fd5b60008111611689576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168090613bae565b60405180910390fd5b80611692610d6a565b61169c9190613f79565b600c54106116ee5780600d5410156116e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e090613d4e565b60405180910390fd5b611784565b80600d541015611733576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172a90613d4e565b60405180910390fd5b600a54816117419190614000565b341015611783576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177a90613d0e565b60405180910390fd5b5b61178e33826127da565b50565b611799611f4b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611807576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fe90613cce565b60405180910390fd5b8060066000611814611f4b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118c1611f4b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119069190613af1565b60405180910390a35050565b61191d848484612012565b611929848484846127f8565b611968576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195f90613d8e565b60405180910390fd5b50505050565b6040518060400160405280600581526020017f2e6a736f6e00000000000000000000000000000000000000000000000000000081525081565b6119af611f4b565b73ffffffffffffffffffffffffffffffffffffffff166119cd6113be565b73ffffffffffffffffffffffffffffffffffffffff1614611a23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1a90613cae565b60405180910390fd5b80600d8190555050565b6060611a3882611f53565b611a77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6e90613c6e565b60405180910390fd5b60001515600e60019054906101000a900460ff1615151415611b255760098054611aa09061419c565b80601f0160208091040260200160405190810160405280929190818152602001828054611acc9061419c565b8015611b195780601f10611aee57610100808354040283529160200191611b19565b820191906000526020600020905b815481529060010190602001808311611afc57829003601f168201915b50505050509050611bb6565b600060088054611b349061419c565b905011611b505760405180602001604052806000815250611bb3565b6008611b5b8361298f565b6040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250604051602001611ba393929190613a44565b6040516020818303038152906040525b90505b919050565b73a5409ec958c83c3f309868babaca7c86dcb077c181565b611bdb611f4b565b73ffffffffffffffffffffffffffffffffffffffff16611bf96113be565b73ffffffffffffffffffffffffffffffffffffffff1614611c4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4690613cae565b60405180910390fd5b80600c8190555050565b60008073a5409ec958c83c3f309868babaca7c86dcb077c190508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401611cc39190613a8a565b60206040518083038186803b158015611cdb57600080fd5b505afa158015611cef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d1391906134e7565b73ffffffffffffffffffffffffffffffffffffffff161415611d39576001915050611d47565b611d438484612af0565b9150505b92915050565b611d55611f4b565b73ffffffffffffffffffffffffffffffffffffffff16611d736113be565b73ffffffffffffffffffffffffffffffffffffffff1614611dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc090613cae565b60405180910390fd5b8060099080519060200190611ddf929190613062565b5050565b611deb611f4b565b73ffffffffffffffffffffffffffffffffffffffff16611e096113be565b73ffffffffffffffffffffffffffffffffffffffff1614611e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5690613cae565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ecf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec690613b6e565b60405180910390fd5b611ed881612714565b50565b600d5481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6000805482109050919050565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600061201d826125b9565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612044611f4b565b73ffffffffffffffffffffffffffffffffffffffff1614806120a05750612069611f4b565b73ffffffffffffffffffffffffffffffffffffffff1661208884610b3e565b73ffffffffffffffffffffffffffffffffffffffff16145b806120bc57506120bb82600001516120b6611f4b565b611c59565b5b9050806120fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f590613cee565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216790613c8e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156121e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d790613bee565b60405180910390fd5b6121ed8585856001612b84565b6121fd6000848460000151611f60565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555090505060006001846124039190613f79565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156125495761247981611f53565b15612548576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125b18686866001612b8a565b505050505050565b6125c16130e8565b6125ca82611f53565b612609576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260090613b8e565b60405180910390fd5b60008290505b6000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146126fb57809250505061270f565b50808061270790614172565b91505061260f565b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6127f4828260405180602001604052806000815250612b90565b5050565b60006128198473ffffffffffffffffffffffffffffffffffffffff1661304f565b15612982578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612842611f4b565b8786866040518563ffffffff1660e01b81526004016128649493929190613aa5565b602060405180830381600087803b15801561287e57600080fd5b505af19250505080156128af57506040513d601f19601f820116820180604052508101906128ac91906134ba565b60015b612932573d80600081146128df576040519150601f19603f3d011682016040523d82523d6000602084013e6128e4565b606091505b5060008151141561292a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292190613d8e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612987565b600190505b949350505050565b606060008214156129d7576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612aeb565b600082905060005b60008214612a095780806129f2906141ff565b915050600a82612a029190613fcf565b91506129df565b60008167ffffffffffffffff811115612a2557612a24614335565b5b6040519080825280601f01601f191660200182016040528015612a575781602001600182028036833780820191505090505b5090505b60008514612ae457600182612a70919061405a565b9150600a85612a7f9190614248565b6030612a8b9190613f79565b60f81b818381518110612aa157612aa0614306565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612add9190613fcf565b9450612a5b565b8093505050505b919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612c06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfd90613dce565b60405180910390fd5b612c0f81611f53565b15612c4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4690613dae565b60405180910390fd5b60008311612c92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8990613d6e565b60405180910390fd5b612c9f6000858386612b84565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152505090506040518060400160405280858360000151612d9c9190613f33565b6fffffffffffffffffffffffffffffffff168152602001858360200151612dc39190613f33565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b8581101561303257818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612fd260008884886127f8565b613011576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300890613d8e565b60405180910390fd5b818061301c906141ff565b925050808061302a906141ff565b915050612f61565b50806000819055506130476000878588612b8a565b505050505050565b600080823b905060008111915050919050565b82805461306e9061419c565b90600052602060002090601f01602090048101928261309057600085556130d7565b82601f106130a957805160ff19168380011785556130d7565b828001600101855582156130d7579182015b828111156130d65782518255916020019190600101906130bb565b5b5090506130e49190613122565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b8082111561313b576000816000905550600101613123565b5090565b600061315261314d84613e6e565b613e49565b90508281526020810184848401111561316e5761316d614369565b5b613179848285614130565b509392505050565b600061319461318f84613e9f565b613e49565b9050828152602081018484840111156131b0576131af614369565b5b6131bb848285614130565b509392505050565b6000813590506131d28161499e565b92915050565b6000813590506131e7816149b5565b92915050565b6000813590506131fc816149cc565b92915050565b600081519050613211816149cc565b92915050565b600082601f83011261322c5761322b614364565b5b813561323c84826020860161313f565b91505092915050565b600081519050613254816149e3565b92915050565b600082601f83011261326f5761326e614364565b5b813561327f848260208601613181565b91505092915050565b600081359050613297816149fa565b92915050565b6000602082840312156132b3576132b2614373565b5b60006132c1848285016131c3565b91505092915050565b600080604083850312156132e1576132e0614373565b5b60006132ef858286016131c3565b9250506020613300858286016131c3565b9150509250929050565b60008060006060848603121561332357613322614373565b5b6000613331868287016131c3565b9350506020613342868287016131c3565b925050604061335386828701613288565b9150509250925092565b6000806000806080858703121561337757613376614373565b5b6000613385878288016131c3565b9450506020613396878288016131c3565b93505060406133a787828801613288565b925050606085013567ffffffffffffffff8111156133c8576133c761436e565b5b6133d487828801613217565b91505092959194509250565b600080604083850312156133f7576133f6614373565b5b6000613405858286016131c3565b9250506020613416858286016131d8565b9150509250929050565b6000806040838503121561343757613436614373565b5b6000613445858286016131c3565b925050602061345685828601613288565b9150509250929050565b60006020828403121561347657613475614373565b5b6000613484848285016131d8565b91505092915050565b6000602082840312156134a3576134a2614373565b5b60006134b1848285016131ed565b91505092915050565b6000602082840312156134d0576134cf614373565b5b60006134de84828501613202565b91505092915050565b6000602082840312156134fd576134fc614373565b5b600061350b84828501613245565b91505092915050565b60006020828403121561352a57613529614373565b5b600082013567ffffffffffffffff8111156135485761354761436e565b5b6135548482850161325a565b91505092915050565b60006020828403121561357357613572614373565b5b600061358184828501613288565b91505092915050565b6135938161408e565b82525050565b6135a2816140a0565b82525050565b60006135b382613ee5565b6135bd8185613efb565b93506135cd81856020860161413f565b6135d681614378565b840191505092915050565b60006135ec82613ef0565b6135f68185613f17565b935061360681856020860161413f565b61360f81614378565b840191505092915050565b600061362582613ef0565b61362f8185613f28565b935061363f81856020860161413f565b80840191505092915050565b600081546136588161419c565b6136628186613f28565b9450600182166000811461367d576001811461368e576136c1565b60ff198316865281860193506136c1565b61369785613ed0565b60005b838110156136b95781548189015260018201915060208101905061369a565b838801955050505b50505092915050565b60006136d7602283613f17565b91506136e282614389565b604082019050919050565b60006136fa600683613f17565b9150613705826143d8565b602082019050919050565b600061371d602683613f17565b915061372882614401565b604082019050919050565b6000613740602a83613f17565b915061374b82614450565b604082019050919050565b6000613763600a83613f17565b915061376e8261449f565b602082019050919050565b6000613786602383613f17565b9150613791826144c8565b604082019050919050565b60006137a9602583613f17565b91506137b482614517565b604082019050919050565b60006137cc603983613f17565b91506137d782614566565b604082019050919050565b60006137ef601283613f17565b91506137fa826145b5565b602082019050919050565b6000613812602b83613f17565b915061381d826145de565b604082019050919050565b6000613835601583613f17565b91506138408261462d565b602082019050919050565b6000613858602683613f17565b915061386382614656565b604082019050919050565b600061387b602083613f17565b9150613886826146a5565b602082019050919050565b600061389e601a83613f17565b91506138a9826146ce565b602082019050919050565b60006138c1603283613f17565b91506138cc826146f7565b604082019050919050565b60006138e4601683613f17565b91506138ef82614746565b602082019050919050565b6000613907602283613f17565b91506139128261476f565b604082019050919050565b600061392a601b83613f17565b9150613935826147be565b602082019050919050565b600061394d600083613f0c565b9150613958826147e7565b600082019050919050565b6000613970602383613f17565b915061397b826147ea565b604082019050919050565b6000613993603383613f17565b915061399e82614839565b604082019050919050565b60006139b6601d83613f17565b91506139c182614888565b602082019050919050565b60006139d9602183613f17565b91506139e4826148b1565b604082019050919050565b60006139fc602e83613f17565b9150613a0782614900565b604082019050919050565b6000613a1f602d83613f17565b9150613a2a8261494f565b604082019050919050565b613a3e81614126565b82525050565b6000613a50828661364b565b9150613a5c828561361a565b9150613a68828461361a565b9150819050949350505050565b6000613a8082613940565b9150819050919050565b6000602082019050613a9f600083018461358a565b92915050565b6000608082019050613aba600083018761358a565b613ac7602083018661358a565b613ad46040830185613a35565b8181036060830152613ae681846135a8565b905095945050505050565b6000602082019050613b066000830184613599565b92915050565b60006020820190508181036000830152613b2681846135e1565b905092915050565b60006020820190508181036000830152613b47816136ca565b9050919050565b60006020820190508181036000830152613b67816136ed565b9050919050565b60006020820190508181036000830152613b8781613710565b9050919050565b60006020820190508181036000830152613ba781613733565b9050919050565b60006020820190508181036000830152613bc781613756565b9050919050565b60006020820190508181036000830152613be781613779565b9050919050565b60006020820190508181036000830152613c078161379c565b9050919050565b60006020820190508181036000830152613c27816137bf565b9050919050565b60006020820190508181036000830152613c47816137e2565b9050919050565b60006020820190508181036000830152613c6781613805565b9050919050565b60006020820190508181036000830152613c8781613828565b9050919050565b60006020820190508181036000830152613ca78161384b565b9050919050565b60006020820190508181036000830152613cc78161386e565b9050919050565b60006020820190508181036000830152613ce781613891565b9050919050565b60006020820190508181036000830152613d07816138b4565b9050919050565b60006020820190508181036000830152613d27816138d7565b9050919050565b60006020820190508181036000830152613d47816138fa565b9050919050565b60006020820190508181036000830152613d678161391d565b9050919050565b60006020820190508181036000830152613d8781613963565b9050919050565b60006020820190508181036000830152613da781613986565b9050919050565b60006020820190508181036000830152613dc7816139a9565b9050919050565b60006020820190508181036000830152613de7816139cc565b9050919050565b60006020820190508181036000830152613e07816139ef565b9050919050565b60006020820190508181036000830152613e2781613a12565b9050919050565b6000602082019050613e436000830184613a35565b92915050565b6000613e53613e64565b9050613e5f82826141ce565b919050565b6000604051905090565b600067ffffffffffffffff821115613e8957613e88614335565b5b613e9282614378565b9050602081019050919050565b600067ffffffffffffffff821115613eba57613eb9614335565b5b613ec382614378565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613f3e826140ea565b9150613f49836140ea565b9250826fffffffffffffffffffffffffffffffff03821115613f6e57613f6d614279565b5b828201905092915050565b6000613f8482614126565b9150613f8f83614126565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613fc457613fc3614279565b5b828201905092915050565b6000613fda82614126565b9150613fe583614126565b925082613ff557613ff46142a8565b5b828204905092915050565b600061400b82614126565b915061401683614126565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561404f5761404e614279565b5b828202905092915050565b600061406582614126565b915061407083614126565b92508282101561408357614082614279565b5b828203905092915050565b600061409982614106565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006140e38261408e565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561415d578082015181840152602081019050614142565b8381111561416c576000848401525b50505050565b600061417d82614126565b9150600082141561419157614190614279565b5b600182039050919050565b600060028204905060018216806141b457607f821691505b602082108114156141c8576141c76142d7565b5b50919050565b6141d782614378565b810181811067ffffffffffffffff821117156141f6576141f5614335565b5b80604052505050565b600061420a82614126565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561423d5761423c614279565b5b600182019050919050565b600061425382614126565b915061425e83614126565b92508261426e5761426d6142a8565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f5061757365640000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b7f4e6f2030206d696e747300000000000000000000000000000000000000000000600082015250565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f546f6b656e20646f6573206e6f742065786973742e0000000000000000000000600082015250565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f496e76616c69642066756e64732070726f766964656400000000000000000000600082015250565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b7f45786365656473206d617820706572207472616e73616374696f6e0000000000600082015250565b50565b7f455243373231413a207175616e74697479206d7573742062652067726561746560008201527f7220300000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6149a78161408e565b81146149b257600080fd5b50565b6149be816140a0565b81146149c957600080fd5b50565b6149d5816140ac565b81146149e057600080fd5b50565b6149ec816140d8565b81146149f757600080fd5b50565b614a0381614126565b8114614a0e57600080fd5b5056fea264697066735822122082f67c506f5255f14dc9370fe5a32627c023c27d7d3ff1b7580db35b822714a364736f6c63430008070033
Verified Source Code Partial Match
Compiler: v0.8.7+commit.e28d00a7
EVM: london
Optimization: No
MutantOkayAzukis.sol 856 lines
// File @openzeppelin/contracts/utils/[email protected] // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor() { _transferOwnership(_msgSender()); } function owner() public view virtual returns (address) { return _owner; } modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); _transferOwnership(newOwner); } function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; function toString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } interface IERC165 { function supportsInterface(bytes4 interfaceId) external view returns (bool); } interface IERC721 is IERC165 { event Transfer( address indexed from, address indexed to, uint256 indexed tokenId ); event Approval( address indexed owner, address indexed approved, uint256 indexed tokenId ); event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); function balanceOf(address owner) external view returns (uint256 balance); function ownerOf(uint256 tokenId) external view returns (address owner); function safeTransferFrom( address from, address to, uint256 tokenId ) external; function transferFrom( address from, address to, uint256 tokenId ) external; function approve(address to, uint256 tokenId) external; function getApproved(uint256 tokenId) external view returns (address operator); function setApprovalForAll(address operator, bool _approved) external; function isApprovedForAll(address owner, address operator) external view returns (bool); function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } interface IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } interface IERC721Metadata is IERC721 { function name() external view returns (string memory); function symbol() external view returns (string memory); function tokenURI(uint256 tokenId) external view returns (string memory); } interface IERC721Enumerable is IERC721 { function totalSupply() external view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); function tokenByIndex(uint256 index) external view returns (uint256); } library Address { function isContract(address account) internal view returns (bool) { uint256 size; assembly { size := extcodesize(account) } return size > 0; } function sendValue(address payable recipient, uint256 amount) internal { require( address(this).balance >= amount, "Address: insufficient balance" ); (bool success, ) = recipient.call{value: amount}(""); require( success, "Address: unable to send value, recipient may have reverted" ); } function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, "Address: low-level call with value failed" ); } function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require( address(this).balance >= value, "Address: insufficient balance for call" ); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}( data ); return verifyCallResult(success, returndata, errorMessage); } function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall( target, data, "Address: low-level static call failed" ); } function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall( target, data, "Address: low-level delegate call failed" ); } function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { if (returndata.length > 0) { assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } abstract contract ERC165 is IERC165 { function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 internal currentIndex = 0; string private _name; string private _symbol; mapping(uint256 => TokenOwnership) internal _ownerships; mapping(address => AddressData) private _addressData; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } function totalSupply() public view override returns (uint256) { return currentIndex; } function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } function balanceOf(address owner) public view override returns (uint256) { require( owner != address(0), "ERC721A: balance query for the zero address" ); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); for (uint256 curr = tokenId; ; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } function _baseURI() internal view virtual returns (string memory) { return ""; } function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } function getApproved(uint256 tokenId) public view override returns (address) { require( _exists(tokenId), "ERC721A: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity > 0, "ERC721A: quantity must be greater 0"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); _approve(address(0), tokenId, prevOwnership.addr); unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; } _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721A: transfer to non ERC721Receiver implementer" ); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} } contract MutantOkayAzukis is ERC721A, Ownable { string public constant baseExtension = ".json"; address public constant proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1; string baseURI; string public notRevealedUri; uint256 public price = 0.002 ether; uint256 public MAX_SUPPLY = 10000; uint256 public FREE_MAX_SUPPLY = 1000; uint256 public MAX_PER_TX = 10; bool public paused = true; bool public revealed = true; constructor( string memory _initBaseURI, string memory _initNotRevealedUri ) ERC721A("Mutant Okay Azukis", "MOA") { setBaseURI(_initBaseURI); setNotRevealedURI(_initNotRevealedUri); } function mint(uint256 _amount) public payable { require(!paused, "Paused"); require(MAX_SUPPLY >= totalSupply() + _amount, "Exceeds max supply"); require(_amount > 0, "No 0 mints"); if (FREE_MAX_SUPPLY >= totalSupply() + _amount) { require(MAX_PER_TX >= _amount, "Exceeds max per transaction"); } else { require(MAX_PER_TX >= _amount, "Exceeds max per transaction"); require(msg.value >= _amount * price, "Invalid funds provided"); } _safeMint(msg.sender, _amount); } function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } function withdraw() public onlyOwner { (bool success, ) = payable(msg.sender).call{ value: address(this).balance }(""); require(success); } function pause(bool _state) public onlyOwner { paused = _state; } function reveal(bool _state) public onlyOwner { revealed = _state; } function setPrice(uint256 _newPrice) public onlyOwner { price = _newPrice; } function setMaxSupply(uint256 _newMaxSupply) public onlyOwner { MAX_SUPPLY = _newMaxSupply; } function setFreeMaxSupply(uint256 _newFreeMaxSupply) public onlyOwner { FREE_MAX_SUPPLY = _newFreeMaxSupply; } function setMaxPerTx(uint256 _newMaxPerTx) public onlyOwner { MAX_PER_TX = _newMaxPerTx; } function setBaseURI(string memory baseURI_) public onlyOwner { baseURI = baseURI_; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId), "Token does not exist."); if (revealed == false) { return notRevealedUri; } return bytes(baseURI).length > 0 ? string( abi.encodePacked( baseURI, Strings.toString(_tokenId), baseExtension ) ) : ""; } } contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
Read Contract
FREE_MAX_SUPPLY 0x8069876d → uint256
MAX_PER_TX 0xf43a22dc → uint256
MAX_SUPPLY 0x32cb6b0c → uint256
balanceOf 0x70a08231 → uint256
baseExtension 0xc6682862 → string
getApproved 0x081812fc → address
isApprovedForAll 0xe985e9c5 → bool
name 0x06fdde03 → string
notRevealedUri 0x081c8c44 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
price 0xa035b1fe → uint256
proxyRegistryAddress 0xcd7c0326 → address
revealed 0x51830227 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
Write Contract 17 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 tokenId
mint 0xa0712d68
uint256 _amount
pause 0x02329a29
bool _state
renounceOwnership 0x715018a6
No parameters
reveal 0x940cd05b
bool _state
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x55f804b3
string baseURI_
setFreeMaxSupply 0xd223a631
uint256 _newFreeMaxSupply
setMaxPerTx 0xc6f6f216
uint256 _newMaxPerTx
setMaxSupply 0x6f8b44b0
uint256 _newMaxSupply
setNotRevealedURI 0xf2c4ce1e
string _notRevealedURI
setPrice 0x91b7f5ed
uint256 _newPrice
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
Recent Transactions
No transactions found for this address